@deskhero/dh_ui 2.54.9 → 2.55.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.
- package/dist/dh_ui.css +1 -1
- package/dist/dh_ui.es.js +24 -16
- package/dist/dh_ui.umd.js +3 -3
- package/package.json +4 -1
package/dist/dh_ui.umd.js
CHANGED
|
@@ -61,7 +61,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
61
61
|
background: none;
|
|
62
62
|
}
|
|
63
63
|
`,""]);const p=f},314:s=>{s.exports=function(a){var l=[];return l.toString=function(){return this.map((function(d){var u="",h=d[5]!==void 0;return d[4]&&(u+="@supports (".concat(d[4],") {")),d[2]&&(u+="@media ".concat(d[2]," {")),h&&(u+="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {")),u+=a(d),h&&(u+="}"),d[2]&&(u+="}"),d[4]&&(u+="}"),u})).join("")},l.i=function(d,u,h,f,p){typeof d=="string"&&(d=[[null,d,void 0]]);var m={};if(h)for(var g=0;g<this.length;g++){var v=this[g][0];v!=null&&(m[v]=!0)}for(var y=0;y<d.length;y++){var C=[].concat(d[y]);h&&m[C[0]]||(p!==void 0&&(C[5]===void 0||(C[1]="@layer".concat(C[5].length>0?" ".concat(C[5]):""," {").concat(C[1],"}")),C[5]=p),u&&(C[2]&&(C[1]="@media ".concat(C[2]," {").concat(C[1],"}")),C[2]=u),f&&(C[4]?(C[1]="@supports (".concat(C[4],") {").concat(C[1],"}"),C[4]=f):C[4]="".concat(f)),l.push(C))}},l}},601:s=>{s.exports=function(a){return a[1]}},72:s=>{var a=[];function l(h){for(var f=-1,p=0;p<a.length;p++)if(a[p].identifier===h){f=p;break}return f}function d(h,f){for(var p={},m=[],g=0;g<h.length;g++){var v=h[g],y=f.base?v[0]+f.base:v[0],C=p[y]||0,b="".concat(y," ").concat(C);p[y]=C+1;var B=l(b),T={css:v[1],media:v[2],sourceMap:v[3],supports:v[4],layer:v[5]};if(B!==-1)a[B].references++,a[B].updater(T);else{var E=u(T,f);f.byIndex=g,a.splice(g,0,{identifier:b,updater:E,references:1})}m.push(b)}return m}function u(h,f){var p=f.domAPI(f);return p.update(h),function(m){if(m){if(m.css===h.css&&m.media===h.media&&m.sourceMap===h.sourceMap&&m.supports===h.supports&&m.layer===h.layer)return;p.update(h=m)}else p.remove()}}s.exports=function(h,f){var p=d(h=h||[],f=f||{});return function(m){m=m||[];for(var g=0;g<p.length;g++){var v=l(p[g]);a[v].references--}for(var y=d(m,f),C=0;C<p.length;C++){var b=l(p[C]);a[b].references===0&&(a[b].updater(),a.splice(b,1))}p=y}}},659:s=>{var a={};s.exports=function(l,d){var u=(function(h){if(a[h]===void 0){var f=document.querySelector(h);if(window.HTMLIFrameElement&&f instanceof window.HTMLIFrameElement)try{f=f.contentDocument.head}catch{f=null}a[h]=f}return a[h]})(l);if(!u)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");u.appendChild(d)}},540:s=>{s.exports=function(a){var l=document.createElement("style");return a.setAttributes(l,a.attributes),a.insert(l,a.options),l}},56:(s,a,l)=>{s.exports=function(d){var u=l.nc;u&&d.setAttribute("nonce",u)}},825:s=>{s.exports=function(a){if(typeof document>"u")return{update:function(){},remove:function(){}};var l=a.insertStyleElement(a);return{update:function(d){(function(u,h,f){var p="";f.supports&&(p+="@supports (".concat(f.supports,") {")),f.media&&(p+="@media ".concat(f.media," {"));var m=f.layer!==void 0;m&&(p+="@layer".concat(f.layer.length>0?" ".concat(f.layer):""," {")),p+=f.css,m&&(p+="}"),f.media&&(p+="}"),f.supports&&(p+="}");var g=f.sourceMap;g&&typeof btoa<"u"&&(p+=`
|
|
64
|
-
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(g))))," */")),h.styleTagTransform(p,u,h.options)})(l,a,d)},remove:function(){(function(d){if(d.parentNode===null)return!1;d.parentNode.removeChild(d)})(l)}}}},113:s=>{s.exports=function(a,l){if(l.styleSheet)l.styleSheet.cssText=a;else{for(;l.firstChild;)l.removeChild(l.firstChild);l.appendChild(document.createTextNode(a))}}}},r={};function o(s){var a=r[s];if(a!==void 0)return a.exports;var l=r[s]={id:s,exports:{}};return t[s](l,l.exports,o),l.exports}o.n=s=>{var a=s&&s.__esModule?()=>s.default:()=>s;return o.d(a,{a}),a},o.d=(s,a)=>{for(var l in a)o.o(a,l)&&!o.o(s,l)&&Object.defineProperty(s,l,{enumerable:!0,get:a[l]})},o.o=(s,a)=>Object.prototype.hasOwnProperty.call(s,a),o.nc=void 0;var i={};return(()=>{o.d(i,{default:()=>k});var s=o(72),a=o.n(s),l=o(825),d=o.n(l),u=o(659),h=o.n(u),f=o(56),p=o.n(f),m=o(540),g=o.n(m),v=o(113),y=o.n(v),C=o(523),b={};function B(S){return B=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},B(S)}function T(S,O){for(var A=0;A<O.length;A++){var x=O[A];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(S,E(x.key),x)}}function E(S){var O=(function(A,x){if(B(A)!="object"||!A)return A;var M=A[Symbol.toPrimitive];if(M!==void 0){var L=M.call(A,"string");if(B(L)!="object")return L;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(A)})(S);return B(O)=="symbol"?O:O+""}b.styleTagTransform=y(),b.setAttributes=p(),b.insert=h().bind(null,"head"),b.domAPI=d(),b.insertStyleElement=g(),a()(C.A,b),C.A&&C.A.locals&&C.A.locals;var k=(function(){return S=function x(M,L){var D=M.configuration,_=M.blocks,N=M.toolbar,w=M.save;(function(R,H){if(!(R instanceof H))throw new TypeError("Cannot call a class as a function")})(this,x),this.toolbar=N,this.borderStyle=L||"1px dashed #aaa",this.api=_,this.holder=typeof D.holder=="string"?document.getElementById(D.holder):D.holder,this.readOnly=D.readOnly,this.startBlock=null,this.endBlock=null,this.save=w,this.setDragListener(),this.setDropListener()},A=[{key:"isReadOnlySupported",get:function(){return!0}}],(O=[{key:"setElementCursor",value:function(x){if(x){var M=document.createRange(),L=window.getSelection();M.setStart(x.childNodes[0],0),M.collapse(!0),L.removeAllRanges(),L.addRange(M),x.focus()}}},{key:"setDragListener",value:function(){var x=this;if(!this.readOnly){var M=this.holder.querySelector(".ce-toolbar__settings-btn");if(M)this.initializeDragListener(M);else{var L=new MutationObserver((function(D,_){var N=x.holder.querySelector(".ce-toolbar__settings-btn");N&&(x.initializeDragListener(N),_.disconnect())}));L.observe(this.holder,{childList:!0,subtree:!0})}}}},{key:"initializeDragListener",value:function(x){var M=this;x.setAttribute("draggable","true"),x.addEventListener("dragstart",(function(){M.startBlock=M.api.getCurrentBlockIndex()})),x.addEventListener("drag",(function(){if(M.toolbar.close(),!M.isTheOnlyBlock()){var L=M.holder.querySelectorAll(".ce-block"),D=M.holder.querySelector(".ce-block--drop-target");M.setElementCursor(D),M.setBorderBlocks(L,D)}}))}},{key:"setBorderBlocks",value:function(x,M){var L=this;Object.values(x).forEach((function(D){var _=D.querySelector(".ce-block__content");D!==M?(_.style.removeProperty("border-top"),_.style.removeProperty("border-bottom")):Object.keys(x).find((function(N){return x[N]===M}))>L.startBlock?_.style.borderBottom=L.borderStyle:_.style.borderTop=L.borderStyle}))}},{key:"setDropListener",value:function(){var x=this;document.addEventListener("drop",(function(M){var L=M.target;if(x.holder.contains(L)&&x.startBlock!==null){var D=x.getDropTarget(L);if(D){var _=D.querySelector(".ce-block__content");_.style.removeProperty("border-top"),_.style.removeProperty("border-bottom"),x.endBlock=x.getTargetPosition(D),x.moveBlocks()}}x.startBlock=null}))}},{key:"getDropTarget",value:function(x){return x.classList.contains("ce-block")?x:x.closest(".ce-block")}},{key:"getTargetPosition",value:function(x){return Array.from(x.parentNode.children).indexOf(x)}},{key:"isTheOnlyBlock",value:function(){return this.api.getBlocksCount()===1}},{key:"moveBlocks",value:function(){this.isTheOnlyBlock()||this.api.move(this.endBlock,this.startBlock)}}])&&T(S.prototype,O),A&&T(S,A),Object.defineProperty(S,"prototype",{writable:!1}),S;var S,O,A})()})(),i.default})()))})(dp)),dp.exports}var xq=kq();const Sq=lp(xq),L9="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%2018.5C11.7239%2018.5%2011.5%2018.2761%2011.5%2018L11.5%206C11.5%205.72386%2011.7239%205.5%2012%205.5C12.2761%205.5%2012.5%205.72386%2012.5%206L12.5%2018C12.5%2018.2761%2012.2761%2018.5%2012%2018.5Z'%20fill='%230F71B4'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5.64645%2012.3536C5.45118%2012.1583%205.45118%2011.8417%205.64645%2011.6464L11.6464%205.64645C11.8417%205.45119%2012.1583%205.45119%2012.3536%205.64645L18.3536%2011.6464C18.5488%2011.8417%2018.5488%2012.1583%2018.3536%2012.3536C18.1583%2012.5488%2017.8417%2012.5488%2017.6464%2012.3536L12%206.70711L6.35355%2012.3536C6.15829%2012.5488%205.84171%2012.5488%205.64645%2012.3536Z'%20fill='%230F71B4'/%3e%3crect%20x='23.5'%20y='0.5'%20width='23'%20height='23'%20rx='11.5'%20transform='rotate(90%2023.5%200.5)'%20stroke='%230F71B4'/%3e%3c/svg%3e";let up=!1;class Eq{static get isReadOnlySupported(){return!0}static get toolbox(){return{title:"Images",icon:'<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.34 3H2.66C2.48496 3 2.31708 3.06954 2.19331 3.19331C2.06954 3.31708 2 3.48496 2 3.66V11.58C2 11.755 2.06954 11.9229 2.19331 12.0467C2.31708 12.1705 2.48496 12.24 2.66 12.24H12.34C12.515 12.24 12.6829 12.1705 12.8067 12.0467C12.9305 11.9229 13 11.755 13 11.58V3.66C13 3.48496 12.9305 3.31708 12.8067 3.19331C12.6829 3.06954 12.515 3 12.34 3ZM2.66 3.44H12.34C12.3983 3.44 12.4543 3.46318 12.4956 3.50444C12.5368 3.54569 12.56 3.60165 12.56 3.66V9.842L10.751 8.03305C10.6897 7.97152 10.6169 7.9227 10.5367 7.88939C10.4564 7.85608 10.3704 7.83893 10.2836 7.83893C10.1967 7.83893 10.1107 7.85608 10.0304 7.88939C9.95023 7.9227 9.87737 7.97152 9.81605 8.03305L8.5604 9.2887L5.9853 6.71305C5.92398 6.65152 5.85112 6.6027 5.7709 6.56939C5.69068 6.53608 5.60467 6.51893 5.5178 6.51893C5.43093 6.51893 5.34492 6.53608 5.2647 6.56939C5.18448 6.6027 5.11162 6.65152 5.0503 6.71305L2.44 9.325V3.66C2.44 3.60165 2.46318 3.54569 2.50444 3.50444C2.54569 3.46318 2.60165 3.44 2.66 3.44ZM2.44 11.58V9.9487L5.36435 7.02435C5.38478 7.00389 5.40905 6.98767 5.43575 6.9766C5.46246 6.96553 5.49109 6.95983 5.52 6.95983C5.54891 6.95983 5.57754 6.96553 5.60425 6.9766C5.63095 6.98767 5.65522 7.00389 5.67565 7.02435L10.4513 11.8H2.66C2.60165 11.8 2.54569 11.7768 2.50444 11.7356C2.46318 11.6943 2.44 11.6383 2.44 11.58ZM12.34 11.8H11.075L8.875 9.6L10.1307 8.34435C10.1511 8.3239 10.1753 8.30767 10.2021 8.2966C10.2288 8.28553 10.2574 8.27983 10.2863 8.27983C10.3152 8.27983 10.3438 8.28553 10.3705 8.2966C10.3973 8.30767 10.4215 8.3239 10.4419 8.34435L12.56 10.4641V11.58C12.56 11.6383 12.5368 11.6943 12.4956 11.7356C12.4543 11.7768 12.3983 11.8 12.34 11.8Z" fill="black"/></svg>'}}constructor({data:e,config:t,api:r}){this.data=e,this.api=r,this.config=t||{},this.lastReadOnly=this.api?.readOnly?.isEnabled,this.settings=[{name:"WidthSmall",icon:'<svg id="WidthSmall" width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.19786 7.66578C7.19786 7.46123 7.16578 7.28075 7.1016 7.12433C7.04144 6.9639 6.93316 6.81952 6.77674 6.69118C6.62433 6.56283 6.41176 6.44051 6.13904 6.3242C5.87032 6.20789 5.52941 6.08957 5.11631 5.96925C4.68315 5.84091 4.29211 5.69853 3.94318 5.54211C3.59425 5.38168 3.29545 5.1992 3.04679 4.99465C2.79813 4.79011 2.60762 4.55548 2.47527 4.29078C2.34291 4.02607 2.27674 3.72326 2.27674 3.38235C2.27674 3.04144 2.34693 2.7266 2.4873 2.43783C2.62767 2.14906 2.82821 1.8984 3.0889 1.68583C3.35361 1.46925 3.66845 1.3008 4.03342 1.18048C4.3984 1.06016 4.80548 1 5.25468 1C5.91243 1 6.46992 1.12634 6.92714 1.37901C7.38837 1.62767 7.73931 1.95455 7.97995 2.35963C8.22059 2.7607 8.34091 3.18984 8.34091 3.64706H7.18583C7.18583 3.31818 7.11564 3.02741 6.97527 2.77473C6.83489 2.51805 6.62233 2.31751 6.33757 2.17313C6.05281 2.02473 5.69185 1.95053 5.25468 1.95053C4.84158 1.95053 4.50067 2.0127 4.23195 2.13703C3.96324 2.26136 3.7627 2.42981 3.63035 2.64238C3.50201 2.85495 3.43783 3.09759 3.43783 3.37032C3.43783 3.55481 3.47594 3.72326 3.55214 3.87567C3.63235 4.02406 3.75468 4.16243 3.91912 4.29078C4.08757 4.41912 4.30013 4.53743 4.55682 4.64572C4.81751 4.75401 5.12834 4.85829 5.4893 4.95856C5.98663 5.09893 6.41578 5.25535 6.77674 5.42781C7.1377 5.60027 7.43449 5.79479 7.66711 6.01136C7.90374 6.22393 8.07821 6.46658 8.19051 6.73931C8.30682 7.00802 8.36497 7.31283 8.36497 7.65374C8.36497 8.0107 8.29278 8.33356 8.1484 8.62233C8.00401 8.9111 7.79746 9.15775 7.52874 9.3623C7.26003 9.56685 6.93717 9.72527 6.56016 9.83757C6.18717 9.94586 5.77005 10 5.30882 10C4.90374 10 4.50468 9.94385 4.11163 9.83155C3.72259 9.71925 3.36765 9.5508 3.04679 9.3262C2.72995 9.1016 2.47527 8.82487 2.28275 8.49599C2.09425 8.1631 2 7.77808 2 7.34091H3.15508C3.15508 7.64171 3.21324 7.9004 3.32955 8.11698C3.44586 8.32955 3.60428 8.50602 3.80481 8.64639C4.00936 8.78677 4.23997 8.89104 4.49666 8.95922C4.75735 9.0234 5.02807 9.05548 5.30882 9.05548C5.7139 9.05548 6.05682 8.99933 6.33757 8.88703C6.61832 8.77473 6.83088 8.61431 6.97527 8.40575C7.12366 8.19719 7.19786 7.95053 7.19786 7.66578Z" fill="currentColor"/></svg>'},{name:"WidthMedium",icon:'<svg id="WidthMedium" width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.37888 1H2.54037L5.50311 8.37267L8.45963 1H9.62733L5.95031 10.0435H5.04348L1.37888 1ZM1 1H2.02484L2.19255 6.51553V10.0435H1V1ZM8.97515 1H10V10.0435H8.80745V6.51553L8.97515 1Z" fill="currentColor"/></svg>'},{name:"WidthFull",icon:'<svg id="WidthFull" width="17" height="7" viewBox="0 0 17 7" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.375 1L16 3.625L13.375 6.25M15.5212 3.6243L1.74906 3.625M3.625 6.25L1 3.625L3.625 1" stroke="currentColor" stroke-width="1.19727" stroke-linecap="round" stroke-linejoin="round"/></svg>'},{name:"AlignStart",icon:'<svg id="AlignStart" width="15" height="12" viewBox="0 0 15 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.5 1C0.5 0.723858 0.723858 0.5 1 0.5H13.8C14.0761 0.5 14.3 0.723858 14.3 1C14.3 1.27614 14.0761 1.5 13.8 1.5H1C0.723858 1.5 0.5 1.27614 0.5 1Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M0.5 11C0.5 10.7239 0.723858 10.5 1 10.5H13.8C14.0761 10.5 14.3 10.7239 14.3 11C14.3 11.2761 14.0761 11.5 13.8 11.5H1C0.723858 11.5 0.5 11.2761 0.5 11Z" fill="currentColor"/><path d="M6.6 3.59998H1.8C1.35817 3.59998 1 3.95815 1 4.39998V7.59998C1 8.0418 1.35817 8.39998 1.8 8.39998H6.6C7.04183 8.39998 7.4 8.0418 7.4 7.59998V4.39998C7.4 3.95815 7.04183 3.59998 6.6 3.59998Z" fill="currentColor"/></svg>'},{name:"AlignCenter",icon:'<svg id="AlignCenter" width="15" height="11" viewBox="0 0 15 11" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.800049 0.5C0.800049 0.223858 1.02391 0 1.30005 0H14.1C14.3762 0 14.6 0.223858 14.6 0.5C14.6 0.776142 14.3762 1 14.1 1H1.30005C1.02391 1 0.800049 0.776142 0.800049 0.5Z" fill="black"/><path fill-rule="evenodd" clip-rule="evenodd" d="M0.800049 10.5C0.800049 10.2239 1.02391 10 1.30005 10H14.1C14.3762 10 14.6 10.2239 14.6 10.5C14.6 10.7761 14.3762 11 14.1 11H1.30005C1.02391 11 0.800049 10.7761 0.800049 10.5Z" fill="currentColor"/><path d="M10.1 3.09998H5.3C4.85817 3.09998 4.5 3.45815 4.5 3.89998V7.09998C4.5 7.5418 4.85817 7.89998 5.3 7.89998H10.1C10.5418 7.89998 10.9 7.5418 10.9 7.09998V3.89998C10.9 3.45815 10.5418 3.09998 10.1 3.09998Z" fill="currentColor"/></svg>'},{name:"AlignEnd",icon:'<svg id="AlignEnd" width="15" height="12" viewBox="0 0 15 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.5 1C0.5 0.723858 0.723858 0.5 1 0.5H13.8C14.0761 0.5 14.3 0.723858 14.3 1C14.3 1.27614 14.0761 1.5 13.8 1.5H1C0.723858 1.5 0.5 1.27614 0.5 1Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M0.5 11C0.5 10.7239 0.723858 10.5 1 10.5H13.8C14.0761 10.5 14.3 10.7239 14.3 11C14.3 11.2761 14.0761 11.5 13.8 11.5H1C0.723858 11.5 0.5 11.2761 0.5 11Z" fill="currentColor"/><path d="M13 3.59998H8.20002C7.7582 3.59998 7.40002 3.95815 7.40002 4.39998V7.59998C7.40002 8.0418 7.7582 8.39998 8.20002 8.39998H13C13.4419 8.39998 13.8 8.0418 13.8 7.59998V4.39998C13.8 3.95815 13.4419 3.59998 13 3.59998Z" fill="currentColor"/></svg>'}],this.container=null}render(){this.container=this.createContainer(),this.wrapper=this.createWrapper(),this.img=this.createImage();const e=this.createFileInput(),t=this.createIcon(),r=this.createLabel(e.id);return this.data.length>0||this.data.imageLink?(this.populateExistingFiles(this.img),this.showElement(this.img),this.container.appendChild(this.img)):(this.wrapper.prepend(t),this.wrapper.appendChild(r),this.wrapper.appendChild(e),this.container.appendChild(this.wrapper),this.container.appendChild(this.img),this.setupEventListeners(e)),this.data.length>0&&(this.data[0].width||this.data[0].position)&&this._acceptTuneView(),this.api.readOnly.isEnabled&&this._acceptTuneView(),this.container}populateExistingFiles(e){e.src=this.data[0].download_url}setupEventListeners(e){this.wrapper.addEventListener("drop",t=>{up=!0;const r=t.dataTransfer.files[0];this.handleFile(r)}),e.addEventListener("input",t=>{t.stopPropagation();const r=t.target.files[0];this.handleFile(r)})}handleFile(e){if(e.type.match("image.*")){const t=URL.createObjectURL(e);this.img.src=t,this.saveData(t,e.name),this._acceptTuneView(),this.removeElement(this.wrapper),this.showElement(this.container),this.showElement(this.img),this.uploadFiles(e)}else alert("Invalid file type. Please select an image file.")}uploadFiles(e){const t=this.api?.blocks?.getCurrentBlockIndex(),r=this.api?.blocks?.getBlockByIndex(t);this.config.uploadEvent({files:[e],id:r?.id,data:this.data})}removed(){const e=this.api?.blocks?.getCurrentBlockIndex(),t=this.api?.blocks?.getBlockByIndex(e);this.api?.readOnly?.isEnabled||this.api?.readOnly?.isEnabled!==this.lastReadOnly||this.config.deleteEvent({data:this.data,id:t?.id})}saveData(e,t){const r={download_url:e,label:t,width:"WidthMedium"};this.data=[r]}createImage(){const e=document.createElement("img");return e.classList.add("picture__upload_img"),e}createContainer(){const e=document.createElement("div");return e.classList.add("picture__upload"),e}createWrapper(){const e=document.createElement("div");return e.classList.add("picture__upload_btn"),e}createFileInput(){const e=`upload_image_${Date.now()}`,t=document.createElement("input");return t.type="file",t.name="image",t.id=e,t.accept="image/*",t}createIcon(){const e=document.createElement("img");return e.classList.add("picture__upload_btn_icon"),e.src=L9,e.onerror=()=>{console.error("Error loading icon image")},e.height="24",e}createLabel(e){const t=document.createElement("label");t.setAttribute("for",e),t.textContent=this.api.i18n.t("Drag & drop an image file or ");const r=document.createElement("span");return r.textContent=this.api.i18n.t("browse"),r.classList.add("upload"),t.appendChild(r),t}hideElement(e){e.style.display="none"}removeElement(e){e.remove()}showElement(e){e.style.display="flex"}save(){return this.isEmpty(this.data)?null:this.data}isEmpty(e){return!Array.isArray(e)||e.length===0}renderSettings(){const e=document.createElement("div");return this.data[0]&&this.settings.forEach(t=>{let r=document.createElement("div");r.classList.add("cdx-settings-button"),r.classList.toggle("cdx-settings-button--active",this.data[0].position==t.name||this.data[0].width==t.name),r.innerHTML=t.icon,e.appendChild(r),r.addEventListener("click",()=>{this._toggleTune(t.name),document.querySelectorAll(".cdx-settings-button--active").forEach(i=>{i.firstChild.id!==this.data[0].width&&i.firstChild.id!==this.data[0].position&&i.classList.remove("cdx-settings-button--active")}),r.classList.toggle("cdx-settings-button--active")})}),e}_toggleTune(e){(e=="WidthSmall"||e=="WidthMedium"||e=="WidthFull")&&(this.data[0].width=e),(e=="AlignStart"||e=="AlignCenter"||e=="AlignEnd")&&(this.data[0].position=e),this._acceptTuneView()}_acceptTuneView(){this.settings.forEach(e=>{this.container.classList.toggle(e.name,this.data[0].width==e.name||this.data[0].position==e.name)})}async _createFileFromImageUrl(e){const r=await(await fetch(e)).blob();return new File([r],"image.jpg",{type:r.type})}static get pasteConfig(){return{tags:[{img:{src:!0}}],files:{mimeTypes:["image/*"]},patterns:{image:/https?:\/\/\S+\.(gif|jpe?g|tiff|png|webp)$/i}}}onPaste(e){if(up){up=!1,this.deleteBlock();return}switch(e.type){case"file":{this.handleFile(e.detail.file);break}case"tag":{const t=e.detail.data;this._createFileFromImageUrl(t.src),(async()=>{try{const r=await this._createFileFromImageUrl(t.src);this.handleFile(r)}catch(r){console.error("Error fetching and creating file:",r),this.deleteBlock()}})();break}case"pattern":{const t=e.detail.data;this._createFileFromImageUrl(t),(async()=>{try{const r=await this._createFileFromImageUrl(t);this.handleFile(r)}catch(r){console.error("Error fetching and creating file:",r),this.deleteBlock()}})();break}}}deleteBlock(){this.api?.blocks?.delete()}}const N9="data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.9168%205.4165H11.2502C10.4766%205.4165%209.73475%205.72379%209.18777%206.27078C8.64079%206.81776%208.3335%207.55962%208.3335%208.33317V31.6665C8.3335%2032.4401%208.64079%2033.1819%209.18777%2033.7289C9.73475%2034.2759%2010.4766%2034.5832%2011.2502%2034.5832H28.7502C29.5237%2034.5832%2030.2656%2034.2759%2030.8126%2033.7289C31.3595%2033.1819%2031.6668%2032.4401%2031.6668%2031.6665V14.1665L22.9168%205.4165Z'%20fill='%23DAEBF7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9168%204.4165C23.182%204.4165%2023.4364%204.52186%2023.6239%204.7094L32.3739%2013.4594C32.5615%2013.6469%2032.6668%2013.9013%2032.6668%2014.1665V31.6665C32.6668%2032.7053%2032.2542%2033.7015%2031.5197%2034.436C30.7851%2035.1705%2029.7889%2035.5832%2028.7502%2035.5832H11.2502C10.2114%2035.5832%209.21518%2035.1705%208.48066%2034.436C7.74614%2033.7015%207.3335%2032.7053%207.3335%2031.6665V8.33317C7.3335%207.29441%207.74614%206.29819%208.48066%205.56367C9.21518%204.82915%2010.2114%204.4165%2011.2502%204.4165H22.9168ZM31.6668%2014.1665V31.6665C31.6668%2032.4401%2031.3595%2033.1819%2030.8126%2033.7289C30.2656%2034.2759%2029.5237%2034.5832%2028.7502%2034.5832H11.2502C10.4766%2034.5832%209.73475%2034.2759%209.18777%2033.7289C8.64079%2033.1819%208.3335%2032.4401%208.3335%2031.6665V8.33317C8.3335%207.55962%208.64079%206.81776%209.18777%206.27078C9.73475%205.72379%2010.4766%205.4165%2011.2502%205.4165H22.9168L31.6668%2014.1665Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M22.917%205.4165V12.1665C22.917%2013.2711%2023.8124%2014.1665%2024.917%2014.1665H31.667'%20fill='%230F71B4'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.917%204.9165C23.1931%204.9165%2023.417%205.14036%2023.417%205.4165V12.1665C23.417%2012.9949%2024.0886%2013.6665%2024.917%2013.6665H31.667C31.9431%2013.6665%2032.167%2013.8904%2032.167%2014.1665C32.167%2014.4426%2031.9431%2014.6665%2031.667%2014.6665H24.917C23.5363%2014.6665%2022.417%2013.5472%2022.417%2012.1665V5.4165C22.417%205.14036%2022.6408%204.9165%2022.917%204.9165Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M12.98%2028.9001C12.9133%2028.9001%2012.8567%2028.8768%2012.81%2028.8301C12.77%2028.7901%2012.75%2028.7368%2012.75%2028.6701V22.0301C12.75%2021.9634%2012.77%2021.9101%2012.81%2021.8701C12.8567%2021.8234%2012.9133%2021.8001%2012.98%2021.8001H13.44C13.5067%2021.8001%2013.56%2021.8234%2013.6%2021.8701C13.6467%2021.9101%2013.67%2021.9634%2013.67%2022.0301V22.4701C14.0433%2021.9568%2014.59%2021.7001%2015.31%2021.7001C16.01%2021.7001%2016.5333%2021.9201%2016.88%2022.3601C17.2333%2022.8001%2017.4233%2023.3668%2017.45%2024.0601C17.4567%2024.1334%2017.46%2024.2468%2017.46%2024.4001C17.46%2024.5534%2017.4567%2024.6668%2017.45%2024.7401C17.4233%2025.4268%2017.2333%2025.9934%2016.88%2026.4401C16.5267%2026.8801%2016.0033%2027.1001%2015.31%2027.1001C14.6167%2027.1001%2014.0767%2026.8501%2013.69%2026.3501V28.6701C13.69%2028.7368%2013.67%2028.7901%2013.63%2028.8301C13.59%2028.8768%2013.5367%2028.9001%2013.47%2028.9001H12.98ZM15.1%2026.2901C15.5733%2026.2901%2015.9167%2026.1434%2016.13%2025.8501C16.35%2025.5568%2016.47%2025.1701%2016.49%2024.6901C16.4967%2024.6234%2016.5%2024.5268%2016.5%2024.4001C16.5%2023.1401%2016.0333%2022.5101%2015.1%2022.5101C14.64%2022.5101%2014.2933%2022.6634%2014.06%2022.9701C13.8333%2023.2701%2013.71%2023.6301%2013.69%2024.0501L13.68%2024.4301L13.69%2024.8201C13.7033%2025.2134%2013.83%2025.5568%2014.07%2025.8501C14.31%2026.1434%2014.6533%2026.2901%2015.1%2026.2901Z'%20fill='%230F71B4'/%3e%3cpath%20d='M20.597%2027.1001C19.9037%2027.1001%2019.3804%2026.8734%2019.027%2026.4201C18.6737%2025.9668%2018.487%2025.3934%2018.467%2024.7001L18.457%2024.4001L18.467%2024.1001C18.487%2023.4134%2018.6737%2022.8434%2019.027%2022.3901C19.3804%2021.9301%2019.9037%2021.7001%2020.597%2021.7001C21.2837%2021.7001%2021.8237%2021.9434%2022.217%2022.4301V20.1301C22.217%2020.0634%2022.237%2020.0101%2022.277%2019.9701C22.3237%2019.9234%2022.3804%2019.9001%2022.447%2019.9001H22.927C22.9937%2019.9001%2023.047%2019.9234%2023.087%2019.9701C23.1337%2020.0101%2023.157%2020.0634%2023.157%2020.1301V26.7701C23.157%2026.8368%2023.1337%2026.8934%2023.087%2026.9401C23.047%2026.9801%2022.9937%2027.0001%2022.927%2027.0001H22.477C22.4104%2027.0001%2022.3537%2026.9801%2022.307%2026.9401C22.267%2026.8934%2022.247%2026.8368%2022.247%2026.7701V26.3501C21.8604%2026.8501%2021.3104%2027.1001%2020.597%2027.1001ZM20.807%2026.2901C21.267%2026.2901%2021.6104%2026.1401%2021.837%2025.8401C22.0704%2025.5334%2022.197%2025.1701%2022.217%2024.7501C22.2237%2024.6768%2022.227%2024.5501%2022.227%2024.3701C22.227%2024.1834%2022.2237%2024.0534%2022.217%2023.9801C22.2037%2023.5868%2022.077%2023.2434%2021.837%2022.9501C21.597%2022.6568%2021.2537%2022.5101%2020.807%2022.5101C20.3337%2022.5101%2019.987%2022.6568%2019.767%2022.9501C19.5537%2023.2434%2019.437%2023.6301%2019.417%2024.1101L19.407%2024.4001C19.407%2025.6601%2019.8737%2026.2901%2020.807%2026.2901Z'%20fill='%230F71B4'/%3e%3cpath%20d='M25.3943%2027.0001C25.3276%2027.0001%2025.271%2026.9801%2025.2243%2026.9401C25.1843%2026.8934%2025.1643%2026.8368%2025.1643%2026.7701V22.6001H24.3143C24.2476%2022.6001%2024.191%2022.5801%2024.1443%2022.5401C24.1043%2022.4934%2024.0843%2022.4368%2024.0843%2022.3701V22.0301C24.0843%2021.9634%2024.1043%2021.9101%2024.1443%2021.8701C24.191%2021.8234%2024.2476%2021.8001%2024.3143%2021.8001H25.1643V21.3001C25.1643%2020.1668%2025.7376%2019.6001%2026.8843%2019.6001H27.4843C27.551%2019.6001%2027.6043%2019.6234%2027.6443%2019.6701C27.691%2019.7101%2027.7143%2019.7634%2027.7143%2019.8301V20.1701C27.7143%2020.2368%2027.691%2020.2934%2027.6443%2020.3401C27.6043%2020.3801%2027.551%2020.4001%2027.4843%2020.4001H26.9043C26.6043%2020.4001%2026.3943%2020.4801%2026.2743%2020.6401C26.1543%2020.7934%2026.0943%2021.0301%2026.0943%2021.3501V21.8001H27.3843C27.451%2021.8001%2027.5043%2021.8234%2027.5443%2021.8701C27.591%2021.9101%2027.6143%2021.9634%2027.6143%2022.0301V22.3701C27.6143%2022.4368%2027.591%2022.4934%2027.5443%2022.5401C27.5043%2022.5801%2027.451%2022.6001%2027.3843%2022.6001H26.0943V26.7701C26.0943%2026.8368%2026.071%2026.8934%2026.0243%2026.9401C25.9843%2026.9801%2025.931%2027.0001%2025.8643%2027.0001H25.3943Z'%20fill='%230F71B4'/%3e%3c/svg%3e",D9="data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.9166%205.41663H11.25C10.4764%205.41663%209.73457%205.72392%209.18758%206.2709C8.6406%206.81788%208.33331%207.55974%208.33331%208.33329V31.6667C8.33331%2032.4402%208.6406%2033.1821%209.18758%2033.729C9.73457%2034.276%2010.4764%2034.5833%2011.25%2034.5833H28.75C29.5235%2034.5833%2030.2654%2034.276%2030.8124%2033.729C31.3594%2033.1821%2031.6666%2032.4402%2031.6666%2031.6667V14.1667L22.9166%205.41663Z'%20fill='%23DAEBF7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9166%204.41663C23.1819%204.41663%2023.4362%204.52198%2023.6238%204.70952L32.3738%2013.4595C32.5613%2013.6471%2032.6666%2013.9014%2032.6666%2014.1667V31.6667C32.6666%2032.7054%2032.254%2033.7016%2031.5195%2034.4362C30.785%2035.1707%2029.7887%2035.5833%2028.75%2035.5833H11.25C10.2112%2035.5833%209.215%2035.1707%208.48048%2034.4362C7.74596%2033.7016%207.33331%2032.7054%207.33331%2031.6667V8.33329C7.33331%207.29453%207.74596%206.29831%208.48048%205.56379C9.215%204.82927%2010.2112%204.41663%2011.25%204.41663H22.9166ZM31.6666%2014.1667V31.6667C31.6666%2032.4402%2031.3594%2033.1821%2030.8124%2033.729C30.2654%2034.276%2029.5235%2034.5833%2028.75%2034.5833H11.25C10.4764%2034.5833%209.73457%2034.276%209.18758%2033.729C8.6406%2033.1821%208.33331%2032.4402%208.33331%2031.6667V8.33329C8.33331%207.55974%208.6406%206.81788%209.18758%206.2709C9.73457%205.72392%2010.4764%205.41663%2011.25%205.41663H22.9166L31.6666%2014.1667Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M22.9166%205.41663V12.1667C22.9166%2013.2712%2023.8121%2014.1667%2024.9166%2014.1667H31.6666'%20fill='%230F71B4'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9166%204.91663C23.1928%204.91663%2023.4166%205.14048%2023.4166%205.41663V12.1667C23.4166%2012.9951%2024.0882%2013.6667%2024.9166%2013.6667H31.6666C31.9428%2013.6667%2032.1666%2013.8905%2032.1666%2014.1667C32.1666%2014.4428%2031.9428%2014.6667%2031.6666%2014.6667H24.9166C23.5359%2014.6667%2022.4166%2013.5474%2022.4166%2012.1667V5.41663C22.4166%205.14048%2022.6405%204.91663%2022.9166%204.91663Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M12.89%2028.9C12.8233%2028.9%2012.77%2028.8767%2012.73%2028.83C12.6833%2028.79%2012.66%2028.7367%2012.66%2028.67V28.33C12.66%2028.2633%2012.6833%2028.2067%2012.73%2028.16C12.77%2028.12%2012.8233%2028.1%2012.89%2028.1H13.03C13.27%2028.1%2013.4466%2028.0533%2013.56%2027.96C13.6733%2027.8733%2013.7466%2027.7567%2013.78%2027.61C13.82%2027.4633%2013.84%2027.2967%2013.84%2027.11V22.03C13.84%2021.9633%2013.86%2021.91%2013.9%2021.87C13.9466%2021.8233%2014.0033%2021.8%2014.07%2021.8H14.56C14.6266%2021.8%2014.68%2021.8233%2014.72%2021.87C14.7666%2021.91%2014.79%2021.9633%2014.79%2022.03V27.12C14.79%2027.4733%2014.7333%2027.7833%2014.62%2028.05C14.5133%2028.3167%2014.3366%2028.5233%2014.09%2028.67C13.8433%2028.8233%2013.5066%2028.9%2013.08%2028.9H12.89ZM13.99%2020.83C13.9233%2020.83%2013.8666%2020.81%2013.82%2020.77C13.78%2020.7233%2013.76%2020.6667%2013.76%2020.6V20.06C13.76%2019.9933%2013.78%2019.94%2013.82%2019.9C13.8666%2019.8533%2013.9233%2019.83%2013.99%2019.83H14.63C14.6966%2019.83%2014.7533%2019.8533%2014.8%2019.9C14.8466%2019.94%2014.87%2019.9933%2014.87%2020.06V20.6C14.87%2020.6667%2014.8466%2020.7233%2014.8%2020.77C14.7533%2020.81%2014.6966%2020.83%2014.63%2020.83H13.99Z'%20fill='%230F71B4'/%3e%3cpath%20d='M16.6167%2028.9C16.55%2028.9%2016.4934%2028.8767%2016.4467%2028.83C16.4067%2028.79%2016.3867%2028.7367%2016.3867%2028.67V22.03C16.3867%2021.9633%2016.4067%2021.91%2016.4467%2021.87C16.4934%2021.8233%2016.55%2021.7999%2016.6167%2021.7999H17.0767C17.1434%2021.7999%2017.1967%2021.8233%2017.2367%2021.87C17.2834%2021.91%2017.3067%2021.9633%2017.3067%2022.03V22.4699C17.4667%2022.2499%2017.68%2022.0667%2017.9467%2021.92C18.2134%2021.7733%2018.5467%2021.7%2018.9467%2021.7C19.32%2021.7%2019.6367%2021.7632%2019.8967%2021.8899C20.1634%2022.0166%2020.38%2022.19%2020.5467%2022.41C20.72%2022.63%2020.85%2022.88%2020.9367%2023.16C21.0234%2023.44%2021.07%2023.7399%2021.0767%2024.0599C21.0834%2024.1666%2021.0867%2024.28%2021.0867%2024.4C21.0867%2024.52%2021.0834%2024.6333%2021.0767%2024.74C21.07%2025.0533%2021.0234%2025.3532%2020.9367%2025.6399C20.85%2025.9199%2020.72%2026.1699%2020.5467%2026.3899C20.38%2026.6032%2020.1634%2026.7767%2019.8967%2026.91C19.6367%2027.0367%2019.32%2027.1%2018.9467%2027.1C18.56%2027.1%2018.2334%2027.0299%2017.9667%2026.8899C17.7067%2026.7432%2017.4934%2026.5633%2017.3267%2026.35V28.67C17.3267%2028.7367%2017.3067%2028.79%2017.2667%2028.83C17.2267%2028.8767%2017.17%2028.9%2017.0967%2028.9H16.6167ZM18.7367%2026.29C19.0834%2026.29%2019.3534%2026.2167%2019.5467%2026.07C19.7467%2025.9167%2019.89%2025.7199%2019.9767%2025.4799C20.0634%2025.2332%2020.1134%2024.97%2020.1267%2024.69C20.1334%2024.4967%2020.1334%2024.3033%2020.1267%2024.11C20.1134%2023.83%2020.0634%2023.57%2019.9767%2023.33C19.89%2023.0833%2019.7467%2022.8867%2019.5467%2022.74C19.3534%2022.5867%2019.0834%2022.51%2018.7367%2022.51C18.41%2022.51%2018.1434%2022.5867%2017.9367%2022.74C17.7367%2022.8933%2017.5867%2023.09%2017.4867%2023.33C17.3934%2023.5633%2017.34%2023.8032%2017.3267%2024.0499C17.32%2024.1566%2017.3167%2024.2833%2017.3167%2024.43C17.3167%2024.5767%2017.32%2024.7067%2017.3267%2024.82C17.3334%2025.0533%2017.3867%2025.2833%2017.4867%2025.51C17.5934%2025.7367%2017.75%2025.9233%2017.9567%2026.07C18.1634%2026.2167%2018.4234%2026.29%2018.7367%2026.29Z'%20fill='%230F71B4'/%3e%3cpath%20d='M24.0594%2029.2C23.6061%2029.2%2023.2328%2029.14%2022.9394%2029.02C22.6528%2028.9%2022.4261%2028.7533%2022.2594%2028.58C22.0994%2028.4133%2021.9828%2028.2433%2021.9094%2028.07C21.8428%2027.9033%2021.8061%2027.77%2021.7994%2027.67C21.7928%2027.6033%2021.8128%2027.5467%2021.8594%2027.5C21.9128%2027.4533%2021.9694%2027.43%2022.0294%2027.43H22.5094C22.5694%2027.43%2022.6194%2027.4432%2022.6594%2027.4699C22.6994%2027.4966%2022.7328%2027.5532%2022.7594%2027.6399C22.7994%2027.7399%2022.8594%2027.8499%2022.9394%2027.9699C23.0194%2028.0966%2023.1428%2028.2033%2023.3094%2028.29C23.4761%2028.3833%2023.7094%2028.43%2024.0094%2028.43C24.3228%2028.43%2024.5861%2028.3866%2024.7994%2028.2999C25.0128%2028.2199%2025.1728%2028.0733%2025.2794%2027.86C25.3928%2027.6533%2025.4494%2027.3667%2025.4494%2027V26.32C25.2894%2026.5267%2025.0794%2026.7%2024.8194%2026.84C24.5594%2026.9733%2024.2328%2027.04%2023.8394%2027.04C23.4661%2027.04%2023.1461%2026.9767%2022.8794%2026.85C22.6128%2026.7167%2022.3928%2026.54%2022.2194%2026.32C22.0528%2026.0933%2021.9261%2025.8366%2021.8394%2025.5499C21.7594%2025.2632%2021.7128%2024.9633%2021.6994%2024.65C21.6928%2024.4633%2021.6928%2024.28%2021.6994%2024.1C21.7128%2023.7867%2021.7594%2023.4867%2021.8394%2023.2C21.9261%2022.9133%2022.0528%2022.6567%2022.2194%2022.43C22.3928%2022.2033%2022.6128%2022.0267%2022.8794%2021.9C23.1461%2021.7667%2023.4661%2021.7%2023.8394%2021.7C24.2394%2021.7%2024.5694%2021.7767%2024.8294%2021.93C25.0961%2022.0767%2025.3128%2022.2566%2025.4794%2022.4699V22.04C25.4794%2021.9733%2025.4994%2021.9167%2025.5394%2021.87C25.5861%2021.8233%2025.6428%2021.7999%2025.7094%2021.7999H26.1694C26.2361%2021.7999%2026.2928%2021.8233%2026.3394%2021.87C26.3861%2021.9167%2026.4094%2021.9733%2026.4094%2022.04V26.8899C26.4094%2027.3366%2026.3328%2027.7333%2026.1794%2028.08C26.0328%2028.4267%2025.7861%2028.7%2025.4394%2028.9C25.0994%2029.1%2024.6394%2029.2%2024.0594%2029.2ZM24.0394%2026.24C24.3728%2026.24%2024.6394%2026.1633%2024.8394%2026.01C25.0461%2025.8567%2025.1961%2025.6633%2025.2894%2025.43C25.3894%2025.1967%2025.4428%2024.9599%2025.4494%2024.7199C25.4561%2024.6266%2025.4594%2024.5132%2025.4594%2024.3799C25.4594%2024.2399%2025.4561%2024.1233%2025.4494%2024.03C25.4428%2023.79%2025.3894%2023.5533%2025.2894%2023.32C25.1961%2023.0867%2025.0461%2022.8933%2024.8394%2022.74C24.6394%2022.5867%2024.3728%2022.51%2024.0394%2022.51C23.7061%2022.51%2023.4394%2022.5867%2023.2394%2022.74C23.0394%2022.8867%2022.8961%2023.0833%2022.8094%2023.33C22.7228%2023.57%2022.6728%2023.83%2022.6594%2024.11C22.6528%2024.2833%2022.6528%2024.4599%2022.6594%2024.6399C22.6728%2024.9199%2022.7228%2025.1833%2022.8094%2025.43C22.8961%2025.67%2023.0394%2025.8667%2023.2394%2026.02C23.4394%2026.1667%2023.7061%2026.24%2024.0394%2026.24Z'%20fill='%230F71B4'/%3e%3c/svg%3e",I9="data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.9166%205.41666H11.25C10.4764%205.41666%209.73457%205.72395%209.18758%206.27093C8.6406%206.81791%208.33331%207.55977%208.33331%208.33332V31.6667C8.33331%2032.4402%208.6406%2033.1821%209.18758%2033.729C9.73457%2034.276%2010.4764%2034.5833%2011.25%2034.5833H28.75C29.5235%2034.5833%2030.2654%2034.276%2030.8124%2033.729C31.3594%2033.1821%2031.6666%2032.4402%2031.6666%2031.6667V14.1667L22.9166%205.41666Z'%20fill='%23DAEBF7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9166%204.41666C23.1819%204.41666%2023.4362%204.52201%2023.6238%204.70955L32.3738%2013.4595C32.5613%2013.6471%2032.6666%2013.9014%2032.6666%2014.1667V31.6667C32.6666%2032.7054%2032.254%2033.7016%2031.5195%2034.4362C30.785%2035.1707%2029.7887%2035.5833%2028.75%2035.5833H11.25C10.2112%2035.5833%209.215%2035.1707%208.48048%2034.4362C7.74596%2033.7016%207.33331%2032.7054%207.33331%2031.6667V8.33332C7.33331%207.29456%207.74596%206.29834%208.48048%205.56382C9.215%204.8293%2010.2112%204.41666%2011.25%204.41666H22.9166ZM31.6666%2014.1667V31.6667C31.6666%2032.4402%2031.3594%2033.1821%2030.8124%2033.729C30.2654%2034.276%2029.5235%2034.5833%2028.75%2034.5833H11.25C10.4764%2034.5833%209.73457%2034.276%209.18758%2033.729C8.6406%2033.1821%208.33331%2032.4402%208.33331%2031.6667V8.33332C8.33331%207.55977%208.6406%206.81791%209.18758%206.27093C9.73457%205.72395%2010.4764%205.41666%2011.25%205.41666H22.9166L31.6666%2014.1667Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M22.9166%205.41666V12.1667C22.9166%2013.2712%2023.8121%2014.1667%2024.9166%2014.1667H31.6666'%20fill='%230F71B4'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9166%204.91666C23.1928%204.91666%2023.4166%205.14051%2023.4166%205.41666V12.1667C23.4166%2012.9951%2024.0882%2013.6667%2024.9166%2013.6667H31.6666C31.9428%2013.6667%2032.1666%2013.8905%2032.1666%2014.1667C32.1666%2014.4428%2031.9428%2014.6667%2031.6666%2014.6667H24.9166C23.5359%2014.6667%2022.4166%2013.5474%2022.4166%2012.1667V5.41666C22.4166%205.14051%2022.6405%204.91666%2022.9166%204.91666Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M9.88997%2028.9C9.82331%2028.9%209.76997%2028.8767%209.72997%2028.83C9.68331%2028.79%209.65997%2028.7367%209.65997%2028.67V28.33C9.65997%2028.2633%209.68331%2028.2067%209.72997%2028.16C9.76997%2028.12%209.82331%2028.1%209.88997%2028.1H10.03C10.27%2028.1%2010.4466%2028.0533%2010.56%2027.96C10.6733%2027.8733%2010.7466%2027.7567%2010.78%2027.61C10.82%2027.4633%2010.84%2027.2967%2010.84%2027.11V22.03C10.84%2021.9633%2010.86%2021.91%2010.9%2021.87C10.9466%2021.8233%2011.0033%2021.8%2011.07%2021.8H11.56C11.6266%2021.8%2011.68%2021.8233%2011.72%2021.87C11.7666%2021.91%2011.79%2021.9633%2011.79%2022.03V27.12C11.79%2027.4733%2011.7333%2027.7833%2011.62%2028.05C11.5133%2028.3167%2011.3366%2028.5233%2011.09%2028.67C10.8433%2028.8233%2010.5066%2028.9%2010.08%2028.9H9.88997ZM10.99%2020.83C10.9233%2020.83%2010.8666%2020.81%2010.82%2020.77C10.78%2020.7233%2010.76%2020.6667%2010.76%2020.6V20.06C10.76%2019.9933%2010.78%2019.94%2010.82%2019.9C10.8666%2019.8533%2010.9233%2019.83%2010.99%2019.83H11.63C11.6966%2019.83%2011.7533%2019.8533%2011.8%2019.9C11.8466%2019.94%2011.87%2019.9933%2011.87%2020.06V20.6C11.87%2020.6667%2011.8466%2020.7233%2011.8%2020.77C11.7533%2020.81%2011.6966%2020.83%2011.63%2020.83H10.99Z'%20fill='%230F71B4'/%3e%3cpath%20d='M13.6167%2028.9C13.55%2028.9%2013.4934%2028.8767%2013.4467%2028.83C13.4067%2028.79%2013.3867%2028.7367%2013.3867%2028.67V22.03C13.3867%2021.9633%2013.4067%2021.91%2013.4467%2021.87C13.4934%2021.8233%2013.55%2021.8%2013.6167%2021.8H14.0767C14.1434%2021.8%2014.1967%2021.8233%2014.2367%2021.87C14.2834%2021.91%2014.3067%2021.9633%2014.3067%2022.03V22.47C14.4667%2022.25%2014.68%2022.0667%2014.9467%2021.92C15.2134%2021.7733%2015.5467%2021.7%2015.9467%2021.7C16.32%2021.7%2016.6367%2021.7633%2016.8967%2021.89C17.1634%2022.0167%2017.38%2022.19%2017.5467%2022.41C17.72%2022.63%2017.85%2022.88%2017.9367%2023.16C18.0234%2023.44%2018.07%2023.74%2018.0767%2024.06C18.0834%2024.1667%2018.0867%2024.28%2018.0867%2024.4C18.0867%2024.52%2018.0834%2024.6333%2018.0767%2024.74C18.07%2025.0533%2018.0234%2025.3533%2017.9367%2025.64C17.85%2025.92%2017.72%2026.17%2017.5467%2026.39C17.38%2026.6033%2017.1634%2026.7767%2016.8967%2026.91C16.6367%2027.0367%2016.32%2027.1%2015.9467%2027.1C15.56%2027.1%2015.2334%2027.03%2014.9667%2026.89C14.7067%2026.7433%2014.4934%2026.5633%2014.3267%2026.35V28.67C14.3267%2028.7367%2014.3067%2028.79%2014.2667%2028.83C14.2267%2028.8767%2014.17%2028.9%2014.0967%2028.9H13.6167ZM15.7367%2026.29C16.0834%2026.29%2016.3534%2026.2167%2016.5467%2026.07C16.7467%2025.9167%2016.89%2025.72%2016.9767%2025.48C17.0634%2025.2333%2017.1134%2024.97%2017.1267%2024.69C17.1334%2024.4967%2017.1334%2024.3033%2017.1267%2024.11C17.1134%2023.83%2017.0634%2023.57%2016.9767%2023.33C16.89%2023.0833%2016.7467%2022.8867%2016.5467%2022.74C16.3534%2022.5867%2016.0834%2022.51%2015.7367%2022.51C15.41%2022.51%2015.1434%2022.5867%2014.9367%2022.74C14.7367%2022.8933%2014.5867%2023.09%2014.4867%2023.33C14.3934%2023.5633%2014.34%2023.8033%2014.3267%2024.05C14.32%2024.1567%2014.3167%2024.2833%2014.3167%2024.43C14.3167%2024.5767%2014.32%2024.7067%2014.3267%2024.82C14.3334%2025.0533%2014.3867%2025.2833%2014.4867%2025.51C14.5934%2025.7367%2014.75%2025.9233%2014.9567%2026.07C15.1634%2026.2167%2015.4234%2026.29%2015.7367%2026.29Z'%20fill='%230F71B4'/%3e%3cpath%20d='M21.4037%2027.1C20.7171%2027.1%2020.1704%2026.89%2019.7637%2026.47C19.3571%2026.0433%2019.1337%2025.4633%2019.0937%2024.73C19.0871%2024.6433%2019.0837%2024.5333%2019.0837%2024.4C19.0837%2024.26%2019.0871%2024.1467%2019.0937%2024.06C19.1204%2023.5867%2019.2304%2023.1733%2019.4237%2022.82C19.6171%2022.46%2019.8804%2022.1833%2020.2137%2021.99C20.5537%2021.7967%2020.9504%2021.7%2021.4037%2021.7C21.9104%2021.7%2022.3337%2021.8067%2022.6737%2022.02C23.0204%2022.2333%2023.2837%2022.5367%2023.4637%2022.93C23.6437%2023.3233%2023.7337%2023.7833%2023.7337%2024.31V24.48C23.7337%2024.5533%2023.7104%2024.61%2023.6637%2024.65C23.6237%2024.69%2023.5704%2024.71%2023.5037%2024.71H20.0437C20.0437%2024.7167%2020.0437%2024.73%2020.0437%2024.75C20.0437%2024.77%2020.0437%2024.7867%2020.0437%2024.8C20.0571%2025.0733%2020.1171%2025.33%2020.2237%2025.57C20.3304%2025.8033%2020.4837%2025.9933%2020.6837%2026.14C20.8837%2026.2867%2021.1237%2026.36%2021.4037%2026.36C21.6437%2026.36%2021.8437%2026.3233%2022.0037%2026.25C22.1637%2026.1767%2022.2937%2026.0967%2022.3937%2026.01C22.4937%2025.9167%2022.5604%2025.8467%2022.5937%2025.8C22.6537%2025.7133%2022.7004%2025.6633%2022.7337%2025.65C22.7671%2025.63%2022.8204%2025.62%2022.8937%2025.62H23.3737C23.4404%2025.62%2023.4937%2025.64%2023.5337%2025.68C23.5804%2025.7133%2023.6004%2025.7633%2023.5937%2025.83C23.5871%2025.93%2023.5337%2026.0533%2023.4337%2026.2C23.3337%2026.34%2023.1904%2026.48%2023.0037%2026.62C22.8171%2026.76%2022.5904%2026.8767%2022.3237%2026.97C22.0571%2027.0567%2021.7504%2027.1%2021.4037%2027.1ZM20.0437%2024.02H22.7837V23.99C22.7837%2023.69%2022.7271%2023.4233%2022.6137%2023.19C22.5071%2022.9567%2022.3504%2022.7733%2022.1437%2022.64C21.9371%2022.5%2021.6904%2022.43%2021.4037%2022.43C21.1171%2022.43%2020.8704%2022.5%2020.6637%2022.64C20.4637%2022.7733%2020.3104%2022.9567%2020.2037%2023.19C20.0971%2023.4233%2020.0437%2023.69%2020.0437%2023.99V24.02Z'%20fill='%230F71B4'/%3e%3cpath%20d='M27.0594%2029.2C26.6061%2029.2%2026.2328%2029.14%2025.9394%2029.02C25.6528%2028.9%2025.4261%2028.7533%2025.2594%2028.58C25.0994%2028.4133%2024.9828%2028.2433%2024.9094%2028.07C24.8428%2027.9033%2024.8061%2027.77%2024.7994%2027.67C24.7928%2027.6033%2024.8128%2027.5467%2024.8594%2027.5C24.9128%2027.4533%2024.9694%2027.43%2025.0294%2027.43H25.5094C25.5694%2027.43%2025.6194%2027.4433%2025.6594%2027.47C25.6994%2027.4967%2025.7328%2027.5533%2025.7594%2027.64C25.7994%2027.74%2025.8594%2027.85%2025.9394%2027.97C26.0194%2028.0967%2026.1428%2028.2033%2026.3094%2028.29C26.4761%2028.3833%2026.7094%2028.43%2027.0094%2028.43C27.3228%2028.43%2027.5861%2028.3867%2027.7994%2028.3C28.0128%2028.22%2028.1728%2028.0733%2028.2794%2027.86C28.3928%2027.6533%2028.4494%2027.3667%2028.4494%2027V26.32C28.2894%2026.5267%2028.0794%2026.7%2027.8194%2026.84C27.5594%2026.9733%2027.2328%2027.04%2026.8394%2027.04C26.4661%2027.04%2026.1461%2026.9767%2025.8794%2026.85C25.6128%2026.7167%2025.3928%2026.54%2025.2194%2026.32C25.0528%2026.0933%2024.9261%2025.8367%2024.8394%2025.55C24.7594%2025.2633%2024.7128%2024.9633%2024.6994%2024.65C24.6928%2024.4633%2024.6928%2024.28%2024.6994%2024.1C24.7128%2023.7867%2024.7594%2023.4867%2024.8394%2023.2C24.9261%2022.9133%2025.0528%2022.6567%2025.2194%2022.43C25.3928%2022.2033%2025.6128%2022.0267%2025.8794%2021.9C26.1461%2021.7667%2026.4661%2021.7%2026.8394%2021.7C27.2394%2021.7%2027.5694%2021.7767%2027.8294%2021.93C28.0961%2022.0767%2028.3128%2022.2567%2028.4794%2022.47V22.04C28.4794%2021.9733%2028.4994%2021.9167%2028.5394%2021.87C28.5861%2021.8233%2028.6428%2021.8%2028.7094%2021.8H29.1694C29.2361%2021.8%2029.2928%2021.8233%2029.3394%2021.87C29.3861%2021.9167%2029.4094%2021.9733%2029.4094%2022.04V26.89C29.4094%2027.3367%2029.3328%2027.7333%2029.1794%2028.08C29.0328%2028.4267%2028.7861%2028.7%2028.4394%2028.9C28.0994%2029.1%2027.6394%2029.2%2027.0594%2029.2ZM27.0394%2026.24C27.3728%2026.24%2027.6394%2026.1633%2027.8394%2026.01C28.0461%2025.8567%2028.1961%2025.6633%2028.2894%2025.43C28.3894%2025.1967%2028.4428%2024.96%2028.4494%2024.72C28.4561%2024.6267%2028.4594%2024.5133%2028.4594%2024.38C28.4594%2024.24%2028.4561%2024.1233%2028.4494%2024.03C28.4428%2023.79%2028.3894%2023.5533%2028.2894%2023.32C28.1961%2023.0867%2028.0461%2022.8933%2027.8394%2022.74C27.6394%2022.5867%2027.3728%2022.51%2027.0394%2022.51C26.7061%2022.51%2026.4394%2022.5867%2026.2394%2022.74C26.0394%2022.8867%2025.8961%2023.0833%2025.8094%2023.33C25.7228%2023.57%2025.6728%2023.83%2025.6594%2024.11C25.6528%2024.2833%2025.6528%2024.46%2025.6594%2024.64C25.6728%2024.92%2025.7228%2025.1833%2025.8094%2025.43C25.8961%2025.67%2026.0394%2025.8667%2026.2394%2026.02C26.4394%2026.1667%2026.7061%2026.24%2027.0394%2026.24Z'%20fill='%230F71B4'/%3e%3c/svg%3e",P9="data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.9166%205.41666H11.25C10.4764%205.41666%209.73457%205.72395%209.18758%206.27093C8.6406%206.81791%208.33331%207.55977%208.33331%208.33332V31.6667C8.33331%2032.4402%208.6406%2033.1821%209.18758%2033.729C9.73457%2034.276%2010.4764%2034.5833%2011.25%2034.5833H28.75C29.5235%2034.5833%2030.2654%2034.276%2030.8124%2033.729C31.3594%2033.1821%2031.6666%2032.4402%2031.6666%2031.6667V14.1667L22.9166%205.41666Z'%20fill='%23DAEBF7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9166%204.41666C23.1819%204.41666%2023.4362%204.52201%2023.6238%204.70955L32.3738%2013.4595C32.5613%2013.6471%2032.6666%2013.9014%2032.6666%2014.1667V31.6667C32.6666%2032.7054%2032.254%2033.7016%2031.5195%2034.4362C30.785%2035.1707%2029.7887%2035.5833%2028.75%2035.5833H11.25C10.2112%2035.5833%209.215%2035.1707%208.48048%2034.4362C7.74596%2033.7016%207.33331%2032.7054%207.33331%2031.6667V8.33332C7.33331%207.29456%207.74596%206.29834%208.48048%205.56382C9.215%204.8293%2010.2112%204.41666%2011.25%204.41666H22.9166ZM31.6666%2014.1667V31.6667C31.6666%2032.4402%2031.3594%2033.1821%2030.8124%2033.729C30.2654%2034.276%2029.5235%2034.5833%2028.75%2034.5833H11.25C10.4764%2034.5833%209.73457%2034.276%209.18758%2033.729C8.6406%2033.1821%208.33331%2032.4402%208.33331%2031.6667V8.33332C8.33331%207.55977%208.6406%206.81791%209.18758%206.27093C9.73457%205.72395%2010.4764%205.41666%2011.25%205.41666H22.9166L31.6666%2014.1667Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M22.9166%205.41666V12.1667C22.9166%2013.2712%2023.8121%2014.1667%2024.9166%2014.1667H31.6666'%20fill='%230F71B4'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9166%204.91666C23.1928%204.91666%2023.4166%205.14051%2023.4166%205.41666V12.1667C23.4166%2012.9951%2024.0882%2013.6667%2024.9166%2013.6667H31.6666C31.9428%2013.6667%2032.1666%2013.8905%2032.1666%2014.1667C32.1666%2014.4428%2031.9428%2014.6667%2031.6666%2014.6667H24.9166C23.5359%2014.6667%2022.4166%2013.5474%2022.4166%2012.1667V5.41666C22.4166%205.14051%2022.6405%204.91666%2022.9166%204.91666Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M11.98%2028.9C11.9133%2028.9%2011.8567%2028.8767%2011.81%2028.83C11.77%2028.79%2011.75%2028.7367%2011.75%2028.67V22.03C11.75%2021.9633%2011.77%2021.91%2011.81%2021.87C11.8567%2021.8233%2011.9133%2021.8%2011.98%2021.8H12.44C12.5067%2021.8%2012.56%2021.8233%2012.6%2021.87C12.6467%2021.91%2012.67%2021.9633%2012.67%2022.03V22.47C12.83%2022.25%2013.0433%2022.0667%2013.31%2021.92C13.5767%2021.7733%2013.91%2021.7%2014.31%2021.7C14.6833%2021.7%2015%2021.7633%2015.26%2021.89C15.5267%2022.0167%2015.7433%2022.19%2015.91%2022.41C16.0833%2022.63%2016.2133%2022.88%2016.3%2023.16C16.3867%2023.44%2016.4333%2023.74%2016.44%2024.06C16.4467%2024.1667%2016.45%2024.28%2016.45%2024.4C16.45%2024.52%2016.4467%2024.6333%2016.44%2024.74C16.4333%2025.0533%2016.3867%2025.3533%2016.3%2025.64C16.2133%2025.92%2016.0833%2026.17%2015.91%2026.39C15.7433%2026.6033%2015.5267%2026.7767%2015.26%2026.91C15%2027.0367%2014.6833%2027.1%2014.31%2027.1C13.9233%2027.1%2013.5967%2027.03%2013.33%2026.89C13.07%2026.7433%2012.8567%2026.5633%2012.69%2026.35V28.67C12.69%2028.7367%2012.67%2028.79%2012.63%2028.83C12.59%2028.8767%2012.5333%2028.9%2012.46%2028.9H11.98ZM14.1%2026.29C14.4467%2026.29%2014.7167%2026.2167%2014.91%2026.07C15.11%2025.9167%2015.2533%2025.72%2015.34%2025.48C15.4267%2025.2333%2015.4767%2024.97%2015.49%2024.69C15.4967%2024.4967%2015.4967%2024.3033%2015.49%2024.11C15.4767%2023.83%2015.4267%2023.57%2015.34%2023.33C15.2533%2023.0833%2015.11%2022.8867%2014.91%2022.74C14.7167%2022.5867%2014.4467%2022.51%2014.1%2022.51C13.7733%2022.51%2013.5067%2022.5867%2013.3%2022.74C13.1%2022.8933%2012.95%2023.09%2012.85%2023.33C12.7567%2023.5633%2012.7033%2023.8033%2012.69%2024.05C12.6833%2024.1567%2012.68%2024.2833%2012.68%2024.43C12.68%2024.5767%2012.6833%2024.7067%2012.69%2024.82C12.6967%2025.0533%2012.75%2025.2833%2012.85%2025.51C12.9567%2025.7367%2013.1133%2025.9233%2013.32%2026.07C13.5267%2026.2167%2013.7867%2026.29%2014.1%2026.29Z'%20fill='%230F71B4'/%3e%3cpath%20d='M17.927%2027C17.8604%2027%2017.8037%2026.98%2017.757%2026.94C17.717%2026.8933%2017.697%2026.8367%2017.697%2026.77V22.03C17.697%2021.9633%2017.717%2021.91%2017.757%2021.87C17.8037%2021.8233%2017.8604%2021.8%2017.927%2021.8H18.397C18.4637%2021.8%2018.517%2021.8233%2018.557%2021.87C18.6037%2021.91%2018.627%2021.9633%2018.627%2022.03V22.47C18.8004%2022.2433%2019.017%2022.06%2019.277%2021.92C19.5437%2021.7733%2019.8837%2021.7%2020.297%2021.7C20.7304%2021.7%2021.097%2021.7967%2021.397%2021.99C21.7037%2022.1767%2021.9337%2022.44%2022.087%2022.78C22.2404%2023.1133%2022.317%2023.5033%2022.317%2023.95V26.77C22.317%2026.8367%2022.297%2026.8933%2022.257%2026.94C22.217%2026.98%2022.1637%2027%2022.097%2027H21.597C21.5304%2027%2021.4737%2026.98%2021.427%2026.94C21.387%2026.8933%2021.367%2026.8367%2021.367%2026.77V24C21.367%2023.5333%2021.2537%2023.17%2021.027%2022.91C20.8004%2022.6433%2020.467%2022.51%2020.027%2022.51C19.6137%2022.51%2019.2804%2022.6433%2019.027%2022.91C18.7804%2023.17%2018.657%2023.5333%2018.657%2024V26.77C18.657%2026.8367%2018.6337%2026.8933%2018.587%2026.94C18.547%2026.98%2018.4937%2027%2018.427%2027H17.927Z'%20fill='%230F71B4'/%3e%3cpath%20d='M25.8915%2029.2C25.4382%2029.2%2025.0648%2029.14%2024.7715%2029.02C24.4848%2028.9%2024.2582%2028.7533%2024.0915%2028.58C23.9315%2028.4133%2023.8148%2028.2433%2023.7415%2028.07C23.6748%2027.9033%2023.6382%2027.77%2023.6315%2027.67C23.6248%2027.6033%2023.6448%2027.5467%2023.6915%2027.5C23.7448%2027.4533%2023.8015%2027.43%2023.8615%2027.43H24.3415C24.4015%2027.43%2024.4515%2027.4433%2024.4915%2027.47C24.5315%2027.4967%2024.5648%2027.5533%2024.5915%2027.64C24.6315%2027.74%2024.6915%2027.85%2024.7715%2027.97C24.8515%2028.0967%2024.9748%2028.2033%2025.1415%2028.29C25.3082%2028.3833%2025.5415%2028.43%2025.8415%2028.43C26.1548%2028.43%2026.4182%2028.3867%2026.6315%2028.3C26.8448%2028.22%2027.0048%2028.0733%2027.1115%2027.86C27.2248%2027.6533%2027.2815%2027.3667%2027.2815%2027V26.32C27.1215%2026.5267%2026.9115%2026.7%2026.6515%2026.84C26.3915%2026.9733%2026.0648%2027.04%2025.6715%2027.04C25.2982%2027.04%2024.9782%2026.9767%2024.7115%2026.85C24.4448%2026.7167%2024.2248%2026.54%2024.0515%2026.32C23.8848%2026.0933%2023.7582%2025.8367%2023.6715%2025.55C23.5915%2025.2633%2023.5448%2024.9633%2023.5315%2024.65C23.5248%2024.4633%2023.5248%2024.28%2023.5315%2024.1C23.5448%2023.7867%2023.5915%2023.4867%2023.6715%2023.2C23.7582%2022.9133%2023.8848%2022.6567%2024.0515%2022.43C24.2248%2022.2033%2024.4448%2022.0267%2024.7115%2021.9C24.9782%2021.7667%2025.2982%2021.7%2025.6715%2021.7C26.0715%2021.7%2026.4015%2021.7767%2026.6615%2021.93C26.9282%2022.0767%2027.1448%2022.2567%2027.3115%2022.47V22.04C27.3115%2021.9733%2027.3315%2021.9167%2027.3715%2021.87C27.4182%2021.8233%2027.4748%2021.8%2027.5415%2021.8H28.0015C28.0681%2021.8%2028.1248%2021.8233%2028.1715%2021.87C28.2182%2021.9167%2028.2415%2021.9733%2028.2415%2022.04V26.89C28.2415%2027.3367%2028.1648%2027.7333%2028.0115%2028.08C27.8648%2028.4267%2027.6182%2028.7%2027.2715%2028.9C26.9315%2029.1%2026.4715%2029.2%2025.8915%2029.2ZM25.8715%2026.24C26.2048%2026.24%2026.4715%2026.1633%2026.6715%2026.01C26.8782%2025.8567%2027.0282%2025.6633%2027.1215%2025.43C27.2215%2025.1967%2027.2748%2024.96%2027.2815%2024.72C27.2882%2024.6267%2027.2915%2024.5133%2027.2915%2024.38C27.2915%2024.24%2027.2882%2024.1233%2027.2815%2024.03C27.2748%2023.79%2027.2215%2023.5533%2027.1215%2023.32C27.0282%2023.0867%2026.8782%2022.8933%2026.6715%2022.74C26.4715%2022.5867%2026.2048%2022.51%2025.8715%2022.51C25.5382%2022.51%2025.2715%2022.5867%2025.0715%2022.74C24.8715%2022.8867%2024.7282%2023.0833%2024.6415%2023.33C24.5548%2023.57%2024.5048%2023.83%2024.4915%2024.11C24.4848%2024.2833%2024.4848%2024.46%2024.4915%2024.64C24.5048%2024.92%2024.5548%2025.1833%2024.6415%2025.43C24.7282%2025.67%2024.8715%2025.8667%2025.0715%2026.02C25.2715%2026.1667%2025.5382%2026.24%2025.8715%2026.24Z'%20fill='%230F71B4'/%3e%3c/svg%3e",R9="data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.9167%205.41666H11.25C10.4765%205.41666%209.7346%205.72395%209.18762%206.27093C8.64063%206.81791%208.33334%207.55977%208.33334%208.33332V31.6667C8.33334%2032.4402%208.64063%2033.1821%209.18762%2033.729C9.7346%2034.276%2010.4765%2034.5833%2011.25%2034.5833H28.75C29.5236%2034.5833%2030.2654%2034.276%2030.8124%2033.729C31.3594%2033.1821%2031.6667%2032.4402%2031.6667%2031.6667V14.1667L22.9167%205.41666Z'%20fill='%23DAEBF7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9167%204.41666C23.1819%204.41666%2023.4362%204.52201%2023.6238%204.70955L32.3738%2013.4595C32.5613%2013.6471%2032.6667%2013.9014%2032.6667%2014.1667V31.6667C32.6667%2032.7054%2032.254%2033.7016%2031.5195%2034.4362C30.785%2035.1707%2029.7888%2035.5833%2028.75%2035.5833H11.25C10.2112%2035.5833%209.21503%2035.1707%208.48051%2034.4362C7.74599%2033.7016%207.33334%2032.7054%207.33334%2031.6667V8.33332C7.33334%207.29456%207.74599%206.29834%208.48051%205.56382C9.21503%204.8293%2010.2112%204.41666%2011.25%204.41666H22.9167ZM31.6667%2014.1667V31.6667C31.6667%2032.4402%2031.3594%2033.1821%2030.8124%2033.729C30.2654%2034.276%2029.5236%2034.5833%2028.75%2034.5833H11.25C10.4765%2034.5833%209.7346%2034.276%209.18762%2033.729C8.64063%2033.1821%208.33334%2032.4402%208.33334%2031.6667V8.33332C8.33334%207.55977%208.64063%206.81791%209.18762%206.27093C9.7346%205.72395%2010.4765%205.41666%2011.25%205.41666H22.9167L31.6667%2014.1667Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M22.9167%205.41666V12.1667C22.9167%2013.2712%2023.8121%2014.1667%2024.9167%2014.1667H31.6667'%20fill='%230F71B4'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9167%204.91666C23.1928%204.91666%2023.4167%205.14051%2023.4167%205.41666V12.1667C23.4167%2012.9951%2024.0883%2013.6667%2024.9167%2013.6667H31.6667C31.9428%2013.6667%2032.1667%2013.8905%2032.1667%2014.1667C32.1667%2014.4428%2031.9428%2014.6667%2031.6667%2014.6667H24.9167C23.536%2014.6667%2022.4167%2013.5474%2022.4167%2012.1667V5.41666C22.4167%205.14051%2022.6405%204.91666%2022.9167%204.91666Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M14.15%2027.1C13.45%2027.1%2012.9233%2026.8733%2012.57%2026.42C12.2233%2025.9667%2012.0367%2025.3933%2012.01%2024.7L12%2024.4L12.01%2024.1C12.0367%2023.4133%2012.2267%2022.8433%2012.58%2022.39C12.9333%2021.93%2013.4567%2021.7%2014.15%2021.7C14.8433%2021.7%2015.3833%2021.9467%2015.77%2022.44V20.13C15.77%2020.0633%2015.79%2020.01%2015.83%2019.97C15.8767%2019.9233%2015.9333%2019.9%2016%2019.9H16.45C16.5167%2019.9%2016.57%2019.9233%2016.61%2019.97C16.6567%2020.01%2016.68%2020.0633%2016.68%2020.13V26.77C16.68%2026.8367%2016.6567%2026.8933%2016.61%2026.94C16.57%2026.98%2016.5167%2027%2016.45%2027H16.02C15.9533%2027%2015.9%2026.98%2015.86%2026.94C15.82%2026.8933%2015.8%2026.8367%2015.8%2026.77V26.34C15.42%2026.8467%2014.87%2027.1%2014.15%2027.1ZM14.34%2026.32C14.8067%2026.32%2015.1567%2026.1667%2015.39%2025.86C15.6233%2025.5467%2015.75%2025.1767%2015.77%2024.75C15.7767%2024.6767%2015.78%2024.55%2015.78%2024.37C15.78%2024.1833%2015.7767%2024.0533%2015.77%2023.98C15.7567%2023.5733%2015.6267%2023.2233%2015.38%2022.93C15.14%2022.63%2014.7933%2022.48%2014.34%2022.48C13.86%2022.48%2013.51%2022.63%2013.29%2022.93C13.07%2023.23%2012.95%2023.6233%2012.93%2024.11L12.92%2024.4C12.92%2025.68%2013.3933%2026.32%2014.34%2026.32Z'%20fill='%230F71B4'/%3e%3cpath%20d='M20.2975%2027.1C19.5642%2027.1%2018.9975%2026.8933%2018.5975%2026.48C18.2042%2026.0667%2017.9942%2025.5167%2017.9675%2024.83L17.9575%2024.4L17.9675%2023.97C17.9942%2023.2833%2018.2075%2022.7333%2018.6075%2022.32C19.0142%2021.9067%2019.5775%2021.7%2020.2975%2021.7C21.0175%2021.7%2021.5775%2021.9067%2021.9775%2022.32C22.3842%2022.7333%2022.6008%2023.2833%2022.6275%2023.97C22.6408%2024.1167%2022.6475%2024.26%2022.6475%2024.4C22.6475%2024.54%2022.6408%2024.6833%2022.6275%2024.83C22.6008%2025.5167%2022.3875%2026.0667%2021.9875%2026.48C21.5942%2026.8933%2021.0308%2027.1%2020.2975%2027.1ZM20.2975%2026.35C20.7242%2026.35%2021.0608%2026.2167%2021.3075%2025.95C21.5608%2025.6767%2021.6975%2025.2867%2021.7175%2024.78C21.7242%2024.7133%2021.7275%2024.5867%2021.7275%2024.4C21.7275%2024.2133%2021.7242%2024.0867%2021.7175%2024.02C21.6975%2023.5133%2021.5608%2023.1267%2021.3075%2022.86C21.0608%2022.5867%2020.7242%2022.45%2020.2975%2022.45C19.8708%2022.45%2019.5308%2022.5867%2019.2775%2022.86C19.0308%2023.1267%2018.8975%2023.5133%2018.8775%2024.02L18.8675%2024.4L18.8775%2024.78C18.8975%2025.2867%2019.0308%2025.6767%2019.2775%2025.95C19.5308%2026.2167%2019.8708%2026.35%2020.2975%2026.35Z'%20fill='%230F71B4'/%3e%3cpath%20d='M25.9902%2027.1C25.2768%2027.1%2024.7202%2026.9%2024.3202%2026.5C23.9202%2026.0933%2023.7102%2025.5267%2023.6902%2024.8L23.6802%2024.4L23.6902%2024C23.7102%2023.2733%2023.9202%2022.71%2024.3202%2022.31C24.7202%2021.9033%2025.2768%2021.7%2025.9902%2021.7C26.4702%2021.7%2026.8735%2021.7867%2027.2002%2021.96C27.5335%2022.1267%2027.7802%2022.3367%2027.9402%2022.59C28.1068%2022.8433%2028.1968%2023.0967%2028.2102%2023.35C28.2168%2023.41%2028.1935%2023.4633%2028.1402%2023.51C28.0935%2023.5567%2028.0402%2023.58%2027.9802%2023.58H27.5402C27.4735%2023.58%2027.4235%2023.5667%2027.3902%2023.54C27.3568%2023.5067%2027.3235%2023.45%2027.2902%2023.37C27.1702%2023.0433%2027.0035%2022.8133%2026.7902%2022.68C26.5835%2022.54%2026.3202%2022.47%2026.0002%2022.47C25.5802%2022.47%2025.2468%2022.6%2025.0002%2022.86C24.7535%2023.12%2024.6202%2023.5167%2024.6002%2024.05L24.5902%2024.4L24.6002%2024.75C24.6202%2025.2833%2024.7535%2025.68%2025.0002%2025.94C25.2468%2026.2%2025.5802%2026.33%2026.0002%2026.33C26.3268%2026.33%2026.5935%2026.2633%2026.8002%2026.13C27.0068%2025.99%2027.1702%2025.7567%2027.2902%2025.43C27.3235%2025.35%2027.3568%2025.2967%2027.3902%2025.27C27.4235%2025.2367%2027.4735%2025.22%2027.5402%2025.22H27.9802C28.0402%2025.22%2028.0935%2025.2433%2028.1402%2025.29C28.1935%2025.3367%2028.2168%2025.39%2028.2102%2025.45C28.1968%2025.6967%2028.1068%2025.9467%2027.9402%2026.2C27.7802%2026.4533%2027.5335%2026.6667%2027.2002%2026.84C26.8735%2027.0133%2026.4702%2027.1%2025.9902%2027.1Z'%20fill='%230F71B4'/%3e%3c/svg%3e",V9="data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.9166%205.41666H11.25C10.4764%205.41666%209.73457%205.72395%209.18758%206.27093C8.6406%206.81791%208.33331%207.55977%208.33331%208.33332V31.6667C8.33331%2032.4402%208.6406%2033.1821%209.18758%2033.729C9.73457%2034.276%2010.4764%2034.5833%2011.25%2034.5833H28.75C29.5235%2034.5833%2030.2654%2034.276%2030.8124%2033.729C31.3594%2033.1821%2031.6666%2032.4402%2031.6666%2031.6667V14.1667L22.9166%205.41666Z'%20fill='%23DAEBF7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9166%204.41666C23.1819%204.41666%2023.4362%204.52201%2023.6238%204.70955L32.3738%2013.4595C32.5613%2013.6471%2032.6666%2013.9014%2032.6666%2014.1667V31.6667C32.6666%2032.7054%2032.254%2033.7016%2031.5195%2034.4362C30.785%2035.1707%2029.7887%2035.5833%2028.75%2035.5833H11.25C10.2112%2035.5833%209.215%2035.1707%208.48048%2034.4362C7.74596%2033.7016%207.33331%2032.7054%207.33331%2031.6667V8.33332C7.33331%207.29456%207.74596%206.29834%208.48048%205.56382C9.215%204.8293%2010.2112%204.41666%2011.25%204.41666H22.9166ZM31.6666%2014.1667V31.6667C31.6666%2032.4402%2031.3594%2033.1821%2030.8124%2033.729C30.2654%2034.276%2029.5235%2034.5833%2028.75%2034.5833H11.25C10.4764%2034.5833%209.73457%2034.276%209.18758%2033.729C8.6406%2033.1821%208.33331%2032.4402%208.33331%2031.6667V8.33332C8.33331%207.55977%208.6406%206.81791%209.18758%206.27093C9.73457%205.72395%2010.4764%205.41666%2011.25%205.41666H22.9166L31.6666%2014.1667Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M22.9166%205.41666V12.1667C22.9166%2013.2712%2023.8121%2014.1667%2024.9166%2014.1667H31.6666'%20fill='%230F71B4'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9166%204.91666C23.1928%204.91666%2023.4166%205.14051%2023.4166%205.41666V12.1667C23.4166%2012.9951%2024.0882%2013.6667%2024.9166%2013.6667H31.6666C31.9428%2013.6667%2032.1666%2013.8905%2032.1666%2014.1667C32.1666%2014.4428%2031.9428%2014.6667%2031.6666%2014.6667H24.9166C23.5359%2014.6667%2022.4166%2013.5474%2022.4166%2012.1667V5.41666C22.4166%205.14051%2022.6405%204.91666%2022.9166%204.91666Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M14.83%2027.1C14.1167%2027.1%2013.56%2026.9%2013.16%2026.5C12.76%2026.0933%2012.55%2025.5267%2012.53%2024.8L12.52%2024.4L12.53%2024C12.55%2023.2733%2012.76%2022.71%2013.16%2022.31C13.56%2021.9033%2014.1167%2021.7%2014.83%2021.7C15.31%2021.7%2015.7134%2021.7867%2016.04%2021.96C16.3734%2022.1267%2016.62%2022.3367%2016.78%2022.59C16.9467%2022.8433%2017.0367%2023.0967%2017.05%2023.35C17.0567%2023.41%2017.0334%2023.4633%2016.98%2023.51C16.9334%2023.5567%2016.88%2023.58%2016.82%2023.58H16.38C16.3134%2023.58%2016.2634%2023.5667%2016.23%2023.54C16.1967%2023.5067%2016.1634%2023.45%2016.13%2023.37C16.01%2023.0433%2015.8434%2022.8133%2015.63%2022.68C15.4234%2022.54%2015.16%2022.47%2014.84%2022.47C14.42%2022.47%2014.0867%2022.6%2013.84%2022.86C13.5934%2023.12%2013.46%2023.5167%2013.44%2024.05L13.43%2024.4L13.44%2024.75C13.46%2025.2833%2013.5934%2025.68%2013.84%2025.94C14.0867%2026.2%2014.42%2026.33%2014.84%2026.33C15.1667%2026.33%2015.4334%2026.2633%2015.64%2026.13C15.8467%2025.99%2016.01%2025.7567%2016.13%2025.43C16.1634%2025.35%2016.1967%2025.2967%2016.23%2025.27C16.2634%2025.2367%2016.3134%2025.22%2016.38%2025.22H16.82C16.88%2025.22%2016.9334%2025.2433%2016.98%2025.29C17.0334%2025.3367%2017.0567%2025.39%2017.05%2025.45C17.0367%2025.6967%2016.9467%2025.9467%2016.78%2026.2C16.62%2026.4533%2016.3734%2026.6667%2016.04%2026.84C15.7134%2027.0133%2015.31%2027.1%2014.83%2027.1Z'%20fill='%230F71B4'/%3e%3cpath%20d='M20.0281%2027.1C19.5681%2027.1%2019.1781%2027.0267%2018.8581%2026.88C18.5447%2026.7267%2018.3114%2026.5533%2018.1581%2026.36C18.0047%2026.1667%2017.9281%2026.0067%2017.9281%2025.88C17.9281%2025.8133%2017.9514%2025.7633%2017.9981%2025.73C18.0447%2025.69%2018.0947%2025.67%2018.1481%2025.67H18.5681C18.6081%2025.67%2018.6381%2025.6767%2018.6581%2025.69C18.6847%2025.7033%2018.7181%2025.7333%2018.7581%2025.78C18.9114%2025.9667%2019.0814%2026.1133%2019.2681%2026.22C19.4614%2026.3267%2019.7181%2026.38%2020.0381%2026.38C20.3981%2026.38%2020.6847%2026.3133%2020.8981%2026.18C21.1181%2026.0467%2021.2281%2025.8533%2021.2281%2025.6C21.2281%2025.4333%2021.1814%2025.3%2021.0881%2025.2C20.9947%2025.1%2020.8381%2025.01%2020.6181%2024.93C20.4047%2024.85%2020.0847%2024.7633%2019.6581%2024.67C19.0781%2024.5433%2018.6681%2024.36%2018.4281%2024.12C18.1881%2023.88%2018.0681%2023.57%2018.0681%2023.19C18.0681%2022.9433%2018.1414%2022.7067%2018.2881%2022.48C18.4347%2022.2467%2018.6514%2022.06%2018.9381%2021.92C19.2314%2021.7733%2019.5781%2021.7%2019.9781%2021.7C20.3981%2021.7%2020.7547%2021.77%2021.0481%2021.91C21.3481%2022.05%2021.5714%2022.2133%2021.7181%2022.4C21.8714%2022.5867%2021.9481%2022.7433%2021.9481%2022.87C21.9481%2022.93%2021.9247%2022.98%2021.8781%2023.02C21.8381%2023.06%2021.7881%2023.08%2021.7281%2023.08H21.3481C21.2547%2023.08%2021.1881%2023.0433%2021.1481%2022.97C21.0347%2022.8433%2020.9381%2022.7467%2020.8581%2022.68C20.7847%2022.6067%2020.6747%2022.5467%2020.5281%2022.5C20.3814%2022.4467%2020.1981%2022.42%2019.9781%2022.42C19.6514%2022.42%2019.4014%2022.49%2019.2281%2022.63C19.0547%2022.7633%2018.9681%2022.9433%2018.9681%2023.17C18.9681%2023.31%2019.0047%2023.43%2019.0781%2023.53C19.1514%2023.6233%2019.2914%2023.7133%2019.4981%2023.8C19.7047%2023.88%2020.0114%2023.9633%2020.4181%2024.05C21.0514%2024.1833%2021.4981%2024.3733%2021.7581%2024.62C22.0247%2024.8667%2022.1581%2025.1833%2022.1581%2025.57C22.1581%2025.8567%2022.0747%2026.1167%2021.9081%2026.35C21.7481%2026.5833%2021.5047%2026.7667%2021.1781%2026.9C20.8581%2027.0333%2020.4747%2027.1%2020.0281%2027.1Z'%20fill='%230F71B4'/%3e%3cpath%20d='M24.9604%2027C24.7871%2027%2024.6637%2026.9167%2024.5904%2026.75L22.7304%2022.11C22.7237%2022.09%2022.7204%2022.0567%2022.7204%2022.01C22.7204%2021.95%2022.7404%2021.9%2022.7804%2021.86C22.8204%2021.82%2022.8671%2021.8%2022.9204%2021.8H23.3804C23.4871%2021.8%2023.5671%2021.8533%2023.6204%2021.96L25.1604%2025.95L26.7004%2021.96C26.7137%2021.92%2026.7404%2021.8833%2026.7804%2021.85C26.8271%2021.8167%2026.8804%2021.8%2026.9404%2021.8H27.4004C27.4537%2021.8%2027.5004%2021.82%2027.5404%2021.86C27.5804%2021.9%2027.6004%2021.95%2027.6004%2022.01L27.5804%2022.11L25.7304%2026.75C25.6571%2026.9167%2025.5337%2027%2025.3604%2027H24.9604Z'%20fill='%230F71B4'/%3e%3c/svg%3e",H9="data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.9166%205.41666H11.25C10.4764%205.41666%209.73457%205.72395%209.18758%206.27093C8.6406%206.81791%208.33331%207.55977%208.33331%208.33332V31.6667C8.33331%2032.4402%208.6406%2033.1821%209.18758%2033.729C9.73457%2034.276%2010.4764%2034.5833%2011.25%2034.5833H28.75C29.5235%2034.5833%2030.2654%2034.276%2030.8124%2033.729C31.3594%2033.1821%2031.6666%2032.4402%2031.6666%2031.6667V14.1667L22.9166%205.41666Z'%20fill='%23DAEBF7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9166%204.41666C23.1819%204.41666%2023.4362%204.52201%2023.6238%204.70955L32.3738%2013.4595C32.5613%2013.6471%2032.6666%2013.9014%2032.6666%2014.1667V31.6667C32.6666%2032.7054%2032.254%2033.7016%2031.5195%2034.4362C30.785%2035.1707%2029.7887%2035.5833%2028.75%2035.5833H11.25C10.2112%2035.5833%209.215%2035.1707%208.48048%2034.4362C7.74596%2033.7016%207.33331%2032.7054%207.33331%2031.6667V8.33332C7.33331%207.29456%207.74596%206.29834%208.48048%205.56382C9.215%204.8293%2010.2112%204.41666%2011.25%204.41666H22.9166ZM31.6666%2014.1667V31.6667C31.6666%2032.4402%2031.3594%2033.1821%2030.8124%2033.729C30.2654%2034.276%2029.5235%2034.5833%2028.75%2034.5833H11.25C10.4764%2034.5833%209.73457%2034.276%209.18758%2033.729C8.6406%2033.1821%208.33331%2032.4402%208.33331%2031.6667V8.33332C8.33331%207.55977%208.6406%206.81791%209.18758%206.27093C9.73457%205.72395%2010.4764%205.41666%2011.25%205.41666H22.9166L31.6666%2014.1667Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M22.9166%205.41666V12.1667C22.9166%2013.2712%2023.8121%2014.1667%2024.9166%2014.1667H31.6666'%20fill='%230F71B4'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9166%204.91666C23.1928%204.91666%2023.4166%205.14051%2023.4166%205.41666V12.1667C23.4166%2012.9951%2024.0882%2013.6667%2024.9166%2013.6667H31.6666C31.9428%2013.6667%2032.1666%2013.8905%2032.1666%2014.1667C32.1666%2014.4428%2031.9428%2014.6667%2031.6666%2014.6667H24.9166C23.5359%2014.6667%2022.4166%2013.5474%2022.4166%2012.1667V5.41666C22.4166%205.14051%2022.6405%204.91666%2022.9166%204.91666Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M14.51%2027C14.45%2027%2014.4%2026.98%2014.36%2026.94C14.32%2026.9%2014.3%2026.85%2014.3%2026.79C14.3%2026.73%2014.3233%2026.6667%2014.37%2026.6L16.11%2024.34L14.48%2022.19C14.4267%2022.1167%2014.4%2022.0567%2014.4%2022.01C14.4%2021.95%2014.42%2021.9%2014.46%2021.86C14.5067%2021.82%2014.5567%2021.8%2014.61%2021.8H15.09C15.19%2021.8%2015.2767%2021.8533%2015.35%2021.96L16.7%2023.71L18.05%2021.96C18.09%2021.9067%2018.1267%2021.8667%2018.16%2021.84C18.2%2021.8133%2018.25%2021.8%2018.31%2021.8H18.77C18.8233%2021.8%2018.87%2021.82%2018.91%2021.86C18.95%2021.9%2018.97%2021.9467%2018.97%2022C18.97%2022.0667%2018.9467%2022.13%2018.9%2022.19L17.25%2024.36L18.99%2026.6C19.0367%2026.6667%2019.06%2026.73%2019.06%2026.79C19.06%2026.85%2019.04%2026.9%2019%2026.94C18.96%2026.98%2018.91%2027%2018.85%2027H18.36C18.26%2027%2018.1733%2026.95%2018.1%2026.85L16.67%2025L15.24%2026.85C15.2%2026.8967%2015.16%2026.9333%2015.12%2026.96C15.0867%2026.9867%2015.04%2027%2014.98%2027H14.51Z'%20fill='%230F71B4'/%3e%3cpath%20d='M20.3611%2027C20.2944%2027%2020.2377%2026.98%2020.1911%2026.94C20.1511%2026.8933%2020.1311%2026.8367%2020.1311%2026.77V20.13C20.1311%2020.0567%2020.1511%2020%2020.1911%2019.96C20.2377%2019.92%2020.2944%2019.9%2020.3611%2019.9H20.8011C20.8677%2019.9%2020.9211%2019.9233%2020.9611%2019.97C21.0077%2020.01%2021.0311%2020.0633%2021.0311%2020.13V26.77C21.0311%2026.8367%2021.0077%2026.8933%2020.9611%2026.94C20.9211%2026.98%2020.8677%2027%2020.8011%2027H20.3611Z'%20fill='%230F71B4'/%3e%3cpath%20d='M24.3132%2027.1C23.8532%2027.1%2023.4632%2027.0267%2023.1432%2026.88C22.8299%2026.7267%2022.5965%2026.5533%2022.4432%2026.36C22.2899%2026.1667%2022.2132%2026.0067%2022.2132%2025.88C22.2132%2025.8133%2022.2365%2025.7633%2022.2832%2025.73C22.3299%2025.69%2022.3799%2025.67%2022.4332%2025.67H22.8532C22.8932%2025.67%2022.9232%2025.6767%2022.9432%2025.69C22.9699%2025.7033%2023.0032%2025.7333%2023.0432%2025.78C23.1965%2025.9667%2023.3665%2026.1133%2023.5532%2026.22C23.7465%2026.3267%2024.0032%2026.38%2024.3232%2026.38C24.6832%2026.38%2024.9699%2026.3133%2025.1832%2026.18C25.4032%2026.0467%2025.5132%2025.8533%2025.5132%2025.6C25.5132%2025.4333%2025.4665%2025.3%2025.3732%2025.2C25.2799%2025.1%2025.1232%2025.01%2024.9032%2024.93C24.6899%2024.85%2024.3699%2024.7633%2023.9432%2024.67C23.3632%2024.5433%2022.9532%2024.36%2022.7132%2024.12C22.4732%2023.88%2022.3532%2023.57%2022.3532%2023.19C22.3532%2022.9433%2022.4265%2022.7067%2022.5732%2022.48C22.7199%2022.2467%2022.9365%2022.06%2023.2232%2021.92C23.5165%2021.7733%2023.8632%2021.7%2024.2632%2021.7C24.6832%2021.7%2025.0399%2021.77%2025.3332%2021.91C25.6332%2022.05%2025.8565%2022.2133%2026.0032%2022.4C26.1565%2022.5867%2026.2332%2022.7433%2026.2332%2022.87C26.2332%2022.93%2026.2099%2022.98%2026.1632%2023.02C26.1232%2023.06%2026.0732%2023.08%2026.0132%2023.08H25.6332C25.5399%2023.08%2025.4732%2023.0433%2025.4332%2022.97C25.3199%2022.8433%2025.2232%2022.7467%2025.1432%2022.68C25.0699%2022.6067%2024.9599%2022.5467%2024.8132%2022.5C24.6665%2022.4467%2024.4832%2022.42%2024.2632%2022.42C23.9365%2022.42%2023.6865%2022.49%2023.5132%2022.63C23.3399%2022.7633%2023.2532%2022.9433%2023.2532%2023.17C23.2532%2023.31%2023.2899%2023.43%2023.3632%2023.53C23.4365%2023.6233%2023.5765%2023.7133%2023.7832%2023.8C23.9899%2023.88%2024.2965%2023.9633%2024.7032%2024.05C25.3365%2024.1833%2025.7832%2024.3733%2026.0432%2024.62C26.3099%2024.8667%2026.4432%2025.1833%2026.4432%2025.57C26.4432%2025.8567%2026.3599%2026.1167%2026.1932%2026.35C26.0332%2026.5833%2025.7899%2026.7667%2025.4632%2026.9C25.1432%2027.0333%2024.7599%2027.1%2024.3132%2027.1Z'%20fill='%230F71B4'/%3e%3c/svg%3e",F9="data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.9166%205.41666H11.25C10.4764%205.41666%209.73457%205.72395%209.18758%206.27093C8.6406%206.81791%208.33331%207.55977%208.33331%208.33332V31.6667C8.33331%2032.4402%208.6406%2033.1821%209.18758%2033.729C9.73457%2034.276%2010.4764%2034.5833%2011.25%2034.5833H28.75C29.5235%2034.5833%2030.2654%2034.276%2030.8124%2033.729C31.3594%2033.1821%2031.6666%2032.4402%2031.6666%2031.6667V14.1667L22.9166%205.41666Z'%20fill='%23DAEBF7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9166%204.41666C23.1819%204.41666%2023.4362%204.52201%2023.6238%204.70955L32.3738%2013.4595C32.5613%2013.6471%2032.6666%2013.9014%2032.6666%2014.1667V31.6667C32.6666%2032.7054%2032.254%2033.7016%2031.5195%2034.4362C30.785%2035.1707%2029.7887%2035.5833%2028.75%2035.5833H11.25C10.2112%2035.5833%209.215%2035.1707%208.48048%2034.4362C7.74596%2033.7016%207.33331%2032.7054%207.33331%2031.6667V8.33332C7.33331%207.29456%207.74596%206.29834%208.48048%205.56382C9.215%204.8293%2010.2112%204.41666%2011.25%204.41666H22.9166ZM31.6666%2014.1667V31.6667C31.6666%2032.4402%2031.3594%2033.1821%2030.8124%2033.729C30.2654%2034.276%2029.5235%2034.5833%2028.75%2034.5833H11.25C10.4764%2034.5833%209.73457%2034.276%209.18758%2033.729C8.6406%2033.1821%208.33331%2032.4402%208.33331%2031.6667V8.33332C8.33331%207.55977%208.6406%206.81791%209.18758%206.27093C9.73457%205.72395%2010.4764%205.41666%2011.25%205.41666H22.9166L31.6666%2014.1667Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M22.9167%205.41666V12.1667C22.9167%2013.2712%2023.8121%2014.1667%2024.9167%2014.1667H31.6667'%20fill='%230F71B4'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9167%204.91666C23.1928%204.91666%2023.4167%205.14051%2023.4167%205.41666V12.1667C23.4167%2012.9951%2024.0882%2013.6667%2024.9167%2013.6667H31.6667C31.9428%2013.6667%2032.1667%2013.8905%2032.1667%2014.1667C32.1667%2014.4428%2031.9428%2014.6667%2031.6667%2014.6667H24.9167C23.5359%2014.6667%2022.4167%2013.5474%2022.4167%2012.1667V5.41666C22.4167%205.14051%2022.6405%204.91666%2022.9167%204.91666Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M15.75%2027C14.7167%2027%2014.2%2026.4167%2014.2%2025.25V22.57H13.41C13.3433%2022.57%2013.29%2022.55%2013.25%2022.51C13.21%2022.47%2013.19%2022.4167%2013.19%2022.35V22.03C13.19%2021.9633%2013.21%2021.91%2013.25%2021.87C13.29%2021.8233%2013.3433%2021.8%2013.41%2021.8H14.2V20.13C14.2%2020.0633%2014.22%2020.01%2014.26%2019.97C14.3%2019.9233%2014.3533%2019.9%2014.42%2019.9H14.86C14.9267%2019.9%2014.98%2019.9233%2015.02%2019.97C15.0667%2020.01%2015.09%2020.0633%2015.09%2020.13V21.8H16.33C16.3967%2021.8%2016.45%2021.8233%2016.49%2021.87C16.5367%2021.91%2016.56%2021.9633%2016.56%2022.03V22.35C16.56%2022.4167%2016.5367%2022.47%2016.49%2022.51C16.45%2022.55%2016.3967%2022.57%2016.33%2022.57H15.09V25.18C15.09%2025.52%2015.1433%2025.7767%2015.25%2025.95C15.3633%2026.1233%2015.5533%2026.21%2015.82%2026.21H16.43C16.4967%2026.21%2016.55%2026.2333%2016.59%2026.28C16.63%2026.32%2016.65%2026.3733%2016.65%2026.44V26.77C16.65%2026.8367%2016.63%2026.8933%2016.59%2026.94C16.55%2026.98%2016.4967%2027%2016.43%2027H15.75Z'%20fill='%230F71B4'/%3e%3cpath%20d='M17.387%2027C17.327%2027%2017.277%2026.98%2017.237%2026.94C17.197%2026.9%2017.177%2026.85%2017.177%2026.79C17.177%2026.73%2017.2003%2026.6667%2017.247%2026.6L18.987%2024.34L17.357%2022.19C17.3036%2022.1167%2017.277%2022.0567%2017.277%2022.01C17.277%2021.95%2017.297%2021.9%2017.337%2021.86C17.3836%2021.82%2017.4336%2021.8%2017.487%2021.8H17.967C18.067%2021.8%2018.1536%2021.8533%2018.227%2021.96L19.577%2023.71L20.927%2021.96C20.967%2021.9067%2021.0036%2021.8667%2021.037%2021.84C21.077%2021.8133%2021.127%2021.8%2021.187%2021.8H21.647C21.7003%2021.8%2021.747%2021.82%2021.787%2021.86C21.827%2021.9%2021.847%2021.9467%2021.847%2022C21.847%2022.0667%2021.8236%2022.13%2021.777%2022.19L20.127%2024.36L21.867%2026.6C21.9136%2026.6667%2021.937%2026.73%2021.937%2026.79C21.937%2026.85%2021.917%2026.9%2021.877%2026.94C21.837%2026.98%2021.787%2027%2021.727%2027H21.237C21.137%2027%2021.0503%2026.95%2020.977%2026.85L19.547%2025L18.117%2026.85C18.077%2026.8967%2018.037%2026.9333%2017.997%2026.96C17.9636%2026.9867%2017.917%2027%2017.857%2027H17.387Z'%20fill='%230F71B4'/%3e%3cpath%20d='M24.998%2027C23.9647%2027%2023.448%2026.4167%2023.448%2025.25V22.57H22.658C22.5914%2022.57%2022.538%2022.55%2022.498%2022.51C22.458%2022.47%2022.438%2022.4167%2022.438%2022.35V22.03C22.438%2021.9633%2022.458%2021.91%2022.498%2021.87C22.538%2021.8233%2022.5914%2021.8%2022.658%2021.8H23.448V20.13C23.448%2020.0633%2023.468%2020.01%2023.508%2019.97C23.548%2019.9233%2023.6014%2019.9%2023.668%2019.9H24.108C24.1747%2019.9%2024.228%2019.9233%2024.268%2019.97C24.3147%2020.01%2024.338%2020.0633%2024.338%2020.13V21.8H25.578C25.6447%2021.8%2025.698%2021.8233%2025.738%2021.87C25.7847%2021.91%2025.808%2021.9633%2025.808%2022.03V22.35C25.808%2022.4167%2025.7847%2022.47%2025.738%2022.51C25.698%2022.55%2025.6447%2022.57%2025.578%2022.57H24.338V25.18C24.338%2025.52%2024.3914%2025.7767%2024.498%2025.95C24.6114%2026.1233%2024.8014%2026.21%2025.068%2026.21H25.678C25.7447%2026.21%2025.798%2026.2333%2025.838%2026.28C25.878%2026.32%2025.898%2026.3733%2025.898%2026.44V26.77C25.898%2026.8367%2025.878%2026.8933%2025.838%2026.94C25.798%2026.98%2025.7447%2027%2025.678%2027H24.998Z'%20fill='%230F71B4'/%3e%3c/svg%3e",z9="data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.9167%205.41666H11.25C10.4765%205.41666%209.7346%205.72395%209.18762%206.27093C8.64063%206.81791%208.33334%207.55977%208.33334%208.33332V31.6667C8.33334%2032.4402%208.64063%2033.1821%209.18762%2033.729C9.7346%2034.276%2010.4765%2034.5833%2011.25%2034.5833H28.75C29.5236%2034.5833%2030.2654%2034.276%2030.8124%2033.729C31.3594%2033.1821%2031.6667%2032.4402%2031.6667%2031.6667V14.1667L22.9167%205.41666Z'%20fill='%23DAEBF7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9167%204.41666C23.1819%204.41666%2023.4362%204.52201%2023.6238%204.70955L32.3738%2013.4595C32.5613%2013.6471%2032.6667%2013.9014%2032.6667%2014.1667V31.6667C32.6667%2032.7054%2032.254%2033.7016%2031.5195%2034.4362C30.785%2035.1707%2029.7888%2035.5833%2028.75%2035.5833H11.25C10.2112%2035.5833%209.21503%2035.1707%208.48051%2034.4362C7.74599%2033.7016%207.33334%2032.7054%207.33334%2031.6667V8.33332C7.33334%207.29456%207.74599%206.29834%208.48051%205.56382C9.21503%204.8293%2010.2112%204.41666%2011.25%204.41666H22.9167ZM31.6667%2014.1667V31.6667C31.6667%2032.4402%2031.3594%2033.1821%2030.8124%2033.729C30.2654%2034.276%2029.5236%2034.5833%2028.75%2034.5833H11.25C10.4765%2034.5833%209.7346%2034.276%209.18762%2033.729C8.64063%2033.1821%208.33334%2032.4402%208.33334%2031.6667V8.33332C8.33334%207.55977%208.64063%206.81791%209.18762%206.27093C9.7346%205.72395%2010.4765%205.41666%2011.25%205.41666H22.9167L31.6667%2014.1667Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M22.9167%205.41666V12.1667C22.9167%2013.2712%2023.8121%2014.1667%2024.9167%2014.1667H31.6667'%20fill='%230F71B4'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9167%204.91666C23.1928%204.91666%2023.4167%205.14051%2023.4167%205.41666V12.1667C23.4167%2012.9951%2024.0883%2013.6667%2024.9167%2013.6667H31.6667C31.9428%2013.6667%2032.1667%2013.8905%2032.1667%2014.1667C32.1667%2014.4428%2031.9428%2014.6667%2031.6667%2014.6667H24.9167C23.536%2014.6667%2022.4167%2013.5474%2022.4167%2012.1667V5.41666C22.4167%205.14051%2022.6405%204.91666%2022.9167%204.91666Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M10.98%2027C10.9133%2027%2010.8567%2026.98%2010.81%2026.94C10.77%2026.8933%2010.75%2026.8367%2010.75%2026.77V22.03C10.75%2021.9633%2010.77%2021.91%2010.81%2021.87C10.8567%2021.8233%2010.9133%2021.8%2010.98%2021.8H11.4C11.4667%2021.8%2011.52%2021.8233%2011.56%2021.87C11.6%2021.91%2011.62%2021.9633%2011.62%2022.03V22.37C11.98%2021.9233%2012.4667%2021.7%2013.08%2021.7C13.8133%2021.7%2014.3333%2022.0067%2014.64%2022.62C14.8%2022.34%2015.0267%2022.1167%2015.32%2021.95C15.62%2021.7833%2015.9533%2021.7%2016.32%2021.7C16.8667%2021.7%2017.3133%2021.8867%2017.66%2022.26C18.0067%2022.6333%2018.18%2023.1733%2018.18%2023.88V26.77C18.18%2026.8367%2018.1567%2026.8933%2018.11%2026.94C18.07%2026.98%2018.0167%2027%2017.95%2027H17.52C17.4533%2027%2017.3967%2026.98%2017.35%2026.94C17.31%2026.8933%2017.29%2026.8367%2017.29%2026.77V23.97C17.29%2023.4367%2017.18%2023.0567%2016.96%2022.83C16.74%2022.5967%2016.45%2022.48%2016.09%2022.48C15.77%2022.48%2015.4933%2022.6%2015.26%2022.84C15.0333%2023.0733%2014.92%2023.45%2014.92%2023.97V26.77C14.92%2026.8367%2014.8967%2026.8933%2014.85%2026.94C14.81%2026.98%2014.7567%2027%2014.69%2027H14.25C14.1833%2027%2014.1267%2026.98%2014.08%2026.94C14.04%2026.8933%2014.02%2026.8367%2014.02%2026.77V23.97C14.02%2023.4433%2013.9033%2023.0633%2013.67%2022.83C13.4433%2022.5967%2013.16%2022.48%2012.82%2022.48C12.5%2022.48%2012.2233%2022.5967%2011.99%2022.83C11.7633%2023.0633%2011.65%2023.44%2011.65%2023.96V26.77C11.65%2026.8367%2011.6267%2026.8933%2011.58%2026.94C11.54%2026.98%2011.4867%2027%2011.42%2027H10.98Z'%20fill='%230F71B4'/%3e%3cpath%20d='M19.867%2028.9C19.8003%2028.9%2019.7436%2028.88%2019.697%2028.84C19.657%2028.8%2019.637%2028.7433%2019.637%2028.67V22.03C19.637%2021.9567%2019.657%2021.9%2019.697%2021.86C19.7436%2021.82%2019.8003%2021.8%2019.867%2021.8H20.287C20.3603%2021.8%2020.417%2021.82%2020.457%2021.86C20.497%2021.9%2020.517%2021.9567%2020.517%2022.03V22.47C20.9036%2021.9567%2021.4536%2021.7%2022.167%2021.7C22.867%2021.7%2023.3903%2021.9233%2023.737%2022.37C24.0903%2022.81%2024.277%2023.3733%2024.297%2024.06C24.3036%2024.1333%2024.307%2024.2467%2024.307%2024.4C24.307%2024.5533%2024.3036%2024.6667%2024.297%2024.74C24.277%2025.42%2024.0903%2025.9833%2023.737%2026.43C23.3903%2026.8767%2022.867%2027.1%2022.167%2027.1C21.4536%2027.1%2020.9136%2026.8467%2020.547%2026.34V28.67C20.547%2028.7367%2020.5236%2028.79%2020.477%2028.83C20.437%2028.8767%2020.3836%2028.9%2020.317%2028.9H19.867ZM21.977%2026.32C22.457%2026.32%2022.807%2026.17%2023.027%2025.87C23.247%2025.57%2023.367%2025.1767%2023.387%2024.69C23.3936%2024.6233%2023.397%2024.5267%2023.397%2024.4C23.397%2023.12%2022.9236%2022.48%2021.977%2022.48C21.5103%2022.48%2021.157%2022.6367%2020.917%2022.95C20.6836%2023.2567%2020.5603%2023.62%2020.547%2024.04C20.5403%2024.1133%2020.537%2024.2433%2020.537%2024.43C20.537%2024.6167%2020.5403%2024.7467%2020.547%2024.82C20.5603%2025.2267%2020.687%2025.58%2020.927%2025.88C21.1736%2026.1733%2021.5236%2026.32%2021.977%2026.32Z'%20fill='%230F71B4'/%3e%3cpath%20d='M28.8345%2027C28.7678%2027%2028.7111%2026.98%2028.6645%2026.94C28.6245%2026.8933%2028.6045%2026.8367%2028.6045%2026.77V25.31H25.3545C25.2878%2025.31%2025.2311%2025.29%2025.1845%2025.25C25.1445%2025.2033%2025.1245%2025.1467%2025.1245%2025.08V24.71C25.1245%2024.6167%2025.1611%2024.5167%2025.2345%2024.41L28.2445%2020.17C28.2778%2020.1167%2028.3278%2020.0767%2028.3945%2020.05C28.4611%2020.0167%2028.5345%2020%2028.6145%2020H29.2945C29.3678%2020%2029.4245%2020.02%2029.4645%2020.06C29.5045%2020.1%2029.5245%2020.1567%2029.5245%2020.23V24.47H30.4345C30.5011%2024.47%2030.5545%2024.4933%2030.5945%2024.54C30.6411%2024.58%2030.6645%2024.6333%2030.6645%2024.7V25.08C30.6645%2025.1467%2030.6411%2025.2033%2030.5945%2025.25C30.5545%2025.29%2030.5011%2025.31%2030.4345%2025.31H29.5245V26.77C29.5245%2026.8367%2029.5011%2026.8933%2029.4545%2026.94C29.4145%2026.98%2029.3611%2027%2029.2945%2027H28.8345ZM26.1645%2024.49H28.6145V21.01L26.1645%2024.49Z'%20fill='%230F71B4'/%3e%3c/svg%3e",$9="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.268%202.99995C11.0378%201.66662%2012.9623%201.66662%2013.7321%202.99995L22.3924%2018C23.1622%2019.3333%2022.1999%2021%2020.6603%2021H3.33977C1.80017%2021%200.837913%2019.3333%201.60771%2018L10.268%202.99995Z'%20fill='%23E68B86'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%207.99995C11.4477%207.99995%2011%208.44766%2011%208.99995V13C11%2013.5522%2011.4477%2013.9999%2012%2013.9999C12.5522%2013.9999%2013%2013.5522%2013%2013V8.99995C13%208.44766%2012.5522%207.99995%2012%207.99995ZM12%2015.75C11.3097%2015.75%2010.75%2016.3096%2010.75%2016.9999C10.75%2017.6903%2011.3097%2018.25%2012%2018.25H12.01C12.7003%2018.25%2013.26%2017.6903%2013.26%2016.9999C13.26%2016.3096%2012.7003%2015.75%2012.01%2015.75H12Z'%20fill='white'/%3e%3c/svg%3e",j9="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.0509%204.78947C11.6586%203.73684%2013.178%203.73684%2013.7857%204.78947L20.6228%2016.6316C21.2305%2017.6842%2020.4709%2019%2019.2554%2019H5.58131C4.36583%2019%203.60616%2017.6842%204.21389%2016.6316L11.0509%204.78947Z'%20fill='%23F3CCA8'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.4184%208.73682C11.9823%208.73682%2011.6289%209.09028%2011.6289%209.52629V12.6842C11.6289%2013.1202%2011.9823%2013.4737%2012.4184%2013.4737C12.8544%2013.4737%2013.2078%2013.1202%2013.2078%2012.6842V9.52629C13.2078%209.09028%2012.8544%208.73682%2012.4184%208.73682ZM12.4184%2014.8552C11.8733%2014.8552%2011.4315%2015.297%2011.4315%2015.8421C11.4315%2016.3871%2011.8733%2016.8289%2012.4184%2016.8289H12.4263C12.9713%2016.8289%2013.4131%2016.3871%2013.4131%2015.8421C13.4131%2015.297%2012.9713%2014.8552%2012.4263%2014.8552H12.4184Z'%20fill='white'/%3e%3c/svg%3e",W9="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%2019a7%207%200%201%200%200-14%207%207%200%200%200%200%2014zm8-7a8%208%200%201%201-16%200%208%208%200%200%201%2016%200z'%20fill='%23BFBFBF'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%207.5a.5.5%200%200%201%20.5.5v4.923l3.7%201.619a.5.5%200%201%201-.4.916l-4-1.75a.5.5%200%200%201-.3-.458V8a.5.5%200%200%201%20.5-.5z'%20fill='%23BFBFBF'/%3e%3c/svg%3e",Wc="data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.9167%205.41666H11.25C10.4765%205.41666%209.7346%205.72395%209.18762%206.27093C8.64063%206.81791%208.33334%207.55977%208.33334%208.33332V31.6667C8.33334%2032.4402%208.64063%2033.1821%209.18762%2033.729C9.7346%2034.276%2010.4765%2034.5833%2011.25%2034.5833H28.75C29.5236%2034.5833%2030.2654%2034.276%2030.8124%2033.729C31.3594%2033.1821%2031.6667%2032.4402%2031.6667%2031.6667V14.1667L22.9167%205.41666Z'%20fill='%23DAEBF7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9167%204.41666C23.1819%204.41666%2023.4362%204.52201%2023.6238%204.70955L32.3738%2013.4595C32.5613%2013.6471%2032.6667%2013.9014%2032.6667%2014.1667V31.6667C32.6667%2032.7054%2032.254%2033.7016%2031.5195%2034.4362C30.785%2035.1707%2029.7888%2035.5833%2028.75%2035.5833H11.25C10.2112%2035.5833%209.21503%2035.1707%208.48051%2034.4362C7.74599%2033.7016%207.33334%2032.7054%207.33334%2031.6667V8.33332C7.33334%207.29456%207.74599%206.29834%208.48051%205.56382C9.21503%204.8293%2010.2112%204.41666%2011.25%204.41666H22.9167ZM31.6667%2014.1667V31.6667C31.6667%2032.4402%2031.3594%2033.1821%2030.8124%2033.729C30.2654%2034.276%2029.5236%2034.5833%2028.75%2034.5833H11.25C10.4765%2034.5833%209.7346%2034.276%209.18762%2033.729C8.64063%2033.1821%208.33334%2032.4402%208.33334%2031.6667V8.33332C8.33334%207.55977%208.64063%206.81791%209.18762%206.27093C9.7346%205.72395%2010.4765%205.41666%2011.25%205.41666H22.9167L31.6667%2014.1667Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M22.9167%205.41666V12.1667C22.9167%2013.2712%2023.8121%2014.1667%2024.9167%2014.1667H31.6667'%20fill='%230F71B4'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9167%204.91666C23.1928%204.91666%2023.4167%205.14051%2023.4167%205.41666V12.1667C23.4167%2012.9951%2024.0882%2013.6667%2024.9167%2013.6667H31.6667C31.9428%2013.6667%2032.1667%2013.8905%2032.1667%2014.1667C32.1667%2014.4428%2031.9428%2014.6667%2031.6667%2014.6667H24.9167C23.536%2014.6667%2022.4167%2013.5474%2022.4167%2012.1667V5.41666C22.4167%205.14051%2022.6405%204.91666%2022.9167%204.91666Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M19.43%2025.36C19.37%2025.36%2019.32%2025.34%2019.28%2025.3C19.24%2025.26%2019.22%2025.21%2019.22%2025.15V24.75C19.2333%2024.3967%2019.3233%2024.0933%2019.49%2023.84C19.6567%2023.5867%2019.9%2023.2967%2020.22%2022.97C20.48%2022.7033%2020.67%2022.4833%2020.79%2022.31C20.91%2022.1367%2020.97%2021.9467%2020.97%2021.74C20.97%2021.4333%2020.84%2021.19%2020.58%2021.01C20.3267%2020.83%2020.03%2020.74%2019.69%2020.74C18.8967%2020.74%2018.43%2021.14%2018.29%2021.94C18.2567%2022.0867%2018.17%2022.16%2018.03%2022.16H17.55C17.4833%2022.16%2017.43%2022.14%2017.39%2022.1C17.35%2022.06%2017.33%2022.0067%2017.33%2021.94C17.3433%2021.5733%2017.4467%2021.2367%2017.64%2020.93C17.84%2020.6167%2018.12%2020.3667%2018.48%2020.18C18.84%2019.9933%2019.2533%2019.9%2019.72%2019.9C20.2133%2019.9%2020.6267%2019.9867%2020.96%2020.16C21.3%2020.3267%2021.55%2020.5467%2021.71%2020.82C21.87%2021.0867%2021.95%2021.3733%2021.95%2021.68C21.95%2022.02%2021.8733%2022.3133%2021.72%2022.56C21.5667%2022.8067%2021.3367%2023.0933%2021.03%2023.42C20.7767%2023.6867%2020.5867%2023.9133%2020.46%2024.1C20.3333%2024.28%2020.26%2024.4833%2020.24%2024.71C20.2267%2024.8967%2020.22%2025.0367%2020.22%2025.13C20.1867%2025.2833%2020.1033%2025.36%2019.97%2025.36H19.43ZM19.35%2027C19.2833%2027%2019.2267%2026.98%2019.18%2026.94C19.14%2026.8933%2019.12%2026.8367%2019.12%2026.77V26.16C19.12%2026.0933%2019.14%2026.04%2019.18%2026C19.2267%2025.9533%2019.2833%2025.93%2019.35%2025.93H20C20.0667%2025.93%2020.1233%2025.9533%2020.17%2026C20.2167%2026.04%2020.24%2026.0933%2020.24%2026.16V26.77C20.24%2026.8367%2020.2167%2026.8933%2020.17%2026.94C20.1233%2026.98%2020.0667%2027%2020%2027H19.35Z'%20fill='%230F71B4'/%3e%3c/svg%3e";class Mq{static get toolbox(){return{title:"Attachment",icon:'<svg width="15" height="16" viewBox="0 0 15 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.34181 3.175C8.86733 3.175 8.41228 3.36348 8.07677 3.69899L3.96053 7.81523C3.45247 8.33711 3.17027 9.03805 3.17501 9.76641C3.17975 10.4951 3.47134 11.1927 3.98665 11.708C4.50195 12.2233 5.19949 12.5149 5.92823 12.5196C6.6566 12.5244 7.35753 12.2422 7.87942 11.7341C7.87968 11.7338 7.87994 11.7336 7.88021 11.7333L11.8762 7.7373L12.1237 7.98479L8.12446 11.984C7.53657 12.5568 6.74672 12.875 5.92595 12.8696C5.10518 12.8643 4.31955 12.5359 3.73916 11.9555C3.15878 11.3751 2.83036 10.5895 2.82502 9.76869C2.81968 8.94792 3.13784 8.15807 3.71063 7.57019L3.71222 7.56855L7.82928 3.45151C8.23043 3.05036 8.77451 2.825 9.34181 2.825C9.90912 2.825 10.4532 3.05036 10.8543 3.45151C11.2555 3.85266 11.4809 4.39673 11.4809 4.96404C11.4809 5.53135 11.2555 6.07542 10.8543 6.47657L6.85603 10.4749C6.63904 10.6919 6.34475 10.8138 6.03789 10.8138C5.73103 10.8138 5.43674 10.6919 5.21975 10.4749C5.00277 10.2579 4.88087 9.96361 4.88087 9.65675C4.88087 9.34989 5.00277 9.05559 5.21975 8.83861L9.09863 4.95973L9.34612 5.20722L5.46724 9.0861C5.3159 9.23744 5.23087 9.44271 5.23087 9.65675C5.23087 9.87078 5.3159 10.0761 5.46724 10.2274C5.61859 10.3787 5.82386 10.4638 6.03789 10.4638C6.25193 10.4638 6.45719 10.3787 6.60854 10.2274L10.6069 6.22908C10.9424 5.89357 11.1309 5.43852 11.1309 4.96404C11.1309 4.48955 10.9424 4.03451 10.6069 3.69899C10.2713 3.36348 9.8163 3.175 9.34181 3.175Z" fill="black"/></svg>'}}constructor({data:e,config:t,api:r}){this.data=e,this.config=t||{},this.api=r,this.lastReadOnly=this.api?.readOnly?.isEnabled,this.config.standardFormats=[".pdf",".csv",".doc",".jpeg",".jpg",".mp4",".png",".txt",".xls"]}render(){const e=this.createContainer();this.wrapper=this.createWrapper();const t=this.createFileInput(),r=this.createIcon(),o=this.createLabel(t.id);return this.resultContainer=this.createResultContainer(),this.data.length>0||this.data?.fileLinks?.length>0?(this.populateExistingFiles(this.resultContainer),this.showElement(this.resultContainer)):(this.setupEventListeners(this.wrapper,t,this.resultContainer),this.wrapper.prepend(r),this.wrapper.appendChild(o),this.wrapper.appendChild(t),e.appendChild(this.wrapper)),e.appendChild(this.resultContainer),e}createContainer(){const e=document.createElement("div");return e.classList.add("picture__upload"),e}createWrapper(){const e=document.createElement("div");return e.classList.add("picture__upload_btn"),e}createFileInput(){const e=`upload_file_${Date.now()}`,t=document.createElement("input");return t.type="file",t.name="file",t.id=e,t.multiple=!0,t}createIcon(){const e=document.createElement("img");return e.classList.add("picture__upload_btn_icon"),e.src=L9,e.onerror=()=>{console.error("Error loading icon image")},e.height="24",e}createLabel(e){const t=document.createElement("label");t.setAttribute("for",e),t.textContent=this.api.i18n.t("Drag & drop file(s) or ");const r=document.createElement("span");return r.textContent=this.api.i18n.t("browse"),r.classList.add("upload"),t.appendChild(r),t}createResultContainer(){const e=document.createElement("div");return e.classList.add("file__results"),e.style.gap="7px",e.style.display="none",e}setupEventListeners(e,t){e.addEventListener("dragover",r=>{r.preventDefault(),r.dataTransfer.dropEffect="copy"}),e.addEventListener("drop",r=>{r.preventDefault();const o=Array.from(r.dataTransfer.files);this.handleFiles(o)}),t.addEventListener("input",r=>{r.stopPropagation();const o=Array.from(t.files);this.handleFiles(o)})}handleFiles=e=>{this.saveFilesInData(e),this.renderResults(this.data,this.resultContainer),this.uploadFiles(e),this.removeElement(this.wrapper),this.showElement(this.resultContainer)};hideElement(e){e.style.display="none"}removeElement(e){e.remove()}showElement(e){e.style.display="flex"}createResultElement(e,t,r,o){const i=document.createElement("div");i.classList.add("file__result");const s=document.createElement("IMG");s.classList.add("file__result_icon");const a={pdf:N9,jpg:D9,jpeg:I9,png:P9,doc:R9,csv:V9,xls:H9,txt:F9,mp4:z9,error:$9,warning:j9,wait:W9},l={ok:"OK",warning:"WARNING",unavailable:"UNAVAILABLE",error:"ERROR"},d=Wc;let u;const h=this.iconName(t);return(r===l.ok||!r)&&(s.src=a[h]||d,u=document.createElement("a"),u.href=e,u.target="_blank"),r===l.warning&&(s.src=a.warning,u=document.createElement("a"),u.href=e,u.target="_blank",i.title=o||"Warning"),r===l.unavailable&&(s.src=a.wait,u=document.createElement("span"),i.title=o||"Unavailable"),r===l.error&&(s.src=a.error,u=document.createElement("span"),i.title=o||"Error"),u.innerHTML=t,u.classList.add("file__result_name"),i.appendChild(s),i.appendChild(u),i}renderResults(e,t){if(e.length>0)for(const r of e){const o=this.createResultElement(r.download_url,r.label);t.appendChild(o)}else alert("Invalid file type. Please select a valid file.")}populateExistingFiles(e){for(let t=0;t<this.data.length;t++){const r=this.data[t].download_url,o=this.data[t].label,i=this.data[t].status||"OK",s=this.data[t].status_message,a=this.createResultElement(r,o,i,s);e.appendChild(a)}}uploadFiles(e){const t=this.api?.blocks?.getCurrentBlockIndex(),r=this.api?.blocks?.getBlockByIndex(t);this.config.uploadEvent({files:e,id:r?.id,data:this.data})}saveFilesInData(e){const t=[];for(const r of e){const i={download_url:URL.createObjectURL(r),label:r.name};t.push(i)}this.data=t}save(){return this.isEmpty(this.data)?null:this.data}isEmpty(e){return!Array.isArray(e)||e.length===0}removed(){const e=this.api?.blocks?.getCurrentBlockIndex(),t=this.api?.blocks?.getBlockByIndex(e);this.api?.readOnly?.isEnabled||this.api?.readOnly?.isEnabled!==this.lastReadOnly||this.config.deleteEvent({data:this.data,id:t?.id})}iconName(e){const t=this.getExtension(e).toLowerCase();return this.config.standardFormats.includes(`.${t}`)?t:"unknown"}getExtension(e){return e?e.slice((e.lastIndexOf(".")-1>>>0)+2):""}static get pasteConfig(){return{files:{mimeTypes:["application/*","text/*","audio/*","video/*","model/*","font/*","message/*"]}}}onPaste(e){const t=e.detail.file;!t||t.type.startsWith("image/")||this.handleFiles([t])}static get isReadOnlySupported(){return!0}}var hp={},U9;function Tq(){return U9||(U9=1,(function(n){(function(){try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(".ce-popover--inline .ce-popover--nested .ce-popover__container{width:min-content!important;min-width:unset!important}.ce-popover--inline .ce-popover--nested .ce-popover__items{width:max-content}.editorjs__color-selector-container{display:grid;gap:10px;padding:4px}.editorjs__color-selector__container-item{width:30px;height:30px;display:block;cursor:pointer;border-radius:100%;transition:transform .2s ease}.editorjs__color-selector__container-item:hover{transform:scale(1.1)}")),document.head.appendChild(a)}}catch(l){console.error("vite-plugin-css-injected-by-js",l)}})();var e=Object.defineProperty,t=(a,l,d)=>l in a?e(a,l,{enumerable:!0,configurable:!0,writable:!0,value:d}):a[l]=d,r=(a,l,d)=>t(a,typeof l!="symbol"?l+"":l,d);Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-width="2" d="M5.24296 11.4075C5.23167 10.6253 5.52446 9.8395 6.12132 9.24264L9.65686 5.70711C10.0474 5.31658 10.6809 5.31693 11.0714 5.70745L16.0205 10.6565C16.2268 10.8629 16.3243 11.1371 16.3126 11.4075M5.24296 11.4075C5.25382 12.1607 5.54661 12.9106 6.12132 13.4853L8 15.364M5.24296 11.4075H11.9565M16.3126 11.4075C16.3022 11.6487 16.205 11.8869 16.0208 12.0711L12.4853 15.6066C11.3137 16.7782 9.41421 16.7782 8.24264 15.6066L8 15.364M16.3126 11.4075H11.9565M8 15.364L11.9565 11.4075"/><path stroke="currentColor" stroke-width="2" d="M20 17.4615C20 18.3112 19.3284 19 18.5 19C17.6716 19 17 18.3112 17 17.4615C17 16.6119 17.9 15.6154 18.5 15C19.1 15.6154 20 16.6119 20 17.4615Z"/></svg>';class i{constructor(l){r(this,"api"),r(this,"tag","SPAN"),r(this,"class","cdx-text-color"),r(this,"defaultColor","#2644FF"),r(this,"lastRange",null),r(this,"colors",["#182a4e","#0055cc","#1f6a83","#206e4e","#e56910","#ae2e24","#5e4db2","#758195","#1e7afd","#2998bd","#23a06b","#fea363","#c9372c","#8270db"]),r(this,"columns",7);const{api:d,config:u}=l;this.api=d,u.colors&&(this.colors=u.colors),u.columns&&(this.columns=u.columns)}static get title(){return"Color"}static get isInline(){return!0}render(){const l=document.createElement("button");return l.type="button",l.innerHTML=o,l.classList.add(this.api.styles.inlineToolButton),l.addEventListener("mousedown",d=>{d.preventDefault()}),l}surround(l){this.lastRange=l}wrapAndColor(l,d){if(!l)return;const u=l.extractContents(),h=document.createElement(this.tag);h.classList.add(this.class),h.appendChild(u),h.style.color=d,h.innerHTML=h.textContent||"",l.insertNode(h),this.api.selection.expandToTag(h)}renderActions(){const l=document.createElement("div");return l.classList.add("editorjs__color-selector-container"),l.style.gridTemplateColumns=`repeat(${this.columns}, 1fr)`,this.colors.forEach(d=>{const u=document.createElement("div");u.classList.add("editorjs__color-selector__container-item"),u.style.backgroundColor=d,u.onclick=()=>{this.wrapAndColor(this.lastRange,d)},l.append(u)}),l}static get sanitize(){return{span:{style:{color:!0}}}}}class s extends i{static get sanitize(){}}n.ColorPickerWithoutSanitize=s,n.default=i})(hp)),hp}var Bq=Tq();const _q=lp(Bq);class Aq{editor=null;currentAttachments=[];onChangeCallback=null;onAttachmentChangeCallback=null;fileUploadCallback;resolveReady;isRendering=!1;isSettingContent=!1;isReadOnly=!1;ready=this.makeReady();taskQueue=[];isFlushing=!1;isDestroyed=!1;isSuggestion=!1;makeReady(){return new Promise(e=>{this.resolveReady=e})}async mount(e,t={},r=[],o,i=!1){this.isReadOnly=i,t||(this.isSettingContent=!0,t={});const s=t.editorjs??{blocks:[],time:Date.now(),version:"2.28.2"};s.blocks||(s.blocks=[]),this.currentAttachments=r;const a=this.enrichBlocks(s,r),l={...s,blocks:a},d=await this.transformI18n(o);this.editor=new _U({holder:e,data:l,i18n:d,autofocus:!1,readOnly:i,tools:{paragraph:{class:LU,inlineToolbar:!0,config:{placeholder:o?.labels?.Placeholder??"Type here",preserveBlank:!0}},header:{class:FU},list:{class:$U,inlineToolbar:!0,config:{defaultStyle:"unordered"}},marker:{class:WU},underline:{class:qU},inlineCode:{class:KU},table:{class:cq},code:{class:hq,...d?.messages?.tools?.code},delimiter:{class:pq},checklist:{class:yq},images:{class:Eq,config:{uploadEvent:u=>{const{files:h,id:f}=u;this.fileUploadCallback({files:h,meta:{blockId:f}})},deleteEvent:u=>{const h=Array.isArray(u.data)?u.data.map(f=>f.id).filter(Boolean):[];this.handleAttachmentDeletion(h)}}},attachment:{class:Mq,config:{uploadEvent:u=>{const{files:h,id:f}=u;this.fileUploadCallback({files:h,meta:{blockId:f}})},deleteEvent:u=>{const h=Array.isArray(u.data)?u.data.map(f=>f.id).filter(Boolean):[];this.handleAttachmentDeletion(h)}}},ColorPicker:{class:_q}},onChange:async()=>{if(this.onChangeCallback&&this.editor&&!this.isReadOnly){const u=await this.save();this.updateContent(u)}},onReady:()=>{this.editor&&(new wq({editor:this.editor}),new Sq(this.editor),this.resolveReady())}})}queueTask(e){return this.isDestroyed?Promise.reject(new Error("Adapter destroyed")):new Promise((t,r)=>{const o=async()=>{try{const i=await e();t(i)}catch(i){r(i)}};this.taskQueue.push(o),this.ready.then(()=>this.flushQueue())})}async flushQueue(){if(!(this.isFlushing||this.isDestroyed)){for(this.isFlushing=!0;this.taskQueue.length>0&&!this.isDestroyed;){const e=this.taskQueue.shift();if(e)try{await e()}catch(t){console.error("EditorAdapter task failed:",t)}}this.isFlushing=!1}}async doSave(){return this.editor?await this.editor.save():{blocks:[]}}save(){return new Promise(e=>{this.queueTask(async()=>{e(await this.doSave())})})}trimBlocks(e){return e.map(t=>{if(!["images","attachment"].includes(t.type))return t;let r;return t.data&&(r=t.data.map(o=>({id:o.id,label:o.label,...o.position&&{position:o.position},...o.width&&{width:o.width}}))),{...t,data:r}})}async destroy(){this.isDestroyed=!0,this.editor&&typeof this.editor.destroy=="function"&&(await this.editor.destroy(),this.editor=null),this.taskQueue=[],this.ready=this.makeReady(),this.isRendering=!1,this.isDestroyed=!1}async getContent(){return await this.editor?.save()}async clearContent(){this.editor&&await this.render({blocks:[]})}blocksEqual(e,t){return JSON.stringify(e.map(r=>["images","attachment"].includes(r.type)?{id:r.id,type:r.type}:r))===JSON.stringify(t.map(r=>["images","attachment"].includes(r.type)?{id:r.id,type:r.type}:r))}onContentChange(e){this.onChangeCallback=e}onFileUpload(e){this.fileUploadCallback=e}onAttachmentChange(e){this.onAttachmentChangeCallback=e}async setContent(e,t){await this.queueTask(async()=>{if(this.isSuggestion&&(this.isSuggestion=!1),!this.editor)return;const r=e?.editorjs??{blocks:[]};this.isReadOnly&&await this.editor.readOnly.toggle(!1);const o=await this.doSave()??{},i=this.blocksEqual(r.blocks,o.blocks),s=this.attachmentsEqual(this.currentAttachments,t);if(i&&s)return;this.isSettingContent=!0,this.currentAttachments=t;const a=i?o:r,l=this.enrichBlocks(a,this.currentAttachments);await this.safeRender({...a,blocks:l}),this.isSettingContent=!1,this.isReadOnly&&await this.editor.readOnly.toggle(!0)})}async updateAttachments(e){await this.queueTask(async()=>{if(!this.editor||this.isSettingContent||this.attachmentsEqual(this.currentAttachments,e))return;this.currentAttachments=e?[...e]:[],this.isReadOnly&&await this.editor.readOnly.toggle(!1);const t=await this.doSave(),r=this.enrichBlocks(t,this.currentAttachments);await this.safeRender({...t,blocks:r}),this.isReadOnly&&await this.editor.readOnly.toggle(!0)})}async handleAttachmentDeletion(e){if(!this.editor||this.isRendering)return;const t=new Set(e.map(String)),r=this.currentAttachments.filter(o=>!t.has(String(o.id)));r.length!==this.currentAttachments.length&&(this.currentAttachments=r,this.onAttachmentChangeCallback?.(this.currentAttachments))}async registerFiles({ids:e,meta:t}){await this.queueTask(async()=>{if(!this.editor||!t?.blockId)return;const r=await this.doSave()??{},o=[...r.blocks],i=o.findIndex(l=>l.id===t.blockId);if(i===-1)return;const s=o[i];if(!Array.isArray(s.data))return;const a=[...s.data];for(let l=0;l<e.length;l++){const d=l;a[d]&&(a[d]={...a[d],id:e[l]})}o[i]={...s,data:a},await this.safeRender({...r,blocks:o}),this.updateContent({...r,blocks:o})})}async isSignatureOnly(){let e=!1;return await this.queueTask(async()=>{if(!this.editor){e=!1;return}e=(await this.doSave()??{}).blocks.every(r=>r?.id?.includes?.("signature"))}),e}async isEmpty(){let e=!1;return this.isSettingContent&&await this.waitForIdle(),await this.queueTask(async()=>{if(!this.editor||typeof this.editor.save!="function"){console.warn("Editor not ready for isEmpty()"),e=!1;return}this.isReadOnly&&await this.editor.readOnly.toggle(!1);const t=await this.doSave();if(this.isReadOnly&&await this.editor.readOnly.toggle(!0),!t||!t?.blocks?.length){e=!0;return}e=t.blocks.every(r=>{const{type:o,data:i}=r;return o==="paragraph"||o==="header"?!i?.text?.trim():["attachment","images"].includes(o)?!(Array.isArray(i)?i[0]?.id:i?.id):!1})}),!e&&this.isSuggestion&&(e=!0),e}async waitForIdle(e=1e4){let r=0;for(;this.isSettingContent;){if(r>=e){console.warn("waitForIdle timed out");break}await new Promise(o=>setTimeout(o,10)),r+=10}}async insertSignature(e,t){await this.queueTask(async()=>{if(!this.editor)return;const r=await this.doSave()??{},o=Date.now(),i=(e.editorjs?.blocks??[]).map((h,f)=>({...h,id:`signature-${f}-${o}`})),s=[],a=[];for(const h of r.blocks)h?.id?.includes?.("signature")?a.push(h):s.push(h);const l=[];a.slice(1).forEach(h=>{if(["attachment","images"].includes(h?.type)&&Array.isArray(h?.data))for(const f of h.data)f?.id!=null&&l.push(f.id)}),l.length&&await this.handleAttachmentDeletion(l);let d;if(a.length>0){const h=r.blocks.findIndex(f=>f?.id?.includes?.("signature"));d=[...s.slice(0,h),...i,...s.slice(h)]}else d=[...s,...i];this.currentAttachments=this.currentAttachments?[...this.currentAttachments,...t]:[...t];const u=this.enrichBlocks({...r,blocks:d},this.currentAttachments);await this.safeRender({...r,blocks:u}),this.updateContent({...r,blocks:u}),this.onAttachmentChangeCallback?.(this.currentAttachments)})}attachmentsEqual(e,t){if(!e||!t)return!1;const r=e.map(s=>s.id).filter(s=>s!==void 0),o=t.map(s=>s.id).filter(s=>s!==void 0);if(r.length!==o.length)return!1;const i=new Set(r);for(const s of o)if(!i.has(s))return!1;return!0}async safeRender(e){if(!(!this.editor||this.isDestroyed)){this.isRendering=!0;try{await this.editor.render(e)}finally{this.isRendering=!1}}}render(e){this.queueTask(()=>this.safeRender(e))}enrichBlocks(e,t=[]){const r=new Map((t??[]).map(o=>[o.id,o]));return e.blocks.map(o=>{if(!["images","attachment"].includes(o.type))return o;const i=Array.isArray(o.data)?o.data.map(s=>{const a=r.get(s.id);return a?{...s,...a}:{...s,missing:!0}}):o.data;return{...o,data:i}})}updateContent(e){if(this.isSettingContent=!1,this.onChangeCallback){const t=this.trimBlocks(e.blocks),r={...e,blocks:t};this.onChangeCallback({editorjs:r})}}async transformI18n(e){return e?{messages:{ui:{blockTunes:{toggler:{"Click to tune":e.actions?.clickToTune??"Click to tune","or drag to move":e.actions?.orDragToMove??"or drag to move"}},inlineToolbar:{converter:{"Convert to":e.actions?.convertTo??"Convert to"}},toolbar:{toolbox:{Add:e.actions?.add??"Add"}},popover:{Filter:e.actions?.filter??"Filter","Nothing found":e.actions?.nothingFound??"Nothing found"}},toolNames:e.labels??{},tools:{attachment:{"Drag & drop file(s) or ":e.plugins?.attachment?.dragAndDrop??"Drag & drop file(s) or ",browse:e.plugins?.attachment?.browse??"browse"},images:{"Drag & drop an image file or ":e.plugins?.images?.dragAndDrop??"Drag & drop an image file or ",browse:e.plugins?.images?.browse??"browse"},code:{config:{placeholder:e.plugins?.code?.placeholder??"fml"}},warning:{Title:e.plugins?.warning?.title??"Title",Message:e.plugins?.warning?.message??"Message"},link:{"Add a link":e.plugins?.link?.addLink??"Add a link"},stub:{"The block can not be displayed correctly.":e.plugins?.stub?.errorMessage??"The block can not be displayed correctly."},"Code Highlight":{"Enter code here":e.plugins?.codeHighlight?.placeholder??"Enter code here"}},blockTunes:{delete:{Delete:e.actions?.delete??"Delete","Click to delete":e.actions?.clickToDelete??"Click to delete"},moveUp:{"Move up":e.actions?.moveUp??"Move up"},moveDown:{"Move down":e.actions?.moveDown??"Move down"}}}}:void 0}async toggleReadOnly(e){this.editor&&(this.isReadOnly=e,this.editor.readOnly.toggle(e))}setIsSuggestion(e){this.isSuggestion=e}}const Oq={key:0,class:"reply-header"},Lq={class:"reply-actions"},Nq=c.defineComponent({__name:"EditorjsView",props:{data:{},attachments:{},readOnly:{type:Boolean,default:!1},toolbarPosition:{default:"left"},i18n:{},suggestedReply:{},fileUpload:{}},emits:["update:data","update:attachments","file-upload"],setup(n,{expose:e,emit:t}){const r=n,o=t,i=c.ref(null),s=c.ref(!1),a=new Aq;c.onMounted(async()=>{!i.value||!a||(await a.mount(i.value,r.data,r.attachments,r.i18n??{},r.readOnly),a.onContentChange(f=>o("update:data",f)),a.onFileUpload(async f=>o("file-upload",f)),a.onAttachmentChange(async f=>{o("update:attachments",f)}),await a.ready,await d())}),c.onBeforeUnmount(()=>{a&&a.destroy()}),c.watch(()=>r.data,f=>{a.setContent(f,r.attachments),s.value=!1}),c.watch(()=>r.attachments,f=>a.updateAttachments(f)),c.watch(()=>r.readOnly,f=>a.toggleReadOnly(f)),c.watch(()=>r.suggestedReply,async(f,p)=>{f!==p&&await d()},{immediate:!1});function l(f){return f!=null&&typeof f=="object"&&Object.keys(f).length>0}async function d(f=!1){if(!r.suggestedReply||!l(r.suggestedReply)||r.readOnly){s.value=!1;return}if(!await a.isEmpty()){s.value=!1;return}f&&await new Promise(g=>setTimeout(g,1e3)),await a.setContent(r.suggestedReply,r.attachments),a.setIsSuggestion(!0),await a.isSignatureOnly()?u():s.value=!0}async function u(){!s.value||!r.suggestedReply||r.readOnly||(s.value=!1,await a.updateContent(r.suggestedReply?.editorjs),a.setIsSuggestion(!1))}function h(){s.value=!1,a.clearContent(),a.setIsSuggestion(!1)}return e({acceptSuggestion:()=>{u()},isEmpty:()=>a.isEmpty(),registerFiles:f=>{a.registerFiles(f)},insertSignature:(f,p)=>{a.insertSignature(f,p)}}),(f,p)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["editor__wrapper",[!n.readOnly&&n.toolbarPosition=="right"?"editor__wrapper--right":n.readOnly?"":"editor__wrapper--left",s.value?"suggestion-reply-theme":""]])},[s.value?(c.openBlock(),c.createElementBlock("div",Oq,[c.createVNode(Nh,{active:!0,"has-background":!1,"icon-name":"ai",size:24,text:r.i18n?.labels?.AIResponse?r.i18n?.labels.AIResponse:"GPT Suggested Response"},null,8,["text"]),c.createElementVNode("div",Lq,[c.createVNode(Be,{active:!0,alt:"Accept Suggestion","icon-name":"accept",size:20,onClick:p[0]||(p[0]=m=>u())}),c.createVNode(Be,{active:!0,alt:"Dismiss Suggestion","icon-name":"close","is-danger":!0,size:20,onClick:p[1]||(p[1]=m=>h())})])])):c.createCommentVNode("",!0),c.createElementVNode("div",{ref_key:"container",ref:i,class:"editor__body",onFocusin:p[2]||(p[2]=m=>u())},null,544)],2))}});function rn(n){this.content=n}rn.prototype={constructor:rn,find:function(n){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===n)return e;return-1},get:function(n){var e=this.find(n);return e==-1?void 0:this.content[e+1]},update:function(n,e,t){var r=t&&t!=n?this.remove(t):this,o=r.find(n),i=r.content.slice();return o==-1?i.push(t||n,e):(i[o+1]=e,t&&(i[o]=t)),new rn(i)},remove:function(n){var e=this.find(n);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new rn(t)},addToStart:function(n,e){return new rn([n,e].concat(this.remove(n).content))},addToEnd:function(n,e){var t=this.remove(n).content.slice();return t.push(n,e),new rn(t)},addBefore:function(n,e,t){var r=this.remove(e),o=r.content.slice(),i=r.find(n);return o.splice(i==-1?o.length:i,0,e,t),new rn(o)},forEach:function(n){for(var e=0;e<this.content.length;e+=2)n(this.content[e],this.content[e+1])},prepend:function(n){return n=rn.from(n),n.size?new rn(n.content.concat(this.subtract(n).content)):this},append:function(n){return n=rn.from(n),n.size?new rn(this.subtract(n).content.concat(n.content)):this},subtract:function(n){var e=this;n=rn.from(n);for(var t=0;t<n.content.length;t+=2)e=e.remove(n.content[t]);return e},toObject:function(){var n={};return this.forEach(function(e,t){n[e]=t}),n},get size(){return this.content.length>>1}},rn.from=function(n){if(n instanceof rn)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new rn(e)};function q9(n,e,t){for(let r=0;;r++){if(r==n.childCount||r==e.childCount)return n.childCount==e.childCount?null:t;let o=n.child(r),i=e.child(r);if(o==i){t+=o.nodeSize;continue}if(!o.sameMarkup(i))return t;if(o.isText&&o.text!=i.text){for(let s=0;o.text[s]==i.text[s];s++)t++;return t}if(o.content.size||i.content.size){let s=q9(o.content,i.content,t+1);if(s!=null)return s}t+=o.nodeSize}}function Z9(n,e,t,r){for(let o=n.childCount,i=e.childCount;;){if(o==0||i==0)return o==i?null:{a:t,b:r};let s=n.child(--o),a=e.child(--i),l=s.nodeSize;if(s==a){t-=l,r-=l;continue}if(!s.sameMarkup(a))return{a:t,b:r};if(s.isText&&s.text!=a.text){let d=0,u=Math.min(s.text.length,a.text.length);for(;d<u&&s.text[s.text.length-d-1]==a.text[a.text.length-d-1];)d++,t--,r--;return{a:t,b:r}}if(s.content.size||a.content.size){let d=Z9(s.content,a.content,t-1,r-1);if(d)return d}t-=l,r-=l}}class G{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,t,r,o=0,i){for(let s=0,a=0;a<t;s++){let l=this.content[s],d=a+l.nodeSize;if(d>e&&r(l,o+a,i||null,s)!==!1&&l.content.size){let u=a+1;l.nodesBetween(Math.max(0,e-u),Math.min(l.content.size,t-u),r,o+u)}a=d}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,o){let i="",s=!0;return this.nodesBetween(e,t,(a,l)=>{let d=a.isText?a.text.slice(Math.max(e,l)-l,t-l):a.isLeaf?o?typeof o=="function"?o(a):o:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&d||a.isTextblock)&&r&&(s?s=!1:i+=r),i+=d},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,o=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(r)&&(o[o.length-1]=t.withText(t.text+r.text),i=1);i<e.content.length;i++)o.push(e.content[i]);return new G(o,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let r=[],o=0;if(t>e)for(let i=0,s=0;s<t;i++){let a=this.content[i],l=s+a.nodeSize;l>e&&((s<e||l>t)&&(a.isText?a=a.cut(Math.max(0,e-s),Math.min(a.text.length,t-s)):a=a.cut(Math.max(0,e-s-1),Math.min(a.content.size,t-s-1))),r.push(a),o+=a.nodeSize),s=l}return new G(r,o)}cutByIndex(e,t){return e==t?G.empty:e==0&&t==this.content.length?this:new G(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let o=this.content.slice(),i=this.size+t.nodeSize-r.nodeSize;return o[e]=t,new G(o,i)}addToStart(e){return new G([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new G(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,r=0;t<this.content.length;t++){let o=this.content[t];e(o,r,t),r+=o.nodeSize}}findDiffStart(e,t=0){return q9(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return Z9(this,e,t,r)}findIndex(e){if(e==0)return Uc(0,e);if(e==this.size)return Uc(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,r=0;;t++){let o=this.child(t),i=r+o.nodeSize;if(i>=e)return i==e?Uc(t+1,i):Uc(t,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,t){if(!t)return G.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new G(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return G.empty;let t,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)?(t||(t=e.slice(0,o)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new G(t||e,r)}static from(e){if(!e)return G.empty;if(e instanceof G)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new G([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}G.empty=new G([],0);const fp={index:0,offset:0};function Uc(n,e){return fp.index=n,fp.offset=e,fp}function qc(n,e){if(n===e)return!0;if(!(n&&typeof n=="object")||!(e&&typeof e=="object"))return!1;let t=Array.isArray(n);if(Array.isArray(e)!=t)return!1;if(t){if(n.length!=e.length)return!1;for(let r=0;r<n.length;r++)if(!qc(n[r],e[r]))return!1}else{for(let r in n)if(!(r in e)||!qc(n[r],e[r]))return!1;for(let r in e)if(!(r in n))return!1}return!0}let Je=class r4{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,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))t||(t=e.slice(0,o));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,o)),t.push(this),r=!0),t&&t.push(i)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&qc(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[t.type];if(!r)throw new RangeError(`There is no mark type ${t.type} in this schema`);let o=r.create(t.attrs);return r.checkAttrs(o.attrs),o}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return r4.none;if(e instanceof r4)return[e];let t=e.slice();return t.sort((r,o)=>r.type.rank-o.type.rank),t}};Je.none=[];class Zc extends Error{}class ie{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=Y9(this.content,e+this.openStart,t);return r&&new ie(r,this.openStart,this.openEnd)}removeBetween(e,t){return new ie(K9(this.content,e+this.openStart,t+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,t){if(!t)return ie.empty;let r=t.openStart||0,o=t.openEnd||0;if(typeof r!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new ie(G.fromJSON(e,t.content),r,o)}static maxOpen(e,t=!0){let r=0,o=0;for(let i=e.firstChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=e.lastChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.lastChild)o++;return new ie(e,r,o)}}ie.empty=new ie(G.empty,0,0);function K9(n,e,t){let{index:r,offset:o}=n.findIndex(e),i=n.maybeChild(r),{index:s,offset:a}=n.findIndex(t);if(o==e||i.isText){if(a!=t&&!n.child(s).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(r!=s)throw new RangeError("Removing non-flat range");return n.replaceChild(r,i.copy(K9(i.content,e-o-1,t-o-1)))}function Y9(n,e,t,r){let{index:o,offset:i}=n.findIndex(e),s=n.maybeChild(o);if(i==e||s.isText)return r&&!r.canReplace(o,o,t)?null:n.cut(0,e).append(t).append(n.cut(e));let a=Y9(s.content,e-i-1,t,s);return a&&n.replaceChild(o,s.copy(a))}function Dq(n,e,t){if(t.openStart>n.depth)throw new Zc("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new Zc("Inconsistent open depths");return X9(n,e,t,0)}function X9(n,e,t,r){let o=n.index(r),i=n.node(r);if(o==e.index(r)&&r<n.depth-t.openStart){let s=X9(n,e,t,r+1);return i.copy(i.content.replaceChild(o,s))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&n.depth==r&&e.depth==r){let s=n.parent,a=s.content;return fs(s,a.cut(0,n.parentOffset).append(t.content).append(a.cut(e.parentOffset)))}else{let{start:s,end:a}=Iq(t,n);return fs(i,J9(n,s,a,e,r))}else return fs(i,Kc(n,e,r))}function G9(n,e){if(!e.type.compatibleContent(n.type))throw new Zc("Cannot join "+e.type.name+" onto "+n.type.name)}function pp(n,e,t){let r=n.node(t);return G9(r,e.node(t)),r}function hs(n,e){let t=e.length-1;t>=0&&n.isText&&n.sameMarkup(e[t])?e[t]=n.withText(e[t].text+n.text):e.push(n)}function o2(n,e,t,r){let o=(e||n).node(t),i=0,s=e?e.index(t):o.childCount;n&&(i=n.index(t),n.depth>t?i++:n.textOffset&&(hs(n.nodeAfter,r),i++));for(let a=i;a<s;a++)hs(o.child(a),r);e&&e.depth==t&&e.textOffset&&hs(e.nodeBefore,r)}function fs(n,e){return n.type.checkContent(e),n.copy(e)}function J9(n,e,t,r,o){let i=n.depth>o&&pp(n,e,o+1),s=r.depth>o&&pp(t,r,o+1),a=[];return o2(null,n,o,a),i&&s&&e.index(o)==t.index(o)?(G9(i,s),hs(fs(i,J9(n,e,t,r,o+1)),a)):(i&&hs(fs(i,Kc(n,e,o+1)),a),o2(e,t,o,a),s&&hs(fs(s,Kc(t,r,o+1)),a)),o2(r,null,o,a),new G(a)}function Kc(n,e,t){let r=[];if(o2(null,n,t,r),n.depth>t){let o=pp(n,e,t+1);hs(fs(o,Kc(n,e,t+1)),r)}return o2(e,null,t,r),new G(r)}function Iq(n,e){let t=e.depth-n.openStart,o=e.node(t).copy(n.content);for(let i=t-1;i>=0;i--)o=e.node(i).copy(G.from(o));return{start:o.resolveNoCache(n.openStart+t),end:o.resolveNoCache(o.content.size-n.openEnd-t)}}class i2{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw 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,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],o=e.child(t);return r?e.child(t).cut(r):o}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[t*3],o=t==0?0:this.path[t*3-1]+1;for(let i=0;i<e;i++)o+=r.child(i).nodeSize;return o}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return Je.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),o=e.maybeChild(t);if(!r){let a=r;r=o,o=a}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 t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.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 t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new Yc(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 t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let r=[],o=0,i=t;for(let s=e;;){let{index:a,offset:l}=s.content.findIndex(i),d=i-l;if(r.push(s,a,o+l),!d||(s=s.child(a),s.isText))break;i=d-1,o+=l+1}return new i2(t,r,i)}static resolveCached(e,t){let r=Q9.get(e);if(r)for(let i=0;i<r.elts.length;i++){let s=r.elts[i];if(s.pos==t)return s}else Q9.set(e,r=new Pq);let o=r.elts[r.i]=i2.resolve(e,t);return r.i=(r.i+1)%Rq,o}}class Pq{constructor(){this.elts=[],this.i=0}}const Rq=12,Q9=new WeakMap;class Yc{constructor(e,t,r){this.$from=e,this.$to=t,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 Vq=Object.create(null);let ui=class o4{constructor(e,t,r,o=Je.none){this.type=e,this.attrs=t,this.marks=o,this.content=r||G.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,r,o=0){this.content.nodesBetween(e,t,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,t,r,o){return this.content.textBetween(e,t,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,t,r){return this.type==e&&qc(this.attrs,t||e.defaultAttrs||Vq)&&Je.sameSet(this.marks,r||Je.none)}copy(e=null){return e==this.content?this:new o4(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new o4(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,r=!1){if(e==t)return ie.empty;let o=this.resolve(e),i=this.resolve(t),s=r?0:o.sharedDepth(t),a=o.start(s),d=o.node(s).content.cut(o.pos-a,i.pos-a);return new ie(d,o.depth-s,i.depth-s)}replace(e,t,r){return Dq(this.resolve(e),this.resolve(t),r)}nodeAt(e){for(let t=this;;){let{index:r,offset:o}=t.content.findIndex(e);if(t=t.maybeChild(r),!t)return null;if(o==e||t.isText)return t;e-=o+1}}childAfter(e){let{index:t,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(t),index:t,offset:r};let o=this.content.child(t-1);return{node:o,index:t-1,offset:r-o.nodeSize}}resolve(e){return i2.resolveCached(this,e)}resolveNoCache(e){return i2.resolve(this,e)}rangeHasMark(e,t,r){let o=!1;return t>e&&this.nodesBetween(e,t,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()+")"),ev(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=G.empty,o=0,i=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,o,i),a=s&&s.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(let l=o;l<i;l++)if(!this.type.allowsMarks(r.child(l).marks))return!1;return!0}canReplaceWith(e,t,r,o){if(o&&!this.type.allowsMarks(o))return!1;let i=this.contentMatchAt(e).matchType(r),s=i&&i.matchFragment(this.content,t);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=Je.none;for(let t=0;t<this.marks.length;t++){let r=this.marks[t];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!Je.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let r;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,r)}let o=G.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,o,r);return i.type.checkAttrs(i.attrs),i}};ui.prototype.text=void 0;class Xc extends ui{constructor(e,t,r,o){if(super(e,t,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):ev(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Xc(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Xc(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function ev(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}class ps{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new Hq(e,t);if(r.next==null)return ps.empty;let o=tv(r);r.next&&r.err("Unexpected trailing text");let i=qq(Uq(o));return Zq(i,r),i}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,r=e.childCount){let o=this;for(let i=t;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:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let r=0;r<e.next.length;r++)if(this.next[t].type==e.next[r].type)return!0;return!1}fillBefore(e,t=!1,r=0){let o=[this];function i(s,a){let l=s.matchFragment(e,r);if(l&&(!t||l.validEnd))return G.from(a.map(d=>d.createAndFill()));for(let d=0;d<s.next.length;d++){let{type:u,next:h}=s.next[d];if(!(u.isText||u.hasRequiredAttrs())&&o.indexOf(h)==-1){o.push(h);let f=i(h,a.concat(u));if(f)return f}}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 t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=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 a=o;a.type;a=a.via)s.push(a.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:a,next:l}=i.next[s];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in t)&&(!o.type||l.validEnd)&&(r.push({match:a.contentMatch,type:a,via:o}),t[a.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 t(r){e.push(r);for(let o=0;o<r.next.length;o++)e.indexOf(r.next[o].next)==-1&&t(r.next[o].next)}return t(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(`
|
|
64
|
+
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(g))))," */")),h.styleTagTransform(p,u,h.options)})(l,a,d)},remove:function(){(function(d){if(d.parentNode===null)return!1;d.parentNode.removeChild(d)})(l)}}}},113:s=>{s.exports=function(a,l){if(l.styleSheet)l.styleSheet.cssText=a;else{for(;l.firstChild;)l.removeChild(l.firstChild);l.appendChild(document.createTextNode(a))}}}},r={};function o(s){var a=r[s];if(a!==void 0)return a.exports;var l=r[s]={id:s,exports:{}};return t[s](l,l.exports,o),l.exports}o.n=s=>{var a=s&&s.__esModule?()=>s.default:()=>s;return o.d(a,{a}),a},o.d=(s,a)=>{for(var l in a)o.o(a,l)&&!o.o(s,l)&&Object.defineProperty(s,l,{enumerable:!0,get:a[l]})},o.o=(s,a)=>Object.prototype.hasOwnProperty.call(s,a),o.nc=void 0;var i={};return(()=>{o.d(i,{default:()=>k});var s=o(72),a=o.n(s),l=o(825),d=o.n(l),u=o(659),h=o.n(u),f=o(56),p=o.n(f),m=o(540),g=o.n(m),v=o(113),y=o.n(v),C=o(523),b={};function B(S){return B=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},B(S)}function T(S,O){for(var A=0;A<O.length;A++){var x=O[A];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(S,E(x.key),x)}}function E(S){var O=(function(A,x){if(B(A)!="object"||!A)return A;var M=A[Symbol.toPrimitive];if(M!==void 0){var L=M.call(A,"string");if(B(L)!="object")return L;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(A)})(S);return B(O)=="symbol"?O:O+""}b.styleTagTransform=y(),b.setAttributes=p(),b.insert=h().bind(null,"head"),b.domAPI=d(),b.insertStyleElement=g(),a()(C.A,b),C.A&&C.A.locals&&C.A.locals;var k=(function(){return S=function x(M,L){var D=M.configuration,_=M.blocks,N=M.toolbar,w=M.save;(function(R,H){if(!(R instanceof H))throw new TypeError("Cannot call a class as a function")})(this,x),this.toolbar=N,this.borderStyle=L||"1px dashed #aaa",this.api=_,this.holder=typeof D.holder=="string"?document.getElementById(D.holder):D.holder,this.readOnly=D.readOnly,this.startBlock=null,this.endBlock=null,this.save=w,this.setDragListener(),this.setDropListener()},A=[{key:"isReadOnlySupported",get:function(){return!0}}],(O=[{key:"setElementCursor",value:function(x){if(x){var M=document.createRange(),L=window.getSelection();M.setStart(x.childNodes[0],0),M.collapse(!0),L.removeAllRanges(),L.addRange(M),x.focus()}}},{key:"setDragListener",value:function(){var x=this;if(!this.readOnly){var M=this.holder.querySelector(".ce-toolbar__settings-btn");if(M)this.initializeDragListener(M);else{var L=new MutationObserver((function(D,_){var N=x.holder.querySelector(".ce-toolbar__settings-btn");N&&(x.initializeDragListener(N),_.disconnect())}));L.observe(this.holder,{childList:!0,subtree:!0})}}}},{key:"initializeDragListener",value:function(x){var M=this;x.setAttribute("draggable","true"),x.addEventListener("dragstart",(function(){M.startBlock=M.api.getCurrentBlockIndex()})),x.addEventListener("drag",(function(){if(M.toolbar.close(),!M.isTheOnlyBlock()){var L=M.holder.querySelectorAll(".ce-block"),D=M.holder.querySelector(".ce-block--drop-target");M.setElementCursor(D),M.setBorderBlocks(L,D)}}))}},{key:"setBorderBlocks",value:function(x,M){var L=this;Object.values(x).forEach((function(D){var _=D.querySelector(".ce-block__content");D!==M?(_.style.removeProperty("border-top"),_.style.removeProperty("border-bottom")):Object.keys(x).find((function(N){return x[N]===M}))>L.startBlock?_.style.borderBottom=L.borderStyle:_.style.borderTop=L.borderStyle}))}},{key:"setDropListener",value:function(){var x=this;document.addEventListener("drop",(function(M){var L=M.target;if(x.holder.contains(L)&&x.startBlock!==null){var D=x.getDropTarget(L);if(D){var _=D.querySelector(".ce-block__content");_.style.removeProperty("border-top"),_.style.removeProperty("border-bottom"),x.endBlock=x.getTargetPosition(D),x.moveBlocks()}}x.startBlock=null}))}},{key:"getDropTarget",value:function(x){return x.classList.contains("ce-block")?x:x.closest(".ce-block")}},{key:"getTargetPosition",value:function(x){return Array.from(x.parentNode.children).indexOf(x)}},{key:"isTheOnlyBlock",value:function(){return this.api.getBlocksCount()===1}},{key:"moveBlocks",value:function(){this.isTheOnlyBlock()||this.api.move(this.endBlock,this.startBlock)}}])&&T(S.prototype,O),A&&T(S,A),Object.defineProperty(S,"prototype",{writable:!1}),S;var S,O,A})()})(),i.default})()))})(dp)),dp.exports}var xq=kq();const Sq=lp(xq),L9="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%2018.5C11.7239%2018.5%2011.5%2018.2761%2011.5%2018L11.5%206C11.5%205.72386%2011.7239%205.5%2012%205.5C12.2761%205.5%2012.5%205.72386%2012.5%206L12.5%2018C12.5%2018.2761%2012.2761%2018.5%2012%2018.5Z'%20fill='%230F71B4'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5.64645%2012.3536C5.45118%2012.1583%205.45118%2011.8417%205.64645%2011.6464L11.6464%205.64645C11.8417%205.45119%2012.1583%205.45119%2012.3536%205.64645L18.3536%2011.6464C18.5488%2011.8417%2018.5488%2012.1583%2018.3536%2012.3536C18.1583%2012.5488%2017.8417%2012.5488%2017.6464%2012.3536L12%206.70711L6.35355%2012.3536C6.15829%2012.5488%205.84171%2012.5488%205.64645%2012.3536Z'%20fill='%230F71B4'/%3e%3crect%20x='23.5'%20y='0.5'%20width='23'%20height='23'%20rx='11.5'%20transform='rotate(90%2023.5%200.5)'%20stroke='%230F71B4'/%3e%3c/svg%3e";let up=!1;class Eq{static get isReadOnlySupported(){return!0}static get toolbox(){return{title:"Images",icon:'<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.34 3H2.66C2.48496 3 2.31708 3.06954 2.19331 3.19331C2.06954 3.31708 2 3.48496 2 3.66V11.58C2 11.755 2.06954 11.9229 2.19331 12.0467C2.31708 12.1705 2.48496 12.24 2.66 12.24H12.34C12.515 12.24 12.6829 12.1705 12.8067 12.0467C12.9305 11.9229 13 11.755 13 11.58V3.66C13 3.48496 12.9305 3.31708 12.8067 3.19331C12.6829 3.06954 12.515 3 12.34 3ZM2.66 3.44H12.34C12.3983 3.44 12.4543 3.46318 12.4956 3.50444C12.5368 3.54569 12.56 3.60165 12.56 3.66V9.842L10.751 8.03305C10.6897 7.97152 10.6169 7.9227 10.5367 7.88939C10.4564 7.85608 10.3704 7.83893 10.2836 7.83893C10.1967 7.83893 10.1107 7.85608 10.0304 7.88939C9.95023 7.9227 9.87737 7.97152 9.81605 8.03305L8.5604 9.2887L5.9853 6.71305C5.92398 6.65152 5.85112 6.6027 5.7709 6.56939C5.69068 6.53608 5.60467 6.51893 5.5178 6.51893C5.43093 6.51893 5.34492 6.53608 5.2647 6.56939C5.18448 6.6027 5.11162 6.65152 5.0503 6.71305L2.44 9.325V3.66C2.44 3.60165 2.46318 3.54569 2.50444 3.50444C2.54569 3.46318 2.60165 3.44 2.66 3.44ZM2.44 11.58V9.9487L5.36435 7.02435C5.38478 7.00389 5.40905 6.98767 5.43575 6.9766C5.46246 6.96553 5.49109 6.95983 5.52 6.95983C5.54891 6.95983 5.57754 6.96553 5.60425 6.9766C5.63095 6.98767 5.65522 7.00389 5.67565 7.02435L10.4513 11.8H2.66C2.60165 11.8 2.54569 11.7768 2.50444 11.7356C2.46318 11.6943 2.44 11.6383 2.44 11.58ZM12.34 11.8H11.075L8.875 9.6L10.1307 8.34435C10.1511 8.3239 10.1753 8.30767 10.2021 8.2966C10.2288 8.28553 10.2574 8.27983 10.2863 8.27983C10.3152 8.27983 10.3438 8.28553 10.3705 8.2966C10.3973 8.30767 10.4215 8.3239 10.4419 8.34435L12.56 10.4641V11.58C12.56 11.6383 12.5368 11.6943 12.4956 11.7356C12.4543 11.7768 12.3983 11.8 12.34 11.8Z" fill="black"/></svg>'}}constructor({data:e,config:t,api:r}){this.data=e,this.api=r,this.config=t||{},this.lastReadOnly=this.api?.readOnly?.isEnabled,this.settings=[{name:"WidthSmall",icon:'<svg id="WidthSmall" width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.19786 7.66578C7.19786 7.46123 7.16578 7.28075 7.1016 7.12433C7.04144 6.9639 6.93316 6.81952 6.77674 6.69118C6.62433 6.56283 6.41176 6.44051 6.13904 6.3242C5.87032 6.20789 5.52941 6.08957 5.11631 5.96925C4.68315 5.84091 4.29211 5.69853 3.94318 5.54211C3.59425 5.38168 3.29545 5.1992 3.04679 4.99465C2.79813 4.79011 2.60762 4.55548 2.47527 4.29078C2.34291 4.02607 2.27674 3.72326 2.27674 3.38235C2.27674 3.04144 2.34693 2.7266 2.4873 2.43783C2.62767 2.14906 2.82821 1.8984 3.0889 1.68583C3.35361 1.46925 3.66845 1.3008 4.03342 1.18048C4.3984 1.06016 4.80548 1 5.25468 1C5.91243 1 6.46992 1.12634 6.92714 1.37901C7.38837 1.62767 7.73931 1.95455 7.97995 2.35963C8.22059 2.7607 8.34091 3.18984 8.34091 3.64706H7.18583C7.18583 3.31818 7.11564 3.02741 6.97527 2.77473C6.83489 2.51805 6.62233 2.31751 6.33757 2.17313C6.05281 2.02473 5.69185 1.95053 5.25468 1.95053C4.84158 1.95053 4.50067 2.0127 4.23195 2.13703C3.96324 2.26136 3.7627 2.42981 3.63035 2.64238C3.50201 2.85495 3.43783 3.09759 3.43783 3.37032C3.43783 3.55481 3.47594 3.72326 3.55214 3.87567C3.63235 4.02406 3.75468 4.16243 3.91912 4.29078C4.08757 4.41912 4.30013 4.53743 4.55682 4.64572C4.81751 4.75401 5.12834 4.85829 5.4893 4.95856C5.98663 5.09893 6.41578 5.25535 6.77674 5.42781C7.1377 5.60027 7.43449 5.79479 7.66711 6.01136C7.90374 6.22393 8.07821 6.46658 8.19051 6.73931C8.30682 7.00802 8.36497 7.31283 8.36497 7.65374C8.36497 8.0107 8.29278 8.33356 8.1484 8.62233C8.00401 8.9111 7.79746 9.15775 7.52874 9.3623C7.26003 9.56685 6.93717 9.72527 6.56016 9.83757C6.18717 9.94586 5.77005 10 5.30882 10C4.90374 10 4.50468 9.94385 4.11163 9.83155C3.72259 9.71925 3.36765 9.5508 3.04679 9.3262C2.72995 9.1016 2.47527 8.82487 2.28275 8.49599C2.09425 8.1631 2 7.77808 2 7.34091H3.15508C3.15508 7.64171 3.21324 7.9004 3.32955 8.11698C3.44586 8.32955 3.60428 8.50602 3.80481 8.64639C4.00936 8.78677 4.23997 8.89104 4.49666 8.95922C4.75735 9.0234 5.02807 9.05548 5.30882 9.05548C5.7139 9.05548 6.05682 8.99933 6.33757 8.88703C6.61832 8.77473 6.83088 8.61431 6.97527 8.40575C7.12366 8.19719 7.19786 7.95053 7.19786 7.66578Z" fill="currentColor"/></svg>'},{name:"WidthMedium",icon:'<svg id="WidthMedium" width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.37888 1H2.54037L5.50311 8.37267L8.45963 1H9.62733L5.95031 10.0435H5.04348L1.37888 1ZM1 1H2.02484L2.19255 6.51553V10.0435H1V1ZM8.97515 1H10V10.0435H8.80745V6.51553L8.97515 1Z" fill="currentColor"/></svg>'},{name:"WidthFull",icon:'<svg id="WidthFull" width="17" height="7" viewBox="0 0 17 7" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.375 1L16 3.625L13.375 6.25M15.5212 3.6243L1.74906 3.625M3.625 6.25L1 3.625L3.625 1" stroke="currentColor" stroke-width="1.19727" stroke-linecap="round" stroke-linejoin="round"/></svg>'},{name:"AlignStart",icon:'<svg id="AlignStart" width="15" height="12" viewBox="0 0 15 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.5 1C0.5 0.723858 0.723858 0.5 1 0.5H13.8C14.0761 0.5 14.3 0.723858 14.3 1C14.3 1.27614 14.0761 1.5 13.8 1.5H1C0.723858 1.5 0.5 1.27614 0.5 1Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M0.5 11C0.5 10.7239 0.723858 10.5 1 10.5H13.8C14.0761 10.5 14.3 10.7239 14.3 11C14.3 11.2761 14.0761 11.5 13.8 11.5H1C0.723858 11.5 0.5 11.2761 0.5 11Z" fill="currentColor"/><path d="M6.6 3.59998H1.8C1.35817 3.59998 1 3.95815 1 4.39998V7.59998C1 8.0418 1.35817 8.39998 1.8 8.39998H6.6C7.04183 8.39998 7.4 8.0418 7.4 7.59998V4.39998C7.4 3.95815 7.04183 3.59998 6.6 3.59998Z" fill="currentColor"/></svg>'},{name:"AlignCenter",icon:'<svg id="AlignCenter" width="15" height="11" viewBox="0 0 15 11" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.800049 0.5C0.800049 0.223858 1.02391 0 1.30005 0H14.1C14.3762 0 14.6 0.223858 14.6 0.5C14.6 0.776142 14.3762 1 14.1 1H1.30005C1.02391 1 0.800049 0.776142 0.800049 0.5Z" fill="black"/><path fill-rule="evenodd" clip-rule="evenodd" d="M0.800049 10.5C0.800049 10.2239 1.02391 10 1.30005 10H14.1C14.3762 10 14.6 10.2239 14.6 10.5C14.6 10.7761 14.3762 11 14.1 11H1.30005C1.02391 11 0.800049 10.7761 0.800049 10.5Z" fill="currentColor"/><path d="M10.1 3.09998H5.3C4.85817 3.09998 4.5 3.45815 4.5 3.89998V7.09998C4.5 7.5418 4.85817 7.89998 5.3 7.89998H10.1C10.5418 7.89998 10.9 7.5418 10.9 7.09998V3.89998C10.9 3.45815 10.5418 3.09998 10.1 3.09998Z" fill="currentColor"/></svg>'},{name:"AlignEnd",icon:'<svg id="AlignEnd" width="15" height="12" viewBox="0 0 15 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.5 1C0.5 0.723858 0.723858 0.5 1 0.5H13.8C14.0761 0.5 14.3 0.723858 14.3 1C14.3 1.27614 14.0761 1.5 13.8 1.5H1C0.723858 1.5 0.5 1.27614 0.5 1Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M0.5 11C0.5 10.7239 0.723858 10.5 1 10.5H13.8C14.0761 10.5 14.3 10.7239 14.3 11C14.3 11.2761 14.0761 11.5 13.8 11.5H1C0.723858 11.5 0.5 11.2761 0.5 11Z" fill="currentColor"/><path d="M13 3.59998H8.20002C7.7582 3.59998 7.40002 3.95815 7.40002 4.39998V7.59998C7.40002 8.0418 7.7582 8.39998 8.20002 8.39998H13C13.4419 8.39998 13.8 8.0418 13.8 7.59998V4.39998C13.8 3.95815 13.4419 3.59998 13 3.59998Z" fill="currentColor"/></svg>'}],this.container=null}render(){this.container=this.createContainer(),this.wrapper=this.createWrapper(),this.img=this.createImage();const e=this.createFileInput(),t=this.createIcon(),r=this.createLabel(e.id);return this.data.length>0||this.data.imageLink?(this.populateExistingFiles(this.img),this.showElement(this.img),this.container.appendChild(this.img)):(this.wrapper.prepend(t),this.wrapper.appendChild(r),this.wrapper.appendChild(e),this.container.appendChild(this.wrapper),this.container.appendChild(this.img),this.setupEventListeners(e)),this.data.length>0&&(this.data[0].width||this.data[0].position)&&this._acceptTuneView(),this.api.readOnly.isEnabled&&this._acceptTuneView(),this.container}populateExistingFiles(e){e.src=this.data[0].download_url}setupEventListeners(e){this.wrapper.addEventListener("drop",t=>{up=!0;const r=t.dataTransfer.files[0];this.handleFile(r)}),e.addEventListener("input",t=>{t.stopPropagation();const r=t.target.files[0];this.handleFile(r)})}handleFile(e){if(e.type.match("image.*")){const t=URL.createObjectURL(e);this.img.src=t,this.saveData(t,e.name),this._acceptTuneView(),this.removeElement(this.wrapper),this.showElement(this.container),this.showElement(this.img),this.uploadFiles(e)}else alert("Invalid file type. Please select an image file.")}uploadFiles(e){const t=this.api?.blocks?.getCurrentBlockIndex(),r=this.api?.blocks?.getBlockByIndex(t);this.config.uploadEvent({files:[e],id:r?.id,data:this.data})}removed(){const e=this.api?.blocks?.getCurrentBlockIndex(),t=this.api?.blocks?.getBlockByIndex(e);this.api?.readOnly?.isEnabled||this.api?.readOnly?.isEnabled!==this.lastReadOnly||this.config.deleteEvent({data:this.data,id:t?.id})}saveData(e,t){const r={download_url:e,label:t,width:"WidthMedium"};this.data=[r]}createImage(){const e=document.createElement("img");return e.classList.add("picture__upload_img"),e}createContainer(){const e=document.createElement("div");return e.classList.add("picture__upload"),e}createWrapper(){const e=document.createElement("div");return e.classList.add("picture__upload_btn"),e}createFileInput(){const e=`upload_image_${Date.now()}`,t=document.createElement("input");return t.type="file",t.name="image",t.id=e,t.accept="image/*",t}createIcon(){const e=document.createElement("img");return e.classList.add("picture__upload_btn_icon"),e.src=L9,e.onerror=()=>{console.error("Error loading icon image")},e.height="24",e}createLabel(e){const t=document.createElement("label");t.setAttribute("for",e),t.textContent=this.api.i18n.t("Drag & drop an image file or ");const r=document.createElement("span");return r.textContent=this.api.i18n.t("browse"),r.classList.add("upload"),t.appendChild(r),t}hideElement(e){e.style.display="none"}removeElement(e){e.remove()}showElement(e){e.style.display="flex"}save(){return this.isEmpty(this.data)?null:this.data}isEmpty(e){return!Array.isArray(e)||e.length===0}renderSettings(){const e=document.createElement("div");return this.data[0]&&this.settings.forEach(t=>{let r=document.createElement("div");r.classList.add("cdx-settings-button"),r.classList.toggle("cdx-settings-button--active",this.data[0].position==t.name||this.data[0].width==t.name),r.innerHTML=t.icon,e.appendChild(r),r.addEventListener("click",()=>{this._toggleTune(t.name),document.querySelectorAll(".cdx-settings-button--active").forEach(i=>{i.firstChild.id!==this.data[0].width&&i.firstChild.id!==this.data[0].position&&i.classList.remove("cdx-settings-button--active")}),r.classList.toggle("cdx-settings-button--active")})}),e}_toggleTune(e){(e=="WidthSmall"||e=="WidthMedium"||e=="WidthFull")&&(this.data[0].width=e),(e=="AlignStart"||e=="AlignCenter"||e=="AlignEnd")&&(this.data[0].position=e),this._acceptTuneView()}_acceptTuneView(){this.settings.forEach(e=>{this.container.classList.toggle(e.name,this.data[0].width==e.name||this.data[0].position==e.name)})}async _createFileFromImageUrl(e){const r=await(await fetch(e)).blob();return new File([r],"image.jpg",{type:r.type})}static get pasteConfig(){return{tags:[{img:{src:!0}}],files:{mimeTypes:["image/*"]},patterns:{image:/https?:\/\/\S+\.(gif|jpe?g|tiff|png|webp)$/i}}}onPaste(e){if(up){up=!1,this.deleteBlock();return}switch(e.type){case"file":{this.handleFile(e.detail.file);break}case"tag":{const t=e.detail.data;this._createFileFromImageUrl(t.src),(async()=>{try{const r=await this._createFileFromImageUrl(t.src);this.handleFile(r)}catch(r){console.error("Error fetching and creating file:",r),this.deleteBlock()}})();break}case"pattern":{const t=e.detail.data;this._createFileFromImageUrl(t),(async()=>{try{const r=await this._createFileFromImageUrl(t);this.handleFile(r)}catch(r){console.error("Error fetching and creating file:",r),this.deleteBlock()}})();break}}}deleteBlock(){this.api?.blocks?.delete()}}const N9="data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.9168%205.4165H11.2502C10.4766%205.4165%209.73475%205.72379%209.18777%206.27078C8.64079%206.81776%208.3335%207.55962%208.3335%208.33317V31.6665C8.3335%2032.4401%208.64079%2033.1819%209.18777%2033.7289C9.73475%2034.2759%2010.4766%2034.5832%2011.2502%2034.5832H28.7502C29.5237%2034.5832%2030.2656%2034.2759%2030.8126%2033.7289C31.3595%2033.1819%2031.6668%2032.4401%2031.6668%2031.6665V14.1665L22.9168%205.4165Z'%20fill='%23DAEBF7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9168%204.4165C23.182%204.4165%2023.4364%204.52186%2023.6239%204.7094L32.3739%2013.4594C32.5615%2013.6469%2032.6668%2013.9013%2032.6668%2014.1665V31.6665C32.6668%2032.7053%2032.2542%2033.7015%2031.5197%2034.436C30.7851%2035.1705%2029.7889%2035.5832%2028.7502%2035.5832H11.2502C10.2114%2035.5832%209.21518%2035.1705%208.48066%2034.436C7.74614%2033.7015%207.3335%2032.7053%207.3335%2031.6665V8.33317C7.3335%207.29441%207.74614%206.29819%208.48066%205.56367C9.21518%204.82915%2010.2114%204.4165%2011.2502%204.4165H22.9168ZM31.6668%2014.1665V31.6665C31.6668%2032.4401%2031.3595%2033.1819%2030.8126%2033.7289C30.2656%2034.2759%2029.5237%2034.5832%2028.7502%2034.5832H11.2502C10.4766%2034.5832%209.73475%2034.2759%209.18777%2033.7289C8.64079%2033.1819%208.3335%2032.4401%208.3335%2031.6665V8.33317C8.3335%207.55962%208.64079%206.81776%209.18777%206.27078C9.73475%205.72379%2010.4766%205.4165%2011.2502%205.4165H22.9168L31.6668%2014.1665Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M22.917%205.4165V12.1665C22.917%2013.2711%2023.8124%2014.1665%2024.917%2014.1665H31.667'%20fill='%230F71B4'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.917%204.9165C23.1931%204.9165%2023.417%205.14036%2023.417%205.4165V12.1665C23.417%2012.9949%2024.0886%2013.6665%2024.917%2013.6665H31.667C31.9431%2013.6665%2032.167%2013.8904%2032.167%2014.1665C32.167%2014.4426%2031.9431%2014.6665%2031.667%2014.6665H24.917C23.5363%2014.6665%2022.417%2013.5472%2022.417%2012.1665V5.4165C22.417%205.14036%2022.6408%204.9165%2022.917%204.9165Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M12.98%2028.9001C12.9133%2028.9001%2012.8567%2028.8768%2012.81%2028.8301C12.77%2028.7901%2012.75%2028.7368%2012.75%2028.6701V22.0301C12.75%2021.9634%2012.77%2021.9101%2012.81%2021.8701C12.8567%2021.8234%2012.9133%2021.8001%2012.98%2021.8001H13.44C13.5067%2021.8001%2013.56%2021.8234%2013.6%2021.8701C13.6467%2021.9101%2013.67%2021.9634%2013.67%2022.0301V22.4701C14.0433%2021.9568%2014.59%2021.7001%2015.31%2021.7001C16.01%2021.7001%2016.5333%2021.9201%2016.88%2022.3601C17.2333%2022.8001%2017.4233%2023.3668%2017.45%2024.0601C17.4567%2024.1334%2017.46%2024.2468%2017.46%2024.4001C17.46%2024.5534%2017.4567%2024.6668%2017.45%2024.7401C17.4233%2025.4268%2017.2333%2025.9934%2016.88%2026.4401C16.5267%2026.8801%2016.0033%2027.1001%2015.31%2027.1001C14.6167%2027.1001%2014.0767%2026.8501%2013.69%2026.3501V28.6701C13.69%2028.7368%2013.67%2028.7901%2013.63%2028.8301C13.59%2028.8768%2013.5367%2028.9001%2013.47%2028.9001H12.98ZM15.1%2026.2901C15.5733%2026.2901%2015.9167%2026.1434%2016.13%2025.8501C16.35%2025.5568%2016.47%2025.1701%2016.49%2024.6901C16.4967%2024.6234%2016.5%2024.5268%2016.5%2024.4001C16.5%2023.1401%2016.0333%2022.5101%2015.1%2022.5101C14.64%2022.5101%2014.2933%2022.6634%2014.06%2022.9701C13.8333%2023.2701%2013.71%2023.6301%2013.69%2024.0501L13.68%2024.4301L13.69%2024.8201C13.7033%2025.2134%2013.83%2025.5568%2014.07%2025.8501C14.31%2026.1434%2014.6533%2026.2901%2015.1%2026.2901Z'%20fill='%230F71B4'/%3e%3cpath%20d='M20.597%2027.1001C19.9037%2027.1001%2019.3804%2026.8734%2019.027%2026.4201C18.6737%2025.9668%2018.487%2025.3934%2018.467%2024.7001L18.457%2024.4001L18.467%2024.1001C18.487%2023.4134%2018.6737%2022.8434%2019.027%2022.3901C19.3804%2021.9301%2019.9037%2021.7001%2020.597%2021.7001C21.2837%2021.7001%2021.8237%2021.9434%2022.217%2022.4301V20.1301C22.217%2020.0634%2022.237%2020.0101%2022.277%2019.9701C22.3237%2019.9234%2022.3804%2019.9001%2022.447%2019.9001H22.927C22.9937%2019.9001%2023.047%2019.9234%2023.087%2019.9701C23.1337%2020.0101%2023.157%2020.0634%2023.157%2020.1301V26.7701C23.157%2026.8368%2023.1337%2026.8934%2023.087%2026.9401C23.047%2026.9801%2022.9937%2027.0001%2022.927%2027.0001H22.477C22.4104%2027.0001%2022.3537%2026.9801%2022.307%2026.9401C22.267%2026.8934%2022.247%2026.8368%2022.247%2026.7701V26.3501C21.8604%2026.8501%2021.3104%2027.1001%2020.597%2027.1001ZM20.807%2026.2901C21.267%2026.2901%2021.6104%2026.1401%2021.837%2025.8401C22.0704%2025.5334%2022.197%2025.1701%2022.217%2024.7501C22.2237%2024.6768%2022.227%2024.5501%2022.227%2024.3701C22.227%2024.1834%2022.2237%2024.0534%2022.217%2023.9801C22.2037%2023.5868%2022.077%2023.2434%2021.837%2022.9501C21.597%2022.6568%2021.2537%2022.5101%2020.807%2022.5101C20.3337%2022.5101%2019.987%2022.6568%2019.767%2022.9501C19.5537%2023.2434%2019.437%2023.6301%2019.417%2024.1101L19.407%2024.4001C19.407%2025.6601%2019.8737%2026.2901%2020.807%2026.2901Z'%20fill='%230F71B4'/%3e%3cpath%20d='M25.3943%2027.0001C25.3276%2027.0001%2025.271%2026.9801%2025.2243%2026.9401C25.1843%2026.8934%2025.1643%2026.8368%2025.1643%2026.7701V22.6001H24.3143C24.2476%2022.6001%2024.191%2022.5801%2024.1443%2022.5401C24.1043%2022.4934%2024.0843%2022.4368%2024.0843%2022.3701V22.0301C24.0843%2021.9634%2024.1043%2021.9101%2024.1443%2021.8701C24.191%2021.8234%2024.2476%2021.8001%2024.3143%2021.8001H25.1643V21.3001C25.1643%2020.1668%2025.7376%2019.6001%2026.8843%2019.6001H27.4843C27.551%2019.6001%2027.6043%2019.6234%2027.6443%2019.6701C27.691%2019.7101%2027.7143%2019.7634%2027.7143%2019.8301V20.1701C27.7143%2020.2368%2027.691%2020.2934%2027.6443%2020.3401C27.6043%2020.3801%2027.551%2020.4001%2027.4843%2020.4001H26.9043C26.6043%2020.4001%2026.3943%2020.4801%2026.2743%2020.6401C26.1543%2020.7934%2026.0943%2021.0301%2026.0943%2021.3501V21.8001H27.3843C27.451%2021.8001%2027.5043%2021.8234%2027.5443%2021.8701C27.591%2021.9101%2027.6143%2021.9634%2027.6143%2022.0301V22.3701C27.6143%2022.4368%2027.591%2022.4934%2027.5443%2022.5401C27.5043%2022.5801%2027.451%2022.6001%2027.3843%2022.6001H26.0943V26.7701C26.0943%2026.8368%2026.071%2026.8934%2026.0243%2026.9401C25.9843%2026.9801%2025.931%2027.0001%2025.8643%2027.0001H25.3943Z'%20fill='%230F71B4'/%3e%3c/svg%3e",D9="data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.9166%205.41663H11.25C10.4764%205.41663%209.73457%205.72392%209.18758%206.2709C8.6406%206.81788%208.33331%207.55974%208.33331%208.33329V31.6667C8.33331%2032.4402%208.6406%2033.1821%209.18758%2033.729C9.73457%2034.276%2010.4764%2034.5833%2011.25%2034.5833H28.75C29.5235%2034.5833%2030.2654%2034.276%2030.8124%2033.729C31.3594%2033.1821%2031.6666%2032.4402%2031.6666%2031.6667V14.1667L22.9166%205.41663Z'%20fill='%23DAEBF7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9166%204.41663C23.1819%204.41663%2023.4362%204.52198%2023.6238%204.70952L32.3738%2013.4595C32.5613%2013.6471%2032.6666%2013.9014%2032.6666%2014.1667V31.6667C32.6666%2032.7054%2032.254%2033.7016%2031.5195%2034.4362C30.785%2035.1707%2029.7887%2035.5833%2028.75%2035.5833H11.25C10.2112%2035.5833%209.215%2035.1707%208.48048%2034.4362C7.74596%2033.7016%207.33331%2032.7054%207.33331%2031.6667V8.33329C7.33331%207.29453%207.74596%206.29831%208.48048%205.56379C9.215%204.82927%2010.2112%204.41663%2011.25%204.41663H22.9166ZM31.6666%2014.1667V31.6667C31.6666%2032.4402%2031.3594%2033.1821%2030.8124%2033.729C30.2654%2034.276%2029.5235%2034.5833%2028.75%2034.5833H11.25C10.4764%2034.5833%209.73457%2034.276%209.18758%2033.729C8.6406%2033.1821%208.33331%2032.4402%208.33331%2031.6667V8.33329C8.33331%207.55974%208.6406%206.81788%209.18758%206.2709C9.73457%205.72392%2010.4764%205.41663%2011.25%205.41663H22.9166L31.6666%2014.1667Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M22.9166%205.41663V12.1667C22.9166%2013.2712%2023.8121%2014.1667%2024.9166%2014.1667H31.6666'%20fill='%230F71B4'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9166%204.91663C23.1928%204.91663%2023.4166%205.14048%2023.4166%205.41663V12.1667C23.4166%2012.9951%2024.0882%2013.6667%2024.9166%2013.6667H31.6666C31.9428%2013.6667%2032.1666%2013.8905%2032.1666%2014.1667C32.1666%2014.4428%2031.9428%2014.6667%2031.6666%2014.6667H24.9166C23.5359%2014.6667%2022.4166%2013.5474%2022.4166%2012.1667V5.41663C22.4166%205.14048%2022.6405%204.91663%2022.9166%204.91663Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M12.89%2028.9C12.8233%2028.9%2012.77%2028.8767%2012.73%2028.83C12.6833%2028.79%2012.66%2028.7367%2012.66%2028.67V28.33C12.66%2028.2633%2012.6833%2028.2067%2012.73%2028.16C12.77%2028.12%2012.8233%2028.1%2012.89%2028.1H13.03C13.27%2028.1%2013.4466%2028.0533%2013.56%2027.96C13.6733%2027.8733%2013.7466%2027.7567%2013.78%2027.61C13.82%2027.4633%2013.84%2027.2967%2013.84%2027.11V22.03C13.84%2021.9633%2013.86%2021.91%2013.9%2021.87C13.9466%2021.8233%2014.0033%2021.8%2014.07%2021.8H14.56C14.6266%2021.8%2014.68%2021.8233%2014.72%2021.87C14.7666%2021.91%2014.79%2021.9633%2014.79%2022.03V27.12C14.79%2027.4733%2014.7333%2027.7833%2014.62%2028.05C14.5133%2028.3167%2014.3366%2028.5233%2014.09%2028.67C13.8433%2028.8233%2013.5066%2028.9%2013.08%2028.9H12.89ZM13.99%2020.83C13.9233%2020.83%2013.8666%2020.81%2013.82%2020.77C13.78%2020.7233%2013.76%2020.6667%2013.76%2020.6V20.06C13.76%2019.9933%2013.78%2019.94%2013.82%2019.9C13.8666%2019.8533%2013.9233%2019.83%2013.99%2019.83H14.63C14.6966%2019.83%2014.7533%2019.8533%2014.8%2019.9C14.8466%2019.94%2014.87%2019.9933%2014.87%2020.06V20.6C14.87%2020.6667%2014.8466%2020.7233%2014.8%2020.77C14.7533%2020.81%2014.6966%2020.83%2014.63%2020.83H13.99Z'%20fill='%230F71B4'/%3e%3cpath%20d='M16.6167%2028.9C16.55%2028.9%2016.4934%2028.8767%2016.4467%2028.83C16.4067%2028.79%2016.3867%2028.7367%2016.3867%2028.67V22.03C16.3867%2021.9633%2016.4067%2021.91%2016.4467%2021.87C16.4934%2021.8233%2016.55%2021.7999%2016.6167%2021.7999H17.0767C17.1434%2021.7999%2017.1967%2021.8233%2017.2367%2021.87C17.2834%2021.91%2017.3067%2021.9633%2017.3067%2022.03V22.4699C17.4667%2022.2499%2017.68%2022.0667%2017.9467%2021.92C18.2134%2021.7733%2018.5467%2021.7%2018.9467%2021.7C19.32%2021.7%2019.6367%2021.7632%2019.8967%2021.8899C20.1634%2022.0166%2020.38%2022.19%2020.5467%2022.41C20.72%2022.63%2020.85%2022.88%2020.9367%2023.16C21.0234%2023.44%2021.07%2023.7399%2021.0767%2024.0599C21.0834%2024.1666%2021.0867%2024.28%2021.0867%2024.4C21.0867%2024.52%2021.0834%2024.6333%2021.0767%2024.74C21.07%2025.0533%2021.0234%2025.3532%2020.9367%2025.6399C20.85%2025.9199%2020.72%2026.1699%2020.5467%2026.3899C20.38%2026.6032%2020.1634%2026.7767%2019.8967%2026.91C19.6367%2027.0367%2019.32%2027.1%2018.9467%2027.1C18.56%2027.1%2018.2334%2027.0299%2017.9667%2026.8899C17.7067%2026.7432%2017.4934%2026.5633%2017.3267%2026.35V28.67C17.3267%2028.7367%2017.3067%2028.79%2017.2667%2028.83C17.2267%2028.8767%2017.17%2028.9%2017.0967%2028.9H16.6167ZM18.7367%2026.29C19.0834%2026.29%2019.3534%2026.2167%2019.5467%2026.07C19.7467%2025.9167%2019.89%2025.7199%2019.9767%2025.4799C20.0634%2025.2332%2020.1134%2024.97%2020.1267%2024.69C20.1334%2024.4967%2020.1334%2024.3033%2020.1267%2024.11C20.1134%2023.83%2020.0634%2023.57%2019.9767%2023.33C19.89%2023.0833%2019.7467%2022.8867%2019.5467%2022.74C19.3534%2022.5867%2019.0834%2022.51%2018.7367%2022.51C18.41%2022.51%2018.1434%2022.5867%2017.9367%2022.74C17.7367%2022.8933%2017.5867%2023.09%2017.4867%2023.33C17.3934%2023.5633%2017.34%2023.8032%2017.3267%2024.0499C17.32%2024.1566%2017.3167%2024.2833%2017.3167%2024.43C17.3167%2024.5767%2017.32%2024.7067%2017.3267%2024.82C17.3334%2025.0533%2017.3867%2025.2833%2017.4867%2025.51C17.5934%2025.7367%2017.75%2025.9233%2017.9567%2026.07C18.1634%2026.2167%2018.4234%2026.29%2018.7367%2026.29Z'%20fill='%230F71B4'/%3e%3cpath%20d='M24.0594%2029.2C23.6061%2029.2%2023.2328%2029.14%2022.9394%2029.02C22.6528%2028.9%2022.4261%2028.7533%2022.2594%2028.58C22.0994%2028.4133%2021.9828%2028.2433%2021.9094%2028.07C21.8428%2027.9033%2021.8061%2027.77%2021.7994%2027.67C21.7928%2027.6033%2021.8128%2027.5467%2021.8594%2027.5C21.9128%2027.4533%2021.9694%2027.43%2022.0294%2027.43H22.5094C22.5694%2027.43%2022.6194%2027.4432%2022.6594%2027.4699C22.6994%2027.4966%2022.7328%2027.5532%2022.7594%2027.6399C22.7994%2027.7399%2022.8594%2027.8499%2022.9394%2027.9699C23.0194%2028.0966%2023.1428%2028.2033%2023.3094%2028.29C23.4761%2028.3833%2023.7094%2028.43%2024.0094%2028.43C24.3228%2028.43%2024.5861%2028.3866%2024.7994%2028.2999C25.0128%2028.2199%2025.1728%2028.0733%2025.2794%2027.86C25.3928%2027.6533%2025.4494%2027.3667%2025.4494%2027V26.32C25.2894%2026.5267%2025.0794%2026.7%2024.8194%2026.84C24.5594%2026.9733%2024.2328%2027.04%2023.8394%2027.04C23.4661%2027.04%2023.1461%2026.9767%2022.8794%2026.85C22.6128%2026.7167%2022.3928%2026.54%2022.2194%2026.32C22.0528%2026.0933%2021.9261%2025.8366%2021.8394%2025.5499C21.7594%2025.2632%2021.7128%2024.9633%2021.6994%2024.65C21.6928%2024.4633%2021.6928%2024.28%2021.6994%2024.1C21.7128%2023.7867%2021.7594%2023.4867%2021.8394%2023.2C21.9261%2022.9133%2022.0528%2022.6567%2022.2194%2022.43C22.3928%2022.2033%2022.6128%2022.0267%2022.8794%2021.9C23.1461%2021.7667%2023.4661%2021.7%2023.8394%2021.7C24.2394%2021.7%2024.5694%2021.7767%2024.8294%2021.93C25.0961%2022.0767%2025.3128%2022.2566%2025.4794%2022.4699V22.04C25.4794%2021.9733%2025.4994%2021.9167%2025.5394%2021.87C25.5861%2021.8233%2025.6428%2021.7999%2025.7094%2021.7999H26.1694C26.2361%2021.7999%2026.2928%2021.8233%2026.3394%2021.87C26.3861%2021.9167%2026.4094%2021.9733%2026.4094%2022.04V26.8899C26.4094%2027.3366%2026.3328%2027.7333%2026.1794%2028.08C26.0328%2028.4267%2025.7861%2028.7%2025.4394%2028.9C25.0994%2029.1%2024.6394%2029.2%2024.0594%2029.2ZM24.0394%2026.24C24.3728%2026.24%2024.6394%2026.1633%2024.8394%2026.01C25.0461%2025.8567%2025.1961%2025.6633%2025.2894%2025.43C25.3894%2025.1967%2025.4428%2024.9599%2025.4494%2024.7199C25.4561%2024.6266%2025.4594%2024.5132%2025.4594%2024.3799C25.4594%2024.2399%2025.4561%2024.1233%2025.4494%2024.03C25.4428%2023.79%2025.3894%2023.5533%2025.2894%2023.32C25.1961%2023.0867%2025.0461%2022.8933%2024.8394%2022.74C24.6394%2022.5867%2024.3728%2022.51%2024.0394%2022.51C23.7061%2022.51%2023.4394%2022.5867%2023.2394%2022.74C23.0394%2022.8867%2022.8961%2023.0833%2022.8094%2023.33C22.7228%2023.57%2022.6728%2023.83%2022.6594%2024.11C22.6528%2024.2833%2022.6528%2024.4599%2022.6594%2024.6399C22.6728%2024.9199%2022.7228%2025.1833%2022.8094%2025.43C22.8961%2025.67%2023.0394%2025.8667%2023.2394%2026.02C23.4394%2026.1667%2023.7061%2026.24%2024.0394%2026.24Z'%20fill='%230F71B4'/%3e%3c/svg%3e",I9="data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.9166%205.41666H11.25C10.4764%205.41666%209.73457%205.72395%209.18758%206.27093C8.6406%206.81791%208.33331%207.55977%208.33331%208.33332V31.6667C8.33331%2032.4402%208.6406%2033.1821%209.18758%2033.729C9.73457%2034.276%2010.4764%2034.5833%2011.25%2034.5833H28.75C29.5235%2034.5833%2030.2654%2034.276%2030.8124%2033.729C31.3594%2033.1821%2031.6666%2032.4402%2031.6666%2031.6667V14.1667L22.9166%205.41666Z'%20fill='%23DAEBF7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9166%204.41666C23.1819%204.41666%2023.4362%204.52201%2023.6238%204.70955L32.3738%2013.4595C32.5613%2013.6471%2032.6666%2013.9014%2032.6666%2014.1667V31.6667C32.6666%2032.7054%2032.254%2033.7016%2031.5195%2034.4362C30.785%2035.1707%2029.7887%2035.5833%2028.75%2035.5833H11.25C10.2112%2035.5833%209.215%2035.1707%208.48048%2034.4362C7.74596%2033.7016%207.33331%2032.7054%207.33331%2031.6667V8.33332C7.33331%207.29456%207.74596%206.29834%208.48048%205.56382C9.215%204.8293%2010.2112%204.41666%2011.25%204.41666H22.9166ZM31.6666%2014.1667V31.6667C31.6666%2032.4402%2031.3594%2033.1821%2030.8124%2033.729C30.2654%2034.276%2029.5235%2034.5833%2028.75%2034.5833H11.25C10.4764%2034.5833%209.73457%2034.276%209.18758%2033.729C8.6406%2033.1821%208.33331%2032.4402%208.33331%2031.6667V8.33332C8.33331%207.55977%208.6406%206.81791%209.18758%206.27093C9.73457%205.72395%2010.4764%205.41666%2011.25%205.41666H22.9166L31.6666%2014.1667Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M22.9166%205.41666V12.1667C22.9166%2013.2712%2023.8121%2014.1667%2024.9166%2014.1667H31.6666'%20fill='%230F71B4'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9166%204.91666C23.1928%204.91666%2023.4166%205.14051%2023.4166%205.41666V12.1667C23.4166%2012.9951%2024.0882%2013.6667%2024.9166%2013.6667H31.6666C31.9428%2013.6667%2032.1666%2013.8905%2032.1666%2014.1667C32.1666%2014.4428%2031.9428%2014.6667%2031.6666%2014.6667H24.9166C23.5359%2014.6667%2022.4166%2013.5474%2022.4166%2012.1667V5.41666C22.4166%205.14051%2022.6405%204.91666%2022.9166%204.91666Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M9.88997%2028.9C9.82331%2028.9%209.76997%2028.8767%209.72997%2028.83C9.68331%2028.79%209.65997%2028.7367%209.65997%2028.67V28.33C9.65997%2028.2633%209.68331%2028.2067%209.72997%2028.16C9.76997%2028.12%209.82331%2028.1%209.88997%2028.1H10.03C10.27%2028.1%2010.4466%2028.0533%2010.56%2027.96C10.6733%2027.8733%2010.7466%2027.7567%2010.78%2027.61C10.82%2027.4633%2010.84%2027.2967%2010.84%2027.11V22.03C10.84%2021.9633%2010.86%2021.91%2010.9%2021.87C10.9466%2021.8233%2011.0033%2021.8%2011.07%2021.8H11.56C11.6266%2021.8%2011.68%2021.8233%2011.72%2021.87C11.7666%2021.91%2011.79%2021.9633%2011.79%2022.03V27.12C11.79%2027.4733%2011.7333%2027.7833%2011.62%2028.05C11.5133%2028.3167%2011.3366%2028.5233%2011.09%2028.67C10.8433%2028.8233%2010.5066%2028.9%2010.08%2028.9H9.88997ZM10.99%2020.83C10.9233%2020.83%2010.8666%2020.81%2010.82%2020.77C10.78%2020.7233%2010.76%2020.6667%2010.76%2020.6V20.06C10.76%2019.9933%2010.78%2019.94%2010.82%2019.9C10.8666%2019.8533%2010.9233%2019.83%2010.99%2019.83H11.63C11.6966%2019.83%2011.7533%2019.8533%2011.8%2019.9C11.8466%2019.94%2011.87%2019.9933%2011.87%2020.06V20.6C11.87%2020.6667%2011.8466%2020.7233%2011.8%2020.77C11.7533%2020.81%2011.6966%2020.83%2011.63%2020.83H10.99Z'%20fill='%230F71B4'/%3e%3cpath%20d='M13.6167%2028.9C13.55%2028.9%2013.4934%2028.8767%2013.4467%2028.83C13.4067%2028.79%2013.3867%2028.7367%2013.3867%2028.67V22.03C13.3867%2021.9633%2013.4067%2021.91%2013.4467%2021.87C13.4934%2021.8233%2013.55%2021.8%2013.6167%2021.8H14.0767C14.1434%2021.8%2014.1967%2021.8233%2014.2367%2021.87C14.2834%2021.91%2014.3067%2021.9633%2014.3067%2022.03V22.47C14.4667%2022.25%2014.68%2022.0667%2014.9467%2021.92C15.2134%2021.7733%2015.5467%2021.7%2015.9467%2021.7C16.32%2021.7%2016.6367%2021.7633%2016.8967%2021.89C17.1634%2022.0167%2017.38%2022.19%2017.5467%2022.41C17.72%2022.63%2017.85%2022.88%2017.9367%2023.16C18.0234%2023.44%2018.07%2023.74%2018.0767%2024.06C18.0834%2024.1667%2018.0867%2024.28%2018.0867%2024.4C18.0867%2024.52%2018.0834%2024.6333%2018.0767%2024.74C18.07%2025.0533%2018.0234%2025.3533%2017.9367%2025.64C17.85%2025.92%2017.72%2026.17%2017.5467%2026.39C17.38%2026.6033%2017.1634%2026.7767%2016.8967%2026.91C16.6367%2027.0367%2016.32%2027.1%2015.9467%2027.1C15.56%2027.1%2015.2334%2027.03%2014.9667%2026.89C14.7067%2026.7433%2014.4934%2026.5633%2014.3267%2026.35V28.67C14.3267%2028.7367%2014.3067%2028.79%2014.2667%2028.83C14.2267%2028.8767%2014.17%2028.9%2014.0967%2028.9H13.6167ZM15.7367%2026.29C16.0834%2026.29%2016.3534%2026.2167%2016.5467%2026.07C16.7467%2025.9167%2016.89%2025.72%2016.9767%2025.48C17.0634%2025.2333%2017.1134%2024.97%2017.1267%2024.69C17.1334%2024.4967%2017.1334%2024.3033%2017.1267%2024.11C17.1134%2023.83%2017.0634%2023.57%2016.9767%2023.33C16.89%2023.0833%2016.7467%2022.8867%2016.5467%2022.74C16.3534%2022.5867%2016.0834%2022.51%2015.7367%2022.51C15.41%2022.51%2015.1434%2022.5867%2014.9367%2022.74C14.7367%2022.8933%2014.5867%2023.09%2014.4867%2023.33C14.3934%2023.5633%2014.34%2023.8033%2014.3267%2024.05C14.32%2024.1567%2014.3167%2024.2833%2014.3167%2024.43C14.3167%2024.5767%2014.32%2024.7067%2014.3267%2024.82C14.3334%2025.0533%2014.3867%2025.2833%2014.4867%2025.51C14.5934%2025.7367%2014.75%2025.9233%2014.9567%2026.07C15.1634%2026.2167%2015.4234%2026.29%2015.7367%2026.29Z'%20fill='%230F71B4'/%3e%3cpath%20d='M21.4037%2027.1C20.7171%2027.1%2020.1704%2026.89%2019.7637%2026.47C19.3571%2026.0433%2019.1337%2025.4633%2019.0937%2024.73C19.0871%2024.6433%2019.0837%2024.5333%2019.0837%2024.4C19.0837%2024.26%2019.0871%2024.1467%2019.0937%2024.06C19.1204%2023.5867%2019.2304%2023.1733%2019.4237%2022.82C19.6171%2022.46%2019.8804%2022.1833%2020.2137%2021.99C20.5537%2021.7967%2020.9504%2021.7%2021.4037%2021.7C21.9104%2021.7%2022.3337%2021.8067%2022.6737%2022.02C23.0204%2022.2333%2023.2837%2022.5367%2023.4637%2022.93C23.6437%2023.3233%2023.7337%2023.7833%2023.7337%2024.31V24.48C23.7337%2024.5533%2023.7104%2024.61%2023.6637%2024.65C23.6237%2024.69%2023.5704%2024.71%2023.5037%2024.71H20.0437C20.0437%2024.7167%2020.0437%2024.73%2020.0437%2024.75C20.0437%2024.77%2020.0437%2024.7867%2020.0437%2024.8C20.0571%2025.0733%2020.1171%2025.33%2020.2237%2025.57C20.3304%2025.8033%2020.4837%2025.9933%2020.6837%2026.14C20.8837%2026.2867%2021.1237%2026.36%2021.4037%2026.36C21.6437%2026.36%2021.8437%2026.3233%2022.0037%2026.25C22.1637%2026.1767%2022.2937%2026.0967%2022.3937%2026.01C22.4937%2025.9167%2022.5604%2025.8467%2022.5937%2025.8C22.6537%2025.7133%2022.7004%2025.6633%2022.7337%2025.65C22.7671%2025.63%2022.8204%2025.62%2022.8937%2025.62H23.3737C23.4404%2025.62%2023.4937%2025.64%2023.5337%2025.68C23.5804%2025.7133%2023.6004%2025.7633%2023.5937%2025.83C23.5871%2025.93%2023.5337%2026.0533%2023.4337%2026.2C23.3337%2026.34%2023.1904%2026.48%2023.0037%2026.62C22.8171%2026.76%2022.5904%2026.8767%2022.3237%2026.97C22.0571%2027.0567%2021.7504%2027.1%2021.4037%2027.1ZM20.0437%2024.02H22.7837V23.99C22.7837%2023.69%2022.7271%2023.4233%2022.6137%2023.19C22.5071%2022.9567%2022.3504%2022.7733%2022.1437%2022.64C21.9371%2022.5%2021.6904%2022.43%2021.4037%2022.43C21.1171%2022.43%2020.8704%2022.5%2020.6637%2022.64C20.4637%2022.7733%2020.3104%2022.9567%2020.2037%2023.19C20.0971%2023.4233%2020.0437%2023.69%2020.0437%2023.99V24.02Z'%20fill='%230F71B4'/%3e%3cpath%20d='M27.0594%2029.2C26.6061%2029.2%2026.2328%2029.14%2025.9394%2029.02C25.6528%2028.9%2025.4261%2028.7533%2025.2594%2028.58C25.0994%2028.4133%2024.9828%2028.2433%2024.9094%2028.07C24.8428%2027.9033%2024.8061%2027.77%2024.7994%2027.67C24.7928%2027.6033%2024.8128%2027.5467%2024.8594%2027.5C24.9128%2027.4533%2024.9694%2027.43%2025.0294%2027.43H25.5094C25.5694%2027.43%2025.6194%2027.4433%2025.6594%2027.47C25.6994%2027.4967%2025.7328%2027.5533%2025.7594%2027.64C25.7994%2027.74%2025.8594%2027.85%2025.9394%2027.97C26.0194%2028.0967%2026.1428%2028.2033%2026.3094%2028.29C26.4761%2028.3833%2026.7094%2028.43%2027.0094%2028.43C27.3228%2028.43%2027.5861%2028.3867%2027.7994%2028.3C28.0128%2028.22%2028.1728%2028.0733%2028.2794%2027.86C28.3928%2027.6533%2028.4494%2027.3667%2028.4494%2027V26.32C28.2894%2026.5267%2028.0794%2026.7%2027.8194%2026.84C27.5594%2026.9733%2027.2328%2027.04%2026.8394%2027.04C26.4661%2027.04%2026.1461%2026.9767%2025.8794%2026.85C25.6128%2026.7167%2025.3928%2026.54%2025.2194%2026.32C25.0528%2026.0933%2024.9261%2025.8367%2024.8394%2025.55C24.7594%2025.2633%2024.7128%2024.9633%2024.6994%2024.65C24.6928%2024.4633%2024.6928%2024.28%2024.6994%2024.1C24.7128%2023.7867%2024.7594%2023.4867%2024.8394%2023.2C24.9261%2022.9133%2025.0528%2022.6567%2025.2194%2022.43C25.3928%2022.2033%2025.6128%2022.0267%2025.8794%2021.9C26.1461%2021.7667%2026.4661%2021.7%2026.8394%2021.7C27.2394%2021.7%2027.5694%2021.7767%2027.8294%2021.93C28.0961%2022.0767%2028.3128%2022.2567%2028.4794%2022.47V22.04C28.4794%2021.9733%2028.4994%2021.9167%2028.5394%2021.87C28.5861%2021.8233%2028.6428%2021.8%2028.7094%2021.8H29.1694C29.2361%2021.8%2029.2928%2021.8233%2029.3394%2021.87C29.3861%2021.9167%2029.4094%2021.9733%2029.4094%2022.04V26.89C29.4094%2027.3367%2029.3328%2027.7333%2029.1794%2028.08C29.0328%2028.4267%2028.7861%2028.7%2028.4394%2028.9C28.0994%2029.1%2027.6394%2029.2%2027.0594%2029.2ZM27.0394%2026.24C27.3728%2026.24%2027.6394%2026.1633%2027.8394%2026.01C28.0461%2025.8567%2028.1961%2025.6633%2028.2894%2025.43C28.3894%2025.1967%2028.4428%2024.96%2028.4494%2024.72C28.4561%2024.6267%2028.4594%2024.5133%2028.4594%2024.38C28.4594%2024.24%2028.4561%2024.1233%2028.4494%2024.03C28.4428%2023.79%2028.3894%2023.5533%2028.2894%2023.32C28.1961%2023.0867%2028.0461%2022.8933%2027.8394%2022.74C27.6394%2022.5867%2027.3728%2022.51%2027.0394%2022.51C26.7061%2022.51%2026.4394%2022.5867%2026.2394%2022.74C26.0394%2022.8867%2025.8961%2023.0833%2025.8094%2023.33C25.7228%2023.57%2025.6728%2023.83%2025.6594%2024.11C25.6528%2024.2833%2025.6528%2024.46%2025.6594%2024.64C25.6728%2024.92%2025.7228%2025.1833%2025.8094%2025.43C25.8961%2025.67%2026.0394%2025.8667%2026.2394%2026.02C26.4394%2026.1667%2026.7061%2026.24%2027.0394%2026.24Z'%20fill='%230F71B4'/%3e%3c/svg%3e",P9="data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.9166%205.41666H11.25C10.4764%205.41666%209.73457%205.72395%209.18758%206.27093C8.6406%206.81791%208.33331%207.55977%208.33331%208.33332V31.6667C8.33331%2032.4402%208.6406%2033.1821%209.18758%2033.729C9.73457%2034.276%2010.4764%2034.5833%2011.25%2034.5833H28.75C29.5235%2034.5833%2030.2654%2034.276%2030.8124%2033.729C31.3594%2033.1821%2031.6666%2032.4402%2031.6666%2031.6667V14.1667L22.9166%205.41666Z'%20fill='%23DAEBF7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9166%204.41666C23.1819%204.41666%2023.4362%204.52201%2023.6238%204.70955L32.3738%2013.4595C32.5613%2013.6471%2032.6666%2013.9014%2032.6666%2014.1667V31.6667C32.6666%2032.7054%2032.254%2033.7016%2031.5195%2034.4362C30.785%2035.1707%2029.7887%2035.5833%2028.75%2035.5833H11.25C10.2112%2035.5833%209.215%2035.1707%208.48048%2034.4362C7.74596%2033.7016%207.33331%2032.7054%207.33331%2031.6667V8.33332C7.33331%207.29456%207.74596%206.29834%208.48048%205.56382C9.215%204.8293%2010.2112%204.41666%2011.25%204.41666H22.9166ZM31.6666%2014.1667V31.6667C31.6666%2032.4402%2031.3594%2033.1821%2030.8124%2033.729C30.2654%2034.276%2029.5235%2034.5833%2028.75%2034.5833H11.25C10.4764%2034.5833%209.73457%2034.276%209.18758%2033.729C8.6406%2033.1821%208.33331%2032.4402%208.33331%2031.6667V8.33332C8.33331%207.55977%208.6406%206.81791%209.18758%206.27093C9.73457%205.72395%2010.4764%205.41666%2011.25%205.41666H22.9166L31.6666%2014.1667Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M22.9166%205.41666V12.1667C22.9166%2013.2712%2023.8121%2014.1667%2024.9166%2014.1667H31.6666'%20fill='%230F71B4'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9166%204.91666C23.1928%204.91666%2023.4166%205.14051%2023.4166%205.41666V12.1667C23.4166%2012.9951%2024.0882%2013.6667%2024.9166%2013.6667H31.6666C31.9428%2013.6667%2032.1666%2013.8905%2032.1666%2014.1667C32.1666%2014.4428%2031.9428%2014.6667%2031.6666%2014.6667H24.9166C23.5359%2014.6667%2022.4166%2013.5474%2022.4166%2012.1667V5.41666C22.4166%205.14051%2022.6405%204.91666%2022.9166%204.91666Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M11.98%2028.9C11.9133%2028.9%2011.8567%2028.8767%2011.81%2028.83C11.77%2028.79%2011.75%2028.7367%2011.75%2028.67V22.03C11.75%2021.9633%2011.77%2021.91%2011.81%2021.87C11.8567%2021.8233%2011.9133%2021.8%2011.98%2021.8H12.44C12.5067%2021.8%2012.56%2021.8233%2012.6%2021.87C12.6467%2021.91%2012.67%2021.9633%2012.67%2022.03V22.47C12.83%2022.25%2013.0433%2022.0667%2013.31%2021.92C13.5767%2021.7733%2013.91%2021.7%2014.31%2021.7C14.6833%2021.7%2015%2021.7633%2015.26%2021.89C15.5267%2022.0167%2015.7433%2022.19%2015.91%2022.41C16.0833%2022.63%2016.2133%2022.88%2016.3%2023.16C16.3867%2023.44%2016.4333%2023.74%2016.44%2024.06C16.4467%2024.1667%2016.45%2024.28%2016.45%2024.4C16.45%2024.52%2016.4467%2024.6333%2016.44%2024.74C16.4333%2025.0533%2016.3867%2025.3533%2016.3%2025.64C16.2133%2025.92%2016.0833%2026.17%2015.91%2026.39C15.7433%2026.6033%2015.5267%2026.7767%2015.26%2026.91C15%2027.0367%2014.6833%2027.1%2014.31%2027.1C13.9233%2027.1%2013.5967%2027.03%2013.33%2026.89C13.07%2026.7433%2012.8567%2026.5633%2012.69%2026.35V28.67C12.69%2028.7367%2012.67%2028.79%2012.63%2028.83C12.59%2028.8767%2012.5333%2028.9%2012.46%2028.9H11.98ZM14.1%2026.29C14.4467%2026.29%2014.7167%2026.2167%2014.91%2026.07C15.11%2025.9167%2015.2533%2025.72%2015.34%2025.48C15.4267%2025.2333%2015.4767%2024.97%2015.49%2024.69C15.4967%2024.4967%2015.4967%2024.3033%2015.49%2024.11C15.4767%2023.83%2015.4267%2023.57%2015.34%2023.33C15.2533%2023.0833%2015.11%2022.8867%2014.91%2022.74C14.7167%2022.5867%2014.4467%2022.51%2014.1%2022.51C13.7733%2022.51%2013.5067%2022.5867%2013.3%2022.74C13.1%2022.8933%2012.95%2023.09%2012.85%2023.33C12.7567%2023.5633%2012.7033%2023.8033%2012.69%2024.05C12.6833%2024.1567%2012.68%2024.2833%2012.68%2024.43C12.68%2024.5767%2012.6833%2024.7067%2012.69%2024.82C12.6967%2025.0533%2012.75%2025.2833%2012.85%2025.51C12.9567%2025.7367%2013.1133%2025.9233%2013.32%2026.07C13.5267%2026.2167%2013.7867%2026.29%2014.1%2026.29Z'%20fill='%230F71B4'/%3e%3cpath%20d='M17.927%2027C17.8604%2027%2017.8037%2026.98%2017.757%2026.94C17.717%2026.8933%2017.697%2026.8367%2017.697%2026.77V22.03C17.697%2021.9633%2017.717%2021.91%2017.757%2021.87C17.8037%2021.8233%2017.8604%2021.8%2017.927%2021.8H18.397C18.4637%2021.8%2018.517%2021.8233%2018.557%2021.87C18.6037%2021.91%2018.627%2021.9633%2018.627%2022.03V22.47C18.8004%2022.2433%2019.017%2022.06%2019.277%2021.92C19.5437%2021.7733%2019.8837%2021.7%2020.297%2021.7C20.7304%2021.7%2021.097%2021.7967%2021.397%2021.99C21.7037%2022.1767%2021.9337%2022.44%2022.087%2022.78C22.2404%2023.1133%2022.317%2023.5033%2022.317%2023.95V26.77C22.317%2026.8367%2022.297%2026.8933%2022.257%2026.94C22.217%2026.98%2022.1637%2027%2022.097%2027H21.597C21.5304%2027%2021.4737%2026.98%2021.427%2026.94C21.387%2026.8933%2021.367%2026.8367%2021.367%2026.77V24C21.367%2023.5333%2021.2537%2023.17%2021.027%2022.91C20.8004%2022.6433%2020.467%2022.51%2020.027%2022.51C19.6137%2022.51%2019.2804%2022.6433%2019.027%2022.91C18.7804%2023.17%2018.657%2023.5333%2018.657%2024V26.77C18.657%2026.8367%2018.6337%2026.8933%2018.587%2026.94C18.547%2026.98%2018.4937%2027%2018.427%2027H17.927Z'%20fill='%230F71B4'/%3e%3cpath%20d='M25.8915%2029.2C25.4382%2029.2%2025.0648%2029.14%2024.7715%2029.02C24.4848%2028.9%2024.2582%2028.7533%2024.0915%2028.58C23.9315%2028.4133%2023.8148%2028.2433%2023.7415%2028.07C23.6748%2027.9033%2023.6382%2027.77%2023.6315%2027.67C23.6248%2027.6033%2023.6448%2027.5467%2023.6915%2027.5C23.7448%2027.4533%2023.8015%2027.43%2023.8615%2027.43H24.3415C24.4015%2027.43%2024.4515%2027.4433%2024.4915%2027.47C24.5315%2027.4967%2024.5648%2027.5533%2024.5915%2027.64C24.6315%2027.74%2024.6915%2027.85%2024.7715%2027.97C24.8515%2028.0967%2024.9748%2028.2033%2025.1415%2028.29C25.3082%2028.3833%2025.5415%2028.43%2025.8415%2028.43C26.1548%2028.43%2026.4182%2028.3867%2026.6315%2028.3C26.8448%2028.22%2027.0048%2028.0733%2027.1115%2027.86C27.2248%2027.6533%2027.2815%2027.3667%2027.2815%2027V26.32C27.1215%2026.5267%2026.9115%2026.7%2026.6515%2026.84C26.3915%2026.9733%2026.0648%2027.04%2025.6715%2027.04C25.2982%2027.04%2024.9782%2026.9767%2024.7115%2026.85C24.4448%2026.7167%2024.2248%2026.54%2024.0515%2026.32C23.8848%2026.0933%2023.7582%2025.8367%2023.6715%2025.55C23.5915%2025.2633%2023.5448%2024.9633%2023.5315%2024.65C23.5248%2024.4633%2023.5248%2024.28%2023.5315%2024.1C23.5448%2023.7867%2023.5915%2023.4867%2023.6715%2023.2C23.7582%2022.9133%2023.8848%2022.6567%2024.0515%2022.43C24.2248%2022.2033%2024.4448%2022.0267%2024.7115%2021.9C24.9782%2021.7667%2025.2982%2021.7%2025.6715%2021.7C26.0715%2021.7%2026.4015%2021.7767%2026.6615%2021.93C26.9282%2022.0767%2027.1448%2022.2567%2027.3115%2022.47V22.04C27.3115%2021.9733%2027.3315%2021.9167%2027.3715%2021.87C27.4182%2021.8233%2027.4748%2021.8%2027.5415%2021.8H28.0015C28.0681%2021.8%2028.1248%2021.8233%2028.1715%2021.87C28.2182%2021.9167%2028.2415%2021.9733%2028.2415%2022.04V26.89C28.2415%2027.3367%2028.1648%2027.7333%2028.0115%2028.08C27.8648%2028.4267%2027.6182%2028.7%2027.2715%2028.9C26.9315%2029.1%2026.4715%2029.2%2025.8915%2029.2ZM25.8715%2026.24C26.2048%2026.24%2026.4715%2026.1633%2026.6715%2026.01C26.8782%2025.8567%2027.0282%2025.6633%2027.1215%2025.43C27.2215%2025.1967%2027.2748%2024.96%2027.2815%2024.72C27.2882%2024.6267%2027.2915%2024.5133%2027.2915%2024.38C27.2915%2024.24%2027.2882%2024.1233%2027.2815%2024.03C27.2748%2023.79%2027.2215%2023.5533%2027.1215%2023.32C27.0282%2023.0867%2026.8782%2022.8933%2026.6715%2022.74C26.4715%2022.5867%2026.2048%2022.51%2025.8715%2022.51C25.5382%2022.51%2025.2715%2022.5867%2025.0715%2022.74C24.8715%2022.8867%2024.7282%2023.0833%2024.6415%2023.33C24.5548%2023.57%2024.5048%2023.83%2024.4915%2024.11C24.4848%2024.2833%2024.4848%2024.46%2024.4915%2024.64C24.5048%2024.92%2024.5548%2025.1833%2024.6415%2025.43C24.7282%2025.67%2024.8715%2025.8667%2025.0715%2026.02C25.2715%2026.1667%2025.5382%2026.24%2025.8715%2026.24Z'%20fill='%230F71B4'/%3e%3c/svg%3e",R9="data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.9167%205.41666H11.25C10.4765%205.41666%209.7346%205.72395%209.18762%206.27093C8.64063%206.81791%208.33334%207.55977%208.33334%208.33332V31.6667C8.33334%2032.4402%208.64063%2033.1821%209.18762%2033.729C9.7346%2034.276%2010.4765%2034.5833%2011.25%2034.5833H28.75C29.5236%2034.5833%2030.2654%2034.276%2030.8124%2033.729C31.3594%2033.1821%2031.6667%2032.4402%2031.6667%2031.6667V14.1667L22.9167%205.41666Z'%20fill='%23DAEBF7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9167%204.41666C23.1819%204.41666%2023.4362%204.52201%2023.6238%204.70955L32.3738%2013.4595C32.5613%2013.6471%2032.6667%2013.9014%2032.6667%2014.1667V31.6667C32.6667%2032.7054%2032.254%2033.7016%2031.5195%2034.4362C30.785%2035.1707%2029.7888%2035.5833%2028.75%2035.5833H11.25C10.2112%2035.5833%209.21503%2035.1707%208.48051%2034.4362C7.74599%2033.7016%207.33334%2032.7054%207.33334%2031.6667V8.33332C7.33334%207.29456%207.74599%206.29834%208.48051%205.56382C9.21503%204.8293%2010.2112%204.41666%2011.25%204.41666H22.9167ZM31.6667%2014.1667V31.6667C31.6667%2032.4402%2031.3594%2033.1821%2030.8124%2033.729C30.2654%2034.276%2029.5236%2034.5833%2028.75%2034.5833H11.25C10.4765%2034.5833%209.7346%2034.276%209.18762%2033.729C8.64063%2033.1821%208.33334%2032.4402%208.33334%2031.6667V8.33332C8.33334%207.55977%208.64063%206.81791%209.18762%206.27093C9.7346%205.72395%2010.4765%205.41666%2011.25%205.41666H22.9167L31.6667%2014.1667Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M22.9167%205.41666V12.1667C22.9167%2013.2712%2023.8121%2014.1667%2024.9167%2014.1667H31.6667'%20fill='%230F71B4'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9167%204.91666C23.1928%204.91666%2023.4167%205.14051%2023.4167%205.41666V12.1667C23.4167%2012.9951%2024.0883%2013.6667%2024.9167%2013.6667H31.6667C31.9428%2013.6667%2032.1667%2013.8905%2032.1667%2014.1667C32.1667%2014.4428%2031.9428%2014.6667%2031.6667%2014.6667H24.9167C23.536%2014.6667%2022.4167%2013.5474%2022.4167%2012.1667V5.41666C22.4167%205.14051%2022.6405%204.91666%2022.9167%204.91666Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M14.15%2027.1C13.45%2027.1%2012.9233%2026.8733%2012.57%2026.42C12.2233%2025.9667%2012.0367%2025.3933%2012.01%2024.7L12%2024.4L12.01%2024.1C12.0367%2023.4133%2012.2267%2022.8433%2012.58%2022.39C12.9333%2021.93%2013.4567%2021.7%2014.15%2021.7C14.8433%2021.7%2015.3833%2021.9467%2015.77%2022.44V20.13C15.77%2020.0633%2015.79%2020.01%2015.83%2019.97C15.8767%2019.9233%2015.9333%2019.9%2016%2019.9H16.45C16.5167%2019.9%2016.57%2019.9233%2016.61%2019.97C16.6567%2020.01%2016.68%2020.0633%2016.68%2020.13V26.77C16.68%2026.8367%2016.6567%2026.8933%2016.61%2026.94C16.57%2026.98%2016.5167%2027%2016.45%2027H16.02C15.9533%2027%2015.9%2026.98%2015.86%2026.94C15.82%2026.8933%2015.8%2026.8367%2015.8%2026.77V26.34C15.42%2026.8467%2014.87%2027.1%2014.15%2027.1ZM14.34%2026.32C14.8067%2026.32%2015.1567%2026.1667%2015.39%2025.86C15.6233%2025.5467%2015.75%2025.1767%2015.77%2024.75C15.7767%2024.6767%2015.78%2024.55%2015.78%2024.37C15.78%2024.1833%2015.7767%2024.0533%2015.77%2023.98C15.7567%2023.5733%2015.6267%2023.2233%2015.38%2022.93C15.14%2022.63%2014.7933%2022.48%2014.34%2022.48C13.86%2022.48%2013.51%2022.63%2013.29%2022.93C13.07%2023.23%2012.95%2023.6233%2012.93%2024.11L12.92%2024.4C12.92%2025.68%2013.3933%2026.32%2014.34%2026.32Z'%20fill='%230F71B4'/%3e%3cpath%20d='M20.2975%2027.1C19.5642%2027.1%2018.9975%2026.8933%2018.5975%2026.48C18.2042%2026.0667%2017.9942%2025.5167%2017.9675%2024.83L17.9575%2024.4L17.9675%2023.97C17.9942%2023.2833%2018.2075%2022.7333%2018.6075%2022.32C19.0142%2021.9067%2019.5775%2021.7%2020.2975%2021.7C21.0175%2021.7%2021.5775%2021.9067%2021.9775%2022.32C22.3842%2022.7333%2022.6008%2023.2833%2022.6275%2023.97C22.6408%2024.1167%2022.6475%2024.26%2022.6475%2024.4C22.6475%2024.54%2022.6408%2024.6833%2022.6275%2024.83C22.6008%2025.5167%2022.3875%2026.0667%2021.9875%2026.48C21.5942%2026.8933%2021.0308%2027.1%2020.2975%2027.1ZM20.2975%2026.35C20.7242%2026.35%2021.0608%2026.2167%2021.3075%2025.95C21.5608%2025.6767%2021.6975%2025.2867%2021.7175%2024.78C21.7242%2024.7133%2021.7275%2024.5867%2021.7275%2024.4C21.7275%2024.2133%2021.7242%2024.0867%2021.7175%2024.02C21.6975%2023.5133%2021.5608%2023.1267%2021.3075%2022.86C21.0608%2022.5867%2020.7242%2022.45%2020.2975%2022.45C19.8708%2022.45%2019.5308%2022.5867%2019.2775%2022.86C19.0308%2023.1267%2018.8975%2023.5133%2018.8775%2024.02L18.8675%2024.4L18.8775%2024.78C18.8975%2025.2867%2019.0308%2025.6767%2019.2775%2025.95C19.5308%2026.2167%2019.8708%2026.35%2020.2975%2026.35Z'%20fill='%230F71B4'/%3e%3cpath%20d='M25.9902%2027.1C25.2768%2027.1%2024.7202%2026.9%2024.3202%2026.5C23.9202%2026.0933%2023.7102%2025.5267%2023.6902%2024.8L23.6802%2024.4L23.6902%2024C23.7102%2023.2733%2023.9202%2022.71%2024.3202%2022.31C24.7202%2021.9033%2025.2768%2021.7%2025.9902%2021.7C26.4702%2021.7%2026.8735%2021.7867%2027.2002%2021.96C27.5335%2022.1267%2027.7802%2022.3367%2027.9402%2022.59C28.1068%2022.8433%2028.1968%2023.0967%2028.2102%2023.35C28.2168%2023.41%2028.1935%2023.4633%2028.1402%2023.51C28.0935%2023.5567%2028.0402%2023.58%2027.9802%2023.58H27.5402C27.4735%2023.58%2027.4235%2023.5667%2027.3902%2023.54C27.3568%2023.5067%2027.3235%2023.45%2027.2902%2023.37C27.1702%2023.0433%2027.0035%2022.8133%2026.7902%2022.68C26.5835%2022.54%2026.3202%2022.47%2026.0002%2022.47C25.5802%2022.47%2025.2468%2022.6%2025.0002%2022.86C24.7535%2023.12%2024.6202%2023.5167%2024.6002%2024.05L24.5902%2024.4L24.6002%2024.75C24.6202%2025.2833%2024.7535%2025.68%2025.0002%2025.94C25.2468%2026.2%2025.5802%2026.33%2026.0002%2026.33C26.3268%2026.33%2026.5935%2026.2633%2026.8002%2026.13C27.0068%2025.99%2027.1702%2025.7567%2027.2902%2025.43C27.3235%2025.35%2027.3568%2025.2967%2027.3902%2025.27C27.4235%2025.2367%2027.4735%2025.22%2027.5402%2025.22H27.9802C28.0402%2025.22%2028.0935%2025.2433%2028.1402%2025.29C28.1935%2025.3367%2028.2168%2025.39%2028.2102%2025.45C28.1968%2025.6967%2028.1068%2025.9467%2027.9402%2026.2C27.7802%2026.4533%2027.5335%2026.6667%2027.2002%2026.84C26.8735%2027.0133%2026.4702%2027.1%2025.9902%2027.1Z'%20fill='%230F71B4'/%3e%3c/svg%3e",V9="data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.9166%205.41666H11.25C10.4764%205.41666%209.73457%205.72395%209.18758%206.27093C8.6406%206.81791%208.33331%207.55977%208.33331%208.33332V31.6667C8.33331%2032.4402%208.6406%2033.1821%209.18758%2033.729C9.73457%2034.276%2010.4764%2034.5833%2011.25%2034.5833H28.75C29.5235%2034.5833%2030.2654%2034.276%2030.8124%2033.729C31.3594%2033.1821%2031.6666%2032.4402%2031.6666%2031.6667V14.1667L22.9166%205.41666Z'%20fill='%23DAEBF7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9166%204.41666C23.1819%204.41666%2023.4362%204.52201%2023.6238%204.70955L32.3738%2013.4595C32.5613%2013.6471%2032.6666%2013.9014%2032.6666%2014.1667V31.6667C32.6666%2032.7054%2032.254%2033.7016%2031.5195%2034.4362C30.785%2035.1707%2029.7887%2035.5833%2028.75%2035.5833H11.25C10.2112%2035.5833%209.215%2035.1707%208.48048%2034.4362C7.74596%2033.7016%207.33331%2032.7054%207.33331%2031.6667V8.33332C7.33331%207.29456%207.74596%206.29834%208.48048%205.56382C9.215%204.8293%2010.2112%204.41666%2011.25%204.41666H22.9166ZM31.6666%2014.1667V31.6667C31.6666%2032.4402%2031.3594%2033.1821%2030.8124%2033.729C30.2654%2034.276%2029.5235%2034.5833%2028.75%2034.5833H11.25C10.4764%2034.5833%209.73457%2034.276%209.18758%2033.729C8.6406%2033.1821%208.33331%2032.4402%208.33331%2031.6667V8.33332C8.33331%207.55977%208.6406%206.81791%209.18758%206.27093C9.73457%205.72395%2010.4764%205.41666%2011.25%205.41666H22.9166L31.6666%2014.1667Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M22.9166%205.41666V12.1667C22.9166%2013.2712%2023.8121%2014.1667%2024.9166%2014.1667H31.6666'%20fill='%230F71B4'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9166%204.91666C23.1928%204.91666%2023.4166%205.14051%2023.4166%205.41666V12.1667C23.4166%2012.9951%2024.0882%2013.6667%2024.9166%2013.6667H31.6666C31.9428%2013.6667%2032.1666%2013.8905%2032.1666%2014.1667C32.1666%2014.4428%2031.9428%2014.6667%2031.6666%2014.6667H24.9166C23.5359%2014.6667%2022.4166%2013.5474%2022.4166%2012.1667V5.41666C22.4166%205.14051%2022.6405%204.91666%2022.9166%204.91666Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M14.83%2027.1C14.1167%2027.1%2013.56%2026.9%2013.16%2026.5C12.76%2026.0933%2012.55%2025.5267%2012.53%2024.8L12.52%2024.4L12.53%2024C12.55%2023.2733%2012.76%2022.71%2013.16%2022.31C13.56%2021.9033%2014.1167%2021.7%2014.83%2021.7C15.31%2021.7%2015.7134%2021.7867%2016.04%2021.96C16.3734%2022.1267%2016.62%2022.3367%2016.78%2022.59C16.9467%2022.8433%2017.0367%2023.0967%2017.05%2023.35C17.0567%2023.41%2017.0334%2023.4633%2016.98%2023.51C16.9334%2023.5567%2016.88%2023.58%2016.82%2023.58H16.38C16.3134%2023.58%2016.2634%2023.5667%2016.23%2023.54C16.1967%2023.5067%2016.1634%2023.45%2016.13%2023.37C16.01%2023.0433%2015.8434%2022.8133%2015.63%2022.68C15.4234%2022.54%2015.16%2022.47%2014.84%2022.47C14.42%2022.47%2014.0867%2022.6%2013.84%2022.86C13.5934%2023.12%2013.46%2023.5167%2013.44%2024.05L13.43%2024.4L13.44%2024.75C13.46%2025.2833%2013.5934%2025.68%2013.84%2025.94C14.0867%2026.2%2014.42%2026.33%2014.84%2026.33C15.1667%2026.33%2015.4334%2026.2633%2015.64%2026.13C15.8467%2025.99%2016.01%2025.7567%2016.13%2025.43C16.1634%2025.35%2016.1967%2025.2967%2016.23%2025.27C16.2634%2025.2367%2016.3134%2025.22%2016.38%2025.22H16.82C16.88%2025.22%2016.9334%2025.2433%2016.98%2025.29C17.0334%2025.3367%2017.0567%2025.39%2017.05%2025.45C17.0367%2025.6967%2016.9467%2025.9467%2016.78%2026.2C16.62%2026.4533%2016.3734%2026.6667%2016.04%2026.84C15.7134%2027.0133%2015.31%2027.1%2014.83%2027.1Z'%20fill='%230F71B4'/%3e%3cpath%20d='M20.0281%2027.1C19.5681%2027.1%2019.1781%2027.0267%2018.8581%2026.88C18.5447%2026.7267%2018.3114%2026.5533%2018.1581%2026.36C18.0047%2026.1667%2017.9281%2026.0067%2017.9281%2025.88C17.9281%2025.8133%2017.9514%2025.7633%2017.9981%2025.73C18.0447%2025.69%2018.0947%2025.67%2018.1481%2025.67H18.5681C18.6081%2025.67%2018.6381%2025.6767%2018.6581%2025.69C18.6847%2025.7033%2018.7181%2025.7333%2018.7581%2025.78C18.9114%2025.9667%2019.0814%2026.1133%2019.2681%2026.22C19.4614%2026.3267%2019.7181%2026.38%2020.0381%2026.38C20.3981%2026.38%2020.6847%2026.3133%2020.8981%2026.18C21.1181%2026.0467%2021.2281%2025.8533%2021.2281%2025.6C21.2281%2025.4333%2021.1814%2025.3%2021.0881%2025.2C20.9947%2025.1%2020.8381%2025.01%2020.6181%2024.93C20.4047%2024.85%2020.0847%2024.7633%2019.6581%2024.67C19.0781%2024.5433%2018.6681%2024.36%2018.4281%2024.12C18.1881%2023.88%2018.0681%2023.57%2018.0681%2023.19C18.0681%2022.9433%2018.1414%2022.7067%2018.2881%2022.48C18.4347%2022.2467%2018.6514%2022.06%2018.9381%2021.92C19.2314%2021.7733%2019.5781%2021.7%2019.9781%2021.7C20.3981%2021.7%2020.7547%2021.77%2021.0481%2021.91C21.3481%2022.05%2021.5714%2022.2133%2021.7181%2022.4C21.8714%2022.5867%2021.9481%2022.7433%2021.9481%2022.87C21.9481%2022.93%2021.9247%2022.98%2021.8781%2023.02C21.8381%2023.06%2021.7881%2023.08%2021.7281%2023.08H21.3481C21.2547%2023.08%2021.1881%2023.0433%2021.1481%2022.97C21.0347%2022.8433%2020.9381%2022.7467%2020.8581%2022.68C20.7847%2022.6067%2020.6747%2022.5467%2020.5281%2022.5C20.3814%2022.4467%2020.1981%2022.42%2019.9781%2022.42C19.6514%2022.42%2019.4014%2022.49%2019.2281%2022.63C19.0547%2022.7633%2018.9681%2022.9433%2018.9681%2023.17C18.9681%2023.31%2019.0047%2023.43%2019.0781%2023.53C19.1514%2023.6233%2019.2914%2023.7133%2019.4981%2023.8C19.7047%2023.88%2020.0114%2023.9633%2020.4181%2024.05C21.0514%2024.1833%2021.4981%2024.3733%2021.7581%2024.62C22.0247%2024.8667%2022.1581%2025.1833%2022.1581%2025.57C22.1581%2025.8567%2022.0747%2026.1167%2021.9081%2026.35C21.7481%2026.5833%2021.5047%2026.7667%2021.1781%2026.9C20.8581%2027.0333%2020.4747%2027.1%2020.0281%2027.1Z'%20fill='%230F71B4'/%3e%3cpath%20d='M24.9604%2027C24.7871%2027%2024.6637%2026.9167%2024.5904%2026.75L22.7304%2022.11C22.7237%2022.09%2022.7204%2022.0567%2022.7204%2022.01C22.7204%2021.95%2022.7404%2021.9%2022.7804%2021.86C22.8204%2021.82%2022.8671%2021.8%2022.9204%2021.8H23.3804C23.4871%2021.8%2023.5671%2021.8533%2023.6204%2021.96L25.1604%2025.95L26.7004%2021.96C26.7137%2021.92%2026.7404%2021.8833%2026.7804%2021.85C26.8271%2021.8167%2026.8804%2021.8%2026.9404%2021.8H27.4004C27.4537%2021.8%2027.5004%2021.82%2027.5404%2021.86C27.5804%2021.9%2027.6004%2021.95%2027.6004%2022.01L27.5804%2022.11L25.7304%2026.75C25.6571%2026.9167%2025.5337%2027%2025.3604%2027H24.9604Z'%20fill='%230F71B4'/%3e%3c/svg%3e",H9="data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.9166%205.41666H11.25C10.4764%205.41666%209.73457%205.72395%209.18758%206.27093C8.6406%206.81791%208.33331%207.55977%208.33331%208.33332V31.6667C8.33331%2032.4402%208.6406%2033.1821%209.18758%2033.729C9.73457%2034.276%2010.4764%2034.5833%2011.25%2034.5833H28.75C29.5235%2034.5833%2030.2654%2034.276%2030.8124%2033.729C31.3594%2033.1821%2031.6666%2032.4402%2031.6666%2031.6667V14.1667L22.9166%205.41666Z'%20fill='%23DAEBF7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9166%204.41666C23.1819%204.41666%2023.4362%204.52201%2023.6238%204.70955L32.3738%2013.4595C32.5613%2013.6471%2032.6666%2013.9014%2032.6666%2014.1667V31.6667C32.6666%2032.7054%2032.254%2033.7016%2031.5195%2034.4362C30.785%2035.1707%2029.7887%2035.5833%2028.75%2035.5833H11.25C10.2112%2035.5833%209.215%2035.1707%208.48048%2034.4362C7.74596%2033.7016%207.33331%2032.7054%207.33331%2031.6667V8.33332C7.33331%207.29456%207.74596%206.29834%208.48048%205.56382C9.215%204.8293%2010.2112%204.41666%2011.25%204.41666H22.9166ZM31.6666%2014.1667V31.6667C31.6666%2032.4402%2031.3594%2033.1821%2030.8124%2033.729C30.2654%2034.276%2029.5235%2034.5833%2028.75%2034.5833H11.25C10.4764%2034.5833%209.73457%2034.276%209.18758%2033.729C8.6406%2033.1821%208.33331%2032.4402%208.33331%2031.6667V8.33332C8.33331%207.55977%208.6406%206.81791%209.18758%206.27093C9.73457%205.72395%2010.4764%205.41666%2011.25%205.41666H22.9166L31.6666%2014.1667Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M22.9166%205.41666V12.1667C22.9166%2013.2712%2023.8121%2014.1667%2024.9166%2014.1667H31.6666'%20fill='%230F71B4'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9166%204.91666C23.1928%204.91666%2023.4166%205.14051%2023.4166%205.41666V12.1667C23.4166%2012.9951%2024.0882%2013.6667%2024.9166%2013.6667H31.6666C31.9428%2013.6667%2032.1666%2013.8905%2032.1666%2014.1667C32.1666%2014.4428%2031.9428%2014.6667%2031.6666%2014.6667H24.9166C23.5359%2014.6667%2022.4166%2013.5474%2022.4166%2012.1667V5.41666C22.4166%205.14051%2022.6405%204.91666%2022.9166%204.91666Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M14.51%2027C14.45%2027%2014.4%2026.98%2014.36%2026.94C14.32%2026.9%2014.3%2026.85%2014.3%2026.79C14.3%2026.73%2014.3233%2026.6667%2014.37%2026.6L16.11%2024.34L14.48%2022.19C14.4267%2022.1167%2014.4%2022.0567%2014.4%2022.01C14.4%2021.95%2014.42%2021.9%2014.46%2021.86C14.5067%2021.82%2014.5567%2021.8%2014.61%2021.8H15.09C15.19%2021.8%2015.2767%2021.8533%2015.35%2021.96L16.7%2023.71L18.05%2021.96C18.09%2021.9067%2018.1267%2021.8667%2018.16%2021.84C18.2%2021.8133%2018.25%2021.8%2018.31%2021.8H18.77C18.8233%2021.8%2018.87%2021.82%2018.91%2021.86C18.95%2021.9%2018.97%2021.9467%2018.97%2022C18.97%2022.0667%2018.9467%2022.13%2018.9%2022.19L17.25%2024.36L18.99%2026.6C19.0367%2026.6667%2019.06%2026.73%2019.06%2026.79C19.06%2026.85%2019.04%2026.9%2019%2026.94C18.96%2026.98%2018.91%2027%2018.85%2027H18.36C18.26%2027%2018.1733%2026.95%2018.1%2026.85L16.67%2025L15.24%2026.85C15.2%2026.8967%2015.16%2026.9333%2015.12%2026.96C15.0867%2026.9867%2015.04%2027%2014.98%2027H14.51Z'%20fill='%230F71B4'/%3e%3cpath%20d='M20.3611%2027C20.2944%2027%2020.2377%2026.98%2020.1911%2026.94C20.1511%2026.8933%2020.1311%2026.8367%2020.1311%2026.77V20.13C20.1311%2020.0567%2020.1511%2020%2020.1911%2019.96C20.2377%2019.92%2020.2944%2019.9%2020.3611%2019.9H20.8011C20.8677%2019.9%2020.9211%2019.9233%2020.9611%2019.97C21.0077%2020.01%2021.0311%2020.0633%2021.0311%2020.13V26.77C21.0311%2026.8367%2021.0077%2026.8933%2020.9611%2026.94C20.9211%2026.98%2020.8677%2027%2020.8011%2027H20.3611Z'%20fill='%230F71B4'/%3e%3cpath%20d='M24.3132%2027.1C23.8532%2027.1%2023.4632%2027.0267%2023.1432%2026.88C22.8299%2026.7267%2022.5965%2026.5533%2022.4432%2026.36C22.2899%2026.1667%2022.2132%2026.0067%2022.2132%2025.88C22.2132%2025.8133%2022.2365%2025.7633%2022.2832%2025.73C22.3299%2025.69%2022.3799%2025.67%2022.4332%2025.67H22.8532C22.8932%2025.67%2022.9232%2025.6767%2022.9432%2025.69C22.9699%2025.7033%2023.0032%2025.7333%2023.0432%2025.78C23.1965%2025.9667%2023.3665%2026.1133%2023.5532%2026.22C23.7465%2026.3267%2024.0032%2026.38%2024.3232%2026.38C24.6832%2026.38%2024.9699%2026.3133%2025.1832%2026.18C25.4032%2026.0467%2025.5132%2025.8533%2025.5132%2025.6C25.5132%2025.4333%2025.4665%2025.3%2025.3732%2025.2C25.2799%2025.1%2025.1232%2025.01%2024.9032%2024.93C24.6899%2024.85%2024.3699%2024.7633%2023.9432%2024.67C23.3632%2024.5433%2022.9532%2024.36%2022.7132%2024.12C22.4732%2023.88%2022.3532%2023.57%2022.3532%2023.19C22.3532%2022.9433%2022.4265%2022.7067%2022.5732%2022.48C22.7199%2022.2467%2022.9365%2022.06%2023.2232%2021.92C23.5165%2021.7733%2023.8632%2021.7%2024.2632%2021.7C24.6832%2021.7%2025.0399%2021.77%2025.3332%2021.91C25.6332%2022.05%2025.8565%2022.2133%2026.0032%2022.4C26.1565%2022.5867%2026.2332%2022.7433%2026.2332%2022.87C26.2332%2022.93%2026.2099%2022.98%2026.1632%2023.02C26.1232%2023.06%2026.0732%2023.08%2026.0132%2023.08H25.6332C25.5399%2023.08%2025.4732%2023.0433%2025.4332%2022.97C25.3199%2022.8433%2025.2232%2022.7467%2025.1432%2022.68C25.0699%2022.6067%2024.9599%2022.5467%2024.8132%2022.5C24.6665%2022.4467%2024.4832%2022.42%2024.2632%2022.42C23.9365%2022.42%2023.6865%2022.49%2023.5132%2022.63C23.3399%2022.7633%2023.2532%2022.9433%2023.2532%2023.17C23.2532%2023.31%2023.2899%2023.43%2023.3632%2023.53C23.4365%2023.6233%2023.5765%2023.7133%2023.7832%2023.8C23.9899%2023.88%2024.2965%2023.9633%2024.7032%2024.05C25.3365%2024.1833%2025.7832%2024.3733%2026.0432%2024.62C26.3099%2024.8667%2026.4432%2025.1833%2026.4432%2025.57C26.4432%2025.8567%2026.3599%2026.1167%2026.1932%2026.35C26.0332%2026.5833%2025.7899%2026.7667%2025.4632%2026.9C25.1432%2027.0333%2024.7599%2027.1%2024.3132%2027.1Z'%20fill='%230F71B4'/%3e%3c/svg%3e",F9="data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.9166%205.41666H11.25C10.4764%205.41666%209.73457%205.72395%209.18758%206.27093C8.6406%206.81791%208.33331%207.55977%208.33331%208.33332V31.6667C8.33331%2032.4402%208.6406%2033.1821%209.18758%2033.729C9.73457%2034.276%2010.4764%2034.5833%2011.25%2034.5833H28.75C29.5235%2034.5833%2030.2654%2034.276%2030.8124%2033.729C31.3594%2033.1821%2031.6666%2032.4402%2031.6666%2031.6667V14.1667L22.9166%205.41666Z'%20fill='%23DAEBF7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9166%204.41666C23.1819%204.41666%2023.4362%204.52201%2023.6238%204.70955L32.3738%2013.4595C32.5613%2013.6471%2032.6666%2013.9014%2032.6666%2014.1667V31.6667C32.6666%2032.7054%2032.254%2033.7016%2031.5195%2034.4362C30.785%2035.1707%2029.7887%2035.5833%2028.75%2035.5833H11.25C10.2112%2035.5833%209.215%2035.1707%208.48048%2034.4362C7.74596%2033.7016%207.33331%2032.7054%207.33331%2031.6667V8.33332C7.33331%207.29456%207.74596%206.29834%208.48048%205.56382C9.215%204.8293%2010.2112%204.41666%2011.25%204.41666H22.9166ZM31.6666%2014.1667V31.6667C31.6666%2032.4402%2031.3594%2033.1821%2030.8124%2033.729C30.2654%2034.276%2029.5235%2034.5833%2028.75%2034.5833H11.25C10.4764%2034.5833%209.73457%2034.276%209.18758%2033.729C8.6406%2033.1821%208.33331%2032.4402%208.33331%2031.6667V8.33332C8.33331%207.55977%208.6406%206.81791%209.18758%206.27093C9.73457%205.72395%2010.4764%205.41666%2011.25%205.41666H22.9166L31.6666%2014.1667Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M22.9167%205.41666V12.1667C22.9167%2013.2712%2023.8121%2014.1667%2024.9167%2014.1667H31.6667'%20fill='%230F71B4'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9167%204.91666C23.1928%204.91666%2023.4167%205.14051%2023.4167%205.41666V12.1667C23.4167%2012.9951%2024.0882%2013.6667%2024.9167%2013.6667H31.6667C31.9428%2013.6667%2032.1667%2013.8905%2032.1667%2014.1667C32.1667%2014.4428%2031.9428%2014.6667%2031.6667%2014.6667H24.9167C23.5359%2014.6667%2022.4167%2013.5474%2022.4167%2012.1667V5.41666C22.4167%205.14051%2022.6405%204.91666%2022.9167%204.91666Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M15.75%2027C14.7167%2027%2014.2%2026.4167%2014.2%2025.25V22.57H13.41C13.3433%2022.57%2013.29%2022.55%2013.25%2022.51C13.21%2022.47%2013.19%2022.4167%2013.19%2022.35V22.03C13.19%2021.9633%2013.21%2021.91%2013.25%2021.87C13.29%2021.8233%2013.3433%2021.8%2013.41%2021.8H14.2V20.13C14.2%2020.0633%2014.22%2020.01%2014.26%2019.97C14.3%2019.9233%2014.3533%2019.9%2014.42%2019.9H14.86C14.9267%2019.9%2014.98%2019.9233%2015.02%2019.97C15.0667%2020.01%2015.09%2020.0633%2015.09%2020.13V21.8H16.33C16.3967%2021.8%2016.45%2021.8233%2016.49%2021.87C16.5367%2021.91%2016.56%2021.9633%2016.56%2022.03V22.35C16.56%2022.4167%2016.5367%2022.47%2016.49%2022.51C16.45%2022.55%2016.3967%2022.57%2016.33%2022.57H15.09V25.18C15.09%2025.52%2015.1433%2025.7767%2015.25%2025.95C15.3633%2026.1233%2015.5533%2026.21%2015.82%2026.21H16.43C16.4967%2026.21%2016.55%2026.2333%2016.59%2026.28C16.63%2026.32%2016.65%2026.3733%2016.65%2026.44V26.77C16.65%2026.8367%2016.63%2026.8933%2016.59%2026.94C16.55%2026.98%2016.4967%2027%2016.43%2027H15.75Z'%20fill='%230F71B4'/%3e%3cpath%20d='M17.387%2027C17.327%2027%2017.277%2026.98%2017.237%2026.94C17.197%2026.9%2017.177%2026.85%2017.177%2026.79C17.177%2026.73%2017.2003%2026.6667%2017.247%2026.6L18.987%2024.34L17.357%2022.19C17.3036%2022.1167%2017.277%2022.0567%2017.277%2022.01C17.277%2021.95%2017.297%2021.9%2017.337%2021.86C17.3836%2021.82%2017.4336%2021.8%2017.487%2021.8H17.967C18.067%2021.8%2018.1536%2021.8533%2018.227%2021.96L19.577%2023.71L20.927%2021.96C20.967%2021.9067%2021.0036%2021.8667%2021.037%2021.84C21.077%2021.8133%2021.127%2021.8%2021.187%2021.8H21.647C21.7003%2021.8%2021.747%2021.82%2021.787%2021.86C21.827%2021.9%2021.847%2021.9467%2021.847%2022C21.847%2022.0667%2021.8236%2022.13%2021.777%2022.19L20.127%2024.36L21.867%2026.6C21.9136%2026.6667%2021.937%2026.73%2021.937%2026.79C21.937%2026.85%2021.917%2026.9%2021.877%2026.94C21.837%2026.98%2021.787%2027%2021.727%2027H21.237C21.137%2027%2021.0503%2026.95%2020.977%2026.85L19.547%2025L18.117%2026.85C18.077%2026.8967%2018.037%2026.9333%2017.997%2026.96C17.9636%2026.9867%2017.917%2027%2017.857%2027H17.387Z'%20fill='%230F71B4'/%3e%3cpath%20d='M24.998%2027C23.9647%2027%2023.448%2026.4167%2023.448%2025.25V22.57H22.658C22.5914%2022.57%2022.538%2022.55%2022.498%2022.51C22.458%2022.47%2022.438%2022.4167%2022.438%2022.35V22.03C22.438%2021.9633%2022.458%2021.91%2022.498%2021.87C22.538%2021.8233%2022.5914%2021.8%2022.658%2021.8H23.448V20.13C23.448%2020.0633%2023.468%2020.01%2023.508%2019.97C23.548%2019.9233%2023.6014%2019.9%2023.668%2019.9H24.108C24.1747%2019.9%2024.228%2019.9233%2024.268%2019.97C24.3147%2020.01%2024.338%2020.0633%2024.338%2020.13V21.8H25.578C25.6447%2021.8%2025.698%2021.8233%2025.738%2021.87C25.7847%2021.91%2025.808%2021.9633%2025.808%2022.03V22.35C25.808%2022.4167%2025.7847%2022.47%2025.738%2022.51C25.698%2022.55%2025.6447%2022.57%2025.578%2022.57H24.338V25.18C24.338%2025.52%2024.3914%2025.7767%2024.498%2025.95C24.6114%2026.1233%2024.8014%2026.21%2025.068%2026.21H25.678C25.7447%2026.21%2025.798%2026.2333%2025.838%2026.28C25.878%2026.32%2025.898%2026.3733%2025.898%2026.44V26.77C25.898%2026.8367%2025.878%2026.8933%2025.838%2026.94C25.798%2026.98%2025.7447%2027%2025.678%2027H24.998Z'%20fill='%230F71B4'/%3e%3c/svg%3e",z9="data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.9167%205.41666H11.25C10.4765%205.41666%209.7346%205.72395%209.18762%206.27093C8.64063%206.81791%208.33334%207.55977%208.33334%208.33332V31.6667C8.33334%2032.4402%208.64063%2033.1821%209.18762%2033.729C9.7346%2034.276%2010.4765%2034.5833%2011.25%2034.5833H28.75C29.5236%2034.5833%2030.2654%2034.276%2030.8124%2033.729C31.3594%2033.1821%2031.6667%2032.4402%2031.6667%2031.6667V14.1667L22.9167%205.41666Z'%20fill='%23DAEBF7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9167%204.41666C23.1819%204.41666%2023.4362%204.52201%2023.6238%204.70955L32.3738%2013.4595C32.5613%2013.6471%2032.6667%2013.9014%2032.6667%2014.1667V31.6667C32.6667%2032.7054%2032.254%2033.7016%2031.5195%2034.4362C30.785%2035.1707%2029.7888%2035.5833%2028.75%2035.5833H11.25C10.2112%2035.5833%209.21503%2035.1707%208.48051%2034.4362C7.74599%2033.7016%207.33334%2032.7054%207.33334%2031.6667V8.33332C7.33334%207.29456%207.74599%206.29834%208.48051%205.56382C9.21503%204.8293%2010.2112%204.41666%2011.25%204.41666H22.9167ZM31.6667%2014.1667V31.6667C31.6667%2032.4402%2031.3594%2033.1821%2030.8124%2033.729C30.2654%2034.276%2029.5236%2034.5833%2028.75%2034.5833H11.25C10.4765%2034.5833%209.7346%2034.276%209.18762%2033.729C8.64063%2033.1821%208.33334%2032.4402%208.33334%2031.6667V8.33332C8.33334%207.55977%208.64063%206.81791%209.18762%206.27093C9.7346%205.72395%2010.4765%205.41666%2011.25%205.41666H22.9167L31.6667%2014.1667Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M22.9167%205.41666V12.1667C22.9167%2013.2712%2023.8121%2014.1667%2024.9167%2014.1667H31.6667'%20fill='%230F71B4'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9167%204.91666C23.1928%204.91666%2023.4167%205.14051%2023.4167%205.41666V12.1667C23.4167%2012.9951%2024.0883%2013.6667%2024.9167%2013.6667H31.6667C31.9428%2013.6667%2032.1667%2013.8905%2032.1667%2014.1667C32.1667%2014.4428%2031.9428%2014.6667%2031.6667%2014.6667H24.9167C23.536%2014.6667%2022.4167%2013.5474%2022.4167%2012.1667V5.41666C22.4167%205.14051%2022.6405%204.91666%2022.9167%204.91666Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M10.98%2027C10.9133%2027%2010.8567%2026.98%2010.81%2026.94C10.77%2026.8933%2010.75%2026.8367%2010.75%2026.77V22.03C10.75%2021.9633%2010.77%2021.91%2010.81%2021.87C10.8567%2021.8233%2010.9133%2021.8%2010.98%2021.8H11.4C11.4667%2021.8%2011.52%2021.8233%2011.56%2021.87C11.6%2021.91%2011.62%2021.9633%2011.62%2022.03V22.37C11.98%2021.9233%2012.4667%2021.7%2013.08%2021.7C13.8133%2021.7%2014.3333%2022.0067%2014.64%2022.62C14.8%2022.34%2015.0267%2022.1167%2015.32%2021.95C15.62%2021.7833%2015.9533%2021.7%2016.32%2021.7C16.8667%2021.7%2017.3133%2021.8867%2017.66%2022.26C18.0067%2022.6333%2018.18%2023.1733%2018.18%2023.88V26.77C18.18%2026.8367%2018.1567%2026.8933%2018.11%2026.94C18.07%2026.98%2018.0167%2027%2017.95%2027H17.52C17.4533%2027%2017.3967%2026.98%2017.35%2026.94C17.31%2026.8933%2017.29%2026.8367%2017.29%2026.77V23.97C17.29%2023.4367%2017.18%2023.0567%2016.96%2022.83C16.74%2022.5967%2016.45%2022.48%2016.09%2022.48C15.77%2022.48%2015.4933%2022.6%2015.26%2022.84C15.0333%2023.0733%2014.92%2023.45%2014.92%2023.97V26.77C14.92%2026.8367%2014.8967%2026.8933%2014.85%2026.94C14.81%2026.98%2014.7567%2027%2014.69%2027H14.25C14.1833%2027%2014.1267%2026.98%2014.08%2026.94C14.04%2026.8933%2014.02%2026.8367%2014.02%2026.77V23.97C14.02%2023.4433%2013.9033%2023.0633%2013.67%2022.83C13.4433%2022.5967%2013.16%2022.48%2012.82%2022.48C12.5%2022.48%2012.2233%2022.5967%2011.99%2022.83C11.7633%2023.0633%2011.65%2023.44%2011.65%2023.96V26.77C11.65%2026.8367%2011.6267%2026.8933%2011.58%2026.94C11.54%2026.98%2011.4867%2027%2011.42%2027H10.98Z'%20fill='%230F71B4'/%3e%3cpath%20d='M19.867%2028.9C19.8003%2028.9%2019.7436%2028.88%2019.697%2028.84C19.657%2028.8%2019.637%2028.7433%2019.637%2028.67V22.03C19.637%2021.9567%2019.657%2021.9%2019.697%2021.86C19.7436%2021.82%2019.8003%2021.8%2019.867%2021.8H20.287C20.3603%2021.8%2020.417%2021.82%2020.457%2021.86C20.497%2021.9%2020.517%2021.9567%2020.517%2022.03V22.47C20.9036%2021.9567%2021.4536%2021.7%2022.167%2021.7C22.867%2021.7%2023.3903%2021.9233%2023.737%2022.37C24.0903%2022.81%2024.277%2023.3733%2024.297%2024.06C24.3036%2024.1333%2024.307%2024.2467%2024.307%2024.4C24.307%2024.5533%2024.3036%2024.6667%2024.297%2024.74C24.277%2025.42%2024.0903%2025.9833%2023.737%2026.43C23.3903%2026.8767%2022.867%2027.1%2022.167%2027.1C21.4536%2027.1%2020.9136%2026.8467%2020.547%2026.34V28.67C20.547%2028.7367%2020.5236%2028.79%2020.477%2028.83C20.437%2028.8767%2020.3836%2028.9%2020.317%2028.9H19.867ZM21.977%2026.32C22.457%2026.32%2022.807%2026.17%2023.027%2025.87C23.247%2025.57%2023.367%2025.1767%2023.387%2024.69C23.3936%2024.6233%2023.397%2024.5267%2023.397%2024.4C23.397%2023.12%2022.9236%2022.48%2021.977%2022.48C21.5103%2022.48%2021.157%2022.6367%2020.917%2022.95C20.6836%2023.2567%2020.5603%2023.62%2020.547%2024.04C20.5403%2024.1133%2020.537%2024.2433%2020.537%2024.43C20.537%2024.6167%2020.5403%2024.7467%2020.547%2024.82C20.5603%2025.2267%2020.687%2025.58%2020.927%2025.88C21.1736%2026.1733%2021.5236%2026.32%2021.977%2026.32Z'%20fill='%230F71B4'/%3e%3cpath%20d='M28.8345%2027C28.7678%2027%2028.7111%2026.98%2028.6645%2026.94C28.6245%2026.8933%2028.6045%2026.8367%2028.6045%2026.77V25.31H25.3545C25.2878%2025.31%2025.2311%2025.29%2025.1845%2025.25C25.1445%2025.2033%2025.1245%2025.1467%2025.1245%2025.08V24.71C25.1245%2024.6167%2025.1611%2024.5167%2025.2345%2024.41L28.2445%2020.17C28.2778%2020.1167%2028.3278%2020.0767%2028.3945%2020.05C28.4611%2020.0167%2028.5345%2020%2028.6145%2020H29.2945C29.3678%2020%2029.4245%2020.02%2029.4645%2020.06C29.5045%2020.1%2029.5245%2020.1567%2029.5245%2020.23V24.47H30.4345C30.5011%2024.47%2030.5545%2024.4933%2030.5945%2024.54C30.6411%2024.58%2030.6645%2024.6333%2030.6645%2024.7V25.08C30.6645%2025.1467%2030.6411%2025.2033%2030.5945%2025.25C30.5545%2025.29%2030.5011%2025.31%2030.4345%2025.31H29.5245V26.77C29.5245%2026.8367%2029.5011%2026.8933%2029.4545%2026.94C29.4145%2026.98%2029.3611%2027%2029.2945%2027H28.8345ZM26.1645%2024.49H28.6145V21.01L26.1645%2024.49Z'%20fill='%230F71B4'/%3e%3c/svg%3e",$9="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.268%202.99995C11.0378%201.66662%2012.9623%201.66662%2013.7321%202.99995L22.3924%2018C23.1622%2019.3333%2022.1999%2021%2020.6603%2021H3.33977C1.80017%2021%200.837913%2019.3333%201.60771%2018L10.268%202.99995Z'%20fill='%23E68B86'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%207.99995C11.4477%207.99995%2011%208.44766%2011%208.99995V13C11%2013.5522%2011.4477%2013.9999%2012%2013.9999C12.5522%2013.9999%2013%2013.5522%2013%2013V8.99995C13%208.44766%2012.5522%207.99995%2012%207.99995ZM12%2015.75C11.3097%2015.75%2010.75%2016.3096%2010.75%2016.9999C10.75%2017.6903%2011.3097%2018.25%2012%2018.25H12.01C12.7003%2018.25%2013.26%2017.6903%2013.26%2016.9999C13.26%2016.3096%2012.7003%2015.75%2012.01%2015.75H12Z'%20fill='white'/%3e%3c/svg%3e",j9="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.0509%204.78947C11.6586%203.73684%2013.178%203.73684%2013.7857%204.78947L20.6228%2016.6316C21.2305%2017.6842%2020.4709%2019%2019.2554%2019H5.58131C4.36583%2019%203.60616%2017.6842%204.21389%2016.6316L11.0509%204.78947Z'%20fill='%23F3CCA8'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.4184%208.73682C11.9823%208.73682%2011.6289%209.09028%2011.6289%209.52629V12.6842C11.6289%2013.1202%2011.9823%2013.4737%2012.4184%2013.4737C12.8544%2013.4737%2013.2078%2013.1202%2013.2078%2012.6842V9.52629C13.2078%209.09028%2012.8544%208.73682%2012.4184%208.73682ZM12.4184%2014.8552C11.8733%2014.8552%2011.4315%2015.297%2011.4315%2015.8421C11.4315%2016.3871%2011.8733%2016.8289%2012.4184%2016.8289H12.4263C12.9713%2016.8289%2013.4131%2016.3871%2013.4131%2015.8421C13.4131%2015.297%2012.9713%2014.8552%2012.4263%2014.8552H12.4184Z'%20fill='white'/%3e%3c/svg%3e",W9="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%2019a7%207%200%201%200%200-14%207%207%200%200%200%200%2014zm8-7a8%208%200%201%201-16%200%208%208%200%200%201%2016%200z'%20fill='%23BFBFBF'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%207.5a.5.5%200%200%201%20.5.5v4.923l3.7%201.619a.5.5%200%201%201-.4.916l-4-1.75a.5.5%200%200%201-.3-.458V8a.5.5%200%200%201%20.5-.5z'%20fill='%23BFBFBF'/%3e%3c/svg%3e",Wc="data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.9167%205.41666H11.25C10.4765%205.41666%209.7346%205.72395%209.18762%206.27093C8.64063%206.81791%208.33334%207.55977%208.33334%208.33332V31.6667C8.33334%2032.4402%208.64063%2033.1821%209.18762%2033.729C9.7346%2034.276%2010.4765%2034.5833%2011.25%2034.5833H28.75C29.5236%2034.5833%2030.2654%2034.276%2030.8124%2033.729C31.3594%2033.1821%2031.6667%2032.4402%2031.6667%2031.6667V14.1667L22.9167%205.41666Z'%20fill='%23DAEBF7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9167%204.41666C23.1819%204.41666%2023.4362%204.52201%2023.6238%204.70955L32.3738%2013.4595C32.5613%2013.6471%2032.6667%2013.9014%2032.6667%2014.1667V31.6667C32.6667%2032.7054%2032.254%2033.7016%2031.5195%2034.4362C30.785%2035.1707%2029.7888%2035.5833%2028.75%2035.5833H11.25C10.2112%2035.5833%209.21503%2035.1707%208.48051%2034.4362C7.74599%2033.7016%207.33334%2032.7054%207.33334%2031.6667V8.33332C7.33334%207.29456%207.74599%206.29834%208.48051%205.56382C9.21503%204.8293%2010.2112%204.41666%2011.25%204.41666H22.9167ZM31.6667%2014.1667V31.6667C31.6667%2032.4402%2031.3594%2033.1821%2030.8124%2033.729C30.2654%2034.276%2029.5236%2034.5833%2028.75%2034.5833H11.25C10.4765%2034.5833%209.7346%2034.276%209.18762%2033.729C8.64063%2033.1821%208.33334%2032.4402%208.33334%2031.6667V8.33332C8.33334%207.55977%208.64063%206.81791%209.18762%206.27093C9.7346%205.72395%2010.4765%205.41666%2011.25%205.41666H22.9167L31.6667%2014.1667Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M22.9167%205.41666V12.1667C22.9167%2013.2712%2023.8121%2014.1667%2024.9167%2014.1667H31.6667'%20fill='%230F71B4'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.9167%204.91666C23.1928%204.91666%2023.4167%205.14051%2023.4167%205.41666V12.1667C23.4167%2012.9951%2024.0882%2013.6667%2024.9167%2013.6667H31.6667C31.9428%2013.6667%2032.1667%2013.8905%2032.1667%2014.1667C32.1667%2014.4428%2031.9428%2014.6667%2031.6667%2014.6667H24.9167C23.536%2014.6667%2022.4167%2013.5474%2022.4167%2012.1667V5.41666C22.4167%205.14051%2022.6405%204.91666%2022.9167%204.91666Z'%20fill='%23DAEBF7'/%3e%3cpath%20d='M19.43%2025.36C19.37%2025.36%2019.32%2025.34%2019.28%2025.3C19.24%2025.26%2019.22%2025.21%2019.22%2025.15V24.75C19.2333%2024.3967%2019.3233%2024.0933%2019.49%2023.84C19.6567%2023.5867%2019.9%2023.2967%2020.22%2022.97C20.48%2022.7033%2020.67%2022.4833%2020.79%2022.31C20.91%2022.1367%2020.97%2021.9467%2020.97%2021.74C20.97%2021.4333%2020.84%2021.19%2020.58%2021.01C20.3267%2020.83%2020.03%2020.74%2019.69%2020.74C18.8967%2020.74%2018.43%2021.14%2018.29%2021.94C18.2567%2022.0867%2018.17%2022.16%2018.03%2022.16H17.55C17.4833%2022.16%2017.43%2022.14%2017.39%2022.1C17.35%2022.06%2017.33%2022.0067%2017.33%2021.94C17.3433%2021.5733%2017.4467%2021.2367%2017.64%2020.93C17.84%2020.6167%2018.12%2020.3667%2018.48%2020.18C18.84%2019.9933%2019.2533%2019.9%2019.72%2019.9C20.2133%2019.9%2020.6267%2019.9867%2020.96%2020.16C21.3%2020.3267%2021.55%2020.5467%2021.71%2020.82C21.87%2021.0867%2021.95%2021.3733%2021.95%2021.68C21.95%2022.02%2021.8733%2022.3133%2021.72%2022.56C21.5667%2022.8067%2021.3367%2023.0933%2021.03%2023.42C20.7767%2023.6867%2020.5867%2023.9133%2020.46%2024.1C20.3333%2024.28%2020.26%2024.4833%2020.24%2024.71C20.2267%2024.8967%2020.22%2025.0367%2020.22%2025.13C20.1867%2025.2833%2020.1033%2025.36%2019.97%2025.36H19.43ZM19.35%2027C19.2833%2027%2019.2267%2026.98%2019.18%2026.94C19.14%2026.8933%2019.12%2026.8367%2019.12%2026.77V26.16C19.12%2026.0933%2019.14%2026.04%2019.18%2026C19.2267%2025.9533%2019.2833%2025.93%2019.35%2025.93H20C20.0667%2025.93%2020.1233%2025.9533%2020.17%2026C20.2167%2026.04%2020.24%2026.0933%2020.24%2026.16V26.77C20.24%2026.8367%2020.2167%2026.8933%2020.17%2026.94C20.1233%2026.98%2020.0667%2027%2020%2027H19.35Z'%20fill='%230F71B4'/%3e%3c/svg%3e";class Mq{static get toolbox(){return{title:"Attachment",icon:'<svg width="15" height="16" viewBox="0 0 15 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.34181 3.175C8.86733 3.175 8.41228 3.36348 8.07677 3.69899L3.96053 7.81523C3.45247 8.33711 3.17027 9.03805 3.17501 9.76641C3.17975 10.4951 3.47134 11.1927 3.98665 11.708C4.50195 12.2233 5.19949 12.5149 5.92823 12.5196C6.6566 12.5244 7.35753 12.2422 7.87942 11.7341C7.87968 11.7338 7.87994 11.7336 7.88021 11.7333L11.8762 7.7373L12.1237 7.98479L8.12446 11.984C7.53657 12.5568 6.74672 12.875 5.92595 12.8696C5.10518 12.8643 4.31955 12.5359 3.73916 11.9555C3.15878 11.3751 2.83036 10.5895 2.82502 9.76869C2.81968 8.94792 3.13784 8.15807 3.71063 7.57019L3.71222 7.56855L7.82928 3.45151C8.23043 3.05036 8.77451 2.825 9.34181 2.825C9.90912 2.825 10.4532 3.05036 10.8543 3.45151C11.2555 3.85266 11.4809 4.39673 11.4809 4.96404C11.4809 5.53135 11.2555 6.07542 10.8543 6.47657L6.85603 10.4749C6.63904 10.6919 6.34475 10.8138 6.03789 10.8138C5.73103 10.8138 5.43674 10.6919 5.21975 10.4749C5.00277 10.2579 4.88087 9.96361 4.88087 9.65675C4.88087 9.34989 5.00277 9.05559 5.21975 8.83861L9.09863 4.95973L9.34612 5.20722L5.46724 9.0861C5.3159 9.23744 5.23087 9.44271 5.23087 9.65675C5.23087 9.87078 5.3159 10.0761 5.46724 10.2274C5.61859 10.3787 5.82386 10.4638 6.03789 10.4638C6.25193 10.4638 6.45719 10.3787 6.60854 10.2274L10.6069 6.22908C10.9424 5.89357 11.1309 5.43852 11.1309 4.96404C11.1309 4.48955 10.9424 4.03451 10.6069 3.69899C10.2713 3.36348 9.8163 3.175 9.34181 3.175Z" fill="black"/></svg>'}}constructor({data:e,config:t,api:r}){this.data=e,this.config=t||{},this.api=r,this.lastReadOnly=this.api?.readOnly?.isEnabled,this.config.standardFormats=[".pdf",".csv",".doc",".jpeg",".jpg",".mp4",".png",".txt",".xls"]}render(){const e=this.createContainer();this.wrapper=this.createWrapper();const t=this.createFileInput(),r=this.createIcon(),o=this.createLabel(t.id);return this.resultContainer=this.createResultContainer(),this.data.length>0||this.data?.fileLinks?.length>0?(this.populateExistingFiles(this.resultContainer),this.showElement(this.resultContainer)):(this.setupEventListeners(this.wrapper,t,this.resultContainer),this.wrapper.prepend(r),this.wrapper.appendChild(o),this.wrapper.appendChild(t),e.appendChild(this.wrapper)),e.appendChild(this.resultContainer),e}createContainer(){const e=document.createElement("div");return e.classList.add("picture__upload"),e}createWrapper(){const e=document.createElement("div");return e.classList.add("picture__upload_btn"),e}createFileInput(){const e=`upload_file_${Date.now()}`,t=document.createElement("input");return t.type="file",t.name="file",t.id=e,t.multiple=!0,t}createIcon(){const e=document.createElement("img");return e.classList.add("picture__upload_btn_icon"),e.src=L9,e.onerror=()=>{console.error("Error loading icon image")},e.height="24",e}createLabel(e){const t=document.createElement("label");t.setAttribute("for",e),t.textContent=this.api.i18n.t("Drag & drop file(s) or ");const r=document.createElement("span");return r.textContent=this.api.i18n.t("browse"),r.classList.add("upload"),t.appendChild(r),t}createResultContainer(){const e=document.createElement("div");return e.classList.add("file__results"),e.style.gap="7px",e.style.display="none",e}setupEventListeners(e,t){e.addEventListener("dragover",r=>{r.preventDefault(),r.dataTransfer.dropEffect="copy"}),e.addEventListener("drop",r=>{r.preventDefault();const o=Array.from(r.dataTransfer.files);this.handleFiles(o)}),t.addEventListener("input",r=>{r.stopPropagation();const o=Array.from(t.files);this.handleFiles(o)})}handleFiles=e=>{this.saveFilesInData(e),this.renderResults(this.data,this.resultContainer),this.uploadFiles(e),this.removeElement(this.wrapper),this.showElement(this.resultContainer)};hideElement(e){e.style.display="none"}removeElement(e){e.remove()}showElement(e){e.style.display="flex"}createResultElement(e,t,r,o){const i=document.createElement("div");i.classList.add("file__result");const s=document.createElement("IMG");s.classList.add("file__result_icon");const a={pdf:N9,jpg:D9,jpeg:I9,png:P9,doc:R9,csv:V9,xls:H9,txt:F9,mp4:z9,error:$9,warning:j9,wait:W9},l={ok:"OK",warning:"WARNING",unavailable:"UNAVAILABLE",error:"ERROR"},d=Wc;let u;const h=this.iconName(t);return(r===l.ok||!r)&&(s.src=a[h]||d,u=document.createElement("a"),u.href=e,u.target="_blank"),r===l.warning&&(s.src=a.warning,u=document.createElement("a"),u.href=e,u.target="_blank",i.title=o||"Warning"),r===l.unavailable&&(s.src=a.wait,u=document.createElement("span"),i.title=o||"Unavailable"),r===l.error&&(s.src=a.error,u=document.createElement("span"),i.title=o||"Error"),u.innerHTML=t,u.classList.add("file__result_name"),i.appendChild(s),i.appendChild(u),i}renderResults(e,t){if(e.length>0)for(const r of e){const o=this.createResultElement(r.download_url,r.label);t.appendChild(o)}else alert("Invalid file type. Please select a valid file.")}populateExistingFiles(e){for(let t=0;t<this.data.length;t++){const r=this.data[t].download_url,o=this.data[t].label,i=this.data[t].status||"OK",s=this.data[t].status_message,a=this.createResultElement(r,o,i,s);e.appendChild(a)}}uploadFiles(e){const t=this.api?.blocks?.getCurrentBlockIndex(),r=this.api?.blocks?.getBlockByIndex(t);this.config.uploadEvent({files:e,id:r?.id,data:this.data})}saveFilesInData(e){const t=[];for(const r of e){const i={download_url:URL.createObjectURL(r),label:r.name};t.push(i)}this.data=t}save(){return this.isEmpty(this.data)?null:this.data}isEmpty(e){return!Array.isArray(e)||e.length===0}removed(){const e=this.api?.blocks?.getCurrentBlockIndex(),t=this.api?.blocks?.getBlockByIndex(e);this.api?.readOnly?.isEnabled||this.api?.readOnly?.isEnabled!==this.lastReadOnly||this.config.deleteEvent({data:this.data,id:t?.id})}iconName(e){const t=this.getExtension(e).toLowerCase();return this.config.standardFormats.includes(`.${t}`)?t:"unknown"}getExtension(e){return e?e.slice((e.lastIndexOf(".")-1>>>0)+2):""}static get pasteConfig(){return{files:{mimeTypes:["application/*","text/*","audio/*","video/*","model/*","font/*","message/*"]}}}onPaste(e){const t=e.detail.file;!t||t.type.startsWith("image/")||this.handleFiles([t])}static get isReadOnlySupported(){return!0}}var hp={},U9;function Tq(){return U9||(U9=1,(function(n){(function(){try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(".ce-popover--inline .ce-popover--nested .ce-popover__container{width:min-content!important;min-width:unset!important}.ce-popover--inline .ce-popover--nested .ce-popover__items{width:max-content}.editorjs__color-selector-container{display:grid;gap:10px;padding:4px}.editorjs__color-selector__container-item{width:30px;height:30px;display:block;cursor:pointer;border-radius:100%;transition:transform .2s ease}.editorjs__color-selector__container-item:hover{transform:scale(1.1)}")),document.head.appendChild(a)}}catch(l){console.error("vite-plugin-css-injected-by-js",l)}})();var e=Object.defineProperty,t=(a,l,d)=>l in a?e(a,l,{enumerable:!0,configurable:!0,writable:!0,value:d}):a[l]=d,r=(a,l,d)=>t(a,typeof l!="symbol"?l+"":l,d);Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-width="2" d="M5.24296 11.4075C5.23167 10.6253 5.52446 9.8395 6.12132 9.24264L9.65686 5.70711C10.0474 5.31658 10.6809 5.31693 11.0714 5.70745L16.0205 10.6565C16.2268 10.8629 16.3243 11.1371 16.3126 11.4075M5.24296 11.4075C5.25382 12.1607 5.54661 12.9106 6.12132 13.4853L8 15.364M5.24296 11.4075H11.9565M16.3126 11.4075C16.3022 11.6487 16.205 11.8869 16.0208 12.0711L12.4853 15.6066C11.3137 16.7782 9.41421 16.7782 8.24264 15.6066L8 15.364M16.3126 11.4075H11.9565M8 15.364L11.9565 11.4075"/><path stroke="currentColor" stroke-width="2" d="M20 17.4615C20 18.3112 19.3284 19 18.5 19C17.6716 19 17 18.3112 17 17.4615C17 16.6119 17.9 15.6154 18.5 15C19.1 15.6154 20 16.6119 20 17.4615Z"/></svg>';class i{constructor(l){r(this,"api"),r(this,"tag","SPAN"),r(this,"class","cdx-text-color"),r(this,"defaultColor","#2644FF"),r(this,"lastRange",null),r(this,"colors",["#182a4e","#0055cc","#1f6a83","#206e4e","#e56910","#ae2e24","#5e4db2","#758195","#1e7afd","#2998bd","#23a06b","#fea363","#c9372c","#8270db"]),r(this,"columns",7);const{api:d,config:u}=l;this.api=d,u.colors&&(this.colors=u.colors),u.columns&&(this.columns=u.columns)}static get title(){return"Color"}static get isInline(){return!0}render(){const l=document.createElement("button");return l.type="button",l.innerHTML=o,l.classList.add(this.api.styles.inlineToolButton),l.addEventListener("mousedown",d=>{d.preventDefault()}),l}surround(l){this.lastRange=l}wrapAndColor(l,d){if(!l)return;const u=l.extractContents(),h=document.createElement(this.tag);h.classList.add(this.class),h.appendChild(u),h.style.color=d,h.innerHTML=h.textContent||"",l.insertNode(h),this.api.selection.expandToTag(h)}renderActions(){const l=document.createElement("div");return l.classList.add("editorjs__color-selector-container"),l.style.gridTemplateColumns=`repeat(${this.columns}, 1fr)`,this.colors.forEach(d=>{const u=document.createElement("div");u.classList.add("editorjs__color-selector__container-item"),u.style.backgroundColor=d,u.onclick=()=>{this.wrapAndColor(this.lastRange,d)},l.append(u)}),l}static get sanitize(){return{span:{style:{color:!0}}}}}class s extends i{static get sanitize(){}}n.ColorPickerWithoutSanitize=s,n.default=i})(hp)),hp}var Bq=Tq();const _q=lp(Bq);class Aq{editor=null;currentAttachments=[];onChangeCallback=null;onAttachmentChangeCallback=null;fileUploadCallback;resolveReady;isRendering=!1;isSettingContent=!1;isReadOnly=!1;ready=this.makeReady();taskQueue=[];isFlushing=!1;isDestroyed=!1;isSuggestion=!1;makeReady(){return new Promise(e=>{this.resolveReady=e})}async mount(e,t={},r=[],o,i=!1){this.isReadOnly=i,t||(this.isSettingContent=!0,t={});const s=t.editorjs??{blocks:[],time:Date.now(),version:"2.28.2"};s.blocks||(s.blocks=[]),this.currentAttachments=r;const a=this.enrichBlocks(s,r),l={...s,blocks:a},d=await this.transformI18n(o);this.editor=new _U({holder:e,data:l,i18n:d,autofocus:!1,readOnly:i,tools:{paragraph:{class:LU,inlineToolbar:!0,config:{placeholder:o?.labels?.Placeholder??"Type here",preserveBlank:!0}},header:{class:FU},list:{class:$U,inlineToolbar:!0,config:{defaultStyle:"unordered"}},marker:{class:WU},underline:{class:qU},inlineCode:{class:KU},table:{class:cq},code:{class:hq,...d?.messages?.tools?.code},delimiter:{class:pq},checklist:{class:yq},images:{class:Eq,config:{uploadEvent:u=>{const{files:h,id:f}=u;this.fileUploadCallback({files:h,meta:{blockId:f}})},deleteEvent:u=>{const h=Array.isArray(u.data)?u.data.map(f=>f.id).filter(Boolean):[];this.handleAttachmentDeletion(h)}}},attachment:{class:Mq,config:{uploadEvent:u=>{const{files:h,id:f}=u;this.fileUploadCallback({files:h,meta:{blockId:f}})},deleteEvent:u=>{const h=Array.isArray(u.data)?u.data.map(f=>f.id).filter(Boolean):[];this.handleAttachmentDeletion(h)}}},ColorPicker:{class:_q}},onChange:async()=>{if(this.onChangeCallback&&this.editor&&!this.isReadOnly){const u=await this.save();this.updateContent(u)}},onReady:()=>{this.editor&&(new wq({editor:this.editor}),new Sq(this.editor),this.resolveReady())}})}queueTask(e){return this.isDestroyed?Promise.reject(new Error("Adapter destroyed")):new Promise((t,r)=>{const o=async()=>{try{const i=await e();t(i)}catch(i){r(i)}};this.taskQueue.push(o),this.ready.then(()=>this.flushQueue())})}async flushQueue(){if(!(this.isFlushing||this.isDestroyed)){for(this.isFlushing=!0;this.taskQueue.length>0&&!this.isDestroyed;){const e=this.taskQueue.shift();if(e)try{await e()}catch(t){console.error("EditorAdapter task failed:",t)}}this.isFlushing=!1}}async doSave(){return this.editor?await this.editor.save():{blocks:[]}}save(){return new Promise(e=>{this.queueTask(async()=>{e(await this.doSave())})})}trimBlocks(e){return e.map(t=>{if(!["images","attachment"].includes(t.type))return t;let r;return t.data&&(r=t.data.map(o=>({id:o.id,label:o.label,...o.position&&{position:o.position},...o.width&&{width:o.width}}))),{...t,data:r}})}async destroy(){this.isDestroyed=!0,this.editor&&typeof this.editor.destroy=="function"&&(await this.editor.destroy(),this.editor=null),this.taskQueue=[],this.ready=this.makeReady(),this.isRendering=!1,this.isDestroyed=!1}async getContent(){return await this.editor?.save()}async clearContent(){this.editor&&await this.render({blocks:[]})}blocksEqual(e,t){return JSON.stringify(e.map(r=>["images","attachment"].includes(r.type)?{id:r.id,type:r.type}:r))===JSON.stringify(t.map(r=>["images","attachment"].includes(r.type)?{id:r.id,type:r.type}:r))}onContentChange(e){this.onChangeCallback=e}onFileUpload(e){this.fileUploadCallback=e}onAttachmentChange(e){this.onAttachmentChangeCallback=e}async setContent(e,t){await this.queueTask(async()=>{if(this.isSuggestion&&(this.isSuggestion=!1),!this.editor)return;const r=e?.editorjs??{blocks:[]};this.isReadOnly&&await this.editor.readOnly.toggle(!1);const o=await this.doSave()??{},i=this.blocksEqual(r.blocks,o.blocks),s=this.attachmentsEqual(this.currentAttachments,t);if(i&&s)return;this.isSettingContent=!0,this.currentAttachments=t;const a=i?o:r,l=this.enrichBlocks(a,this.currentAttachments);await this.safeRender({...a,blocks:l}),this.isSettingContent=!1,this.isReadOnly&&await this.editor.readOnly.toggle(!0)})}async updateAttachments(e){await this.queueTask(async()=>{if(!this.editor||this.isSettingContent||this.attachmentsEqual(this.currentAttachments,e))return;this.currentAttachments=e?[...e]:[],this.isReadOnly&&await this.editor.readOnly.toggle(!1);const t=await this.doSave(),r=this.enrichBlocks(t,this.currentAttachments);await this.safeRender({...t,blocks:r}),this.isReadOnly&&await this.editor.readOnly.toggle(!0)})}async handleAttachmentDeletion(e){if(!this.editor||this.isRendering)return;const t=new Set(e.map(String)),r=this.currentAttachments.filter(o=>!t.has(String(o.id)));r.length!==this.currentAttachments.length&&(this.currentAttachments=r,this.onAttachmentChangeCallback?.(this.currentAttachments))}async registerFiles({ids:e,meta:t}){await this.queueTask(async()=>{if(!this.editor||!t?.blockId)return;const r=await this.doSave()??{},o=[...r.blocks],i=o.findIndex(l=>l.id===t.blockId);if(i===-1)return;const s=o[i];if(!Array.isArray(s.data))return;const a=[...s.data];for(let l=0;l<e.length;l++){const d=l;a[d]&&(a[d]={...a[d],id:e[l]})}o[i]={...s,data:a},await this.safeRender({...r,blocks:o}),this.updateContent({...r,blocks:o})})}async isSignatureOnly(){let e=!1;return await this.queueTask(async()=>{if(!this.editor){e=!1;return}e=(await this.doSave()??{}).blocks.every(r=>r?.id?.includes?.("signature"))}),e}async isEmpty(){let e=!1;return this.isSettingContent&&await this.waitForIdle(),await this.queueTask(async()=>{if(!this.editor||typeof this.editor.save!="function"){console.warn("Editor not ready for isEmpty()"),e=!1;return}this.isReadOnly&&await this.editor.readOnly.toggle(!1);const t=await this.doSave();if(this.isReadOnly&&await this.editor.readOnly.toggle(!0),!t||!t?.blocks?.length){e=!0;return}e=t.blocks.every(r=>{const{type:o,data:i}=r;return o==="paragraph"||o==="header"?!i?.text?.trim():["attachment","images"].includes(o)?!(Array.isArray(i)?i[0]?.id:i?.id):!1})}),!e&&this.isSuggestion&&(e=!0),e}async waitForIdle(e=1e4){let r=0;for(;this.isSettingContent;){if(r>=e){console.warn("waitForIdle timed out");break}await new Promise(o=>setTimeout(o,10)),r+=10}}async insertSignature(e,t){await this.queueTask(async()=>{if(!this.editor)return;const r=await this.doSave()??{},o=Date.now(),i=(e.editorjs?.blocks??[]).map((h,f)=>({...h,id:`signature-${f}-${o}`})),s=[],a=[];for(const h of r.blocks)h?.id?.includes?.("signature")?a.push(h):s.push(h);const l=[];a.slice(1).forEach(h=>{if(["attachment","images"].includes(h?.type)&&Array.isArray(h?.data))for(const f of h.data)f?.id!=null&&l.push(f.id)}),l.length&&await this.handleAttachmentDeletion(l);let d;if(a.length>0){const h=r.blocks.findIndex(f=>f?.id?.includes?.("signature"));d=[...s.slice(0,h),...i,...s.slice(h)]}else d=[...s,...i];this.currentAttachments=this.currentAttachments?[...this.currentAttachments,...t]:[...t];const u=this.enrichBlocks({...r,blocks:d},this.currentAttachments);await this.safeRender({...r,blocks:u}),this.updateContent({...r,blocks:u}),this.onAttachmentChangeCallback?.(this.currentAttachments)})}attachmentsEqual(e,t){if(!e||!t)return!1;const r=e.map(s=>s.id).filter(s=>s!==void 0),o=t.map(s=>s.id).filter(s=>s!==void 0);if(r.length!==o.length)return!1;const i=new Set(r);for(const s of o)if(!i.has(s))return!1;return!0}async safeRender(e){if(!(!this.editor||this.isDestroyed)){this.isRendering=!0;try{await this.editor.render(e)}finally{this.isRendering=!1}}}render(e){this.queueTask(()=>this.safeRender(e))}enrichBlocks(e,t=[]){const r=new Map((t??[]).map(o=>[o.id,o]));return e.blocks.map(o=>{if(!["images","attachment"].includes(o.type))return o;const i=Array.isArray(o.data)?o.data.map(s=>{const a=r.get(s.id);return a?{...s,...a}:{...s,missing:!0}}):o.data;return{...o,data:i}})}updateContent(e){if(this.isSettingContent=!1,this.onChangeCallback){const t=this.trimBlocks(e.blocks),r={...e,blocks:t};this.onChangeCallback({editorjs:r})}}async transformI18n(e){return e?{messages:{ui:{blockTunes:{toggler:{"Click to tune":e.actions?.clickToTune??"Click to tune","or drag to move":e.actions?.orDragToMove??"or drag to move"}},inlineToolbar:{converter:{"Convert to":e.actions?.convertTo??"Convert to"}},toolbar:{toolbox:{Add:e.actions?.add??"Add"}},popover:{Filter:e.actions?.filter??"Filter","Nothing found":e.actions?.nothingFound??"Nothing found"}},toolNames:e.labels??{},tools:{attachment:{"Drag & drop file(s) or ":e.plugins?.attachment?.dragAndDrop??"Drag & drop file(s) or ",browse:e.plugins?.attachment?.browse??"browse"},images:{"Drag & drop an image file or ":e.plugins?.images?.dragAndDrop??"Drag & drop an image file or ",browse:e.plugins?.images?.browse??"browse"},code:{config:{placeholder:e.plugins?.code?.placeholder??"fml"}},warning:{Title:e.plugins?.warning?.title??"Title",Message:e.plugins?.warning?.message??"Message"},link:{"Add a link":e.plugins?.link?.addLink??"Add a link"},stub:{"The block can not be displayed correctly.":e.plugins?.stub?.errorMessage??"The block can not be displayed correctly."},"Code Highlight":{"Enter code here":e.plugins?.codeHighlight?.placeholder??"Enter code here"}},blockTunes:{delete:{Delete:e.actions?.delete??"Delete","Click to delete":e.actions?.clickToDelete??"Click to delete"},moveUp:{"Move up":e.actions?.moveUp??"Move up"},moveDown:{"Move down":e.actions?.moveDown??"Move down"}}}}:void 0}async toggleReadOnly(e){this.editor&&(this.isReadOnly=e,this.editor.readOnly.toggle(e))}setIsSuggestion(e){this.isSuggestion=e}}const Oq={key:0,class:"reply-header"},Lq={class:"reply-actions"},Nq=c.defineComponent({__name:"EditorjsView",props:{data:{},attachments:{},readOnly:{type:Boolean,default:!1},toolbarPosition:{default:"left"},i18n:{},suggestedReply:{},fileUpload:{},mentions:{}},emits:["update:data","update:attachments","file-upload"],setup(n,{expose:e,emit:t}){const r=n,o=t,i=c.ref(null),s=c.ref(!1),a=new Aq;c.onMounted(async()=>{!i.value||!a||(await a.mount(i.value,r.data,r.attachments,r.i18n??{},r.readOnly),a.onContentChange(f=>o("update:data",f)),a.onFileUpload(async f=>o("file-upload",f)),a.onAttachmentChange(async f=>{o("update:attachments",f)}),await a.ready,await d())}),c.onBeforeUnmount(()=>{a&&a.destroy()}),c.watch(()=>r.data,f=>{a.setContent(f,r.attachments),s.value=!1}),c.watch(()=>r.attachments,f=>a.updateAttachments(f)),c.watch(()=>r.readOnly,f=>a.toggleReadOnly(f)),c.watch(()=>r.suggestedReply,async(f,p)=>{f!==p&&await d()},{immediate:!1});function l(f){return f!=null&&typeof f=="object"&&Object.keys(f).length>0}async function d(f=!1){if(!r.suggestedReply||!l(r.suggestedReply)||r.readOnly){s.value=!1;return}if(!await a.isEmpty()){s.value=!1;return}f&&await new Promise(g=>setTimeout(g,1e3)),await a.setContent(r.suggestedReply,r.attachments),a.setIsSuggestion(!0),await a.isSignatureOnly()?u():s.value=!0}async function u(){!s.value||!r.suggestedReply||r.readOnly||(s.value=!1,await a.updateContent(r.suggestedReply?.editorjs),a.setIsSuggestion(!1))}function h(){s.value=!1,a.clearContent(),a.setIsSuggestion(!1)}return e({acceptSuggestion:()=>{u()},isEmpty:()=>a.isEmpty(),registerFiles:f=>{a.registerFiles(f)},insertSignature:(f,p)=>{a.insertSignature(f,p)}}),(f,p)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["editor__wrapper",[!n.readOnly&&n.toolbarPosition=="right"?"editor__wrapper--right":n.readOnly?"":"editor__wrapper--left",s.value?"suggestion-reply-theme":""]])},[s.value?(c.openBlock(),c.createElementBlock("div",Oq,[c.createVNode(Nh,{active:!0,"has-background":!1,"icon-name":"ai",size:24,text:r.i18n?.labels?.AIResponse?r.i18n?.labels.AIResponse:"GPT Suggested Response"},null,8,["text"]),c.createElementVNode("div",Lq,[c.createVNode(Be,{active:!0,alt:"Accept Suggestion","icon-name":"accept",size:20,onClick:p[0]||(p[0]=m=>u())}),c.createVNode(Be,{active:!0,alt:"Dismiss Suggestion","icon-name":"close","is-danger":!0,size:20,onClick:p[1]||(p[1]=m=>h())})])])):c.createCommentVNode("",!0),c.createElementVNode("div",{ref_key:"container",ref:i,class:"editor__body",onFocusin:p[2]||(p[2]=m=>u())},null,544)],2))}});function rn(n){this.content=n}rn.prototype={constructor:rn,find:function(n){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===n)return e;return-1},get:function(n){var e=this.find(n);return e==-1?void 0:this.content[e+1]},update:function(n,e,t){var r=t&&t!=n?this.remove(t):this,o=r.find(n),i=r.content.slice();return o==-1?i.push(t||n,e):(i[o+1]=e,t&&(i[o]=t)),new rn(i)},remove:function(n){var e=this.find(n);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new rn(t)},addToStart:function(n,e){return new rn([n,e].concat(this.remove(n).content))},addToEnd:function(n,e){var t=this.remove(n).content.slice();return t.push(n,e),new rn(t)},addBefore:function(n,e,t){var r=this.remove(e),o=r.content.slice(),i=r.find(n);return o.splice(i==-1?o.length:i,0,e,t),new rn(o)},forEach:function(n){for(var e=0;e<this.content.length;e+=2)n(this.content[e],this.content[e+1])},prepend:function(n){return n=rn.from(n),n.size?new rn(n.content.concat(this.subtract(n).content)):this},append:function(n){return n=rn.from(n),n.size?new rn(this.subtract(n).content.concat(n.content)):this},subtract:function(n){var e=this;n=rn.from(n);for(var t=0;t<n.content.length;t+=2)e=e.remove(n.content[t]);return e},toObject:function(){var n={};return this.forEach(function(e,t){n[e]=t}),n},get size(){return this.content.length>>1}},rn.from=function(n){if(n instanceof rn)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new rn(e)};function q9(n,e,t){for(let r=0;;r++){if(r==n.childCount||r==e.childCount)return n.childCount==e.childCount?null:t;let o=n.child(r),i=e.child(r);if(o==i){t+=o.nodeSize;continue}if(!o.sameMarkup(i))return t;if(o.isText&&o.text!=i.text){for(let s=0;o.text[s]==i.text[s];s++)t++;return t}if(o.content.size||i.content.size){let s=q9(o.content,i.content,t+1);if(s!=null)return s}t+=o.nodeSize}}function Z9(n,e,t,r){for(let o=n.childCount,i=e.childCount;;){if(o==0||i==0)return o==i?null:{a:t,b:r};let s=n.child(--o),a=e.child(--i),l=s.nodeSize;if(s==a){t-=l,r-=l;continue}if(!s.sameMarkup(a))return{a:t,b:r};if(s.isText&&s.text!=a.text){let d=0,u=Math.min(s.text.length,a.text.length);for(;d<u&&s.text[s.text.length-d-1]==a.text[a.text.length-d-1];)d++,t--,r--;return{a:t,b:r}}if(s.content.size||a.content.size){let d=Z9(s.content,a.content,t-1,r-1);if(d)return d}t-=l,r-=l}}class G{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,t,r,o=0,i){for(let s=0,a=0;a<t;s++){let l=this.content[s],d=a+l.nodeSize;if(d>e&&r(l,o+a,i||null,s)!==!1&&l.content.size){let u=a+1;l.nodesBetween(Math.max(0,e-u),Math.min(l.content.size,t-u),r,o+u)}a=d}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,o){let i="",s=!0;return this.nodesBetween(e,t,(a,l)=>{let d=a.isText?a.text.slice(Math.max(e,l)-l,t-l):a.isLeaf?o?typeof o=="function"?o(a):o:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&d||a.isTextblock)&&r&&(s?s=!1:i+=r),i+=d},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,o=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(r)&&(o[o.length-1]=t.withText(t.text+r.text),i=1);i<e.content.length;i++)o.push(e.content[i]);return new G(o,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let r=[],o=0;if(t>e)for(let i=0,s=0;s<t;i++){let a=this.content[i],l=s+a.nodeSize;l>e&&((s<e||l>t)&&(a.isText?a=a.cut(Math.max(0,e-s),Math.min(a.text.length,t-s)):a=a.cut(Math.max(0,e-s-1),Math.min(a.content.size,t-s-1))),r.push(a),o+=a.nodeSize),s=l}return new G(r,o)}cutByIndex(e,t){return e==t?G.empty:e==0&&t==this.content.length?this:new G(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let o=this.content.slice(),i=this.size+t.nodeSize-r.nodeSize;return o[e]=t,new G(o,i)}addToStart(e){return new G([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new G(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,r=0;t<this.content.length;t++){let o=this.content[t];e(o,r,t),r+=o.nodeSize}}findDiffStart(e,t=0){return q9(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return Z9(this,e,t,r)}findIndex(e){if(e==0)return Uc(0,e);if(e==this.size)return Uc(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,r=0;;t++){let o=this.child(t),i=r+o.nodeSize;if(i>=e)return i==e?Uc(t+1,i):Uc(t,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,t){if(!t)return G.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new G(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return G.empty;let t,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)?(t||(t=e.slice(0,o)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new G(t||e,r)}static from(e){if(!e)return G.empty;if(e instanceof G)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new G([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}G.empty=new G([],0);const fp={index:0,offset:0};function Uc(n,e){return fp.index=n,fp.offset=e,fp}function qc(n,e){if(n===e)return!0;if(!(n&&typeof n=="object")||!(e&&typeof e=="object"))return!1;let t=Array.isArray(n);if(Array.isArray(e)!=t)return!1;if(t){if(n.length!=e.length)return!1;for(let r=0;r<n.length;r++)if(!qc(n[r],e[r]))return!1}else{for(let r in n)if(!(r in e)||!qc(n[r],e[r]))return!1;for(let r in e)if(!(r in n))return!1}return!0}let Je=class r4{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,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))t||(t=e.slice(0,o));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,o)),t.push(this),r=!0),t&&t.push(i)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&qc(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[t.type];if(!r)throw new RangeError(`There is no mark type ${t.type} in this schema`);let o=r.create(t.attrs);return r.checkAttrs(o.attrs),o}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return r4.none;if(e instanceof r4)return[e];let t=e.slice();return t.sort((r,o)=>r.type.rank-o.type.rank),t}};Je.none=[];class Zc extends Error{}class ie{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=Y9(this.content,e+this.openStart,t);return r&&new ie(r,this.openStart,this.openEnd)}removeBetween(e,t){return new ie(K9(this.content,e+this.openStart,t+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,t){if(!t)return ie.empty;let r=t.openStart||0,o=t.openEnd||0;if(typeof r!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new ie(G.fromJSON(e,t.content),r,o)}static maxOpen(e,t=!0){let r=0,o=0;for(let i=e.firstChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=e.lastChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.lastChild)o++;return new ie(e,r,o)}}ie.empty=new ie(G.empty,0,0);function K9(n,e,t){let{index:r,offset:o}=n.findIndex(e),i=n.maybeChild(r),{index:s,offset:a}=n.findIndex(t);if(o==e||i.isText){if(a!=t&&!n.child(s).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(r!=s)throw new RangeError("Removing non-flat range");return n.replaceChild(r,i.copy(K9(i.content,e-o-1,t-o-1)))}function Y9(n,e,t,r){let{index:o,offset:i}=n.findIndex(e),s=n.maybeChild(o);if(i==e||s.isText)return r&&!r.canReplace(o,o,t)?null:n.cut(0,e).append(t).append(n.cut(e));let a=Y9(s.content,e-i-1,t,s);return a&&n.replaceChild(o,s.copy(a))}function Dq(n,e,t){if(t.openStart>n.depth)throw new Zc("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new Zc("Inconsistent open depths");return X9(n,e,t,0)}function X9(n,e,t,r){let o=n.index(r),i=n.node(r);if(o==e.index(r)&&r<n.depth-t.openStart){let s=X9(n,e,t,r+1);return i.copy(i.content.replaceChild(o,s))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&n.depth==r&&e.depth==r){let s=n.parent,a=s.content;return fs(s,a.cut(0,n.parentOffset).append(t.content).append(a.cut(e.parentOffset)))}else{let{start:s,end:a}=Iq(t,n);return fs(i,J9(n,s,a,e,r))}else return fs(i,Kc(n,e,r))}function G9(n,e){if(!e.type.compatibleContent(n.type))throw new Zc("Cannot join "+e.type.name+" onto "+n.type.name)}function pp(n,e,t){let r=n.node(t);return G9(r,e.node(t)),r}function hs(n,e){let t=e.length-1;t>=0&&n.isText&&n.sameMarkup(e[t])?e[t]=n.withText(e[t].text+n.text):e.push(n)}function o2(n,e,t,r){let o=(e||n).node(t),i=0,s=e?e.index(t):o.childCount;n&&(i=n.index(t),n.depth>t?i++:n.textOffset&&(hs(n.nodeAfter,r),i++));for(let a=i;a<s;a++)hs(o.child(a),r);e&&e.depth==t&&e.textOffset&&hs(e.nodeBefore,r)}function fs(n,e){return n.type.checkContent(e),n.copy(e)}function J9(n,e,t,r,o){let i=n.depth>o&&pp(n,e,o+1),s=r.depth>o&&pp(t,r,o+1),a=[];return o2(null,n,o,a),i&&s&&e.index(o)==t.index(o)?(G9(i,s),hs(fs(i,J9(n,e,t,r,o+1)),a)):(i&&hs(fs(i,Kc(n,e,o+1)),a),o2(e,t,o,a),s&&hs(fs(s,Kc(t,r,o+1)),a)),o2(r,null,o,a),new G(a)}function Kc(n,e,t){let r=[];if(o2(null,n,t,r),n.depth>t){let o=pp(n,e,t+1);hs(fs(o,Kc(n,e,t+1)),r)}return o2(e,null,t,r),new G(r)}function Iq(n,e){let t=e.depth-n.openStart,o=e.node(t).copy(n.content);for(let i=t-1;i>=0;i--)o=e.node(i).copy(G.from(o));return{start:o.resolveNoCache(n.openStart+t),end:o.resolveNoCache(o.content.size-n.openEnd-t)}}class i2{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw 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,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],o=e.child(t);return r?e.child(t).cut(r):o}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[t*3],o=t==0?0:this.path[t*3-1]+1;for(let i=0;i<e;i++)o+=r.child(i).nodeSize;return o}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return Je.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),o=e.maybeChild(t);if(!r){let a=r;r=o,o=a}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 t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.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 t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new Yc(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 t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let r=[],o=0,i=t;for(let s=e;;){let{index:a,offset:l}=s.content.findIndex(i),d=i-l;if(r.push(s,a,o+l),!d||(s=s.child(a),s.isText))break;i=d-1,o+=l+1}return new i2(t,r,i)}static resolveCached(e,t){let r=Q9.get(e);if(r)for(let i=0;i<r.elts.length;i++){let s=r.elts[i];if(s.pos==t)return s}else Q9.set(e,r=new Pq);let o=r.elts[r.i]=i2.resolve(e,t);return r.i=(r.i+1)%Rq,o}}class Pq{constructor(){this.elts=[],this.i=0}}const Rq=12,Q9=new WeakMap;class Yc{constructor(e,t,r){this.$from=e,this.$to=t,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 Vq=Object.create(null);let ui=class o4{constructor(e,t,r,o=Je.none){this.type=e,this.attrs=t,this.marks=o,this.content=r||G.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,r,o=0){this.content.nodesBetween(e,t,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,t,r,o){return this.content.textBetween(e,t,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,t,r){return this.type==e&&qc(this.attrs,t||e.defaultAttrs||Vq)&&Je.sameSet(this.marks,r||Je.none)}copy(e=null){return e==this.content?this:new o4(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new o4(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,r=!1){if(e==t)return ie.empty;let o=this.resolve(e),i=this.resolve(t),s=r?0:o.sharedDepth(t),a=o.start(s),d=o.node(s).content.cut(o.pos-a,i.pos-a);return new ie(d,o.depth-s,i.depth-s)}replace(e,t,r){return Dq(this.resolve(e),this.resolve(t),r)}nodeAt(e){for(let t=this;;){let{index:r,offset:o}=t.content.findIndex(e);if(t=t.maybeChild(r),!t)return null;if(o==e||t.isText)return t;e-=o+1}}childAfter(e){let{index:t,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(t),index:t,offset:r};let o=this.content.child(t-1);return{node:o,index:t-1,offset:r-o.nodeSize}}resolve(e){return i2.resolveCached(this,e)}resolveNoCache(e){return i2.resolve(this,e)}rangeHasMark(e,t,r){let o=!1;return t>e&&this.nodesBetween(e,t,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()+")"),ev(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=G.empty,o=0,i=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,o,i),a=s&&s.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(let l=o;l<i;l++)if(!this.type.allowsMarks(r.child(l).marks))return!1;return!0}canReplaceWith(e,t,r,o){if(o&&!this.type.allowsMarks(o))return!1;let i=this.contentMatchAt(e).matchType(r),s=i&&i.matchFragment(this.content,t);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=Je.none;for(let t=0;t<this.marks.length;t++){let r=this.marks[t];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!Je.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let r;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,r)}let o=G.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,o,r);return i.type.checkAttrs(i.attrs),i}};ui.prototype.text=void 0;class Xc extends ui{constructor(e,t,r,o){if(super(e,t,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):ev(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Xc(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Xc(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function ev(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}class ps{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new Hq(e,t);if(r.next==null)return ps.empty;let o=tv(r);r.next&&r.err("Unexpected trailing text");let i=qq(Uq(o));return Zq(i,r),i}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,r=e.childCount){let o=this;for(let i=t;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:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let r=0;r<e.next.length;r++)if(this.next[t].type==e.next[r].type)return!0;return!1}fillBefore(e,t=!1,r=0){let o=[this];function i(s,a){let l=s.matchFragment(e,r);if(l&&(!t||l.validEnd))return G.from(a.map(d=>d.createAndFill()));for(let d=0;d<s.next.length;d++){let{type:u,next:h}=s.next[d];if(!(u.isText||u.hasRequiredAttrs())&&o.indexOf(h)==-1){o.push(h);let f=i(h,a.concat(u));if(f)return f}}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 t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=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 a=o;a.type;a=a.via)s.push(a.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:a,next:l}=i.next[s];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in t)&&(!o.type||l.validEnd)&&(r.push({match:a.contentMatch,type:a,via:o}),t[a.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 t(r){e.push(r);for(let o=0;o<r.next.length;o++)e.indexOf(r.next[o].next)==-1&&t(r.next[o].next)}return t(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(`
|
|
65
65
|
`)}}ps.empty=new ps(!0);class Hq{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function tv(n){let e=[];do e.push(Fq(n));while(n.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function Fq(n){let e=[];do e.push(zq(n));while(n.next&&n.next!=")"&&n.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function zq(n){let e=Wq(n);for(;;)if(n.eat("+"))e={type:"plus",expr:e};else if(n.eat("*"))e={type:"star",expr:e};else if(n.eat("?"))e={type:"opt",expr:e};else if(n.eat("{"))e=$q(n,e);else break;return e}function nv(n){/\D/.test(n.next)&&n.err("Expected number, got '"+n.next+"'");let e=Number(n.next);return n.pos++,e}function $q(n,e){let t=nv(n),r=t;return n.eat(",")&&(n.next!="}"?r=nv(n):r=-1),n.eat("}")||n.err("Unclosed braced range"),{type:"range",min:t,max:r,expr:e}}function jq(n,e){let t=n.nodeTypes,r=t[e];if(r)return[r];let o=[];for(let i in t){let s=t[i];s.isInGroup(e)&&o.push(s)}return o.length==0&&n.err("No node type or group '"+e+"' found"),o}function Wq(n){if(n.eat("(")){let e=tv(n);return n.eat(")")||n.err("Missing closing paren"),e}else if(/\W/.test(n.next))n.err("Unexpected token '"+n.next+"'");else{let e=jq(n,n.next).map(t=>(n.inline==null?n.inline=t.isInline:n.inline!=t.isInline&&n.err("Mixing inline and block content"),{type:"name",value:t}));return n.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function Uq(n){let e=[[]];return o(i(n,0),t()),e;function t(){return e.push([])-1}function r(s,a,l){let d={term:l,to:a};return e[s].push(d),d}function o(s,a){s.forEach(l=>l.to=a)}function i(s,a){if(s.type=="choice")return s.exprs.reduce((l,d)=>l.concat(i(d,a)),[]);if(s.type=="seq")for(let l=0;;l++){let d=i(s.exprs[l],a);if(l==s.exprs.length-1)return d;o(d,a=t())}else if(s.type=="star"){let l=t();return r(a,l),o(i(s.expr,l),l),[r(l)]}else if(s.type=="plus"){let l=t();return o(i(s.expr,a),l),o(i(s.expr,l),l),[r(l)]}else{if(s.type=="opt")return[r(a)].concat(i(s.expr,a));if(s.type=="range"){let l=a;for(let d=0;d<s.min;d++){let u=t();o(i(s.expr,l),u),l=u}if(s.max==-1)o(i(s.expr,l),l);else for(let d=s.min;d<s.max;d++){let u=t();r(l,u),o(i(s.expr,l),u),l=u}return[r(l)]}else{if(s.type=="name")return[r(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function rv(n,e){return e-n}function ov(n,e){let t=[];return r(e),t.sort(rv);function r(o){let i=n[o];if(i.length==1&&!i[0].term)return r(i[0].to);t.push(o);for(let s=0;s<i.length;s++){let{term:a,to:l}=i[s];!a&&t.indexOf(l)==-1&&r(l)}}}function qq(n){let e=Object.create(null);return t(ov(n,0));function t(r){let o=[];r.forEach(s=>{n[s].forEach(({term:a,to:l})=>{if(!a)return;let d;for(let u=0;u<o.length;u++)o[u][0]==a&&(d=o[u][1]);ov(n,l).forEach(u=>{d||o.push([a,d=[]]),d.indexOf(u)==-1&&d.push(u)})})});let i=e[r.join(",")]=new ps(r.indexOf(n.length-1)>-1);for(let s=0;s<o.length;s++){let a=o[s][1].sort(rv);i.next.push({type:o[s][0],next:e[a.join(",")]||t(a)})}return i}}function Zq(n,e){for(let t=0,r=[n];t<r.length;t++){let o=r[t],i=!o.validEnd,s=[];for(let a=0;a<o.next.length;a++){let{type:l,next:d}=o.next[a];s.push(l.name),i&&!(l.isText||l.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 iv(n){let e=Object.create(null);for(let t in n){let r=n[t];if(!r.hasDefault)return null;e[t]=r.default}return e}function sv(n,e){let t=Object.create(null);for(let r in n){let o=e&&e[r];if(o===void 0){let i=n[r];if(i.hasDefault)o=i.default;else throw new RangeError("No value supplied for attribute "+r)}t[r]=o}return t}function av(n,e,t,r){for(let o in e)if(!(o in n))throw new RangeError(`Unsupported attribute ${o} for ${t} of type ${o}`);for(let o in n){let i=n[o];i.validate&&i.validate(e[o])}}function lv(n,e){let t=Object.create(null);if(e)for(let r in e)t[r]=new Yq(n,r,e[r]);return t}let cv=class fE{constructor(e,t,r){this.name=e,this.schema=t,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=lv(e,r.attrs),this.defaultAttrs=iv(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==ps.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:sv(this.attrs,e)}create(e=null,t,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new ui(this,this.computeAttrs(e),G.from(t),Je.setFrom(r))}createChecked(e=null,t,r){return t=G.from(t),this.checkContent(t),new ui(this,this.computeAttrs(e),t,Je.setFrom(r))}createAndFill(e=null,t,r){if(e=this.computeAttrs(e),t=G.from(t),t.size){let s=this.contentMatch.fillBefore(t);if(!s)return null;t=s.append(t)}let o=this.contentMatch.matchFragment(t),i=o&&o.fillBefore(G.empty,!0);return i?new ui(this,e,t.append(i),Je.setFrom(r)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.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){av(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?t&&t.push(e[r]):t||(t=e.slice(0,r));return t?t.length?t:Je.none:e}static compile(e,t){let r=Object.create(null);e.forEach((i,s)=>r[i]=new fE(i,t,s));let o=t.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 Kq(n,e,t){let r=t.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 ${n}, got ${i}`)}}class Yq{constructor(e,t,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?Kq(e,t,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class Gc{constructor(e,t,r,o){this.name=e,this.rank=t,this.schema=r,this.spec=o,this.attrs=lv(e,o.attrs),this.excluded=null;let i=iv(this.attrs);this.instance=i?new Je(this,i):null}create(e=null){return!e&&this.instance?this.instance:new Je(this,sv(this.attrs,e))}static compile(e,t){let r=Object.create(null),o=0;return e.forEach((i,s)=>r[i]=new Gc(i,o++,t,s)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){av(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class dv{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let o in e)t[o]=e[o];t.nodes=rn.from(e.nodes),t.marks=rn.from(e.marks||{}),this.nodes=cv.compile(this.spec.nodes,this),this.marks=Gc.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||"",a=i.spec.marks;if(i.contentMatch=r[s]||(r[s]=ps.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=a=="_"?null:a?uv(this,a.split(" ")):a==""||!i.inlineContent?[]:null}for(let o in this.marks){let i=this.marks[o],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:uv(this,s.split(" "))}this.nodeFromJSON=o=>ui.fromJSON(this,o),this.markFromJSON=o=>Je.fromJSON(this,o),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,r,o){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof cv){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(t,r,o)}text(e,t){let r=this.nodes.text;return new Xc(r,r.defaultAttrs,e,Je.setFrom(t))}mark(e,t){return typeof e=="string"&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function uv(n,e){let t=[];for(let r=0;r<e.length;r++){let o=e[r],i=n.marks[o],s=i;if(i)t.push(i);else for(let a in n.marks){let l=n.marks[a];(o=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(o)>-1)&&t.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return t}function Xq(n){return n.tag!=null}function Gq(n){return n.style!=null}let s2=class i4{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let r=this.matchedStyles=[];t.forEach(o=>{if(Xq(o))this.tags.push(o);else if(Gq(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,t={}){let r=new mv(this,t,!1);return r.addAll(e,Je.none,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new mv(this,t,!0);return r.addAll(e,Je.none,t.from,t.to),ie.maxOpen(r.finish())}matchTag(e,t,r){for(let o=r?this.tags.indexOf(r)+1:0;o<this.tags.length;o++){let i=this.tags[o];if(eZ(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||t.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(e);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(e,t,r,o){for(let i=o?this.styles.indexOf(o)+1:0;i<this.styles.length;i++){let s=this.styles[i],a=s.style;if(!(a.indexOf(e)!=0||s.context&&!r.matchesContext(s.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=t))){if(s.getAttrs){let l=s.getAttrs(t);if(l===!1)continue;s.attrs=l||void 0}return s}}}static schemaRules(e){let t=[];function r(o){let i=o.priority==null?50:o.priority,s=0;for(;s<t.length;s++){let a=t[s];if((a.priority==null?50:a.priority)<i)break}t.splice(s,0,o)}for(let o in e.marks){let i=e.marks[o].spec.parseDOM;i&&i.forEach(s=>{r(s=gv(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=gv(s)),s.node||s.ignore||s.mark||(s.node=o)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new i4(e,i4.schemaRules(e)))}};const hv={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},Jq={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},fv={ol:!0,ul:!0},a2=1,mp=2,l2=4;function pv(n,e,t){return e!=null?(e?a2:0)|(e==="full"?mp:0):n&&n.whitespace=="pre"?a2|mp:t&~l2}class Jc{constructor(e,t,r,o,i,s){this.type=e,this.attrs=t,this.marks=r,this.solid=o,this.options=s,this.content=[],this.activeMarks=Je.none,this.match=i||(s&l2?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(G.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);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&a2)){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 t=G.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(G.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!hv.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class mv{constructor(e,t,r){this.parser=e,this.options=t,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let o=t.topNode,i,s=pv(null,t.preserveWhitespace,0)|(r?l2:0);o?i=new Jc(o.type,o.attrs,Je.none,!0,t.topMatch||o.type.contentMatch,s):r?i=new Jc(null,null,Je.none,!0,null,s):i=new Jc(e.schema.topNodeType,null,Je.none,!0,null,s),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){e.nodeType==3?this.addTextNode(e,t):e.nodeType==1&&this.addElement(e,t)}addTextNode(e,t){let r=e.nodeValue,o=this.top,i=o.options&mp?"full":this.localPreserveWS||(o.options&a2)>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,`
|
|
66
66
|
`);else if(s.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(s.linebreakReplacement.create())){let a=r.split(/\r?\n|\r/);for(let l=0;l<a.length;l++)l&&this.insertNode(s.linebreakReplacement.create(),t,!0),a[l]&&this.insertNode(s.text(a[l]),t,!/\S/.test(a[l]));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 a=o.content[o.content.length-1],l=e.previousSibling;(!a||l&&l.nodeName=="BR"||a.isText&&/[ \t\r\n\u000c]$/.test(a.text))&&(r=r.slice(1))}r&&this.insertNode(s.text(r),t,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,t,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(),a;fv.hasOwnProperty(s)&&this.parser.normalizeLists&&Qq(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(a=this.parser.matchTag(e,this,r));e:if(l?l.ignore:Jq.hasOwnProperty(s))this.findInside(e),this.ignoreFallback(e,t);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let d,u=this.needsBlock;if(hv.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,t);break e}let h=l&&l.skip?t:this.readStyles(e,t);h&&this.addAll(e,h),d&&this.sync(i),this.needsBlock=u}else{let d=this.readStyles(e,t);d&&this.addElementByRule(e,l,d,l.consuming===!1?a:void 0)}this.localPreserveWS=o}leafFallback(e,t){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
|
|
67
67
|
`),t)}ignoreFallback(e,t){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),t,!0)}readStyles(e,t){let 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 a=void 0;;){let l=this.parser.matchStyle(i,s,this,a);if(!l)break;if(l.ignore)return null;if(l.clearMark?t=t.filter(d=>!l.clearMark(d)):t=t.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)a=l;else break}}return t}addElementByRule(e,t,r,o){let i,s;if(t.node)if(s=this.parser.schema.nodes[t.node],s.isLeaf)this.insertNode(s.create(t.attrs),r,e.nodeName=="BR")||this.leafFallback(e,r);else{let l=this.enter(s,t.attrs||null,r,t.preserveWhitespace);l&&(i=!0,r=l)}else{let l=this.parser.schema.marks[t.mark];r=r.concat(l.create(t.attrs))}let a=this.top;if(s&&s.isLeaf)this.findInside(e);else if(o)this.addElement(e,r,o);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l,r,!1));else{let l=e;typeof t.contentElement=="string"?l=e.querySelector(t.contentElement):typeof t.contentElement=="function"?l=t.contentElement(e):t.contentElement&&(l=t.contentElement),this.findAround(e,l,!0),this.addAll(l,r),this.findAround(e,l,!1)}i&&this.sync(a)&&this.open--}addAll(e,t,r,o){let i=r||0;for(let s=r?e.childNodes[r]:e.firstChild,a=o==null?null:e.childNodes[o];s!=a;s=s.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(s,t);this.findAtPoint(e,i)}findPlace(e,t,r){let o,i;for(let s=this.open,a=0;s>=0;s--){let l=this.nodes[s],d=l.findWrapping(e);if(d&&(!o||o.length>d.length+a)&&(o=d,i=l,!d.length))break;if(l.solid){if(r)break;a+=2}}if(!o)return null;this.sync(i);for(let s=0;s<o.length;s++)t=this.enterInner(o[s],null,t,!1);return t}insertNode(e,t,r){if(e.isInline&&this.needsBlock&&!this.top.type){let i=this.textblockFromContext();i&&(t=this.enterInner(i,null,t))}let o=this.findPlace(e,t,r);if(o){this.closeExtra();let i=this.top;i.match&&(i.match=i.match.matchType(e.type));let s=Je.none;for(let a of o.concat(e.marks))(i.type?i.type.allowsMarkType(a.type):vv(a.type,e.type))&&(s=a.addToSet(s));return i.content.push(e.mark(s)),!0}return!1}enter(e,t,r,o){let i=this.findPlace(e.create(t),r,!1);return i&&(i=this.enterInner(e,t,r,!0,o)),i}enterInner(e,t,r,o=!1,i){this.closeExtra();let s=this.top;s.match=s.match&&s.match.matchType(e);let a=pv(e,i,s.options);s.options&l2&&s.content.length==0&&(a|=l2);let l=Je.none;return r=r.filter(d=>(s.type?s.type.allowsMarkType(d.type):vv(d.type,e))?(l=d.addToSet(l),!1):!0),this.nodes.push(new Jc(e,t,l,o,null,a)),this.open++,r}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--){if(this.nodes[t]==e)return this.open=t,!0;this.localPreserveWS&&(this.nodes[t].options|=a2)}return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let r=this.nodes[t].content;for(let o=r.length-1;o>=0;o--)e+=r[o].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==t&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&e.nodeType==1&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,r){if(e!=t&&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)&&t.compareDocumentPosition(this.find[o].node)&(r?2:4)&&(this.find[o].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),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=(a,l)=>{for(;a>=0;a--){let d=t[a];if(d==""){if(a==t.length-1||a==0)continue;for(;l>=i;l--)if(s(a-1,l))return!0;return!1}else{let u=l>0||l==0&&o?this.nodes[l].type:r&&l>=i?r.node(l-i).type:null;if(!u||u.name!=d&&!u.isInGroup(d))return!1;l--}}return!0};return s(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let r=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let t in this.parser.schema.nodes){let r=this.parser.schema.nodes[t];if(r.isTextblock&&r.defaultAttrs)return r}}}function Qq(n){for(let e=n.firstChild,t=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&fv.hasOwnProperty(r)&&t?(t.appendChild(e),e=t):r=="li"?t=e:r&&(t=null)}}function eZ(n,e){return(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,e)}function gv(n){let e={};for(let t in n)e[t]=n[t];return e}function vv(n,e){let t=e.schema.nodes;for(let r in t){let o=t[r];if(!o.allowsMarkType(n))continue;let i=[],s=a=>{i.push(a);for(let l=0;l<a.edgeCount;l++){let{type:d,next:u}=a.edge(l);if(d==e||i.indexOf(u)<0&&s(u))return!0}};if(s(o.contentMatch))return!0}}class ms{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},r){r||(r=gp(t).createDocumentFragment());let o=r,i=[];return e.forEach(s=>{if(i.length||s.marks.length){let a=0,l=0;for(;a<i.length&&l<s.marks.length;){let d=s.marks[l];if(!this.marks[d.type.name]){l++;continue}if(!d.eq(i[a][0])||d.type.spec.spanning===!1)break;a++,l++}for(;a<i.length;)o=i.pop()[1];for(;l<s.marks.length;){let d=s.marks[l++],u=this.serializeMark(d,s.isInline,t);u&&(i.push([d,o]),o.appendChild(u.dom),o=u.contentDOM||u.dom)}}o.appendChild(this.serializeNodeInner(s,t))}),r}serializeNodeInner(e,t){let{dom:r,contentDOM:o}=Qc(gp(t),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,t,o)}return r}serializeNode(e,t={}){let r=this.serializeNodeInner(e,t);for(let o=e.marks.length-1;o>=0;o--){let i=this.serializeMark(e.marks[o],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(e,t,r={}){let o=this.marks[e.type.name];return o&&Qc(gp(r),o(e,t),null,e.attrs)}static renderSpec(e,t,r=null,o){return Qc(e,t,r,o)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new ms(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=yv(e.nodes);return t.text||(t.text=r=>r.text),t}static marksFromSchema(e){return yv(e.marks)}}function yv(n){let e={};for(let t in n){let r=n[t].spec.toDOM;r&&(e[t]=r)}return e}function gp(n){return n.document||window.document}const Cv=new WeakMap;function tZ(n){let e=Cv.get(n);return e===void 0&&Cv.set(n,e=nZ(n)),e}function nZ(n){let e=null;function t(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++)t(r[o]);else for(let o in r)t(r[o])}return t(n),e}function Qc(n,e,t,r){if(typeof e=="string")return{dom:n.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=tZ(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&&(t=o.slice(0,s),o=o.slice(s+1));let a,l=t?n.createElementNS(t,o):n.createElement(o),d=e[1],u=1;if(d&&typeof d=="object"&&d.nodeType==null&&!Array.isArray(d)){u=2;for(let h in d)if(d[h]!=null){let f=h.indexOf(" ");f>0?l.setAttributeNS(h.slice(0,f),h.slice(f+1),d[h]):h=="style"&&l.style?l.style.cssText=d[h]:l.setAttribute(h,d[h])}}for(let h=u;h<e.length;h++){let f=e[h];if(f===0){if(h<e.length-1||h>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:p,contentDOM:m}=Qc(n,f,t,r);if(l.appendChild(p),m){if(a)throw new RangeError("Multiple content holes");a=m}}}return{dom:l,contentDOM:a}}const bv=65535,wv=Math.pow(2,16);function rZ(n,e){return n+e*wv}function kv(n){return n&bv}function oZ(n){return(n-(n&bv))/wv}const xv=1,Sv=2,ed=4,Ev=8;class vp{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(this.delInfo&Ev)>0}get deletedBefore(){return(this.delInfo&(xv|ed))>0}get deletedAfter(){return(this.delInfo&(Sv|ed))>0}get deletedAcross(){return(this.delInfo&ed)>0}}class Kn{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&Kn.empty)return Kn.empty}recover(e){let t=0,r=kv(e);if(!this.inverted)for(let o=0;o<r;o++)t+=this.ranges[o*3+2]-this.ranges[o*3+1];return this.ranges[r*3]+t+oZ(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,r){let o=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?o:0);if(l>e)break;let d=this.ranges[a+i],u=this.ranges[a+s],h=l+d;if(e<=h){let f=d?e==l?-1:e==h?1:t:t,p=l+o+(f<0?0:u);if(r)return p;let m=e==(t<0?l:h)?null:rZ(a/3,e-l),g=e==l?Sv:e==h?xv:ed;return(t<0?e!=l:e!=h)&&(g|=Ev),new vp(p,g,m)}o+=u-d}return r?e+o:new vp(e+o,0,null)}touches(e,t){let r=0,o=kv(t),i=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?r:0);if(l>e)break;let d=this.ranges[a+i],u=l+d;if(e<=u&&a==o*3)return!0;r+=this.ranges[a+s]-d}return!1}forEach(e){let t=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],a=s-(this.inverted?i:0),l=s+(this.inverted?0:i),d=this.ranges[o+t],u=this.ranges[o+r];e(a,a+d,l,l+u),i+=u-d}}invert(){return new Kn(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?Kn.empty:new Kn(e<0?[0,-e,0]:[0,0,e])}}Kn.empty=new Kn([]);class ya{constructor(e,t,r=0,o=e?e.length:0){this.mirror=t,this.from=r,this.to=o,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new ya(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),t!=null&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,r=this._maps.length;t<e._maps.length;t++){let o=e.getMirror(t);this.appendMap(e._maps[t],o!=null&&o<t?r+o:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,r=this._maps.length+e._maps.length;t>=0;t--){let o=e.getMirror(t);this.appendMap(e._maps[t].invert(),o!=null&&o>t?r-o-1:void 0)}}invert(){let e=new ya;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,r){let o=0;for(let i=this.from;i<this.to;i++){let s=this._maps[i],a=s.mapResult(e,t);if(a.recover!=null){let l=this.getMirror(i);if(l!=null&&l>i&&l<this.to){i=l,e=this._maps[l].recover(a.recover);continue}}o|=a.delInfo,e=a.pos}return r?e:new vp(e,o,null)}}const yp=Object.create(null);class fn{getMap(){return Kn.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=yp[t.stepType];if(!r)throw new RangeError(`No step type ${t.stepType} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in yp)throw new RangeError("Duplicate use of step JSON ID "+e);return yp[e]=t,t.prototype.jsonID=e,t}}class Rt{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new Rt(e,null)}static fail(e){return new Rt(null,e)}static fromReplace(e,t,r,o){try{return Rt.ok(e.replace(t,r,o))}catch(i){if(i instanceof Zc)return Rt.fail(i.message);throw i}}}function Cp(n,e,t){let r=[];for(let o=0;o<n.childCount;o++){let i=n.child(o);i.content.size&&(i=i.copy(Cp(i.content,e,i))),i.isInline&&(i=e(i,t,o)),r.push(i)}return G.fromArray(r)}class hi extends fn{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=e.resolve(this.from),o=r.node(r.sharedDepth(this.to)),i=new ie(Cp(t.content,(s,a)=>!s.isAtom||!a.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),o),t.openStart,t.openEnd);return Rt.fromReplace(e,this.from,this.to,i)}invert(){return new Ar(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new hi(t.pos,r.pos,this.mark)}merge(e){return e instanceof hi&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new hi(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,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new hi(t.from,t.to,e.markFromJSON(t.mark))}}fn.jsonID("addMark",hi);class Ar extends fn{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=new ie(Cp(t.content,o=>o.mark(this.mark.removeFromSet(o.marks)),e),t.openStart,t.openEnd);return Rt.fromReplace(e,this.from,this.to,r)}invert(){return new hi(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new Ar(t.pos,r.pos,this.mark)}merge(e){return e instanceof Ar&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Ar(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,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Ar(t.from,t.to,e.markFromJSON(t.mark))}}fn.jsonID("removeMark",Ar);class fi extends fn{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Rt.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return Rt.fromReplace(e,this.pos,this.pos+1,new ie(G.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let r=this.mark.addToSet(t.marks);if(r.length==t.marks.length){for(let o=0;o<t.marks.length;o++)if(!t.marks[o].isInSet(r))return new fi(this.pos,t.marks[o]);return new fi(this.pos,this.mark)}}return new gs(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new fi(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new fi(t.pos,e.markFromJSON(t.mark))}}fn.jsonID("addNodeMark",fi);class gs extends fn{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Rt.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return Rt.fromReplace(e,this.pos,this.pos+1,new ie(G.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new fi(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new gs(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new gs(t.pos,e.markFromJSON(t.mark))}}fn.jsonID("removeNodeMark",gs);class qt extends fn{constructor(e,t,r,o=!1){super(),this.from=e,this.to=t,this.slice=r,this.structure=o}apply(e){return this.structure&&bp(e,this.from,this.to)?Rt.fail("Structure replace would overwrite content"):Rt.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Kn([this.from,this.to-this.from,this.slice.size])}invert(e){return new qt(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deletedAcross&&r.deletedAcross?null:new qt(t.pos,Math.max(t.pos,r.pos),this.slice,this.structure)}merge(e){if(!(e instanceof qt)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let t=this.slice.size+e.slice.size==0?ie.empty:new ie(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new qt(this.from,this.to+(e.to-e.from),t,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let t=this.slice.size+e.slice.size==0?ie.empty:new ie(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new qt(e.from,this.to,t,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,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new qt(t.from,t.to,ie.fromJSON(e,t.slice),!!t.structure)}}fn.jsonID("replace",qt);class Zt extends fn{constructor(e,t,r,o,i,s,a=!1){super(),this.from=e,this.to=t,this.gapFrom=r,this.gapTo=o,this.slice=i,this.insert=s,this.structure=a}apply(e){if(this.structure&&(bp(e,this.from,this.gapFrom)||bp(e,this.gapTo,this.to)))return Rt.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return Rt.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,t.content);return r?Rt.fromReplace(e,this.from,this.to,r):Rt.fail("Content does not fit in gap")}getMap(){return new Kn([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new Zt(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),o=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||o<t.pos||i>r.pos?null:new Zt(t.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,t){if(typeof t.from!="number"||typeof t.to!="number"||typeof t.gapFrom!="number"||typeof t.gapTo!="number"||typeof t.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Zt(t.from,t.to,t.gapFrom,t.gapTo,ie.fromJSON(e,t.slice),t.insert,!!t.structure)}}fn.jsonID("replaceAround",Zt);function bp(n,e,t){let r=n.resolve(e),o=t-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 iZ(n,e,t,r){let o=[],i=[],s,a;n.doc.nodesBetween(e,t,(l,d,u)=>{if(!l.isInline)return;let h=l.marks;if(!r.isInSet(h)&&u.type.allowsMarkType(r.type)){let f=Math.max(d,e),p=Math.min(d+l.nodeSize,t),m=r.addToSet(h);for(let g=0;g<h.length;g++)h[g].isInSet(m)||(s&&s.to==f&&s.mark.eq(h[g])?s.to=p:o.push(s=new Ar(f,p,h[g])));a&&a.to==f?a.to=p:i.push(a=new hi(f,p,r))}}),o.forEach(l=>n.step(l)),i.forEach(l=>n.step(l))}function sZ(n,e,t,r){let o=[],i=0;n.doc.nodesBetween(e,t,(s,a)=>{if(!s.isInline)return;i++;let l=null;if(r instanceof Gc){let d=s.marks,u;for(;u=r.isInSet(d);)(l||(l=[])).push(u),d=u.removeFromSet(d)}else r?r.isInSet(s.marks)&&(l=[r]):l=s.marks;if(l&&l.length){let d=Math.min(a+s.nodeSize,t);for(let u=0;u<l.length;u++){let h=l[u],f;for(let p=0;p<o.length;p++){let m=o[p];m.step==i-1&&h.eq(o[p].style)&&(f=m)}f?(f.to=d,f.step=i):o.push({style:h,from:Math.max(a,e),to:d,step:i})}}}),o.forEach(s=>n.step(new Ar(s.from,s.to,s.style)))}function wp(n,e,t,r=t.contentMatch,o=!0){let i=n.doc.nodeAt(e),s=[],a=e+1;for(let l=0;l<i.childCount;l++){let d=i.child(l),u=a+d.nodeSize,h=r.matchType(d.type);if(!h)s.push(new qt(a,u,ie.empty));else{r=h;for(let f=0;f<d.marks.length;f++)t.allowsMarkType(d.marks[f].type)||n.step(new Ar(a,u,d.marks[f]));if(o&&d.isText&&t.whitespace!="pre"){let f,p=/\r?\n|\r/g,m;for(;f=p.exec(d.text);)m||(m=new ie(G.from(t.schema.text(" ",t.allowedMarks(d.marks))),0,0)),s.push(new qt(a+f.index,a+f.index+f[0].length,m))}}a=u}if(!r.validEnd){let l=r.fillBefore(G.empty,!0);n.replace(a,a,new ie(l,0,0))}for(let l=s.length-1;l>=0;l--)n.step(s[l])}function aZ(n,e,t){return(e==0||n.canReplace(e,n.childCount))&&(t==n.childCount||n.canReplace(0,t))}function Ca(n){let t=n.parent.content.cutByIndex(n.startIndex,n.endIndex);for(let r=n.depth,o=0,i=0;;--r){let s=n.$from.node(r),a=n.$from.index(r)+o,l=n.$to.indexAfter(r)-i;if(r<n.depth&&s.canReplace(a,l,t))return r;if(r==0||s.type.spec.isolating||!aZ(s,a,l))break;a&&(o=1),l<s.childCount&&(i=1)}return null}function lZ(n,e,t){let{$from:r,$to:o,depth:i}=e,s=r.before(i+1),a=o.after(i+1),l=s,d=a,u=G.empty,h=0;for(let m=i,g=!1;m>t;m--)g||r.index(m)>0?(g=!0,u=G.from(r.node(m).copy(u)),h++):l--;let f=G.empty,p=0;for(let m=i,g=!1;m>t;m--)g||o.after(m+1)<o.end(m)?(g=!0,f=G.from(o.node(m).copy(f)),p++):d++;n.step(new Zt(l,d,s,a,new ie(u.append(f),h,p),u.size-h,!0))}function kp(n,e,t=null,r=n){let o=cZ(n,e),i=o&&dZ(r,e);return i?o.map(Mv).concat({type:e,attrs:t}).concat(i.map(Mv)):null}function Mv(n){return{type:n,attrs:null}}function cZ(n,e){let{parent:t,startIndex:r,endIndex:o}=n,i=t.contentMatchAt(r).findWrapping(e);if(!i)return null;let s=i.length?i[0]:e;return t.canReplaceWith(r,o,s)?i:null}function dZ(n,e){let{parent:t,startIndex:r,endIndex:o}=n,i=t.child(r),s=e.contentMatch.findWrapping(i.type);if(!s)return null;let l=(s.length?s[s.length-1]:e).contentMatch;for(let d=r;l&&d<o;d++)l=l.matchType(t.child(d).type);return!l||!l.validEnd?null:s}function uZ(n,e,t){let r=G.empty;for(let s=t.length-1;s>=0;s--){if(r.size){let a=t[s].type.contentMatch.matchFragment(r);if(!a||!a.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=G.from(t[s].type.create(t[s].attrs,r))}let o=e.start,i=e.end;n.step(new Zt(o,i,o,i,new ie(r,0,0),t.length,!0))}function hZ(n,e,t,r,o){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=n.steps.length;n.doc.nodesBetween(e,t,(s,a)=>{let l=typeof o=="function"?o(s):o;if(s.isTextblock&&!s.hasMarkup(r,l)&&fZ(n.doc,n.mapping.slice(i).map(a),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&&Bv(n,s,a,i),wp(n,n.mapping.slice(i).map(a,1),r,void 0,d===null);let u=n.mapping.slice(i),h=u.map(a,1),f=u.map(a+s.nodeSize,1);return n.step(new Zt(h,f,h+1,f-1,new ie(G.from(r.create(l,null,s.marks)),0,0),1,!0)),d===!0&&Tv(n,s,a,i),!1}})}function Tv(n,e,t,r){e.forEach((o,i)=>{if(o.isText){let s,a=/\r?\n|\r/g;for(;s=a.exec(o.text);){let l=n.mapping.slice(r).map(t+1+i+s.index);n.replaceWith(l,l+1,e.type.schema.linebreakReplacement.create())}}})}function Bv(n,e,t,r){e.forEach((o,i)=>{if(o.type==o.type.schema.linebreakReplacement){let s=n.mapping.slice(r).map(t+1+i);n.replaceWith(s,s+1,e.type.schema.text(`
|
|
@@ -319,7 +319,7 @@ ${p.slice(d+2)}`,h+=1;else break}e.push({indent:d,number:parseInt(a,10),content:
|
|
|
319
319
|
border: 1.5px solid ${jt.COLORS.BORDER};
|
|
320
320
|
border-radius: 50%;
|
|
321
321
|
${o[e]}
|
|
322
|
-
`.replace(/\s+/g," ").trim()}}class bw{static parseImageAttributes(e,t){Object.entries(e).forEach(([r,o])=>{if(!(o==null||r==="wrapperStyle")){if(r==="containerStyle"){const i=o.match(/width:\s*([0-9.]+)px/);i&&t.setAttribute("width",i[1]);return}t.setAttribute(r,o)}})}static extractWidthFromStyle(e){const t=e.match(/width:\s*([0-9.]+)px/);return t?t[1]:null}}class Fee{elements;inline;dispatchNodeView;constructor(e,t,r){this.elements=e,this.inline=t,this.dispatchNodeView=r}createControllerIcon(e){const t=document.createElement("div");t.innerHTML=e,t.setAttribute("style",`width: ${jt.ICON_SIZE}; height: ${jt.ICON_SIZE}; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: opacity 0.2s;`);const r=t.querySelector("svg");return r&&(r.setAttribute("width",jt.ICON_SIZE),r.setAttribute("height",jt.ICON_SIZE),r.setAttribute("style","display: block;")),t.addEventListener("mouseover",()=>{t.style.opacity="0.6"}),t.addEventListener("mouseout",()=>{t.style.opacity="1"}),t}handleLeftClick(){if(!this.inline)this.elements.container.setAttribute("style",`${this.elements.container.style.cssText} margin: 0 auto 0 0;`);else{const e="display: inline-block; float: left; padding-right: 8px;";this.elements.wrapper.setAttribute("style",e),this.elements.container.setAttribute("style",e)}this.dispatchNodeView()}handleCenterClick(){this.elements.container.setAttribute("style",`${this.elements.container.style.cssText} margin: 0 auto;`),this.dispatchNodeView()}handleRightClick(){if(!this.inline)this.elements.container.setAttribute("style",`${this.elements.container.style.cssText} margin: 0 0 0 auto;`);else{const e="display: inline-block; float: right; padding-left: 8px;";this.elements.wrapper.setAttribute("style",e),this.elements.container.setAttribute("style",e)}this.dispatchNodeView()}createPositionControls(){const e=document.createElement("div");e.setAttribute("style",y1.getPositionControllerStyle(this.inline));const t=this.createControllerIcon(jt.ICONS.LEFT);if(t.addEventListener("click",()=>this.handleLeftClick()),e.appendChild(t),!this.inline){const o=this.createControllerIcon(jt.ICONS.CENTER);o.addEventListener("click",()=>this.handleCenterClick()),e.appendChild(o)}const r=this.createControllerIcon(jt.ICONS.RIGHT);return r.addEventListener("click",()=>this.handleRightClick()),e.appendChild(r),this.elements.container.appendChild(e),this}}class zee{elements;dispatchNodeView;state={isResizing:!1,startX:0,startWidth:0};constructor(e,t){this.elements=e,this.dispatchNodeView=t}handleMouseMove=(e,t)=>{if(!this.state.isResizing)return;const r=t%2===0?-(e.clientX-this.state.startX):e.clientX-this.state.startX,o=this.state.startWidth+r;this.elements.container.style.width=o+"px",this.elements.img.style.width=o+"px"};handleMouseUp=()=>{this.state.isResizing&&(this.state.isResizing=!1),this.dispatchNodeView()};handleTouchMove=(e,t)=>{if(!this.state.isResizing)return;const r=t%2===0?-(e.touches[0].clientX-this.state.startX):e.touches[0].clientX-this.state.startX,o=this.state.startWidth+r;this.elements.container.style.width=o+"px",this.elements.img.style.width=o+"px"};handleTouchEnd=()=>{this.state.isResizing&&(this.state.isResizing=!1),this.dispatchNodeView()};createResizeHandle(e){const t=document.createElement("div");return t.setAttribute("style",y1.getDotStyle(e)),t.addEventListener("mousedown",r=>{r.preventDefault(),this.state.isResizing=!0,this.state.startX=r.clientX,this.state.startWidth=this.elements.container.offsetWidth;const o=s=>this.handleMouseMove(s,e),i=()=>{this.handleMouseUp(),document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",i)};document.addEventListener("mousemove",o),document.addEventListener("mouseup",i)}),t.addEventListener("touchstart",r=>{r.cancelable&&r.preventDefault(),this.state.isResizing=!0,this.state.startX=r.touches[0].clientX,this.state.startWidth=this.elements.container.offsetWidth;const o=s=>this.handleTouchMove(s,e),i=()=>{this.handleTouchEnd(),document.removeEventListener("touchmove",o),document.removeEventListener("touchend",i)};document.addEventListener("touchmove",o),document.addEventListener("touchend",i)},{passive:!1}),t}}class $ee{context;elements;inline;onContainerClick;onDocumentClick;constructor(e,t){this.context=e,this.inline=t,this.elements=this.createElements()}createElements(){return{wrapper:document.createElement("div"),container:document.createElement("div"),img:document.createElement("img")}}clearContainerBorder=()=>{Ho.clearContainerBorder(this.elements.container)};dispatchNodeView=()=>{const{view:e,getPos:t}=this.context;if(typeof t=="function"){const r=t();if(r!==void 0){this.clearContainerBorder();const o={...this.context.node.attrs,width:bw.extractWidthFromStyle(this.elements.container.style.cssText)??this.context.node.attrs.width,containerStyle:`${this.elements.container.style.cssText}`,wrapperStyle:`${this.elements.wrapper.style.cssText}`};e.dispatch(e.state.tr.setNodeMarkup(r,null,o))}}};removeResizeElements=()=>{Ho.removeResizeElements(this.elements.container)};setupImageAttributes(){bw.parseImageAttributes(this.context.node.attrs,this.elements.img)}setupDOMStructure(){const{wrapperStyle:e,containerStyle:t}=this.context.node.attrs;this.elements.wrapper.setAttribute("style",e),this.elements.wrapper.appendChild(this.elements.container),this.elements.container.setAttribute("style",t),this.elements.container.appendChild(this.elements.img)}createPositionController(){new Fee(this.elements,this.inline,this.dispatchNodeView).createPositionControls()}createResizeHandler(){const e=new zee(this.elements,this.dispatchNodeView);Array.from({length:4},(t,r)=>{const o=e.createResizeHandle(r);this.elements.container.appendChild(o)})}setupContainerClick(){this.onContainerClick=()=>{if(!this.context.editor.isEditable)return;Ho.isMobile()&&document.querySelector(".ProseMirror-focused")?.blur(),this.removeResizeElements(),this.createPositionController(),this.elements.container.setAttribute("style",`position: relative; border: 1px dashed ${jt.COLORS.BORDER}; ${this.context.node.attrs.containerStyle}`),this.createResizeHandler()},this.elements.container.addEventListener("click",this.onContainerClick)}setupContentClick(){this.onDocumentClick=e=>{const t=e.target;this.elements.container.contains(t)||t.style.cssText===`width: ${jt.ICON_SIZE}; height: ${jt.ICON_SIZE}; cursor: pointer;`||(this.clearContainerBorder(),this.removeResizeElements())},document.addEventListener("click",this.onDocumentClick)}initialize(){this.setupDOMStructure(),this.setupImageAttributes();const{editable:e}=this.context.editor.options;return e?(this.setupContainerClick(),this.setupContentClick(),{dom:this.elements.wrapper,destroy:()=>{this.onDocumentClick&&(document.removeEventListener("click",this.onDocumentClick),this.onDocumentClick=void 0),this.onContainerClick&&(this.elements.container.removeEventListener("click",this.onContainerClick),this.onContainerClick=void 0)}}):{dom:this.elements.container}}}const jee=Hee.extend({name:"imageResize",addOptions(){
|
|
322
|
+
`.replace(/\s+/g," ").trim()}}class bw{static parseImageAttributes(e,t){Object.entries(e).forEach(([r,o])=>{if(!(o==null||r==="wrapperStyle")){if(r==="containerStyle"){const i=o.match(/width:\s*([0-9.]+)px/);i&&t.setAttribute("width",i[1]);return}t.setAttribute(r,o)}})}static extractWidthFromStyle(e){const t=e.match(/width:\s*([0-9.]+)px/);return t?t[1]:null}}class Fee{elements;inline;dispatchNodeView;constructor(e,t,r){this.elements=e,this.inline=t,this.dispatchNodeView=r}createControllerIcon(e){const t=document.createElement("div");t.innerHTML=e,t.setAttribute("style",`width: ${jt.ICON_SIZE}; height: ${jt.ICON_SIZE}; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: opacity 0.2s;`);const r=t.querySelector("svg");return r&&(r.setAttribute("width",jt.ICON_SIZE),r.setAttribute("height",jt.ICON_SIZE),r.setAttribute("style","display: block;")),t.addEventListener("mouseover",()=>{t.style.opacity="0.6"}),t.addEventListener("mouseout",()=>{t.style.opacity="1"}),t}handleLeftClick(){if(!this.inline)this.elements.container.setAttribute("style",`${this.elements.container.style.cssText} margin: 0 auto 0 0;`);else{const e="display: inline-block; float: left; padding-right: 8px;";this.elements.wrapper.setAttribute("style",e),this.elements.container.setAttribute("style",e)}this.dispatchNodeView()}handleCenterClick(){this.elements.container.setAttribute("style",`${this.elements.container.style.cssText} margin: 0 auto;`),this.dispatchNodeView()}handleRightClick(){if(!this.inline)this.elements.container.setAttribute("style",`${this.elements.container.style.cssText} margin: 0 0 0 auto;`);else{const e="display: inline-block; float: right; padding-left: 8px;";this.elements.wrapper.setAttribute("style",e),this.elements.container.setAttribute("style",e)}this.dispatchNodeView()}createPositionControls(){const e=document.createElement("div");e.setAttribute("style",y1.getPositionControllerStyle(this.inline));const t=this.createControllerIcon(jt.ICONS.LEFT);if(t.addEventListener("click",()=>this.handleLeftClick()),e.appendChild(t),!this.inline){const o=this.createControllerIcon(jt.ICONS.CENTER);o.addEventListener("click",()=>this.handleCenterClick()),e.appendChild(o)}const r=this.createControllerIcon(jt.ICONS.RIGHT);return r.addEventListener("click",()=>this.handleRightClick()),e.appendChild(r),this.elements.container.appendChild(e),this}}class zee{elements;dispatchNodeView;state={isResizing:!1,startX:0,startWidth:0};constructor(e,t){this.elements=e,this.dispatchNodeView=t}handleMouseMove=(e,t)=>{if(!this.state.isResizing)return;const r=t%2===0?-(e.clientX-this.state.startX):e.clientX-this.state.startX,o=this.state.startWidth+r;this.elements.container.style.width=o+"px",this.elements.img.style.width=o+"px"};handleMouseUp=()=>{this.state.isResizing&&(this.state.isResizing=!1),this.dispatchNodeView()};handleTouchMove=(e,t)=>{if(!this.state.isResizing)return;const r=t%2===0?-(e.touches[0].clientX-this.state.startX):e.touches[0].clientX-this.state.startX,o=this.state.startWidth+r;this.elements.container.style.width=o+"px",this.elements.img.style.width=o+"px"};handleTouchEnd=()=>{this.state.isResizing&&(this.state.isResizing=!1),this.dispatchNodeView()};createResizeHandle(e){const t=document.createElement("div");return t.setAttribute("style",y1.getDotStyle(e)),t.addEventListener("mousedown",r=>{r.preventDefault(),this.state.isResizing=!0,this.state.startX=r.clientX,this.state.startWidth=this.elements.container.offsetWidth;const o=s=>this.handleMouseMove(s,e),i=()=>{this.handleMouseUp(),document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",i)};document.addEventListener("mousemove",o),document.addEventListener("mouseup",i)}),t.addEventListener("touchstart",r=>{r.cancelable&&r.preventDefault(),this.state.isResizing=!0,this.state.startX=r.touches[0].clientX,this.state.startWidth=this.elements.container.offsetWidth;const o=s=>this.handleTouchMove(s,e),i=()=>{this.handleTouchEnd(),document.removeEventListener("touchmove",o),document.removeEventListener("touchend",i)};document.addEventListener("touchmove",o),document.addEventListener("touchend",i)},{passive:!1}),t}}class $ee{context;elements;inline;onContainerClick;onDocumentClick;constructor(e,t){this.context=e,this.inline=t,this.elements=this.createElements()}createElements(){return{wrapper:document.createElement("div"),container:document.createElement("div"),img:document.createElement("img")}}clearContainerBorder=()=>{Ho.clearContainerBorder(this.elements.container)};dispatchNodeView=()=>{const{view:e,getPos:t}=this.context;if(typeof t=="function"){const r=t();if(r!==void 0){this.clearContainerBorder();const o={...this.context.node.attrs,width:bw.extractWidthFromStyle(this.elements.container.style.cssText)??this.context.node.attrs.width,containerStyle:`${this.elements.container.style.cssText}`,wrapperStyle:`${this.elements.wrapper.style.cssText}`};e.dispatch(e.state.tr.setNodeMarkup(r,null,o))}}};removeResizeElements=()=>{Ho.removeResizeElements(this.elements.container)};setupImageAttributes(){bw.parseImageAttributes(this.context.node.attrs,this.elements.img)}setupDOMStructure(){const{wrapperStyle:e,containerStyle:t}=this.context.node.attrs;this.elements.wrapper.setAttribute("style",e),this.elements.wrapper.appendChild(this.elements.container),this.elements.container.setAttribute("style",t),this.elements.container.appendChild(this.elements.img)}createPositionController(){new Fee(this.elements,this.inline,this.dispatchNodeView).createPositionControls()}createResizeHandler(){const e=new zee(this.elements,this.dispatchNodeView);Array.from({length:4},(t,r)=>{const o=e.createResizeHandle(r);this.elements.container.appendChild(o)})}setupContainerClick(){this.onContainerClick=()=>{if(!this.context.editor.isEditable)return;Ho.isMobile()&&document.querySelector(".ProseMirror-focused")?.blur(),this.removeResizeElements(),this.createPositionController(),this.elements.container.setAttribute("style",`position: relative; border: 1px dashed ${jt.COLORS.BORDER}; ${this.context.node.attrs.containerStyle}`),this.createResizeHandler()},this.elements.container.addEventListener("click",this.onContainerClick)}setupContentClick(){this.onDocumentClick=e=>{const t=e.target;this.elements.container.contains(t)||t.style.cssText===`width: ${jt.ICON_SIZE}; height: ${jt.ICON_SIZE}; cursor: pointer;`||(this.clearContainerBorder(),this.removeResizeElements())},document.addEventListener("click",this.onDocumentClick)}initialize(){this.setupDOMStructure(),this.setupImageAttributes();const{editable:e}=this.context.editor.options;return e?(this.setupContainerClick(),this.setupContentClick(),{dom:this.elements.wrapper,destroy:()=>{this.onDocumentClick&&(document.removeEventListener("click",this.onDocumentClick),this.onDocumentClick=void 0),this.onContainerClick&&(this.elements.container.removeEventListener("click",this.onContainerClick),this.onContainerClick=void 0)}}):{dom:this.elements.container}}}const jee=Hee.extend({name:"imageResize",addOptions(){const n=this.parent?.()??{};return{...n,allowBase64:n.allowBase64??!1,HTMLAttributes:n.HTMLAttributes??{},inline:!1}},addAttributes(){const n=this.options.inline;return{...this.parent?.(),containerStyle:{default:null,parseHTML:e=>{const t=e.getAttribute("containerstyle");if(t)return t;const r=e.getAttribute("width");return r?y1.getContainerStyle(n,`${r}px`):`${e.style.cssText}`}},wrapperStyle:{default:y1.getWrapperStyle(n)}}},addNodeView(){return({node:n,editor:e,getPos:t})=>{const r=this.options.inline,o={node:n,editor:e,view:e.view,getPos:t};return new $ee(o,r).initialize()}},addProseMirrorPlugins(){return[new Ke({view:n=>{let e=n.editable;return{update:t=>{const r=t.editable;if(e!==r&&(e=r,!r)){const o=t.state.selection;if(o instanceof fe){const s=Math.max(0,o.from),a=t.state.tr.setSelection(ge.create(t.state.doc,s));t.dispatch(a)}const i=t.dom;i&&i.querySelectorAll("div[style*='border: 1px dashed']").forEach(a=>{Ho.clearContainerBorder(a),Ho.removeResizeElements(a)})}}}}})]}});function ww(...n){return n.filter(Boolean).join(" ")}const P2=(n,e)=>e?.schema?e.schema.spec.nodes.get(n)!==void 0:!1;function C1(n){return typeof n=="number"&&n>=0}function l6(n,e=[]){if(!n||!n.state.selection)return!1;const{state:t}=n,{selection:r}=t;if(r.empty)return!1;if(r instanceof fe){const o=r.node;return o?e.includes(o.type.name):!1}return!1}const Wee=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;function Uee(n,e){const t=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return!n||n.replace(Wee,"").match(new RegExp(`^(?:(?:${t.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}function kw(n,e,t){try{const r=new URL(n,e);if(Uee(r.href,t))return r.href}catch{}return"#"}const qee=Ot.create({name:"attachment",group:"block",atom:!0,selectable:!0,draggable:!0,addAttributes(){return{files:{default:[]},id:{default:null}}},parseHTML(){return[{tag:"attachment-block"}]},renderHTML({HTMLAttributes:n}){return["attachment-block",$e(n)]},addNodeView(){return({node:n,editor:e})=>{const t=document.createElement("div");t.classList.add("attachment-block");const r=n.attrs.files;t.innerHTML=`
|
|
323
323
|
<style>
|
|
324
324
|
.attachment-block {
|
|
325
325
|
display: flex;
|
|
@@ -427,7 +427,7 @@ ${p.slice(d+2)}`,h+=1;else break}e.push({indent:d,number:parseInt(a,10),content:
|
|
|
427
427
|
</svg>
|
|
428
428
|
</button>`:""}
|
|
429
429
|
${_}${N}
|
|
430
|
-
</div>`}function T(){const _=g.attrs,N=Array.isArray(_.files)&&_.files.length>0,w=Array.isArray(_.fileIds)&&_.fileIds.length>0;!m&&!p&&u.length===0&&!N&&!w?(o.innerHTML=b(),S()):(o.innerHTML=B(),O()),k(),E()}function E(){const _=o.querySelector('[data-action="remove-node"]');_&&_.addEventListener("click",N=>{N.preventDefault(),N.stopPropagation(),C()})}function k(){h=o.querySelector('input[type="file"]'),h?(h.accept=i,h.multiple=s===0||s>1):(h=document.createElement("input"),h.type="file",h.name="file",h.accept=i,h.multiple=s===0||s>1,h.style.display="none",o.appendChild(h)),h.onchange=_=>{const w=_.target.files;if(!w||w.length===0){v.onError?.(new Error("No file selected"));return}L(Array.from(w))}}function S(){const _=o.querySelector(".tiptap-image-upload-drag-area");_&&(_.addEventListener("dragenter",N=>{N.preventDefault(),N.stopPropagation(),_.classList.add("drag-active")}),_.addEventListener("dragleave",N=>{N.preventDefault(),N.stopPropagation();const w=N.relatedTarget;(!w||w instanceof Element&&!_.contains(w))&&_.classList.remove("drag-active","drag-over")}),_.addEventListener("dragover",N=>{N.preventDefault(),N.stopPropagation(),_.classList.add("drag-over")}),_.addEventListener("drop",N=>{N.preventDefault(),N.stopPropagation(),_.classList.remove("drag-active","drag-over");const R=Array.from(N.dataTransfer?.files||[]);R.length>0&&L(R)}))}function O(){o.querySelector("[data-clear-all]")?.addEventListener("click",_=>{_.stopPropagation(),x()}),o.querySelectorAll("[data-remove-file]").forEach(_=>{_.addEventListener("click",N=>{N.stopPropagation();const w=_.dataset.removeFile;w&&A(w)})})}function A(_){const N=u.find(w=>w.id===_);N?.abortController&&N.abortController.abort(),N?.url&&URL.revokeObjectURL(N.url),u.splice(u.findIndex(w=>w.id===_),1),T()}function x(){u.forEach(_=>{_.abortController&&_.abortController.abort(),_.url&&URL.revokeObjectURL(_.url)}),u.length=0,p=!1,m=!1,T()}function M(_,N,w){if(!_)return;const R=_.attrs.files||[],H=R.filter(q=>q.type?.startsWith("image/")),F=R.filter(q=>!q.type?.startsWith("image/"));if(_.attrs.forceAttachment||r.options.forceAttachment||!1||H.length!==1||F.length>0){const q=R.map((P,I)=>({label:P.file.name,download_url:URL.createObjectURL(P.file),id:w[I],status:"OK"})),j=e.state.tr.replaceWith(N,N+_.nodeSize,e.schema.nodes.attachment.create({files:q,id:w[0]}));j.setMeta("addToHistory",!1),e.view.dispatch(j)}else{const q=H[0],j=e.state.tr.replaceWith(N,N+_.nodeSize,e.schema.nodes.image.create({src:URL.createObjectURL(q.file),title:q.file.name,alt:q.file.name,id:w[0],width:"100%"}));j.setMeta("addToHistory",!1),e.view.dispatch(j)}}async function L(_){if(_.length===0)return;p=!0;const N=crypto.randomUUID?.()||Math.random().toString(36).slice(2),w=_.map(H=>({file:H,type:H.type,name:H.name})),R=t();C1(R)&&e.view.dispatch(e.state.tr.setNodeMarkup(R,void 0,{...n.attrs,nodeId:N,files:w,accept:n.attrs.accept,limit:n.attrs.limit,maxSize:n.attrs.maxSize,forceAttachment:n.attrs.forceAttachment})),u.push(..._.map(H=>({id:crypto.randomUUID(),file:H,progress:0,status:"uploading"}))),T(),r.options.onFileUpload&&r.options.onFileUpload({files:_,meta:{nodeId:N}}),setTimeout(()=>{u.forEach(H=>{H.status==="uploading"&&(H.progress=25)}),T()},300)}o.addEventListener("click",_=>{_.target.closest('[data-action="remove-node"]')||h&&u.length===0&&(h.value="",h.click())});const D=()=>{if(f)return;f=!0;const _=t();if(!C1(_))return;const N=b1.get(e.view),w=g.attrs.nodeId||n.attrs.nodeId;if(!N||!w)return;const R=N.get(w);!R||R.length===0||(N.delete(w),N.size===0&&b1.delete(e.view),L(R))};return T(),setTimeout(D,0),{dom:o,update:_=>{if(g=_,_.type.name!==n.type.name)return!1;if(_.attrs.fileIds&&Array.isArray(_.attrs.fileIds)&&_.attrs.fileIds.length>0){m=!0,u.length>0&&(u.forEach(w=>{w.progress=100,w.status="success"}),T());const N=t();return C1(N)&&setTimeout(()=>{M(_,N,_.attrs.fileIds)},50),!1}return!0}}}},addCommands(){return{setFileUploadNode:n=>({commands:e,state:t})=>{const{selection:r}=t,{$from:o}=r;if(r instanceof fe&&r.node.isAtom){const d=r.from+r.node.nodeSize;return e.insertContentAt(d,{type:this.name,attrs:n})}const i=o.nodeAfter,s=o.nodeBefore,a=o.parent;if(s&&s.isAtom){const d=o.pos;return e.insertContentAt(d,{type:this.name,attrs:n})}if(i&&i.isAtom){const d=o.pos+i.nodeSize;return e.insertContentAt(d,{type:this.name,attrs:n})}const l=o.index(o.depth);if(l>0){const d=a.child(l-1);if(d&&d.isAtom){const u=o.start(o.depth)+a.child(l-1).nodeSize;return e.insertContentAt(u,{type:this.name,attrs:n})}}return e.insertContent({type:this.name,attrs:n})}}},addKeyboardShortcuts(){return{Enter:({editor:n})=>{const{selection:e}=n.state,{nodeAfter:t}=e.$from;if(t&&t.type.name==="fileUpload"&&n.isActive("fileUpload")){const r=n.view.nodeDOM(e.$from.pos);if(r&&r instanceof HTMLElement){const o=r.firstChild;if(o&&o instanceof HTMLElement)return o.click(),!0}}return!1}}}}),nte=["aria-label","disabled","type"],Ye=c.defineComponent({__name:"Button",props:{class:{},ariaLabel:{},type:{},disabled:{type:Boolean}},setup(n){const e=n;return(t,r)=>(c.openBlock(),c.createElementBlock("button",c.mergeProps({"aria-label":e.ariaLabel,class:c.unref(ww)("tiptap-button",e.class),disabled:e.disabled,type:e.type||"button"},t.$attrs),[c.renderSlot(t.$slots,"default")],16,nte))}}),rte={};function ote(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M9.70711 3.70711C10.0976 3.31658 10.0976 2.68342 9.70711 2.29289C9.31658 1.90237 8.68342 1.90237 8.29289 2.29289L3.29289 7.29289C2.90237 7.68342 2.90237 8.31658 3.29289 8.70711L8.29289 13.7071C8.68342 14.0976 9.31658 14.0976 9.70711 13.7071C10.0976 13.3166 10.0976 12.6834 9.70711 12.2929L6.41421 9H14.5C15.0909 9 15.6761 9.1164 16.2221 9.34254C16.768 9.56869 17.2641 9.90016 17.682 10.318C18.0998 10.7359 18.4313 11.232 18.6575 11.7779C18.8836 12.3239 19 12.9091 19 13.5C19 14.0909 18.8836 14.6761 18.6575 15.2221C18.4313 15.768 18.0998 16.2641 17.682 16.682C17.2641 17.0998 16.768 17.4313 16.2221 17.6575C15.6761 17.8836 15.0909 18 14.5 18H11C10.4477 18 10 18.4477 10 19C10 19.5523 10.4477 20 11 20H14.5C15.3536 20 16.1988 19.8319 16.9874 19.5052C17.7761 19.1786 18.4926 18.6998 19.0962 18.0962C19.6998 17.4926 20.1786 16.7761 20.5052 15.9874C20.8319 15.1988 21 14.3536 21 13.5C21 12.6464 20.8319 11.8012 20.5052 11.0126C20.1786 10.2239 19.6998 9.50739 19.0962 8.90381C18.4926 8.30022 17.7761 7.82144 16.9874 7.49478C16.1988 7.16813 15.3536 7 14.5 7H6.41421L9.70711 3.70711Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const ite=he(rte,[["render",ote]]),ste={};function ate(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M15.7071 2.29289C15.3166 1.90237 14.6834 1.90237 14.2929 2.29289C13.9024 2.68342 13.9024 3.31658 14.2929 3.70711L17.5858 7H9.5C7.77609 7 6.12279 7.68482 4.90381 8.90381C3.68482 10.1228 3 11.7761 3 13.5C3 14.3536 3.16813 15.1988 3.49478 15.9874C3.82144 16.7761 4.30023 17.4926 4.90381 18.0962C6.12279 19.3152 7.77609 20 9.5 20H13C13.5523 20 14 19.5523 14 19C14 18.4477 13.5523 18 13 18H9.5C8.30653 18 7.16193 17.5259 6.31802 16.682C5.90016 16.2641 5.56869 15.768 5.34254 15.2221C5.1164 14.6761 5 14.0909 5 13.5C5 12.3065 5.47411 11.1619 6.31802 10.318C7.16193 9.47411 8.30653 9 9.5 9H17.5858L14.2929 12.2929C13.9024 12.6834 13.9024 13.3166 14.2929 13.7071C14.6834 14.0976 15.3166 14.0976 15.7071 13.7071L20.7071 8.70711C21.0976 8.31658 21.0976 7.68342 20.7071 7.29289L15.7071 2.29289Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const lte=he(ste,[["render",ate]]),cte={key:0,class:"tiptap-button-text"},xw=c.defineComponent({__name:"UndoRedoButton",props:{action:{},text:{},showShortcut:{type:Boolean},hideWhenUnavailable:{type:Boolean}},setup(n){const e=c.inject("editor"),t=n,r=c.computed(()=>e?.value?t.action==="undo"?e.value.can().undo():e.value.can().redo():!1);function o(){if(!e?.value)return;const i=e.value.chain().focus();t.action==="undo"?i.undo().run():i.redo().run()}return(i,s)=>n.hideWhenUnavailable&&!r.value?c.createCommentVNode("",!0):(c.openBlock(),c.createBlock(Ye,{key:0,"data-style":"ghost",disabled:!r.value,type:"button",onClick:o},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(n.action==="undo"?ite:lte),{class:"tiptap-button-icon"})),n.text?(c.openBlock(),c.createElementBlock("span",cte,c.toDisplayString(n.text),1)):c.createCommentVNode("",!0)]),_:1},8,["disabled"]))}}),dte=["data-orientation"],Da=he(c.defineComponent({__name:"Separator",props:{orientation:{default:"vertical"},decorative:{type:Boolean,default:!1},class:{default:""}},setup(n){const e=n,t=c.ref(null),r=c.computed(()=>e.decorative?{role:"none"}:{role:"separator","aria-orientation":e.orientation==="vertical"?e.orientation:void 0});return(o,i)=>(c.openBlock(),c.createElementBlock("div",c.mergeProps({ref_key:"separatorRef",ref:t,class:c.unref(ww)("tiptap-separator",e.class),"data-orientation":e.orientation},r.value),null,16,dte))}}),[["__scopeId","data-v-fed9a22e"]]),ute={},hte={ref:"toolbar","aria-label":"toolbar",class:"tiptap-toolbar","data-variant":"fixed",role:"toolbar"};function fte(n,e){return c.openBlock(),c.createElementBlock("div",hte,[c.renderSlot(n.$slots,"default")],512)}const pte=he(ute,[["render",fte]]),R2=he(c.defineComponent({__name:"Dropdown",props:{orientation:{default:"column"},open:{type:Boolean,default:!1}},setup(n){const e=n;c.watch(()=>e.open,h=>t.value=h);const t=c.ref(!1),r=c.ref(null),o=c.ref(null),i=c.ref({top:0,left:0,width:0,height:0});function s(){t.value=!t.value,t.value&&l()}const a=()=>t.value=!1;function l(){if(!r.value)return;const h=r.value.getBoundingClientRect();i.value={top:h.bottom+window.scrollY+10,left:h.left+window.scrollX,width:h.width,height:h.height}}const d=c.computed(()=>({position:"absolute",top:`${i.value.top}px`,left:`${i.value.left+i.value.width/2}px`,transform:"translateX(-50%)",zIndex:9999,flexDirection:e.orientation}));function u(h){if(t.value&&o.value&&!o.value.contains(h.target)&&!r.value?.contains(h.target)){if(e.open)return;t.value=!1}}return c.onMounted(()=>{window.addEventListener("click",u),window.addEventListener("resize",l),window.addEventListener("scroll",l,!0)}),c.onBeforeUnmount(()=>{window.removeEventListener("click",u),window.removeEventListener("resize",l),window.removeEventListener("scroll",l,!0)}),(h,f)=>(c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createElementVNode("div",{ref_key:"triggerRef",ref:r,class:"dropdown-trigger",onClick:s},[c.renderSlot(h.$slots,"trigger",{isOpen:t.value},void 0,!0)],512),(c.openBlock(),c.createBlock(c.Teleport,{to:"body"},[t.value?(c.openBlock(),c.createElementBlock("div",{key:0,ref_key:"menuRef",ref:o,class:"dropdown-content",style:c.normalizeStyle(d.value)},[c.renderSlot(h.$slots,"items",{close:a},void 0,!0)],4)):c.createCommentVNode("",!0)]))],64))}}),[["__scopeId","data-v-02e587bf"]]),mte={};function gte(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{d:"M6 3C6.55228 3 7 3.44772 7 4V11H17V4C17 3.44772 17.4477 3 18 3C18.5523 3 19 3.44772 19 4V20C19 20.5523 18.5523 21 18 21C17.4477 21 17 20.5523 17 20V13H7V20C7 20.5523 6.55228 21 6 21C5.44772 21 5 20.5523 5 20V4C5 3.44772 5.44772 3 6 3Z",fill:"currentColor"},null,-1)])],16)}const vte=he(mte,[["render",gte]]),yte={};function Cte(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M5.29289 8.29289C5.68342 7.90237 6.31658 7.90237 6.70711 8.29289L12 13.5858L17.2929 8.29289C17.6834 7.90237 18.3166 7.90237 18.7071 8.29289C19.0976 8.68342 19.0976 9.31658 18.7071 9.70711L12.7071 15.7071C12.3166 16.0976 11.6834 16.0976 11.2929 15.7071L5.29289 9.70711C4.90237 9.31658 4.90237 8.68342 5.29289 8.29289Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const c6=he(yte,[["render",Cte]]),bte={};function wte(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{d:"M5 6C5 5.44772 4.55228 5 4 5C3.44772 5 3 5.44772 3 6V18C3 18.5523 3.44772 19 4 19C4.55228 19 5 18.5523 5 18V13H11V18C11 18.5523 11.4477 19 12 19C12.5523 19 13 18.5523 13 18V6C13 5.44772 12.5523 5 12 5C11.4477 5 11 5.44772 11 6V11H5V6Z",fill:"currentColor"},null,-1),c.createElementVNode("path",{d:"M21.0001 10C21.0001 9.63121 20.7971 9.29235 20.472 9.11833C20.1468 8.94431 19.7523 8.96338 19.4454 9.16795L16.4454 11.168C15.9859 11.4743 15.8617 12.0952 16.1681 12.5547C16.4744 13.0142 17.0953 13.1384 17.5548 12.8321L19.0001 11.8685V18C19.0001 18.5523 19.4478 19 20.0001 19C20.5524 19 21.0001 18.5523 21.0001 18V10Z",fill:"currentColor"},null,-1)])],16)}const Sw=he(bte,[["render",wte]]),kte={};function xte(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{d:"M5 6C5 5.44772 4.55228 5 4 5C3.44772 5 3 5.44772 3 6V18C3 18.5523 3.44772 19 4 19C4.55228 19 5 18.5523 5 18V13H11V18C11 18.5523 11.4477 19 12 19C12.5523 19 13 18.5523 13 18V6C13 5.44772 12.5523 5 12 5C11.4477 5 11 5.44772 11 6V11H5V6Z",fill:"currentColor"},null,-1),c.createElementVNode("path",{d:"M22.0001 12C22.0001 10.7611 21.1663 9.79297 20.0663 9.42632C18.9547 9.05578 17.6171 9.28724 16.4001 10.2C15.9582 10.5314 15.8687 11.1582 16.2001 11.6C16.5314 12.0418 17.1582 12.1314 17.6001 11.8C18.383 11.2128 19.0455 11.1942 19.4338 11.3237C19.8339 11.457 20.0001 11.7389 20.0001 12C20.0001 12.4839 19.8554 12.7379 19.6537 12.9481C19.4275 13.1837 19.1378 13.363 18.7055 13.6307C18.6313 13.6767 18.553 13.7252 18.4701 13.777C17.9572 14.0975 17.3128 14.5261 16.8163 15.2087C16.3007 15.9177 16.0001 16.8183 16.0001 18C16.0001 18.5523 16.4478 19 17.0001 19H21.0001C21.5523 19 22.0001 18.5523 22.0001 18C22.0001 17.4477 21.5523 17 21.0001 17H18.131C18.21 16.742 18.3176 16.5448 18.4338 16.385C18.6873 16.0364 19.0429 15.7775 19.5301 15.473C19.5898 15.4357 19.6536 15.3966 19.7205 15.3556C20.139 15.0992 20.6783 14.7687 21.0964 14.3332C21.6447 13.7621 22.0001 13.0161 22.0001 12Z",fill:"currentColor"},null,-1)])],16)}const Ew=he(kte,[["render",xte]]),Ste={};function Ete(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{d:"M4 5C4.55228 5 5 5.44772 5 6V11H11V6C11 5.44772 11.4477 5 12 5C12.5523 5 13 5.44772 13 6V18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18V13H5V18C5 18.5523 4.55228 19 4 19C3.44772 19 3 18.5523 3 18V6C3 5.44772 3.44772 5 4 5Z",fill:"currentColor"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M19.4608 11.2169C19.1135 11.0531 18.5876 11.0204 18.0069 11.3619C17.5309 11.642 16.918 11.4831 16.638 11.007C16.358 10.531 16.5169 9.91809 16.9929 9.63807C18.1123 8.97962 19.3364 8.94691 20.314 9.40808C21.2839 9.86558 21.9999 10.818 21.9999 12C21.9999 12.7957 21.6838 13.5587 21.1212 14.1213C20.5586 14.6839 19.7956 15 18.9999 15C18.4476 15 17.9999 14.5523 17.9999 14C17.9999 13.4477 18.4476 13 18.9999 13C19.2651 13 19.5195 12.8947 19.707 12.7071C19.8946 12.5196 19.9999 12.2652 19.9999 12C19.9999 11.6821 19.8159 11.3844 19.4608 11.2169Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M18.0001 14C18.0001 13.4477 18.4478 13 19.0001 13C19.7957 13 20.5588 13.3161 21.1214 13.8787C21.684 14.4413 22.0001 15.2043 22.0001 16C22.0001 17.2853 21.2767 18.3971 20.1604 18.8994C19.0257 19.41 17.642 19.2315 16.4001 18.3C15.9582 17.9686 15.8687 17.3418 16.2001 16.9C16.5314 16.4582 17.1582 16.3686 17.6001 16.7C18.3581 17.2685 18.9744 17.24 19.3397 17.0756C19.7234 16.9029 20.0001 16.5147 20.0001 16C20.0001 15.7348 19.8947 15.4804 19.7072 15.2929C19.5196 15.1054 19.2653 15 19.0001 15C18.4478 15 18.0001 14.5523 18.0001 14Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const Mw=he(Ste,[["render",Ete]]),Mte={};function Tte(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{d:"M4 5C4.55228 5 5 5.44772 5 6V11H11V6C11 5.44772 11.4477 5 12 5C12.5523 5 13 5.44772 13 6V18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18V13H5V18C5 18.5523 4.55228 19 4 19C3.44772 19 3 18.5523 3 18V6C3 5.44772 3.44772 5 4 5Z",fill:"currentColor"},null,-1),c.createElementVNode("path",{d:"M17 9C17.5523 9 18 9.44772 18 10V13H20V10C20 9.44772 20.4477 9 21 9C21.5523 9 22 9.44772 22 10V18C22 18.5523 21.5523 19 21 19C20.4477 19 20 18.5523 20 18V15H17C16.4477 15 16 14.5523 16 14V10C16 9.44772 16.4477 9 17 9Z",fill:"currentColor"},null,-1)])],16)}const Tw=he(Mte,[["render",Tte]]),Bte=c.defineComponent({__name:"HeadingDropdown",setup(n){const e=c.inject("editor"),t={1:Sw,2:Ew,3:Mw,4:Tw},r=[1,2,3,4],o=c.computed(()=>{if(!e?.value)return null;for(const a of r)if(e.value.isActive("heading",{level:a}))return a;return null}),i=c.computed(()=>o.value?t[o.value]:vte),s=c.computed(()=>o.value!==null);return(a,l)=>(c.openBlock(),c.createBlock(R2,null,{trigger:c.withCtx(({isOpen:d})=>[c.createVNode(Ye,{"data-active-state":d||s.value?"on":"off","data-style":"ghost"},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(i.value),{class:"tiptap-button-icon"})),c.createVNode(c6,{class:"tiptap-button-dropdown-small"})]),_:1},8,["data-active-state"])]),items:c.withCtx(({close:d})=>[c.createVNode(Ye,{"data-active-state":c.unref(e)?.isActive("heading",{level:1})?"on":"off","data-style":"ghost",onClick:u=>{c.unref(e)?.chain().focus().toggleHeading({level:1}).run(),d()}},{default:c.withCtx(()=>[c.createVNode(Sw,{class:"tiptap-button-icon"})]),_:1},8,["data-active-state","onClick"]),c.createVNode(Ye,{"data-active-state":c.unref(e)?.isActive("heading",{level:2})?"on":"off","data-style":"ghost",onClick:u=>{c.unref(e)?.chain().focus().toggleHeading({level:2}).run(),d()}},{default:c.withCtx(()=>[c.createVNode(Ew,{class:"tiptap-button-icon"})]),_:1},8,["data-active-state","onClick"]),c.createVNode(Ye,{"data-active-state":c.unref(e)?.isActive("heading",{level:3})?"on":"off","data-style":"ghost",onClick:u=>{c.unref(e)?.chain().focus().toggleHeading({level:3}).run(),d()}},{default:c.withCtx(()=>[c.createVNode(Mw,{class:"tiptap-button-icon"})]),_:1},8,["data-active-state","onClick"]),c.createVNode(Ye,{"data-active-state":c.unref(e)?.isActive("heading",{level:4})?"on":"off","data-style":"ghost",onClick:u=>{c.unref(e)?.chain().focus().toggleHeading({level:4}).run(),d()}},{default:c.withCtx(()=>[c.createVNode(Tw,{class:"tiptap-button-icon"})]),_:1},8,["data-active-state","onClick"])]),_:1}))}}),_te={};function Ate(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createStaticVNode('<path clip-rule="evenodd" d="M7 6C7 5.44772 7.44772 5 8 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H8C7.44772 7 7 6.55228 7 6Z" fill="currentColor" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M7 12C7 11.4477 7.44772 11 8 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H8C7.44772 13 7 12.5523 7 12Z" fill="currentColor" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M7 18C7 17.4477 7.44772 17 8 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H8C7.44772 19 7 18.5523 7 18Z" fill="currentColor" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M2 6C2 5.44772 2.44772 5 3 5H3.01C3.56228 5 4.01 5.44772 4.01 6C4.01 6.55228 3.56228 7 3.01 7H3C2.44772 7 2 6.55228 2 6Z" fill="currentColor" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M2 12C2 11.4477 2.44772 11 3 11H3.01C3.56228 11 4.01 11.4477 4.01 12C4.01 12.5523 3.56228 13 3.01 13H3C2.44772 13 2 12.5523 2 12Z" fill="currentColor" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M2 18C2 17.4477 2.44772 17 3 17H3.01C3.56228 17 4.01 17.4477 4.01 18C4.01 18.5523 3.56228 19 3.01 19H3C2.44772 19 2 18.5523 2 18Z" fill="currentColor" fill-rule="evenodd"></path>',6)])],16)}const d6=he(_te,[["render",Ate]]),Ote={};function Lte(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createStaticVNode('<path clip-rule="evenodd" d="M2 6C2 4.89543 2.89543 4 4 4H8C9.10457 4 10 4.89543 10 6V10C10 11.1046 9.10457 12 8 12H4C2.89543 12 2 11.1046 2 10V6ZM8 6H4V10H8V6Z" fill="currentColor" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M9.70711 14.2929C10.0976 14.6834 10.0976 15.3166 9.70711 15.7071L5.70711 19.7071C5.31658 20.0976 4.68342 20.0976 4.29289 19.7071L2.29289 17.7071C1.90237 17.3166 1.90237 16.6834 2.29289 16.2929C2.68342 15.9024 3.31658 15.9024 3.70711 16.2929L5 17.5858L8.29289 14.2929C8.68342 13.9024 9.31658 13.9024 9.70711 14.2929Z" fill="currentColor" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M12 6C12 5.44772 12.4477 5 13 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H13C12.4477 7 12 6.55228 12 6Z" fill="currentColor" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M12 12C12 11.4477 12.4477 11 13 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H13C12.4477 13 12 12.5523 12 12Z" fill="currentColor" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M12 18C12 17.4477 12.4477 17 13 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H13C12.4477 19 12 18.5523 12 18Z" fill="currentColor" fill-rule="evenodd"></path>',5)])],16)}const Bw=he(Ote,[["render",Lte]]),Nte={};function Dte(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createStaticVNode('<path clip-rule="evenodd" d="M9 6C9 5.44772 9.44772 5 10 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H10C9.44772 7 9 6.55228 9 6Z" fill="currentColor" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M9 12C9 11.4477 9.44772 11 10 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H10C9.44772 13 9 12.5523 9 12Z" fill="currentColor" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M9 18C9 17.4477 9.44772 17 10 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H10C9.44772 19 9 18.5523 9 18Z" fill="currentColor" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M3 6C3 5.44772 3.44772 5 4 5H5C5.55228 5 6 5.44772 6 6V10C6 10.5523 5.55228 11 5 11C4.44772 11 4 10.5523 4 10V7C3.44772 7 3 6.55228 3 6Z" fill="currentColor" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M3 10C3 9.44772 3.44772 9 4 9H6C6.55228 9 7 9.44772 7 10C7 10.5523 6.55228 11 6 11H4C3.44772 11 3 10.5523 3 10Z" fill="currentColor" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M5.82219 13.0431C6.54543 13.4047 6.99997 14.1319 6.99997 15C6.99997 15.5763 6.71806 16.0426 6.48747 16.35C6.31395 16.5814 6.1052 16.8044 5.91309 17H5.99997C6.55226 17 6.99997 17.4477 6.99997 18C6.99997 18.5523 6.55226 19 5.99997 19H3.99997C3.44769 19 2.99997 18.5523 2.99997 18C2.99997 17.4237 3.28189 16.9575 3.51247 16.65C3.74323 16.3424 4.03626 16.0494 4.26965 15.8161C4.27745 15.8083 4.2852 15.8006 4.29287 15.7929C4.55594 15.5298 4.75095 15.3321 4.88748 15.15C4.96287 15.0495 4.99021 14.9922 4.99911 14.9714C4.99535 14.9112 4.9803 14.882 4.9739 14.8715C4.96613 14.8588 4.95382 14.845 4.92776 14.8319C4.87723 14.8067 4.71156 14.7623 4.44719 14.8944C3.95321 15.1414 3.35254 14.9412 3.10555 14.4472C2.85856 13.9533 3.05878 13.3526 3.55276 13.1056C4.28839 12.7378 5.12272 12.6934 5.82219 13.0431Z" fill="currentColor" fill-rule="evenodd"></path>',6)])],16)}const _w=he(Nte,[["render",Dte]]),Ite=c.defineComponent({__name:"ListDropdown",setup(n){const e=c.inject("editor"),t={bulletList:d6,orderedList:_w,taskList:Bw},r=["bulletList","orderedList","taskList"],o=c.computed(()=>{if(!e?.value)return null;for(const a of r)if(e.value.isActive(a))return a;return null}),i=c.computed(()=>o.value?t[o.value]:d6),s=c.computed(()=>o.value!==null);return(a,l)=>(c.openBlock(),c.createBlock(R2,null,{trigger:c.withCtx(({isOpen:d})=>[c.createVNode(Ye,{"data-active-state":d||s.value?"on":"off","data-style":"ghost"},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(i.value),{class:"tiptap-button-icon"})),c.createVNode(c6,{class:"tiptap-button-dropdown-small"})]),_:1},8,["data-active-state"])]),items:c.withCtx(({close:d})=>[c.createVNode(Ye,{"data-active-state":c.unref(e)?.isActive("bulletList")?"on":"off","data-style":"ghost",onClick:u=>{c.unref(e)?.chain().focus().toggleBulletList().run(),d()}},{default:c.withCtx(()=>[c.createVNode(d6,{class:"tiptap-button-icon"})]),_:1},8,["data-active-state","onClick"]),c.createVNode(Ye,{"data-active-state":c.unref(e)?.isActive("orderedList")?"on":"off","data-style":"ghost",onClick:u=>{c.unref(e)?.chain().focus().toggleOrderedList().run(),d()}},{default:c.withCtx(()=>[c.createVNode(_w,{class:"tiptap-button-icon"})]),_:1},8,["data-active-state","onClick"]),c.createVNode(Ye,{"data-active-state":c.unref(e)?.isActive("taskList")?"on":"off","data-style":"ghost",onClick:u=>{c.unref(e)?.chain().focus().toggleList("taskList","taskItem").run(),d()}},{default:c.withCtx(()=>[c.createVNode(Bw,{class:"tiptap-button-icon"})]),_:1},8,["data-active-state","onClick"])]),_:1}))}}),Pte={};function Rte(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M8 6C8 5.44772 8.44772 5 9 5H16C16.5523 5 17 5.44772 17 6C17 6.55228 16.5523 7 16 7H9C8.44772 7 8 6.55228 8 6Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M4 3C4.55228 3 5 3.44772 5 4L5 20C5 20.5523 4.55229 21 4 21C3.44772 21 3 20.5523 3 20L3 4C3 3.44772 3.44772 3 4 3Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M8 12C8 11.4477 8.44772 11 9 11H20C20.5523 11 21 11.4477 21 12C21 12.5523 20.5523 13 20 13H9C8.44772 13 8 12.5523 8 12Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M8 18C8 17.4477 8.44772 17 9 17H16C16.5523 17 17 17.4477 17 18C17 18.5523 16.5523 19 16 19H9C8.44772 19 8 18.5523 8 18Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const Vte=he(Pte,[["render",Rte]]),Hte=c.defineComponent({__name:"BlockquoteButton",setup(n){const e=c.inject("editor");function t(){if(e?.value&&!(!P2("blockquote",e.value)||l6(e.value,["image"]))&&e.value.can().toggleWrap("blockquote"))try{const i=e.value.view.state.selection;let s=e.value.chain().focus();if(i instanceof fe){const l=i.node.firstChild?.firstChild,d=i.node.lastChild?.lastChild,u=l?i.from+l.nodeSize:i.from+1,h=d?i.to-d.nodeSize:i.to-1;s=s.setTextSelection({from:u,to:h}).clearNodes()}return(e.value.isActive("blockquote")?s.lift("blockquote"):s.wrapIn("blockquote")).run(),e.value.chain().focus().selectTextblockEnd().run(),!0}catch{return!1}}return(r,o)=>(c.openBlock(),c.createBlock(Ye,{"data-active-state":c.unref(e)?.isActive("blockquote")?"on":"off","data-style":"ghost",type:"button",onClick:t},{default:c.withCtx(()=>[c.createVNode(Vte,{class:"tiptap-button-icon"})]),_:1},8,["data-active-state"]))}}),Fte={};function zte(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M6.70711 2.29289C7.09763 2.68342 7.09763 3.31658 6.70711 3.70711L4.41421 6L6.70711 8.29289C7.09763 8.68342 7.09763 9.31658 6.70711 9.70711C6.31658 10.0976 5.68342 10.0976 5.29289 9.70711L2.29289 6.70711C1.90237 6.31658 1.90237 5.68342 2.29289 5.29289L5.29289 2.29289C5.68342 1.90237 6.31658 1.90237 6.70711 2.29289Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M10.2929 2.29289C10.6834 1.90237 11.3166 1.90237 11.7071 2.29289L14.7071 5.29289C15.0976 5.68342 15.0976 6.31658 14.7071 6.70711L11.7071 9.70711C11.3166 10.0976 10.6834 10.0976 10.2929 9.70711C9.90237 9.31658 9.90237 8.68342 10.2929 8.29289L12.5858 6L10.2929 3.70711C9.90237 3.31658 9.90237 2.68342 10.2929 2.29289Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M17 4C17 3.44772 17.4477 3 18 3H19C20.6569 3 22 4.34315 22 6V18C22 19.6569 20.6569 21 19 21H5C3.34315 21 2 19.6569 2 18V12C2 11.4477 2.44772 11 3 11C3.55228 11 4 11.4477 4 12V18C4 18.5523 4.44772 19 5 19H19C19.5523 19 20 18.5523 20 18V6C20 5.44772 19.5523 5 19 5H18C17.4477 5 17 4.55228 17 4Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const $te=he(Fte,[["render",zte]]),jte=c.defineComponent({__name:"CodeblockButton",setup(n){const e=c.inject("editor");function t(){if(e?.value&&!(!P2("codeBlock",e.value)||l6(e.value,["image"])))try{const i=e.value.view.state.selection;let s=e.value.chain().focus();if(i instanceof fe){const l=i.node.firstChild?.firstChild,d=i.node.lastChild?.lastChild,u=l?i.from+l.nodeSize:i.from+1,h=d?i.to-d.nodeSize:i.to-1;s=s.setTextSelection({from:u,to:h}).clearNodes()}return(e.value.isActive("codeBlock")?s.setNode("paragraph"):s.toggleNode("codeBlock","paragraph")).run(),e.value.chain().focus().selectTextblockEnd().run(),!0}catch{return!1}}return(r,o)=>(c.openBlock(),c.createBlock(Ye,{"data-active-state":c.unref(e)?.isActive("codeBlock")?"on":"off","data-style":"ghost",type:"button",onClick:t},{default:c.withCtx(()=>[c.createVNode($te,{class:"tiptap-button-icon"})]),_:1},8,["data-active-state"]))}}),Wte={};function Ute(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"none",height:"24",opacity:"0.7",viewBox:"3 3 18 18",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("rect",{height:"14",rx:"4",stroke:"currentColor","stroke-width":"2",width:"14",x:"5",y:"5"},null,-1),c.createElementVNode("path",{d:"M10 5V18.5",stroke:"currentColor","stroke-width":"2"},null,-1),c.createElementVNode("path",{d:"M5 10H19",stroke:"currentColor","stroke-width":"2"},null,-1)])],16)}const qte=he(Wte,[["render",Ute]]),Zte=c.defineComponent({__name:"TableButton",setup(n){const e=c.inject("editor");function t(){if(e?.value&&!(!P2("table",e.value)||l6(e.value,["image"]))&&e.value.can().insertTable({rows:3,cols:3,withHeaderRow:!0}))try{e.value.chain().focus().insertTable({rows:3,cols:3,withHeaderRow:!0}).run()}catch(r){console.error("Failed to insert table:",r)}}return(r,o)=>(c.openBlock(),c.createBlock(Ye,{"data-active-state":c.unref(e)?.isActive("table")?"on":"off","data-style":"ghost",type:"button",onClick:t},{default:c.withCtx(()=>[c.createVNode(qte,{class:"tiptap-button-icon"})]),_:1},8,["data-active-state"]))}}),Kte={};function Yte(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M6 2.5C5.17157 2.5 4.5 3.17157 4.5 4V20C4.5 20.8284 5.17157 21.5 6 21.5H15C16.4587 21.5 17.8576 20.9205 18.8891 19.8891C19.9205 18.8576 20.5 17.4587 20.5 16C20.5 14.5413 19.9205 13.1424 18.8891 12.1109C18.6781 11.9 18.4518 11.7079 18.2128 11.5359C19.041 10.5492 19.5 9.29829 19.5 8C19.5 6.54131 18.9205 5.14236 17.8891 4.11091C16.8576 3.07946 15.4587 2.5 14 2.5H6ZM14 10.5C14.663 10.5 15.2989 10.2366 15.7678 9.76777C16.2366 9.29893 16.5 8.66304 16.5 8C16.5 7.33696 16.2366 6.70107 15.7678 6.23223C15.2989 5.76339 14.663 5.5 14 5.5H7.5V10.5H14ZM7.5 18.5V13.5H15C15.663 13.5 16.2989 13.7634 16.7678 14.2322C17.2366 14.7011 17.5 15.337 17.5 16C17.5 16.663 17.2366 17.2989 16.7678 17.7678C16.2989 18.2366 15.663 18.5 15 18.5H7.5Z","fill-rule":"evenodd"},null,-1)])],16)}const Xte=he(Kte,[["render",Yte]]),Gte={};function Jte(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{d:"M15.0222 3H19C19.5523 3 20 3.44772 20 4C20 4.55228 19.5523 5 19 5H15.693L10.443 19H14C14.5523 19 15 19.4477 15 20C15 20.5523 14.5523 21 14 21H9.02418C9.00802 21.0004 8.99181 21.0004 8.97557 21H5C4.44772 21 4 20.5523 4 20C4 19.4477 4.44772 19 5 19H8.30704L13.557 5H10C9.44772 5 9 4.55228 9 4C9 3.44772 9.44772 3 10 3H14.9782C14.9928 2.99968 15.0075 2.99967 15.0222 3Z",fill:"currentColor"},null,-1)])],16)}const Qte=he(Gte,[["render",Jte]]),ene={};function tne(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M7 4C7 3.44772 6.55228 3 6 3C5.44772 3 5 3.44772 5 4V10C5 11.8565 5.7375 13.637 7.05025 14.9497C8.36301 16.2625 10.1435 17 12 17C13.8565 17 15.637 16.2625 16.9497 14.9497C18.2625 13.637 19 11.8565 19 10V4C19 3.44772 18.5523 3 18 3C17.4477 3 17 3.44772 17 4V10C17 11.3261 16.4732 12.5979 15.5355 13.5355C14.5979 14.4732 13.3261 15 12 15C10.6739 15 9.40215 14.4732 8.46447 13.5355C7.52678 12.5979 7 11.3261 7 10V4ZM4 19C3.44772 19 3 19.4477 3 20C3 20.5523 3.44772 21 4 21H20C20.5523 21 21 20.5523 21 20C21 19.4477 20.5523 19 20 19H4Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const nne=he(ene,[["render",tne]]),rne={};function one(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{d:"M9.00039 3H16.0001C16.5524 3 17.0001 3.44772 17.0001 4C17.0001 4.55229 16.5524 5 16.0001 5H9.00011C8.68006 4.99983 8.36412 5.07648 8.07983 5.22349C7.79555 5.37051 7.55069 5.5836 7.36585 5.84487C7.181 6.10614 7.06155 6.40796 7.01754 6.72497C6.97352 7.04198 7.00623 7.36492 7.11292 7.66667C7.29701 8.18737 7.02414 8.75872 6.50344 8.94281C5.98274 9.1269 5.4114 8.85403 5.2273 8.33333C5.01393 7.72984 4.94851 7.08396 5.03654 6.44994C5.12456 5.81592 5.36346 5.21229 5.73316 4.68974C6.10285 4.1672 6.59256 3.74101 7.16113 3.44698C7.72955 3.15303 8.36047 2.99975 9.00039 3Z",fill:"currentColor"},null,-1),c.createElementVNode("path",{d:"M18 13H20C20.5523 13 21 12.5523 21 12C21 11.4477 20.5523 11 20 11H4C3.44772 11 3 11.4477 3 12C3 12.5523 3.44772 13 4 13H14C14.7956 13 15.5587 13.3161 16.1213 13.8787C16.6839 14.4413 17 15.2044 17 16C17 16.7956 16.6839 17.5587 16.1213 18.1213C15.5587 18.6839 14.7956 19 14 19H6C5.44772 19 5 19.4477 5 20C5 20.5523 5.44772 21 6 21H14C15.3261 21 16.5979 20.4732 17.5355 19.5355C18.4732 18.5979 19 17.3261 19 16C19 14.9119 18.6453 13.8604 18 13Z",fill:"currentColor"},null,-1)])],16)}const ine=he(rne,[["render",one]]),sne={};function ane(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{d:"M15.4545 4.2983C15.6192 3.77115 15.3254 3.21028 14.7983 3.04554C14.2712 2.88081 13.7103 3.1746 13.5455 3.70175L8.54554 19.7017C8.38081 20.2289 8.6746 20.7898 9.20175 20.9545C9.72889 21.1192 10.2898 20.8254 10.4545 20.2983L15.4545 4.2983Z",fill:"currentColor"},null,-1),c.createElementVNode("path",{d:"M6.70711 7.29289C7.09763 7.68342 7.09763 8.31658 6.70711 8.70711L3.41421 12L6.70711 15.2929C7.09763 15.6834 7.09763 16.3166 6.70711 16.7071C6.31658 17.0976 5.68342 17.0976 5.29289 16.7071L1.29289 12.7071C0.902369 12.3166 0.902369 11.6834 1.29289 11.2929L5.29289 7.29289C5.68342 6.90237 6.31658 6.90237 6.70711 7.29289Z",fill:"currentColor"},null,-1),c.createElementVNode("path",{d:"M17.2929 7.29289C17.6834 6.90237 18.3166 6.90237 18.7071 7.29289L22.7071 11.2929C23.0976 11.6834 23.0976 12.3166 22.7071 12.7071L18.7071 16.7071C18.3166 17.0976 17.6834 17.0976 17.2929 16.7071C16.9024 16.3166 16.9024 15.6834 17.2929 15.2929L20.5858 12L17.2929 8.70711C16.9024 8.31658 16.9024 7.68342 17.2929 7.29289Z",fill:"currentColor"},null,-1)])],16)}const lne=he(sne,[["render",ane]]),cne={};function dne(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M12.7071 7.29289C13.0976 7.68342 13.0976 8.31658 12.7071 8.70711L4.70711 16.7071C4.31658 17.0976 3.68342 17.0976 3.29289 16.7071C2.90237 16.3166 2.90237 15.6834 3.29289 15.2929L11.2929 7.29289C11.6834 6.90237 12.3166 6.90237 12.7071 7.29289Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M3.29289 7.29289C3.68342 6.90237 4.31658 6.90237 4.70711 7.29289L12.7071 15.2929C13.0976 15.6834 13.0976 16.3166 12.7071 16.7071C12.3166 17.0976 11.6834 17.0976 11.2929 16.7071L3.29289 8.70711C2.90237 8.31658 2.90237 7.68342 3.29289 7.29289Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M17.405 1.40657C18.0246 1.05456 18.7463 0.92634 19.4492 1.04344C20.1521 1.16054 20.7933 1.51583 21.2652 2.0497L21.2697 2.05469L21.2696 2.05471C21.7431 2.5975 22 3.28922 22 4.00203C22 5.08579 21.3952 5.84326 20.7727 6.34289C20.1966 6.80531 19.4941 7.13675 18.9941 7.37261C18.9714 7.38332 18.9491 7.39383 18.9273 7.40415C18.4487 7.63034 18.2814 7.78152 18.1927 7.91844C18.1778 7.94155 18.1625 7.96834 18.1473 8.00003H21C21.5523 8.00003 22 8.44774 22 9.00003C22 9.55231 21.5523 10 21 10H17C16.4477 10 16 9.55231 16 9.00003C16 8.17007 16.1183 7.44255 16.5138 6.83161C16.9107 6.21854 17.4934 5.86971 18.0728 5.59591C18.6281 5.33347 19.1376 5.09075 19.5208 4.78316C19.8838 4.49179 20 4.25026 20 4.00203C20 3.77192 19.9178 3.54865 19.7646 3.37182C19.5968 3.18324 19.3696 3.05774 19.1205 3.01625C18.8705 2.97459 18.6137 3.02017 18.3933 3.14533C18.1762 3.26898 18.0191 3.45826 17.9406 3.67557C17.7531 4.19504 17.18 4.46414 16.6605 4.27662C16.141 4.0891 15.8719 3.51596 16.0594 2.99649C16.303 2.3219 16.7817 1.76125 17.4045 1.40689L17.405 1.40657Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const une=he(cne,[["render",dne]]),hne={};function fne(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M3.29289 7.29289C3.68342 6.90237 4.31658 6.90237 4.70711 7.29289L12.7071 15.2929C13.0976 15.6834 13.0976 16.3166 12.7071 16.7071C12.3166 17.0976 11.6834 17.0976 11.2929 16.7071L3.29289 8.70711C2.90237 8.31658 2.90237 7.68342 3.29289 7.29289Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M12.7071 7.29289C13.0976 7.68342 13.0976 8.31658 12.7071 8.70711L4.70711 16.7071C4.31658 17.0976 3.68342 17.0976 3.29289 16.7071C2.90237 16.3166 2.90237 15.6834 3.29289 15.2929L11.2929 7.29289C11.6834 6.90237 12.3166 6.90237 12.7071 7.29289Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M17.4079 14.3995C18.0284 14.0487 18.7506 13.9217 19.4536 14.0397C20.1566 14.1578 20.7977 14.5138 21.2696 15.0481L21.2779 15.0574L21.2778 15.0575C21.7439 15.5988 22 16.2903 22 17C22 18.0823 21.3962 18.8401 20.7744 19.3404C20.194 19.8073 19.4858 20.141 18.9828 20.378C18.9638 20.387 18.9451 20.3958 18.9266 20.4045C18.4473 20.6306 18.2804 20.7817 18.1922 20.918C18.1773 20.9412 18.1619 20.9681 18.1467 21H21C21.5523 21 22 21.4477 22 22C22 22.5523 21.5523 23 21 23H17C16.4477 23 16 22.5523 16 22C16 21.1708 16.1176 20.4431 16.5128 19.832C16.9096 19.2184 17.4928 18.8695 18.0734 18.5956C18.6279 18.334 19.138 18.0901 19.5207 17.7821C19.8838 17.49 20 17.2477 20 17C20 16.7718 19.9176 16.5452 19.7663 16.3672C19.5983 16.1792 19.3712 16.0539 19.1224 16.0121C18.8722 15.9701 18.6152 16.015 18.3942 16.1394C18.1794 16.2628 18.0205 16.4549 17.9422 16.675C17.7572 17.1954 17.1854 17.4673 16.665 17.2822C16.1446 17.0972 15.8728 16.5254 16.0578 16.005C16.2993 15.3259 16.7797 14.7584 17.4039 14.4018L17.4079 14.3995L17.4079 14.3995Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const pne=he(hne,[["render",fne]]),Os=c.defineComponent({__name:"MarkButton",props:{type:{}},setup(n){const e=c.inject("editor"),t=n,r={bold:Xte,italic:Qte,underline:nne,strike:ine,code:lne,superscript:une,subscript:pne};function o(){!e||!e.value||!e.value.can().toggleMark(t.type)||e.value.chain().focus().toggleMark(t.type).run()}return(i,s)=>(c.openBlock(),c.createBlock(Ye,{"data-active-state":c.unref(e)?.isActive(n.type)?"on":"off","data-style":"ghost",type:"button",onClick:o},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(r[n.type]),{class:"tiptap-button-icon"}))]),_:1},8,["data-active-state"]))}}),mne={};function gne(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M14.7072 4.70711C15.0977 4.31658 15.0977 3.68342 14.7072 3.29289C14.3167 2.90237 13.6835 2.90237 13.293 3.29289L8.69294 7.89286L8.68594 7.9C8.13626 8.46079 7.82837 9.21474 7.82837 10C7.82837 10.2306 7.85491 10.4584 7.90631 10.6795L2.29289 16.2929C2.10536 16.4804 2 16.7348 2 17V20C2 20.5523 2.44772 21 3 21H12C12.2652 21 12.5196 20.8946 12.7071 20.7071L15.3205 18.0937C15.5416 18.1452 15.7695 18.1717 16.0001 18.1717C16.7853 18.1717 17.5393 17.8639 18.1001 17.3142L22.7072 12.7071C23.0977 12.3166 23.0977 11.6834 22.7072 11.2929C22.3167 10.9024 21.6835 10.9024 21.293 11.2929L16.6971 15.8887C16.5105 16.0702 16.2605 16.1717 16.0001 16.1717C15.7397 16.1717 15.4897 16.0702 15.303 15.8887L10.1113 10.697C9.92992 10.5104 9.82837 10.2604 9.82837 10C9.82837 9.73963 9.92992 9.48958 10.1113 9.30297L14.7072 4.70711ZM13.5858 17L9.00004 12.4142L4 17.4142V19H11.5858L13.5858 17Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const vne=he(mne,[["render",gne]]),yne={};function Cne(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M4.43471 4.01458C4.34773 4.06032 4.26607 4.11977 4.19292 4.19292C4.11977 4.26607 4.06032 4.34773 4.01458 4.43471C2.14611 6.40628 1 9.0693 1 12C1 18.0751 5.92487 23 12 23C14.9306 23 17.5936 21.854 19.5651 19.9856C19.6522 19.9398 19.7339 19.8803 19.8071 19.8071C19.8803 19.7339 19.9398 19.6522 19.9856 19.5651C21.854 17.5936 23 14.9306 23 12C23 5.92487 18.0751 1 12 1C9.0693 1 6.40628 2.14611 4.43471 4.01458ZM6.38231 4.9681C7.92199 3.73647 9.87499 3 12 3C16.9706 3 21 7.02944 21 12C21 14.125 20.2635 16.078 19.0319 17.6177L6.38231 4.9681ZM17.6177 19.0319C16.078 20.2635 14.125 21 12 21C7.02944 21 3 16.9706 3 12C3 9.87499 3.73647 7.92199 4.9681 6.38231L17.6177 19.0319Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const bne=he(yne,[["render",Cne]]),wne=c.defineComponent({__name:"ColorHighlightDropdown",setup(n){const e=c.inject("editor"),t=[{label:"Default background",value:"var(--tt-bg-color)",border:"var(--tt-bg-color-contrast)"},{label:"Gray background",value:"var(--tt-color-highlight-gray)",border:"var(--tt-color-highlight-gray-contrast)"},{label:"Brown background",value:"var(--tt-color-highlight-brown)",border:"var(--tt-color-highlight-brown-contrast)"},{label:"Orange background",value:"var(--tt-color-highlight-orange)",border:"var(--tt-color-highlight-orange-contrast)"},{label:"Yellow background",value:"var(--tt-color-highlight-yellow)",border:"var(--tt-color-highlight-yellow-contrast)"},{label:"Green background",value:"var(--tt-color-highlight-green)",border:"var(--tt-color-highlight-green-contrast)"},{label:"Blue background",value:"var(--tt-color-highlight-blue)",border:"var(--tt-color-highlight-blue-contrast)"},{label:"Purple background",value:"var(--tt-color-highlight-purple)",border:"var(--tt-color-highlight-purple-contrast)"},{label:"Pink background",value:"var(--tt-color-highlight-pink)",border:"var(--tt-color-highlight-pink-contrast)"},{label:"Red background",value:"var(--tt-color-highlight-red)",border:"var(--tt-color-highlight-red-contrast)"}],r=["var(--tt-color-highlight-green)","var(--tt-color-highlight-blue)","var(--tt-color-highlight-red)","var(--tt-color-highlight-purple)","var(--tt-color-highlight-yellow)"];function o(a){return t.find(l=>l.value===a)}const i=()=>{if(!e||!e.value)return!1;e.value.chain().focus().unsetMark("highlight").run()},s=a=>{const l=o(a);if(!l||!e||!e.value)return!1;if(e.value.state.storedMarks){const d=e.value.schema.marks.highlight;d&&e.value.view.dispatch(e.value.state.tr.removeStoredMark(d))}setTimeout(()=>{!e||!e.value||e.value.chain().focus().toggleMark("highlight",{color:l.value}).run()},0)};return(a,l)=>(c.openBlock(),c.createBlock(R2,{orientation:"row"},{trigger:c.withCtx(({isOpen:d})=>[c.createVNode(Ye,{"data-active-state":c.unref(e)?.isActive("highlight")||d?"on":"off","data-style":"ghost",type:"button"},{default:c.withCtx(()=>[c.createVNode(vne,{class:"tiptap-button-icon"})]),_:1},8,["data-active-state"])]),items:c.withCtx(({close:d})=>[(c.openBlock(),c.createElementBlock(c.Fragment,null,c.renderList(r,u=>c.createVNode(Ye,{key:u,"data-active-state":c.unref(e)?.isActive("highlight",{color:u})?"on":"off","data-style":"ghost",type:"button",onClick:h=>{s(u),d()}},{default:c.withCtx(()=>[c.createElementVNode("span",{class:"tiptap-button-highlight",style:c.normalizeStyle({"--highlight-color":u})},null,4)]),_:2},1032,["data-active-state","onClick"])),64)),c.createVNode(Da),c.createVNode(Ye,{"data-style":"ghost",type:"button",onClick:u=>{i(),d()}},{default:c.withCtx(()=>[c.createVNode(bne,{class:"tiptap-button-icon"})]),_:1},8,["onClick"])]),_:1}))}}),kne={};function xne(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{d:"M16.9958 1.06669C15.4226 1.05302 13.907 1.65779 12.7753 2.75074L12.765 2.76086L11.045 4.47086C10.6534 4.86024 10.6515 5.49341 11.0409 5.88507C11.4303 6.27673 12.0634 6.27858 12.4551 5.88919L14.1697 4.18456C14.9236 3.45893 15.9319 3.05752 16.9784 3.06662C18.0272 3.07573 19.0304 3.49641 19.772 4.23804C20.5137 4.97967 20.9344 5.98292 20.9435 7.03171C20.9526 8.07776 20.5515 9.08563 19.8265 9.83941L16.833 12.8329C16.4274 13.2386 15.9393 13.5524 15.4019 13.7529C14.8645 13.9533 14.2903 14.0359 13.7181 13.9949C13.146 13.9539 12.5894 13.7904 12.0861 13.5154C11.5827 13.2404 11.1444 12.8604 10.8008 12.401C10.47 11.9588 9.84333 11.8685 9.40108 12.1993C8.95883 12.5301 8.86849 13.1568 9.1993 13.599C9.71464 14.288 10.3721 14.858 11.1272 15.2705C11.8822 15.683 12.7171 15.9283 13.5753 15.9898C14.4334 16.0513 15.2948 15.9274 16.1009 15.6267C16.907 15.326 17.639 14.8555 18.2473 14.247L21.2472 11.2471L21.2593 11.2347C22.3523 10.1031 22.9571 8.58751 22.9434 7.01433C22.9297 5.44115 22.2987 3.93628 21.1863 2.82383C20.0738 1.71138 18.5689 1.08036 16.9958 1.06669Z",fill:"currentColor"},null,-1),c.createElementVNode("path",{d:"M10.4247 8.0102C9.56657 7.94874 8.70522 8.07256 7.89911 8.37326C7.09305 8.67395 6.36096 9.14458 5.75272 9.753L2.75285 12.7529L2.74067 12.7653C1.64772 13.8969 1.04295 15.4125 1.05662 16.9857C1.07029 18.5589 1.70131 20.0637 2.81376 21.1762C3.9262 22.2886 5.43108 22.9196 7.00426 22.9333C8.57744 22.947 10.0931 22.3422 11.2247 21.2493L11.2371 21.2371L12.9471 19.5271C13.3376 19.1366 13.3376 18.5034 12.9471 18.1129C12.5565 17.7223 11.9234 17.7223 11.5328 18.1129L9.82932 19.8164C9.07555 20.5414 8.06768 20.9425 7.02164 20.9334C5.97285 20.9243 4.9696 20.5036 4.22797 19.762C3.48634 19.0203 3.06566 18.0171 3.05655 16.9683C3.04746 15.9222 3.44851 14.9144 4.17355 14.1606L7.16719 11.167C7.5727 10.7613 8.06071 10.4476 8.59811 10.2471C9.13552 10.0467 9.70976 9.96412 10.2819 10.0051C10.854 10.0461 11.4106 10.2096 11.9139 10.4846C12.4173 10.7596 12.8556 11.1397 13.1992 11.599C13.53 12.0412 14.1567 12.1316 14.5989 11.8007C15.0412 11.4699 15.1315 10.8433 14.8007 10.401C14.2854 9.71205 13.6279 9.14198 12.8729 8.72948C12.1178 8.31697 11.2829 8.07166 10.4247 8.0102Z",fill:"currentColor"},null,-1)])],16)}const Sne=he(kne,[["render",xne]]),Ene=["value"],Mne=c.defineComponent({__name:"Input",props:{modelValue:{}},emits:["update:modelValue"],setup(n,{emit:e}){const t=e;function r(o){t("update:modelValue",o.target.value)}return(o,i)=>(c.openBlock(),c.createElementBlock("input",{autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",class:"tiptap-input",value:n.modelValue,onInput:r},null,40,Ene))}}),Tne={};function Bne(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M21 4C21 3.44772 20.5523 3 20 3C19.4477 3 19 3.44772 19 4V11C19 11.7956 18.6839 12.5587 18.1213 13.1213C17.5587 13.6839 16.7956 14 16 14H6.41421L9.70711 10.7071C10.0976 10.3166 10.0976 9.68342 9.70711 9.29289C9.31658 8.90237 8.68342 8.90237 8.29289 9.29289L3.29289 14.2929C2.90237 14.6834 2.90237 15.3166 3.29289 15.7071L8.29289 20.7071C8.68342 21.0976 9.31658 21.0976 9.70711 20.7071C10.0976 20.3166 10.0976 19.6834 9.70711 19.2929L6.41421 16H16C17.3261 16 18.5979 15.4732 19.5355 14.5355C20.4732 13.5979 21 12.3261 21 11V4Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const _ne=he(Tne,[["render",Bne]]),Ane={};function One(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{d:"M14 3C14 2.44772 14.4477 2 15 2H21C21.5523 2 22 2.44772 22 3V9C22 9.55228 21.5523 10 21 10C20.4477 10 20 9.55228 20 9V5.41421L10.7071 14.7071C10.3166 15.0976 9.68342 15.0976 9.29289 14.7071C8.90237 14.3166 8.90237 13.6834 9.29289 13.2929L18.5858 4H15C14.4477 4 14 3.55228 14 3Z",fill:"currentColor"},null,-1),c.createElementVNode("path",{d:"M4.29289 7.29289C4.48043 7.10536 4.73478 7 5 7H11C11.5523 7 12 6.55228 12 6C12 5.44772 11.5523 5 11 5H5C4.20435 5 3.44129 5.31607 2.87868 5.87868C2.31607 6.44129 2 7.20435 2 8V19C2 19.7957 2.31607 20.5587 2.87868 21.1213C3.44129 21.6839 4.20435 22 5 22H16C16.7957 22 17.5587 21.6839 18.1213 21.1213C18.6839 20.5587 19 19.7957 19 19V13C19 12.4477 18.5523 12 18 12C17.4477 12 17 12.4477 17 13V19C17 19.2652 16.8946 19.5196 16.7071 19.7071C16.5196 19.8946 16.2652 20 16 20H5C4.73478 20 4.48043 19.8946 4.29289 19.7071C4.10536 19.5196 4 19.2652 4 19V8C4 7.73478 4.10536 7.48043 4.29289 7.29289Z",fill:"currentColor"},null,-1)])],16)}const Lne=he(Ane,[["render",One]]),Nne={};function Dne(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M7 5V4C7 3.17477 7.40255 2.43324 7.91789 1.91789C8.43324 1.40255 9.17477 1 10 1H14C14.8252 1 15.5668 1.40255 16.0821 1.91789C16.5975 2.43324 17 3.17477 17 4V5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H20V20C20 20.8252 19.5975 21.5668 19.0821 22.0821C18.5668 22.5975 17.8252 23 17 23H7C6.17477 23 5.43324 22.5975 4.91789 22.0821C4.40255 21.5668 4 20.8252 4 20V7H3C2.44772 7 2 6.55228 2 6C2 5.44772 2.44772 5 3 5H7ZM9 4C9 3.82523 9.09745 3.56676 9.33211 3.33211C9.56676 3.09745 9.82523 3 10 3H14C14.1748 3 14.4332 3.09745 14.6679 3.33211C14.9025 3.56676 15 3.82523 15 4V5H9V4ZM6 7V20C6 20.1748 6.09745 20.4332 6.33211 20.6679C6.56676 20.9025 6.82523 21 7 21H17C17.1748 21 17.4332 20.9025 17.6679 20.6679C17.9025 20.4332 18 20.1748 18 20V7H6Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const Ine=he(Nne,[["render",Dne]]),Pne=c.defineComponent({__name:"LinkDropdown",setup(n){const e=c.inject("editor"),t=c.ref(""),r=c.ref(!1);function o(d){if(!(!d||!e||!e.value)){if(d===""){e.value.chain().focus().extendMarkRange("link").unsetLink().run();return}e.value.chain().focus().extendMarkRange("link").setLink({href:d}).run()}}let i=null;const s=()=>{if(!e||!e.value)return;const{href:d}=e.value.getAttributes("link");t.value=d||"",t.value!==""?r.value=!0:r.value=!1};c.watch(()=>e?.value,(d,u)=>{u&&(u.off("selectionUpdate",s),i=null),d&&(s(),d.on("selectionUpdate",s),i=()=>{d.off("selectionUpdate",s)})},{immediate:!0}),c.onBeforeUnmount(()=>{i?.()});function a(){if(!t.value||t.value===""||!e||!e.value)return;const d=kw(t.value,window.location.href);d!=="#"&&window.open(d,"_blank","noopener,noreferrer")}function l(){!e||!e.value||(t.value="",e.value.chain().focus().extendMarkRange("link").unsetLink().setMeta("preventAutolink",!0).run())}return(d,u)=>(c.openBlock(),c.createBlock(R2,{open:r.value,orientation:"row"},{trigger:c.withCtx(({isOpen:h})=>[c.createVNode(Ye,{"data-active-state":c.unref(e)?.isActive("link")||h?"on":"off","data-style":"ghost",type:"button"},{default:c.withCtx(()=>[c.createVNode(Sne,{class:"tiptap-button-icon"})]),_:1},8,["data-active-state"])]),items:c.withCtx(({close:h})=>[c.createVNode(Mne,{modelValue:t.value,"onUpdate:modelValue":u[0]||(u[0]=f=>t.value=f),onKeydown:c.withKeys(c.withModifiers(f=>{o(t.value),h()},["prevent"]),["enter"])},null,8,["modelValue","onKeydown"]),c.createVNode(Ye,{"data-style":"ghost",type:"button",onClick:f=>{o(t.value),h()}},{default:c.withCtx(()=>[c.createVNode(_ne,{class:"tiptap-button-icon"})]),_:1},8,["onClick"]),c.createVNode(Da),c.createVNode(Ye,{"data-style":"ghost",type:"button",onClick:f=>{a(),h()}},{default:c.withCtx(()=>[c.createVNode(Lne,{class:"tiptap-button-icon"})]),_:1},8,["onClick"]),c.createVNode(Ye,{"data-style":"ghost",type:"button",onClick:f=>{l(),h()}},{default:c.withCtx(()=>[c.createVNode(Ine,{class:"tiptap-button-icon"})]),_:1},8,["onClick"])]),_:1},8,["open"]))}}),Rne={};function Vne(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M2 12C2 11.4477 2.44772 11 3 11H15C15.5523 11 16 11.4477 16 12C16 12.5523 15.5523 13 15 13H3C2.44772 13 2 12.5523 2 12Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M2 18C2 17.4477 2.44772 17 3 17H17C17.5523 17 18 17.4477 18 18C18 18.5523 17.5523 19 17 19H3C2.44772 19 2 18.5523 2 18Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const u6=he(Rne,[["render",Vne]]),Hne={};function Fne(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M6 12C6 11.4477 6.44772 11 7 11H17C17.5523 11 18 11.4477 18 12C18 12.5523 17.5523 13 17 13H7C6.44772 13 6 12.5523 6 12Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M4 18C4 17.4477 4.44772 17 5 17H19C19.5523 17 20 17.4477 20 18C20 18.5523 19.5523 19 19 19H5C4.44772 19 4 18.5523 4 18Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const Aw=he(Hne,[["render",Fne]]),zne={};function $ne(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M8 12C8 11.4477 8.44772 11 9 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H9C8.44772 13 8 12.5523 8 12Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M6 18C6 17.4477 6.44772 17 7 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H7C6.44772 19 6 18.5523 6 18Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const Ow=he(zne,[["render",$ne]]),jne={};function Wne(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M2 12C2 11.4477 2.44772 11 3 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H3C2.44772 13 2 12.5523 2 12Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M2 18C2 17.4477 2.44772 17 3 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H3C2.44772 19 2 18.5523 2 18Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const Lw=he(jne,[["render",Wne]]),Une=c.defineComponent({__name:"TextAlignDropdown",setup(n){const e=c.inject("editor"),t={left:u6,center:Aw,right:Ow,justify:Lw},r=["left","center","right","justify"],o=c.computed(()=>{if(!e?.value)return null;for(const a of r)if(e.value.isActive({textAlign:a}))return a;return null}),i=c.computed(()=>o.value?t[o.value]:u6),s=c.computed(()=>o.value!==null);return(a,l)=>(c.openBlock(),c.createBlock(R2,null,{trigger:c.withCtx(({isOpen:d})=>[c.createVNode(Ye,{"data-active-state":d||s.value?"on":"off","data-style":"ghost"},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(i.value),{class:"tiptap-button-icon"})),c.createVNode(c6,{class:"tiptap-button-dropdown-small"})]),_:1},8,["data-active-state"])]),items:c.withCtx(({close:d})=>[c.createVNode(Ye,{"data-active-state":c.unref(e)?.isActive({textAlign:"left"})?"on":"off","data-style":"ghost",onClick:u=>{c.unref(e)?.chain().focus().setTextAlign("left").run(),d()}},{default:c.withCtx(()=>[c.createVNode(u6,{class:"tiptap-button-icon"})]),_:1},8,["data-active-state","onClick"]),c.createVNode(Ye,{"data-active-state":c.unref(e)?.isActive({textAlign:"center"})?"on":"off","data-style":"ghost",onClick:u=>{c.unref(e)?.chain().focus().setTextAlign("center").run(),d()}},{default:c.withCtx(()=>[c.createVNode(Aw,{class:"tiptap-button-icon"})]),_:1},8,["data-active-state","onClick"]),c.createVNode(Ye,{"data-active-state":c.unref(e)?.isActive({textAlign:"right"})?"on":"off","data-style":"ghost",onClick:u=>{c.unref(e)?.chain().focus().setTextAlign("right").run(),d()}},{default:c.withCtx(()=>[c.createVNode(Ow,{class:"tiptap-button-icon"})]),_:1},8,["data-active-state","onClick"]),c.createVNode(Ye,{"data-active-state":c.unref(e)?.isActive({textAlign:"justify"})?"on":"off","data-style":"ghost",onClick:u=>{c.unref(e)?.chain().focus().setTextAlign("justify").run(),d()}},{default:c.withCtx(()=>[c.createVNode(Lw,{class:"tiptap-button-icon"})]),_:1},8,["data-active-state","onClick"])]),_:1}))}}),qne={};function Zne(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M20 2C20 1.44772 19.5523 1 19 1C18.4477 1 18 1.44772 18 2V4H16C15.4477 4 15 4.44772 15 5C15 5.55228 15.4477 6 16 6H18V8C18 8.55228 18.4477 9 19 9C19.5523 9 20 8.55228 20 8V6H22C22.5523 6 23 5.55228 23 5C23 4.44772 22.5523 4 22 4H20V2ZM5 4C4.73478 4 4.48043 4.10536 4.29289 4.29289C4.10536 4.48043 4 4.73478 4 5V19C4 19.2652 4.10536 19.5196 4.29289 19.7071C4.48043 19.8946 4.73478 20 5 20H5.58579L14.379 11.2068C14.9416 10.6444 15.7045 10.3284 16.5 10.3284C17.2955 10.3284 18.0584 10.6444 18.621 11.2068L20 12.5858V12C20 11.4477 20.4477 11 21 11C21.5523 11 22 11.4477 22 12V14.998C22 14.9994 22 15.0007 22 15.002V19C22 19.7957 21.6839 20.5587 21.1213 21.1213C20.5587 21.6839 19.7957 22 19 22H6.00219C6.00073 22 5.99927 22 5.99781 22H5C4.20435 22 3.44129 21.6839 2.87868 21.1213C2.31607 20.5587 2 19.7957 2 19V5C2 4.20435 2.31607 3.44129 2.87868 2.87868C3.44129 2.31607 4.20435 2 5 2H12C12.5523 2 13 2.44772 13 3C13 3.55228 12.5523 4 12 4H5ZM8.41422 20H19C19.2652 20 19.5196 19.8946 19.7071 19.7071C19.8946 19.5196 20 19.2652 20 19V15.4142L17.207 12.6212C17.0195 12.4338 16.7651 12.3284 16.5 12.3284C16.2349 12.3284 15.9806 12.4337 15.7931 12.6211L8.41422 20ZM6.87868 6.87868C7.44129 6.31607 8.20435 6 9 6C9.79565 6 10.5587 6.31607 11.1213 6.87868C11.6839 7.44129 12 8.20435 12 9C12 9.79565 11.6839 10.5587 11.1213 11.1213C10.5587 11.6839 9.79565 12 9 12C8.20435 12 7.44129 11.6839 6.87868 11.1213C6.31607 10.5587 6 9.79565 6 9C6 8.20435 6.31607 7.44129 6.87868 6.87868ZM9 8C8.73478 8 8.48043 8.10536 8.29289 8.29289C8.10536 8.48043 8 8.73478 8 9C8 9.26522 8.10536 9.51957 8.29289 9.70711C8.48043 9.89464 8.73478 10 9 10C9.26522 10 9.51957 9.89464 9.70711 9.70711C9.89464 9.51957 10 9.26522 10 9C10 8.73478 9.89464 8.48043 9.70711 8.29289C9.51957 8.10536 9.26522 8 9 8Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const Kne=he(qne,[["render",Zne]]),Yne=c.defineComponent({__name:"ImageUploadButton",props:{i18n:{}},setup(n){const e=n,t=c.inject("editor");function r(){if(t?.value&&P2("fileUpload",t.value))try{t.value.chain().focus().setFileUploadNode({accept:"image/*",limit:1,forceAttachment:!1,i18n:e.i18n?.plugins?.images}).run()}catch(o){console.error("Failed to insert file upload node:",o)}}return(o,i)=>(c.openBlock(),c.createBlock(Ye,{"data-style":"ghost",type:"button",onClick:r},{default:c.withCtx(()=>[c.createVNode(Kne,{class:"tiptap-button-icon"})]),_:1}))}}),Xne={};function Gne(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"2 2 12 12",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M9.34181 3.175C8.86733 3.175 8.41228 3.36348 8.07677 3.69899L3.96053 7.81523C3.45247 8.33711 3.17027 9.03805 3.17501 9.76641C3.17975 10.4951 3.47134 11.1927 3.98665 11.708C4.50195 12.2233 5.19949 12.5149 5.92823 12.5196C6.6566 12.5244 7.35753 12.2422 7.87942 11.7341C7.87968 11.7338 7.87994 11.7336 7.88021 11.7333L11.8762 7.7373L12.1237 7.98479L8.12446 11.984C7.53657 12.5568 6.74672 12.875 5.92595 12.8696C5.10518 12.8643 4.31955 12.5359 3.73916 11.9555C3.15878 11.3751 2.83036 10.5895 2.82502 9.76869C2.81968 8.94792 3.13784 8.15807 3.71063 7.57019L3.71222 7.56855L7.82928 3.45151C8.23043 3.05036 8.77451 2.825 9.34181 2.825C9.90912 2.825 10.4532 3.05036 10.8543 3.45151C11.2555 3.85266 11.4809 4.39673 11.4809 4.96404C11.4809 5.53135 11.2555 6.07542 10.8543 6.47657L6.85603 10.4749C6.63904 10.6919 6.34475 10.8138 6.03789 10.8138C5.73103 10.8138 5.43674 10.6919 5.21975 10.4749C5.00277 10.2579 4.88087 9.96361 4.88087 9.65675C4.88087 9.34989 5.00277 9.05559 5.21975 8.83861L9.09863 4.95973L9.34612 5.20722L5.46724 9.0861C5.3159 9.23744 5.23087 9.44271 5.23087 9.65675C5.23087 9.87078 5.3159 10.0761 5.46724 10.2274C5.61859 10.3787 5.82386 10.4638 6.03789 10.4638C6.25193 10.4638 6.45719 10.3787 6.60854 10.2274L10.6069 6.22908C10.9424 5.89357 11.1309 5.43852 11.1309 4.96404C11.1309 4.48955 10.9424 4.03451 10.6069 3.69899C10.2713 3.36348 9.8163 3.175 9.34181 3.175Z",fill:"currentColor","fill-rule":"evenodd",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"1"},null,-1)])],16)}const Jne=he(Xne,[["render",Gne]]),Qne=c.defineComponent({__name:"FileUploadButton",props:{i18n:{}},setup(n){const e=n,t=c.inject("editor");function r(){if(t?.value&&P2("fileUpload",t.value))try{t.value.chain().focus().setFileUploadNode({accept:"*/*",limit:0,forceAttachment:!0,i18n:e.i18n?.plugins?.attachment}).run()}catch(o){console.error("Failed to insert file upload node:",o)}}return(o,i)=>(c.openBlock(),c.createBlock(Ye,{"data-style":"ghost",type:"button",onClick:r},{default:c.withCtx(()=>[c.createVNode(Jne,{class:"tiptap-button-icon"})]),_:1}))}});function Nr(n){return n?n instanceof Element?n:typeof n=="object"&&n!==null&&"$el"in n&&n.$el instanceof Element?n.$el:null:null}function ere(){const n=c.ref(null),e=c.ref(null),t=c.ref(null),r=c.ref({position:"absolute",top:"0",width:"100%"}),o=c.ref({}),i=c.ref(!1),s=c.ref(0);let a=null,l=null,d=null,u=null,h=!0,f=null,p=[],m=null;const g=()=>{const k=Nr(n.value);if(!k)return;const S=[];let O=k;for(;O&&O!==document.body;){const x=getComputedStyle(O);/auto|scroll|overlay/.test(x.overflow+x.overflowY+x.overflowX)&&S.push(O),O=O.parentElement}const A=x=>{const L=x.target===document||x.target===document.documentElement?window:x.currentTarget;f!==L&&(f=L),i.value&&T()};S.forEach(x=>{x.addEventListener("scroll",A,{passive:!0}),p.push({element:x,handler:A})}),window.addEventListener("scroll",A,{passive:!0}),p.push({element:window,handler:A})},v=()=>{const k=Nr(e.value);if(k)return k;const S=Nr(n.value);return S?S.querySelector(".tiptap-toolbar"):null},y=()=>v()?.getBoundingClientRect().height??0,C=()=>{const k=y();k>0&&k!==s.value&&(s.value=k,b())},b=()=>{if(i.value)return;const k=y();s.value=k,o.value=k>0?{paddingTop:`${k}px`}:{}},B=()=>{const k=Nr(n.value);if(!k||!f)return;if(!h){i.value=!1,r.value={position:"absolute",top:"0",width:"100%",transform:"none",opacity:"0"},b();return}const S=k.getBoundingClientRect(),O=f===window?0:f.getBoundingClientRect().top,A=S.top-O;Math.max(0,-A)>0?(C(),i.value=!0,r.value={position:"fixed",top:`${O}px`,left:`${S.left}px`,width:`${S.width}px`,transform:"none",zIndex:"10"}):(i.value=!1,r.value={position:"absolute",top:"0",width:"100%",transform:"none"}),b()},T=()=>{m&&cancelAnimationFrame(m),m=requestAnimationFrame(()=>{B(),m=null})},E=()=>{m&&cancelAnimationFrame(m),m=requestAnimationFrame(()=>{C(),b(),B(),m=null})};return c.watch(e,(k,S)=>{const O=Nr(k),A=Nr(S);(A&&!O||!A&&O)&&E()},{immediate:!1}),c.onMounted(()=>{const k=Nr(n.value),S=Nr(t.value),O=Nr(e.value);!k||!S||(g(),k&&"MutationObserver"in window&&(u=new MutationObserver(()=>{const A=Nr(e.value),x=k.querySelector(".tiptap-toolbar");(A&&!x||!A&&x)&&E()}),u.observe(k,{childList:!0,subtree:!0})),O&&"ResizeObserver"in window&&(d=new ResizeObserver(()=>{C()}),d.observe(O)),requestAnimationFrame(()=>{C(),b(),f||(f=window),a=new IntersectionObserver(([x])=>{x.intersectionRatio>0?(i.value=!1,r.value={position:"absolute",top:"0",width:"100%"},b()):(C(),i.value=!0,B())},{threshold:[0,.1,.5,1],root:f===window?null:f,rootMargin:"0px"}),a.observe(S);const A=Nr(n.value);A&&(l=new IntersectionObserver(([x])=>{h=x.intersectionRatio>0,B()},{threshold:[0,1],root:f===window?null:f,rootMargin:"0px"}),l.observe(A)),B()}))}),c.onUnmounted(()=>{a?.disconnect(),l?.disconnect(),d?.disconnect(),u?.disconnect(),m&&cancelAnimationFrame(m),p.forEach(({element:k,handler:S})=>{k===window?window.removeEventListener("scroll",S):k.removeEventListener("scroll",S)}),p=[]}),{wrapperRef:n,toolbarRef:e,sentinelRef:t,toolbarStyle:r,wrapperStyle:o,isFloating:i}}const tre={key:0,class:"reply-header"},nre={class:"reply-actions"},rre={class:"tiptap-toolbar-group"},ore={class:"tiptap-toolbar-group"},ire={class:"tiptap-toolbar-group"},sre={class:"tiptap-toolbar-group"},are={class:"tiptap-toolbar-group"},lre=c.defineComponent({__name:"SimpleTemplate",props:{readOnly:{type:Boolean},isOverlayVisible:{type:Boolean},i18n:{}},emits:["accept-suggestion","dismiss-suggestion"],setup(n,{emit:e}){const t=n,r=e,{wrapperRef:o,toolbarRef:i,sentinelRef:s,toolbarStyle:a,wrapperStyle:l}=ere(),d=c.inject("editor");function u(){r("accept-suggestion")}function h(){r("dismiss-suggestion")}return(f,p)=>(c.openBlock(),c.createElementBlock("div",{ref_key:"wrapperRef",ref:o,class:c.normalizeClass(["simple-editor-wrapper",{"read-only":t.readOnly},{"suggestion-reply-theme":n.isOverlayVisible}]),style:c.normalizeStyle(c.unref(l))},[n.isOverlayVisible?(c.openBlock(),c.createElementBlock("div",tre,[c.createVNode(Nh,{active:!0,"has-background":!1,"icon-name":"ai",size:24,text:t.i18n?.labels?.AIResponse?t.i18n.labels.AIResponse:"GPT Suggested Response"},null,8,["text"]),c.createElementVNode("div",nre,[c.createVNode(Be,{active:!0,alt:"Accept Suggestion","icon-name":"accept",size:20,onClick:u}),c.createVNode(Be,{active:!0,alt:"Dismiss Suggestion","icon-name":"close","is-danger":!0,size:20,onClick:h})])])):c.createCommentVNode("",!0),c.createElementVNode("div",{ref_key:"sentinelRef",ref:s,class:"toolbar-sentinel"},null,512),t.readOnly?c.createCommentVNode("",!0):(c.openBlock(),c.createBlock(pte,{key:1,ref_key:"toolbarRef",ref:i,style:c.normalizeStyle(c.unref(a))},{default:c.withCtx(()=>[c.createElementVNode("div",rre,[c.createVNode(xw,{action:"undo"}),c.createVNode(xw,{action:"redo"})]),c.createVNode(Da),c.createElementVNode("div",ore,[c.createVNode(Bte),c.createVNode(Ite),c.createVNode(Hte),c.createVNode(jte),c.createVNode(Zte),c.createVNode(Une)]),c.createVNode(Da),c.createElementVNode("div",ire,[c.createVNode(Os,{type:"bold"}),c.createVNode(Os,{type:"italic"}),c.createVNode(Os,{type:"strike"}),c.createVNode(Os,{type:"code"}),c.createVNode(Os,{type:"underline"}),c.createVNode(wne),c.createVNode(Pne)]),c.createVNode(Da),c.createElementVNode("div",sre,[c.createVNode(Os,{type:"superscript"}),c.createVNode(Os,{type:"subscript"})]),c.createVNode(Da),c.createElementVNode("div",are,[c.createVNode(Yne,{i18n:t.i18n},null,8,["i18n"]),c.createVNode(Qne,{i18n:t.i18n},null,8,["i18n"])])]),_:1},8,["style"])),c.createVNode(c.unref(HG),{class:"simple-editor-content",editor:c.unref(d),role:"presentation",onFocusin:u},null,8,["editor"])],6))}}),cre=c.defineComponent({__name:"TiptapView",props:{data:{},attachments:{},readOnly:{type:Boolean,default:!1},toolbarPosition:{default:"left"},i18n:{},suggestedReply:{},fileUpload:{}},emits:["update:data","update:attachments","file-upload"],setup(n,{expose:e,emit:t}){const r=n,o=t;c.ref(null);const i=c.ref(!1),s=c.ref(!1),a=c.ref(!1),l=c.ref(!1),d=jee.extend({name:"image",addAttributes(){return{...this.parent?.()||{},id:{default:null},width:{default:"100%"}}}}),u=FG({editable:!r.readOnly,editorProps:{attributes:{class:"simple-editor"},handlePaste(M,L){const D=Array.from(L.clipboardData?.files||[]).filter(w=>w&&w.size>0);if(D.length===0)return!1;const _=M.state.selection.from,N={state:M.state,schema:M.state.schema,view:M};return f(N,D,_),!0}},extensions:[kQ.configure({link:{openOnClick:!1}}),Pb,Ib,xQ,SQ,TQ.configure({multicolor:!0}),BQ.configure({types:["heading","paragraph"]}),Pee.configure(),d,qee,Qee.configure({onDrop:(M,L,D)=>{f(M,L,D)}}),Xee.configure({placeholder:r.i18n?.labels?.Placeholder??"Type here...",showOnlyWhenEditable:!0}),Yee,tte.configure({type:"image",accept:"*/*",limit:1,maxSize:0,onFileUpload:M=>{o("file-upload",M)}})],content:g(r.data,r.attachments),onUpdate({editor:M}){if(a.value||!l.value)return;const L=M.getJSON();s.value&&(s.value=!1,i.value=!1),B(L)},onCreate(){l.value=!0,k()}});function h(){if(!u.value)return[];const M=new Map;if(r.attachments)for(const D of r.attachments)D.id&&M.set(String(D.id),D);const L=[];return u.value.state.doc.descendants(D=>{if(D.type.name==="image"&&D.attrs?.id){const _=D.attrs.id,N=String(_),w=M.get(N);w?L.push(w):L.push({id:typeof _=="number"?_:Number(_)||0,label:D.attrs.alt||D.attrs.title||"",download_url:D.attrs.src||"",status:"OK",status_message:""})}else if(D.type.name==="attachment"&&Array.isArray(D.attrs?.files)){for(const _ of D.attrs.files)if(_.id){const N=String(_.id),w=M.get(N);w?L.push(w):L.push({id:typeof _.id=="number"?_.id:Number(_.id)||0,label:_.label||"",download_url:_.download_url||"",status:_.status||"OK",status_message:_.status_message||""})}}}),L}function f(M,L,D){if(L.length===0)return;const{state:_}=M;let N=D??_.selection.from;if(typeof D=="number"){const{doc:V}=_,z=V.nodeAt(D);let Z=D;z&&z.isAtom&&(Z=D+z.nodeSize),N=Math.max(0,Math.min(Z,V.content.size))}const w=L.filter(V=>V.type.startsWith("image/")),R=L.filter(V=>!V.type.startsWith("image/")),H=w.length===1&&R.length===0,F=H?"image/*":"*/*",$=H?1:0,q=!H;a.value=!0;const j=M.schema.nodes.fileUpload.create({accept:F,limit:$,maxSize:0,forceAttachment:q,nodeId:typeof window<"u"&&window.crypto?.randomUUID?.()||Math.random().toString(36).slice(2)}),P=M.state.tr.insert(N,j);M.view.dispatch(P);const I=j.attrs.nodeId;ete(M.view,I,L),a.value=!1}function p(M){const{ids:L,meta:D}=M,_=u.value;!_||!D?.nodeId||_.state.doc.descendants((N,w)=>{if(!(N.attrs?.nodeId!==D.nodeId&&N.attrs?.id!==D.nodeId)){if(N.type.name==="fileUpload"){const R=_.state.tr.setNodeMarkup(w,void 0,{...N.attrs,fileIds:L});R.setMeta("addToHistory",!1),_.view.dispatch(R);return}if(N.type.name==="attachment"){const R=N.attrs.files.map((F,$)=>({...F,id:L[$]??F.id,status:"OK"})),H=_.state.tr.setNodeMarkup(w,void 0,{...N.attrs,files:R,status:"OK"});H.setMeta("addToHistory",!1),_.view.dispatch(H)}if(N.type.name==="image"){const R=_.state.tr.setNodeMarkup(w,void 0,{...N.attrs,id:L[0],status:"OK"});R.setMeta("addToHistory",!1),_.view.dispatch(R)}}})}c.provide("editor",u);function m(){if(!u.value||a.value)return;const M=v(u.value.getJSON()),L=r.data;if(!(!(L&&T(L))&&s.value)&&!C(M,L)){a.value=!0;const _=g(L,r.attachments||[]);u.value.commands.setContent(_),i.value=!1,s.value=!1,a.value=!1}}c.watch(()=>r.data,m),c.watch(()=>r.attachments,M=>{if(!u.value||a.value)return;const L=h();if(b(L,M))return;a.value=!0;const D=g(u.value.getJSON(),M||[]);u.value.commands.setContent(D),a.value=!1}),c.watch(()=>r.readOnly,M=>{u.value&&(a.value=!0,u.value.setEditable(!M),a.value=!1)},{immediate:!0});function g(M,L){if(!M||!L||L.length===0)return M??[];if(Array.isArray(M))return M.map(_=>g(_,L));const D={...M};if(D.type==="image"&&D.attrs?.id){const _=L.find(N=>N.id===D.attrs?.id);_?.download_url&&(D.attrs={...D.attrs,src:_.download_url??D.attrs.src,alt:_.label??D.attrs.label,title:_.label??D.attrs.label})}return D.type==="attachment"&&Array.isArray(D.attrs?.files)&&(D.attrs={...D.attrs,files:D.attrs?.files.map(_=>{const N=L.find(w=>w.id===_.id);return N?{..._,...N}:_})}),D.content&&(D.content=g(D.content,L)),D}function v(M){if(!M)return M;if(Array.isArray(M))return M.filter(D=>D.type!=="fileUpload").map(D=>v(D)).filter(D=>D!==void 0);if(M.type==="fileUpload")return;const L={...M};if(L.type==="image"&&L.attrs?.id&&(L.attrs={id:L.attrs.id,width:L.attrs.width,containerStyle:L.attrs.containerStyle}),L.type==="attachment"&&Array.isArray(L.attrs?.files)&&(L.attrs={...L.attrs,files:L.attrs?.files.map(D=>({id:D.id,label:D.label}))},delete L.attrs.id),L.content){const D=v(L.content);D?L.content=D.filter(_=>_!==void 0):L.content=[]}return L}function y(M,L){let D;return(..._)=>{clearTimeout(D),D=setTimeout(()=>M(..._),L)}}function C(M,L){return JSON.stringify(M)===JSON.stringify(L)}function b(M,L){if(!M&&!L)return!0;if(!M||!L||M.length!==L.length)return!1;const D=new Set(M.map(N=>N.id).filter(Boolean)),_=new Set(L.map(N=>N.id).filter(Boolean));if(D.size!==_.size)return!1;for(const N of D)if(!_.has(N))return!1;return!0}const B=y(M=>{if(a.value)return;const L=v(M);o("update:data",L);const D=h();b(D,r.attachments)||o("update:attachments",D)},300);function T(M){if(!M)return!1;if(Array.isArray(M)){for(const L of M)if(L&&(L.type==="image"||L.type==="attachment"||L.type==="text"&&typeof L.text=="string"&&L.text.trim().length>0||Array.isArray(L.content)&&T(L.content)))return!0;return!1}if(typeof M=="object"){const L=M.content;return Array.isArray(L)?T(L):!1}return!1}function E(M){return!u.value||!M?.content||!Array.isArray(M.content)?!1:M.content.every(L=>L.type==="signature")}function k(){if(!r.suggestedReply||r.readOnly){i.value=!1;return}const L=r.suggestedReply.content;if(!L||!T(L)){i.value=!1;return}if(!A()){i.value=!1;return}if(!u.value)return;const _=g(r.suggestedReply,r.attachments||[]);a.value=!0,u.value.commands.setContent(_),s.value=!0;const N=E(r.suggestedReply);a.value=!1,N?S():i.value=!0}async function S(){if(!i.value&&!s.value||!r.suggestedReply||r.readOnly||(i.value=!1,!u.value))return;a.value=!0;const M=u.value.getJSON(),L=v(M);s.value=!1,a.value=!1,o("update:data",L)}function O(){i.value=!1,u.value&&(a.value=!0,u.value.commands.clearContent(),s.value=!1,a.value=!1,o("update:data",{type:"doc",content:[]}))}function A(){if(s.value||!u.value)return!0;const M=u.value.getJSON();return!M?.content||!Array.isArray(M.content)?!0:!T(M.content)}function x(M,L){if(!u.value||!u.value.getJSON()?.content)return;let _=null,N=null;if(u.value.state.doc.descendants(($,q)=>{if($.type.name==="signature")return _=q,N=$,!1}),_!==null&&N!==null){const $=_,q=N;u.value.chain().deleteRange({from:$,to:$+q.nodeSize}).run()}if(!M.content||M.content.length===0)return;const w=M.content,R=g(w,L),H=u.value.state.doc.content.size-1;u.value.chain().focus().insertContentAt(H,[{type:"signature",content:R}]).run();const F=h();o("update:attachments",F)}return e({acceptSuggestion:()=>{S()},registerFiles:M=>p(M),isEmpty:()=>A(),insertSignature:(M,L)=>{x(M,L)}}),(M,L)=>(c.openBlock(),c.createBlock(lre,{i18n:n.i18n,"is-overlay-visible":i.value,"read-only":n.readOnly,onAcceptSuggestion:S,onDismissSuggestion:O},null,8,["i18n","is-overlay-visible","read-only"]))}}),dre={toEditorData(n){return n||{}},fromEditorData(n,e){return e}},ure={toEditorData(n){return n?.tiptap?n.tiptap:n?.editorjs?hre(n.editorjs):{type:"doc",content:[]}},fromEditorData(n,e){return{tiptap:e}}};function hre(n){if(!n?.blocks)return{type:"doc",content:[]};const e=[];for(const t of n.blocks){const r=fre[t.type]?.(t);r&&e.push(r)}return{type:"doc",content:e}}const fre={paragraph:n=>({type:"paragraph",content:Ia(n.data.text)}),header:n=>({type:"heading",attrs:{level:n.data.level},content:Ia(n.data.text)}),list:n=>mre(n),quote:n=>({type:"blockquote",content:[{type:"paragraph",content:Ia(n.data.text)}]}),code:n=>({type:"codeBlock",content:[{type:"text",text:n.data.code}]}),images:n=>{const e=n.data[0],t={id:e.id};if(e.width){const o={WidthSmall:"25%",WidthMedium:"50%",WidthFull:"100%"}[e.width]||"100%";t.width="100%",t.containerStyle=`position: relative; width: ${o}; height: auto; cursor: pointer;`}if(e.position){const o={AlignStart:"margin: 0px auto 0px 0px;",AlignCenter:"margin: 0px auto;",AlignEnd:"margin: 0px 0px 0px auto;"}[e.position]||"";t.containerStyle?t.containerStyle=`${t.containerStyle} ${o}`:t.containerStyle=`position: relative; ${o}`}return{type:"image",attrs:t}},attachment:n=>({type:"attachment",attrs:{files:n.data.map(e=>({id:e.id,label:e.label}))}}),checklist:n=>({type:"taskList",content:n.data.items.map(e=>({type:"taskItem",attrs:{checked:e.checked},content:[{type:"paragraph",content:Ia(e.text)}]}))}),table:n=>({type:"table",content:n.data.content.map(e=>({type:"tableRow",content:e.map(t=>({type:"tableCell",content:[{type:"paragraph",content:Ia(t)}]}))}))}),delimiter:()=>({type:"horizontalRule"})};function Ia(n){const t=new DOMParser().parseFromString(n,"text/html");function r(o,i=[]){if(o.nodeType===Node.TEXT_NODE){const s=o.nodeValue?.trim();return s?[{type:"text",text:s,marks:i.length?i:void 0}]:[]}if(o.nodeType===Node.ELEMENT_NODE){const s=o;if(s.tagName.toLowerCase()==="br")return[{type:"hardBreak"}];const a=[...i];switch(s.tagName.toLowerCase()){case"b":case"strong":a.push({type:"bold"});break;case"i":case"em":a.push({type:"italic"});break;case"u":a.push({type:"underline"});break;case"mark":a.push({type:"highlight",attrs:{color:"var(--tt-color-highlight-yellow)"}});break;case"code":a.push({type:"code"});break;case"a":a.push({type:"link",attrs:{href:s.getAttribute("href")||""}});break}return Array.from(s.childNodes).flatMap(l=>r(l,a))}return[]}return Array.from(t.body.childNodes).flatMap(o=>r(o))}function pre(n){return n==null?"":typeof n=="string"?n:Array.isArray(n)?n.map(e=>typeof e=="string"?e:e?.text??"").join(`
|
|
430
|
+
</div>`}function T(){const _=g.attrs,N=Array.isArray(_.files)&&_.files.length>0,w=Array.isArray(_.fileIds)&&_.fileIds.length>0;!m&&!p&&u.length===0&&!N&&!w?(o.innerHTML=b(),S()):(o.innerHTML=B(),O()),k(),E()}function E(){const _=o.querySelector('[data-action="remove-node"]');_&&_.addEventListener("click",N=>{N.preventDefault(),N.stopPropagation(),C()})}function k(){h=o.querySelector('input[type="file"]'),h?(h.accept=i,h.multiple=s===0||s>1):(h=document.createElement("input"),h.type="file",h.name="file",h.accept=i,h.multiple=s===0||s>1,h.style.display="none",o.appendChild(h)),h.onchange=_=>{const w=_.target.files;if(!w||w.length===0){v.onError?.(new Error("No file selected"));return}L(Array.from(w))}}function S(){const _=o.querySelector(".tiptap-image-upload-drag-area");_&&(_.addEventListener("dragenter",N=>{N.preventDefault(),N.stopPropagation(),_.classList.add("drag-active")}),_.addEventListener("dragleave",N=>{N.preventDefault(),N.stopPropagation();const w=N.relatedTarget;(!w||w instanceof Element&&!_.contains(w))&&_.classList.remove("drag-active","drag-over")}),_.addEventListener("dragover",N=>{N.preventDefault(),N.stopPropagation(),_.classList.add("drag-over")}),_.addEventListener("drop",N=>{N.preventDefault(),N.stopPropagation(),_.classList.remove("drag-active","drag-over");const R=Array.from(N.dataTransfer?.files||[]);R.length>0&&L(R)}))}function O(){o.querySelector("[data-clear-all]")?.addEventListener("click",_=>{_.stopPropagation(),x()}),o.querySelectorAll("[data-remove-file]").forEach(_=>{_.addEventListener("click",N=>{N.stopPropagation();const w=_.dataset.removeFile;w&&A(w)})})}function A(_){const N=u.find(w=>w.id===_);N?.abortController&&N.abortController.abort(),N?.url&&URL.revokeObjectURL(N.url),u.splice(u.findIndex(w=>w.id===_),1),T()}function x(){u.forEach(_=>{_.abortController&&_.abortController.abort(),_.url&&URL.revokeObjectURL(_.url)}),u.length=0,p=!1,m=!1,T()}function M(_,N,w){if(!_)return;const R=_.attrs.files||[],H=R.filter(q=>q.type?.startsWith("image/")),F=R.filter(q=>!q.type?.startsWith("image/"));if(_.attrs.forceAttachment||r.options.forceAttachment||!1||H.length!==1||F.length>0){const q=R.map((P,I)=>({label:P.file.name,download_url:URL.createObjectURL(P.file),id:w[I],status:"OK"})),j=e.state.tr.replaceWith(N,N+_.nodeSize,e.schema.nodes.attachment.create({files:q,id:w[0]}));j.setMeta("addToHistory",!1),e.view.dispatch(j)}else{const q=H[0],j=e.state.tr.replaceWith(N,N+_.nodeSize,e.schema.nodes.image.create({src:URL.createObjectURL(q.file),title:q.file.name,alt:q.file.name,id:w[0],width:"100%"}));j.setMeta("addToHistory",!1),e.view.dispatch(j)}}async function L(_){if(_.length===0)return;p=!0;const N=crypto.randomUUID?.()||Math.random().toString(36).slice(2),w=_.map(H=>({file:H,type:H.type,name:H.name})),R=t();C1(R)&&e.view.dispatch(e.state.tr.setNodeMarkup(R,void 0,{...n.attrs,nodeId:N,files:w,accept:n.attrs.accept,limit:n.attrs.limit,maxSize:n.attrs.maxSize,forceAttachment:n.attrs.forceAttachment})),u.push(..._.map(H=>({id:crypto.randomUUID(),file:H,progress:0,status:"uploading"}))),T(),r.options.onFileUpload&&r.options.onFileUpload({files:_,meta:{nodeId:N}}),setTimeout(()=>{u.forEach(H=>{H.status==="uploading"&&(H.progress=25)}),T()},300)}o.addEventListener("click",_=>{_.target.closest('[data-action="remove-node"]')||h&&u.length===0&&(h.value="",h.click())});const D=()=>{if(f)return;f=!0;const _=t();if(!C1(_))return;const N=b1.get(e.view),w=g.attrs.nodeId||n.attrs.nodeId;if(!N||!w)return;const R=N.get(w);!R||R.length===0||(N.delete(w),N.size===0&&b1.delete(e.view),L(R))};return T(),setTimeout(D,0),{dom:o,update:_=>{if(g=_,_.type.name!==n.type.name)return!1;if(_.attrs.fileIds&&Array.isArray(_.attrs.fileIds)&&_.attrs.fileIds.length>0){m=!0,u.length>0&&(u.forEach(w=>{w.progress=100,w.status="success"}),T());const N=t();return C1(N)&&setTimeout(()=>{M(_,N,_.attrs.fileIds)},50),!1}return!0}}}},addCommands(){return{setFileUploadNode:n=>({commands:e,state:t})=>{const{selection:r}=t,{$from:o}=r;if(r instanceof fe&&r.node.isAtom){const d=r.from+r.node.nodeSize;return e.insertContentAt(d,{type:this.name,attrs:n})}const i=o.nodeAfter,s=o.nodeBefore,a=o.parent;if(s&&s.isAtom){const d=o.pos;return e.insertContentAt(d,{type:this.name,attrs:n})}if(i&&i.isAtom){const d=o.pos+i.nodeSize;return e.insertContentAt(d,{type:this.name,attrs:n})}const l=o.index(o.depth);if(l>0){const d=a.child(l-1);if(d&&d.isAtom){const u=o.start(o.depth)+a.child(l-1).nodeSize;return e.insertContentAt(u,{type:this.name,attrs:n})}}return e.insertContent({type:this.name,attrs:n})}}},addKeyboardShortcuts(){return{Enter:({editor:n})=>{const{selection:e}=n.state,{nodeAfter:t}=e.$from;if(t&&t.type.name==="fileUpload"&&n.isActive("fileUpload")){const r=n.view.nodeDOM(e.$from.pos);if(r&&r instanceof HTMLElement){const o=r.firstChild;if(o&&o instanceof HTMLElement)return o.click(),!0}}return!1}}}}),nte=["aria-label","disabled","type"],Ye=c.defineComponent({__name:"Button",props:{class:{},ariaLabel:{},type:{},disabled:{type:Boolean}},setup(n){const e=n;return(t,r)=>(c.openBlock(),c.createElementBlock("button",c.mergeProps({"aria-label":e.ariaLabel,class:c.unref(ww)("tiptap-button",e.class),disabled:e.disabled,type:e.type||"button"},t.$attrs),[c.renderSlot(t.$slots,"default")],16,nte))}}),rte={};function ote(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M9.70711 3.70711C10.0976 3.31658 10.0976 2.68342 9.70711 2.29289C9.31658 1.90237 8.68342 1.90237 8.29289 2.29289L3.29289 7.29289C2.90237 7.68342 2.90237 8.31658 3.29289 8.70711L8.29289 13.7071C8.68342 14.0976 9.31658 14.0976 9.70711 13.7071C10.0976 13.3166 10.0976 12.6834 9.70711 12.2929L6.41421 9H14.5C15.0909 9 15.6761 9.1164 16.2221 9.34254C16.768 9.56869 17.2641 9.90016 17.682 10.318C18.0998 10.7359 18.4313 11.232 18.6575 11.7779C18.8836 12.3239 19 12.9091 19 13.5C19 14.0909 18.8836 14.6761 18.6575 15.2221C18.4313 15.768 18.0998 16.2641 17.682 16.682C17.2641 17.0998 16.768 17.4313 16.2221 17.6575C15.6761 17.8836 15.0909 18 14.5 18H11C10.4477 18 10 18.4477 10 19C10 19.5523 10.4477 20 11 20H14.5C15.3536 20 16.1988 19.8319 16.9874 19.5052C17.7761 19.1786 18.4926 18.6998 19.0962 18.0962C19.6998 17.4926 20.1786 16.7761 20.5052 15.9874C20.8319 15.1988 21 14.3536 21 13.5C21 12.6464 20.8319 11.8012 20.5052 11.0126C20.1786 10.2239 19.6998 9.50739 19.0962 8.90381C18.4926 8.30022 17.7761 7.82144 16.9874 7.49478C16.1988 7.16813 15.3536 7 14.5 7H6.41421L9.70711 3.70711Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const ite=he(rte,[["render",ote]]),ste={};function ate(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M15.7071 2.29289C15.3166 1.90237 14.6834 1.90237 14.2929 2.29289C13.9024 2.68342 13.9024 3.31658 14.2929 3.70711L17.5858 7H9.5C7.77609 7 6.12279 7.68482 4.90381 8.90381C3.68482 10.1228 3 11.7761 3 13.5C3 14.3536 3.16813 15.1988 3.49478 15.9874C3.82144 16.7761 4.30023 17.4926 4.90381 18.0962C6.12279 19.3152 7.77609 20 9.5 20H13C13.5523 20 14 19.5523 14 19C14 18.4477 13.5523 18 13 18H9.5C8.30653 18 7.16193 17.5259 6.31802 16.682C5.90016 16.2641 5.56869 15.768 5.34254 15.2221C5.1164 14.6761 5 14.0909 5 13.5C5 12.3065 5.47411 11.1619 6.31802 10.318C7.16193 9.47411 8.30653 9 9.5 9H17.5858L14.2929 12.2929C13.9024 12.6834 13.9024 13.3166 14.2929 13.7071C14.6834 14.0976 15.3166 14.0976 15.7071 13.7071L20.7071 8.70711C21.0976 8.31658 21.0976 7.68342 20.7071 7.29289L15.7071 2.29289Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const lte=he(ste,[["render",ate]]),cte={key:0,class:"tiptap-button-text"},xw=c.defineComponent({__name:"UndoRedoButton",props:{action:{},text:{},showShortcut:{type:Boolean},hideWhenUnavailable:{type:Boolean}},setup(n){const e=c.inject("editor"),t=n,r=c.computed(()=>e?.value?t.action==="undo"?e.value.can().undo():e.value.can().redo():!1);function o(){if(!e?.value)return;const i=e.value.chain().focus();t.action==="undo"?i.undo().run():i.redo().run()}return(i,s)=>n.hideWhenUnavailable&&!r.value?c.createCommentVNode("",!0):(c.openBlock(),c.createBlock(Ye,{key:0,"data-style":"ghost",disabled:!r.value,type:"button",onClick:o},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(n.action==="undo"?ite:lte),{class:"tiptap-button-icon"})),n.text?(c.openBlock(),c.createElementBlock("span",cte,c.toDisplayString(n.text),1)):c.createCommentVNode("",!0)]),_:1},8,["disabled"]))}}),dte=["data-orientation"],Da=he(c.defineComponent({__name:"Separator",props:{orientation:{default:"vertical"},decorative:{type:Boolean,default:!1},class:{default:""}},setup(n){const e=n,t=c.ref(null),r=c.computed(()=>e.decorative?{role:"none"}:{role:"separator","aria-orientation":e.orientation==="vertical"?e.orientation:void 0});return(o,i)=>(c.openBlock(),c.createElementBlock("div",c.mergeProps({ref_key:"separatorRef",ref:t,class:c.unref(ww)("tiptap-separator",e.class),"data-orientation":e.orientation},r.value),null,16,dte))}}),[["__scopeId","data-v-fed9a22e"]]),ute={},hte={ref:"toolbar","aria-label":"toolbar",class:"tiptap-toolbar","data-variant":"fixed",role:"toolbar"};function fte(n,e){return c.openBlock(),c.createElementBlock("div",hte,[c.renderSlot(n.$slots,"default")],512)}const pte=he(ute,[["render",fte]]),R2=he(c.defineComponent({__name:"Dropdown",props:{orientation:{default:"column"},open:{type:Boolean,default:!1}},setup(n){const e=n;c.watch(()=>e.open,h=>t.value=h);const t=c.ref(!1),r=c.ref(null),o=c.ref(null),i=c.ref({top:0,left:0,width:0,height:0});function s(){t.value=!t.value,t.value&&l()}const a=()=>t.value=!1;function l(){if(!r.value)return;const h=r.value.getBoundingClientRect();i.value={top:h.bottom+window.scrollY+10,left:h.left+window.scrollX,width:h.width,height:h.height}}const d=c.computed(()=>({position:"absolute",top:`${i.value.top}px`,left:`${i.value.left+i.value.width/2}px`,transform:"translateX(-50%)",zIndex:9999,flexDirection:e.orientation}));function u(h){if(t.value&&o.value&&!o.value.contains(h.target)&&!r.value?.contains(h.target)){if(e.open)return;t.value=!1}}return c.onMounted(()=>{window.addEventListener("click",u),window.addEventListener("resize",l),window.addEventListener("scroll",l,!0)}),c.onBeforeUnmount(()=>{window.removeEventListener("click",u),window.removeEventListener("resize",l),window.removeEventListener("scroll",l,!0)}),(h,f)=>(c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createElementVNode("div",{ref_key:"triggerRef",ref:r,class:"dropdown-trigger",onClick:s},[c.renderSlot(h.$slots,"trigger",{isOpen:t.value},void 0,!0)],512),(c.openBlock(),c.createBlock(c.Teleport,{to:"body"},[t.value?(c.openBlock(),c.createElementBlock("div",{key:0,ref_key:"menuRef",ref:o,class:"dropdown-content",style:c.normalizeStyle(d.value)},[c.renderSlot(h.$slots,"items",{close:a},void 0,!0)],4)):c.createCommentVNode("",!0)]))],64))}}),[["__scopeId","data-v-02e587bf"]]),mte={};function gte(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{d:"M6 3C6.55228 3 7 3.44772 7 4V11H17V4C17 3.44772 17.4477 3 18 3C18.5523 3 19 3.44772 19 4V20C19 20.5523 18.5523 21 18 21C17.4477 21 17 20.5523 17 20V13H7V20C7 20.5523 6.55228 21 6 21C5.44772 21 5 20.5523 5 20V4C5 3.44772 5.44772 3 6 3Z",fill:"currentColor"},null,-1)])],16)}const vte=he(mte,[["render",gte]]),yte={};function Cte(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M5.29289 8.29289C5.68342 7.90237 6.31658 7.90237 6.70711 8.29289L12 13.5858L17.2929 8.29289C17.6834 7.90237 18.3166 7.90237 18.7071 8.29289C19.0976 8.68342 19.0976 9.31658 18.7071 9.70711L12.7071 15.7071C12.3166 16.0976 11.6834 16.0976 11.2929 15.7071L5.29289 9.70711C4.90237 9.31658 4.90237 8.68342 5.29289 8.29289Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const c6=he(yte,[["render",Cte]]),bte={};function wte(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{d:"M5 6C5 5.44772 4.55228 5 4 5C3.44772 5 3 5.44772 3 6V18C3 18.5523 3.44772 19 4 19C4.55228 19 5 18.5523 5 18V13H11V18C11 18.5523 11.4477 19 12 19C12.5523 19 13 18.5523 13 18V6C13 5.44772 12.5523 5 12 5C11.4477 5 11 5.44772 11 6V11H5V6Z",fill:"currentColor"},null,-1),c.createElementVNode("path",{d:"M21.0001 10C21.0001 9.63121 20.7971 9.29235 20.472 9.11833C20.1468 8.94431 19.7523 8.96338 19.4454 9.16795L16.4454 11.168C15.9859 11.4743 15.8617 12.0952 16.1681 12.5547C16.4744 13.0142 17.0953 13.1384 17.5548 12.8321L19.0001 11.8685V18C19.0001 18.5523 19.4478 19 20.0001 19C20.5524 19 21.0001 18.5523 21.0001 18V10Z",fill:"currentColor"},null,-1)])],16)}const Sw=he(bte,[["render",wte]]),kte={};function xte(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{d:"M5 6C5 5.44772 4.55228 5 4 5C3.44772 5 3 5.44772 3 6V18C3 18.5523 3.44772 19 4 19C4.55228 19 5 18.5523 5 18V13H11V18C11 18.5523 11.4477 19 12 19C12.5523 19 13 18.5523 13 18V6C13 5.44772 12.5523 5 12 5C11.4477 5 11 5.44772 11 6V11H5V6Z",fill:"currentColor"},null,-1),c.createElementVNode("path",{d:"M22.0001 12C22.0001 10.7611 21.1663 9.79297 20.0663 9.42632C18.9547 9.05578 17.6171 9.28724 16.4001 10.2C15.9582 10.5314 15.8687 11.1582 16.2001 11.6C16.5314 12.0418 17.1582 12.1314 17.6001 11.8C18.383 11.2128 19.0455 11.1942 19.4338 11.3237C19.8339 11.457 20.0001 11.7389 20.0001 12C20.0001 12.4839 19.8554 12.7379 19.6537 12.9481C19.4275 13.1837 19.1378 13.363 18.7055 13.6307C18.6313 13.6767 18.553 13.7252 18.4701 13.777C17.9572 14.0975 17.3128 14.5261 16.8163 15.2087C16.3007 15.9177 16.0001 16.8183 16.0001 18C16.0001 18.5523 16.4478 19 17.0001 19H21.0001C21.5523 19 22.0001 18.5523 22.0001 18C22.0001 17.4477 21.5523 17 21.0001 17H18.131C18.21 16.742 18.3176 16.5448 18.4338 16.385C18.6873 16.0364 19.0429 15.7775 19.5301 15.473C19.5898 15.4357 19.6536 15.3966 19.7205 15.3556C20.139 15.0992 20.6783 14.7687 21.0964 14.3332C21.6447 13.7621 22.0001 13.0161 22.0001 12Z",fill:"currentColor"},null,-1)])],16)}const Ew=he(kte,[["render",xte]]),Ste={};function Ete(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{d:"M4 5C4.55228 5 5 5.44772 5 6V11H11V6C11 5.44772 11.4477 5 12 5C12.5523 5 13 5.44772 13 6V18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18V13H5V18C5 18.5523 4.55228 19 4 19C3.44772 19 3 18.5523 3 18V6C3 5.44772 3.44772 5 4 5Z",fill:"currentColor"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M19.4608 11.2169C19.1135 11.0531 18.5876 11.0204 18.0069 11.3619C17.5309 11.642 16.918 11.4831 16.638 11.007C16.358 10.531 16.5169 9.91809 16.9929 9.63807C18.1123 8.97962 19.3364 8.94691 20.314 9.40808C21.2839 9.86558 21.9999 10.818 21.9999 12C21.9999 12.7957 21.6838 13.5587 21.1212 14.1213C20.5586 14.6839 19.7956 15 18.9999 15C18.4476 15 17.9999 14.5523 17.9999 14C17.9999 13.4477 18.4476 13 18.9999 13C19.2651 13 19.5195 12.8947 19.707 12.7071C19.8946 12.5196 19.9999 12.2652 19.9999 12C19.9999 11.6821 19.8159 11.3844 19.4608 11.2169Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M18.0001 14C18.0001 13.4477 18.4478 13 19.0001 13C19.7957 13 20.5588 13.3161 21.1214 13.8787C21.684 14.4413 22.0001 15.2043 22.0001 16C22.0001 17.2853 21.2767 18.3971 20.1604 18.8994C19.0257 19.41 17.642 19.2315 16.4001 18.3C15.9582 17.9686 15.8687 17.3418 16.2001 16.9C16.5314 16.4582 17.1582 16.3686 17.6001 16.7C18.3581 17.2685 18.9744 17.24 19.3397 17.0756C19.7234 16.9029 20.0001 16.5147 20.0001 16C20.0001 15.7348 19.8947 15.4804 19.7072 15.2929C19.5196 15.1054 19.2653 15 19.0001 15C18.4478 15 18.0001 14.5523 18.0001 14Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const Mw=he(Ste,[["render",Ete]]),Mte={};function Tte(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{d:"M4 5C4.55228 5 5 5.44772 5 6V11H11V6C11 5.44772 11.4477 5 12 5C12.5523 5 13 5.44772 13 6V18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18V13H5V18C5 18.5523 4.55228 19 4 19C3.44772 19 3 18.5523 3 18V6C3 5.44772 3.44772 5 4 5Z",fill:"currentColor"},null,-1),c.createElementVNode("path",{d:"M17 9C17.5523 9 18 9.44772 18 10V13H20V10C20 9.44772 20.4477 9 21 9C21.5523 9 22 9.44772 22 10V18C22 18.5523 21.5523 19 21 19C20.4477 19 20 18.5523 20 18V15H17C16.4477 15 16 14.5523 16 14V10C16 9.44772 16.4477 9 17 9Z",fill:"currentColor"},null,-1)])],16)}const Tw=he(Mte,[["render",Tte]]),Bte=c.defineComponent({__name:"HeadingDropdown",setup(n){const e=c.inject("editor"),t={1:Sw,2:Ew,3:Mw,4:Tw},r=[1,2,3,4],o=c.computed(()=>{if(!e?.value)return null;for(const a of r)if(e.value.isActive("heading",{level:a}))return a;return null}),i=c.computed(()=>o.value?t[o.value]:vte),s=c.computed(()=>o.value!==null);return(a,l)=>(c.openBlock(),c.createBlock(R2,null,{trigger:c.withCtx(({isOpen:d})=>[c.createVNode(Ye,{"data-active-state":d||s.value?"on":"off","data-style":"ghost"},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(i.value),{class:"tiptap-button-icon"})),c.createVNode(c6,{class:"tiptap-button-dropdown-small"})]),_:1},8,["data-active-state"])]),items:c.withCtx(({close:d})=>[c.createVNode(Ye,{"data-active-state":c.unref(e)?.isActive("heading",{level:1})?"on":"off","data-style":"ghost",onClick:u=>{c.unref(e)?.chain().focus().toggleHeading({level:1}).run(),d()}},{default:c.withCtx(()=>[c.createVNode(Sw,{class:"tiptap-button-icon"})]),_:1},8,["data-active-state","onClick"]),c.createVNode(Ye,{"data-active-state":c.unref(e)?.isActive("heading",{level:2})?"on":"off","data-style":"ghost",onClick:u=>{c.unref(e)?.chain().focus().toggleHeading({level:2}).run(),d()}},{default:c.withCtx(()=>[c.createVNode(Ew,{class:"tiptap-button-icon"})]),_:1},8,["data-active-state","onClick"]),c.createVNode(Ye,{"data-active-state":c.unref(e)?.isActive("heading",{level:3})?"on":"off","data-style":"ghost",onClick:u=>{c.unref(e)?.chain().focus().toggleHeading({level:3}).run(),d()}},{default:c.withCtx(()=>[c.createVNode(Mw,{class:"tiptap-button-icon"})]),_:1},8,["data-active-state","onClick"]),c.createVNode(Ye,{"data-active-state":c.unref(e)?.isActive("heading",{level:4})?"on":"off","data-style":"ghost",onClick:u=>{c.unref(e)?.chain().focus().toggleHeading({level:4}).run(),d()}},{default:c.withCtx(()=>[c.createVNode(Tw,{class:"tiptap-button-icon"})]),_:1},8,["data-active-state","onClick"])]),_:1}))}}),_te={};function Ate(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createStaticVNode('<path clip-rule="evenodd" d="M7 6C7 5.44772 7.44772 5 8 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H8C7.44772 7 7 6.55228 7 6Z" fill="currentColor" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M7 12C7 11.4477 7.44772 11 8 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H8C7.44772 13 7 12.5523 7 12Z" fill="currentColor" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M7 18C7 17.4477 7.44772 17 8 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H8C7.44772 19 7 18.5523 7 18Z" fill="currentColor" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M2 6C2 5.44772 2.44772 5 3 5H3.01C3.56228 5 4.01 5.44772 4.01 6C4.01 6.55228 3.56228 7 3.01 7H3C2.44772 7 2 6.55228 2 6Z" fill="currentColor" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M2 12C2 11.4477 2.44772 11 3 11H3.01C3.56228 11 4.01 11.4477 4.01 12C4.01 12.5523 3.56228 13 3.01 13H3C2.44772 13 2 12.5523 2 12Z" fill="currentColor" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M2 18C2 17.4477 2.44772 17 3 17H3.01C3.56228 17 4.01 17.4477 4.01 18C4.01 18.5523 3.56228 19 3.01 19H3C2.44772 19 2 18.5523 2 18Z" fill="currentColor" fill-rule="evenodd"></path>',6)])],16)}const d6=he(_te,[["render",Ate]]),Ote={};function Lte(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createStaticVNode('<path clip-rule="evenodd" d="M2 6C2 4.89543 2.89543 4 4 4H8C9.10457 4 10 4.89543 10 6V10C10 11.1046 9.10457 12 8 12H4C2.89543 12 2 11.1046 2 10V6ZM8 6H4V10H8V6Z" fill="currentColor" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M9.70711 14.2929C10.0976 14.6834 10.0976 15.3166 9.70711 15.7071L5.70711 19.7071C5.31658 20.0976 4.68342 20.0976 4.29289 19.7071L2.29289 17.7071C1.90237 17.3166 1.90237 16.6834 2.29289 16.2929C2.68342 15.9024 3.31658 15.9024 3.70711 16.2929L5 17.5858L8.29289 14.2929C8.68342 13.9024 9.31658 13.9024 9.70711 14.2929Z" fill="currentColor" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M12 6C12 5.44772 12.4477 5 13 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H13C12.4477 7 12 6.55228 12 6Z" fill="currentColor" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M12 12C12 11.4477 12.4477 11 13 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H13C12.4477 13 12 12.5523 12 12Z" fill="currentColor" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M12 18C12 17.4477 12.4477 17 13 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H13C12.4477 19 12 18.5523 12 18Z" fill="currentColor" fill-rule="evenodd"></path>',5)])],16)}const Bw=he(Ote,[["render",Lte]]),Nte={};function Dte(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createStaticVNode('<path clip-rule="evenodd" d="M9 6C9 5.44772 9.44772 5 10 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H10C9.44772 7 9 6.55228 9 6Z" fill="currentColor" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M9 12C9 11.4477 9.44772 11 10 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H10C9.44772 13 9 12.5523 9 12Z" fill="currentColor" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M9 18C9 17.4477 9.44772 17 10 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H10C9.44772 19 9 18.5523 9 18Z" fill="currentColor" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M3 6C3 5.44772 3.44772 5 4 5H5C5.55228 5 6 5.44772 6 6V10C6 10.5523 5.55228 11 5 11C4.44772 11 4 10.5523 4 10V7C3.44772 7 3 6.55228 3 6Z" fill="currentColor" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M3 10C3 9.44772 3.44772 9 4 9H6C6.55228 9 7 9.44772 7 10C7 10.5523 6.55228 11 6 11H4C3.44772 11 3 10.5523 3 10Z" fill="currentColor" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M5.82219 13.0431C6.54543 13.4047 6.99997 14.1319 6.99997 15C6.99997 15.5763 6.71806 16.0426 6.48747 16.35C6.31395 16.5814 6.1052 16.8044 5.91309 17H5.99997C6.55226 17 6.99997 17.4477 6.99997 18C6.99997 18.5523 6.55226 19 5.99997 19H3.99997C3.44769 19 2.99997 18.5523 2.99997 18C2.99997 17.4237 3.28189 16.9575 3.51247 16.65C3.74323 16.3424 4.03626 16.0494 4.26965 15.8161C4.27745 15.8083 4.2852 15.8006 4.29287 15.7929C4.55594 15.5298 4.75095 15.3321 4.88748 15.15C4.96287 15.0495 4.99021 14.9922 4.99911 14.9714C4.99535 14.9112 4.9803 14.882 4.9739 14.8715C4.96613 14.8588 4.95382 14.845 4.92776 14.8319C4.87723 14.8067 4.71156 14.7623 4.44719 14.8944C3.95321 15.1414 3.35254 14.9412 3.10555 14.4472C2.85856 13.9533 3.05878 13.3526 3.55276 13.1056C4.28839 12.7378 5.12272 12.6934 5.82219 13.0431Z" fill="currentColor" fill-rule="evenodd"></path>',6)])],16)}const _w=he(Nte,[["render",Dte]]),Ite=c.defineComponent({__name:"ListDropdown",setup(n){const e=c.inject("editor"),t={bulletList:d6,orderedList:_w,taskList:Bw},r=["bulletList","orderedList","taskList"],o=c.computed(()=>{if(!e?.value)return null;for(const a of r)if(e.value.isActive(a))return a;return null}),i=c.computed(()=>o.value?t[o.value]:d6),s=c.computed(()=>o.value!==null);return(a,l)=>(c.openBlock(),c.createBlock(R2,null,{trigger:c.withCtx(({isOpen:d})=>[c.createVNode(Ye,{"data-active-state":d||s.value?"on":"off","data-style":"ghost"},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(i.value),{class:"tiptap-button-icon"})),c.createVNode(c6,{class:"tiptap-button-dropdown-small"})]),_:1},8,["data-active-state"])]),items:c.withCtx(({close:d})=>[c.createVNode(Ye,{"data-active-state":c.unref(e)?.isActive("bulletList")?"on":"off","data-style":"ghost",onClick:u=>{c.unref(e)?.chain().focus().toggleBulletList().run(),d()}},{default:c.withCtx(()=>[c.createVNode(d6,{class:"tiptap-button-icon"})]),_:1},8,["data-active-state","onClick"]),c.createVNode(Ye,{"data-active-state":c.unref(e)?.isActive("orderedList")?"on":"off","data-style":"ghost",onClick:u=>{c.unref(e)?.chain().focus().toggleOrderedList().run(),d()}},{default:c.withCtx(()=>[c.createVNode(_w,{class:"tiptap-button-icon"})]),_:1},8,["data-active-state","onClick"]),c.createVNode(Ye,{"data-active-state":c.unref(e)?.isActive("taskList")?"on":"off","data-style":"ghost",onClick:u=>{c.unref(e)?.chain().focus().toggleList("taskList","taskItem").run(),d()}},{default:c.withCtx(()=>[c.createVNode(Bw,{class:"tiptap-button-icon"})]),_:1},8,["data-active-state","onClick"])]),_:1}))}}),Pte={};function Rte(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M8 6C8 5.44772 8.44772 5 9 5H16C16.5523 5 17 5.44772 17 6C17 6.55228 16.5523 7 16 7H9C8.44772 7 8 6.55228 8 6Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M4 3C4.55228 3 5 3.44772 5 4L5 20C5 20.5523 4.55229 21 4 21C3.44772 21 3 20.5523 3 20L3 4C3 3.44772 3.44772 3 4 3Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M8 12C8 11.4477 8.44772 11 9 11H20C20.5523 11 21 11.4477 21 12C21 12.5523 20.5523 13 20 13H9C8.44772 13 8 12.5523 8 12Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M8 18C8 17.4477 8.44772 17 9 17H16C16.5523 17 17 17.4477 17 18C17 18.5523 16.5523 19 16 19H9C8.44772 19 8 18.5523 8 18Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const Vte=he(Pte,[["render",Rte]]),Hte=c.defineComponent({__name:"BlockquoteButton",setup(n){const e=c.inject("editor");function t(){if(e?.value&&!(!P2("blockquote",e.value)||l6(e.value,["image"]))&&e.value.can().toggleWrap("blockquote"))try{const i=e.value.view.state.selection;let s=e.value.chain().focus();if(i instanceof fe){const l=i.node.firstChild?.firstChild,d=i.node.lastChild?.lastChild,u=l?i.from+l.nodeSize:i.from+1,h=d?i.to-d.nodeSize:i.to-1;s=s.setTextSelection({from:u,to:h}).clearNodes()}return(e.value.isActive("blockquote")?s.lift("blockquote"):s.wrapIn("blockquote")).run(),e.value.chain().focus().selectTextblockEnd().run(),!0}catch{return!1}}return(r,o)=>(c.openBlock(),c.createBlock(Ye,{"data-active-state":c.unref(e)?.isActive("blockquote")?"on":"off","data-style":"ghost",type:"button",onClick:t},{default:c.withCtx(()=>[c.createVNode(Vte,{class:"tiptap-button-icon"})]),_:1},8,["data-active-state"]))}}),Fte={};function zte(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M6.70711 2.29289C7.09763 2.68342 7.09763 3.31658 6.70711 3.70711L4.41421 6L6.70711 8.29289C7.09763 8.68342 7.09763 9.31658 6.70711 9.70711C6.31658 10.0976 5.68342 10.0976 5.29289 9.70711L2.29289 6.70711C1.90237 6.31658 1.90237 5.68342 2.29289 5.29289L5.29289 2.29289C5.68342 1.90237 6.31658 1.90237 6.70711 2.29289Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M10.2929 2.29289C10.6834 1.90237 11.3166 1.90237 11.7071 2.29289L14.7071 5.29289C15.0976 5.68342 15.0976 6.31658 14.7071 6.70711L11.7071 9.70711C11.3166 10.0976 10.6834 10.0976 10.2929 9.70711C9.90237 9.31658 9.90237 8.68342 10.2929 8.29289L12.5858 6L10.2929 3.70711C9.90237 3.31658 9.90237 2.68342 10.2929 2.29289Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M17 4C17 3.44772 17.4477 3 18 3H19C20.6569 3 22 4.34315 22 6V18C22 19.6569 20.6569 21 19 21H5C3.34315 21 2 19.6569 2 18V12C2 11.4477 2.44772 11 3 11C3.55228 11 4 11.4477 4 12V18C4 18.5523 4.44772 19 5 19H19C19.5523 19 20 18.5523 20 18V6C20 5.44772 19.5523 5 19 5H18C17.4477 5 17 4.55228 17 4Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const $te=he(Fte,[["render",zte]]),jte=c.defineComponent({__name:"CodeblockButton",setup(n){const e=c.inject("editor");function t(){if(e?.value&&!(!P2("codeBlock",e.value)||l6(e.value,["image"])))try{const i=e.value.view.state.selection;let s=e.value.chain().focus();if(i instanceof fe){const l=i.node.firstChild?.firstChild,d=i.node.lastChild?.lastChild,u=l?i.from+l.nodeSize:i.from+1,h=d?i.to-d.nodeSize:i.to-1;s=s.setTextSelection({from:u,to:h}).clearNodes()}return(e.value.isActive("codeBlock")?s.setNode("paragraph"):s.toggleNode("codeBlock","paragraph")).run(),e.value.chain().focus().selectTextblockEnd().run(),!0}catch{return!1}}return(r,o)=>(c.openBlock(),c.createBlock(Ye,{"data-active-state":c.unref(e)?.isActive("codeBlock")?"on":"off","data-style":"ghost",type:"button",onClick:t},{default:c.withCtx(()=>[c.createVNode($te,{class:"tiptap-button-icon"})]),_:1},8,["data-active-state"]))}}),Wte={};function Ute(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"none",height:"24",opacity:"0.7",viewBox:"3 3 18 18",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("rect",{height:"14",rx:"4",stroke:"currentColor","stroke-width":"2",width:"14",x:"5",y:"5"},null,-1),c.createElementVNode("path",{d:"M10 5V18.5",stroke:"currentColor","stroke-width":"2"},null,-1),c.createElementVNode("path",{d:"M5 10H19",stroke:"currentColor","stroke-width":"2"},null,-1)])],16)}const qte=he(Wte,[["render",Ute]]),Zte=c.defineComponent({__name:"TableButton",setup(n){const e=c.inject("editor");function t(){if(e?.value&&!(!P2("table",e.value)||l6(e.value,["image"]))&&e.value.can().insertTable({rows:3,cols:3,withHeaderRow:!0}))try{e.value.chain().focus().insertTable({rows:3,cols:3,withHeaderRow:!0}).run()}catch(r){console.error("Failed to insert table:",r)}}return(r,o)=>(c.openBlock(),c.createBlock(Ye,{"data-active-state":c.unref(e)?.isActive("table")?"on":"off","data-style":"ghost",type:"button",onClick:t},{default:c.withCtx(()=>[c.createVNode(qte,{class:"tiptap-button-icon"})]),_:1},8,["data-active-state"]))}}),Kte={};function Yte(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M6 2.5C5.17157 2.5 4.5 3.17157 4.5 4V20C4.5 20.8284 5.17157 21.5 6 21.5H15C16.4587 21.5 17.8576 20.9205 18.8891 19.8891C19.9205 18.8576 20.5 17.4587 20.5 16C20.5 14.5413 19.9205 13.1424 18.8891 12.1109C18.6781 11.9 18.4518 11.7079 18.2128 11.5359C19.041 10.5492 19.5 9.29829 19.5 8C19.5 6.54131 18.9205 5.14236 17.8891 4.11091C16.8576 3.07946 15.4587 2.5 14 2.5H6ZM14 10.5C14.663 10.5 15.2989 10.2366 15.7678 9.76777C16.2366 9.29893 16.5 8.66304 16.5 8C16.5 7.33696 16.2366 6.70107 15.7678 6.23223C15.2989 5.76339 14.663 5.5 14 5.5H7.5V10.5H14ZM7.5 18.5V13.5H15C15.663 13.5 16.2989 13.7634 16.7678 14.2322C17.2366 14.7011 17.5 15.337 17.5 16C17.5 16.663 17.2366 17.2989 16.7678 17.7678C16.2989 18.2366 15.663 18.5 15 18.5H7.5Z","fill-rule":"evenodd"},null,-1)])],16)}const Xte=he(Kte,[["render",Yte]]),Gte={};function Jte(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{d:"M15.0222 3H19C19.5523 3 20 3.44772 20 4C20 4.55228 19.5523 5 19 5H15.693L10.443 19H14C14.5523 19 15 19.4477 15 20C15 20.5523 14.5523 21 14 21H9.02418C9.00802 21.0004 8.99181 21.0004 8.97557 21H5C4.44772 21 4 20.5523 4 20C4 19.4477 4.44772 19 5 19H8.30704L13.557 5H10C9.44772 5 9 4.55228 9 4C9 3.44772 9.44772 3 10 3H14.9782C14.9928 2.99968 15.0075 2.99967 15.0222 3Z",fill:"currentColor"},null,-1)])],16)}const Qte=he(Gte,[["render",Jte]]),ene={};function tne(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M7 4C7 3.44772 6.55228 3 6 3C5.44772 3 5 3.44772 5 4V10C5 11.8565 5.7375 13.637 7.05025 14.9497C8.36301 16.2625 10.1435 17 12 17C13.8565 17 15.637 16.2625 16.9497 14.9497C18.2625 13.637 19 11.8565 19 10V4C19 3.44772 18.5523 3 18 3C17.4477 3 17 3.44772 17 4V10C17 11.3261 16.4732 12.5979 15.5355 13.5355C14.5979 14.4732 13.3261 15 12 15C10.6739 15 9.40215 14.4732 8.46447 13.5355C7.52678 12.5979 7 11.3261 7 10V4ZM4 19C3.44772 19 3 19.4477 3 20C3 20.5523 3.44772 21 4 21H20C20.5523 21 21 20.5523 21 20C21 19.4477 20.5523 19 20 19H4Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const nne=he(ene,[["render",tne]]),rne={};function one(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{d:"M9.00039 3H16.0001C16.5524 3 17.0001 3.44772 17.0001 4C17.0001 4.55229 16.5524 5 16.0001 5H9.00011C8.68006 4.99983 8.36412 5.07648 8.07983 5.22349C7.79555 5.37051 7.55069 5.5836 7.36585 5.84487C7.181 6.10614 7.06155 6.40796 7.01754 6.72497C6.97352 7.04198 7.00623 7.36492 7.11292 7.66667C7.29701 8.18737 7.02414 8.75872 6.50344 8.94281C5.98274 9.1269 5.4114 8.85403 5.2273 8.33333C5.01393 7.72984 4.94851 7.08396 5.03654 6.44994C5.12456 5.81592 5.36346 5.21229 5.73316 4.68974C6.10285 4.1672 6.59256 3.74101 7.16113 3.44698C7.72955 3.15303 8.36047 2.99975 9.00039 3Z",fill:"currentColor"},null,-1),c.createElementVNode("path",{d:"M18 13H20C20.5523 13 21 12.5523 21 12C21 11.4477 20.5523 11 20 11H4C3.44772 11 3 11.4477 3 12C3 12.5523 3.44772 13 4 13H14C14.7956 13 15.5587 13.3161 16.1213 13.8787C16.6839 14.4413 17 15.2044 17 16C17 16.7956 16.6839 17.5587 16.1213 18.1213C15.5587 18.6839 14.7956 19 14 19H6C5.44772 19 5 19.4477 5 20C5 20.5523 5.44772 21 6 21H14C15.3261 21 16.5979 20.4732 17.5355 19.5355C18.4732 18.5979 19 17.3261 19 16C19 14.9119 18.6453 13.8604 18 13Z",fill:"currentColor"},null,-1)])],16)}const ine=he(rne,[["render",one]]),sne={};function ane(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{d:"M15.4545 4.2983C15.6192 3.77115 15.3254 3.21028 14.7983 3.04554C14.2712 2.88081 13.7103 3.1746 13.5455 3.70175L8.54554 19.7017C8.38081 20.2289 8.6746 20.7898 9.20175 20.9545C9.72889 21.1192 10.2898 20.8254 10.4545 20.2983L15.4545 4.2983Z",fill:"currentColor"},null,-1),c.createElementVNode("path",{d:"M6.70711 7.29289C7.09763 7.68342 7.09763 8.31658 6.70711 8.70711L3.41421 12L6.70711 15.2929C7.09763 15.6834 7.09763 16.3166 6.70711 16.7071C6.31658 17.0976 5.68342 17.0976 5.29289 16.7071L1.29289 12.7071C0.902369 12.3166 0.902369 11.6834 1.29289 11.2929L5.29289 7.29289C5.68342 6.90237 6.31658 6.90237 6.70711 7.29289Z",fill:"currentColor"},null,-1),c.createElementVNode("path",{d:"M17.2929 7.29289C17.6834 6.90237 18.3166 6.90237 18.7071 7.29289L22.7071 11.2929C23.0976 11.6834 23.0976 12.3166 22.7071 12.7071L18.7071 16.7071C18.3166 17.0976 17.6834 17.0976 17.2929 16.7071C16.9024 16.3166 16.9024 15.6834 17.2929 15.2929L20.5858 12L17.2929 8.70711C16.9024 8.31658 16.9024 7.68342 17.2929 7.29289Z",fill:"currentColor"},null,-1)])],16)}const lne=he(sne,[["render",ane]]),cne={};function dne(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M12.7071 7.29289C13.0976 7.68342 13.0976 8.31658 12.7071 8.70711L4.70711 16.7071C4.31658 17.0976 3.68342 17.0976 3.29289 16.7071C2.90237 16.3166 2.90237 15.6834 3.29289 15.2929L11.2929 7.29289C11.6834 6.90237 12.3166 6.90237 12.7071 7.29289Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M3.29289 7.29289C3.68342 6.90237 4.31658 6.90237 4.70711 7.29289L12.7071 15.2929C13.0976 15.6834 13.0976 16.3166 12.7071 16.7071C12.3166 17.0976 11.6834 17.0976 11.2929 16.7071L3.29289 8.70711C2.90237 8.31658 2.90237 7.68342 3.29289 7.29289Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M17.405 1.40657C18.0246 1.05456 18.7463 0.92634 19.4492 1.04344C20.1521 1.16054 20.7933 1.51583 21.2652 2.0497L21.2697 2.05469L21.2696 2.05471C21.7431 2.5975 22 3.28922 22 4.00203C22 5.08579 21.3952 5.84326 20.7727 6.34289C20.1966 6.80531 19.4941 7.13675 18.9941 7.37261C18.9714 7.38332 18.9491 7.39383 18.9273 7.40415C18.4487 7.63034 18.2814 7.78152 18.1927 7.91844C18.1778 7.94155 18.1625 7.96834 18.1473 8.00003H21C21.5523 8.00003 22 8.44774 22 9.00003C22 9.55231 21.5523 10 21 10H17C16.4477 10 16 9.55231 16 9.00003C16 8.17007 16.1183 7.44255 16.5138 6.83161C16.9107 6.21854 17.4934 5.86971 18.0728 5.59591C18.6281 5.33347 19.1376 5.09075 19.5208 4.78316C19.8838 4.49179 20 4.25026 20 4.00203C20 3.77192 19.9178 3.54865 19.7646 3.37182C19.5968 3.18324 19.3696 3.05774 19.1205 3.01625C18.8705 2.97459 18.6137 3.02017 18.3933 3.14533C18.1762 3.26898 18.0191 3.45826 17.9406 3.67557C17.7531 4.19504 17.18 4.46414 16.6605 4.27662C16.141 4.0891 15.8719 3.51596 16.0594 2.99649C16.303 2.3219 16.7817 1.76125 17.4045 1.40689L17.405 1.40657Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const une=he(cne,[["render",dne]]),hne={};function fne(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M3.29289 7.29289C3.68342 6.90237 4.31658 6.90237 4.70711 7.29289L12.7071 15.2929C13.0976 15.6834 13.0976 16.3166 12.7071 16.7071C12.3166 17.0976 11.6834 17.0976 11.2929 16.7071L3.29289 8.70711C2.90237 8.31658 2.90237 7.68342 3.29289 7.29289Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M12.7071 7.29289C13.0976 7.68342 13.0976 8.31658 12.7071 8.70711L4.70711 16.7071C4.31658 17.0976 3.68342 17.0976 3.29289 16.7071C2.90237 16.3166 2.90237 15.6834 3.29289 15.2929L11.2929 7.29289C11.6834 6.90237 12.3166 6.90237 12.7071 7.29289Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M17.4079 14.3995C18.0284 14.0487 18.7506 13.9217 19.4536 14.0397C20.1566 14.1578 20.7977 14.5138 21.2696 15.0481L21.2779 15.0574L21.2778 15.0575C21.7439 15.5988 22 16.2903 22 17C22 18.0823 21.3962 18.8401 20.7744 19.3404C20.194 19.8073 19.4858 20.141 18.9828 20.378C18.9638 20.387 18.9451 20.3958 18.9266 20.4045C18.4473 20.6306 18.2804 20.7817 18.1922 20.918C18.1773 20.9412 18.1619 20.9681 18.1467 21H21C21.5523 21 22 21.4477 22 22C22 22.5523 21.5523 23 21 23H17C16.4477 23 16 22.5523 16 22C16 21.1708 16.1176 20.4431 16.5128 19.832C16.9096 19.2184 17.4928 18.8695 18.0734 18.5956C18.6279 18.334 19.138 18.0901 19.5207 17.7821C19.8838 17.49 20 17.2477 20 17C20 16.7718 19.9176 16.5452 19.7663 16.3672C19.5983 16.1792 19.3712 16.0539 19.1224 16.0121C18.8722 15.9701 18.6152 16.015 18.3942 16.1394C18.1794 16.2628 18.0205 16.4549 17.9422 16.675C17.7572 17.1954 17.1854 17.4673 16.665 17.2822C16.1446 17.0972 15.8728 16.5254 16.0578 16.005C16.2993 15.3259 16.7797 14.7584 17.4039 14.4018L17.4079 14.3995L17.4079 14.3995Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const pne=he(hne,[["render",fne]]),Os=c.defineComponent({__name:"MarkButton",props:{type:{}},setup(n){const e=c.inject("editor"),t=n,r={bold:Xte,italic:Qte,underline:nne,strike:ine,code:lne,superscript:une,subscript:pne};function o(){!e||!e.value||!e.value.can().toggleMark(t.type)||e.value.chain().focus().toggleMark(t.type).run()}return(i,s)=>(c.openBlock(),c.createBlock(Ye,{"data-active-state":c.unref(e)?.isActive(n.type)?"on":"off","data-style":"ghost",type:"button",onClick:o},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(r[n.type]),{class:"tiptap-button-icon"}))]),_:1},8,["data-active-state"]))}}),mne={};function gne(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M14.7072 4.70711C15.0977 4.31658 15.0977 3.68342 14.7072 3.29289C14.3167 2.90237 13.6835 2.90237 13.293 3.29289L8.69294 7.89286L8.68594 7.9C8.13626 8.46079 7.82837 9.21474 7.82837 10C7.82837 10.2306 7.85491 10.4584 7.90631 10.6795L2.29289 16.2929C2.10536 16.4804 2 16.7348 2 17V20C2 20.5523 2.44772 21 3 21H12C12.2652 21 12.5196 20.8946 12.7071 20.7071L15.3205 18.0937C15.5416 18.1452 15.7695 18.1717 16.0001 18.1717C16.7853 18.1717 17.5393 17.8639 18.1001 17.3142L22.7072 12.7071C23.0977 12.3166 23.0977 11.6834 22.7072 11.2929C22.3167 10.9024 21.6835 10.9024 21.293 11.2929L16.6971 15.8887C16.5105 16.0702 16.2605 16.1717 16.0001 16.1717C15.7397 16.1717 15.4897 16.0702 15.303 15.8887L10.1113 10.697C9.92992 10.5104 9.82837 10.2604 9.82837 10C9.82837 9.73963 9.92992 9.48958 10.1113 9.30297L14.7072 4.70711ZM13.5858 17L9.00004 12.4142L4 17.4142V19H11.5858L13.5858 17Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const vne=he(mne,[["render",gne]]),yne={};function Cne(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M4.43471 4.01458C4.34773 4.06032 4.26607 4.11977 4.19292 4.19292C4.11977 4.26607 4.06032 4.34773 4.01458 4.43471C2.14611 6.40628 1 9.0693 1 12C1 18.0751 5.92487 23 12 23C14.9306 23 17.5936 21.854 19.5651 19.9856C19.6522 19.9398 19.7339 19.8803 19.8071 19.8071C19.8803 19.7339 19.9398 19.6522 19.9856 19.5651C21.854 17.5936 23 14.9306 23 12C23 5.92487 18.0751 1 12 1C9.0693 1 6.40628 2.14611 4.43471 4.01458ZM6.38231 4.9681C7.92199 3.73647 9.87499 3 12 3C16.9706 3 21 7.02944 21 12C21 14.125 20.2635 16.078 19.0319 17.6177L6.38231 4.9681ZM17.6177 19.0319C16.078 20.2635 14.125 21 12 21C7.02944 21 3 16.9706 3 12C3 9.87499 3.73647 7.92199 4.9681 6.38231L17.6177 19.0319Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const bne=he(yne,[["render",Cne]]),wne=c.defineComponent({__name:"ColorHighlightDropdown",setup(n){const e=c.inject("editor"),t=[{label:"Default background",value:"var(--tt-bg-color)",border:"var(--tt-bg-color-contrast)"},{label:"Gray background",value:"var(--tt-color-highlight-gray)",border:"var(--tt-color-highlight-gray-contrast)"},{label:"Brown background",value:"var(--tt-color-highlight-brown)",border:"var(--tt-color-highlight-brown-contrast)"},{label:"Orange background",value:"var(--tt-color-highlight-orange)",border:"var(--tt-color-highlight-orange-contrast)"},{label:"Yellow background",value:"var(--tt-color-highlight-yellow)",border:"var(--tt-color-highlight-yellow-contrast)"},{label:"Green background",value:"var(--tt-color-highlight-green)",border:"var(--tt-color-highlight-green-contrast)"},{label:"Blue background",value:"var(--tt-color-highlight-blue)",border:"var(--tt-color-highlight-blue-contrast)"},{label:"Purple background",value:"var(--tt-color-highlight-purple)",border:"var(--tt-color-highlight-purple-contrast)"},{label:"Pink background",value:"var(--tt-color-highlight-pink)",border:"var(--tt-color-highlight-pink-contrast)"},{label:"Red background",value:"var(--tt-color-highlight-red)",border:"var(--tt-color-highlight-red-contrast)"}],r=["var(--tt-color-highlight-green)","var(--tt-color-highlight-blue)","var(--tt-color-highlight-red)","var(--tt-color-highlight-purple)","var(--tt-color-highlight-yellow)"];function o(a){return t.find(l=>l.value===a)}const i=()=>{if(!e||!e.value)return!1;e.value.chain().focus().unsetMark("highlight").run()},s=a=>{const l=o(a);if(!l||!e||!e.value)return!1;if(e.value.state.storedMarks){const d=e.value.schema.marks.highlight;d&&e.value.view.dispatch(e.value.state.tr.removeStoredMark(d))}setTimeout(()=>{!e||!e.value||e.value.chain().focus().toggleMark("highlight",{color:l.value}).run()},0)};return(a,l)=>(c.openBlock(),c.createBlock(R2,{orientation:"row"},{trigger:c.withCtx(({isOpen:d})=>[c.createVNode(Ye,{"data-active-state":c.unref(e)?.isActive("highlight")||d?"on":"off","data-style":"ghost",type:"button"},{default:c.withCtx(()=>[c.createVNode(vne,{class:"tiptap-button-icon"})]),_:1},8,["data-active-state"])]),items:c.withCtx(({close:d})=>[(c.openBlock(),c.createElementBlock(c.Fragment,null,c.renderList(r,u=>c.createVNode(Ye,{key:u,"data-active-state":c.unref(e)?.isActive("highlight",{color:u})?"on":"off","data-style":"ghost",type:"button",onClick:h=>{s(u),d()}},{default:c.withCtx(()=>[c.createElementVNode("span",{class:"tiptap-button-highlight",style:c.normalizeStyle({"--highlight-color":u})},null,4)]),_:2},1032,["data-active-state","onClick"])),64)),c.createVNode(Da),c.createVNode(Ye,{"data-style":"ghost",type:"button",onClick:u=>{i(),d()}},{default:c.withCtx(()=>[c.createVNode(bne,{class:"tiptap-button-icon"})]),_:1},8,["onClick"])]),_:1}))}}),kne={};function xne(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{d:"M16.9958 1.06669C15.4226 1.05302 13.907 1.65779 12.7753 2.75074L12.765 2.76086L11.045 4.47086C10.6534 4.86024 10.6515 5.49341 11.0409 5.88507C11.4303 6.27673 12.0634 6.27858 12.4551 5.88919L14.1697 4.18456C14.9236 3.45893 15.9319 3.05752 16.9784 3.06662C18.0272 3.07573 19.0304 3.49641 19.772 4.23804C20.5137 4.97967 20.9344 5.98292 20.9435 7.03171C20.9526 8.07776 20.5515 9.08563 19.8265 9.83941L16.833 12.8329C16.4274 13.2386 15.9393 13.5524 15.4019 13.7529C14.8645 13.9533 14.2903 14.0359 13.7181 13.9949C13.146 13.9539 12.5894 13.7904 12.0861 13.5154C11.5827 13.2404 11.1444 12.8604 10.8008 12.401C10.47 11.9588 9.84333 11.8685 9.40108 12.1993C8.95883 12.5301 8.86849 13.1568 9.1993 13.599C9.71464 14.288 10.3721 14.858 11.1272 15.2705C11.8822 15.683 12.7171 15.9283 13.5753 15.9898C14.4334 16.0513 15.2948 15.9274 16.1009 15.6267C16.907 15.326 17.639 14.8555 18.2473 14.247L21.2472 11.2471L21.2593 11.2347C22.3523 10.1031 22.9571 8.58751 22.9434 7.01433C22.9297 5.44115 22.2987 3.93628 21.1863 2.82383C20.0738 1.71138 18.5689 1.08036 16.9958 1.06669Z",fill:"currentColor"},null,-1),c.createElementVNode("path",{d:"M10.4247 8.0102C9.56657 7.94874 8.70522 8.07256 7.89911 8.37326C7.09305 8.67395 6.36096 9.14458 5.75272 9.753L2.75285 12.7529L2.74067 12.7653C1.64772 13.8969 1.04295 15.4125 1.05662 16.9857C1.07029 18.5589 1.70131 20.0637 2.81376 21.1762C3.9262 22.2886 5.43108 22.9196 7.00426 22.9333C8.57744 22.947 10.0931 22.3422 11.2247 21.2493L11.2371 21.2371L12.9471 19.5271C13.3376 19.1366 13.3376 18.5034 12.9471 18.1129C12.5565 17.7223 11.9234 17.7223 11.5328 18.1129L9.82932 19.8164C9.07555 20.5414 8.06768 20.9425 7.02164 20.9334C5.97285 20.9243 4.9696 20.5036 4.22797 19.762C3.48634 19.0203 3.06566 18.0171 3.05655 16.9683C3.04746 15.9222 3.44851 14.9144 4.17355 14.1606L7.16719 11.167C7.5727 10.7613 8.06071 10.4476 8.59811 10.2471C9.13552 10.0467 9.70976 9.96412 10.2819 10.0051C10.854 10.0461 11.4106 10.2096 11.9139 10.4846C12.4173 10.7596 12.8556 11.1397 13.1992 11.599C13.53 12.0412 14.1567 12.1316 14.5989 11.8007C15.0412 11.4699 15.1315 10.8433 14.8007 10.401C14.2854 9.71205 13.6279 9.14198 12.8729 8.72948C12.1178 8.31697 11.2829 8.07166 10.4247 8.0102Z",fill:"currentColor"},null,-1)])],16)}const Sne=he(kne,[["render",xne]]),Ene=["value"],Mne=c.defineComponent({__name:"Input",props:{modelValue:{}},emits:["update:modelValue"],setup(n,{emit:e}){const t=e;function r(o){t("update:modelValue",o.target.value)}return(o,i)=>(c.openBlock(),c.createElementBlock("input",{autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",class:"tiptap-input",value:n.modelValue,onInput:r},null,40,Ene))}}),Tne={};function Bne(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M21 4C21 3.44772 20.5523 3 20 3C19.4477 3 19 3.44772 19 4V11C19 11.7956 18.6839 12.5587 18.1213 13.1213C17.5587 13.6839 16.7956 14 16 14H6.41421L9.70711 10.7071C10.0976 10.3166 10.0976 9.68342 9.70711 9.29289C9.31658 8.90237 8.68342 8.90237 8.29289 9.29289L3.29289 14.2929C2.90237 14.6834 2.90237 15.3166 3.29289 15.7071L8.29289 20.7071C8.68342 21.0976 9.31658 21.0976 9.70711 20.7071C10.0976 20.3166 10.0976 19.6834 9.70711 19.2929L6.41421 16H16C17.3261 16 18.5979 15.4732 19.5355 14.5355C20.4732 13.5979 21 12.3261 21 11V4Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const _ne=he(Tne,[["render",Bne]]),Ane={};function One(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{d:"M14 3C14 2.44772 14.4477 2 15 2H21C21.5523 2 22 2.44772 22 3V9C22 9.55228 21.5523 10 21 10C20.4477 10 20 9.55228 20 9V5.41421L10.7071 14.7071C10.3166 15.0976 9.68342 15.0976 9.29289 14.7071C8.90237 14.3166 8.90237 13.6834 9.29289 13.2929L18.5858 4H15C14.4477 4 14 3.55228 14 3Z",fill:"currentColor"},null,-1),c.createElementVNode("path",{d:"M4.29289 7.29289C4.48043 7.10536 4.73478 7 5 7H11C11.5523 7 12 6.55228 12 6C12 5.44772 11.5523 5 11 5H5C4.20435 5 3.44129 5.31607 2.87868 5.87868C2.31607 6.44129 2 7.20435 2 8V19C2 19.7957 2.31607 20.5587 2.87868 21.1213C3.44129 21.6839 4.20435 22 5 22H16C16.7957 22 17.5587 21.6839 18.1213 21.1213C18.6839 20.5587 19 19.7957 19 19V13C19 12.4477 18.5523 12 18 12C17.4477 12 17 12.4477 17 13V19C17 19.2652 16.8946 19.5196 16.7071 19.7071C16.5196 19.8946 16.2652 20 16 20H5C4.73478 20 4.48043 19.8946 4.29289 19.7071C4.10536 19.5196 4 19.2652 4 19V8C4 7.73478 4.10536 7.48043 4.29289 7.29289Z",fill:"currentColor"},null,-1)])],16)}const Lne=he(Ane,[["render",One]]),Nne={};function Dne(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M7 5V4C7 3.17477 7.40255 2.43324 7.91789 1.91789C8.43324 1.40255 9.17477 1 10 1H14C14.8252 1 15.5668 1.40255 16.0821 1.91789C16.5975 2.43324 17 3.17477 17 4V5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H20V20C20 20.8252 19.5975 21.5668 19.0821 22.0821C18.5668 22.5975 17.8252 23 17 23H7C6.17477 23 5.43324 22.5975 4.91789 22.0821C4.40255 21.5668 4 20.8252 4 20V7H3C2.44772 7 2 6.55228 2 6C2 5.44772 2.44772 5 3 5H7ZM9 4C9 3.82523 9.09745 3.56676 9.33211 3.33211C9.56676 3.09745 9.82523 3 10 3H14C14.1748 3 14.4332 3.09745 14.6679 3.33211C14.9025 3.56676 15 3.82523 15 4V5H9V4ZM6 7V20C6 20.1748 6.09745 20.4332 6.33211 20.6679C6.56676 20.9025 6.82523 21 7 21H17C17.1748 21 17.4332 20.9025 17.6679 20.6679C17.9025 20.4332 18 20.1748 18 20V7H6Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const Ine=he(Nne,[["render",Dne]]),Pne=c.defineComponent({__name:"LinkDropdown",setup(n){const e=c.inject("editor"),t=c.ref(""),r=c.ref(!1);function o(d){if(!(!d||!e||!e.value)){if(d===""){e.value.chain().focus().extendMarkRange("link").unsetLink().run();return}e.value.chain().focus().extendMarkRange("link").setLink({href:d}).run()}}let i=null;const s=()=>{if(!e||!e.value)return;const{href:d}=e.value.getAttributes("link");t.value=d||"",t.value!==""?r.value=!0:r.value=!1};c.watch(()=>e?.value,(d,u)=>{u&&(u.off("selectionUpdate",s),i=null),d&&(s(),d.on("selectionUpdate",s),i=()=>{d.off("selectionUpdate",s)})},{immediate:!0}),c.onBeforeUnmount(()=>{i?.()});function a(){if(!t.value||t.value===""||!e||!e.value)return;const d=kw(t.value,window.location.href);d!=="#"&&window.open(d,"_blank","noopener,noreferrer")}function l(){!e||!e.value||(t.value="",e.value.chain().focus().extendMarkRange("link").unsetLink().setMeta("preventAutolink",!0).run())}return(d,u)=>(c.openBlock(),c.createBlock(R2,{open:r.value,orientation:"row"},{trigger:c.withCtx(({isOpen:h})=>[c.createVNode(Ye,{"data-active-state":c.unref(e)?.isActive("link")||h?"on":"off","data-style":"ghost",type:"button"},{default:c.withCtx(()=>[c.createVNode(Sne,{class:"tiptap-button-icon"})]),_:1},8,["data-active-state"])]),items:c.withCtx(({close:h})=>[c.createVNode(Mne,{modelValue:t.value,"onUpdate:modelValue":u[0]||(u[0]=f=>t.value=f),onKeydown:c.withKeys(c.withModifiers(f=>{o(t.value),h()},["prevent"]),["enter"])},null,8,["modelValue","onKeydown"]),c.createVNode(Ye,{"data-style":"ghost",type:"button",onClick:f=>{o(t.value),h()}},{default:c.withCtx(()=>[c.createVNode(_ne,{class:"tiptap-button-icon"})]),_:1},8,["onClick"]),c.createVNode(Da),c.createVNode(Ye,{"data-style":"ghost",type:"button",onClick:f=>{a(),h()}},{default:c.withCtx(()=>[c.createVNode(Lne,{class:"tiptap-button-icon"})]),_:1},8,["onClick"]),c.createVNode(Ye,{"data-style":"ghost",type:"button",onClick:f=>{l(),h()}},{default:c.withCtx(()=>[c.createVNode(Ine,{class:"tiptap-button-icon"})]),_:1},8,["onClick"])]),_:1},8,["open"]))}}),Rne={};function Vne(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M2 12C2 11.4477 2.44772 11 3 11H15C15.5523 11 16 11.4477 16 12C16 12.5523 15.5523 13 15 13H3C2.44772 13 2 12.5523 2 12Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M2 18C2 17.4477 2.44772 17 3 17H17C17.5523 17 18 17.4477 18 18C18 18.5523 17.5523 19 17 19H3C2.44772 19 2 18.5523 2 18Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const u6=he(Rne,[["render",Vne]]),Hne={};function Fne(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M6 12C6 11.4477 6.44772 11 7 11H17C17.5523 11 18 11.4477 18 12C18 12.5523 17.5523 13 17 13H7C6.44772 13 6 12.5523 6 12Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M4 18C4 17.4477 4.44772 17 5 17H19C19.5523 17 20 17.4477 20 18C20 18.5523 19.5523 19 19 19H5C4.44772 19 4 18.5523 4 18Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const Aw=he(Hne,[["render",Fne]]),zne={};function $ne(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M8 12C8 11.4477 8.44772 11 9 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H9C8.44772 13 8 12.5523 8 12Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M6 18C6 17.4477 6.44772 17 7 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H7C6.44772 19 6 18.5523 6 18Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const Ow=he(zne,[["render",$ne]]),jne={};function Wne(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M2 12C2 11.4477 2.44772 11 3 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H3C2.44772 13 2 12.5523 2 12Z",fill:"currentColor","fill-rule":"evenodd"},null,-1),c.createElementVNode("path",{"clip-rule":"evenodd",d:"M2 18C2 17.4477 2.44772 17 3 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H3C2.44772 19 2 18.5523 2 18Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const Lw=he(jne,[["render",Wne]]),Une=c.defineComponent({__name:"TextAlignDropdown",setup(n){const e=c.inject("editor"),t={left:u6,center:Aw,right:Ow,justify:Lw},r=["left","center","right","justify"],o=c.computed(()=>{if(!e?.value)return null;for(const a of r)if(e.value.isActive({textAlign:a}))return a;return null}),i=c.computed(()=>o.value?t[o.value]:u6),s=c.computed(()=>o.value!==null);return(a,l)=>(c.openBlock(),c.createBlock(R2,null,{trigger:c.withCtx(({isOpen:d})=>[c.createVNode(Ye,{"data-active-state":d||s.value?"on":"off","data-style":"ghost"},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(i.value),{class:"tiptap-button-icon"})),c.createVNode(c6,{class:"tiptap-button-dropdown-small"})]),_:1},8,["data-active-state"])]),items:c.withCtx(({close:d})=>[c.createVNode(Ye,{"data-active-state":c.unref(e)?.isActive({textAlign:"left"})?"on":"off","data-style":"ghost",onClick:u=>{c.unref(e)?.chain().focus().setTextAlign("left").run(),d()}},{default:c.withCtx(()=>[c.createVNode(u6,{class:"tiptap-button-icon"})]),_:1},8,["data-active-state","onClick"]),c.createVNode(Ye,{"data-active-state":c.unref(e)?.isActive({textAlign:"center"})?"on":"off","data-style":"ghost",onClick:u=>{c.unref(e)?.chain().focus().setTextAlign("center").run(),d()}},{default:c.withCtx(()=>[c.createVNode(Aw,{class:"tiptap-button-icon"})]),_:1},8,["data-active-state","onClick"]),c.createVNode(Ye,{"data-active-state":c.unref(e)?.isActive({textAlign:"right"})?"on":"off","data-style":"ghost",onClick:u=>{c.unref(e)?.chain().focus().setTextAlign("right").run(),d()}},{default:c.withCtx(()=>[c.createVNode(Ow,{class:"tiptap-button-icon"})]),_:1},8,["data-active-state","onClick"]),c.createVNode(Ye,{"data-active-state":c.unref(e)?.isActive({textAlign:"justify"})?"on":"off","data-style":"ghost",onClick:u=>{c.unref(e)?.chain().focus().setTextAlign("justify").run(),d()}},{default:c.withCtx(()=>[c.createVNode(Lw,{class:"tiptap-button-icon"})]),_:1},8,["data-active-state","onClick"])]),_:1}))}}),qne={};function Zne(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M20 2C20 1.44772 19.5523 1 19 1C18.4477 1 18 1.44772 18 2V4H16C15.4477 4 15 4.44772 15 5C15 5.55228 15.4477 6 16 6H18V8C18 8.55228 18.4477 9 19 9C19.5523 9 20 8.55228 20 8V6H22C22.5523 6 23 5.55228 23 5C23 4.44772 22.5523 4 22 4H20V2ZM5 4C4.73478 4 4.48043 4.10536 4.29289 4.29289C4.10536 4.48043 4 4.73478 4 5V19C4 19.2652 4.10536 19.5196 4.29289 19.7071C4.48043 19.8946 4.73478 20 5 20H5.58579L14.379 11.2068C14.9416 10.6444 15.7045 10.3284 16.5 10.3284C17.2955 10.3284 18.0584 10.6444 18.621 11.2068L20 12.5858V12C20 11.4477 20.4477 11 21 11C21.5523 11 22 11.4477 22 12V14.998C22 14.9994 22 15.0007 22 15.002V19C22 19.7957 21.6839 20.5587 21.1213 21.1213C20.5587 21.6839 19.7957 22 19 22H6.00219C6.00073 22 5.99927 22 5.99781 22H5C4.20435 22 3.44129 21.6839 2.87868 21.1213C2.31607 20.5587 2 19.7957 2 19V5C2 4.20435 2.31607 3.44129 2.87868 2.87868C3.44129 2.31607 4.20435 2 5 2H12C12.5523 2 13 2.44772 13 3C13 3.55228 12.5523 4 12 4H5ZM8.41422 20H19C19.2652 20 19.5196 19.8946 19.7071 19.7071C19.8946 19.5196 20 19.2652 20 19V15.4142L17.207 12.6212C17.0195 12.4338 16.7651 12.3284 16.5 12.3284C16.2349 12.3284 15.9806 12.4337 15.7931 12.6211L8.41422 20ZM6.87868 6.87868C7.44129 6.31607 8.20435 6 9 6C9.79565 6 10.5587 6.31607 11.1213 6.87868C11.6839 7.44129 12 8.20435 12 9C12 9.79565 11.6839 10.5587 11.1213 11.1213C10.5587 11.6839 9.79565 12 9 12C8.20435 12 7.44129 11.6839 6.87868 11.1213C6.31607 10.5587 6 9.79565 6 9C6 8.20435 6.31607 7.44129 6.87868 6.87868ZM9 8C8.73478 8 8.48043 8.10536 8.29289 8.29289C8.10536 8.48043 8 8.73478 8 9C8 9.26522 8.10536 9.51957 8.29289 9.70711C8.48043 9.89464 8.73478 10 9 10C9.26522 10 9.51957 9.89464 9.70711 9.70711C9.89464 9.51957 10 9.26522 10 9C10 8.73478 9.89464 8.48043 9.70711 8.29289C9.51957 8.10536 9.26522 8 9 8Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)])],16)}const Kne=he(qne,[["render",Zne]]),Yne=c.defineComponent({__name:"ImageUploadButton",props:{i18n:{}},setup(n){const e=n,t=c.inject("editor");function r(){if(t?.value&&P2("fileUpload",t.value))try{t.value.chain().focus().setFileUploadNode({accept:"image/*",limit:1,forceAttachment:!1,i18n:e.i18n?.plugins?.images}).run()}catch(o){console.error("Failed to insert file upload node:",o)}}return(o,i)=>(c.openBlock(),c.createBlock(Ye,{"data-style":"ghost",type:"button",onClick:r},{default:c.withCtx(()=>[c.createVNode(Kne,{class:"tiptap-button-icon"})]),_:1}))}}),Xne={};function Gne(n,e){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({fill:"currentColor",height:"24",viewBox:"2 2 12 12",width:"24",xmlns:"http://www.w3.org/2000/svg"},n.$attrs),[...e[0]||(e[0]=[c.createElementVNode("path",{"clip-rule":"evenodd",d:"M9.34181 3.175C8.86733 3.175 8.41228 3.36348 8.07677 3.69899L3.96053 7.81523C3.45247 8.33711 3.17027 9.03805 3.17501 9.76641C3.17975 10.4951 3.47134 11.1927 3.98665 11.708C4.50195 12.2233 5.19949 12.5149 5.92823 12.5196C6.6566 12.5244 7.35753 12.2422 7.87942 11.7341C7.87968 11.7338 7.87994 11.7336 7.88021 11.7333L11.8762 7.7373L12.1237 7.98479L8.12446 11.984C7.53657 12.5568 6.74672 12.875 5.92595 12.8696C5.10518 12.8643 4.31955 12.5359 3.73916 11.9555C3.15878 11.3751 2.83036 10.5895 2.82502 9.76869C2.81968 8.94792 3.13784 8.15807 3.71063 7.57019L3.71222 7.56855L7.82928 3.45151C8.23043 3.05036 8.77451 2.825 9.34181 2.825C9.90912 2.825 10.4532 3.05036 10.8543 3.45151C11.2555 3.85266 11.4809 4.39673 11.4809 4.96404C11.4809 5.53135 11.2555 6.07542 10.8543 6.47657L6.85603 10.4749C6.63904 10.6919 6.34475 10.8138 6.03789 10.8138C5.73103 10.8138 5.43674 10.6919 5.21975 10.4749C5.00277 10.2579 4.88087 9.96361 4.88087 9.65675C4.88087 9.34989 5.00277 9.05559 5.21975 8.83861L9.09863 4.95973L9.34612 5.20722L5.46724 9.0861C5.3159 9.23744 5.23087 9.44271 5.23087 9.65675C5.23087 9.87078 5.3159 10.0761 5.46724 10.2274C5.61859 10.3787 5.82386 10.4638 6.03789 10.4638C6.25193 10.4638 6.45719 10.3787 6.60854 10.2274L10.6069 6.22908C10.9424 5.89357 11.1309 5.43852 11.1309 4.96404C11.1309 4.48955 10.9424 4.03451 10.6069 3.69899C10.2713 3.36348 9.8163 3.175 9.34181 3.175Z",fill:"currentColor","fill-rule":"evenodd",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"1"},null,-1)])],16)}const Jne=he(Xne,[["render",Gne]]),Qne=c.defineComponent({__name:"FileUploadButton",props:{i18n:{}},setup(n){const e=n,t=c.inject("editor");function r(){if(t?.value&&P2("fileUpload",t.value))try{t.value.chain().focus().setFileUploadNode({accept:"*/*",limit:0,forceAttachment:!0,i18n:e.i18n?.plugins?.attachment}).run()}catch(o){console.error("Failed to insert file upload node:",o)}}return(o,i)=>(c.openBlock(),c.createBlock(Ye,{"data-style":"ghost",type:"button",onClick:r},{default:c.withCtx(()=>[c.createVNode(Jne,{class:"tiptap-button-icon"})]),_:1}))}});function Nr(n){return n?n instanceof Element?n:typeof n=="object"&&n!==null&&"$el"in n&&n.$el instanceof Element?n.$el:null:null}function ere(){const n=c.ref(null),e=c.ref(null),t=c.ref(null),r=c.ref({position:"absolute",top:"0",width:"100%"}),o=c.ref({}),i=c.ref(!1),s=c.ref(0);let a=null,l=null,d=null,u=null,h=!0,f=null,p=[],m=null;const g=()=>{const k=Nr(n.value);if(!k)return;const S=[];let O=k;for(;O&&O!==document.body;){const x=getComputedStyle(O);/auto|scroll|overlay/.test(x.overflow+x.overflowY+x.overflowX)&&S.push(O),O=O.parentElement}const A=x=>{const L=x.target===document||x.target===document.documentElement?window:x.currentTarget;f!==L&&(f=L),i.value&&T()};S.forEach(x=>{x.addEventListener("scroll",A,{passive:!0}),p.push({element:x,handler:A})}),window.addEventListener("scroll",A,{passive:!0}),p.push({element:window,handler:A})},v=()=>{const k=Nr(e.value);if(k)return k;const S=Nr(n.value);return S?S.querySelector(".tiptap-toolbar"):null},y=()=>v()?.getBoundingClientRect().height??0,C=()=>{const k=y();k>0&&k!==s.value&&(s.value=k,b())},b=()=>{if(i.value)return;const k=y();s.value=k,o.value=k>0?{paddingTop:`${k}px`}:{}},B=()=>{const k=Nr(n.value);if(!k||!f)return;if(!h){i.value=!1,r.value={position:"absolute",top:"0",width:"100%",transform:"none",opacity:"0"},b();return}const S=k.getBoundingClientRect(),O=f===window?0:f.getBoundingClientRect().top,A=S.top-O;Math.max(0,-A)>0?(C(),i.value=!0,r.value={position:"fixed",top:`${O}px`,left:`${S.left}px`,width:`${S.width}px`,transform:"none",zIndex:"10"}):(i.value=!1,r.value={position:"absolute",top:"0",width:"100%",transform:"none"}),b()},T=()=>{m&&cancelAnimationFrame(m),m=requestAnimationFrame(()=>{B(),m=null})},E=()=>{m&&cancelAnimationFrame(m),m=requestAnimationFrame(()=>{C(),b(),B(),m=null})};return c.watch(e,(k,S)=>{const O=Nr(k),A=Nr(S);(A&&!O||!A&&O)&&E()},{immediate:!1}),c.onMounted(()=>{const k=Nr(n.value),S=Nr(t.value),O=Nr(e.value);!k||!S||(g(),k&&"MutationObserver"in window&&(u=new MutationObserver(()=>{const A=Nr(e.value),x=k.querySelector(".tiptap-toolbar");(A&&!x||!A&&x)&&E()}),u.observe(k,{childList:!0,subtree:!0})),O&&"ResizeObserver"in window&&(d=new ResizeObserver(()=>{C()}),d.observe(O)),requestAnimationFrame(()=>{C(),b(),f||(f=window),a=new IntersectionObserver(([x])=>{x.intersectionRatio>0?(i.value=!1,r.value={position:"absolute",top:"0",width:"100%"},b()):(C(),i.value=!0,B())},{threshold:[0,.1,.5,1],root:f===window?null:f,rootMargin:"0px"}),a.observe(S);const A=Nr(n.value);A&&(l=new IntersectionObserver(([x])=>{h=x.intersectionRatio>0,B()},{threshold:[0,1],root:f===window?null:f,rootMargin:"0px"}),l.observe(A)),B()}))}),c.onUnmounted(()=>{a?.disconnect(),l?.disconnect(),d?.disconnect(),u?.disconnect(),m&&cancelAnimationFrame(m),p.forEach(({element:k,handler:S})=>{k===window?window.removeEventListener("scroll",S):k.removeEventListener("scroll",S)}),p=[]}),{wrapperRef:n,toolbarRef:e,sentinelRef:t,toolbarStyle:r,wrapperStyle:o,isFloating:i}}const tre={key:0,class:"reply-header"},nre={class:"reply-actions"},rre={class:"tiptap-toolbar-group"},ore={class:"tiptap-toolbar-group"},ire={class:"tiptap-toolbar-group"},sre={class:"tiptap-toolbar-group"},are={class:"tiptap-toolbar-group"},lre=c.defineComponent({__name:"SimpleTemplate",props:{readOnly:{type:Boolean},isOverlayVisible:{type:Boolean},i18n:{}},emits:["accept-suggestion","dismiss-suggestion"],setup(n,{emit:e}){const t=n,r=e,{wrapperRef:o,toolbarRef:i,sentinelRef:s,toolbarStyle:a,wrapperStyle:l}=ere(),d=c.inject("editor");function u(){r("accept-suggestion")}function h(){r("dismiss-suggestion")}return(f,p)=>(c.openBlock(),c.createElementBlock("div",{ref_key:"wrapperRef",ref:o,class:c.normalizeClass(["simple-editor-wrapper",{"read-only":t.readOnly},{"suggestion-reply-theme":n.isOverlayVisible}]),style:c.normalizeStyle(c.unref(l))},[n.isOverlayVisible?(c.openBlock(),c.createElementBlock("div",tre,[c.createVNode(Nh,{active:!0,"has-background":!1,"icon-name":"ai",size:24,text:t.i18n?.labels?.AIResponse?t.i18n.labels.AIResponse:"GPT Suggested Response"},null,8,["text"]),c.createElementVNode("div",nre,[c.createVNode(Be,{active:!0,alt:"Accept Suggestion","icon-name":"accept",size:20,onClick:u}),c.createVNode(Be,{active:!0,alt:"Dismiss Suggestion","icon-name":"close","is-danger":!0,size:20,onClick:h})])])):c.createCommentVNode("",!0),c.createElementVNode("div",{ref_key:"sentinelRef",ref:s,class:"toolbar-sentinel"},null,512),t.readOnly?c.createCommentVNode("",!0):(c.openBlock(),c.createBlock(pte,{key:1,ref_key:"toolbarRef",ref:i,style:c.normalizeStyle(c.unref(a))},{default:c.withCtx(()=>[c.createElementVNode("div",rre,[c.createVNode(xw,{action:"undo"}),c.createVNode(xw,{action:"redo"})]),c.createVNode(Da),c.createElementVNode("div",ore,[c.createVNode(Bte),c.createVNode(Ite),c.createVNode(Hte),c.createVNode(jte),c.createVNode(Zte),c.createVNode(Une)]),c.createVNode(Da),c.createElementVNode("div",ire,[c.createVNode(Os,{type:"bold"}),c.createVNode(Os,{type:"italic"}),c.createVNode(Os,{type:"strike"}),c.createVNode(Os,{type:"code"}),c.createVNode(Os,{type:"underline"}),c.createVNode(wne),c.createVNode(Pne)]),c.createVNode(Da),c.createElementVNode("div",sre,[c.createVNode(Os,{type:"superscript"}),c.createVNode(Os,{type:"subscript"})]),c.createVNode(Da),c.createElementVNode("div",are,[c.createVNode(Yne,{i18n:t.i18n},null,8,["i18n"]),c.createVNode(Qne,{i18n:t.i18n},null,8,["i18n"])])]),_:1},8,["style"])),c.createVNode(c.unref(HG),{class:"simple-editor-content",editor:c.unref(d),role:"presentation",onFocusin:u},null,8,["editor"])],6))}}),cre=c.defineComponent({__name:"TiptapView",props:{data:{},attachments:{},readOnly:{type:Boolean,default:!1},toolbarPosition:{default:"left"},i18n:{},suggestedReply:{},fileUpload:{},mentions:{}},emits:["update:data","update:attachments","file-upload"],setup(n,{expose:e,emit:t}){const r=n,o=t;c.ref(null);const i=c.ref(!1),s=c.ref(!1),a=c.ref(!1),l=c.ref(!1),d=jee.extend({name:"image",addAttributes(){return{...this.parent?.()||{},id:{default:null},width:{default:"100%"}}}}),u=FG({editable:!r.readOnly,editorProps:{attributes:{class:"simple-editor"},handlePaste(M,L){const D=Array.from(L.clipboardData?.files||[]).filter(w=>w&&w.size>0);if(D.length===0)return!1;const _=M.state.selection.from,N={state:M.state,schema:M.state.schema,view:M};return f(N,D,_),!0}},extensions:[kQ.configure({link:{openOnClick:!1}}),Pb,Ib,xQ,SQ,TQ.configure({multicolor:!0}),BQ.configure({types:["heading","paragraph"]}),Pee.configure(),d,qee,Qee.configure({onDrop:(M,L,D)=>{f(M,L,D)}}),Xee.configure({placeholder:r.i18n?.labels?.Placeholder??"Type here...",showOnlyWhenEditable:!0}),Yee,tte.configure({type:"image",accept:"*/*",limit:1,maxSize:0,onFileUpload:M=>{o("file-upload",M)}})],content:g(r.data,r.attachments),onUpdate({editor:M}){if(a.value||!l.value)return;const L=M.getJSON();s.value&&(s.value=!1,i.value=!1),B(L)},onCreate(){l.value=!0,k()}});function h(){if(!u.value)return[];const M=new Map;if(r.attachments)for(const D of r.attachments)D.id&&M.set(String(D.id),D);const L=[];return u.value.state.doc.descendants(D=>{if(D.type.name==="image"&&D.attrs?.id){const _=D.attrs.id,N=String(_),w=M.get(N);w?L.push(w):L.push({id:typeof _=="number"?_:Number(_)||0,label:D.attrs.alt||D.attrs.title||"",download_url:D.attrs.src||"",status:"OK",status_message:""})}else if(D.type.name==="attachment"&&Array.isArray(D.attrs?.files)){for(const _ of D.attrs.files)if(_.id){const N=String(_.id),w=M.get(N);w?L.push(w):L.push({id:typeof _.id=="number"?_.id:Number(_.id)||0,label:_.label||"",download_url:_.download_url||"",status:_.status||"OK",status_message:_.status_message||""})}}}),L}function f(M,L,D){if(L.length===0)return;const{state:_}=M;let N=D??_.selection.from;if(typeof D=="number"){const{doc:V}=_,z=V.nodeAt(D);let Z=D;z&&z.isAtom&&(Z=D+z.nodeSize),N=Math.max(0,Math.min(Z,V.content.size))}const w=L.filter(V=>V.type.startsWith("image/")),R=L.filter(V=>!V.type.startsWith("image/")),H=w.length===1&&R.length===0,F=H?"image/*":"*/*",$=H?1:0,q=!H;a.value=!0;const j=M.schema.nodes.fileUpload.create({accept:F,limit:$,maxSize:0,forceAttachment:q,nodeId:typeof window<"u"&&window.crypto?.randomUUID?.()||Math.random().toString(36).slice(2)}),P=M.state.tr.insert(N,j);M.view.dispatch(P);const I=j.attrs.nodeId;ete(M.view,I,L),a.value=!1}function p(M){const{ids:L,meta:D}=M,_=u.value;!_||!D?.nodeId||_.state.doc.descendants((N,w)=>{if(!(N.attrs?.nodeId!==D.nodeId&&N.attrs?.id!==D.nodeId)){if(N.type.name==="fileUpload"){const R=_.state.tr.setNodeMarkup(w,void 0,{...N.attrs,fileIds:L});R.setMeta("addToHistory",!1),_.view.dispatch(R);return}if(N.type.name==="attachment"){const R=N.attrs.files.map((F,$)=>({...F,id:L[$]??F.id,status:"OK"})),H=_.state.tr.setNodeMarkup(w,void 0,{...N.attrs,files:R,status:"OK"});H.setMeta("addToHistory",!1),_.view.dispatch(H)}if(N.type.name==="image"){const R=_.state.tr.setNodeMarkup(w,void 0,{...N.attrs,id:L[0],status:"OK"});R.setMeta("addToHistory",!1),_.view.dispatch(R)}}})}c.provide("editor",u);function m(){if(!u.value||a.value)return;const M=v(u.value.getJSON()),L=r.data;if(!(!(L&&T(L))&&s.value)&&!C(M,L)){a.value=!0;const _=g(L,r.attachments||[]);u.value.commands.setContent(_),i.value=!1,s.value=!1,a.value=!1}}c.watch(()=>r.data,m),c.watch(()=>r.attachments,M=>{if(!u.value||a.value)return;const L=h();if(b(L,M))return;a.value=!0;const D=g(u.value.getJSON(),M||[]);u.value.commands.setContent(D),a.value=!1}),c.watch(()=>r.readOnly,M=>{u.value&&(a.value=!0,u.value.setEditable(!M),a.value=!1)},{immediate:!0});function g(M,L){if(!M||!L||L.length===0)return M??[];if(Array.isArray(M))return M.map(_=>g(_,L));const D={...M};if(D.type==="image"&&D.attrs?.id){const _=L.find(N=>N.id===D.attrs?.id);_?.download_url&&(D.attrs={...D.attrs,src:_.download_url??D.attrs.src,alt:_.label??D.attrs.label,title:_.label??D.attrs.label})}return D.type==="attachment"&&Array.isArray(D.attrs?.files)&&(D.attrs={...D.attrs,files:D.attrs?.files.map(_=>{const N=L.find(w=>w.id===_.id);return N?{..._,...N}:_})}),D.content&&(D.content=g(D.content,L)),D}function v(M){if(!M)return M;if(Array.isArray(M))return M.filter(D=>D.type!=="fileUpload").map(D=>v(D)).filter(D=>D!==void 0);if(M.type==="fileUpload")return;const L={...M};if(L.type==="image"&&L.attrs?.id&&(L.attrs={id:L.attrs.id,width:L.attrs.width,containerStyle:L.attrs.containerStyle}),L.type==="attachment"&&Array.isArray(L.attrs?.files)&&(L.attrs={...L.attrs,files:L.attrs?.files.map(D=>({id:D.id,label:D.label}))},delete L.attrs.id),L.content){const D=v(L.content);D?L.content=D.filter(_=>_!==void 0):L.content=[]}return L}function y(M,L){let D;return(..._)=>{clearTimeout(D),D=setTimeout(()=>M(..._),L)}}function C(M,L){return JSON.stringify(M)===JSON.stringify(L)}function b(M,L){if(!M&&!L)return!0;if(!M||!L||M.length!==L.length)return!1;const D=new Set(M.map(N=>N.id).filter(Boolean)),_=new Set(L.map(N=>N.id).filter(Boolean));if(D.size!==_.size)return!1;for(const N of D)if(!_.has(N))return!1;return!0}const B=y(M=>{if(a.value)return;const L=v(M);o("update:data",L);const D=h();b(D,r.attachments)||o("update:attachments",D)},300);function T(M){if(!M)return!1;if(Array.isArray(M)){for(const L of M)if(L&&(L.type==="image"||L.type==="attachment"||L.type==="text"&&typeof L.text=="string"&&L.text.trim().length>0||Array.isArray(L.content)&&T(L.content)))return!0;return!1}if(typeof M=="object"){const L=M.content;return Array.isArray(L)?T(L):!1}return!1}function E(M){return!u.value||!M?.content||!Array.isArray(M.content)?!1:M.content.every(L=>L.type==="signature")}function k(){if(!r.suggestedReply||r.readOnly){i.value=!1;return}const L=r.suggestedReply.content;if(!L||!T(L)){i.value=!1;return}if(!A()){i.value=!1;return}if(!u.value)return;const _=g(r.suggestedReply,r.attachments||[]);a.value=!0,u.value.commands.setContent(_),s.value=!0;const N=E(r.suggestedReply);a.value=!1,N?S():i.value=!0}async function S(){if(!i.value&&!s.value||!r.suggestedReply||r.readOnly||(i.value=!1,!u.value))return;a.value=!0;const M=u.value.getJSON(),L=v(M);s.value=!1,a.value=!1,o("update:data",L)}function O(){i.value=!1,u.value&&(a.value=!0,u.value.commands.clearContent(),s.value=!1,a.value=!1,o("update:data",{type:"doc",content:[]}))}function A(){if(s.value||!u.value)return!0;const M=u.value.getJSON();return!M?.content||!Array.isArray(M.content)?!0:!T(M.content)}function x(M,L){if(!u.value||!u.value.getJSON()?.content)return;let _=null,N=null;if(u.value.state.doc.descendants(($,q)=>{if($.type.name==="signature")return _=q,N=$,!1}),_!==null&&N!==null){const $=_,q=N;u.value.chain().deleteRange({from:$,to:$+q.nodeSize}).run()}if(!M.content||M.content.length===0)return;const w=M.content,R=g(w,L),H=u.value.state.doc.content.size-1;u.value.chain().focus().insertContentAt(H,[{type:"signature",content:R}]).run();const F=h();o("update:attachments",F)}return e({acceptSuggestion:()=>{S()},registerFiles:M=>p(M),isEmpty:()=>A(),insertSignature:(M,L)=>{x(M,L)}}),(M,L)=>(c.openBlock(),c.createBlock(lre,{i18n:n.i18n,"is-overlay-visible":i.value,"read-only":n.readOnly,onAcceptSuggestion:S,onDismissSuggestion:O},null,8,["i18n","is-overlay-visible","read-only"]))}}),dre={toEditorData(n){return n||{}},fromEditorData(n,e){return e}},ure={toEditorData(n){return n?.tiptap?n.tiptap:n?.editorjs?hre(n.editorjs):{type:"doc",content:[{type:"paragraph"}]}},fromEditorData(n,e){return{tiptap:e}}};function hre(n){if(!n?.blocks)return{type:"doc",content:[]};const e=[];for(const t of n.blocks){const r=fre[t.type]?.(t);r&&e.push(r)}return{type:"doc",content:e}}const fre={paragraph:n=>({type:"paragraph",content:Ia(n.data.text)}),header:n=>({type:"heading",attrs:{level:n.data.level},content:Ia(n.data.text)}),list:n=>mre(n),quote:n=>({type:"blockquote",content:[{type:"paragraph",content:Ia(n.data.text)}]}),code:n=>({type:"codeBlock",content:[{type:"text",text:n.data.code}]}),images:n=>{const e=n.data[0],t={id:e.id};if(e.width){const o={WidthSmall:"25%",WidthMedium:"50%",WidthFull:"100%"}[e.width]||"100%";t.width="100%",t.containerStyle=`position: relative; width: ${o}; height: auto; cursor: pointer;`}if(e.position){const o={AlignStart:"margin: 0px auto 0px 0px;",AlignCenter:"margin: 0px auto;",AlignEnd:"margin: 0px 0px 0px auto;"}[e.position]||"";t.containerStyle?t.containerStyle=`${t.containerStyle} ${o}`:t.containerStyle=`position: relative; ${o}`}return{type:"image",attrs:t}},attachment:n=>({type:"attachment",attrs:{files:n.data.map(e=>({id:e.id,label:e.label}))}}),checklist:n=>({type:"taskList",content:n.data.items.map(e=>({type:"taskItem",attrs:{checked:e.checked},content:[{type:"paragraph",content:Ia(e.text)}]}))}),table:n=>({type:"table",content:n.data.content.map(e=>({type:"tableRow",content:e.map(t=>({type:"tableCell",content:[{type:"paragraph",content:Ia(t)}]}))}))}),delimiter:()=>({type:"horizontalRule"})};function Ia(n){const t=new DOMParser().parseFromString(n,"text/html");function r(o,i=[]){if(o.nodeType===Node.TEXT_NODE){const s=o.nodeValue?.trim();return s?[{type:"text",text:s,marks:i.length?i:void 0}]:[]}if(o.nodeType===Node.ELEMENT_NODE){const s=o;if(s.tagName.toLowerCase()==="br")return[{type:"hardBreak"}];const a=[...i];switch(s.tagName.toLowerCase()){case"b":case"strong":a.push({type:"bold"});break;case"i":case"em":a.push({type:"italic"});break;case"u":a.push({type:"underline"});break;case"mark":a.push({type:"highlight",attrs:{color:"var(--tt-color-highlight-yellow)"}});break;case"code":a.push({type:"code"});break;case"a":a.push({type:"link",attrs:{href:s.getAttribute("href")||""}});break}return Array.from(s.childNodes).flatMap(l=>r(l,a))}return[]}return Array.from(t.body.childNodes).flatMap(o=>r(o))}function pre(n){return n==null?"":typeof n=="string"?n:Array.isArray(n)?n.map(e=>typeof e=="string"?e:e?.text??"").join(`
|
|
431
431
|
`):typeof n=="object"?typeof n.text=="string"&&n.text||typeof n.content=="string"&&n.content||typeof n.html=="string"&&n.html||(n?.data?.text??"")||"":String(n)}function Nw(n,e){const t=pre(n),o=[{type:"paragraph",content:Ia(t)}],i=n&&(Array.isArray(n.items)?n.items:null);if(i&&i.length){const s=e?"orderedList":"bulletList";o.push({type:s,content:i.map(a=>Nw(a,e))})}return{type:"listItem",content:o}}function mre(n){const e=n.data.style==="ordered",t=e?"orderedList":"bulletList",r=Array.isArray(n.data.items)?n.data.items:[];return{type:t,content:r.map(o=>Nw(o,e))}}const gre={editorjs:{component:Nq,transformer:dre},tiptap:{component:cre,transformer:ure}};function vre(n){const e=gre[n];return{component:e.component,transformer:e.transformer}}const yre=c.defineComponent({__name:"TextEditor",props:{data:{},attachments:{},readOnly:{type:Boolean,default:!1},i18n:{default:void 0},suggestedReply:{default:void 0},toolbarPosition:{default:"left"},editorType:{default:"tiptap"}},emits:["update:data","update:attachments","file-upload"],setup(n,{expose:e,emit:t}){const r=c.ref(),o=n,i=t;e({registerFiles:d=>{r.value.registerFiles(d)},insertSignature:(d,u)=>{r.value.insertSignature(l.toEditorData(d),u)},isEmpty:()=>r.value.isEmpty(),acceptSuggestion:()=>{r.value.acceptSuggestion()}});const s=c.useAttrs(),{component:a,transformer:l}=vre(o.editorType);return(d,u)=>(c.openBlock(),c.createBlock(c.resolveDynamicComponent(c.unref(a)),c.mergeProps({ref_key:"editorRef",ref:r,attachments:n.attachments,data:c.unref(l).toEditorData(n.data),i18n:n.i18n,"read-only":n.readOnly,"suggested-reply":c.unref(l).toEditorData(n.suggestedReply),"toolbar-position":n.toolbarPosition},c.unref(s),{onFileUpload:u[0]||(u[0]=h=>i("file-upload",h)),"onUpdate:attachments":u[1]||(u[1]=h=>i("update:attachments",h)),"onUpdate:data":u[2]||(u[2]=h=>i("update:data",c.unref(l).fromEditorData(n.data,h)))}),null,16,["attachments","data","i18n","read-only","suggested-reply","toolbar-position"]))}}),Cre={class:"code"},bre=["autocomplete"],wre=["autocomplete"],kre=["autocomplete"],xre=["autocomplete"],Sre=["autocomplete"],Ere=["autocomplete"],Mre=he(c.defineComponent({__name:"VerificationCode",props:{code:{type:String,required:!1,default:""},focusOnFirstInput:{type:Boolean,default:!0},focusOnFirstInputDelay:{type:Number,default:100},autoComplete:{type:String,default:"off"}},emits:["submit"],setup(n,{emit:e}){const t=e,r=n,o=c.ref(null),i=c.ref(null),s=c.ref(null),a=c.ref(null),l=c.ref(null),d=c.ref(null);async function u(y){switch(y){case 1:break;case 2:o.value?.focus();break;case 3:i.value?.focus();break;case 4:s.value?.focus();break;case 5:a.value?.focus();break;case 6:l.value?.focus();break}}async function h(y){switch(y){case 1:i.value?.focus();break;case 2:s.value?.focus();break;case 3:a.value?.focus();break;case 4:l.value?.focus();break;case 5:d.value?.focus();break}}async function f(y,C){const b=y.key;let B=!0;[{_index:1,nextInput:i},{_index:2,nextInput:s},{_index:3,nextInput:a},{_index:4,nextInput:l},{_index:5,nextInput:d}].forEach(({_index:T,nextInput:E})=>{C===T&&(E.value&&b.match(/^[0-9]+$/)&&E.value.focus({}),B=!1),y.preventDefault()}),b.match(/^[0-9]+$/)&&(y.target.value=b),B&&g()}async function p(y){const C=y.clipboardData?.getData("text/plain")||"";m(C),g()}function m(y){const C=y.replace(/\D/g,"");if(C.length!==6)return;const[b,B,T,E,k,S]=C.split("");o.value&&(o.value.value=b),i.value&&(i.value.value=B),s.value&&(s.value.value=T),a.value&&(a.value.value=E),l.value&&(l.value.value=k),d.value&&(d.value.value=S)}async function g(){const y=`${o.value?.value}${i.value?.value}${s.value?.value}${a.value?.value}${l.value?.value}${d.value?.value}`;t("submit",y)}function v(){setTimeout(()=>{r.focusOnFirstInput&&o.value?.focus()},r.focusOnFirstInputDelay)}return c.onMounted(()=>{r.code&&(m(r.code),g()),v()}),(y,C)=>(c.openBlock(),c.createElementBlock("div",Cre,[c.createElementVNode("input",{ref_key:"txtInput1",ref:o,autocomplete:n.autoComplete,autofocus:"",class:"form-input input-1","data-e2e":"input-1",inputmode:"numeric",maxlength:"1",placeholder:"_",type:"text",onKeypress:C[0]||(C[0]=b=>f(b,1)),onKeyup:[C[1]||(C[1]=c.withKeys(b=>u(1),["delete"])),C[2]||(C[2]=c.withKeys(b=>u(1),["left"])),C[3]||(C[3]=c.withKeys(b=>h(1),["right"]))],onPaste:p},null,40,bre),c.createElementVNode("input",{ref_key:"txtInput2",ref:i,autocomplete:n.autoComplete,class:"form-input","data-e2e":"input-2",inputmode:"numeric",maxlength:"1",placeholder:"_",type:"text",onKeypress:C[4]||(C[4]=b=>f(b,2)),onKeyup:[C[5]||(C[5]=c.withKeys(b=>u(2),["delete"])),C[6]||(C[6]=c.withKeys(b=>u(2),["left"])),C[7]||(C[7]=c.withKeys(b=>h(2),["right"]))],onPaste:p},null,40,wre),c.createElementVNode("input",{ref_key:"txtInput3",ref:s,autocomplete:n.autoComplete,class:"form-input","data-e2e":"input-3",inputmode:"numeric",maxlength:"1",placeholder:"_",type:"text",onKeypress:C[8]||(C[8]=b=>f(b,3)),onKeyup:[C[9]||(C[9]=c.withKeys(b=>u(3),["delete"])),C[10]||(C[10]=c.withKeys(b=>u(3),["left"])),C[11]||(C[11]=c.withKeys(b=>h(3),["right"]))],onPaste:p},null,40,kre),c.createElementVNode("input",{ref_key:"txtInput4",ref:a,autocomplete:n.autoComplete,class:"form-input","data-e2e":"input-4",inputmode:"numeric",maxlength:"1",placeholder:"_",type:"text",onKeypress:C[12]||(C[12]=b=>f(b,4)),onKeyup:[C[13]||(C[13]=c.withKeys(b=>u(4),["delete"])),C[14]||(C[14]=c.withKeys(b=>u(4),["left"])),C[15]||(C[15]=c.withKeys(b=>h(4),["right"]))],onPaste:p},null,40,xre),c.createElementVNode("input",{ref_key:"txtInput5",ref:l,autocomplete:n.autoComplete,class:"form-input","data-e2e":"input-5",inputmode:"numeric",maxlength:"1",placeholder:"_",type:"text",onKeypress:C[16]||(C[16]=b=>f(b,5)),onKeyup:[C[17]||(C[17]=c.withKeys(b=>u(5),["delete"])),C[18]||(C[18]=c.withKeys(b=>u(5),["left"])),C[19]||(C[19]=c.withKeys(b=>h(5),["right"]))],onPaste:p},null,40,Sre),c.createElementVNode("input",{ref_key:"txtInput6",ref:d,autocomplete:n.autoComplete,class:"form-input","data-e2e":"input-6",inputmode:"numeric",maxlength:"1",placeholder:"_",type:"text",onKeypress:C[20]||(C[20]=b=>f(b,6)),onKeyup:[C[21]||(C[21]=c.withKeys(b=>u(6),["delete"])),C[22]||(C[22]=c.withKeys(b=>u(6),["left"])),C[23]||(C[23]=c.withKeys(b=>h(6),["right"]))],onPaste:p},null,40,Ere)]))}}),[["__scopeId","data-v-97407ca8"]]);function Dw(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,r)}return t}function Iw(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Dw(Object(t),!0).forEach(function(r){Are(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Dw(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function Tre(n,e){if(typeof n!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}function Pw(n){var e=Tre(n,"string");return typeof e=="symbol"?e:e+""}function h6(n){"@babel/helpers - typeof";return h6=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},h6(n)}function Bre(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function Rw(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,Pw(r.key),r)}}function _re(n,e,t){return e&&Rw(n.prototype,e),t&&Rw(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function Are(n,e,t){return e=Pw(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Vw(n){return Ore(n)||Lre(n)||Nre(n)||Dre()}function Ore(n){if(Array.isArray(n))return f6(n)}function Lre(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function Nre(n,e){if(n){if(typeof n=="string")return f6(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return f6(n,e)}}function f6(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function Dre(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
432
432
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w1=typeof window<"u"&&typeof window.document<"u",co=w1?window:{},p6=w1&&co.document.documentElement?"ontouchstart"in co.document.documentElement:!1,m6=w1?"PointerEvent"in co:!1,ft="cropper",g6="all",Hw="crop",Fw="move",zw="zoom",Ls="e",Ns="w",Pa="s",Oi="n",V2="ne",H2="nw",F2="se",z2="sw",v6="".concat(ft,"-crop"),$w="".concat(ft,"-disabled"),Pn="".concat(ft,"-hidden"),jw="".concat(ft,"-hide"),Ire="".concat(ft,"-invisible"),k1="".concat(ft,"-modal"),y6="".concat(ft,"-move"),$2="".concat(ft,"Action"),x1="".concat(ft,"Preview"),C6="crop",Ww="move",Uw="none",b6="crop",w6="cropend",k6="cropmove",x6="cropstart",qw="dblclick",Pre=p6?"touchstart":"mousedown",Rre=p6?"touchmove":"mousemove",Vre=p6?"touchend touchcancel":"mouseup",Zw=m6?"pointerdown":Pre,Kw=m6?"pointermove":Rre,Yw=m6?"pointerup pointercancel":Vre,Xw="ready",Gw="resize",Jw="wheel",S6="zoom",Qw="image/jpeg",Hre=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,Fre=/^data:/,zre=/^data:image\/jpeg;base64,/,$re=/^img|canvas$/i,ek=200,tk=100,nk={viewMode:0,dragMode:C6,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:ek,minContainerHeight:tk,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},jre='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>',Wre=Number.isNaN||co.isNaN;function Le(n){return typeof n=="number"&&!Wre(n)}var rk=function(e){return e>0&&e<1/0};function E6(n){return typeof n>"u"}function Ds(n){return h6(n)==="object"&&n!==null}var Ure=Object.prototype.hasOwnProperty;function Ra(n){if(!Ds(n))return!1;try{var e=n.constructor,t=e.prototype;return e&&t&&Ure.call(t,"isPrototypeOf")}catch{return!1}}function Rn(n){return typeof n=="function"}var qre=Array.prototype.slice;function ok(n){return Array.from?Array.from(n):qre.call(n)}function Ht(n,e){return n&&Rn(e)&&(Array.isArray(n)||Le(n.length)?ok(n).forEach(function(t,r){e.call(n,t,r,n)}):Ds(n)&&Object.keys(n).forEach(function(t){e.call(n,n[t],t,n)})),n}var pt=Object.assign||function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return Ds(e)&&r.length>0&&r.forEach(function(i){Ds(i)&&Object.keys(i).forEach(function(s){e[s]=i[s]})}),e},Zre=/\.\d*(?:0|9){12}\d*$/;function Va(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return Zre.test(n)?Math.round(n*e)/e:n}var Kre=/^width|height|left|top|marginLeft|marginTop$/;function Li(n,e){var t=n.style;Ht(e,function(r,o){Kre.test(o)&&Le(r)&&(r="".concat(r,"px")),t[o]=r})}function Yre(n,e){return n.classList?n.classList.contains(e):n.className.indexOf(e)>-1}function Gt(n,e){if(e){if(Le(n.length)){Ht(n,function(r){Gt(r,e)});return}if(n.classList){n.classList.add(e);return}var t=n.className.trim();t?t.indexOf(e)<0&&(n.className="".concat(t," ").concat(e)):n.className=e}}function uo(n,e){if(e){if(Le(n.length)){Ht(n,function(t){uo(t,e)});return}if(n.classList){n.classList.remove(e);return}n.className.indexOf(e)>=0&&(n.className=n.className.replace(e,""))}}function Ha(n,e,t){if(e){if(Le(n.length)){Ht(n,function(r){Ha(r,e,t)});return}t?Gt(n,e):uo(n,e)}}var Xre=/([a-z\d])([A-Z])/g;function M6(n){return n.replace(Xre,"$1-$2").toLowerCase()}function T6(n,e){return Ds(n[e])?n[e]:n.dataset?n.dataset[e]:n.getAttribute("data-".concat(M6(e)))}function j2(n,e,t){Ds(t)?n[e]=t:n.dataset?n.dataset[e]=t:n.setAttribute("data-".concat(M6(e)),t)}function Gre(n,e){if(Ds(n[e]))try{delete n[e]}catch{n[e]=void 0}else if(n.dataset)try{delete n.dataset[e]}catch{n.dataset[e]=void 0}else n.removeAttribute("data-".concat(M6(e)))}var ik=/\s\s*/,sk=(function(){var n=!1;if(w1){var e=!1,t=function(){},r=Object.defineProperty({},"once",{get:function(){return n=!0,e},set:function(i){e=i}});co.addEventListener("test",t,r),co.removeEventListener("test",t,r)}return n})();function Dr(n,e,t){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=t;e.trim().split(ik).forEach(function(i){if(!sk){var s=n.listeners;s&&s[i]&&s[i][t]&&(o=s[i][t],delete s[i][t],Object.keys(s[i]).length===0&&delete s[i],Object.keys(s).length===0&&delete n.listeners)}n.removeEventListener(i,o,r)})}function yr(n,e,t){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=t;e.trim().split(ik).forEach(function(i){if(r.once&&!sk){var s=n.listeners,a=s===void 0?{}:s;o=function(){delete a[i][t],n.removeEventListener(i,o,r);for(var d=arguments.length,u=new Array(d),h=0;h<d;h++)u[h]=arguments[h];t.apply(n,u)},a[i]||(a[i]={}),a[i][t]&&n.removeEventListener(i,a[i][t],r),a[i][t]=o,n.listeners=a}n.addEventListener(i,o,r)})}function Fa(n,e,t){var r;return Rn(Event)&&Rn(CustomEvent)?r=new CustomEvent(e,{detail:t,bubbles:!0,cancelable:!0}):(r=document.createEvent("CustomEvent"),r.initCustomEvent(e,!0,!0,t)),n.dispatchEvent(r)}function ak(n){var e=n.getBoundingClientRect();return{left:e.left+(window.pageXOffset-document.documentElement.clientLeft),top:e.top+(window.pageYOffset-document.documentElement.clientTop)}}var Is=co.location,Jre=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function lk(n){var e=n.match(Jre);return e!==null&&(e[1]!==Is.protocol||e[2]!==Is.hostname||e[3]!==Is.port)}function ck(n){var e="timestamp=".concat(new Date().getTime());return n+(n.indexOf("?")===-1?"?":"&")+e}function W2(n){var e=n.rotate,t=n.scaleX,r=n.scaleY,o=n.translateX,i=n.translateY,s=[];Le(o)&&o!==0&&s.push("translateX(".concat(o,"px)")),Le(i)&&i!==0&&s.push("translateY(".concat(i,"px)")),Le(e)&&e!==0&&s.push("rotate(".concat(e,"deg)")),Le(t)&&t!==1&&s.push("scaleX(".concat(t,")")),Le(r)&&r!==1&&s.push("scaleY(".concat(r,")"));var a=s.length?s.join(" "):"none";return{WebkitTransform:a,msTransform:a,transform:a}}function Qre(n){var e=Iw({},n),t=0;return Ht(n,function(r,o){delete e[o],Ht(e,function(i){var s=Math.abs(r.startX-i.startX),a=Math.abs(r.startY-i.startY),l=Math.abs(r.endX-i.endX),d=Math.abs(r.endY-i.endY),u=Math.sqrt(s*s+a*a),h=Math.sqrt(l*l+d*d),f=(h-u)/u;Math.abs(f)>Math.abs(t)&&(t=f)})}),t}function S1(n,e){var t=n.pageX,r=n.pageY,o={endX:t,endY:r};return e?o:Iw({startX:t,startY:r},o)}function eoe(n){var e=0,t=0,r=0;return Ht(n,function(o){var i=o.startX,s=o.startY;e+=i,t+=s,r+=1}),e/=r,t/=r,{pageX:e,pageY:t}}function Ni(n){var e=n.aspectRatio,t=n.height,r=n.width,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",i=rk(r),s=rk(t);if(i&&s){var a=t*e;o==="contain"&&a>r||o==="cover"&&a<r?t=r/e:r=t*e}else i?t=r/e:s&&(r=t*e);return{width:r,height:t}}function toe(n){var e=n.width,t=n.height,r=n.degree;if(r=Math.abs(r)%180,r===90)return{width:t,height:e};var o=r%90*Math.PI/180,i=Math.sin(o),s=Math.cos(o),a=e*s+t*i,l=e*i+t*s;return r>90?{width:l,height:a}:{width:a,height:l}}function noe(n,e,t,r){var o=e.aspectRatio,i=e.naturalWidth,s=e.naturalHeight,a=e.rotate,l=a===void 0?0:a,d=e.scaleX,u=d===void 0?1:d,h=e.scaleY,f=h===void 0?1:h,p=t.aspectRatio,m=t.naturalWidth,g=t.naturalHeight,v=r.fillColor,y=v===void 0?"transparent":v,C=r.imageSmoothingEnabled,b=C===void 0?!0:C,B=r.imageSmoothingQuality,T=B===void 0?"low":B,E=r.maxWidth,k=E===void 0?1/0:E,S=r.maxHeight,O=S===void 0?1/0:S,A=r.minWidth,x=A===void 0?0:A,M=r.minHeight,L=M===void 0?0:M,D=document.createElement("canvas"),_=D.getContext("2d"),N=Ni({aspectRatio:p,width:k,height:O}),w=Ni({aspectRatio:p,width:x,height:L},"cover"),R=Math.min(N.width,Math.max(w.width,m)),H=Math.min(N.height,Math.max(w.height,g)),F=Ni({aspectRatio:o,width:k,height:O}),$=Ni({aspectRatio:o,width:x,height:L},"cover"),q=Math.min(F.width,Math.max($.width,i)),j=Math.min(F.height,Math.max($.height,s)),P=[-q/2,-j/2,q,j];return D.width=Va(R),D.height=Va(H),_.fillStyle=y,_.fillRect(0,0,R,H),_.save(),_.translate(R/2,H/2),_.rotate(l*Math.PI/180),_.scale(u,f),_.imageSmoothingEnabled=b,_.imageSmoothingQuality=T,_.drawImage.apply(_,[n].concat(Vw(P.map(function(I){return Math.floor(Va(I))})))),_.restore(),D}var dk=String.fromCharCode;function roe(n,e,t){var r="";t+=e;for(var o=e;o<t;o+=1)r+=dk(n.getUint8(o));return r}var ooe=/^data:.*,/;function ioe(n){var e=n.replace(ooe,""),t=atob(e),r=new ArrayBuffer(t.length),o=new Uint8Array(r);return Ht(o,function(i,s){o[s]=t.charCodeAt(s)}),r}function soe(n,e){for(var t=[],r=8192,o=new Uint8Array(n);o.length>0;)t.push(dk.apply(null,ok(o.subarray(0,r)))),o=o.subarray(r);return"data:".concat(e,";base64,").concat(btoa(t.join("")))}function aoe(n){var e=new DataView(n),t;try{var r,o,i;if(e.getUint8(0)===255&&e.getUint8(1)===216)for(var s=e.byteLength,a=2;a+1<s;){if(e.getUint8(a)===255&&e.getUint8(a+1)===225){o=a;break}a+=1}if(o){var l=o+4,d=o+10;if(roe(e,l,4)==="Exif"){var u=e.getUint16(d);if(r=u===18761,(r||u===19789)&&e.getUint16(d+2,r)===42){var h=e.getUint32(d+4,r);h>=8&&(i=d+h)}}}if(i){var f=e.getUint16(i,r),p,m;for(m=0;m<f;m+=1)if(p=i+m*12+2,e.getUint16(p,r)===274){p+=8,t=e.getUint16(p,r),e.setUint16(p,1,r);break}}}catch{t=1}return t}function loe(n){var e=0,t=1,r=1;switch(n){case 2:t=-1;break;case 3:e=-180;break;case 4:r=-1;break;case 5:e=90,r=-1;break;case 6:e=90;break;case 7:e=90,t=-1;break;case 8:e=-90;break}return{rotate:e,scaleX:t,scaleY:r}}var coe={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var e=this.element,t=this.options,r=this.container,o=this.cropper,i=Number(t.minContainerWidth),s=Number(t.minContainerHeight);Gt(o,Pn),uo(e,Pn);var a={width:Math.max(r.offsetWidth,i>=0?i:ek),height:Math.max(r.offsetHeight,s>=0?s:tk)};this.containerData=a,Li(o,{width:a.width,height:a.height}),Gt(e,Pn),uo(o,Pn)},initCanvas:function(){var e=this.containerData,t=this.imageData,r=this.options.viewMode,o=Math.abs(t.rotate)%180===90,i=o?t.naturalHeight:t.naturalWidth,s=o?t.naturalWidth:t.naturalHeight,a=i/s,l=e.width,d=e.height;e.height*a>e.width?r===3?l=e.height*a:d=e.width/a:r===3?d=e.width/a:l=e.height*a;var u={aspectRatio:a,naturalWidth:i,naturalHeight:s,width:l,height:d};this.canvasData=u,this.limited=r===1||r===2,this.limitCanvas(!0,!0),u.width=Math.min(Math.max(u.width,u.minWidth),u.maxWidth),u.height=Math.min(Math.max(u.height,u.minHeight),u.maxHeight),u.left=(e.width-u.width)/2,u.top=(e.height-u.height)/2,u.oldLeft=u.left,u.oldTop=u.top,this.initialCanvasData=pt({},u)},limitCanvas:function(e,t){var r=this.options,o=this.containerData,i=this.canvasData,s=this.cropBoxData,a=r.viewMode,l=i.aspectRatio,d=this.cropped&&s;if(e){var u=Number(r.minCanvasWidth)||0,h=Number(r.minCanvasHeight)||0;a>1?(u=Math.max(u,o.width),h=Math.max(h,o.height),a===3&&(h*l>u?u=h*l:h=u/l)):a>0&&(u?u=Math.max(u,d?s.width:0):h?h=Math.max(h,d?s.height:0):d&&(u=s.width,h=s.height,h*l>u?u=h*l:h=u/l));var f=Ni({aspectRatio:l,width:u,height:h});u=f.width,h=f.height,i.minWidth=u,i.minHeight=h,i.maxWidth=1/0,i.maxHeight=1/0}if(t)if(a>(d?0:1)){var p=o.width-i.width,m=o.height-i.height;i.minLeft=Math.min(0,p),i.minTop=Math.min(0,m),i.maxLeft=Math.max(0,p),i.maxTop=Math.max(0,m),d&&this.limited&&(i.minLeft=Math.min(s.left,s.left+(s.width-i.width)),i.minTop=Math.min(s.top,s.top+(s.height-i.height)),i.maxLeft=s.left,i.maxTop=s.top,a===2&&(i.width>=o.width&&(i.minLeft=Math.min(0,p),i.maxLeft=Math.max(0,p)),i.height>=o.height&&(i.minTop=Math.min(0,m),i.maxTop=Math.max(0,m))))}else i.minLeft=-i.width,i.minTop=-i.height,i.maxLeft=o.width,i.maxTop=o.height},renderCanvas:function(e,t){var r=this.canvasData,o=this.imageData;if(t){var i=toe({width:o.naturalWidth*Math.abs(o.scaleX||1),height:o.naturalHeight*Math.abs(o.scaleY||1),degree:o.rotate||0}),s=i.width,a=i.height,l=r.width*(s/r.naturalWidth),d=r.height*(a/r.naturalHeight);r.left-=(l-r.width)/2,r.top-=(d-r.height)/2,r.width=l,r.height=d,r.aspectRatio=s/a,r.naturalWidth=s,r.naturalHeight=a,this.limitCanvas(!0,!1)}(r.width>r.maxWidth||r.width<r.minWidth)&&(r.left=r.oldLeft),(r.height>r.maxHeight||r.height<r.minHeight)&&(r.top=r.oldTop),r.width=Math.min(Math.max(r.width,r.minWidth),r.maxWidth),r.height=Math.min(Math.max(r.height,r.minHeight),r.maxHeight),this.limitCanvas(!1,!0),r.left=Math.min(Math.max(r.left,r.minLeft),r.maxLeft),r.top=Math.min(Math.max(r.top,r.minTop),r.maxTop),r.oldLeft=r.left,r.oldTop=r.top,Li(this.canvas,pt({width:r.width,height:r.height},W2({translateX:r.left,translateY:r.top}))),this.renderImage(e),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(e){var t=this.canvasData,r=this.imageData,o=r.naturalWidth*(t.width/t.naturalWidth),i=r.naturalHeight*(t.height/t.naturalHeight);pt(r,{width:o,height:i,left:(t.width-o)/2,top:(t.height-i)/2}),Li(this.image,pt({width:r.width,height:r.height},W2(pt({translateX:r.left,translateY:r.top},r)))),e&&this.output()},initCropBox:function(){var e=this.options,t=this.canvasData,r=e.aspectRatio||e.initialAspectRatio,o=Number(e.autoCropArea)||.8,i={width:t.width,height:t.height};r&&(t.height*r>t.width?i.height=i.width/r:i.width=i.height*r),this.cropBoxData=i,this.limitCropBox(!0,!0),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),i.width=Math.max(i.minWidth,i.width*o),i.height=Math.max(i.minHeight,i.height*o),i.left=t.left+(t.width-i.width)/2,i.top=t.top+(t.height-i.height)/2,i.oldLeft=i.left,i.oldTop=i.top,this.initialCropBoxData=pt({},i)},limitCropBox:function(e,t){var r=this.options,o=this.containerData,i=this.canvasData,s=this.cropBoxData,a=this.limited,l=r.aspectRatio;if(e){var d=Number(r.minCropBoxWidth)||0,u=Number(r.minCropBoxHeight)||0,h=a?Math.min(o.width,i.width,i.width+i.left,o.width-i.left):o.width,f=a?Math.min(o.height,i.height,i.height+i.top,o.height-i.top):o.height;d=Math.min(d,o.width),u=Math.min(u,o.height),l&&(d&&u?u*l>d?u=d/l:d=u*l:d?u=d/l:u&&(d=u*l),f*l>h?f=h/l:h=f*l),s.minWidth=Math.min(d,h),s.minHeight=Math.min(u,f),s.maxWidth=h,s.maxHeight=f}t&&(a?(s.minLeft=Math.max(0,i.left),s.minTop=Math.max(0,i.top),s.maxLeft=Math.min(o.width,i.left+i.width)-s.width,s.maxTop=Math.min(o.height,i.top+i.height)-s.height):(s.minLeft=0,s.minTop=0,s.maxLeft=o.width-s.width,s.maxTop=o.height-s.height))},renderCropBox:function(){var e=this.options,t=this.containerData,r=this.cropBoxData;(r.width>r.maxWidth||r.width<r.minWidth)&&(r.left=r.oldLeft),(r.height>r.maxHeight||r.height<r.minHeight)&&(r.top=r.oldTop),r.width=Math.min(Math.max(r.width,r.minWidth),r.maxWidth),r.height=Math.min(Math.max(r.height,r.minHeight),r.maxHeight),this.limitCropBox(!1,!0),r.left=Math.min(Math.max(r.left,r.minLeft),r.maxLeft),r.top=Math.min(Math.max(r.top,r.minTop),r.maxTop),r.oldLeft=r.left,r.oldTop=r.top,e.movable&&e.cropBoxMovable&&j2(this.face,$2,r.width>=t.width&&r.height>=t.height?Fw:g6),Li(this.cropBox,pt({width:r.width,height:r.height},W2({translateX:r.left,translateY:r.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),Fa(this.element,b6,this.getData())}},doe={initPreview:function(){var e=this.element,t=this.crossOrigin,r=this.options.preview,o=t?this.crossOriginUrl:this.url,i=e.alt||"The image to preview",s=document.createElement("img");if(t&&(s.crossOrigin=t),s.src=o,s.alt=i,this.viewBox.appendChild(s),this.viewBoxImage=s,!!r){var a=r;typeof r=="string"?a=e.ownerDocument.querySelectorAll(r):r.querySelector&&(a=[r]),this.previews=a,Ht(a,function(l){var d=document.createElement("img");j2(l,x1,{width:l.offsetWidth,height:l.offsetHeight,html:l.innerHTML}),t&&(d.crossOrigin=t),d.src=o,d.alt=i,d.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',l.innerHTML="",l.appendChild(d)})}},resetPreview:function(){Ht(this.previews,function(e){var t=T6(e,x1);Li(e,{width:t.width,height:t.height}),e.innerHTML=t.html,Gre(e,x1)})},preview:function(){var e=this.imageData,t=this.canvasData,r=this.cropBoxData,o=r.width,i=r.height,s=e.width,a=e.height,l=r.left-t.left-e.left,d=r.top-t.top-e.top;!this.cropped||this.disabled||(Li(this.viewBoxImage,pt({width:s,height:a},W2(pt({translateX:-l,translateY:-d},e)))),Ht(this.previews,function(u){var h=T6(u,x1),f=h.width,p=h.height,m=f,g=p,v=1;o&&(v=f/o,g=i*v),i&&g>p&&(v=p/i,m=o*v,g=p),Li(u,{width:m,height:g}),Li(u.getElementsByTagName("img")[0],pt({width:s*v,height:a*v},W2(pt({translateX:-l*v,translateY:-d*v},e))))}))}},uoe={bind:function(){var e=this.element,t=this.options,r=this.cropper;Rn(t.cropstart)&&yr(e,x6,t.cropstart),Rn(t.cropmove)&&yr(e,k6,t.cropmove),Rn(t.cropend)&&yr(e,w6,t.cropend),Rn(t.crop)&&yr(e,b6,t.crop),Rn(t.zoom)&&yr(e,S6,t.zoom),yr(r,Zw,this.onCropStart=this.cropStart.bind(this)),t.zoomable&&t.zoomOnWheel&&yr(r,Jw,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&yr(r,qw,this.onDblclick=this.dblclick.bind(this)),yr(e.ownerDocument,Kw,this.onCropMove=this.cropMove.bind(this)),yr(e.ownerDocument,Yw,this.onCropEnd=this.cropEnd.bind(this)),t.responsive&&yr(window,Gw,this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,t=this.options,r=this.cropper;Rn(t.cropstart)&&Dr(e,x6,t.cropstart),Rn(t.cropmove)&&Dr(e,k6,t.cropmove),Rn(t.cropend)&&Dr(e,w6,t.cropend),Rn(t.crop)&&Dr(e,b6,t.crop),Rn(t.zoom)&&Dr(e,S6,t.zoom),Dr(r,Zw,this.onCropStart),t.zoomable&&t.zoomOnWheel&&Dr(r,Jw,this.onWheel,{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&Dr(r,qw,this.onDblclick),Dr(e.ownerDocument,Kw,this.onCropMove),Dr(e.ownerDocument,Yw,this.onCropEnd),t.responsive&&Dr(window,Gw,this.onResize)}},hoe={resize:function(){if(!this.disabled){var e=this.options,t=this.container,r=this.containerData,o=t.offsetWidth/r.width,i=t.offsetHeight/r.height,s=Math.abs(o-1)>Math.abs(i-1)?o:i;if(s!==1){var a,l;e.restore&&(a=this.getCanvasData(),l=this.getCropBoxData()),this.render(),e.restore&&(this.setCanvasData(Ht(a,function(d,u){a[u]=d*s})),this.setCropBoxData(Ht(l,function(d,u){l[u]=d*s})))}}},dblclick:function(){this.disabled||this.options.dragMode===Uw||this.setDragMode(Yre(this.dragBox,v6)?Ww:C6)},wheel:function(e){var t=this,r=Number(this.options.wheelZoomRatio)||.1,o=1;this.disabled||(e.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){t.wheeling=!1},50),e.deltaY?o=e.deltaY>0?1:-1:e.wheelDelta?o=-e.wheelDelta/120:e.detail&&(o=e.detail>0?1:-1),this.zoom(-o*r,e)))},cropStart:function(e){var t=e.buttons,r=e.button;if(!(this.disabled||(e.type==="mousedown"||e.type==="pointerdown"&&e.pointerType==="mouse")&&(Le(t)&&t!==1||Le(r)&&r!==0||e.ctrlKey))){var o=this.options,i=this.pointers,s;e.changedTouches?Ht(e.changedTouches,function(a){i[a.identifier]=S1(a)}):i[e.pointerId||0]=S1(e),Object.keys(i).length>1&&o.zoomable&&o.zoomOnTouch?s=zw:s=T6(e.target,$2),Hre.test(s)&&Fa(this.element,x6,{originalEvent:e,action:s})!==!1&&(e.preventDefault(),this.action=s,this.cropping=!1,s===Hw&&(this.cropping=!0,Gt(this.dragBox,k1)))}},cropMove:function(e){var t=this.action;if(!(this.disabled||!t)){var r=this.pointers;e.preventDefault(),Fa(this.element,k6,{originalEvent:e,action:t})!==!1&&(e.changedTouches?Ht(e.changedTouches,function(o){pt(r[o.identifier]||{},S1(o,!0))}):pt(r[e.pointerId||0]||{},S1(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var t=this.action,r=this.pointers;e.changedTouches?Ht(e.changedTouches,function(o){delete r[o.identifier]}):delete r[e.pointerId||0],t&&(e.preventDefault(),Object.keys(r).length||(this.action=""),this.cropping&&(this.cropping=!1,Ha(this.dragBox,k1,this.cropped&&this.options.modal)),Fa(this.element,w6,{originalEvent:e,action:t}))}}},foe={change:function(e){var t=this.options,r=this.canvasData,o=this.containerData,i=this.cropBoxData,s=this.pointers,a=this.action,l=t.aspectRatio,d=i.left,u=i.top,h=i.width,f=i.height,p=d+h,m=u+f,g=0,v=0,y=o.width,C=o.height,b=!0,B;!l&&e.shiftKey&&(l=h&&f?h/f:1),this.limited&&(g=i.minLeft,v=i.minTop,y=g+Math.min(o.width,r.width,r.left+r.width),C=v+Math.min(o.height,r.height,r.top+r.height));var T=s[Object.keys(s)[0]],E={x:T.endX-T.startX,y:T.endY-T.startY},k=function(O){switch(O){case Ls:p+E.x>y&&(E.x=y-p);break;case Ns:d+E.x<g&&(E.x=g-d);break;case Oi:u+E.y<v&&(E.y=v-u);break;case Pa:m+E.y>C&&(E.y=C-m);break}};switch(a){case g6:d+=E.x,u+=E.y;break;case Ls:if(E.x>=0&&(p>=y||l&&(u<=v||m>=C))){b=!1;break}k(Ls),h+=E.x,h<0&&(a=Ns,h=-h,d-=h),l&&(f=h/l,u+=(i.height-f)/2);break;case Oi:if(E.y<=0&&(u<=v||l&&(d<=g||p>=y))){b=!1;break}k(Oi),f-=E.y,u+=E.y,f<0&&(a=Pa,f=-f,u-=f),l&&(h=f*l,d+=(i.width-h)/2);break;case Ns:if(E.x<=0&&(d<=g||l&&(u<=v||m>=C))){b=!1;break}k(Ns),h-=E.x,d+=E.x,h<0&&(a=Ls,h=-h,d-=h),l&&(f=h/l,u+=(i.height-f)/2);break;case Pa:if(E.y>=0&&(m>=C||l&&(d<=g||p>=y))){b=!1;break}k(Pa),f+=E.y,f<0&&(a=Oi,f=-f,u-=f),l&&(h=f*l,d+=(i.width-h)/2);break;case V2:if(l){if(E.y<=0&&(u<=v||p>=y)){b=!1;break}k(Oi),f-=E.y,u+=E.y,h=f*l}else k(Oi),k(Ls),E.x>=0?p<y?h+=E.x:E.y<=0&&u<=v&&(b=!1):h+=E.x,E.y<=0?u>v&&(f-=E.y,u+=E.y):(f-=E.y,u+=E.y);h<0&&f<0?(a=z2,f=-f,h=-h,u-=f,d-=h):h<0?(a=H2,h=-h,d-=h):f<0&&(a=F2,f=-f,u-=f);break;case H2:if(l){if(E.y<=0&&(u<=v||d<=g)){b=!1;break}k(Oi),f-=E.y,u+=E.y,h=f*l,d+=i.width-h}else k(Oi),k(Ns),E.x<=0?d>g?(h-=E.x,d+=E.x):E.y<=0&&u<=v&&(b=!1):(h-=E.x,d+=E.x),E.y<=0?u>v&&(f-=E.y,u+=E.y):(f-=E.y,u+=E.y);h<0&&f<0?(a=F2,f=-f,h=-h,u-=f,d-=h):h<0?(a=V2,h=-h,d-=h):f<0&&(a=z2,f=-f,u-=f);break;case z2:if(l){if(E.x<=0&&(d<=g||m>=C)){b=!1;break}k(Ns),h-=E.x,d+=E.x,f=h/l}else k(Pa),k(Ns),E.x<=0?d>g?(h-=E.x,d+=E.x):E.y>=0&&m>=C&&(b=!1):(h-=E.x,d+=E.x),E.y>=0?m<C&&(f+=E.y):f+=E.y;h<0&&f<0?(a=V2,f=-f,h=-h,u-=f,d-=h):h<0?(a=F2,h=-h,d-=h):f<0&&(a=H2,f=-f,u-=f);break;case F2:if(l){if(E.x>=0&&(p>=y||m>=C)){b=!1;break}k(Ls),h+=E.x,f=h/l}else k(Pa),k(Ls),E.x>=0?p<y?h+=E.x:E.y>=0&&m>=C&&(b=!1):h+=E.x,E.y>=0?m<C&&(f+=E.y):f+=E.y;h<0&&f<0?(a=H2,f=-f,h=-h,u-=f,d-=h):h<0?(a=z2,h=-h,d-=h):f<0&&(a=V2,f=-f,u-=f);break;case Fw:this.move(E.x,E.y),b=!1;break;case zw:this.zoom(Qre(s),e),b=!1;break;case Hw:if(!E.x||!E.y){b=!1;break}B=ak(this.cropper),d=T.startX-B.left,u=T.startY-B.top,h=i.minWidth,f=i.minHeight,E.x>0?a=E.y>0?F2:V2:E.x<0&&(d-=h,a=E.y>0?z2:H2),E.y<0&&(u-=f),this.cropped||(uo(this.cropBox,Pn),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}b&&(i.width=h,i.height=f,i.left=d,i.top=u,this.action=a,this.renderCropBox()),Ht(s,function(S){S.startX=S.endX,S.startY=S.endY})}},poe={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&Gt(this.dragBox,k1),uo(this.cropBox,Pn),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=pt({},this.initialImageData),this.canvasData=pt({},this.initialCanvasData),this.cropBoxData=pt({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(pt(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),uo(this.dragBox,k1),Gt(this.cropBox,Pn)),this},replace:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&e&&(this.isImg&&(this.element.src=e),t?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,Ht(this.previews,function(r){r.getElementsByTagName("img")[0].src=e}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(e))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,uo(this.cropper,$w)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,Gt(this.cropper,$w)),this},destroy:function(){var e=this.element;return e[ft]?(e[ft]=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=this.canvasData,o=r.left,i=r.top;return this.moveTo(E6(e)?e:o+Number(e),E6(t)?t:i+Number(t))},moveTo:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=this.canvasData,o=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.movable&&(Le(e)&&(r.left=e,o=!0),Le(t)&&(r.top=t,o=!0),o&&this.renderCanvas(!0)),this},zoom:function(e,t){var r=this.canvasData;return e=Number(e),e<0?e=1/(1-e):e=1+e,this.zoomTo(r.width*e/r.naturalWidth,null,t)},zoomTo:function(e,t,r){var o=this.options,i=this.canvasData,s=i.width,a=i.height,l=i.naturalWidth,d=i.naturalHeight;if(e=Number(e),e>=0&&this.ready&&!this.disabled&&o.zoomable){var u=l*e,h=d*e;if(Fa(this.element,S6,{ratio:e,oldRatio:s/l,originalEvent:r})===!1)return this;if(r){var f=this.pointers,p=ak(this.cropper),m=f&&Object.keys(f).length?eoe(f):{pageX:r.pageX,pageY:r.pageY};i.left-=(u-s)*((m.pageX-p.left-i.left)/s),i.top-=(h-a)*((m.pageY-p.top-i.top)/a)}else Ra(t)&&Le(t.x)&&Le(t.y)?(i.left-=(u-s)*((t.x-i.left)/s),i.top-=(h-a)*((t.y-i.top)/a)):(i.left-=(u-s)/2,i.top-=(h-a)/2);i.width=u,i.height=h,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return e=Number(e),Le(e)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var t=this.imageData.scaleY;return this.scale(e,Le(t)?t:1)},scaleY:function(e){var t=this.imageData.scaleX;return this.scale(Le(t)?t:1,e)},scale:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=this.imageData,o=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.scalable&&(Le(e)&&(r.scaleX=e,o=!0),Le(t)&&(r.scaleY=t,o=!0),o&&this.renderCanvas(!0,!0)),this},getData:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=this.options,r=this.imageData,o=this.canvasData,i=this.cropBoxData,s;if(this.ready&&this.cropped){s={x:i.left-o.left,y:i.top-o.top,width:i.width,height:i.height};var a=r.width/r.naturalWidth;if(Ht(s,function(u,h){s[h]=u/a}),e){var l=Math.round(s.y+s.height),d=Math.round(s.x+s.width);s.x=Math.round(s.x),s.y=Math.round(s.y),s.width=d-s.x,s.height=l-s.y}}else s={x:0,y:0,width:0,height:0};return t.rotatable&&(s.rotate=r.rotate||0),t.scalable&&(s.scaleX=r.scaleX||1,s.scaleY=r.scaleY||1),s},setData:function(e){var t=this.options,r=this.imageData,o=this.canvasData,i={};if(this.ready&&!this.disabled&&Ra(e)){var s=!1;t.rotatable&&Le(e.rotate)&&e.rotate!==r.rotate&&(r.rotate=e.rotate,s=!0),t.scalable&&(Le(e.scaleX)&&e.scaleX!==r.scaleX&&(r.scaleX=e.scaleX,s=!0),Le(e.scaleY)&&e.scaleY!==r.scaleY&&(r.scaleY=e.scaleY,s=!0)),s&&this.renderCanvas(!0,!0);var a=r.width/r.naturalWidth;Le(e.x)&&(i.left=e.x*a+o.left),Le(e.y)&&(i.top=e.y*a+o.top),Le(e.width)&&(i.width=e.width*a),Le(e.height)&&(i.height=e.height*a),this.setCropBoxData(i)}return this},getContainerData:function(){return this.ready?pt({},this.containerData):{}},getImageData:function(){return this.sized?pt({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,t={};return this.ready&&Ht(["left","top","width","height","naturalWidth","naturalHeight"],function(r){t[r]=e[r]}),t},setCanvasData:function(e){var t=this.canvasData,r=t.aspectRatio;return this.ready&&!this.disabled&&Ra(e)&&(Le(e.left)&&(t.left=e.left),Le(e.top)&&(t.top=e.top),Le(e.width)?(t.width=e.width,t.height=e.width/r):Le(e.height)&&(t.height=e.height,t.width=e.height*r),this.renderCanvas(!0)),this},getCropBoxData:function(){var e=this.cropBoxData,t;return this.ready&&this.cropped&&(t={left:e.left,top:e.top,width:e.width,height:e.height}),t||{}},setCropBoxData:function(e){var t=this.cropBoxData,r=this.options.aspectRatio,o,i;return this.ready&&this.cropped&&!this.disabled&&Ra(e)&&(Le(e.left)&&(t.left=e.left),Le(e.top)&&(t.top=e.top),Le(e.width)&&e.width!==t.width&&(o=!0,t.width=e.width),Le(e.height)&&e.height!==t.height&&(i=!0,t.height=e.height),r&&(o?t.height=t.width/r:i&&(t.width=t.height*r)),this.renderCropBox()),this},getCroppedCanvas:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var t=this.canvasData,r=noe(this.image,this.imageData,t,e);if(!this.cropped)return r;var o=this.getData(e.rounded),i=o.x,s=o.y,a=o.width,l=o.height,d=r.width/Math.floor(t.naturalWidth);d!==1&&(i*=d,s*=d,a*=d,l*=d);var u=a/l,h=Ni({aspectRatio:u,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),f=Ni({aspectRatio:u,width:e.minWidth||0,height:e.minHeight||0},"cover"),p=Ni({aspectRatio:u,width:e.width||(d!==1?r.width:a),height:e.height||(d!==1?r.height:l)}),m=p.width,g=p.height;m=Math.min(h.width,Math.max(f.width,m)),g=Math.min(h.height,Math.max(f.height,g));var v=document.createElement("canvas"),y=v.getContext("2d");v.width=Va(m),v.height=Va(g),y.fillStyle=e.fillColor||"transparent",y.fillRect(0,0,m,g);var C=e.imageSmoothingEnabled,b=C===void 0?!0:C,B=e.imageSmoothingQuality;y.imageSmoothingEnabled=b,B&&(y.imageSmoothingQuality=B);var T=r.width,E=r.height,k=i,S=s,O,A,x,M,L,D;k<=-a||k>T?(k=0,O=0,x=0,L=0):k<=0?(x=-k,k=0,O=Math.min(T,a+k),L=O):k<=T&&(x=0,O=Math.min(a,T-k),L=O),O<=0||S<=-l||S>E?(S=0,A=0,M=0,D=0):S<=0?(M=-S,S=0,A=Math.min(E,l+S),D=A):S<=E&&(M=0,A=Math.min(l,E-S),D=A);var _=[k,S,O,A];if(L>0&&D>0){var N=m/a;_.push(x*N,M*N,L*N,D*N)}return y.drawImage.apply(y,[r].concat(Vw(_.map(function(w){return Math.floor(Va(w))})))),v},setAspectRatio:function(e){var t=this.options;return!this.disabled&&!E6(e)&&(t.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var t=this.options,r=this.dragBox,o=this.face;if(this.ready&&!this.disabled){var i=e===C6,s=t.movable&&e===Ww;e=i||s?e:Uw,t.dragMode=e,j2(r,$2,e),Ha(r,v6,i),Ha(r,y6,s),t.cropBoxMovable||(j2(o,$2,e),Ha(o,v6,i),Ha(o,y6,s))}return this}},moe=co.Cropper,uk=(function(){function n(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Bre(this,n),!e||!$re.test(e.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=e,this.options=pt({},nk,Ra(t)&&t),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return _re(n,[{key:"init",value:function(){var t=this.element,r=t.tagName.toLowerCase(),o;if(!t[ft]){if(t[ft]=this,r==="img"){if(this.isImg=!0,o=t.getAttribute("src")||"",this.originalUrl=o,!o)return;o=t.src}else r==="canvas"&&window.HTMLCanvasElement&&(o=t.toDataURL());this.load(o)}}},{key:"load",value:function(t){var r=this;if(t){this.url=t,this.imageData={};var o=this.element,i=this.options;if(!i.rotatable&&!i.scalable&&(i.checkOrientation=!1),!i.checkOrientation||!window.ArrayBuffer){this.clone();return}if(Fre.test(t)){zre.test(t)?this.read(ioe(t)):this.clone();return}var s=new XMLHttpRequest,a=this.clone.bind(this);this.reloading=!0,this.xhr=s,s.onabort=a,s.onerror=a,s.ontimeout=a,s.onprogress=function(){s.getResponseHeader("content-type")!==Qw&&s.abort()},s.onload=function(){r.read(s.response)},s.onloadend=function(){r.reloading=!1,r.xhr=null},i.checkCrossOrigin&&lk(t)&&o.crossOrigin&&(t=ck(t)),s.open("GET",t,!0),s.responseType="arraybuffer",s.withCredentials=o.crossOrigin==="use-credentials",s.send()}}},{key:"read",value:function(t){var r=this.options,o=this.imageData,i=aoe(t),s=0,a=1,l=1;if(i>1){this.url=soe(t,Qw);var d=loe(i);s=d.rotate,a=d.scaleX,l=d.scaleY}r.rotatable&&(o.rotate=s),r.scalable&&(o.scaleX=a,o.scaleY=l),this.clone()}},{key:"clone",value:function(){var t=this.element,r=this.url,o=t.crossOrigin,i=r;this.options.checkCrossOrigin&&lk(r)&&(o||(o="anonymous"),i=ck(r)),this.crossOrigin=o,this.crossOriginUrl=i;var s=document.createElement("img");o&&(s.crossOrigin=o),s.src=i||r,s.alt=t.alt||"The image to crop",this.image=s,s.onload=this.start.bind(this),s.onerror=this.stop.bind(this),Gt(s,jw),t.parentNode.insertBefore(s,t.nextSibling)}},{key:"start",value:function(){var t=this,r=this.image;r.onload=null,r.onerror=null,this.sizing=!0;var o=co.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(co.navigator.userAgent),i=function(d,u){pt(t.imageData,{naturalWidth:d,naturalHeight:u,aspectRatio:d/u}),t.initialImageData=pt({},t.imageData),t.sizing=!1,t.sized=!0,t.build()};if(r.naturalWidth&&!o){i(r.naturalWidth,r.naturalHeight);return}var s=document.createElement("img"),a=document.body||document.documentElement;this.sizingImage=s,s.onload=function(){i(s.width,s.height),o||a.removeChild(s)},s.src=r.src,o||(s.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",a.appendChild(s))}},{key:"stop",value:function(){var t=this.image;t.onload=null,t.onerror=null,t.parentNode.removeChild(t),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var t=this.element,r=this.options,o=this.image,i=t.parentNode,s=document.createElement("div");s.innerHTML=jre;var a=s.querySelector(".".concat(ft,"-container")),l=a.querySelector(".".concat(ft,"-canvas")),d=a.querySelector(".".concat(ft,"-drag-box")),u=a.querySelector(".".concat(ft,"-crop-box")),h=u.querySelector(".".concat(ft,"-face"));this.container=i,this.cropper=a,this.canvas=l,this.dragBox=d,this.cropBox=u,this.viewBox=a.querySelector(".".concat(ft,"-view-box")),this.face=h,l.appendChild(o),Gt(t,Pn),i.insertBefore(a,t.nextSibling),uo(o,jw),this.initPreview(),this.bind(),r.initialAspectRatio=Math.max(0,r.initialAspectRatio)||NaN,r.aspectRatio=Math.max(0,r.aspectRatio)||NaN,r.viewMode=Math.max(0,Math.min(3,Math.round(r.viewMode)))||0,Gt(u,Pn),r.guides||Gt(u.getElementsByClassName("".concat(ft,"-dashed")),Pn),r.center||Gt(u.getElementsByClassName("".concat(ft,"-center")),Pn),r.background&&Gt(a,"".concat(ft,"-bg")),r.highlight||Gt(h,Ire),r.cropBoxMovable&&(Gt(h,y6),j2(h,$2,g6)),r.cropBoxResizable||(Gt(u.getElementsByClassName("".concat(ft,"-line")),Pn),Gt(u.getElementsByClassName("".concat(ft,"-point")),Pn)),this.render(),this.ready=!0,this.setDragMode(r.dragMode),r.autoCrop&&this.crop(),this.setData(r.data),Rn(r.ready)&&yr(t,Xw,r.ready,{once:!0}),Fa(t,Xw)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var t=this.cropper.parentNode;t&&t.removeChild(this.cropper),uo(this.element,Pn)}}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=moe,n}},{key:"setDefaults",value:function(t){pt(nk,Ra(t)&&t)}}])})();pt(uk.prototype,coe,doe,uoe,hoe,foe,poe);const goe={class:"cropper-wrapper_div"},voe={key:0,class:"cropper-wrapper"},yoe=c.defineComponent({__name:"ImageCropper",props:{image:{type:File,required:!1,default:null},width:{type:[Number],required:!1,default:360},height:{type:[Number],required:!1,default:0},showPreview:{type:Boolean,required:!1,default:!1},isRound:{type:Boolean,required:!1,default:!1}},emits:["update","sizeError"],setup(n,{emit:e}){const t=e,r=n;c.onMounted(()=>{r.image&&u(r.image)}),c.onUpdated(()=>{r.image&&u(r.image)});const o=c.ref(null),i=c.ref(null),s=c.ref(!1),a=c.ref(),l=c.ref(r.width);let d=null;function u(y){const C=new FileReader;C.onload=()=>{o.value.src=C.result,o.value.onload=async()=>{a.value||v(),h(o.value)}},C.readAsDataURL(y)}function h(y){d&&d.destroy(),d=new uk(y,{aspectRatio:1,viewMode:1})}async function f(){let y=d.getCroppedCanvas();const C=await g(y,.5);let b=null;if(r.isRound?b=p(C):b=C,!b)return;if(!await m(b)){t("sizeError");return}i.value&&(i.value.src=b.toDataURL(),s.value=!0),t("update",b)}function p(y){var C=document.createElement("canvas"),b=C.getContext("2d"),B=y.width,T=y.height;return C.width=B,C.height=T,b?(b.imageSmoothingEnabled=!0,b.drawImage(y,0,0,B,T),b.globalCompositeOperation="destination-in",b.beginPath(),b.arc(B/2,T/2,Math.min(B,T)/2,0,2*Math.PI,!0),b.fill(),C):null}async function m(y){return new Promise(C=>{y.toBlob(b=>{b&&(b.size/(1024*1024)>5?C(!1):C(!0))})})}async function g(y,C){return new Promise(b=>{const B=y.width*C,T=y.height*C,E=document.createElement("canvas");E.width=B,E.height=T,E.getContext("2d")?.drawImage(y,0,0,B,T),b(E)})}function v(){const{value:y}=o,{width:C,height:b}=y,B=r?.width??0,T=r?.height??0,E=B/T,k=C/b,S=k>E,O=S?B:T*k,A=S?B/k:T;l.value=O,a.value=A}return(y,C)=>(c.openBlock(),c.createElementBlock("div",goe,[n.image?(c.openBlock(),c.createElementBlock("div",voe,[c.createElementVNode("div",{id:"cropper-container",class:c.normalizeClass({"rounded-crop":n.isRound}),style:c.normalizeStyle(r.height?{"max-width":l.value+"px",height:a.value+"px"}:{"max-width":n.width+"px"})},[c.createElementVNode("img",{id:"cropper-image",ref_key:"croppingImage",ref:o},null,512)],6),c.createVNode(Lh,{class:"cropper-button",color:"primary",size:"small",style:c.normalizeStyle({"max-width":l.value+"px"}),width:"full",onClick:C[0]||(C[0]=c.withModifiers(b=>f(),["prevent"]))},{default:c.withCtx(()=>[...C[1]||(C[1]=[c.createTextVNode(" Crop ",-1)])]),_:1},8,["style"]),n.showPreview?c.withDirectives((c.openBlock(),c.createElementBlock("img",{key:0,id:"cropper-preview",ref_key:"cropPreview",ref:i},null,512)),[[c.vShow,s.value]]):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0)]))}}),Coe={class:"dh-line-chart-container"},boe=he({__name:"LineChart",props:{dataSets:{type:Object,default:()=>({})},title:{type:String,default:""},width:{type:Number,default:30},height:{type:Number,default:16}},setup(n){jl.register(dR,c5,lc,PP,f5,u5,lR);const e=c.ref(null),t=n,r=c.ref(!1),o=c.ref({labels:[],datasets:[]}),i=c.ref({responsive:!0,maintainAspectRatio:!0,interaction:{mode:"index",intersect:!1},elements:{point:{radius:0}},stacked:!1,plugins:{title:{display:!0,text:t.title||"Line Chart",color:getComputedStyle(document.documentElement).getPropertyValue("--dh-line-chart-title-color")?.trim()||"#828282",position:"top",align:"start",padding:{bottom:25},font:{weight:500,family:"'Rubik-Medium', 'Arial', 'Helvetica', 'sans-serif'",size:12}},tooltip:{callbacks:{title:()=>"",label:function(d){let u=" "+(d.dataset.label[d.dataIndex]||"");return d.parsed.y!==null&&(u+=": "+d.parsed.y),u},labelColor:function(d){if(d.chart.data.datasets[d.datasetIndex].spanGaps)return{backgroundColor:getComputedStyle(document.documentElement).getPropertyValue("--dh-line-chart-tooltip-color")?.trim()||"#0F71B4"}}}},legend:{display:!1}},scales:{y:{type:"linear",display:!0,position:"left",grid:{display:!1},border:{display:!1},min:0,ticks:{beginAtZero:!1,callback:function(d){return d===this.min||d===this.max?d:""}}},x:{display:!1}}});function s(d){return u=>{const f=u.chart.ctx.createLinearGradient(0,0,0,300);return f.addColorStop(0,d),f.addColorStop(1,d),f}}function a(){r.value=!1,Object.keys(t.dataSets).forEach((d,u)=>{const h=t.dataSets[d];if(Array.isArray(h.data)&&h.data.length){const f=h.data?.map(m=>m.label)||[],p=h.data?.map(m=>m.value)||[];o.value.datasets[u]={data:p,label:f,backgroundColor:s(h.backgroundColor),borderRadius:1,borderColor:getComputedStyle(document.documentElement).getPropertyValue("--dh-line-chart-border-color")?.trim()||"#0F71B4",fill:!0,pointStyle:!1,tension:.1},t.dataSets[d].hideBorder&&(o.value.datasets[u].borderWidth=0),t.dataSets[d].hideBorder||(o.value.datasets[u].spanGaps=!0),o.value.labels=f}c.nextTick(()=>{r.value=!0})})}c.onBeforeMount(()=>{a()}),c.watch(()=>t.title,d=>{i.value.plugins.title.text=d,i.value={...i.value}}),c.watch(()=>t.dataSets,()=>{l()},{deep:!0});function l(){const{datasets:d}=o.value,u=e.value?.chart;t.dataSets.forEach((h,f)=>{const{data:p}=h;if(!Array.isArray(p)||!p.length)return;const m=p.map(y=>y.value),g=d[f];if(!g)return;let v=!1;m.forEach((y,C)=>{g.data[C]!==y&&(g.data[C]=y,v=!0)}),v&&u&&u.update("none")})}return(d,u)=>(c.openBlock(),c.createElementBlock("div",Coe,[r.value?(c.openBlock(),c.createBlock(c.unref(NR),{key:0,ref_key:"chartInstance",ref:e,data:o.value,height:n.height,options:i.value,width:n.width},null,8,["data","height","options","width"])):c.createCommentVNode("",!0)]))}},[["__scopeId","data-v-3f243f7c"]]);function hk(n){return c.getCurrentScope()?(c.onScopeDispose(n),!0):!1}function Ps(n){return typeof n=="function"?n():c.unref(n)}const E1=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const woe=Object.prototype.toString,koe=n=>woe.call(n)==="[object Object]",za=()=>{},xoe=Soe();function Soe(){var n,e;return E1&&((n=window?.navigator)==null?void 0:n.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((e=window?.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function fk(n,e){function t(...r){return new Promise((o,i)=>{Promise.resolve(n(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(o).catch(i)})}return t}const pk=n=>n();function Eoe(n,e={}){let t,r,o=za;const i=a=>{clearTimeout(a),o(),o=za};return a=>{const l=Ps(n),d=Ps(e.maxWait);return t&&i(t),l<=0||d!==void 0&&d<=0?(r&&(i(r),r=null),Promise.resolve(a())):new Promise((u,h)=>{o=e.rejectOnCancel?h:u,d&&!r&&(r=setTimeout(()=>{t&&i(t),r=null,u(a())},d)),t=setTimeout(()=>{r&&i(r),r=null,u(a())},l)})}}function Moe(n=pk){const e=c.ref(!0);function t(){e.value=!1}function r(){e.value=!0}const o=(...i)=>{e.value&&n(...i)};return{isActive:c.readonly(e),pause:t,resume:r,eventFilter:o}}function Toe(n){let e;function t(){return e||(e=n()),e}return t.reset=async()=>{const r=e;e=void 0,r&&await r},t}function Boe(n){return c.getCurrentInstance()}function Fo(n,e=200,t={}){return fk(Eoe(e,t),n)}function _oe(n,e,t={}){const{eventFilter:r=pk,...o}=t;return c.watch(n,fk(r,e),o)}function Aoe(n,e,t={}){const{eventFilter:r,...o}=t,{eventFilter:i,pause:s,resume:a,isActive:l}=Moe(r);return{stop:_oe(n,e,{...o,eventFilter:i}),pause:s,resume:a,isActive:l}}function Rs(n,e=!0,t){Boe()?c.onMounted(n,t):e?n():c.nextTick(n)}function Ooe(n,e,t={}){const{immediate:r=!0}=t,o=c.ref(!1);let i=null;function s(){i&&(clearTimeout(i),i=null)}function a(){o.value=!1,s()}function l(...d){s(),o.value=!0,i=setTimeout(()=>{o.value=!1,i=null,n(...d)},Ps(e))}return r&&(o.value=!0,E1&&l()),hk(a),{isPending:c.readonly(o),start:l,stop:a}}function gn(n,e,t){const r=c.watch(n,(o,i,s)=>{o&&(t?.once&&c.nextTick(()=>r()),e(o,i,s))},{...t,once:!1});return r}function U2(n){var e;const t=Ps(n);return(e=t?.$el)!=null?e:t}const q2=E1?window:void 0,mk=E1?window.navigator:void 0;function Vs(...n){let e,t,r,o;if(typeof n[0]=="string"||Array.isArray(n[0])?([t,r,o]=n,e=q2):[e,t,r,o]=n,!e)return za;Array.isArray(t)||(t=[t]),Array.isArray(r)||(r=[r]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},a=(u,h,f,p)=>(u.addEventListener(h,f,p),()=>u.removeEventListener(h,f,p)),l=c.watch(()=>[U2(e),Ps(o)],([u,h])=>{if(s(),!u)return;const f=koe(h)?{...h}:h;i.push(...t.flatMap(p=>r.map(m=>a(u,p,m,f))))},{immediate:!0,flush:"post"}),d=()=>{l(),s()};return hk(d),d}let gk=!1;function Loe(n,e,t={}){const{window:r=q2,ignore:o=[],capture:i=!0,detectIframe:s=!1}=t;if(!r)return za;xoe&&!gk&&(gk=!0,Array.from(r.document.body.children).forEach(f=>f.addEventListener("click",za)),r.document.documentElement.addEventListener("click",za));let a=!0;const l=f=>o.some(p=>{if(typeof p=="string")return Array.from(r.document.querySelectorAll(p)).some(m=>m===f.target||f.composedPath().includes(m));{const m=U2(p);return m&&(f.target===m||f.composedPath().includes(m))}}),u=[Vs(r,"click",f=>{const p=U2(n);if(!(!p||p===f.target||f.composedPath().includes(p))){if(f.detail===0&&(a=!l(f)),!a){a=!0;return}e(f)}},{passive:!0,capture:i}),Vs(r,"pointerdown",f=>{const p=U2(n);a=!l(f)&&!!(p&&!f.composedPath().includes(p))},{passive:!0}),s&&Vs(r,"blur",f=>{setTimeout(()=>{var p;const m=U2(n);((p=r.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!m?.contains(r.document.activeElement)&&e(f)},0)})].filter(Boolean);return()=>u.forEach(f=>f())}function Noe(){const n=c.ref(!1),e=c.getCurrentInstance();return e&&c.onMounted(()=>{n.value=!0},e),n}function vk(n){const e=Noe();return c.computed(()=>(e.value,!!n()))}function yk(n,e={}){const{controls:t=!1,navigator:r=mk}=e,o=vk(()=>r&&"permissions"in r);let i;const s=typeof n=="string"?{name:n}:n,a=c.ref(),l=()=>{i&&(a.value=i.state)},d=Toe(async()=>{if(o.value){if(!i)try{i=await r.permissions.query(s),Vs(i,"change",l),l()}catch{a.value="prompt"}return i}});return d(),t?{state:a,isSupported:o,query:d}:a}function Doe(n={}){const{navigator:e=mk,read:t=!1,source:r,copiedDuring:o=1500,legacy:i=!1}=n,s=vk(()=>e&&"clipboard"in e),a=yk("clipboard-read"),l=yk("clipboard-write"),d=c.computed(()=>s.value||i),u=c.ref(""),h=c.ref(!1),f=Ooe(()=>h.value=!1,o);function p(){s.value&&y(a.value)?e.clipboard.readText().then(C=>{u.value=C}):u.value=v()}d.value&&t&&Vs(["copy","cut"],p);async function m(C=Ps(r)){d.value&&C!=null&&(s.value&&y(l.value)?await e.clipboard.writeText(C):g(C),u.value=C,h.value=!0,f.start())}function g(C){const b=document.createElement("textarea");b.value=C??"",b.style.position="absolute",b.style.opacity="0",document.body.appendChild(b),b.select(),document.execCommand("copy"),b.remove()}function v(){var C,b,B;return(B=(b=(C=document?.getSelection)==null?void 0:C.call(document))==null?void 0:b.toString())!=null?B:""}function y(C){return C==="granted"||C==="prompt"}return{isSupported:d,text:u,copied:h,copy:m}}const M1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},T1="__vueuse_ssr_handlers__",Ioe=Poe();function Poe(){return T1 in M1||(M1[T1]=M1[T1]||{}),M1[T1]}function Roe(n,e){return Ioe[n]||e}function Voe(n){return n==null?"any":n instanceof Set?"set":n instanceof Map?"map":n instanceof Date?"date":typeof n=="boolean"?"boolean":typeof n=="string"?"string":typeof n=="object"?"object":Number.isNaN(n)?"any":"number"}const Hoe={boolean:{read:n=>n==="true",write:n=>String(n)},object:{read:n=>JSON.parse(n),write:n=>JSON.stringify(n)},number:{read:n=>Number.parseFloat(n),write:n=>String(n)},any:{read:n=>n,write:n=>String(n)},string:{read:n=>n,write:n=>String(n)},map:{read:n=>new Map(JSON.parse(n)),write:n=>JSON.stringify(Array.from(n.entries()))},set:{read:n=>new Set(JSON.parse(n)),write:n=>JSON.stringify(Array.from(n))},date:{read:n=>new Date(n),write:n=>n.toISOString()}},Ck="vueuse-storage";function Foe(n,e,t,r={}){var o;const{flush:i="pre",deep:s=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:d=!1,shallow:u,window:h=q2,eventFilter:f,onError:p=A=>{console.error(A)},initOnMounted:m}=r,g=(u?c.shallowRef:c.ref)(typeof e=="function"?e():e);if(!t)try{t=Roe("getDefaultStorage",()=>{var A;return(A=q2)==null?void 0:A.localStorage})()}catch(A){p(A)}if(!t)return g;const v=Ps(e),y=Voe(v),C=(o=r.serializer)!=null?o:Hoe[y],{pause:b,resume:B}=Aoe(g,()=>E(g.value),{flush:i,deep:s,eventFilter:f});h&&a&&Rs(()=>{Vs(h,"storage",S),Vs(h,Ck,O),m&&S()}),m||S();function T(A,x){h&&h.dispatchEvent(new CustomEvent(Ck,{detail:{key:n,oldValue:A,newValue:x,storageArea:t}}))}function E(A){try{const x=t.getItem(n);if(A==null)T(x,null),t.removeItem(n);else{const M=C.write(A);x!==M&&(t.setItem(n,M),T(x,M))}}catch(x){p(x)}}function k(A){const x=A?A.newValue:t.getItem(n);if(x==null)return l&&v!=null&&t.setItem(n,C.write(v)),v;if(!A&&d){const M=C.read(x);return typeof d=="function"?d(M,v):y==="object"&&!Array.isArray(M)?{...v,...M}:M}else return typeof x!="string"?x:C.read(x)}function S(A){if(!(A&&A.storageArea!==t)){if(A&&A.key==null){g.value=v;return}if(!(A&&A.key!==n)){b();try{A?.newValue!==C.write(g.value)&&(g.value=k(A))}catch(x){p(x)}finally{A?c.nextTick(B):B()}}}}function O(A){S(A.detail)}return g}function B6(n,e,t={}){const{window:r=q2}=t;return Foe(n,e,r?.localStorage,t)}function B1(n){"@babel/helpers - typeof";return B1=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},B1(n)}var zoe=/^\s+/,$oe=/\s+$/;function oe(n,e){if(n=n||"",e=e||{},n instanceof oe)return n;if(!(this instanceof oe))return new oe(n,e);var t=joe(n);this._originalInput=n,this._r=t.r,this._g=t.g,this._b=t.b,this._a=t.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||t.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=t.ok}oe.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),t,r,o,i,s,a;return t=e.r/255,r=e.g/255,o=e.b/255,t<=.03928?i=t/12.92:i=Math.pow((t+.055)/1.055,2.4),r<=.03928?s=r/12.92:s=Math.pow((r+.055)/1.055,2.4),o<=.03928?a=o/12.92:a=Math.pow((o+.055)/1.055,2.4),.2126*i+.7152*s+.0722*a},setAlpha:function(e){return this._a=Ek(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=wk(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=wk(this._r,this._g,this._b),t=Math.round(e.h*360),r=Math.round(e.s*100),o=Math.round(e.v*100);return this._a==1?"hsv("+t+", "+r+"%, "+o+"%)":"hsva("+t+", "+r+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var e=bk(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=bk(this._r,this._g,this._b),t=Math.round(e.h*360),r=Math.round(e.s*100),o=Math.round(e.l*100);return this._a==1?"hsl("+t+", "+r+"%, "+o+"%)":"hsla("+t+", "+r+"%, "+o+"%, "+this._roundA+")"},toHex:function(e){return kk(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return Zoe(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(mt(this._r,255)*100)+"%",g:Math.round(mt(this._g,255)*100)+"%",b:Math.round(mt(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(mt(this._r,255)*100)+"%, "+Math.round(mt(this._g,255)*100)+"%, "+Math.round(mt(this._b,255)*100)+"%)":"rgba("+Math.round(mt(this._r,255)*100)+"%, "+Math.round(mt(this._g,255)*100)+"%, "+Math.round(mt(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:iie[kk(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var t="#"+xk(this._r,this._g,this._b,this._a),r=t,o=this._gradientType?"GradientType = 1, ":"";if(e){var i=oe(e);r="#"+xk(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,o=this._a<1&&this._a>=0,i=!t&&o&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return i?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return oe(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(Goe,arguments)},brighten:function(){return this._applyModification(Joe,arguments)},darken:function(){return this._applyModification(Qoe,arguments)},desaturate:function(){return this._applyModification(Koe,arguments)},saturate:function(){return this._applyModification(Yoe,arguments)},greyscale:function(){return this._applyModification(Xoe,arguments)},spin:function(){return this._applyModification(eie,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(rie,arguments)},complement:function(){return this._applyCombination(tie,arguments)},monochromatic:function(){return this._applyCombination(oie,arguments)},splitcomplement:function(){return this._applyCombination(nie,arguments)},triad:function(){return this._applyCombination(Sk,[3])},tetrad:function(){return this._applyCombination(Sk,[4])}},oe.fromRatio=function(n,e){if(B1(n)=="object"){var t={};for(var r in n)n.hasOwnProperty(r)&&(r==="a"?t[r]=n[r]:t[r]=Z2(n[r]));n=t}return oe(n,e)};function joe(n){var e={r:0,g:0,b:0},t=1,r=null,o=null,i=null,s=!1,a=!1;return typeof n=="string"&&(n=cie(n)),B1(n)=="object"&&(zo(n.r)&&zo(n.g)&&zo(n.b)?(e=Woe(n.r,n.g,n.b),s=!0,a=String(n.r).substr(-1)==="%"?"prgb":"rgb"):zo(n.h)&&zo(n.s)&&zo(n.v)?(r=Z2(n.s),o=Z2(n.v),e=qoe(n.h,r,o),s=!0,a="hsv"):zo(n.h)&&zo(n.s)&&zo(n.l)&&(r=Z2(n.s),i=Z2(n.l),e=Uoe(n.h,r,i),s=!0,a="hsl"),n.hasOwnProperty("a")&&(t=n.a)),t=Ek(t),{ok:s,format:n.format||a,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:t}}function Woe(n,e,t){return{r:mt(n,255)*255,g:mt(e,255)*255,b:mt(t,255)*255}}function bk(n,e,t){n=mt(n,255),e=mt(e,255),t=mt(t,255);var r=Math.max(n,e,t),o=Math.min(n,e,t),i,s,a=(r+o)/2;if(r==o)i=s=0;else{var l=r-o;switch(s=a>.5?l/(2-r-o):l/(r+o),r){case n:i=(e-t)/l+(e<t?6:0);break;case e:i=(t-n)/l+2;break;case t:i=(n-e)/l+4;break}i/=6}return{h:i,s,l:a}}function Uoe(n,e,t){var r,o,i;n=mt(n,360),e=mt(e,100),t=mt(t,100);function s(d,u,h){return h<0&&(h+=1),h>1&&(h-=1),h<1/6?d+(u-d)*6*h:h<1/2?u:h<2/3?d+(u-d)*(2/3-h)*6:d}if(e===0)r=o=i=t;else{var a=t<.5?t*(1+e):t+e-t*e,l=2*t-a;r=s(l,a,n+1/3),o=s(l,a,n),i=s(l,a,n-1/3)}return{r:r*255,g:o*255,b:i*255}}function wk(n,e,t){n=mt(n,255),e=mt(e,255),t=mt(t,255);var r=Math.max(n,e,t),o=Math.min(n,e,t),i,s,a=r,l=r-o;if(s=r===0?0:l/r,r==o)i=0;else{switch(r){case n:i=(e-t)/l+(e<t?6:0);break;case e:i=(t-n)/l+2;break;case t:i=(n-e)/l+4;break}i/=6}return{h:i,s,v:a}}function qoe(n,e,t){n=mt(n,360)*6,e=mt(e,100),t=mt(t,100);var r=Math.floor(n),o=n-r,i=t*(1-e),s=t*(1-o*e),a=t*(1-(1-o)*e),l=r%6,d=[t,s,i,i,a,t][l],u=[a,t,t,s,i,i][l],h=[i,i,a,t,t,s][l];return{r:d*255,g:u*255,b:h*255}}function kk(n,e,t,r){var o=[Ir(Math.round(n).toString(16)),Ir(Math.round(e).toString(16)),Ir(Math.round(t).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Zoe(n,e,t,r,o){var i=[Ir(Math.round(n).toString(16)),Ir(Math.round(e).toString(16)),Ir(Math.round(t).toString(16)),Ir(Mk(r))];return o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function xk(n,e,t,r){var o=[Ir(Mk(r)),Ir(Math.round(n).toString(16)),Ir(Math.round(e).toString(16)),Ir(Math.round(t).toString(16))];return o.join("")}oe.equals=function(n,e){return!n||!e?!1:oe(n).toRgbString()==oe(e).toRgbString()},oe.random=function(){return oe.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function Koe(n,e){e=e===0?0:e||10;var t=oe(n).toHsl();return t.s-=e/100,t.s=_1(t.s),oe(t)}function Yoe(n,e){e=e===0?0:e||10;var t=oe(n).toHsl();return t.s+=e/100,t.s=_1(t.s),oe(t)}function Xoe(n){return oe(n).desaturate(100)}function Goe(n,e){e=e===0?0:e||10;var t=oe(n).toHsl();return t.l+=e/100,t.l=_1(t.l),oe(t)}function Joe(n,e){e=e===0?0:e||10;var t=oe(n).toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(255*-(e/100)))),t.g=Math.max(0,Math.min(255,t.g-Math.round(255*-(e/100)))),t.b=Math.max(0,Math.min(255,t.b-Math.round(255*-(e/100)))),oe(t)}function Qoe(n,e){e=e===0?0:e||10;var t=oe(n).toHsl();return t.l-=e/100,t.l=_1(t.l),oe(t)}function eie(n,e){var t=oe(n).toHsl(),r=(t.h+e)%360;return t.h=r<0?360+r:r,oe(t)}function tie(n){var e=oe(n).toHsl();return e.h=(e.h+180)%360,oe(e)}function Sk(n,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var t=oe(n).toHsl(),r=[oe(n)],o=360/e,i=1;i<e;i++)r.push(oe({h:(t.h+i*o)%360,s:t.s,l:t.l}));return r}function nie(n){var e=oe(n).toHsl(),t=e.h;return[oe(n),oe({h:(t+72)%360,s:e.s,l:e.l}),oe({h:(t+216)%360,s:e.s,l:e.l})]}function rie(n,e,t){e=e||6,t=t||30;var r=oe(n).toHsl(),o=360/t,i=[oe(n)];for(r.h=(r.h-(o*e>>1)+720)%360;--e;)r.h=(r.h+o)%360,i.push(oe(r));return i}function oie(n,e){e=e||6;for(var t=oe(n).toHsv(),r=t.h,o=t.s,i=t.v,s=[],a=1/e;e--;)s.push(oe({h:r,s:o,v:i})),i=(i+a)%1;return s}oe.mix=function(n,e,t){t=t===0?0:t||50;var r=oe(n).toRgb(),o=oe(e).toRgb(),i=t/100,s={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return oe(s)},oe.readability=function(n,e){var t=oe(n),r=oe(e);return(Math.max(t.getLuminance(),r.getLuminance())+.05)/(Math.min(t.getLuminance(),r.getLuminance())+.05)},oe.isReadable=function(n,e,t){var r=oe.readability(n,e),o,i;switch(i=!1,o=die(t),o.level+o.size){case"AAsmall":case"AAAlarge":i=r>=4.5;break;case"AAlarge":i=r>=3;break;case"AAAsmall":i=r>=7;break}return i},oe.mostReadable=function(n,e,t){var r=null,o=0,i,s,a,l;t=t||{},s=t.includeFallbackColors,a=t.level,l=t.size;for(var d=0;d<e.length;d++)i=oe.readability(n,e[d]),i>o&&(o=i,r=oe(e[d]));return oe.isReadable(n,r,{level:a,size:l})||!s?r:(t.includeFallbackColors=!1,oe.mostReadable(n,["#fff","#000"],t))};var _6=oe.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},iie=oe.hexNames=sie(_6);function sie(n){var e={};for(var t in n)n.hasOwnProperty(t)&&(e[n[t]]=t);return e}function Ek(n){return n=parseFloat(n),(isNaN(n)||n<0||n>1)&&(n=1),n}function mt(n,e){aie(n)&&(n="100%");var t=lie(n);return n=Math.min(e,Math.max(0,parseFloat(n))),t&&(n=parseInt(n*e,10)/100),Math.abs(n-e)<1e-6?1:n%e/parseFloat(e)}function _1(n){return Math.min(1,Math.max(0,n))}function Gn(n){return parseInt(n,16)}function aie(n){return typeof n=="string"&&n.indexOf(".")!=-1&&parseFloat(n)===1}function lie(n){return typeof n=="string"&&n.indexOf("%")!=-1}function Ir(n){return n.length==1?"0"+n:""+n}function Z2(n){return n<=1&&(n=n*100+"%"),n}function Mk(n){return Math.round(parseFloat(n)*255).toString(16)}function Tk(n){return Gn(n)/255}var Pr=(function(){var n="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",t="(?:"+e+")|(?:"+n+")",r="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",o="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function zo(n){return!!Pr.CSS_UNIT.exec(n)}function cie(n){n=n.replace(zoe,"").replace($oe,"").toLowerCase();var e=!1;if(_6[n])n=_6[n],e=!0;else if(n=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t;return(t=Pr.rgb.exec(n))?{r:t[1],g:t[2],b:t[3]}:(t=Pr.rgba.exec(n))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Pr.hsl.exec(n))?{h:t[1],s:t[2],l:t[3]}:(t=Pr.hsla.exec(n))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Pr.hsv.exec(n))?{h:t[1],s:t[2],v:t[3]}:(t=Pr.hsva.exec(n))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Pr.hex8.exec(n))?{r:Gn(t[1]),g:Gn(t[2]),b:Gn(t[3]),a:Tk(t[4]),format:e?"name":"hex8"}:(t=Pr.hex6.exec(n))?{r:Gn(t[1]),g:Gn(t[2]),b:Gn(t[3]),format:e?"name":"hex"}:(t=Pr.hex4.exec(n))?{r:Gn(t[1]+""+t[1]),g:Gn(t[2]+""+t[2]),b:Gn(t[3]+""+t[3]),a:Tk(t[4]+""+t[4]),format:e?"name":"hex8"}:(t=Pr.hex3.exec(n))?{r:Gn(t[1]+""+t[1]),g:Gn(t[2]+""+t[2]),b:Gn(t[3]+""+t[3]),format:e?"name":"hex"}:!1}function die(n){var e,t;return n=n||{level:"AA",size:"small"},e=(n.level||"AA").toUpperCase(),t=(n.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),t!=="small"&&t!=="large"&&(t="small"),{level:e,size:t}}var A1={},Bk;function uie(){if(Bk)return A1;Bk=1;var n=n||{};n.stringify=(function(){var e={"visit_linear-gradient":function(t){return e.visit_gradient(t)},"visit_repeating-linear-gradient":function(t){return e.visit_gradient(t)},"visit_radial-gradient":function(t){return e.visit_gradient(t)},"visit_repeating-radial-gradient":function(t){return e.visit_gradient(t)},visit_gradient:function(t){var r=e.visit(t.orientation);return r&&(r+=", "),t.type+"("+r+e.visit(t.colorStops)+")"},visit_shape:function(t){var r=t.value,o=e.visit(t.at),i=e.visit(t.style);return i&&(r+=" "+i),o&&(r+=" at "+o),r},"visit_default-radial":function(t){var r="",o=e.visit(t.at);return o&&(r+=o),r},"visit_extent-keyword":function(t){var r=t.value,o=e.visit(t.at);return o&&(r+=" at "+o),r},"visit_position-keyword":function(t){return t.value},visit_position:function(t){return e.visit(t.value.x)+" "+e.visit(t.value.y)},"visit_%":function(t){return t.value+"%"},visit_em:function(t){return t.value+"em"},visit_px:function(t){return t.value+"px"},visit_calc:function(t){return"calc("+t.value+")"},visit_literal:function(t){return e.visit_color(t.value,t)},visit_hex:function(t){return e.visit_color("#"+t.value,t)},visit_rgb:function(t){return e.visit_color("rgb("+t.value.join(", ")+")",t)},visit_rgba:function(t){return e.visit_color("rgba("+t.value.join(", ")+")",t)},visit_hsl:function(t){return e.visit_color("hsl("+t.value[0]+", "+t.value[1]+"%, "+t.value[2]+"%)",t)},visit_hsla:function(t){return e.visit_color("hsla("+t.value[0]+", "+t.value[1]+"%, "+t.value[2]+"%, "+t.value[3]+")",t)},visit_var:function(t){return e.visit_color("var("+t.value+")",t)},visit_color:function(t,r){var o=t,i=e.visit(r.length);return i&&(o+=" "+i),o},visit_angular:function(t){return t.value+"deg"},visit_directional:function(t){return"to "+t.value},visit_array:function(t){var r="",o=t.length;return t.forEach(function(i,s){r+=e.visit(i),s<o-1&&(r+=", ")}),r},visit_object:function(t){return t.width&&t.height?e.visit(t.width)+" "+e.visit(t.height):""},visit:function(t){if(!t)return"";if(t instanceof Array)return e.visit_array(t);if(typeof t=="object"&&!t.type)return e.visit_object(t);if(t.type){var r=e["visit_"+t.type];if(r)return r(t);throw Error("Missing visitor visit_"+t.type)}else throw Error("Invalid node.")}};return function(t){return e.visit(t)}})();var n=n||{};return n.parse=(function(){var e={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,radianValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))rad/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,varColor:/^var/i,calcValue:/^calc/i,variableName:/^(--[a-zA-Z0-9-,\s\#]+)/,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/,hslColor:/^hsl/i,hslaColor:/^hsla/i},t="";function r(j){var P=new Error(t+": "+j);throw P.source=t,P}function o(){var j=i();return t.length>0&&r("Invalid input not EOF"),j}function i(){return B(s)}function s(){return a("linear-gradient",e.linearGradient,d)||a("repeating-linear-gradient",e.repeatingLinearGradient,d)||a("radial-gradient",e.radialGradient,f)||a("repeating-radial-gradient",e.repeatingRadialGradient,f)}function a(j,P,I){return l(P,function(V){var z=I();return z&&($(e.comma)||r("Missing comma before color stops")),{type:j,orientation:z,colorStops:B(T)}})}function l(j,P){var I=$(j);if(I){$(e.startCall)||r("Missing (");var V=P(I);return $(e.endCall)||r("Missing )"),V}}function d(){var j=u();if(j)return j;var P=F("position-keyword",e.positionKeywords,1);return P?{type:"directional",value:P.value}:h()}function u(){return F("directional",e.sideOrCorner,1)}function h(){return F("angular",e.angleValue,1)||F("angular",e.radianValue,1)}function f(){var j,P=p(),I;return P&&(j=[],j.push(P),I=t,$(e.comma)&&(P=p(),P?j.push(P):t=I)),j}function p(){var j=m()||g();if(j)j.at=y();else{var P=v();if(P){j=P;var I=y();I&&(j.at=I)}else{var V=y();if(V)j={type:"default-radial",at:V};else{var z=C();z&&(j={type:"default-radial",at:z})}}}return j}function m(){var j=F("shape",/^(circle)/i,0);return j&&(j.style=H()||v()),j}function g(){var j=F("shape",/^(ellipse)/i,0);return j&&(j.style=C()||N()||v()),j}function v(){return F("extent-keyword",e.extentKeywords,1)}function y(){if(F("position",/^at/,0)){var j=C();return j||r("Missing positioning value"),j}}function C(){var j=b();if(j.x||j.y)return{type:"position",value:j}}function b(){return{x:N(),y:N()}}function B(j){var P=j(),I=[];if(P)for(I.push(P);$(e.comma);)P=j(),P?I.push(P):r("One extra comma");return I}function T(){var j=E();return j||r("Expected color definition"),j.length=N(),j}function E(){return S()||L()||M()||A()||O()||x()||k()}function k(){return F("literal",e.literalColor,0)}function S(){return F("hex",e.hexColor,1)}function O(){return l(e.rgbColor,function(){return{type:"rgb",value:B(_)}})}function A(){return l(e.rgbaColor,function(){return{type:"rgba",value:B(_)}})}function x(){return l(e.varColor,function(){return{type:"var",value:D()}})}function M(){return l(e.hslColor,function(){var j=$(e.percentageValue);j&&r("HSL hue value must be a number in degrees (0-360) or normalized (-360 to 360), not a percentage");var P=_();$(e.comma);var I=$(e.percentageValue),V=I?I[1]:null;$(e.comma),I=$(e.percentageValue);var z=I?I[1]:null;return(!V||!z)&&r("Expected percentage value for saturation and lightness in HSL"),{type:"hsl",value:[P,V,z]}})}function L(){return l(e.hslaColor,function(){var j=_();$(e.comma);var P=$(e.percentageValue),I=P?P[1]:null;$(e.comma),P=$(e.percentageValue);var V=P?P[1]:null;$(e.comma);var z=_();return(!I||!V)&&r("Expected percentage value for saturation and lightness in HSLA"),{type:"hsla",value:[j,I,V,z]}})}function D(){return $(e.variableName)[1]}function _(){return $(e.number)[1]}function N(){return F("%",e.percentageValue,1)||w()||R()||H()}function w(){return F("position-keyword",e.positionKeywords,1)}function R(){return l(e.calcValue,function(){for(var j=1,P=0;j>0&&P<t.length;){var I=t.charAt(P);I==="("?j++:I===")"&&j--,P++}j>0&&r("Missing closing parenthesis in calc() expression");var V=t.substring(0,P-1);return q(P-1),{type:"calc",value:V}})}function H(){return F("px",e.pixelValue,1)||F("em",e.emValue,1)}function F(j,P,I){var V=$(P);if(V)return{type:j,value:V[I]}}function $(j){var P,I;return I=/^[\n\r\t\s]+/.exec(t),I&&q(I[0].length),P=j.exec(t),P&&q(P[0].length),P}function q(j){t=t.substr(j)}return function(j){return t=j.toString().trim(),t.endsWith(";")&&(t=t.slice(0,-1)),o()}})(),A1.parse=n.parse,A1.stringify=n.stringify,A1}var _k=uie(),Vn="top",Cr="bottom",br="right",Hn="left",A6="auto",K2=[Vn,Cr,br,Hn],$a="start",Y2="end",hie="clippingParents",Ak="viewport",X2="popper",fie="reference",Ok=K2.reduce(function(n,e){return n.concat([e+"-"+$a,e+"-"+Y2])},[]),Lk=[].concat(K2,[A6]).reduce(function(n,e){return n.concat([e,e+"-"+$a,e+"-"+Y2])},[]),pie="beforeRead",mie="read",gie="afterRead",vie="beforeMain",yie="main",Cie="afterMain",bie="beforeWrite",wie="write",kie="afterWrite",xie=[pie,mie,gie,vie,yie,Cie,bie,wie,kie];function ho(n){return n?(n.nodeName||"").toLowerCase():null}function Jn(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function Hs(n){var e=Jn(n).Element;return n instanceof e||n instanceof Element}function wr(n){var e=Jn(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function O6(n){if(typeof ShadowRoot>"u")return!1;var e=Jn(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function Sie(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var r=e.styles[t]||{},o=e.attributes[t]||{},i=e.elements[t];!wr(i)||!ho(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function Eie(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.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]:t[r]),a=s.reduce(function(l,d){return l[d]="",l},{});!wr(o)||!ho(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const Mie={name:"applyStyles",enabled:!0,phase:"write",fn:Sie,effect:Eie,requires:["computeStyles"]};function fo(n){return n.split("-")[0]}var Fs=Math.max,O1=Math.min,ja=Math.round;function L6(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Nk(){return!/^((?!chrome|android).)*safari/i.test(L6())}function Wa(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var r=n.getBoundingClientRect(),o=1,i=1;e&&wr(n)&&(o=n.offsetWidth>0&&ja(r.width)/n.offsetWidth||1,i=n.offsetHeight>0&&ja(r.height)/n.offsetHeight||1);var s=Hs(n)?Jn(n):window,a=s.visualViewport,l=!Nk()&&t,d=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/i,h=r.width/o,f=r.height/i;return{width:h,height:f,top:u,right:d+h,bottom:u+f,left:d,x:d,y:u}}function N6(n){var e=Wa(n),t=n.offsetWidth,r=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:r}}function Dk(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&O6(t)){var r=e;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function $o(n){return Jn(n).getComputedStyle(n)}function Tie(n){return["table","td","th"].indexOf(ho(n))>=0}function Di(n){return((Hs(n)?n.ownerDocument:n.document)||window.document).documentElement}function L1(n){return ho(n)==="html"?n:n.assignedSlot||n.parentNode||(O6(n)?n.host:null)||Di(n)}function Ik(n){return!wr(n)||$o(n).position==="fixed"?null:n.offsetParent}function Bie(n){var e=/firefox/i.test(L6()),t=/Trident/i.test(L6());if(t&&wr(n)){var r=$o(n);if(r.position==="fixed")return null}var o=L1(n);for(O6(o)&&(o=o.host);wr(o)&&["html","body"].indexOf(ho(o))<0;){var i=$o(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 G2(n){for(var e=Jn(n),t=Ik(n);t&&Tie(t)&&$o(t).position==="static";)t=Ik(t);return t&&(ho(t)==="html"||ho(t)==="body"&&$o(t).position==="static")?e:t||Bie(n)||e}function D6(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function J2(n,e,t){return Fs(n,O1(e,t))}function _ie(n,e,t){var r=J2(n,e,t);return r>t?t:r}function Pk(){return{top:0,right:0,bottom:0,left:0}}function Rk(n){return Object.assign({},Pk(),n)}function Vk(n,e){return e.reduce(function(t,r){return t[r]=n,t},{})}var Aie=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Rk(typeof e!="number"?e:Vk(e,K2))};function Oie(n){var e,t=n.state,r=n.name,o=n.options,i=t.elements.arrow,s=t.modifiersData.popperOffsets,a=fo(t.placement),l=D6(a),d=[Hn,br].indexOf(a)>=0,u=d?"height":"width";if(!(!i||!s)){var h=Aie(o.padding,t),f=N6(i),p=l==="y"?Vn:Hn,m=l==="y"?Cr:br,g=t.rects.reference[u]+t.rects.reference[l]-s[l]-t.rects.popper[u],v=s[l]-t.rects.reference[l],y=G2(i),C=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,b=g/2-v/2,B=h[p],T=C-f[u]-h[m],E=C/2-f[u]/2+b,k=J2(B,E,T),S=l;t.modifiersData[r]=(e={},e[S]=k,e.centerOffset=k-E,e)}}function Lie(n){var e=n.state,t=n.options,r=t.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||Dk(e.elements.popper,o)&&(e.elements.arrow=o))}const Nie={name:"arrow",enabled:!0,phase:"main",fn:Oie,effect:Lie,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ua(n){return n.split("-")[1]}var Die={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Iie(n,e){var t=n.x,r=n.y,o=e.devicePixelRatio||1;return{x:ja(t*o)/o||0,y:ja(r*o)/o||0}}function Hk(n){var e,t=n.popper,r=n.popperRect,o=n.placement,i=n.variation,s=n.offsets,a=n.position,l=n.gpuAcceleration,d=n.adaptive,u=n.roundOffsets,h=n.isFixed,f=s.x,p=f===void 0?0:f,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"),C=s.hasOwnProperty("y"),b=Hn,B=Vn,T=window;if(d){var E=G2(t),k="clientHeight",S="clientWidth";if(E===Jn(t)&&(E=Di(t),$o(E).position!=="static"&&a==="absolute"&&(k="scrollHeight",S="scrollWidth")),E=E,o===Vn||(o===Hn||o===br)&&i===Y2){B=Cr;var O=h&&E===T&&T.visualViewport?T.visualViewport.height:E[k];g-=O-r.height,g*=l?1:-1}if(o===Hn||(o===Vn||o===Cr)&&i===Y2){b=br;var A=h&&E===T&&T.visualViewport?T.visualViewport.width:E[S];p-=A-r.width,p*=l?1:-1}}var x=Object.assign({position:a},d&&Die),M=u===!0?Iie({x:p,y:g},Jn(t)):{x:p,y:g};if(p=M.x,g=M.y,l){var L;return Object.assign({},x,(L={},L[B]=C?"0":"",L[b]=y?"0":"",L.transform=(T.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",L))}return Object.assign({},x,(e={},e[B]=C?g+"px":"",e[b]=y?p+"px":"",e.transform="",e))}function Pie(n){var e=n.state,t=n.options,r=t.gpuAcceleration,o=r===void 0?!0:r,i=t.adaptive,s=i===void 0?!0:i,a=t.roundOffsets,l=a===void 0?!0:a,d={placement:fo(e.placement),variation:Ua(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,Hk(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Hk(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Rie={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Pie,data:{}};var N1={passive:!0};function Vie(n){var e=n.state,t=n.instance,r=n.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=Jn(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&d.forEach(function(u){u.addEventListener("scroll",t.update,N1)}),a&&l.addEventListener("resize",t.update,N1),function(){i&&d.forEach(function(u){u.removeEventListener("scroll",t.update,N1)}),a&&l.removeEventListener("resize",t.update,N1)}}const Hie={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vie,data:{}};var Fie={left:"right",right:"left",bottom:"top",top:"bottom"};function D1(n){return n.replace(/left|right|bottom|top/g,function(e){return Fie[e]})}var zie={start:"end",end:"start"};function Fk(n){return n.replace(/start|end/g,function(e){return zie[e]})}function I6(n){var e=Jn(n),t=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:t,scrollTop:r}}function P6(n){return Wa(Di(n)).left+I6(n).scrollLeft}function $ie(n,e){var t=Jn(n),r=Di(n),o=t.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var d=Nk();(d||!d&&e==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+P6(n),y:l}}function jie(n){var e,t=Di(n),r=I6(n),o=(e=n.ownerDocument)==null?void 0:e.body,i=Fs(t.scrollWidth,t.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Fs(t.scrollHeight,t.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+P6(n),l=-r.scrollTop;return $o(o||t).direction==="rtl"&&(a+=Fs(t.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function R6(n){var e=$o(n),t=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+o+r)}function zk(n){return["html","body","#document"].indexOf(ho(n))>=0?n.ownerDocument.body:wr(n)&&R6(n)?n:zk(L1(n))}function Q2(n,e){var t;e===void 0&&(e=[]);var r=zk(n),o=r===((t=n.ownerDocument)==null?void 0:t.body),i=Jn(r),s=o?[i].concat(i.visualViewport||[],R6(r)?r:[]):r,a=e.concat(s);return o?a:a.concat(Q2(L1(s)))}function V6(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function Wie(n,e){var t=Wa(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function $k(n,e,t){return e===Ak?V6($ie(n,t)):Hs(e)?Wie(e,t):V6(jie(Di(n)))}function Uie(n){var e=Q2(L1(n)),t=["absolute","fixed"].indexOf($o(n).position)>=0,r=t&&wr(n)?G2(n):n;return Hs(r)?e.filter(function(o){return Hs(o)&&Dk(o,r)&&ho(o)!=="body"}):[]}function qie(n,e,t,r){var o=e==="clippingParents"?Uie(n):[].concat(e),i=[].concat(o,[t]),s=i[0],a=i.reduce(function(l,d){var u=$k(n,d,r);return l.top=Fs(u.top,l.top),l.right=O1(u.right,l.right),l.bottom=O1(u.bottom,l.bottom),l.left=Fs(u.left,l.left),l},$k(n,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function jk(n){var e=n.reference,t=n.element,r=n.placement,o=r?fo(r):null,i=r?Ua(r):null,s=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2,l;switch(o){case Vn:l={x:s,y:e.y-t.height};break;case Cr:l={x:s,y:e.y+e.height};break;case br:l={x:e.x+e.width,y:a};break;case Hn:l={x:e.x-t.width,y:a};break;default:l={x:e.x,y:e.y}}var d=o?D6(o):null;if(d!=null){var u=d==="y"?"height":"width";switch(i){case $a:l[d]=l[d]-(e[u]/2-t[u]/2);break;case Y2:l[d]=l[d]+(e[u]/2-t[u]/2);break}}return l}function e0(n,e){e===void 0&&(e={});var t=e,r=t.placement,o=r===void 0?n.placement:r,i=t.strategy,s=i===void 0?n.strategy:i,a=t.boundary,l=a===void 0?hie:a,d=t.rootBoundary,u=d===void 0?Ak:d,h=t.elementContext,f=h===void 0?X2:h,p=t.altBoundary,m=p===void 0?!1:p,g=t.padding,v=g===void 0?0:g,y=Rk(typeof v!="number"?v:Vk(v,K2)),C=f===X2?fie:X2,b=n.rects.popper,B=n.elements[m?C:f],T=qie(Hs(B)?B:B.contextElement||Di(n.elements.popper),l,u,s),E=Wa(n.elements.reference),k=jk({reference:E,element:b,placement:o}),S=V6(Object.assign({},b,k)),O=f===X2?S:E,A={top:T.top-O.top+y.top,bottom:O.bottom-T.bottom+y.bottom,left:T.left-O.left+y.left,right:O.right-T.right+y.right},x=n.modifiersData.offset;if(f===X2&&x){var M=x[o];Object.keys(A).forEach(function(L){var D=[br,Cr].indexOf(L)>=0?1:-1,_=[Vn,Cr].indexOf(L)>=0?"y":"x";A[L]+=M[_]*D})}return A}function Zie(n,e){e===void 0&&(e={});var t=e,r=t.placement,o=t.boundary,i=t.rootBoundary,s=t.padding,a=t.flipVariations,l=t.allowedAutoPlacements,d=l===void 0?Lk:l,u=Ua(r),h=u?a?Ok:Ok.filter(function(m){return Ua(m)===u}):K2,f=h.filter(function(m){return d.indexOf(m)>=0});f.length===0&&(f=h);var p=f.reduce(function(m,g){return m[g]=e0(n,{placement:g,boundary:o,rootBoundary:i,padding:s})[fo(g)],m},{});return Object.keys(p).sort(function(m,g){return p[m]-p[g]})}function Kie(n){if(fo(n)===A6)return[];var e=D1(n);return[Fk(n),e,Fk(e)]}function Yie(n){var e=n.state,t=n.options,r=n.name;if(!e.modifiersData[r]._skip){for(var o=t.mainAxis,i=o===void 0?!0:o,s=t.altAxis,a=s===void 0?!0:s,l=t.fallbackPlacements,d=t.padding,u=t.boundary,h=t.rootBoundary,f=t.altBoundary,p=t.flipVariations,m=p===void 0?!0:p,g=t.allowedAutoPlacements,v=e.options.placement,y=fo(v),C=y===v,b=l||(C||!m?[D1(v)]:Kie(v)),B=[v].concat(b).reduce(function(P,I){return P.concat(fo(I)===A6?Zie(e,{placement:I,boundary:u,rootBoundary:h,padding:d,flipVariations:m,allowedAutoPlacements:g}):I)},[]),T=e.rects.reference,E=e.rects.popper,k=new Map,S=!0,O=B[0],A=0;A<B.length;A++){var x=B[A],M=fo(x),L=Ua(x)===$a,D=[Vn,Cr].indexOf(M)>=0,_=D?"width":"height",N=e0(e,{placement:x,boundary:u,rootBoundary:h,altBoundary:f,padding:d}),w=D?L?br:Hn:L?Cr:Vn;T[_]>E[_]&&(w=D1(w));var R=D1(w),H=[];if(i&&H.push(N[M]<=0),a&&H.push(N[w]<=0,N[R]<=0),H.every(function(P){return P})){O=x,S=!1;break}k.set(x,H)}if(S)for(var F=m?3:1,$=function(I){var V=B.find(function(z){var Z=k.get(z);if(Z)return Z.slice(0,I).every(function(X){return X})});if(V)return O=V,"break"},q=F;q>0;q--){var j=$(q);if(j==="break")break}e.placement!==O&&(e.modifiersData[r]._skip=!0,e.placement=O,e.reset=!0)}}const Xie={name:"flip",enabled:!0,phase:"main",fn:Yie,requiresIfExists:["offset"],data:{_skip:!1}};function Wk(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function Uk(n){return[Vn,br,Cr,Hn].some(function(e){return n[e]>=0})}function Gie(n){var e=n.state,t=n.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,s=e0(e,{elementContext:"reference"}),a=e0(e,{altBoundary:!0}),l=Wk(s,r),d=Wk(a,o,i),u=Uk(l),h=Uk(d);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}const Jie={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Gie};function Qie(n,e,t){var r=fo(n),o=[Hn,Vn].indexOf(r)>=0?-1:1,i=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[Hn,br].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function ese(n){var e=n.state,t=n.options,r=n.name,o=t.offset,i=o===void 0?[0,0]:o,s=Lk.reduce(function(u,h){return u[h]=Qie(h,e.rects,i),u},{}),a=s[e.placement],l=a.x,d=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=d),e.modifiersData[r]=s}const tse={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ese};function nse(n){var e=n.state,t=n.name;e.modifiersData[t]=jk({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const rse={name:"popperOffsets",enabled:!0,phase:"read",fn:nse,data:{}};function ose(n){return n==="x"?"y":"x"}function ise(n){var e=n.state,t=n.options,r=n.name,o=t.mainAxis,i=o===void 0?!0:o,s=t.altAxis,a=s===void 0?!1:s,l=t.boundary,d=t.rootBoundary,u=t.altBoundary,h=t.padding,f=t.tether,p=f===void 0?!0:f,m=t.tetherOffset,g=m===void 0?0:m,v=e0(e,{boundary:l,rootBoundary:d,padding:h,altBoundary:u}),y=fo(e.placement),C=Ua(e.placement),b=!C,B=D6(y),T=ose(B),E=e.modifiersData.popperOffsets,k=e.rects.reference,S=e.rects.popper,O=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,A=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),x=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,M={x:0,y:0};if(E){if(i){var L,D=B==="y"?Vn:Hn,_=B==="y"?Cr:br,N=B==="y"?"height":"width",w=E[B],R=w+v[D],H=w-v[_],F=p?-S[N]/2:0,$=C===$a?k[N]:S[N],q=C===$a?-S[N]:-k[N],j=e.elements.arrow,P=p&&j?N6(j):{width:0,height:0},I=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Pk(),V=I[D],z=I[_],Z=J2(0,k[N],P[N]),X=b?k[N]/2-F-Z-V-A.mainAxis:$-Z-V-A.mainAxis,le=b?-k[N]/2+F+Z+z+A.mainAxis:q+Z+z+A.mainAxis,ne=e.elements.arrow&&G2(e.elements.arrow),re=ne?B==="y"?ne.clientTop||0:ne.clientLeft||0:0,ae=(L=x?.[B])!=null?L:0,Me=w+X-ae-re,pe=w+le-ae,zt=J2(p?O1(R,Me):R,w,p?Fs(H,pe):H);E[B]=zt,M[B]=zt-w}if(a){var Qe,Xe=B==="x"?Vn:Hn,Mt=B==="x"?Cr:br,ct=E[T],Qt=T==="y"?"height":"width",Rr=ct+v[Xe],tr=ct-v[Mt],Bn=[Vn,Hn].indexOf(y)!==-1,en=(Qe=x?.[T])!=null?Qe:0,Er=Bn?Rr:ct-k[Qt]-S[Qt]-en+A.altAxis,_n=Bn?ct+k[Qt]+S[Qt]-en-A.altAxis:tr,An=p&&Bn?_ie(Er,ct,_n):J2(p?Er:Rr,ct,p?_n:tr);E[T]=An,M[T]=An-ct}e.modifiersData[r]=M}}const sse={name:"preventOverflow",enabled:!0,phase:"main",fn:ise,requiresIfExists:["offset"]};function ase(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function lse(n){return n===Jn(n)||!wr(n)?I6(n):ase(n)}function cse(n){var e=n.getBoundingClientRect(),t=ja(e.width)/n.offsetWidth||1,r=ja(e.height)/n.offsetHeight||1;return t!==1||r!==1}function dse(n,e,t){t===void 0&&(t=!1);var r=wr(e),o=wr(e)&&cse(e),i=Di(e),s=Wa(n,o,t),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!t)&&((ho(e)!=="body"||R6(i))&&(a=lse(e)),wr(e)?(l=Wa(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=P6(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function use(n){var e=new Map,t=new Set,r=[];n.forEach(function(i){e.set(i.name,i)});function o(i){t.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!t.has(a)){var l=e.get(a);l&&o(l)}}),r.push(i)}return n.forEach(function(i){t.has(i.name)||o(i)}),r}function hse(n){var e=use(n);return xie.reduce(function(t,r){return t.concat(e.filter(function(o){return o.phase===r}))},[])}function fse(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function pse(n){var e=n.reduce(function(t,r){var o=t[r.name];return t[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,t},{});return Object.keys(e).map(function(t){return e[t]})}var qk={placement:"bottom",modifiers:[],strategy:"absolute"};function Zk(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function mse(n){n===void 0&&(n={});var e=n,t=e.defaultModifiers,r=t===void 0?[]:t,o=e.defaultOptions,i=o===void 0?qk:o;return function(a,l,d){d===void 0&&(d=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},qk,i),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},h=[],f=!1,p={state:u,setOptions:function(y){var C=typeof y=="function"?y(u.options):y;g(),u.options=Object.assign({},i,u.options,C),u.scrollParents={reference:Hs(a)?Q2(a):a.contextElement?Q2(a.contextElement):[],popper:Q2(l)};var b=hse(pse([].concat(r,u.options.modifiers)));return u.orderedModifiers=b.filter(function(B){return B.enabled}),m(),p.update()},forceUpdate:function(){if(!f){var y=u.elements,C=y.reference,b=y.popper;if(Zk(C,b)){u.rects={reference:dse(C,G2(b),u.options.strategy==="fixed"),popper:N6(b)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(A){return u.modifiersData[A.name]=Object.assign({},A.data)});for(var B=0;B<u.orderedModifiers.length;B++){if(u.reset===!0){u.reset=!1,B=-1;continue}var T=u.orderedModifiers[B],E=T.fn,k=T.options,S=k===void 0?{}:k,O=T.name;typeof E=="function"&&(u=E({state:u,options:S,name:O,instance:p})||u)}}}},update:fse(function(){return new Promise(function(v){p.forceUpdate(),v(u)})}),destroy:function(){g(),f=!0}};if(!Zk(a,l))return p;p.setOptions(d).then(function(v){!f&&d.onFirstUpdate&&d.onFirstUpdate(v)});function m(){u.orderedModifiers.forEach(function(v){var y=v.name,C=v.options,b=C===void 0?{}:C,B=v.effect;if(typeof B=="function"){var T=B({state:u,name:y,instance:p,options:b}),E=function(){};h.push(T||E)}})}function g(){h.forEach(function(v){return v()}),h=[]}return p}}var gse=[Hie,rse,Rie,Mie,tse,Xie,sse,Nie,Jie],vse=mse({defaultModifiers:gse});function Kk(n){return Object.prototype.toString.call(n)==="[object Object]"}function yse(n){var e,t;return Kk(n)===!1?!1:(e=n.constructor,e===void 0?!0:(t=e.prototype,!(Kk(t)===!1||t.hasOwnProperty("isPrototypeOf")===!1)))}function t0(){return t0=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},t0.apply(this,arguments)}function Yk(n,e){if(n==null)return{};var t,r,o={},i=Object.keys(n);for(r=0;r<i.length;r++)e.indexOf(t=i[r])>=0||(o[t]=n[t]);return o}const H6={silent:!1,logLevel:"warn"},Cse=["validator"],Xk=Object.prototype,Gk=Xk.toString,bse=Xk.hasOwnProperty,Jk=/^\s*function (\w+)/;function Qk(n){var e;const t=(e=n?.type)!==null&&e!==void 0?e:n;if(t){const r=t.toString().match(Jk);return r?r[1]:""}return""}const zs=yse,ex=n=>n;let ln=ex;process.env.NODE_ENV!=="production"&&(ln=typeof console<"u"?function(e,t=H6.logLevel){H6.silent===!1&&console[t](`[VueTypes warn]: ${e}`)}:ex);const qa=(n,e)=>bse.call(n,e),wse=Number.isInteger||function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n},Za=Array.isArray||function(n){return Gk.call(n)==="[object Array]"},Ka=n=>Gk.call(n)==="[object Function]",I1=n=>zs(n)&&qa(n,"_vueTypes_name"),tx=n=>zs(n)&&(qa(n,"type")||["_vueTypes_name","validator","default","required"].some(e=>qa(n,e)));function F6(n,e){return Object.defineProperty(n.bind(e),"__original",{value:n})}function $s(n,e,t=!1){let r,o=!0,i="";r=zs(n)?n:{type:n};const s=I1(r)?r._vueTypes_name+" - ":"";if(tx(r)&&r.type!==null){if(r.type===void 0||r.type===!0||!r.required&&e===void 0)return o;Za(r.type)?(o=r.type.some(a=>$s(a,e,!0)===!0),i=r.type.map(a=>Qk(a)).join(" or ")):(i=Qk(r),o=i==="Array"?Za(e):i==="Object"?zs(e):i==="String"||i==="Number"||i==="Boolean"||i==="Function"?(function(a){if(a==null)return"";const l=a.constructor.toString().match(Jk);return l?l[1]:""})(e)===i:e instanceof r.type)}if(!o){const a=`${s}value "${e}" should be of type "${i}"`;return t===!1?(ln(a),!1):a}if(qa(r,"validator")&&Ka(r.validator)){const a=ln,l=[];if(ln=d=>{l.push(d)},o=r.validator(e),ln=a,!o){const d=(l.length>1?"* ":"")+l.join(`
|
|
433
433
|
* `);return l.length=0,t===!1?(ln(d),o):d}}return o}function Qn(n,e){const t=Object.defineProperties(e,{_vueTypes_name:{value:n,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(o){return o===void 0?(qa(this,"default")&&delete this.default,this):Ka(o)||$s(this,o,!0)===!0?(this.default=Za(o)?()=>[...o]:zs(o)?()=>Object.assign({},o):o,this):(ln(`${this._vueTypes_name} - invalid default value: "${o}"`),this)}}}),{validator:r}=t;return Ka(r)&&(t.validator=F6(r,t)),t}function po(n,e){const t=Qn(n,e);return Object.defineProperty(t,"validate",{value(r){return Ka(this.validator)&&ln(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:
|