ados-rcm 1.1.671 → 1.1.673

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/index.cjs.js CHANGED
@@ -333,7 +333,7 @@ ${Lv(this.code(e,t))}
333
333
  `,{[au.blotName]:t}),i.insert(o)),new Jn);const r=this.quill.root.ownerDocument.createElement("div");return r.classList.add(au.className),r.innerHTML=dN(this.options.hljs,t,e),Gm(this.quill.scroll,r,[(i,o)=>{const l=bp.value(i);return l?o.compose(new Jn().retain(o.length(),{[Rd.blotName]:l})):o}],[(i,o)=>i.data.split(`
334
334
  `).reduce((l,a,h)=>(h!==0&&l.insert(`
335
335
  `,{[au.blotName]:t}),l.insert(a)),o)],new WeakMap)}}Q4.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};const Sp=class Sp extends kc{static create(e){const t=super.create();return e?t.setAttribute("data-row",e):t.setAttribute("data-row",Ym()),t}static formats(e){if(e.hasAttribute("data-row"))return e.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(e,t){e===Sp.blotName&&t?this.domNode.setAttribute("data-row",t):super.format(e,t)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}};Ee(Sp,"blotName","table"),Ee(Sp,"tagName","TD");let Lh=Sp;class Id extends Gg{checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const e=this.children.head.formats(),t=this.children.tail.formats(),r=this.next.children.head.formats(),i=this.next.children.tail.formats();return e.table===t.table&&e.table===r.table&&e.table===i.table}return!1}optimize(e){super.optimize(e),this.children.forEach(t=>{if(t.next==null)return;const r=t.formats(),i=t.next.formats();if(r.table!==i.table){const o=this.splitAfter(t);o&&o.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}Ee(Id,"blotName","table-row"),Ee(Id,"tagName","TR");class ed extends Gg{}Ee(ed,"blotName","table-body"),Ee(ed,"tagName","TBODY");class T1 extends Gg{balanceCells(){const e=this.descendants(Id),t=e.reduce((r,i)=>Math.max(i.children.length,r),0);e.forEach(r=>{new Array(t-r.children.length).fill(0).forEach(()=>{let i;r.children.head!=null&&(i=Lh.formats(r.children.head.domNode));const o=this.scroll.create(Lh.blotName,i);r.appendChild(o),o.optimize()})})}cells(e){return this.rows().map(t=>t.children.at(e))}deleteColumn(e){const[t]=this.descendant(ed);t==null||t.children.head==null||t.children.forEach(r=>{const i=r.children.at(e);i!=null&&i.remove()})}insertColumn(e){const[t]=this.descendant(ed);t==null||t.children.head==null||t.children.forEach(r=>{const i=r.children.at(e),o=Lh.formats(r.children.head.domNode),l=this.scroll.create(Lh.blotName,o);r.insertBefore(l,i)})}insertRow(e){const[t]=this.descendant(ed);if(t==null||t.children.head==null)return;const r=Ym(),i=this.scroll.create(Id.blotName);t.children.head.children.forEach(()=>{const l=this.scroll.create(Lh.blotName,r);i.appendChild(l)});const o=t.children.at(e);t.insertBefore(i,o)}rows(){const e=this.children.head;return e==null?[]:e.children.map(t=>t)}}Ee(T1,"blotName","table-container"),Ee(T1,"tagName","TABLE");T1.allowedChildren=[ed];ed.requiredContainer=T1;ed.allowedChildren=[Id];Id.requiredContainer=ed;Id.allowedChildren=[Lh];Lh.requiredContainer=Id;function Ym(){return`row-${Math.random().toString(36).slice(2,6)}`}class gN extends Wh{static register(){Xe.register(Lh),Xe.register(Id),Xe.register(ed),Xe.register(T1)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(T1).forEach(e=>{e.balanceCells()})}deleteColumn(){const[e,,t]=this.getTable();t!=null&&(e.deleteColumn(t.cellOffset()),this.quill.update(Xe.sources.USER))}deleteRow(){const[,e]=this.getTable();e!=null&&(e.remove(),this.quill.update(Xe.sources.USER))}deleteTable(){const[e]=this.getTable();if(e==null)return;const t=e.offset();e.remove(),this.quill.update(Xe.sources.USER),this.quill.setSelection(t,Xe.sources.SILENT)}getTable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(e==null)return[null,null,null,-1];const[t,r]=this.quill.getLine(e.index);if(t==null||t.statics.blotName!==Lh.blotName)return[null,null,null,-1];const i=t.parent;return[i.parent.parent,i,t,r]}insertColumn(e){const t=this.quill.getSelection();if(!t)return;const[r,i,o]=this.getTable(t);if(o==null)return;const l=o.cellOffset();r.insertColumn(l+e),this.quill.update(Xe.sources.USER);let a=i.rowOffset();e===0&&(a+=1),this.quill.setSelection(t.index+a,t.length,Xe.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(e){const t=this.quill.getSelection();if(!t)return;const[r,i,o]=this.getTable(t);if(o==null)return;const l=i.rowOffset();r.insertRow(l+e),this.quill.update(Xe.sources.USER),e>0?this.quill.setSelection(t,Xe.sources.SILENT):this.quill.setSelection(t.index+i.children.length,t.length,Xe.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(e,t){const r=this.quill.getSelection();if(r==null)return;const i=new Array(e).fill(0).reduce(o=>{const l=new Array(t).fill(`
336
- `).join("");return o.insert(l,{table:Ym()})},new Jn().retain(r.index));this.quill.updateContents(i,Xe.sources.USER),this.quill.setSelection(r.index,Xe.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(Xe.events.SCROLL_OPTIMIZE,e=>{e.some(t=>["TD","TR","TBODY","TABLE"].includes(t.target.tagName)?(this.quill.once(Xe.events.TEXT_CHANGE,(r,i,o)=>{o===Xe.sources.USER&&this.balanceTables()}),!0):!1)})}}const sw=Md("quill:toolbar");let Vm=class extends Wh{constructor(e,t){var r,i;if(super(e,t),Array.isArray(this.options.container)){const o=document.createElement("div");o.setAttribute("role","toolbar"),pN(o,this.options.container),(i=(r=e.container)==null?void 0:r.parentNode)==null||i.insertBefore(o,e.container),this.container=o}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){sw.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(o=>{var a;const l=(a=this.options.handlers)==null?void 0:a[o];l&&this.addHandler(o,l)}),Array.from(this.container.querySelectorAll("button, select")).forEach(o=>{this.attach(o)}),this.quill.on(Xe.events.EDITOR_CHANGE,()=>{const[o]=this.quill.selection.getRange();this.update(o)})}addHandler(e,t){this.handlers[e]=t}attach(e){let t=Array.from(e.classList).find(i=>i.indexOf("ql-")===0);if(!t)return;if(t=t.slice(3),e.tagName==="BUTTON"&&e.setAttribute("type","button"),this.handlers[t]==null&&this.quill.scroll.query(t)==null){sw.warn("ignoring attaching to nonexistent format",t,e);return}const r=e.tagName==="SELECT"?"change":"click";e.addEventListener(r,i=>{let o;if(e.tagName==="SELECT"){if(e.selectedIndex<0)return;const a=e.options[e.selectedIndex];a.hasAttribute("selected")?o=!1:o=a.value||!1}else e.classList.contains("ql-active")?o=!1:o=e.value||!e.hasAttribute("value"),i.preventDefault();this.quill.focus();const[l]=this.quill.selection.getRange();if(this.handlers[t]!=null)this.handlers[t].call(this,o);else if(this.quill.scroll.query(t).prototype instanceof zf){if(o=prompt(`Enter ${t}`),!o)return;this.quill.updateContents(new Jn().retain(l.index).delete(l.length).insert({[t]:o}),Xe.sources.USER)}else this.quill.format(t,o,Xe.sources.USER);this.update(l)}),this.controls.push([t,e])}update(e){const t=e==null?{}:this.quill.getFormat(e);this.controls.forEach(r=>{const[i,o]=r;if(o.tagName==="SELECT"){let l=null;if(e==null)l=null;else if(t[i]==null)l=o.querySelector("option[selected]");else if(!Array.isArray(t[i])){let a=t[i];typeof a=="string"&&(a=a.replace(/"/g,'\\"')),l=o.querySelector(`option[value="${a}"]`)}l==null?(o.value="",o.selectedIndex=-1):l.selected=!0}else if(e==null)o.classList.remove("ql-active"),o.setAttribute("aria-pressed","false");else if(o.hasAttribute("value")){const l=t[i],a=l===o.getAttribute("value")||l!=null&&l.toString()===o.getAttribute("value")||l==null&&!o.getAttribute("value");o.classList.toggle("ql-active",a),o.setAttribute("aria-pressed",a.toString())}else{const l=t[i]!=null;o.classList.toggle("ql-active",l),o.setAttribute("aria-pressed",l.toString())}})}};Vm.DEFAULTS={};function aw(n,e,t){const r=document.createElement("button");r.setAttribute("type","button"),r.classList.add(`ql-${e}`),r.setAttribute("aria-pressed","false"),t!=null?(r.value=t,r.setAttribute("aria-label",`${e}: ${t}`)):r.setAttribute("aria-label",e),n.appendChild(r)}function pN(n,e){Array.isArray(e[0])||(e=[e]),e.forEach(t=>{const r=document.createElement("span");r.classList.add("ql-formats"),t.forEach(i=>{if(typeof i=="string")aw(r,i);else{const o=Object.keys(i)[0],l=i[o];Array.isArray(l)?vN(r,o,l):aw(r,o,l)}}),n.appendChild(r)})}function vN(n,e,t){const r=document.createElement("select");r.classList.add(`ql-${e}`),t.forEach(i=>{const o=document.createElement("option");i!==!1?o.setAttribute("value",String(i)):o.setAttribute("selected","selected"),r.appendChild(o)}),n.appendChild(r)}Vm.DEFAULTS={container:null,handlers:{clean(){const n=this.quill.getSelection();if(n!=null)if(n.length===0){const e=this.quill.getFormat();Object.keys(e).forEach(t=>{this.quill.scroll.query(t,Qn.INLINE)!=null&&this.quill.format(t,!1,Xe.sources.USER)})}else this.quill.removeFormat(n.index,n.length,Xe.sources.USER)},direction(n){const{align:e}=this.quill.getFormat();n==="rtl"&&e==null?this.quill.format("align","right",Xe.sources.USER):!n&&e==="right"&&this.quill.format("align",!1,Xe.sources.USER),this.quill.format("direction",n,Xe.sources.USER)},indent(n){const e=this.quill.getSelection(),t=this.quill.getFormat(e),r=parseInt(t.indent||0,10);if(n==="+1"||n==="-1"){let i=n==="+1"?1:-1;t.direction==="rtl"&&(i*=-1),this.quill.format("indent",r+i,Xe.sources.USER)}},link(n){n===!0&&(n=prompt("Enter link URL:")),this.quill.format("link",n,Xe.sources.USER)},list(n){const e=this.quill.getSelection(),t=this.quill.getFormat(e);n==="check"?t.list==="checked"||t.list==="unchecked"?this.quill.format("list",!1,Xe.sources.USER):this.quill.format("list","unchecked",Xe.sources.USER):this.quill.format("list",n,Xe.sources.USER)}}};const bN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',yN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',mN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',xN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',wN='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',CN='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',_N='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',SN='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',cw='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',EN='<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',TN='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',AN='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>',RN='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',IN='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',kN='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',MN='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',LN='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',ON='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',PN='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>',DN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',NN='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',FN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',BN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>',zN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',HN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',WN='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',UN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>',GN='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',YN='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>',VN='<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',ZN='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',XN='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',KN='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>',Pp={align:{"":bN,center:yN,right:mN,justify:xN},background:wN,blockquote:CN,bold:_N,clean:SN,code:cw,"code-block":cw,color:EN,direction:{"":TN,rtl:AN},formula:RN,header:{1:IN,2:kN,3:MN,4:LN,5:ON,6:PN},italic:DN,image:NN,indent:{"+1":FN,"-1":BN},link:zN,list:{bullet:HN,check:WN,ordered:UN},script:{sub:GN,super:YN},strike:VN,table:ZN,underline:XN,video:KN},JN='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let uw=0;function fw(n,e){n.setAttribute(e,`${n.getAttribute(e)!=="true"}`)}class Ov{constructor(e){this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",t=>{switch(t.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),t.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),fw(this.label,"aria-expanded"),fw(this.options,"aria-hidden")}buildItem(e){const t=document.createElement("span");t.tabIndex="0",t.setAttribute("role","button"),t.classList.add("ql-picker-item");const r=e.getAttribute("value");return r&&t.setAttribute("data-value",r),e.textContent&&t.setAttribute("data-label",e.textContent),t.addEventListener("click",()=>{this.selectItem(t,!0)}),t.addEventListener("keydown",i=>{switch(i.key){case"Enter":this.selectItem(t,!0),i.preventDefault();break;case"Escape":this.escape(),i.preventDefault();break}}),t}buildLabel(){const e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=JN,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}buildOptions(){const e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id=`ql-picker-options-${uw}`,uw+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,Array.from(this.select.options).forEach(t=>{const r=this.buildItem(t);e.appendChild(r),t.selected===!0&&this.selectItem(r)}),this.container.appendChild(e)}buildPicker(){Array.from(this.select.attributes).forEach(e=>{this.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.container.querySelector(".ql-selected");e!==r&&(r!=null&&r.classList.remove("ql-selected"),e!=null&&(e.classList.add("ql-selected"),this.select.selectedIndex=Array.from(e.parentNode.children).indexOf(e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let e;if(this.select.selectedIndex>-1){const r=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(r)}else this.selectItem(null);const t=e!=null&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",t)}}class q4 extends Ov{constructor(e,t){super(e),this.label.innerHTML=t,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(r=>{r.classList.add("ql-primary")})}buildItem(e){const t=super.buildItem(e);return t.style.backgroundColor=e.getAttribute("value")||"",t}selectItem(e,t){super.selectItem(e,t);const r=this.label.querySelector(".ql-color-label"),i=e&&e.getAttribute("data-value")||"";r&&(r.tagName==="line"?r.style.stroke=i:r.style.fill=i)}}class j4 extends Ov{constructor(e,t){super(e),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(r=>{r.innerHTML=t[r.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(e,t){super.selectItem(e,t);const r=e||this.defaultItem;if(r!=null){if(this.label.innerHTML===r.innerHTML)return;this.label.innerHTML=r.innerHTML}}}const QN=n=>{const{overflowY:e}=getComputedStyle(n,null);return e!=="visible"&&e!=="clip"};class $4{constructor(e,t){this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,QN(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(e){const t=e.left+e.width/2-this.root.offsetWidth/2,r=e.bottom+this.quill.root.scrollTop;this.root.style.left=`${t}px`,this.root.style.top=`${r}px`,this.root.classList.remove("ql-flip");const i=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect();let l=0;if(o.right>i.right&&(l=i.right-o.right,this.root.style.left=`${t+l}px`),o.left<i.left&&(l=i.left-o.left,this.root.style.left=`${t+l}px`),o.bottom>i.bottom){const a=o.bottom-o.top,h=e.bottom-e.top+a;this.root.style.top=`${r-h}px`,this.root.classList.add("ql-flip")}return l}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const qN=[!1,"center","right","justify"],jN=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],$N=[!1,"serif","monospace"],eF=["1","2","3",!1],tF=["small",!1,"large","huge"];class Vp extends E1{constructor(e,t){super(e,t);const r=i=>{if(!document.body.contains(e.root)){document.body.removeEventListener("click",r);return}this.tooltip!=null&&!this.tooltip.root.contains(i.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(o=>{o.container.contains(i.target)||o.close()})};e.emitter.listenDOM("click",document.body,r)}addModule(e){const t=super.addModule(e);return e==="toolbar"&&this.extendToolbar(t),t}buildButtons(e,t){Array.from(e).forEach(r=>{(r.getAttribute("class")||"").split(/\s+/).forEach(o=>{if(o.startsWith("ql-")&&(o=o.slice(3),t[o]!=null))if(o==="direction")r.innerHTML=t[o][""]+t[o].rtl;else if(typeof t[o]=="string")r.innerHTML=t[o];else{const l=r.value||"";l!=null&&t[o][l]&&(r.innerHTML=t[o][l])}})})}buildPickers(e,t){this.pickers=Array.from(e).map(i=>{if(i.classList.contains("ql-align")&&(i.querySelector("option")==null&&sp(i,qN),typeof t.align=="object"))return new j4(i,t.align);if(i.classList.contains("ql-background")||i.classList.contains("ql-color")){const o=i.classList.contains("ql-background")?"background":"color";return i.querySelector("option")==null&&sp(i,jN,o==="background"?"#ffffff":"#000000"),new q4(i,t[o])}return i.querySelector("option")==null&&(i.classList.contains("ql-font")?sp(i,$N):i.classList.contains("ql-header")?sp(i,eF):i.classList.contains("ql-size")&&sp(i,tF)),new Ov(i)});const r=()=>{this.pickers.forEach(i=>{i.update()})};this.quill.on(Un.events.EDITOR_CHANGE,r)}}Vp.DEFAULTS=og({},E1.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let n=this.container.querySelector("input.ql-image[type=file]");n==null&&(n=document.createElement("input"),n.setAttribute("type","file"),n.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),n.classList.add("ql-image"),n.addEventListener("change",()=>{const e=this.quill.getSelection(!0);this.quill.uploader.upload(e,n.files),n.value=""}),this.container.appendChild(n)),n.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class e_ extends $4{constructor(e,t){super(e,t),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",e=>{e.key==="Enter"?(this.save(),e.preventDefault()):e.key==="Escape"&&(this.cancel(),e.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;t!=null?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const r=this.quill.getBounds(this.quill.selection.savedRange);r!=null&&this.position(r),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${e}`)||""),this.root.setAttribute("data-mode",e)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:e}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:t}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,Un.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,Un.sources.USER)),this.quill.root.scrollTop=t;break}case"video":e=nF(e);case"formula":{if(!e)break;const t=this.quill.getSelection(!0);if(t!=null){const r=t.index+t.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),e,Un.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(r+1," ",Un.sources.USER),this.quill.setSelection(r+2,Un.sources.USER)}break}}this.textbox.value="",this.hide()}}function nF(n){let e=n.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||n.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?`${e[1]||"https"}://www.youtube.com/embed/${e[2]}?showinfo=0`:(e=n.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${e[1]||"https"}://player.vimeo.com/video/${e[2]}/`:n}function sp(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;e.forEach(r=>{const i=document.createElement("option");r===t?i.setAttribute("selected","selected"):i.setAttribute("value",String(r)),n.appendChild(i)})}const rF=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class t_ extends e_{constructor(e,t){super(e,t),this.quill.on(Un.events.EDITOR_CHANGE,(r,i,o,l)=>{if(r===Un.events.SELECTION_CHANGE)if(i!=null&&i.length>0&&l===Un.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const a=this.quill.getLines(i.index,i.length);if(a.length===1){const h=this.quill.getBounds(i);h!=null&&this.position(h)}else{const h=a[a.length-1],g=this.quill.getIndex(h),m=Math.min(h.length()-1,i.index+i.length-g),x=this.quill.getBounds(new Ng(g,m));x!=null&&this.position(x)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(Un.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const e=this.quill.getSelection();if(e!=null){const t=this.quill.getBounds(e);t!=null&&this.position(t)}},1)})}cancel(){this.show()}position(e){const t=super.position(e),r=this.root.querySelector(".ql-tooltip-arrow");return r.style.marginLeft="",t!==0&&(r.style.marginLeft=`${-1*t-r.offsetWidth/2}px`),t}}Ee(t_,"TEMPLATE",['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""));class n_ extends Vp{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=rF),super(e,t),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new t_(this.quill,this.options.bounds),e.container!=null&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),Pp),this.buildPickers(e.container.querySelectorAll("select"),Pp))}}n_.DEFAULTS=og({},Vp.DEFAULTS,{modules:{toolbar:{handlers:{link(n){n?this.quill.theme.tooltip.edit():this.quill.format("link",!1,Xe.sources.USER)}}}}});const iF=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class r_ extends e_{constructor(){super(...arguments);Ee(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",t=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),t.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",t=>{if(this.linkRange!=null){const r=this.linkRange;this.restoreFocus(),this.quill.formatText(r,"link",!1,Un.sources.USER),delete this.linkRange}t.preventDefault(),this.hide()}),this.quill.on(Un.events.SELECTION_CHANGE,(t,r,i)=>{if(t!=null){if(t.length===0&&i===Un.sources.USER){const[o,l]=this.quill.scroll.descendant(rg,t.index);if(o!=null){this.linkRange=new Ng(t.index-l,o.length());const a=rg.formats(o.domNode);this.preview.textContent=a,this.preview.setAttribute("href",a),this.show();const h=this.quill.getBounds(this.linkRange);h!=null&&this.position(h);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}Ee(r_,"TEMPLATE",['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""));class i_ extends Vp{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=iF),super(e,t),this.quill.container.classList.add("ql-snow")}extendToolbar(e){e.container!=null&&(e.container.classList.add("ql-snow"),this.buildButtons(e.container.querySelectorAll("button"),Pp),this.buildPickers(e.container.querySelectorAll("select"),Pp),this.tooltip=new r_(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(t,r)=>{e.handlers.link.call(e,!r.format.link)}))}}i_.DEFAULTS=og({},Vp.DEFAULTS,{modules:{toolbar:{handlers:{link(n){if(n){const e=this.quill.getSelection();if(e==null||e.length===0)return;let t=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(t)&&t.indexOf("mailto:")!==0&&(t=`mailto:${t}`);const{tooltip:r}=this.quill.theme;r.edit("link",t)}else this.quill.format("link",!1,Xe.sources.USER)}}}}});Xe.register({"attributors/attribute/direction":N4,"attributors/class/align":O4,"attributors/class/background":xD,"attributors/class/color":mD,"attributors/class/direction":F4,"attributors/class/font":H4,"attributors/class/size":U4,"attributors/style/align":P4,"attributors/style/background":zm,"attributors/style/color":Bm,"attributors/style/direction":B4,"attributors/style/font":W4,"attributors/style/size":G4},!0);Xe.register({"formats/align":O4,"formats/direction":F4,"formats/indent":fN,"formats/background":zm,"formats/color":Bm,"formats/font":H4,"formats/size":U4,"formats/blockquote":Qy,"formats/code-block":au,"formats/header":qy,"formats/list":Yp,"formats/bold":Op,"formats/code":Hm,"formats/italic":jy,"formats/link":rg,"formats/script":$y,"formats/strike":em,"formats/underline":tm,"formats/formula":Z0,"formats/image":hN,"formats/video":X0,"modules/syntax":Q4,"modules/table":gN,"modules/toolbar":Vm,"themes/bubble":n_,"themes/snow":i_,"ui/icons":Pp,"ui/picker":Ov,"ui/icon-picker":j4,"ui/color-picker":q4,"ui/tooltip":$4},!0);class Pv extends B.Component{constructor(e){super(e),this.editingAreaRef=B.createRef(),this.containerRef=B.createRef(),this.dirtyProps=["modules","formats","bounds","theme","children"],this.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],this.state={generation:0},this.selection=null,this.onEditorChange=(r,i,o,l)=>{var a,h;r==="text-change"?(a=this.onEditorChangeText)==null||a.call(this,this.editor.root.innerHTML,i,l,this.unprivilegedEditor):r==="selection-change"&&((h=this.onEditorChangeSelection)==null||h.call(this,i,l,this.unprivilegedEditor))};const t=this.isControlled()?e.value:e.defaultValue;this.value=t??""}validateProps(e){if(B.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(B.Children.count(e.children)){const t=B.Children.only(e.children);if((t==null?void 0:t.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")}shouldComponentUpdate(e,t){if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){const r=this.getEditorContents(),i=e.value??"";this.isEqualValue(i,r)||this.setEditorContents(this.editor,i)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),[...this.cleanProps,...this.dirtyProps].some(r=>!$d(e[r],this.props[r]))}shouldComponentRegenerate(e){return this.dirtyProps.some(t=>!$d(e[t],this.props[t]))}componentDidMount(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())}componentWillUnmount(){this.destroyEditor()}componentDidUpdate(e,t){if(this.editor&&this.shouldComponentRegenerate(e)){const r=this.editor.getContents(),i=this.editor.getSelection();this.regenerationSnapshot={delta:r,selection:i},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){const{delta:r,selection:i}=this.regenerationSnapshot;delete this.regenerationSnapshot,this.instantiateEditor();const o=this.editor;o.setContents(r),hw(()=>this.setEditorSelection(o,i))}}instantiateEditor(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())}destroyEditor(){var r,i;if(!this.editor)return;this.unhookEditor(this.editor);const e=(r=this.props.modules)==null?void 0:r.toolbar;if(!(typeof e=="object"&&e&&"container"in e&&typeof e.container=="string"||typeof e=="string")){const o=(i=this.containerRef.current)==null?void 0:i.querySelector(".ql-toolbar");o&&o.remove()}delete this.editor}isControlled(){return"value"in this.props}getEditorConfig(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,tabIndex:this.props.tabIndex,theme:this.props.theme}}getEditor(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor}createEditor(e,t){const r=new Xe(e,t);return t.tabIndex!=null&&this.setEditorTabIndex(r,t.tabIndex),this.hookEditor(r),r}hookEditor(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)}unhookEditor(e){e.off("editor-change",this.onEditorChange)}getEditorContents(){return this.value}getEditorSelection(){return this.selection}isDelta(e){return e&&e.ops}isEqualValue(e,t){return this.isDelta(e)&&this.isDelta(t)?$d(e.ops,t.ops):$d(e,t)}setEditorContents(e,t){this.value=t;const r=this.getEditorSelection();typeof t=="string"?e.setContents(e.clipboard.convert({html:t})):e.setContents(t),hw(()=>this.setEditorSelection(e,r))}setEditorSelection(e,t){if(this.selection=t,t){const r=e.getLength();t.index=Math.max(0,Math.min(t.index,r-1)),t.length=Math.max(0,Math.min(t.length,r-1-t.index)),e.setSelection(t)}}setEditorTabIndex(e,t){var r;(r=e==null?void 0:e.scroll)!=null&&r.domNode&&(e.scroll.domNode.tabIndex=t)}setEditorReadOnly(e,t){t?e.disable():e.enable()}makeUnprivilegedEditor(e){const t=e;return{getHTML:()=>t.root.innerHTML,getSemanticHTML:t.getSemanticHTML.bind(t),getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}}getEditingArea(){const e=this.editingAreaRef.current;if(!e)throw new Error("Cannot find element for editing area");if(e.nodeType===3)throw new Error("Editing area cannot be a text node");return e}renderEditingArea(){const{children:e,preserveWhitespace:t}=this.props,{generation:r}=this.state,i={key:r,ref:this.editingAreaRef};return B.Children.count(e)?B.cloneElement(B.Children.only(e),i):t?B.createElement("pre",{...i}):B.createElement("div",{...i})}render(){return B.createElement("div",{ref:this.containerRef,id:this.props.id,style:this.props.style,key:this.state.generation,className:`quill ${this.props.className??""}`,onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())}onEditorChangeText(e,t,r,i){var l,a;if(!this.editor)return;const o=this.isDelta(this.value)?i.getContents():i.getHTML();o!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=o,(a=(l=this.props).onChange)==null||a.call(l,e,t,r,i))}onEditorChangeSelection(e,t,r){var a,h,g,m,x,w;if(!this.editor)return;const i=this.getEditorSelection(),o=!i&&e,l=i&&!e;$d(e,i)||(this.selection=e,(h=(a=this.props).onChangeSelection)==null||h.call(a,e,t,r),o?(m=(g=this.props).onFocus)==null||m.call(g,e,t,r):l&&((w=(x=this.props).onBlur)==null||w.call(x,i,t,r)))}focus(){this.editor&&this.editor.focus()}blur(){this.editor&&(this.selection=null,this.editor.blur())}}Pv.displayName="React Quill";Pv.Quill=Xe;Pv.defaultProps={theme:"snow",modules:{},readOnly:!1};function hw(n){Promise.resolve().then(n)}class o_{constructor(e,t={}){Ee(this,"quill");Ee(this,"options");Ee(this,"_toolbarEl",null);Ee(this,"_button",null);Ee(this,"_resizeObserver",null);Ee(this,"_placeholder",null);if(this.quill=e,this.options=t,this.options.type==="Raw")return;if(this.options.type==="ReadOnly"){this._createButton();return}const r=e.getModule("toolbar");if(!r){console.warn("Toolbar module not found");return}if(this._toolbarEl=r.container,!this._toolbarEl){console.warn("Toolbar container not found");return}this._createButton()}_createButton(){switch(this.options.type){case"ReadOnly":this._createReadOnlyButton();break;case"Error":case"Primary":this._createToolbarButton();break}}_createToolbarButton(){this._toolbarEl&&(!this.options.maximize||!this.options.minimize||(this._button=document.createElement("button"),this._button.type="button",this._button.classList.add("ql-fullscreen","ql-right-action"),this._button.onclick=this._toggleFullscreen.bind(this),this._button.innerHTML=this.options.maximize??"",this._button.title=this.options.buttonTitle||"",this._toolbarEl.classList.add("ql-toolbar-has-right-action"),this._toolbarEl.append(this._button)))}_createReadOnlyButton(){var r;const e=(r=this.quill.root)==null?void 0:r.closest(".ql-container");if(!e||!this.options.maximize||!this.options.minimize)return;this._button=document.createElement("button"),this._button.type="button",this._button.classList.add("ql-fullscreen","ql-readonly-fullscreen"),this._button.onclick=this._toggleFullscreen.bind(this),this._button.innerHTML=this.options.maximize??"",this._button.title=this.options.buttonTitle||"",e.appendChild(this._button),this._checkScrollbar(),requestAnimationFrame(()=>this._checkScrollbar());const t=this.quill.root;this._resizeObserver=new ResizeObserver(()=>this._checkScrollbar()),this._resizeObserver.observe(t)}_checkScrollbar(){const e=this.quill.root,t=e==null?void 0:e.closest(".ql-container");if(!e||!t||!this._button)return;e.scrollHeight>e.clientHeight?(t.classList.add("ql-has-v-scrollbar"),this._button.style.removeProperty("right")):(t.classList.remove("ql-has-v-scrollbar"),this._button.style.removeProperty("right"))}_toggleFullscreen(e){var o,l;e.preventDefault();const t=(o=this.quill.root)==null?void 0:o.closest(".ql-container");if(!t)throw new Error("Quill editor container not exist");let r=t.closest(".ql-editor-wrap");if(r){if(t instanceof HTMLElement&&(t.classList.remove("is-fullscreen"),t.style.height=""),this._placeholder){const a=t.parentElement;this._placeholder.after(a),this._placeholder.remove(),this._placeholder=null}r.remove(),this._button&&(this._button.classList.remove("ql-active"),this._button.innerHTML=this.options.maximize??""),document.documentElement.style.removeProperty("overflow");return}if(r=document.createElement("div"),r.classList.add("ql-editor-wrap"),t instanceof HTMLElement){const a=((l=this._toolbarEl)==null?void 0:l.offsetHeight)||0;t.style.height=`calc(100% - ${a}px)`,t.classList.add("is-fullscreen")}const i=t.parentElement;this._placeholder=document.createComment("ql-fullscreen-placeholder"),i.after(this._placeholder),r.append(i),document.body.append(r),this._button&&(this._button.classList.add("ql-active"),this._button.innerHTML=this.options.minimize??""),document.documentElement.style.overflow="hidden"}}window.QuillToggleFullscreenButton=o_;var Ib={exports:{}},dw;function oF(){return dw||(dw=1,(function(n,e){(function(t,r){n.exports=r()})(window,(function(){return(function(t){var r={};function i(o){if(r[o])return r[o].exports;var l=r[o]={i:o,l:!1,exports:{}};return t[o].call(l.exports,l,l.exports,i),l.l=!0,l.exports}return i.m=t,i.c=r,i.d=function(o,l,a){i.o(o,l)||Object.defineProperty(o,l,{enumerable:!0,get:a})},i.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},i.t=function(o,l){if(1&l&&(o=i(o)),8&l||4&l&&typeof o=="object"&&o&&o.__esModule)return o;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:o}),2&l&&typeof o!="string")for(var h in o)i.d(a,h,(function(g){return o[g]}).bind(null,h));return a},i.n=function(o){var l=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(l,"a",l),l},i.o=function(o,l){return Object.prototype.hasOwnProperty.call(o,l)},i.p="",i(i.s=17)})([function(t,r,i){var o=i(7),l=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",a=Object.prototype.toString,h=Array.prototype.concat,g=Object.defineProperty,m=i(25)(),x=g&&m,w=function(E,R,k,O){var P;(!(R in E)||typeof(P=O)=="function"&&a.call(P)==="[object Function]"&&O())&&(x?g(E,R,{configurable:!0,enumerable:!1,value:k,writable:!0}):E[R]=k)},_=function(E,R){var k=arguments.length>2?arguments[2]:{},O=o(R);l&&(O=h.call(O,Object.getOwnPropertySymbols(R)));for(var P=0;P<O.length;P+=1)w(E,O[P],R[O[P]],k[O[P]])};_.supportsDescriptors=!!x,t.exports=_},function(t,r,i){var o=i(9);t.exports=function(){return o()&&!!Symbol.toStringTag}},function(t,r,i){var o=SyntaxError,l=Function,a=TypeError,h=function(ne){try{return l('"use strict"; return ('+ne+").constructor;")()}catch{}},g=Object.getOwnPropertyDescriptor;if(g)try{g({},"")}catch{g=null}var m=function(){throw new a},x=g?(function(){try{return m}catch{try{return g(arguments,"callee").get}catch{return m}}})():m,w=i(21)(),_=Object.getPrototypeOf||function(ne){return ne.__proto__},E={},R=typeof Uint8Array>"u"?void 0:_(Uint8Array),k={"%AggregateError%":typeof AggregateError>"u"?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":w?_([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":E,"%AsyncGenerator%":E,"%AsyncGeneratorFunction%":E,"%AsyncIteratorPrototype%":E,"%Atomics%":typeof Atomics>"u"?void 0:Atomics,"%BigInt%":typeof BigInt>"u"?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?void 0:Float32Array,"%Float64Array%":typeof Float64Array>"u"?void 0:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?void 0:FinalizationRegistry,"%Function%":l,"%GeneratorFunction%":E,"%Int8Array%":typeof Int8Array>"u"?void 0:Int8Array,"%Int16Array%":typeof Int16Array>"u"?void 0:Int16Array,"%Int32Array%":typeof Int32Array>"u"?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w?_(_([][Symbol.iterator]())):void 0,"%JSON%":typeof JSON=="object"?JSON:void 0,"%Map%":typeof Map>"u"?void 0:Map,"%MapIteratorPrototype%":typeof Map<"u"&&w?_(new Map()[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?void 0:Promise,"%Proxy%":typeof Proxy>"u"?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?void 0:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?void 0:Set,"%SetIteratorPrototype%":typeof Set<"u"&&w?_(new Set()[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w?_(""[Symbol.iterator]()):void 0,"%Symbol%":w?Symbol:void 0,"%SyntaxError%":o,"%ThrowTypeError%":x,"%TypedArray%":R,"%TypeError%":a,"%Uint8Array%":typeof Uint8Array>"u"?void 0:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?void 0:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?void 0:WeakMap,"%WeakRef%":typeof WeakRef>"u"?void 0:WeakRef,"%WeakSet%":typeof WeakSet>"u"?void 0:WeakSet},O={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},P=i(3),z=i(23),H=P.call(Function.call,Array.prototype.concat),G=P.call(Function.apply,Array.prototype.splice),N=P.call(Function.call,String.prototype.replace),J=P.call(Function.call,String.prototype.slice),Y=P.call(Function.call,RegExp.prototype.exec),K=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,fe=/\\(\\)?/g,X=function(ne){var ue=J(ne,0,1),se=J(ne,-1);if(ue==="%"&&se!=="%")throw new o("invalid intrinsic syntax, expected closing `%`");if(se==="%"&&ue!=="%")throw new o("invalid intrinsic syntax, expected opening `%`");var $=[];return N(ne,K,(function(re,de,be,oe){$[$.length]=be?N(oe,fe,"$1"):de||re})),$},te=function(ne,ue){var se,$=ne;if(z(O,$)&&($="%"+(se=O[$])[0]+"%"),z(k,$)){var re=k[$];if(re===E&&(re=(function de(be){var oe;if(be==="%AsyncFunction%")oe=h("async function () {}");else if(be==="%GeneratorFunction%")oe=h("function* () {}");else if(be==="%AsyncGeneratorFunction%")oe=h("async function* () {}");else if(be==="%AsyncGenerator%"){var Q=de("%AsyncGeneratorFunction%");Q&&(oe=Q.prototype)}else if(be==="%AsyncIteratorPrototype%"){var ge=de("%AsyncGenerator%");ge&&(oe=_(ge.prototype))}return k[be]=oe,oe})($)),re===void 0&&!ue)throw new a("intrinsic "+ne+" exists, but is not available. Please file an issue!");return{alias:se,name:$,value:re}}throw new o("intrinsic "+ne+" does not exist!")};t.exports=function(ne,ue){if(typeof ne!="string"||ne.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ue!="boolean")throw new a('"allowMissing" argument must be a boolean');if(Y(/^%?[^%]*%?$/g,ne)===null)throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var se=X(ne),$=se.length>0?se[0]:"",re=te("%"+$+"%",ue),de=re.name,be=re.value,oe=!1,Q=re.alias;Q&&($=Q[0],G(se,H([0,1],Q)));for(var ge=1,Te=!0;ge<se.length;ge+=1){var He=se[ge],xe=J(He,0,1),Ne=J(He,-1);if((xe==='"'||xe==="'"||xe==="`"||Ne==='"'||Ne==="'"||Ne==="`")&&xe!==Ne)throw new o("property names with quotes must have matching quotes");if(He!=="constructor"&&Te||(oe=!0),z(k,de="%"+($+="."+He)+"%"))be=k[de];else if(be!=null){if(!(He in be)){if(!ue)throw new a("base intrinsic for "+ne+" exists, but the property is not available.");return}if(g&&ge+1>=se.length){var Me=g(be,He);be=(Te=!!Me)&&"get"in Me&&!("originalValue"in Me.get)?Me.get:be[He]}else Te=z(be,He),be=be[He];Te&&!oe&&(k[de]=be)}}return be}},function(t,r,i){var o=i(22);t.exports=Function.prototype.bind||o},function(t,r,i){var o=i(3),l=i(2),a=l("%Function.prototype.apply%"),h=l("%Function.prototype.call%"),g=l("%Reflect.apply%",!0)||o.call(h,a),m=l("%Object.getOwnPropertyDescriptor%",!0),x=l("%Object.defineProperty%",!0),w=l("%Math.max%");if(x)try{x({},"a",{value:1})}catch{x=null}t.exports=function(E){var R=g(o,h,arguments);if(m&&x){var k=m(R,"length");k.configurable&&x(R,"length",{value:1+w(0,E.length-(arguments.length-1))})}return R};var _=function(){return g(o,a,arguments)};x?x(t.exports,"apply",{value:_}):t.exports.apply=_},function(t,r,i){var o=i(18),l=i(6),a=i(15),h=i(32),g="\0",m=function(x){Array.isArray(x)?this.ops=x:x!=null&&Array.isArray(x.ops)?this.ops=x.ops:this.ops=[]};m.prototype.insert=function(x,w){var _={};return x.length===0?this:(_.insert=x,w!=null&&typeof w=="object"&&Object.keys(w).length>0&&(_.attributes=w),this.push(_))},m.prototype.delete=function(x){return x<=0?this:this.push({delete:x})},m.prototype.retain=function(x,w){if(x<=0)return this;var _={retain:x};return w!=null&&typeof w=="object"&&Object.keys(w).length>0&&(_.attributes=w),this.push(_)},m.prototype.push=function(x){var w=this.ops.length,_=this.ops[w-1];if(x=a(!0,{},x),typeof _=="object"){if(typeof x.delete=="number"&&typeof _.delete=="number")return this.ops[w-1]={delete:_.delete+x.delete},this;if(typeof _.delete=="number"&&x.insert!=null&&(w-=1,typeof(_=this.ops[w-1])!="object"))return this.ops.unshift(x),this;if(l(x.attributes,_.attributes)){if(typeof x.insert=="string"&&typeof _.insert=="string")return this.ops[w-1]={insert:_.insert+x.insert},typeof x.attributes=="object"&&(this.ops[w-1].attributes=x.attributes),this;if(typeof x.retain=="number"&&typeof _.retain=="number")return this.ops[w-1]={retain:_.retain+x.retain},typeof x.attributes=="object"&&(this.ops[w-1].attributes=x.attributes),this}}return w===this.ops.length?this.ops.push(x):this.ops.splice(w,0,x),this},m.prototype.chop=function(){var x=this.ops[this.ops.length-1];return x&&x.retain&&!x.attributes&&this.ops.pop(),this},m.prototype.filter=function(x){return this.ops.filter(x)},m.prototype.forEach=function(x){this.ops.forEach(x)},m.prototype.map=function(x){return this.ops.map(x)},m.prototype.partition=function(x){var w=[],_=[];return this.forEach((function(E){(x(E)?w:_).push(E)})),[w,_]},m.prototype.reduce=function(x,w){return this.ops.reduce(x,w)},m.prototype.changeLength=function(){return this.reduce((function(x,w){return w.insert?x+h.length(w):w.delete?x-w.delete:x}),0)},m.prototype.length=function(){return this.reduce((function(x,w){return x+h.length(w)}),0)},m.prototype.slice=function(x,w){x=x||0,typeof w!="number"&&(w=1/0);for(var _=[],E=h.iterator(this.ops),R=0;R<w&&E.hasNext();){var k;R<x?k=E.next(x-R):(k=E.next(w-R),_.push(k)),R+=h.length(k)}return new m(_)},m.prototype.compose=function(x){var w=h.iterator(this.ops),_=h.iterator(x.ops),E=[],R=_.peek();if(R!=null&&typeof R.retain=="number"&&R.attributes==null){for(var k=R.retain;w.peekType()==="insert"&&w.peekLength()<=k;)k-=w.peekLength(),E.push(w.next());R.retain-k>0&&_.next(R.retain-k)}for(var O=new m(E);w.hasNext()||_.hasNext();)if(_.peekType()==="insert")O.push(_.next());else if(w.peekType()==="delete")O.push(w.next());else{var P=Math.min(w.peekLength(),_.peekLength()),z=w.next(P),H=_.next(P);if(typeof H.retain=="number"){var G={};typeof z.retain=="number"?G.retain=P:G.insert=z.insert;var N=h.attributes.compose(z.attributes,H.attributes,typeof z.retain=="number");if(N&&(G.attributes=N),O.push(G),!_.hasNext()&&l(O.ops[O.ops.length-1],G)){var J=new m(w.rest());return O.concat(J).chop()}}else typeof H.delete=="number"&&typeof z.retain=="number"&&O.push(H)}return O.chop()},m.prototype.concat=function(x){var w=new m(this.ops.slice());return x.ops.length>0&&(w.push(x.ops[0]),w.ops=w.ops.concat(x.ops.slice(1))),w},m.prototype.diff=function(x,w){if(this.ops===x.ops)return new m;var _=[this,x].map((function(P){return P.map((function(z){if(z.insert!=null)return typeof z.insert=="string"?z.insert:g;throw new Error("diff() called "+(P===x?"on":"with")+" non-document")})).join("")})),E=new m,R=o(_[0],_[1],w),k=h.iterator(this.ops),O=h.iterator(x.ops);return R.forEach((function(P){for(var z=P[1].length;z>0;){var H=0;switch(P[0]){case o.INSERT:H=Math.min(O.peekLength(),z),E.push(O.next(H));break;case o.DELETE:H=Math.min(z,k.peekLength()),k.next(H),E.delete(H);break;case o.EQUAL:H=Math.min(k.peekLength(),O.peekLength(),z);var G=k.next(H),N=O.next(H);l(G.insert,N.insert)?E.retain(H,h.attributes.diff(G.attributes,N.attributes)):E.push(N).delete(H)}z-=H}})),E.chop()},m.prototype.eachLine=function(x,w){w=w||`
336
+ `).join("");return o.insert(l,{table:Ym()})},new Jn().retain(r.index));this.quill.updateContents(i,Xe.sources.USER),this.quill.setSelection(r.index,Xe.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(Xe.events.SCROLL_OPTIMIZE,e=>{e.some(t=>["TD","TR","TBODY","TABLE"].includes(t.target.tagName)?(this.quill.once(Xe.events.TEXT_CHANGE,(r,i,o)=>{o===Xe.sources.USER&&this.balanceTables()}),!0):!1)})}}const sw=Md("quill:toolbar");let Vm=class extends Wh{constructor(e,t){var r,i;if(super(e,t),Array.isArray(this.options.container)){const o=document.createElement("div");o.setAttribute("role","toolbar"),pN(o,this.options.container),(i=(r=e.container)==null?void 0:r.parentNode)==null||i.insertBefore(o,e.container),this.container=o}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){sw.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(o=>{var a;const l=(a=this.options.handlers)==null?void 0:a[o];l&&this.addHandler(o,l)}),Array.from(this.container.querySelectorAll("button, select")).forEach(o=>{this.attach(o)}),this.quill.on(Xe.events.EDITOR_CHANGE,()=>{const[o]=this.quill.selection.getRange();this.update(o)})}addHandler(e,t){this.handlers[e]=t}attach(e){let t=Array.from(e.classList).find(i=>i.indexOf("ql-")===0);if(!t)return;if(t=t.slice(3),e.tagName==="BUTTON"&&e.setAttribute("type","button"),this.handlers[t]==null&&this.quill.scroll.query(t)==null){sw.warn("ignoring attaching to nonexistent format",t,e);return}const r=e.tagName==="SELECT"?"change":"click";e.addEventListener(r,i=>{let o;if(e.tagName==="SELECT"){if(e.selectedIndex<0)return;const a=e.options[e.selectedIndex];a.hasAttribute("selected")?o=!1:o=a.value||!1}else e.classList.contains("ql-active")?o=!1:o=e.value||!e.hasAttribute("value"),i.preventDefault();this.quill.focus();const[l]=this.quill.selection.getRange();if(this.handlers[t]!=null)this.handlers[t].call(this,o);else if(this.quill.scroll.query(t).prototype instanceof zf){if(o=prompt(`Enter ${t}`),!o)return;this.quill.updateContents(new Jn().retain(l.index).delete(l.length).insert({[t]:o}),Xe.sources.USER)}else this.quill.format(t,o,Xe.sources.USER);this.update(l)}),this.controls.push([t,e])}update(e){const t=e==null?{}:this.quill.getFormat(e);this.controls.forEach(r=>{const[i,o]=r;if(o.tagName==="SELECT"){let l=null;if(e==null)l=null;else if(t[i]==null)l=o.querySelector("option[selected]");else if(!Array.isArray(t[i])){let a=t[i];typeof a=="string"&&(a=a.replace(/"/g,'\\"')),l=o.querySelector(`option[value="${a}"]`)}l==null?(o.value="",o.selectedIndex=-1):l.selected=!0}else if(e==null)o.classList.remove("ql-active"),o.setAttribute("aria-pressed","false");else if(o.hasAttribute("value")){const l=t[i],a=l===o.getAttribute("value")||l!=null&&l.toString()===o.getAttribute("value")||l==null&&!o.getAttribute("value");o.classList.toggle("ql-active",a),o.setAttribute("aria-pressed",a.toString())}else{const l=t[i]!=null;o.classList.toggle("ql-active",l),o.setAttribute("aria-pressed",l.toString())}})}};Vm.DEFAULTS={};function aw(n,e,t){const r=document.createElement("button");r.setAttribute("type","button"),r.classList.add(`ql-${e}`),r.setAttribute("aria-pressed","false"),t!=null?(r.value=t,r.setAttribute("aria-label",`${e}: ${t}`)):r.setAttribute("aria-label",e),n.appendChild(r)}function pN(n,e){Array.isArray(e[0])||(e=[e]),e.forEach(t=>{const r=document.createElement("span");r.classList.add("ql-formats"),t.forEach(i=>{if(typeof i=="string")aw(r,i);else{const o=Object.keys(i)[0],l=i[o];Array.isArray(l)?vN(r,o,l):aw(r,o,l)}}),n.appendChild(r)})}function vN(n,e,t){const r=document.createElement("select");r.classList.add(`ql-${e}`),t.forEach(i=>{const o=document.createElement("option");i!==!1?o.setAttribute("value",String(i)):o.setAttribute("selected","selected"),r.appendChild(o)}),n.appendChild(r)}Vm.DEFAULTS={container:null,handlers:{clean(){const n=this.quill.getSelection();if(n!=null)if(n.length===0){const e=this.quill.getFormat();Object.keys(e).forEach(t=>{this.quill.scroll.query(t,Qn.INLINE)!=null&&this.quill.format(t,!1,Xe.sources.USER)})}else this.quill.removeFormat(n.index,n.length,Xe.sources.USER)},direction(n){const{align:e}=this.quill.getFormat();n==="rtl"&&e==null?this.quill.format("align","right",Xe.sources.USER):!n&&e==="right"&&this.quill.format("align",!1,Xe.sources.USER),this.quill.format("direction",n,Xe.sources.USER)},indent(n){const e=this.quill.getSelection(),t=this.quill.getFormat(e),r=parseInt(t.indent||0,10);if(n==="+1"||n==="-1"){let i=n==="+1"?1:-1;t.direction==="rtl"&&(i*=-1),this.quill.format("indent",r+i,Xe.sources.USER)}},link(n){n===!0&&(n=prompt("Enter link URL:")),this.quill.format("link",n,Xe.sources.USER)},list(n){const e=this.quill.getSelection(),t=this.quill.getFormat(e);n==="check"?t.list==="checked"||t.list==="unchecked"?this.quill.format("list",!1,Xe.sources.USER):this.quill.format("list","unchecked",Xe.sources.USER):this.quill.format("list",n,Xe.sources.USER)}}};const bN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',yN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',mN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',xN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',wN='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',CN='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',_N='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',SN='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',cw='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',EN='<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',TN='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',AN='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>',RN='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',IN='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',kN='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',MN='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',LN='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',ON='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',PN='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>',DN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',NN='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',FN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',BN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>',zN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',HN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',WN='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',UN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>',GN='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',YN='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>',VN='<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',ZN='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',XN='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',KN='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>',Pp={align:{"":bN,center:yN,right:mN,justify:xN},background:wN,blockquote:CN,bold:_N,clean:SN,code:cw,"code-block":cw,color:EN,direction:{"":TN,rtl:AN},formula:RN,header:{1:IN,2:kN,3:MN,4:LN,5:ON,6:PN},italic:DN,image:NN,indent:{"+1":FN,"-1":BN},link:zN,list:{bullet:HN,check:WN,ordered:UN},script:{sub:GN,super:YN},strike:VN,table:ZN,underline:XN,video:KN},JN='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let uw=0;function fw(n,e){n.setAttribute(e,`${n.getAttribute(e)!=="true"}`)}class Ov{constructor(e){this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",t=>{switch(t.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),t.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),fw(this.label,"aria-expanded"),fw(this.options,"aria-hidden")}buildItem(e){const t=document.createElement("span");t.tabIndex="0",t.setAttribute("role","button"),t.classList.add("ql-picker-item");const r=e.getAttribute("value");return r&&t.setAttribute("data-value",r),e.textContent&&t.setAttribute("data-label",e.textContent),t.addEventListener("click",()=>{this.selectItem(t,!0)}),t.addEventListener("keydown",i=>{switch(i.key){case"Enter":this.selectItem(t,!0),i.preventDefault();break;case"Escape":this.escape(),i.preventDefault();break}}),t}buildLabel(){const e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=JN,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}buildOptions(){const e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id=`ql-picker-options-${uw}`,uw+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,Array.from(this.select.options).forEach(t=>{const r=this.buildItem(t);e.appendChild(r),t.selected===!0&&this.selectItem(r)}),this.container.appendChild(e)}buildPicker(){Array.from(this.select.attributes).forEach(e=>{this.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.container.querySelector(".ql-selected");e!==r&&(r!=null&&r.classList.remove("ql-selected"),e!=null&&(e.classList.add("ql-selected"),this.select.selectedIndex=Array.from(e.parentNode.children).indexOf(e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let e;if(this.select.selectedIndex>-1){const r=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(r)}else this.selectItem(null);const t=e!=null&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",t)}}class q4 extends Ov{constructor(e,t){super(e),this.label.innerHTML=t,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(r=>{r.classList.add("ql-primary")})}buildItem(e){const t=super.buildItem(e);return t.style.backgroundColor=e.getAttribute("value")||"",t}selectItem(e,t){super.selectItem(e,t);const r=this.label.querySelector(".ql-color-label"),i=e&&e.getAttribute("data-value")||"";r&&(r.tagName==="line"?r.style.stroke=i:r.style.fill=i)}}class j4 extends Ov{constructor(e,t){super(e),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(r=>{r.innerHTML=t[r.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(e,t){super.selectItem(e,t);const r=e||this.defaultItem;if(r!=null){if(this.label.innerHTML===r.innerHTML)return;this.label.innerHTML=r.innerHTML}}}const QN=n=>{const{overflowY:e}=getComputedStyle(n,null);return e!=="visible"&&e!=="clip"};class $4{constructor(e,t){this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,QN(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(e){const t=e.left+e.width/2-this.root.offsetWidth/2,r=e.bottom+this.quill.root.scrollTop;this.root.style.left=`${t}px`,this.root.style.top=`${r}px`,this.root.classList.remove("ql-flip");const i=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect();let l=0;if(o.right>i.right&&(l=i.right-o.right,this.root.style.left=`${t+l}px`),o.left<i.left&&(l=i.left-o.left,this.root.style.left=`${t+l}px`),o.bottom>i.bottom){const a=o.bottom-o.top,h=e.bottom-e.top+a;this.root.style.top=`${r-h}px`,this.root.classList.add("ql-flip")}return l}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const qN=[!1,"center","right","justify"],jN=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],$N=[!1,"serif","monospace"],eF=["1","2","3",!1],tF=["small",!1,"large","huge"];class Vp extends E1{constructor(e,t){super(e,t);const r=i=>{if(!document.body.contains(e.root)){document.body.removeEventListener("click",r);return}this.tooltip!=null&&!this.tooltip.root.contains(i.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(o=>{o.container.contains(i.target)||o.close()})};e.emitter.listenDOM("click",document.body,r)}addModule(e){const t=super.addModule(e);return e==="toolbar"&&this.extendToolbar(t),t}buildButtons(e,t){Array.from(e).forEach(r=>{(r.getAttribute("class")||"").split(/\s+/).forEach(o=>{if(o.startsWith("ql-")&&(o=o.slice(3),t[o]!=null))if(o==="direction")r.innerHTML=t[o][""]+t[o].rtl;else if(typeof t[o]=="string")r.innerHTML=t[o];else{const l=r.value||"";l!=null&&t[o][l]&&(r.innerHTML=t[o][l])}})})}buildPickers(e,t){this.pickers=Array.from(e).map(i=>{if(i.classList.contains("ql-align")&&(i.querySelector("option")==null&&sp(i,qN),typeof t.align=="object"))return new j4(i,t.align);if(i.classList.contains("ql-background")||i.classList.contains("ql-color")){const o=i.classList.contains("ql-background")?"background":"color";return i.querySelector("option")==null&&sp(i,jN,o==="background"?"#ffffff":"#000000"),new q4(i,t[o])}return i.querySelector("option")==null&&(i.classList.contains("ql-font")?sp(i,$N):i.classList.contains("ql-header")?sp(i,eF):i.classList.contains("ql-size")&&sp(i,tF)),new Ov(i)});const r=()=>{this.pickers.forEach(i=>{i.update()})};this.quill.on(Un.events.EDITOR_CHANGE,r)}}Vp.DEFAULTS=og({},E1.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let n=this.container.querySelector("input.ql-image[type=file]");n==null&&(n=document.createElement("input"),n.setAttribute("type","file"),n.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),n.classList.add("ql-image"),n.addEventListener("change",()=>{const e=this.quill.getSelection(!0);this.quill.uploader.upload(e,n.files),n.value=""}),this.container.appendChild(n)),n.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class e_ extends $4{constructor(e,t){super(e,t),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",e=>{e.key==="Enter"?(this.save(),e.preventDefault()):e.key==="Escape"&&(this.cancel(),e.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;t!=null?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const r=this.quill.getBounds(this.quill.selection.savedRange);r!=null&&this.position(r),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${e}`)||""),this.root.setAttribute("data-mode",e)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:e}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:t}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,Un.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,Un.sources.USER)),this.quill.root.scrollTop=t;break}case"video":e=nF(e);case"formula":{if(!e)break;const t=this.quill.getSelection(!0);if(t!=null){const r=t.index+t.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),e,Un.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(r+1," ",Un.sources.USER),this.quill.setSelection(r+2,Un.sources.USER)}break}}this.textbox.value="",this.hide()}}function nF(n){let e=n.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||n.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?`${e[1]||"https"}://www.youtube.com/embed/${e[2]}?showinfo=0`:(e=n.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${e[1]||"https"}://player.vimeo.com/video/${e[2]}/`:n}function sp(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;e.forEach(r=>{const i=document.createElement("option");r===t?i.setAttribute("selected","selected"):i.setAttribute("value",String(r)),n.appendChild(i)})}const rF=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class t_ extends e_{constructor(e,t){super(e,t),this.quill.on(Un.events.EDITOR_CHANGE,(r,i,o,l)=>{if(r===Un.events.SELECTION_CHANGE)if(i!=null&&i.length>0&&l===Un.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const a=this.quill.getLines(i.index,i.length);if(a.length===1){const h=this.quill.getBounds(i);h!=null&&this.position(h)}else{const h=a[a.length-1],g=this.quill.getIndex(h),m=Math.min(h.length()-1,i.index+i.length-g),x=this.quill.getBounds(new Ng(g,m));x!=null&&this.position(x)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(Un.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const e=this.quill.getSelection();if(e!=null){const t=this.quill.getBounds(e);t!=null&&this.position(t)}},1)})}cancel(){this.show()}position(e){const t=super.position(e),r=this.root.querySelector(".ql-tooltip-arrow");return r.style.marginLeft="",t!==0&&(r.style.marginLeft=`${-1*t-r.offsetWidth/2}px`),t}}Ee(t_,"TEMPLATE",['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""));class n_ extends Vp{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=rF),super(e,t),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new t_(this.quill,this.options.bounds),e.container!=null&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),Pp),this.buildPickers(e.container.querySelectorAll("select"),Pp))}}n_.DEFAULTS=og({},Vp.DEFAULTS,{modules:{toolbar:{handlers:{link(n){n?this.quill.theme.tooltip.edit():this.quill.format("link",!1,Xe.sources.USER)}}}}});const iF=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class r_ extends e_{constructor(){super(...arguments);Ee(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",t=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),t.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",t=>{if(this.linkRange!=null){const r=this.linkRange;this.restoreFocus(),this.quill.formatText(r,"link",!1,Un.sources.USER),delete this.linkRange}t.preventDefault(),this.hide()}),this.quill.on(Un.events.SELECTION_CHANGE,(t,r,i)=>{if(t!=null){if(t.length===0&&i===Un.sources.USER){const[o,l]=this.quill.scroll.descendant(rg,t.index);if(o!=null){this.linkRange=new Ng(t.index-l,o.length());const a=rg.formats(o.domNode);this.preview.textContent=a,this.preview.setAttribute("href",a),this.show();const h=this.quill.getBounds(this.linkRange);h!=null&&this.position(h);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}Ee(r_,"TEMPLATE",['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""));class i_ extends Vp{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=iF),super(e,t),this.quill.container.classList.add("ql-snow")}extendToolbar(e){e.container!=null&&(e.container.classList.add("ql-snow"),this.buildButtons(e.container.querySelectorAll("button"),Pp),this.buildPickers(e.container.querySelectorAll("select"),Pp),this.tooltip=new r_(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(t,r)=>{e.handlers.link.call(e,!r.format.link)}))}}i_.DEFAULTS=og({},Vp.DEFAULTS,{modules:{toolbar:{handlers:{link(n){if(n){const e=this.quill.getSelection();if(e==null||e.length===0)return;let t=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(t)&&t.indexOf("mailto:")!==0&&(t=`mailto:${t}`);const{tooltip:r}=this.quill.theme;r.edit("link",t)}else this.quill.format("link",!1,Xe.sources.USER)}}}}});Xe.register({"attributors/attribute/direction":N4,"attributors/class/align":O4,"attributors/class/background":xD,"attributors/class/color":mD,"attributors/class/direction":F4,"attributors/class/font":H4,"attributors/class/size":U4,"attributors/style/align":P4,"attributors/style/background":zm,"attributors/style/color":Bm,"attributors/style/direction":B4,"attributors/style/font":W4,"attributors/style/size":G4},!0);Xe.register({"formats/align":O4,"formats/direction":F4,"formats/indent":fN,"formats/background":zm,"formats/color":Bm,"formats/font":H4,"formats/size":U4,"formats/blockquote":Qy,"formats/code-block":au,"formats/header":qy,"formats/list":Yp,"formats/bold":Op,"formats/code":Hm,"formats/italic":jy,"formats/link":rg,"formats/script":$y,"formats/strike":em,"formats/underline":tm,"formats/formula":Z0,"formats/image":hN,"formats/video":X0,"modules/syntax":Q4,"modules/table":gN,"modules/toolbar":Vm,"themes/bubble":n_,"themes/snow":i_,"ui/icons":Pp,"ui/picker":Ov,"ui/icon-picker":j4,"ui/color-picker":q4,"ui/tooltip":$4},!0);class Pv extends B.Component{constructor(e){super(e),this.editingAreaRef=B.createRef(),this.containerRef=B.createRef(),this.dirtyProps=["modules","formats","bounds","theme","children"],this.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],this.state={generation:0},this.selection=null,this.onEditorChange=(r,i,o,l)=>{var a,h;r==="text-change"?(a=this.onEditorChangeText)==null||a.call(this,this.editor.root.innerHTML,i,l,this.unprivilegedEditor):r==="selection-change"&&((h=this.onEditorChangeSelection)==null||h.call(this,i,l,this.unprivilegedEditor))};const t=this.isControlled()?e.value:e.defaultValue;this.value=t??""}validateProps(e){if(B.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(B.Children.count(e.children)){const t=B.Children.only(e.children);if((t==null?void 0:t.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")}shouldComponentUpdate(e,t){if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){const r=this.getEditorContents(),i=e.value??"";this.isEqualValue(i,r)||this.setEditorContents(this.editor,i)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),[...this.cleanProps,...this.dirtyProps].some(r=>!$d(e[r],this.props[r]))}shouldComponentRegenerate(e){return this.dirtyProps.some(t=>!$d(e[t],this.props[t]))}componentDidMount(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())}componentWillUnmount(){this.destroyEditor()}componentDidUpdate(e,t){if(this.editor&&this.shouldComponentRegenerate(e)){const r=this.editor.getContents(),i=this.editor.getSelection();this.regenerationSnapshot={delta:r,selection:i},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.editor&&e.placeholder!==this.props.placeholder&&(this.editor.root.dataset.placeholder=this.props.placeholder||""),this.state.generation!==t.generation){const{delta:r,selection:i}=this.regenerationSnapshot;delete this.regenerationSnapshot,this.instantiateEditor();const o=this.editor;o.setContents(r),hw(()=>this.setEditorSelection(o,i))}}instantiateEditor(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())}destroyEditor(){var r,i;if(!this.editor)return;this.unhookEditor(this.editor);const e=(r=this.props.modules)==null?void 0:r.toolbar;if(!(typeof e=="object"&&e&&"container"in e&&typeof e.container=="string"||typeof e=="string")){const o=(i=this.containerRef.current)==null?void 0:i.querySelector(".ql-toolbar");o&&o.remove()}delete this.editor}isControlled(){return"value"in this.props}getEditorConfig(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,tabIndex:this.props.tabIndex,theme:this.props.theme}}getEditor(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor}createEditor(e,t){const r=new Xe(e,t);return t.tabIndex!=null&&this.setEditorTabIndex(r,t.tabIndex),this.hookEditor(r),r}hookEditor(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)}unhookEditor(e){e.off("editor-change",this.onEditorChange)}getEditorContents(){return this.value}getEditorSelection(){return this.selection}isDelta(e){return e&&e.ops}isEqualValue(e,t){return this.isDelta(e)&&this.isDelta(t)?$d(e.ops,t.ops):$d(e,t)}setEditorContents(e,t){this.value=t;const r=this.getEditorSelection();typeof t=="string"?e.setContents(e.clipboard.convert({html:t})):e.setContents(t),hw(()=>this.setEditorSelection(e,r))}setEditorSelection(e,t){if(this.selection=t,t){const r=e.getLength();t.index=Math.max(0,Math.min(t.index,r-1)),t.length=Math.max(0,Math.min(t.length,r-1-t.index)),e.setSelection(t)}}setEditorTabIndex(e,t){var r;(r=e==null?void 0:e.scroll)!=null&&r.domNode&&(e.scroll.domNode.tabIndex=t)}setEditorReadOnly(e,t){t?e.disable():e.enable()}makeUnprivilegedEditor(e){const t=e;return{getHTML:()=>t.root.innerHTML,getSemanticHTML:t.getSemanticHTML.bind(t),getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}}getEditingArea(){const e=this.editingAreaRef.current;if(!e)throw new Error("Cannot find element for editing area");if(e.nodeType===3)throw new Error("Editing area cannot be a text node");return e}renderEditingArea(){const{children:e,preserveWhitespace:t}=this.props,{generation:r}=this.state,i={key:r,ref:this.editingAreaRef};return B.Children.count(e)?B.cloneElement(B.Children.only(e),i):t?B.createElement("pre",{...i}):B.createElement("div",{...i})}render(){return B.createElement("div",{ref:this.containerRef,id:this.props.id,style:this.props.style,key:this.state.generation,className:`quill ${this.props.className??""}`,onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())}onEditorChangeText(e,t,r,i){var l,a;if(!this.editor)return;const o=this.isDelta(this.value)?i.getContents():i.getHTML();o!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=o,(a=(l=this.props).onChange)==null||a.call(l,e,t,r,i))}onEditorChangeSelection(e,t,r){var a,h,g,m,x,w;if(!this.editor)return;const i=this.getEditorSelection(),o=!i&&e,l=i&&!e;$d(e,i)||(this.selection=e,(h=(a=this.props).onChangeSelection)==null||h.call(a,e,t,r),o?(m=(g=this.props).onFocus)==null||m.call(g,e,t,r):l&&((w=(x=this.props).onBlur)==null||w.call(x,i,t,r)))}focus(){this.editor&&this.editor.focus()}blur(){this.editor&&(this.selection=null,this.editor.blur())}}Pv.displayName="React Quill";Pv.Quill=Xe;Pv.defaultProps={theme:"snow",modules:{},readOnly:!1};function hw(n){Promise.resolve().then(n)}class o_{constructor(e,t={}){Ee(this,"quill");Ee(this,"options");Ee(this,"_toolbarEl",null);Ee(this,"_button",null);Ee(this,"_resizeObserver",null);Ee(this,"_placeholder",null);if(this.quill=e,this.options=t,this.options.type==="Raw")return;if(this.options.type==="ReadOnly"){this._createButton();return}const r=e.getModule("toolbar");if(!r){console.warn("Toolbar module not found");return}if(this._toolbarEl=r.container,!this._toolbarEl){console.warn("Toolbar container not found");return}this._createButton()}_createButton(){switch(this.options.type){case"ReadOnly":this._createReadOnlyButton();break;case"Error":case"Primary":this._createToolbarButton();break}}_createToolbarButton(){this._toolbarEl&&(!this.options.maximize||!this.options.minimize||(this._button=document.createElement("button"),this._button.type="button",this._button.classList.add("ql-fullscreen","ql-right-action"),this._button.onclick=this._toggleFullscreen.bind(this),this._button.innerHTML=this.options.maximize??"",this._button.title=this.options.buttonTitle||"",this._toolbarEl.classList.add("ql-toolbar-has-right-action"),this._toolbarEl.append(this._button)))}_createReadOnlyButton(){var r;const e=(r=this.quill.root)==null?void 0:r.closest(".ql-container");if(!e||!this.options.maximize||!this.options.minimize)return;this._button=document.createElement("button"),this._button.type="button",this._button.classList.add("ql-fullscreen","ql-readonly-fullscreen"),this._button.onclick=this._toggleFullscreen.bind(this),this._button.innerHTML=this.options.maximize??"",this._button.title=this.options.buttonTitle||"",e.appendChild(this._button),this._checkScrollbar(),requestAnimationFrame(()=>this._checkScrollbar());const t=this.quill.root;this._resizeObserver=new ResizeObserver(()=>this._checkScrollbar()),this._resizeObserver.observe(t)}_checkScrollbar(){const e=this.quill.root,t=e==null?void 0:e.closest(".ql-container");if(!e||!t||!this._button)return;e.scrollHeight>e.clientHeight?(t.classList.add("ql-has-v-scrollbar"),this._button.style.removeProperty("right")):(t.classList.remove("ql-has-v-scrollbar"),this._button.style.removeProperty("right"))}_toggleFullscreen(e){var o,l;e.preventDefault();const t=(o=this.quill.root)==null?void 0:o.closest(".ql-container");if(!t)throw new Error("Quill editor container not exist");let r=t.closest(".ql-editor-wrap");if(r){if(t instanceof HTMLElement&&(t.classList.remove("is-fullscreen"),t.style.height=""),this._placeholder){const a=t.parentElement;this._placeholder.after(a),this._placeholder.remove(),this._placeholder=null}r.remove(),this._button&&(this._button.classList.remove("ql-active"),this._button.innerHTML=this.options.maximize??""),document.documentElement.style.removeProperty("overflow");return}if(r=document.createElement("div"),r.classList.add("ql-editor-wrap"),t instanceof HTMLElement){const a=((l=this._toolbarEl)==null?void 0:l.offsetHeight)||0;t.style.height=`calc(100% - ${a}px)`,t.classList.add("is-fullscreen")}const i=t.parentElement;this._placeholder=document.createComment("ql-fullscreen-placeholder"),i.after(this._placeholder),r.append(i),document.body.append(r),this._button&&(this._button.classList.add("ql-active"),this._button.innerHTML=this.options.minimize??""),document.documentElement.style.overflow="hidden"}}window.QuillToggleFullscreenButton=o_;var Ib={exports:{}},dw;function oF(){return dw||(dw=1,(function(n,e){(function(t,r){n.exports=r()})(window,(function(){return(function(t){var r={};function i(o){if(r[o])return r[o].exports;var l=r[o]={i:o,l:!1,exports:{}};return t[o].call(l.exports,l,l.exports,i),l.l=!0,l.exports}return i.m=t,i.c=r,i.d=function(o,l,a){i.o(o,l)||Object.defineProperty(o,l,{enumerable:!0,get:a})},i.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},i.t=function(o,l){if(1&l&&(o=i(o)),8&l||4&l&&typeof o=="object"&&o&&o.__esModule)return o;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:o}),2&l&&typeof o!="string")for(var h in o)i.d(a,h,(function(g){return o[g]}).bind(null,h));return a},i.n=function(o){var l=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(l,"a",l),l},i.o=function(o,l){return Object.prototype.hasOwnProperty.call(o,l)},i.p="",i(i.s=17)})([function(t,r,i){var o=i(7),l=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",a=Object.prototype.toString,h=Array.prototype.concat,g=Object.defineProperty,m=i(25)(),x=g&&m,w=function(E,R,k,O){var P;(!(R in E)||typeof(P=O)=="function"&&a.call(P)==="[object Function]"&&O())&&(x?g(E,R,{configurable:!0,enumerable:!1,value:k,writable:!0}):E[R]=k)},_=function(E,R){var k=arguments.length>2?arguments[2]:{},O=o(R);l&&(O=h.call(O,Object.getOwnPropertySymbols(R)));for(var P=0;P<O.length;P+=1)w(E,O[P],R[O[P]],k[O[P]])};_.supportsDescriptors=!!x,t.exports=_},function(t,r,i){var o=i(9);t.exports=function(){return o()&&!!Symbol.toStringTag}},function(t,r,i){var o=SyntaxError,l=Function,a=TypeError,h=function(ne){try{return l('"use strict"; return ('+ne+").constructor;")()}catch{}},g=Object.getOwnPropertyDescriptor;if(g)try{g({},"")}catch{g=null}var m=function(){throw new a},x=g?(function(){try{return m}catch{try{return g(arguments,"callee").get}catch{return m}}})():m,w=i(21)(),_=Object.getPrototypeOf||function(ne){return ne.__proto__},E={},R=typeof Uint8Array>"u"?void 0:_(Uint8Array),k={"%AggregateError%":typeof AggregateError>"u"?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":w?_([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":E,"%AsyncGenerator%":E,"%AsyncGeneratorFunction%":E,"%AsyncIteratorPrototype%":E,"%Atomics%":typeof Atomics>"u"?void 0:Atomics,"%BigInt%":typeof BigInt>"u"?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?void 0:Float32Array,"%Float64Array%":typeof Float64Array>"u"?void 0:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?void 0:FinalizationRegistry,"%Function%":l,"%GeneratorFunction%":E,"%Int8Array%":typeof Int8Array>"u"?void 0:Int8Array,"%Int16Array%":typeof Int16Array>"u"?void 0:Int16Array,"%Int32Array%":typeof Int32Array>"u"?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w?_(_([][Symbol.iterator]())):void 0,"%JSON%":typeof JSON=="object"?JSON:void 0,"%Map%":typeof Map>"u"?void 0:Map,"%MapIteratorPrototype%":typeof Map<"u"&&w?_(new Map()[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?void 0:Promise,"%Proxy%":typeof Proxy>"u"?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?void 0:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?void 0:Set,"%SetIteratorPrototype%":typeof Set<"u"&&w?_(new Set()[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w?_(""[Symbol.iterator]()):void 0,"%Symbol%":w?Symbol:void 0,"%SyntaxError%":o,"%ThrowTypeError%":x,"%TypedArray%":R,"%TypeError%":a,"%Uint8Array%":typeof Uint8Array>"u"?void 0:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?void 0:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?void 0:WeakMap,"%WeakRef%":typeof WeakRef>"u"?void 0:WeakRef,"%WeakSet%":typeof WeakSet>"u"?void 0:WeakSet},O={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},P=i(3),z=i(23),H=P.call(Function.call,Array.prototype.concat),G=P.call(Function.apply,Array.prototype.splice),N=P.call(Function.call,String.prototype.replace),J=P.call(Function.call,String.prototype.slice),Y=P.call(Function.call,RegExp.prototype.exec),K=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,fe=/\\(\\)?/g,X=function(ne){var ue=J(ne,0,1),se=J(ne,-1);if(ue==="%"&&se!=="%")throw new o("invalid intrinsic syntax, expected closing `%`");if(se==="%"&&ue!=="%")throw new o("invalid intrinsic syntax, expected opening `%`");var $=[];return N(ne,K,(function(re,de,be,oe){$[$.length]=be?N(oe,fe,"$1"):de||re})),$},te=function(ne,ue){var se,$=ne;if(z(O,$)&&($="%"+(se=O[$])[0]+"%"),z(k,$)){var re=k[$];if(re===E&&(re=(function de(be){var oe;if(be==="%AsyncFunction%")oe=h("async function () {}");else if(be==="%GeneratorFunction%")oe=h("function* () {}");else if(be==="%AsyncGeneratorFunction%")oe=h("async function* () {}");else if(be==="%AsyncGenerator%"){var Q=de("%AsyncGeneratorFunction%");Q&&(oe=Q.prototype)}else if(be==="%AsyncIteratorPrototype%"){var ge=de("%AsyncGenerator%");ge&&(oe=_(ge.prototype))}return k[be]=oe,oe})($)),re===void 0&&!ue)throw new a("intrinsic "+ne+" exists, but is not available. Please file an issue!");return{alias:se,name:$,value:re}}throw new o("intrinsic "+ne+" does not exist!")};t.exports=function(ne,ue){if(typeof ne!="string"||ne.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ue!="boolean")throw new a('"allowMissing" argument must be a boolean');if(Y(/^%?[^%]*%?$/g,ne)===null)throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var se=X(ne),$=se.length>0?se[0]:"",re=te("%"+$+"%",ue),de=re.name,be=re.value,oe=!1,Q=re.alias;Q&&($=Q[0],G(se,H([0,1],Q)));for(var ge=1,Te=!0;ge<se.length;ge+=1){var He=se[ge],xe=J(He,0,1),Ne=J(He,-1);if((xe==='"'||xe==="'"||xe==="`"||Ne==='"'||Ne==="'"||Ne==="`")&&xe!==Ne)throw new o("property names with quotes must have matching quotes");if(He!=="constructor"&&Te||(oe=!0),z(k,de="%"+($+="."+He)+"%"))be=k[de];else if(be!=null){if(!(He in be)){if(!ue)throw new a("base intrinsic for "+ne+" exists, but the property is not available.");return}if(g&&ge+1>=se.length){var Me=g(be,He);be=(Te=!!Me)&&"get"in Me&&!("originalValue"in Me.get)?Me.get:be[He]}else Te=z(be,He),be=be[He];Te&&!oe&&(k[de]=be)}}return be}},function(t,r,i){var o=i(22);t.exports=Function.prototype.bind||o},function(t,r,i){var o=i(3),l=i(2),a=l("%Function.prototype.apply%"),h=l("%Function.prototype.call%"),g=l("%Reflect.apply%",!0)||o.call(h,a),m=l("%Object.getOwnPropertyDescriptor%",!0),x=l("%Object.defineProperty%",!0),w=l("%Math.max%");if(x)try{x({},"a",{value:1})}catch{x=null}t.exports=function(E){var R=g(o,h,arguments);if(m&&x){var k=m(R,"length");k.configurable&&x(R,"length",{value:1+w(0,E.length-(arguments.length-1))})}return R};var _=function(){return g(o,a,arguments)};x?x(t.exports,"apply",{value:_}):t.exports.apply=_},function(t,r,i){var o=i(18),l=i(6),a=i(15),h=i(32),g="\0",m=function(x){Array.isArray(x)?this.ops=x:x!=null&&Array.isArray(x.ops)?this.ops=x.ops:this.ops=[]};m.prototype.insert=function(x,w){var _={};return x.length===0?this:(_.insert=x,w!=null&&typeof w=="object"&&Object.keys(w).length>0&&(_.attributes=w),this.push(_))},m.prototype.delete=function(x){return x<=0?this:this.push({delete:x})},m.prototype.retain=function(x,w){if(x<=0)return this;var _={retain:x};return w!=null&&typeof w=="object"&&Object.keys(w).length>0&&(_.attributes=w),this.push(_)},m.prototype.push=function(x){var w=this.ops.length,_=this.ops[w-1];if(x=a(!0,{},x),typeof _=="object"){if(typeof x.delete=="number"&&typeof _.delete=="number")return this.ops[w-1]={delete:_.delete+x.delete},this;if(typeof _.delete=="number"&&x.insert!=null&&(w-=1,typeof(_=this.ops[w-1])!="object"))return this.ops.unshift(x),this;if(l(x.attributes,_.attributes)){if(typeof x.insert=="string"&&typeof _.insert=="string")return this.ops[w-1]={insert:_.insert+x.insert},typeof x.attributes=="object"&&(this.ops[w-1].attributes=x.attributes),this;if(typeof x.retain=="number"&&typeof _.retain=="number")return this.ops[w-1]={retain:_.retain+x.retain},typeof x.attributes=="object"&&(this.ops[w-1].attributes=x.attributes),this}}return w===this.ops.length?this.ops.push(x):this.ops.splice(w,0,x),this},m.prototype.chop=function(){var x=this.ops[this.ops.length-1];return x&&x.retain&&!x.attributes&&this.ops.pop(),this},m.prototype.filter=function(x){return this.ops.filter(x)},m.prototype.forEach=function(x){this.ops.forEach(x)},m.prototype.map=function(x){return this.ops.map(x)},m.prototype.partition=function(x){var w=[],_=[];return this.forEach((function(E){(x(E)?w:_).push(E)})),[w,_]},m.prototype.reduce=function(x,w){return this.ops.reduce(x,w)},m.prototype.changeLength=function(){return this.reduce((function(x,w){return w.insert?x+h.length(w):w.delete?x-w.delete:x}),0)},m.prototype.length=function(){return this.reduce((function(x,w){return x+h.length(w)}),0)},m.prototype.slice=function(x,w){x=x||0,typeof w!="number"&&(w=1/0);for(var _=[],E=h.iterator(this.ops),R=0;R<w&&E.hasNext();){var k;R<x?k=E.next(x-R):(k=E.next(w-R),_.push(k)),R+=h.length(k)}return new m(_)},m.prototype.compose=function(x){var w=h.iterator(this.ops),_=h.iterator(x.ops),E=[],R=_.peek();if(R!=null&&typeof R.retain=="number"&&R.attributes==null){for(var k=R.retain;w.peekType()==="insert"&&w.peekLength()<=k;)k-=w.peekLength(),E.push(w.next());R.retain-k>0&&_.next(R.retain-k)}for(var O=new m(E);w.hasNext()||_.hasNext();)if(_.peekType()==="insert")O.push(_.next());else if(w.peekType()==="delete")O.push(w.next());else{var P=Math.min(w.peekLength(),_.peekLength()),z=w.next(P),H=_.next(P);if(typeof H.retain=="number"){var G={};typeof z.retain=="number"?G.retain=P:G.insert=z.insert;var N=h.attributes.compose(z.attributes,H.attributes,typeof z.retain=="number");if(N&&(G.attributes=N),O.push(G),!_.hasNext()&&l(O.ops[O.ops.length-1],G)){var J=new m(w.rest());return O.concat(J).chop()}}else typeof H.delete=="number"&&typeof z.retain=="number"&&O.push(H)}return O.chop()},m.prototype.concat=function(x){var w=new m(this.ops.slice());return x.ops.length>0&&(w.push(x.ops[0]),w.ops=w.ops.concat(x.ops.slice(1))),w},m.prototype.diff=function(x,w){if(this.ops===x.ops)return new m;var _=[this,x].map((function(P){return P.map((function(z){if(z.insert!=null)return typeof z.insert=="string"?z.insert:g;throw new Error("diff() called "+(P===x?"on":"with")+" non-document")})).join("")})),E=new m,R=o(_[0],_[1],w),k=h.iterator(this.ops),O=h.iterator(x.ops);return R.forEach((function(P){for(var z=P[1].length;z>0;){var H=0;switch(P[0]){case o.INSERT:H=Math.min(O.peekLength(),z),E.push(O.next(H));break;case o.DELETE:H=Math.min(z,k.peekLength()),k.next(H),E.delete(H);break;case o.EQUAL:H=Math.min(k.peekLength(),O.peekLength(),z);var G=k.next(H),N=O.next(H);l(G.insert,N.insert)?E.retain(H,h.attributes.diff(G.attributes,N.attributes)):E.push(N).delete(H)}z-=H}})),E.chop()},m.prototype.eachLine=function(x,w){w=w||`
337
337
  `;for(var _=h.iterator(this.ops),E=new m,R=0;_.hasNext();){if(_.peekType()!=="insert")return;var k=_.peek(),O=h.length(k)-_.peekLength(),P=typeof k.insert=="string"?k.insert.indexOf(w,O)-O:-1;if(P<0)E.push(_.next());else if(P>0)E.push(_.next(P));else{if(x(E,_.next(1).attributes||{},R)===!1)return;R+=1,E=new m}}E.length()>0&&x(E,{},R)},m.prototype.transform=function(x,w){if(w=!!w,typeof x=="number")return this.transformPosition(x,w);for(var _=h.iterator(this.ops),E=h.iterator(x.ops),R=new m;_.hasNext()||E.hasNext();)if(_.peekType()!=="insert"||!w&&E.peekType()==="insert")if(E.peekType()==="insert")R.push(E.next());else{var k=Math.min(_.peekLength(),E.peekLength()),O=_.next(k),P=E.next(k);if(O.delete)continue;P.delete?R.push(P):R.retain(k,h.attributes.transform(O.attributes,P.attributes,w))}else R.retain(h.length(_.next()));return R.chop()},m.prototype.transformPosition=function(x,w){w=!!w;for(var _=h.iterator(this.ops),E=0;_.hasNext()&&E<=x;){var R=_.peekLength(),k=_.peekType();_.next(),k!=="delete"?(k==="insert"&&(E<x||!w)&&(x+=R),E+=R):x-=Math.min(R,x-E)}return x},t.exports=m},function(t,r,i){var o=i(7),l=i(20),a=i(24),h=i(27),g=i(28),m=i(31),x=Date.prototype.getTime;function w(R,k,O){var P=O||{};return!!(P.strict?a(R,k):R===k)||(!R||!k||typeof R!="object"&&typeof k!="object"?P.strict?a(R,k):R==k:(function(z,H,G){var N,J;if(typeof z!=typeof H||_(z)||_(H)||z.prototype!==H.prototype||l(z)!==l(H))return!1;var Y=h(z),K=h(H);if(Y!==K)return!1;if(Y||K)return z.source===H.source&&g(z)===g(H);if(m(z)&&m(H))return x.call(z)===x.call(H);var fe=E(z),X=E(H);if(fe!==X)return!1;if(fe||X){if(z.length!==H.length)return!1;for(N=0;N<z.length;N++)if(z[N]!==H[N])return!1;return!0}if(typeof z!=typeof H)return!1;try{var te=o(z),ne=o(H)}catch{return!1}if(te.length!==ne.length)return!1;for(te.sort(),ne.sort(),N=te.length-1;N>=0;N--)if(te[N]!=ne[N])return!1;for(N=te.length-1;N>=0;N--)if(J=te[N],!w(z[J],H[J],G))return!1;return!0})(R,k,P))}function _(R){return R==null}function E(R){return!(!R||typeof R!="object"||typeof R.length!="number")&&typeof R.copy=="function"&&typeof R.slice=="function"&&!(R.length>0&&typeof R[0]!="number")}t.exports=w},function(t,r,i){var o=Array.prototype.slice,l=i(8),a=Object.keys,h=a?function(m){return a(m)}:i(19),g=Object.keys;h.shim=function(){return Object.keys?(function(){var m=Object.keys(arguments);return m&&m.length===arguments.length})(1,2)||(Object.keys=function(m){return l(m)?g(o.call(m)):g(m)}):Object.keys=h,Object.keys||h},t.exports=h},function(t,r,i){var o=Object.prototype.toString;t.exports=function(l){var a=o.call(l),h=a==="[object Arguments]";return h||(h=a!=="[object Array]"&&l!==null&&typeof l=="object"&&typeof l.length=="number"&&l.length>=0&&o.call(l.callee)==="[object Function]"),h}},function(t,r,i){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var o={},l=Symbol("test"),a=Object(l);if(typeof l=="string"||Object.prototype.toString.call(l)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;for(l in o[l]=42,o)return!1;if(typeof Object.keys=="function"&&Object.keys(o).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(o).length!==0)return!1;var h=Object.getOwnPropertySymbols(o);if(h.length!==1||h[0]!==l||!Object.prototype.propertyIsEnumerable.call(o,l))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var g=Object.getOwnPropertyDescriptor(o,l);if(g.value!==42||g.enumerable!==!0)return!1}return!0}},function(t,r,i){var o=i(2),l=i(4),a=l(o("String.prototype.indexOf"));t.exports=function(h,g){var m=o(h,!!g);return typeof m=="function"&&a(h,".prototype.")>-1?l(m):m}},function(t,r,i){var o=function(l){return l!=l};t.exports=function(l,a){return l===0&&a===0?1/l==1/a:l===a||!(!o(l)||!o(a))}},function(t,r,i){var o=i(11);t.exports=function(){return typeof Object.is=="function"?Object.is:o}},function(t,r,i){var o=i(29).functionsHaveConfigurableNames(),l=Object,a=TypeError;t.exports=function(){if(this!=null&&this!==l(this))throw new a("RegExp.prototype.flags getter called on non-object");var h="";return this.hasIndices&&(h+="d"),this.global&&(h+="g"),this.ignoreCase&&(h+="i"),this.multiline&&(h+="m"),this.dotAll&&(h+="s"),this.unicode&&(h+="u"),this.sticky&&(h+="y"),h},o&&Object.defineProperty&&Object.defineProperty(t.exports,"name",{value:"get flags"})},function(t,r,i){var o=i(13),l=i(0).supportsDescriptors,a=Object.getOwnPropertyDescriptor;t.exports=function(){if(l&&/a/gim.flags==="gim"){var h=a(RegExp.prototype,"flags");if(h&&typeof h.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var g="",m={};if(Object.defineProperty(m,"hasIndices",{get:function(){g+="d"}}),Object.defineProperty(m,"sticky",{get:function(){g+="y"}}),g==="dy")return h.get}}return o}},function(t,r,i){var o=Object.prototype.hasOwnProperty,l=Object.prototype.toString,a=Object.defineProperty,h=Object.getOwnPropertyDescriptor,g=function(_){return typeof Array.isArray=="function"?Array.isArray(_):l.call(_)==="[object Array]"},m=function(_){if(!_||l.call(_)!=="[object Object]")return!1;var E,R=o.call(_,"constructor"),k=_.constructor&&_.constructor.prototype&&o.call(_.constructor.prototype,"isPrototypeOf");if(_.constructor&&!R&&!k)return!1;for(E in _);return E===void 0||o.call(_,E)},x=function(_,E){a&&E.name==="__proto__"?a(_,E.name,{enumerable:!0,configurable:!0,value:E.newValue,writable:!0}):_[E.name]=E.newValue},w=function(_,E){if(E==="__proto__"){if(!o.call(_,E))return;if(h)return h(_,E).value}return _[E]};t.exports=function _(){var E,R,k,O,P,z,H=arguments[0],G=1,N=arguments.length,J=!1;for(typeof H=="boolean"&&(J=H,H=arguments[1]||{},G=2),(H==null||typeof H!="object"&&typeof H!="function")&&(H={});G<N;++G)if((E=arguments[G])!=null)for(R in E)k=w(H,R),H!==(O=w(E,R))&&(J&&O&&(m(O)||(P=g(O)))?(P?(P=!1,z=k&&g(k)?k:[]):z=k&&m(k)?k:{},x(H,{name:R,newValue:_(J,z,O)})):O!==void 0&&x(H,{name:R,newValue:O}));return H}},function(t,r,i){const o=typeof URL>"u"?i(33).URL:URL,l=(h,g)=>g.some(m=>m instanceof RegExp?m.test(h):m===h),a=(h,g)=>{if(g={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...g},Reflect.has(g,"normalizeHttps"))throw new Error("options.normalizeHttps is renamed to options.forceHttp");if(Reflect.has(g,"normalizeHttp"))throw new Error("options.normalizeHttp is renamed to options.forceHttps");if(Reflect.has(g,"stripFragment"))throw new Error("options.stripFragment is renamed to options.stripHash");if(h=h.trim(),/^data:/i.test(h))return((w,{stripHash:_})=>{const E=w.match(/^data:([^,]*?),([^#]*?)(?:#(.*))?$/);if(!E)throw new Error("Invalid URL: "+w);const R=E[1].split(";"),k=E[2],O=_?"":E[3];let P=!1;R[R.length-1]==="base64"&&(R.pop(),P=!0);const z=(R.shift()||"").toLowerCase(),H=[...R.map(G=>{let[N,J=""]=G.split("=").map(Y=>Y.trim());return N==="charset"&&(J=J.toLowerCase(),J==="us-ascii")?"":`${N}${J?"="+J:""}`}).filter(Boolean)];return P&&H.push("base64"),(H.length!==0||z&&z!=="text/plain")&&H.unshift(z),`data:${H.join(";")},${P?k.trim():k}${O?"#"+O:""}`})(h,g);const m=h.startsWith("//");!m&&/^\.*\//.test(h)||(h=h.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,g.defaultProtocol));const x=new o(h);if(g.forceHttp&&g.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(g.forceHttp&&x.protocol==="https:"&&(x.protocol="http:"),g.forceHttps&&x.protocol==="http:"&&(x.protocol="https:"),g.stripAuthentication&&(x.username="",x.password=""),g.stripHash&&(x.hash=""),x.pathname&&(x.pathname=x.pathname.replace(/((?!:).|^)\/{2,}/g,(w,_)=>/^(?!\/)/g.test(_)?_+"/":"/")),x.pathname&&(x.pathname=decodeURI(x.pathname)),g.removeDirectoryIndex===!0&&(g.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(g.removeDirectoryIndex)&&g.removeDirectoryIndex.length>0){let w=x.pathname.split("/");const _=w[w.length-1];l(_,g.removeDirectoryIndex)&&(w=w.slice(0,w.length-1),x.pathname=w.slice(1).join("/")+"/")}if(x.hostname&&(x.hostname=x.hostname.replace(/\.$/,""),g.stripWWW&&/^www\.([a-z\-\d]{2,63})\.([a-z.]{2,5})$/.test(x.hostname)&&(x.hostname=x.hostname.replace(/^www\./,""))),Array.isArray(g.removeQueryParameters))for(const w of[...x.searchParams.keys()])l(w,g.removeQueryParameters)&&x.searchParams.delete(w);return g.sortQueryParameters&&x.searchParams.sort(),g.removeTrailingSlash&&(x.pathname=x.pathname.replace(/\/$/,"")),h=x.toString(),!g.removeTrailingSlash&&x.pathname!=="/"||x.hash!==""||(h=h.replace(/\/$/,"")),m&&!g.normalizeProtocol&&(h=h.replace(/^http:\/\//,"//")),g.stripProtocol&&(h=h.replace(/^(?:https?:)?\/\//,"")),h};t.exports=a,t.exports.default=a},function(t,r,i){i.r(r),i.d(r,"default",(function(){return k}));var o=i(5),l=i.n(o),a=i(16),h=i.n(a);function g(O,P){return(function(z){if(Array.isArray(z))return z})(O)||(function(z,H){var G=z==null?null:typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(G!=null){var N,J,Y=[],K=!0,fe=!1;try{for(G=G.call(z);!(K=(N=G.next()).done)&&(Y.push(N.value),!H||Y.length!==H);K=!0);}catch(X){fe=!0,J=X}finally{try{K||G.return==null||G.return()}finally{if(fe)throw J}}return Y}})(O,P)||(function(z,H){if(z){if(typeof z=="string")return m(z,H);var G=Object.prototype.toString.call(z).slice(8,-1);if(G==="Object"&&z.constructor&&(G=z.constructor.name),G==="Map"||G==="Set")return Array.from(z);if(G==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return m(z,H)}})(O,P)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
338
338
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function m(O,P){(P==null||P>O.length)&&(P=O.length);for(var z=0,H=new Array(P);z<P;z++)H[z]=O[z];return H}function x(O,P){var z=Object.keys(O);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(O);P&&(H=H.filter((function(G){return Object.getOwnPropertyDescriptor(O,G).enumerable}))),z.push.apply(z,H)}return z}function w(O){for(var P=1;P<arguments.length;P++){var z=arguments[P]!=null?arguments[P]:{};P%2?x(Object(z),!0).forEach((function(H){_(O,H,z[H])})):Object.getOwnPropertyDescriptors?Object.defineProperties(O,Object.getOwnPropertyDescriptors(z)):x(Object(z)).forEach((function(H){Object.defineProperty(O,H,Object.getOwnPropertyDescriptor(z,H))}))}return O}function _(O,P,z){return P in O?Object.defineProperty(O,P,{value:z,enumerable:!0,configurable:!0,writable:!0}):O[P]=z,O}function E(O,P){for(var z=0;z<P.length;z++){var H=P[z];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(O,H.key,H)}}var R={globalRegularExpression:/(https?:\/\/|www\.)[\w-\.]+\.[\w-\.]+(\/([\S]+)?)?/gi,urlRegularExpression:/(https?:\/\/|www\.)[\w-\.]+\.[\w-\.]+(\/([\S]+)?)?/gi,globalMailRegularExpression:/([\w-\.]+@[\w-\.]+\.[\w-\.]+)/gi,mailRegularExpression:/([\w-\.]+@[\w-\.]+\.[\w-\.]+)/gi,normalizeRegularExpression:/(https?:\/\/|www\.)[\S]+/i,normalizeUrlOptions:{stripWWW:!1}},k=(function(){function O(H,G){var N=this;(function(J,Y){if(!(J instanceof Y))throw new TypeError("Cannot call a class as a function")})(this,O),this.quill=H,G=G||{},this.options=w(w({},R),G),this.urlNormalizer=function(J){return N.normalize(J)},this.mailNormalizer=function(J){return"mailto:".concat(J)},this.registerTypeListener(),this.registerPasteListener(),this.registerBlurListener()}var P,z;return P=O,(z=[{key:"registerPasteListener",value:function(){var H=this;this.quill.clipboard.addMatcher("A",(function(G,N){var J,Y=G.getAttribute("href"),K=(J=N.ops[0])===null||J===void 0?void 0:J.attributes;return(K==null?void 0:K.link)!=null&&(K.link=Y),N})),this.quill.clipboard.addMatcher(Node.TEXT_NODE,(function(G,N){if(typeof G.data=="string"){var J=H.options.globalRegularExpression,Y=H.options.globalMailRegularExpression;J.lastIndex=0,Y.lastIndex=0;for(var K=new l.a,fe=0,X=J.exec(G.data),te=Y.exec(G.data),ne=function(se,$,re){var de=G.data.substring(fe,se.index);K.insert(de);var be=se[0];return K.insert(be,{link:re(be)}),fe=$.lastIndex,$.exec(G.data)};X!==null||te!==null;)if(X===null)te=ne(te,Y,H.mailNormalizer);else if(te===null)X=ne(X,J,H.urlNormalizer);else if(te.index<=X.index){for(;X!==null&&X.index<Y.lastIndex;)X=J.exec(G.data);te=ne(te,Y,H.mailNormalizer)}else{for(;te!==null&&te.index<J.lastIndex;)te=Y.exec(G.data);X=ne(X,J,H.urlNormalizer)}if(fe>0){var ue=G.data.substring(fe);K.insert(ue),N.ops=K.ops}return N}}))}},{key:"registerTypeListener",value:function(){var H=this;this.quill.on("text-change",(function(G){var N=G.ops;if(!(!N||N.length<1||N.length>2)){var J=N[N.length-1];J.insert&&typeof J.insert=="string"&&J.insert.match(/\s/)&&H.checkTextForUrl(!!J.insert.match(/ |\t/))}}))}},{key:"registerBlurListener",value:function(){var H=this;this.quill.root.addEventListener("blur",(function(){H.checkTextForUrl()}))}},{key:"checkTextForUrl",value:function(){var H=arguments.length>0&&arguments[0]!==void 0&&arguments[0],G=this.quill.getSelection();if(G){var N=this.quill.getLeaf(G.index),J=g(N,1),Y=J[0],K=this.quill.getIndex(Y);if(Y.text){var fe=G.index-K,X=Y.text.slice(0,fe);if(X&&Y.parent.domNode.localName!=="a"){var te=Y.text[fe];if(te==null||!te.match(/\S/)){var ne=H?/\s\s$/:/\s$/;if(!X.match(ne)){var ue=X.match(this.options.urlRegularExpression),se=X.match(this.options.mailRegularExpression);ue?this.handleMatches(K,X,ue,this.urlNormalizer):se&&this.handleMatches(K,X,se,this.mailNormalizer)}}}}}}},{key:"handleMatches",value:function(H,G,N,J){var Y=N.pop(),K=G.lastIndexOf(Y);G.split(Y).pop().match(/\S/)||this.updateText(H+K,Y.trim(),J)}},{key:"updateText",value:function(H,G,N){var J=new l.a().retain(H).retain(G.length,{link:N(G)});this.quill.updateContents(J)}},{key:"normalize",value:function(H){if(this.options.normalizeRegularExpression.test(H))try{return h()(H,this.options.normalizeUrlOptions)}catch(G){console.error(G)}return H}}])&&E(P.prototype,z),Object.defineProperty(P,"prototype",{writable:!1}),O})();window!=null&&window.Quill&&window.Quill.register("modules/magicUrl",k)},function(t,r){function i(m,x,w){if(m==x)return m?[[0,m]]:[];(w<0||m.length<w)&&(w=null);var _=l(m,x),E=m.substring(0,_);_=a(m=m.substring(_),x=x.substring(_));var R=m.substring(m.length-_),k=(function(O,P){var z;if(!O)return[[1,P]];if(!P)return[[-1,O]];var H=O.length>P.length?O:P,G=O.length>P.length?P:O,N=H.indexOf(G);if(N!=-1)return z=[[1,H.substring(0,N)],[0,G],[1,H.substring(N+G.length)]],O.length>P.length&&(z[0][0]=z[2][0]=-1),z;if(G.length==1)return[[-1,O],[1,P]];var J=(function(se,$){var re=se.length>$.length?se:$,de=se.length>$.length?$:se;if(re.length<4||2*de.length<re.length)return null;function be(Be,ke,Ie){for(var ze,Ke,Oe,ht,$e=Be.substring(Ie,Ie+Math.floor(Be.length/4)),it=-1,et="";(it=ke.indexOf($e,it+1))!=-1;){var st=l(Be.substring(Ie),ke.substring(it)),dt=a(Be.substring(0,Ie),ke.substring(0,it));et.length<dt+st&&(et=ke.substring(it-dt,it)+ke.substring(it,it+st),ze=Be.substring(0,Ie-dt),Ke=Be.substring(Ie+st),Oe=ke.substring(0,it-dt),ht=ke.substring(it+st))}return 2*et.length>=Be.length?[ze,Ke,Oe,ht,et]:null}var oe,Q,ge,Te,He,xe=be(re,de,Math.ceil(re.length/4)),Ne=be(re,de,Math.ceil(re.length/2));if(!xe&&!Ne)return null;oe=Ne?xe&&xe[4].length>Ne[4].length?xe:Ne:xe,se.length>$.length?(Q=oe[0],ge=oe[1],Te=oe[2],He=oe[3]):(Te=oe[0],He=oe[1],Q=oe[2],ge=oe[3]);var Me=oe[4];return[Q,ge,Te,He,Me]})(O,P);if(J){var Y=J[0],K=J[1],fe=J[2],X=J[3],te=J[4],ne=i(Y,fe),ue=i(K,X);return ne.concat([[0,te]],ue)}return(function(se,$){for(var re=se.length,de=$.length,be=Math.ceil((re+de)/2),oe=be,Q=2*be,ge=new Array(Q),Te=new Array(Q),He=0;He<Q;He++)ge[He]=-1,Te[He]=-1;ge[oe+1]=0,Te[oe+1]=0;for(var xe=re-de,Ne=xe%2!=0,Me=0,Be=0,ke=0,Ie=0,ze=0;ze<be;ze++){for(var Ke=-ze+Me;Ke<=ze-Be;Ke+=2){for(var Oe=oe+Ke,ht=(dt=Ke==-ze||Ke!=ze&&ge[Oe-1]<ge[Oe+1]?ge[Oe+1]:ge[Oe-1]+1)-Ke;dt<re&&ht<de&&se.charAt(dt)==$.charAt(ht);)dt++,ht++;if(ge[Oe]=dt,dt>re)Be+=2;else if(ht>de)Me+=2;else if(Ne&&(et=oe+xe-Ke)>=0&&et<Q&&Te[et]!=-1){var $e=re-Te[et];if(dt>=$e)return o(se,$,dt,ht)}}for(var it=-ze+ke;it<=ze-Ie;it+=2){for(var et=oe+it,st=($e=it==-ze||it!=ze&&Te[et-1]<Te[et+1]?Te[et+1]:Te[et-1]+1)-it;$e<re&&st<de&&se.charAt(re-$e-1)==$.charAt(de-st-1);)$e++,st++;if(Te[et]=$e,$e>re)Ie+=2;else if(st>de)ke+=2;else if(!Ne&&(Oe=oe+xe-it)>=0&&Oe<Q&&ge[Oe]!=-1){var dt=ge[Oe];if(ht=oe+dt-Oe,dt>=($e=re-$e))return o(se,$,dt,ht)}}}return[[-1,se],[1,$]]})(O,P)})(m=m.substring(0,m.length-_),x=x.substring(0,x.length-_));return E&&k.unshift([0,E]),R&&k.push([0,R]),(function O(P){P.push([0,""]);for(var z,H=0,G=0,N=0,J="",Y="";H<P.length;)switch(P[H][0]){case 1:N++,Y+=P[H][1],H++;break;case-1:G++,J+=P[H][1],H++;break;case 0:G+N>1?(G!==0&&N!==0&&((z=l(Y,J))!==0&&(H-G-N>0&&P[H-G-N-1][0]==0?P[H-G-N-1][1]+=Y.substring(0,z):(P.splice(0,0,[0,Y.substring(0,z)]),H++),Y=Y.substring(z),J=J.substring(z)),(z=a(Y,J))!==0&&(P[H][1]=Y.substring(Y.length-z)+P[H][1],Y=Y.substring(0,Y.length-z),J=J.substring(0,J.length-z))),G===0?P.splice(H-N,G+N,[1,Y]):N===0?P.splice(H-G,G+N,[-1,J]):P.splice(H-G-N,G+N,[-1,J],[1,Y]),H=H-G-N+(G?1:0)+(N?1:0)+1):H!==0&&P[H-1][0]==0?(P[H-1][1]+=P[H][1],P.splice(H,1)):H++,N=0,G=0,J="",Y=""}P[P.length-1][1]===""&&P.pop();var K=!1;for(H=1;H<P.length-1;)P[H-1][0]==0&&P[H+1][0]==0&&(P[H][1].substring(P[H][1].length-P[H-1][1].length)==P[H-1][1]?(P[H][1]=P[H-1][1]+P[H][1].substring(0,P[H][1].length-P[H-1][1].length),P[H+1][1]=P[H-1][1]+P[H+1][1],P.splice(H-1,1),K=!0):P[H][1].substring(0,P[H+1][1].length)==P[H+1][1]&&(P[H-1][1]+=P[H+1][1],P[H][1]=P[H][1].substring(P[H+1][1].length)+P[H+1][1],P.splice(H+1,1),K=!0)),H++;K&&O(P)})(k),w!=null&&(k=(function(O,P){var z=(function(K,fe){if(fe===0)return[0,K];for(var X=0,te=0;te<K.length;te++){var ne=K[te];if(ne[0]===-1||ne[0]===0){var ue=X+ne[1].length;if(fe===ue)return[te+1,K];if(fe<ue){K=K.slice();var se=fe-X,$=[ne[0],ne[1].slice(0,se)],re=[ne[0],ne[1].slice(se)];return K.splice(te,1,$,re),[te+1,K]}X=ue}}throw new Error("cursor_pos is out of bounds!")})(O,P),H=z[1],G=z[0],N=H[G],J=H[G+1];if(N==null||N[0]!==0)return O;if(J!=null&&N[1]+J[1]===J[1]+N[1])return H.splice(G,2,J,N),g(H,G,2);if(J!=null&&J[1].indexOf(N[1])===0){H.splice(G,2,[J[0],N[1]],[0,N[1]]);var Y=J[1].slice(N[1].length);return Y.length>0&&H.splice(G+2,0,[J[0],Y]),g(H,G,3)}return O})(k,w)),k=(function(O){for(var P=!1,z=function(J){return J.charCodeAt(0)>=56320&&J.charCodeAt(0)<=57343},H=2;H<O.length;H+=1)O[H-2][0]===0&&(G=O[H-2][1]).charCodeAt(G.length-1)>=55296&&G.charCodeAt(G.length-1)<=56319&&O[H-1][0]===-1&&z(O[H-1][1])&&O[H][0]===1&&z(O[H][1])&&(P=!0,O[H-1][1]=O[H-2][1].slice(-1)+O[H-1][1],O[H][1]=O[H-2][1].slice(-1)+O[H][1],O[H-2][1]=O[H-2][1].slice(0,-1));var G;if(!P)return O;var N=[];for(H=0;H<O.length;H+=1)O[H][1].length>0&&N.push(O[H]);return N})(k)}function o(m,x,w,_){var E=m.substring(0,w),R=x.substring(0,_),k=m.substring(w),O=x.substring(_),P=i(E,R),z=i(k,O);return P.concat(z)}function l(m,x){if(!m||!x||m.charAt(0)!=x.charAt(0))return 0;for(var w=0,_=Math.min(m.length,x.length),E=_,R=0;w<E;)m.substring(R,E)==x.substring(R,E)?R=w=E:_=E,E=Math.floor((_-w)/2+w);return E}function a(m,x){if(!m||!x||m.charAt(m.length-1)!=x.charAt(x.length-1))return 0;for(var w=0,_=Math.min(m.length,x.length),E=_,R=0;w<E;)m.substring(m.length-E,m.length-R)==x.substring(x.length-E,x.length-R)?R=w=E:_=E,E=Math.floor((_-w)/2+w);return E}var h=i;function g(m,x,w){for(var _=x+w-1;_>=0&&_>=x-1;_--)if(_+1<m.length){var E=m[_],R=m[_+1];E[0]===R[1]&&m.splice(_,2,[E[0],E[1]+R[1]])}return m}h.INSERT=1,h.DELETE=-1,h.EQUAL=0,t.exports=h},function(t,r,i){var o;if(!Object.keys){var l=Object.prototype.hasOwnProperty,a=Object.prototype.toString,h=i(8),g=Object.prototype.propertyIsEnumerable,m=!g.call({toString:null},"toString"),x=g.call((function(){}),"prototype"),w=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],_=function(k){var O=k.constructor;return O&&O.prototype===k},E={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},R=(function(){if(typeof window>"u")return!1;for(var k in window)try{if(!E["$"+k]&&l.call(window,k)&&window[k]!==null&&typeof window[k]=="object")try{_(window[k])}catch{return!0}}catch{return!0}return!1})();o=function(k){var O=k!==null&&typeof k=="object",P=a.call(k)==="[object Function]",z=h(k),H=O&&a.call(k)==="[object String]",G=[];if(!O&&!P&&!z)throw new TypeError("Object.keys called on a non-object");var N=x&&P;if(H&&k.length>0&&!l.call(k,0))for(var J=0;J<k.length;++J)G.push(String(J));if(z&&k.length>0)for(var Y=0;Y<k.length;++Y)G.push(String(Y));else for(var K in k)N&&K==="prototype"||!l.call(k,K)||G.push(String(K));if(m)for(var fe=(function(te){if(typeof window>"u"||!R)return _(te);try{return _(te)}catch{return!1}})(k),X=0;X<w.length;++X)fe&&w[X]==="constructor"||!l.call(k,w[X])||G.push(w[X]);return G}}t.exports=o},function(t,r,i){var o=i(1)(),l=i(10)("Object.prototype.toString"),a=function(m){return!(o&&m&&typeof m=="object"&&Symbol.toStringTag in m)&&l(m)==="[object Arguments]"},h=function(m){return!!a(m)||m!==null&&typeof m=="object"&&typeof m.length=="number"&&m.length>=0&&l(m)!=="[object Array]"&&l(m.callee)==="[object Function]"},g=(function(){return a(arguments)})();a.isLegacyArguments=h,t.exports=g?a:h},function(t,r,i){var o=typeof Symbol<"u"&&Symbol,l=i(9);t.exports=function(){return typeof o=="function"&&typeof Symbol=="function"&&typeof o("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&l()}},function(t,r,i){var o="Function.prototype.bind called on incompatible ",l=Array.prototype.slice,a=Object.prototype.toString;t.exports=function(h){var g=this;if(typeof g!="function"||a.call(g)!=="[object Function]")throw new TypeError(o+g);for(var m,x=l.call(arguments,1),w=function(){if(this instanceof m){var O=g.apply(this,x.concat(l.call(arguments)));return Object(O)===O?O:this}return g.apply(h,x.concat(l.call(arguments)))},_=Math.max(0,g.length-x.length),E=[],R=0;R<_;R++)E.push("$"+R);if(m=Function("binder","return function ("+E.join(",")+"){ return binder.apply(this,arguments); }")(w),g.prototype){var k=function(){};k.prototype=g.prototype,m.prototype=new k,k.prototype=null}return m}},function(t,r,i){var o=i(3);t.exports=o.call(Function.call,Object.prototype.hasOwnProperty)},function(t,r,i){var o=i(0),l=i(4),a=i(11),h=i(12),g=i(26),m=l(h(),Object);o(m,{getPolyfill:h,implementation:a,shim:g}),t.exports=m},function(t,r,i){var o=i(2)("%Object.defineProperty%",!0),l=function(){if(o)try{return o({},"a",{value:1}),!0}catch{return!1}return!1};l.hasArrayLengthDefineBug=function(){if(!l())return null;try{return o([],"length",{value:1}).length!==1}catch{return!0}},t.exports=l},function(t,r,i){var o=i(12),l=i(0);t.exports=function(){var a=o();return l(Object,{is:a},{is:function(){return Object.is!==a}}),a}},function(t,r,i){var o,l,a,h,g=i(10),m=i(1)();if(m){o=g("Object.prototype.hasOwnProperty"),l=g("RegExp.prototype.exec"),a={};var x=function(){throw a};h={toString:x,valueOf:x},typeof Symbol.toPrimitive=="symbol"&&(h[Symbol.toPrimitive]=x)}var w=g("Object.prototype.toString"),_=Object.getOwnPropertyDescriptor;t.exports=m?function(E){if(!E||typeof E!="object")return!1;var R=_(E,"lastIndex");if(!(R&&o(R,"value")))return!1;try{l(E,h)}catch(k){return k===a}}:function(E){return!(!E||typeof E!="object"&&typeof E!="function")&&w(E)==="[object RegExp]"}},function(t,r,i){var o=i(0),l=i(4),a=i(13),h=i(14),g=i(30),m=l(h());o(m,{getPolyfill:h,implementation:a,shim:g}),t.exports=m},function(t,r,i){var o=function(){return typeof(function(){}).name=="string"},l=Object.getOwnPropertyDescriptor;if(l)try{l([],"length")}catch{l=null}o.functionsHaveConfigurableNames=function(){if(!o()||!l)return!1;var h=l((function(){}),"name");return!!h&&!!h.configurable};var a=Function.prototype.bind;o.boundFunctionsHaveNames=function(){return o()&&typeof a=="function"&&(function(){}).bind().name!==""},t.exports=o},function(t,r,i){var o=i(0).supportsDescriptors,l=i(14),a=Object.getOwnPropertyDescriptor,h=Object.defineProperty,g=TypeError,m=Object.getPrototypeOf,x=/a/;t.exports=function(){if(!o||!m)throw new g("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var w=l(),_=m(x),E=a(_,"flags");return E&&E.get===w||h(_,"flags",{configurable:!0,enumerable:!1,get:w}),w}},function(t,r,i){var o=Date.prototype.getDay,l=Object.prototype.toString,a=i(1)();t.exports=function(h){return typeof h=="object"&&h!==null&&(a?(function(g){try{return o.call(g),!0}catch{return!1}})(h):l.call(h)==="[object Date]")}},function(t,r,i){var o=i(6),l=i(15),a={attributes:{compose:function(g,m,x){typeof g!="object"&&(g={}),typeof m!="object"&&(m={});var w=l(!0,{},m);for(var _ in x||(w=Object.keys(w).reduce((function(E,R){return w[R]!=null&&(E[R]=w[R]),E}),{})),g)g[_]!==void 0&&m[_]===void 0&&(w[_]=g[_]);return Object.keys(w).length>0?w:void 0},diff:function(g,m){typeof g!="object"&&(g={}),typeof m!="object"&&(m={});var x=Object.keys(g).concat(Object.keys(m)).reduce((function(w,_){return o(g[_],m[_])||(w[_]=m[_]===void 0?null:m[_]),w}),{});return Object.keys(x).length>0?x:void 0},transform:function(g,m,x){if(typeof g!="object")return m;if(typeof m=="object"){if(!x)return m;var w=Object.keys(m).reduce((function(_,E){return g[E]===void 0&&(_[E]=m[E]),_}),{});return Object.keys(w).length>0?w:void 0}}},iterator:function(g){return new h(g)},length:function(g){return typeof g.delete=="number"?g.delete:typeof g.retain=="number"?g.retain:typeof g.insert=="string"?g.insert.length:1}};function h(g){this.ops=g,this.index=0,this.offset=0}h.prototype.hasNext=function(){return this.peekLength()<1/0},h.prototype.next=function(g){g||(g=1/0);var m=this.ops[this.index];if(m){var x=this.offset,w=a.length(m);if(g>=w-x?(g=w-x,this.index+=1,this.offset=0):this.offset+=g,typeof m.delete=="number")return{delete:g};var _={};return m.attributes&&(_.attributes=m.attributes),typeof m.retain=="number"?_.retain=g:typeof m.insert=="string"?_.insert=m.insert.substr(x,g):_.insert=m.insert,_}return{retain:1/0}},h.prototype.peek=function(){return this.ops[this.index]},h.prototype.peekLength=function(){return this.ops[this.index]?a.length(this.ops[this.index])-this.offset:1/0},h.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},h.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var g=this.offset,m=this.index,x=this.next(),w=this.ops.slice(this.index);return this.offset=g,this.index=m,[x].concat(w)}return[]},t.exports=a},function(t,r,i){var o=i(34),l=i(37);function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}r.parse=G,r.resolve=function(N,J){return G(N,!1,!0).resolve(J)},r.resolveObject=function(N,J){return N?G(N,!1,!0).resolveObject(J):J},r.format=function(N){return l.isString(N)&&(N=G(N)),N instanceof a?N.format():a.prototype.format.call(N)},r.Url=a;var h=/^([a-z0-9.+-]+:)/i,g=/:[0-9]*$/,m=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,x=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
339
339
  `," "]),w=["'"].concat(x),_=["%","/","?",";","#"].concat(w),E=["/","?","#"],R=/^[+a-z0-9A-Z_-]{0,63}$/,k=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,O={javascript:!0,"javascript:":!0},P={javascript:!0,"javascript:":!0},z={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},H=i(38);function G(N,J,Y){if(N&&l.isObject(N)&&N instanceof a)return N;var K=new a;return K.parse(N,J,Y),K}a.prototype.parse=function(N,J,Y){if(!l.isString(N))throw new TypeError("Parameter 'url' must be a string, not "+typeof N);var K=N.indexOf("?"),fe=K!==-1&&K<N.indexOf("#")?"?":"#",X=N.split(fe);X[0]=X[0].replace(/\\/g,"/");var te=N=X.join(fe);if(te=te.trim(),!Y&&N.split("#").length===1){var ne=m.exec(te);if(ne)return this.path=te,this.href=te,this.pathname=ne[1],ne[2]?(this.search=ne[2],this.query=J?H.parse(this.search.substr(1)):this.search.substr(1)):J&&(this.search="",this.query={}),this}var ue=h.exec(te);if(ue){var se=(ue=ue[0]).toLowerCase();this.protocol=se,te=te.substr(ue.length)}if(Y||ue||te.match(/^\/\/[^@\/]+@[^@\/]+/)){var $=te.substr(0,2)==="//";!$||ue&&P[ue]||(te=te.substr(2),this.slashes=!0)}if(!P[ue]&&($||ue&&!z[ue])){for(var re,de,be=-1,oe=0;oe<E.length;oe++)(Q=te.indexOf(E[oe]))!==-1&&(be===-1||Q<be)&&(be=Q);for((de=be===-1?te.lastIndexOf("@"):te.lastIndexOf("@",be))!==-1&&(re=te.slice(0,de),te=te.slice(de+1),this.auth=decodeURIComponent(re)),be=-1,oe=0;oe<_.length;oe++){var Q;(Q=te.indexOf(_[oe]))!==-1&&(be===-1||Q<be)&&(be=Q)}be===-1&&(be=te.length),this.host=te.slice(0,be),te=te.slice(be),this.parseHost(),this.hostname=this.hostname||"";var ge=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ge)for(var Te=this.hostname.split(/\./),He=(oe=0,Te.length);oe<He;oe++){var xe=Te[oe];if(xe&&!xe.match(R)){for(var Ne="",Me=0,Be=xe.length;Me<Be;Me++)xe.charCodeAt(Me)>127?Ne+="x":Ne+=xe[Me];if(!Ne.match(R)){var ke=Te.slice(0,oe),Ie=Te.slice(oe+1),ze=xe.match(k);ze&&(ke.push(ze[1]),Ie.unshift(ze[2])),Ie.length&&(te="/"+Ie.join(".")+te),this.hostname=ke.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),ge||(this.hostname=o.toASCII(this.hostname));var Ke=this.port?":"+this.port:"",Oe=this.hostname||"";this.host=Oe+Ke,this.href+=this.host,ge&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),te[0]!=="/"&&(te="/"+te))}if(!O[se])for(oe=0,He=w.length;oe<He;oe++){var ht=w[oe];if(te.indexOf(ht)!==-1){var $e=encodeURIComponent(ht);$e===ht&&($e=escape(ht)),te=te.split(ht).join($e)}}var it=te.indexOf("#");it!==-1&&(this.hash=te.substr(it),te=te.slice(0,it));var et=te.indexOf("?");if(et!==-1?(this.search=te.substr(et),this.query=te.substr(et+1),J&&(this.query=H.parse(this.query)),te=te.slice(0,et)):J&&(this.search="",this.query={}),te&&(this.pathname=te),z[se]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){Ke=this.pathname||"";var st=this.search||"";this.path=Ke+st}return this.href=this.format(),this},a.prototype.format=function(){var N=this.auth||"";N&&(N=(N=encodeURIComponent(N)).replace(/%3A/i,":"),N+="@");var J=this.protocol||"",Y=this.pathname||"",K=this.hash||"",fe=!1,X="";this.host?fe=N+this.host:this.hostname&&(fe=N+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(fe+=":"+this.port)),this.query&&l.isObject(this.query)&&Object.keys(this.query).length&&(X=H.stringify(this.query));var te=this.search||X&&"?"+X||"";return J&&J.substr(-1)!==":"&&(J+=":"),this.slashes||(!J||z[J])&&fe!==!1?(fe="//"+(fe||""),Y&&Y.charAt(0)!=="/"&&(Y="/"+Y)):fe||(fe=""),K&&K.charAt(0)!=="#"&&(K="#"+K),te&&te.charAt(0)!=="?"&&(te="?"+te),J+fe+(Y=Y.replace(/[?#]/g,(function(ne){return encodeURIComponent(ne)})))+(te=te.replace("#","%23"))+K},a.prototype.resolve=function(N){return this.resolveObject(G(N,!1,!0)).format()},a.prototype.resolveObject=function(N){if(l.isString(N)){var J=new a;J.parse(N,!1,!0),N=J}for(var Y=new a,K=Object.keys(this),fe=0;fe<K.length;fe++){var X=K[fe];Y[X]=this[X]}if(Y.hash=N.hash,N.href==="")return Y.href=Y.format(),Y;if(N.slashes&&!N.protocol){for(var te=Object.keys(N),ne=0;ne<te.length;ne++){var ue=te[ne];ue!=="protocol"&&(Y[ue]=N[ue])}return z[Y.protocol]&&Y.hostname&&!Y.pathname&&(Y.path=Y.pathname="/"),Y.href=Y.format(),Y}if(N.protocol&&N.protocol!==Y.protocol){if(!z[N.protocol]){for(var se=Object.keys(N),$=0;$<se.length;$++){var re=se[$];Y[re]=N[re]}return Y.href=Y.format(),Y}if(Y.protocol=N.protocol,N.host||P[N.protocol])Y.pathname=N.pathname;else{for(var de=(N.pathname||"").split("/");de.length&&!(N.host=de.shift()););N.host||(N.host=""),N.hostname||(N.hostname=""),de[0]!==""&&de.unshift(""),de.length<2&&de.unshift(""),Y.pathname=de.join("/")}if(Y.search=N.search,Y.query=N.query,Y.host=N.host||"",Y.auth=N.auth,Y.hostname=N.hostname||N.host,Y.port=N.port,Y.pathname||Y.search){var be=Y.pathname||"",oe=Y.search||"";Y.path=be+oe}return Y.slashes=Y.slashes||N.slashes,Y.href=Y.format(),Y}var Q=Y.pathname&&Y.pathname.charAt(0)==="/",ge=N.host||N.pathname&&N.pathname.charAt(0)==="/",Te=ge||Q||Y.host&&N.pathname,He=Te,xe=Y.pathname&&Y.pathname.split("/")||[],Ne=(de=N.pathname&&N.pathname.split("/")||[],Y.protocol&&!z[Y.protocol]);if(Ne&&(Y.hostname="",Y.port=null,Y.host&&(xe[0]===""?xe[0]=Y.host:xe.unshift(Y.host)),Y.host="",N.protocol&&(N.hostname=null,N.port=null,N.host&&(de[0]===""?de[0]=N.host:de.unshift(N.host)),N.host=null),Te=Te&&(de[0]===""||xe[0]==="")),ge)Y.host=N.host||N.host===""?N.host:Y.host,Y.hostname=N.hostname||N.hostname===""?N.hostname:Y.hostname,Y.search=N.search,Y.query=N.query,xe=de;else if(de.length)xe||(xe=[]),xe.pop(),xe=xe.concat(de),Y.search=N.search,Y.query=N.query;else if(!l.isNullOrUndefined(N.search))return Ne&&(Y.hostname=Y.host=xe.shift(),(ze=!!(Y.host&&Y.host.indexOf("@")>0)&&Y.host.split("@"))&&(Y.auth=ze.shift(),Y.host=Y.hostname=ze.shift())),Y.search=N.search,Y.query=N.query,l.isNull(Y.pathname)&&l.isNull(Y.search)||(Y.path=(Y.pathname?Y.pathname:"")+(Y.search?Y.search:"")),Y.href=Y.format(),Y;if(!xe.length)return Y.pathname=null,Y.search?Y.path="/"+Y.search:Y.path=null,Y.href=Y.format(),Y;for(var Me=xe.slice(-1)[0],Be=(Y.host||N.host||xe.length>1)&&(Me==="."||Me==="..")||Me==="",ke=0,Ie=xe.length;Ie>=0;Ie--)(Me=xe[Ie])==="."?xe.splice(Ie,1):Me===".."?(xe.splice(Ie,1),ke++):ke&&(xe.splice(Ie,1),ke--);if(!Te&&!He)for(;ke--;ke)xe.unshift("..");!Te||xe[0]===""||xe[0]&&xe[0].charAt(0)==="/"||xe.unshift(""),Be&&xe.join("/").substr(-1)!=="/"&&xe.push("");var ze,Ke=xe[0]===""||xe[0]&&xe[0].charAt(0)==="/";return Ne&&(Y.hostname=Y.host=Ke?"":xe.length?xe.shift():"",(ze=!!(Y.host&&Y.host.indexOf("@")>0)&&Y.host.split("@"))&&(Y.auth=ze.shift(),Y.host=Y.hostname=ze.shift())),(Te=Te||Y.host&&xe.length)&&!Ke&&xe.unshift(""),xe.length?Y.pathname=xe.join("/"):(Y.pathname=null,Y.path=null),l.isNull(Y.pathname)&&l.isNull(Y.search)||(Y.path=(Y.pathname?Y.pathname:"")+(Y.search?Y.search:"")),Y.auth=N.auth||Y.auth,Y.slashes=Y.slashes||N.slashes,Y.href=Y.format(),Y},a.prototype.parseHost=function(){var N=this.host,J=g.exec(N);J&&((J=J[0])!==":"&&(this.port=J.substr(1)),N=N.substr(0,N.length-J.length)),N&&(this.hostname=N)}},function(t,r,i){(function(o,l){var a;/*! https://mths.be/punycode v1.4.1 by @mathias */(function(h){r&&r.nodeType,o&&o.nodeType;var g=typeof l=="object"&&l;g.global!==g&&g.window!==g&&g.self;var m,x=2147483647,w=/^xn--/,_=/[^\x20-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,R={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k=Math.floor,O=String.fromCharCode;function P(X){throw new RangeError(R[X])}function z(X,te){for(var ne=X.length,ue=[];ne--;)ue[ne]=te(X[ne]);return ue}function H(X,te){var ne=X.split("@"),ue="";return ne.length>1&&(ue=ne[0]+"@",X=ne[1]),ue+z((X=X.replace(E,".")).split("."),te).join(".")}function G(X){for(var te,ne,ue=[],se=0,$=X.length;se<$;)(te=X.charCodeAt(se++))>=55296&&te<=56319&&se<$?(64512&(ne=X.charCodeAt(se++)))==56320?ue.push(((1023&te)<<10)+(1023&ne)+65536):(ue.push(te),se--):ue.push(te);return ue}function N(X){return z(X,(function(te){var ne="";return te>65535&&(ne+=O((te-=65536)>>>10&1023|55296),te=56320|1023&te),ne+=O(te)})).join("")}function J(X,te){return X+22+75*(X<26)-((te!=0)<<5)}function Y(X,te,ne){var ue=0;for(X=ne?k(X/700):X>>1,X+=k(X/te);X>455;ue+=36)X=k(X/35);return k(ue+36*X/(X+38))}function K(X){var te,ne,ue,se,$,re,de,be,oe,Q,ge,Te=[],He=X.length,xe=0,Ne=128,Me=72;for((ne=X.lastIndexOf("-"))<0&&(ne=0),ue=0;ue<ne;++ue)X.charCodeAt(ue)>=128&&P("not-basic"),Te.push(X.charCodeAt(ue));for(se=ne>0?ne+1:0;se<He;){for($=xe,re=1,de=36;se>=He&&P("invalid-input"),((be=(ge=X.charCodeAt(se++))-48<10?ge-22:ge-65<26?ge-65:ge-97<26?ge-97:36)>=36||be>k((x-xe)/re))&&P("overflow"),xe+=be*re,!(be<(oe=de<=Me?1:de>=Me+26?26:de-Me));de+=36)re>k(x/(Q=36-oe))&&P("overflow"),re*=Q;Me=Y(xe-$,te=Te.length+1,$==0),k(xe/te)>x-Ne&&P("overflow"),Ne+=k(xe/te),xe%=te,Te.splice(xe++,0,Ne)}return N(Te)}function fe(X){var te,ne,ue,se,$,re,de,be,oe,Q,ge,Te,He,xe,Ne,Me=[];for(Te=(X=G(X)).length,te=128,ne=0,$=72,re=0;re<Te;++re)(ge=X[re])<128&&Me.push(O(ge));for(ue=se=Me.length,se&&Me.push("-");ue<Te;){for(de=x,re=0;re<Te;++re)(ge=X[re])>=te&&ge<de&&(de=ge);for(de-te>k((x-ne)/(He=ue+1))&&P("overflow"),ne+=(de-te)*He,te=de,re=0;re<Te;++re)if((ge=X[re])<te&&++ne>x&&P("overflow"),ge==te){for(be=ne,oe=36;!(be<(Q=oe<=$?1:oe>=$+26?26:oe-$));oe+=36)Ne=be-Q,xe=36-Q,Me.push(O(J(Q+Ne%xe,0))),be=k(Ne/xe);Me.push(O(J(be,0))),$=Y(ne,He,ue==se),ne=0,++ue}++ne,++te}return Me.join("")}m={version:"1.4.1",ucs2:{decode:G,encode:N},decode:K,encode:fe,toASCII:function(X){return H(X,(function(te){return _.test(te)?"xn--"+fe(te):te}))},toUnicode:function(X){return H(X,(function(te){return w.test(te)?K(te.slice(4).toLowerCase()):te}))}},(a=(function(){return m}).call(r,i,r,o))===void 0||(o.exports=a)})()}).call(this,i(35)(t),i(36))},function(t,r){t.exports=function(i){return i.webpackPolyfill||(i.deprecate=function(){},i.paths=[],i.children||(i.children=[]),Object.defineProperty(i,"loaded",{enumerable:!0,get:function(){return i.l}}),Object.defineProperty(i,"id",{enumerable:!0,get:function(){return i.i}}),i.webpackPolyfill=1),i}},function(t,r){var i;i=(function(){return this})();try{i=i||new Function("return this")()}catch{typeof window=="object"&&(i=window)}t.exports=i},function(t,r,i){t.exports={isString:function(o){return typeof o=="string"},isObject:function(o){return typeof o=="object"&&o!==null},isNull:function(o){return o===null},isNullOrUndefined:function(o){return o==null}}},function(t,r,i){r.decode=r.parse=i(39),r.encode=r.stringify=i(40)},function(t,r,i){function o(a,h){return Object.prototype.hasOwnProperty.call(a,h)}t.exports=function(a,h,g,m){h=h||"&",g=g||"=";var x={};if(typeof a!="string"||a.length===0)return x;var w=/\+/g;a=a.split(h);var _=1e3;m&&typeof m.maxKeys=="number"&&(_=m.maxKeys);var E=a.length;_>0&&E>_&&(E=_);for(var R=0;R<E;++R){var k,O,P,z,H=a[R].replace(w,"%20"),G=H.indexOf(g);G>=0?(k=H.substr(0,G),O=H.substr(G+1)):(k=H,O=""),P=decodeURIComponent(k),z=decodeURIComponent(O),o(x,P)?l(x[P])?x[P].push(z):x[P]=[x[P],z]:x[P]=z}return x};var l=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"}},function(t,r,i){var o=function(g){switch(typeof g){case"string":return g;case"boolean":return g?"true":"false";case"number":return isFinite(g)?g:"";default:return""}};t.exports=function(g,m,x,w){return m=m||"&",x=x||"=",g===null&&(g=void 0),typeof g=="object"?a(h(g),(function(_){var E=encodeURIComponent(o(_))+x;return l(g[_])?a(g[_],(function(R){return E+encodeURIComponent(o(R))})).join(m):E+encodeURIComponent(o(g[_]))})).join(m):w?encodeURIComponent(o(w))+x+encodeURIComponent(o(g)):""};var l=Array.isArray||function(g){return Object.prototype.toString.call(g)==="[object Array]"};function a(g,m){if(g.map)return g.map(m);for(var x=[],w=0;w<g.length;w++)x.push(m(g[w],w));return x}var h=Object.keys||function(g){var m=[];for(var x in g)Object.prototype.hasOwnProperty.call(g,x)&&m.push(x);return m}}])}))})(Ib)),Ib.exports}var lF=oF();const sF=L1(lF),qe={container:"table-up-container",tableCaption:"table-up-caption",tableWrapper:"table-up",tableMain:"table-up-main",tableColgroup:"table-up-colgroup",tableCol:"table-up-col",tableBody:"table-up-body",tableRow:"table-up-row",tableCell:"table-up-cell",tableCellInner:"table-up-cell-inner"},Ss={colMinWidthPre:5,colMinWidthPx:40,colDefaultWidth:100,rowMinHeightPx:36},av={AFTER_TABLE_RESIZE:"after-table-resize"},kb={moduleName:"table-up"},aF=[["rgb(255, 255, 255)","rgb(0, 0, 0)","rgb(72, 83, 104)","rgb(41, 114, 244)","rgb(0, 163, 245)","rgb(49, 155, 98)","rgb(222, 60, 54)","rgb(248, 136, 37)","rgb(245, 196, 0)","rgb(153, 56, 215)"],["rgb(242, 242, 242)","rgb(127, 127, 127)","rgb(243, 245, 247)","rgb(229, 239, 255)","rgb(229, 246, 255)","rgb(234, 250, 241)","rgb(254, 233, 232)","rgb(254, 243, 235)","rgb(254, 249, 227)","rgb(253, 235, 255)"],["rgb(216, 216, 216)","rgb(89, 89, 89)","rgb(197, 202, 211)","rgb(199, 220, 255)","rgb(199, 236, 255)","rgb(195, 234, 213)","rgb(255, 201, 199)","rgb(255, 220, 196)","rgb(255, 238, 173)","rgb(242, 199, 255)"],["rgb(191, 191, 191)","rgb(63, 63, 63)","rgb(128, 139, 158)","rgb(153, 190, 255)","rgb(153, 221, 255)","rgb(152, 215, 182)","rgb(255, 156, 153)","rgb(255, 186, 132)","rgb(255, 226, 112)","rgb(213, 142, 255)"],["rgb(165, 165, 165)","rgb(38, 38, 38)","rgb(53, 59, 69)","rgb(20, 80, 184)","rgb(18, 116, 165)","rgb(39, 124, 79)","rgb(158, 30, 26)","rgb(184, 96, 20)","rgb(163, 130, 0)","rgb(94, 34, 129)"],["rgb(147, 147, 147)","rgb(13, 13, 13)","rgb(36, 39, 46)","rgb(12, 48, 110)","rgb(10, 65, 92)","rgb(24, 78, 50)","rgb(88, 17, 14)","rgb(92, 48, 10)","rgb(102, 82, 0)","rgb(59, 21, 81)"]],cF="table-up",uF=new Set([qe.tableCellInner]),fF=n=>uF.has(n.statics.blotName);function l_(n){return n&&n.parent?fF(n.parent)?!0:l_(n.parent):!1}function cu(n,e=cF){let t=e?`${e}-`:"";return{b:()=>`${t}${n}`,be:r=>r?`${t}${n}__${r}`:"",bm:r=>r?`${t}${n}--${r}`:"",bem:(r,i)=>r&&i?`${t}${n}__${r}--${i}`:"",ns:r=>r?`${t}${r}`:"",bs:r=>r?`${t}${n}-${r}`:"",cv:r=>r?`--${t}${r}`:"",is:r=>`is-${r}`}}function Kl(n,e){let t=n.parent;for(;t&&t.statics.blotName!==e&&t!==n.scroll;)t=t.parent;if(t===n.scroll)throw Error(`${n.statics.blotName} must be a child of ${e}`);return t}function A1(n,e){let t=Array(e.length),r=new Map(e.map((o,l)=>[o,l])),i=n.parent;for(;i&&i!==n.scroll&&r.size!==0;){if(r.has(i.statics.blotName)){let o=r.get(i.statics.blotName);t[o]=i,r.delete(i.statics.blotName)}i=i.parent}if(r.size>0)throw Error(`${n.statics.blotName} must be a child of ${Array.from(r.keys()).join(", ")}`);return t}function gw(n){let e=new Map,t=n;for(;t&&t.statics.blotName!=="scroll";)e.set(t.statics.blotName,t),t=t.parent;return e}function hF(n,e){let t=[],r=n.children.iterator(),i=null;for(;i=r();)i instanceof e&&t.push(i);return t}function dF(n,e,t){for(let r of Object.getOwnPropertyNames(e))t&&t.test(r)||Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(e,r));return n}function gF(n,e){let t=class extends n{constructor(...r){super(...r)}};for(let r of e)dF(t.prototype,r.prototype,/^constructor$/);return t}function I0(n,e){return n.prototype instanceof e}function b1(n,e){return n=Math.min(e,Math.max(0,Number.parseFloat(`${n}`))),Math.abs(n-e)<1e-6?1:n%e/Number.parseFloat(e)}function pw(n){return{h:Math.min(360,Math.max(0,n.h)),s:Math.min(100,Math.max(0,n.s)),b:Math.min(100,Math.max(0,n.b)),a:Math.min(1,Math.max(0,n.a))}}function pF(n){n=n.startsWith("#")?n.slice(1):n;let e=Number.parseInt(n.slice(0,2),16),t=Number.parseInt(n.slice(2,4),16),r=Number.parseInt(n.slice(4,6),16),i=Number((Number.parseInt(n.slice(6,8)||"ff",16)/255).toFixed(2));return{r:e,g:t,b:r,a:i}}function vw(n){let{r:e,g:t,b:r,a:i}=n;e=b1(e,255),t=b1(t,255),r=b1(r,255);let o=Math.max(e,t,r),l=Math.min(e,t,r),a,h=o,g=o-l,m=o===0?0:g/o;if(o===l)a=0;else{switch(o){case e:a=(t-r)/g+(t<r?6:0);break;case t:a=(r-e)/g+2;break;case r:a=(e-t)/g+4;break}a/=6}return{h:a*360,s:m*100,b:h*100,a:i}}function K0(n){let{h:e,s:t,b:r,a:i}=n;e=b1(e,360)*6,t=b1(t,100),r=b1(r,100);let o=Math.floor(e),l=e-o,a=r*(1-t),h=r*(1-l*t),g=r*(1-(1-l)*t),m=o%6,x=[r,h,a,a,g,r][m],w=[g,r,r,h,a,a][m],_=[a,a,g,r,r,h][m];return{r:Math.round(x*255),g:Math.round(w*255),b:Math.round(_*255),a:i}}function s_(n){let e=[n.r.toString(16),n.g.toString(16),n.b.toString(16),Math.round(n.a*255).toString(16)];for(let t in e)e[t].length===1&&(e[t]=`0${e[t]}`);return e.join("")}const bw=n=>s_(K0(n)),nm=n=>typeof n=="function",a_=Array.isArray,Lg=n=>typeof n=="string",vF=n=>typeof n=="number",k0=n=>typeof n=="object"&&!!n,bF=n=>!Number.isNaN(n)&&Number(n)>0,yF=n=>a_(n)?n:[n];function cv(n){let{type:e="default",content:t}=n||{},r=cu("button"),i=document.createElement("button");return i.classList.add(r.b(),e),t&&(Lg(t)?i.textContent=t:i.appendChild(t)),i}function mF(n={}){let e=230,t=150,r=10,i=vw(pF(n.color||"#ff0000")),o=cu("color-picker"),l=document.createElement("div");l.classList.add(o.b());let a=document.createElement("div");a.classList.add(o.be("content"));let h=document.createElement("div");h.classList.add(o.be("selector"));let g=document.createElement("div");g.classList.add(o.be("background")),h.appendChild(g);let m=document.createElement("div");m.classList.add(o.be("background-handle")),g.appendChild(m);let x=document.createElement("div");x.classList.add(o.be("alpha"));let w=document.createElement("div");w.classList.add(o.be("alpha-bg"));let _=document.createElement("div");_.classList.add(o.be("alpha-handle")),x.appendChild(w),x.appendChild(_);let E=document.createElement("div");E.classList.add(o.be("hue"));let R=document.createElement("div");R.classList.add(o.be("hue-handle")),E.appendChild(R);let k=document.createElement("div");k.classList.add(o.be("action"));let[O,P,z,H]=["r","g","b","a"].map(Ne=>{let Me=document.createElement("div");Me.classList.add(o.be("action-item"),Ne);let Be=document.createElement("label");Be.textContent=Ne.toUpperCase();let ke=document.createElement("input");return ke.classList.add(o.be("input")),ke.addEventListener("input",()=>{ke.value=ke.value.replaceAll(/[^0-9]/g,"")}),ke.addEventListener("change",()=>{let Ie=Math.round(Number(ke.value));Ne==="a"&&(Ie/=100);let ze=pw(vw(Object.assign({},K0(i),{[Ne]:Ie})));se(ze),ue()}),Me.appendChild(Be),Me.appendChild(ke),k.appendChild(Me),ke});a.appendChild(E),a.appendChild(h),a.appendChild(x),l.appendChild(a),l.appendChild(k);let G=!1,N=!1,J=!1;function Y(){let Ne=bw(i);for(let[Me,Be]of[O,P,z].entries())Be.value=String(Number.parseInt(Ne[Me*2]+Ne[Me*2+1],16));H.value=String((i.a*100).toFixed(0))}function K(){Object.assign(m.style,{left:`${Math.floor(e*i.s/100)}px`,top:`${Math.floor(t*(100-i.b)/100)}px`})}function fe(){h.style.backgroundColor=`#${s_(K0({h:i.h,s:100,b:100,a:1}))}`}function X(){R.style.top=`${Math.floor(t-t*i.h/360)}px`}function te(){_.style.left=`${i.a*100}%`}function ne(){let{r:Ne,g:Me,b:Be}=K0(i);w.style.background=`linear-gradient(to right, rgba(${Ne}, ${Me}, ${Be}, 0) 0%, rgba(${Ne}, ${Me}, ${Be}, 1) 100%)`}function ue(){K(),fe(),X(),te(),ne(),Y()}function se(Ne){i=pw(Object.assign({},i,Ne)),Y(),n.onChange&&n.onChange(`#${bw(i)}`)}function $(Ne){let Me=h.getBoundingClientRect(),Be=Me.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),ke=Me.left+document.body.scrollLeft,Ie=Math.floor(100*Math.max(0,Math.min(e,Ne.pageX-ke))/e),ze=Math.floor(100*(t-Math.max(0,Math.min(t,Ne.pageY-Be)))/t);se({s:Ie,b:ze}),ue()}function re(Ne){let Me=E.getBoundingClientRect().top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0);se({h:Math.floor(360*(t-Math.max(0,Math.min(t,Ne.pageY-Me)))/t)}),ue()}function de(Ne){let{pageX:Me}=Ne,Be=x.getBoundingClientRect(),ke=Me-Be.left;ke=Math.max(r/2,ke),ke=Math.min(ke,Be.width-r/2),se({a:Math.round((ke-10/2)/(Be.width-10)*100)/100}),ue()}function be(Ne){G&&(Ne.preventDefault(),$(Ne)),N&&(Ne.preventDefault(),re(Ne)),J&&(Ne.preventDefault(),de(Ne))}function oe(){document.removeEventListener("mousemove",be),document.removeEventListener("mouseup",oe),G=!1}function Q(Ne){document.addEventListener("mousemove",be),document.addEventListener("mouseup",oe),G=!0,$(Ne)}h.addEventListener("mousedown",Q);function ge(){document.removeEventListener("mousemove",be),document.removeEventListener("mouseup",ge),N=!1}function Te(Ne){document.addEventListener("mousemove",be),document.addEventListener("mouseup",ge),N=!0,re(Ne)}E.addEventListener("mousedown",Te);function He(){document.removeEventListener("mousemove",be),document.removeEventListener("mouseup",He),J=!1}function xe(Ne){document.addEventListener("mousemove",be),document.addEventListener("mouseup",He),J=!0,de(Ne)}return x.addEventListener("mousedown",xe),ue(),l}let yw=8e3;function c_({child:n,target:e=document.body,beforeClose:t=()=>{}}={}){let r=cu("dialog"),i=e,o=document.createElement("div");o.classList.add(r.b()),o.style.zIndex=String(yw);let l=document.createElement("div");if(l.classList.add(r.be("overlay")),o.appendChild(l),n){let g=document.createElement("div");g.classList.add(r.be("content")),g.appendChild(n),l.appendChild(g),g.addEventListener("click",m=>{m.stopPropagation()})}let a=getComputedStyle(i).overflow;i.style.overflow="hidden",i.appendChild(o);let h=()=>{t(),o.remove(),i.style.overflow=a};return o.addEventListener("click",h),yw+=1,{dialog:o,close:h}}function mw(n,e){let t=cu("input");e.type||(e.type="text"),e.value||(e.value="");let r=document.createElement("div");if(r.classList.add(t.be("item")),n){let a=document.createElement("span");a.classList.add(t.be("label")),a.textContent=n,r.appendChild(a)}let i=document.createElement("div");i.classList.add(t.be("input"));let o=document.createElement("input");for(let a in e)o.setAttribute(a,e[a]);return(e.max||e.min)&&o.addEventListener("blur",()=>{e.max&&e.max<=Number(o.value)&&(o.value=String(e.max)),e.min&&e.min>=Number(o.value)&&(o.value=String(e.min))}),i.appendChild(o),r.appendChild(i),o.addEventListener("focus",()=>{i.classList.add("focus")}),o.addEventListener("blur",()=>{i.classList.remove("focus")}),{item:r,input:o,errorTip:a=>{let h;return i.classList.contains("error")?h=i.querySelector(`.${t.be("error-tip")}`):(h=document.createElement("span"),h.classList.add(t.be("error-tip")),i.appendChild(h)),h.textContent=a,i.classList.add("error"),{removeError:()=>{i.classList.remove("error"),h.remove()}}}}}async function xF(n={}){let e=cu("creator"),t=document.createElement("div");t.classList.add(e.b());let r=document.createElement("div");r.classList.add(e.be("input"));let{item:i,input:o,errorTip:l}=mw(n.rowText||"Row",{type:"number",value:String(n.row||""),max:99}),{item:a,input:h,errorTip:g}=mw(n.colText||"Column",{type:"number",value:String(n.col||""),max:99});r.appendChild(i),r.appendChild(a),t.appendChild(r);let m=document.createElement("div");m.classList.add(e.be("control"));let x=cv({type:"confirm",content:n.confirmText||"Confirm"}),w=cv({type:"default",content:n.cancelText||"Cancel"});m.appendChild(x),m.appendChild(w),t.appendChild(m);let _=(R=Number(o.value),k=Number(h.value))=>{if(Number.isNaN(R)||R<=0){l(n.notPositiveNumberError||"Please enter a positive integer");return}if(Number.isNaN(k)||k<=0){g(n.notPositiveNumberError||"Please enter a positive integer");return}return{row:R,col:k}},E=R=>{R.key==="Escape"&&(close(),document.removeEventListener("keydown",E))};return new Promise((R,k)=>{let{close:O}=c_({child:t,beforeClose:k});o.focus();for(let P of[o,h])P.addEventListener("keydown",z=>{if(z.key==="Enter"){let H=_();H&&(R(H),O())}});x.addEventListener("click",async()=>{let P=_();P&&(R(P),O())}),document.addEventListener("keydown",E),w.addEventListener("click",O)})}function wF(n={}){let e=cu("select-box"),t=document.createElement("div");t.classList.add(e.b());let r=document.createElement("div");r.classList.add(e.be("block"));for(let o=0;o<(n.row||8);o++)for(let l=0;l<(n.col||8);l++){let a=document.createElement("div");a.classList.add(e.be("item")),a.dataset.row=String(o+1),a.dataset.col=String(l+1),r.appendChild(a)}let i=()=>{let{row:o,col:l}=t.dataset;for(let h of Array.from(r.querySelectorAll(".active")))h.classList.remove("active");if(!o||!l)return;let a=Array.from(r.children);for(let h=0;h<a.length;h++){let{row:g,col:m}=a[h].dataset;if(g>o&&m>l)return;g<=o&&m<=l?a[h].classList.add("active"):a[h].classList.remove("active")}};if(r.addEventListener("mousemove",o=>{if(!o.target)return;let{row:l,col:a}=o.target.dataset;!l||!a||(t.dataset.row=l,t.dataset.col=a,i())}),r.addEventListener("mouseleave",()=>{t.removeAttribute("data-row"),t.removeAttribute("data-col"),i()}),r.addEventListener("click",()=>{let{row:o,col:l}=t.dataset;!o||!l||n.onSelect&&n.onSelect(Number(o),Number(l))}),t.appendChild(r),n.customBtn){let o=n.texts||{},l=document.createElement("div");l.classList.add(e.be("custom")),l.textContent=o.customBtnText||"Custom",l.addEventListener("click",async()=>{let a=await xF(o);a&&n.onSelect&&n.onSelect(a.row,a.col)}),t.appendChild(l)}return t}const uv=Math.min,Og=Math.max,fv=Math.round,M0=Math.floor,td=n=>({x:n,y:n}),CF={left:"right",right:"left",bottom:"top",top:"bottom"},_F={start:"end",end:"start"};function xw(n,e,t){return Og(n,uv(e,t))}function R1(n,e){return typeof n=="function"?n(e):n}function cg(n){return n.split("-")[0]}function Dv(n){return n.split("-")[1]}function Zm(n){return n==="x"?"y":"x"}function u_(n){return n==="y"?"height":"width"}function Ed(n){return["top","bottom"].includes(cg(n))?"y":"x"}function f_(n){return Zm(Ed(n))}function SF(n,e,t){t===void 0&&(t=!1);let r=Dv(n),i=f_(n),o=u_(i),l=i==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(l=hv(l)),[l,hv(l)]}function EF(n){let e=hv(n);return[rm(n),e,rm(e)]}function rm(n){return n.replace(/start|end/g,e=>_F[e])}function TF(n,e,t){let r=["left","right"],i=["right","left"],o=["top","bottom"],l=["bottom","top"];switch(n){case"top":case"bottom":return t?e?i:r:e?r:i;case"left":case"right":return e?o:l;default:return[]}}function AF(n,e,t,r){let i=Dv(n),o=TF(cg(n),t==="start",r);return i&&(o=o.map(l=>l+"-"+i),e&&(o=o.concat(o.map(rm)))),o}function hv(n){return n.replace(/left|right|bottom|top/g,e=>CF[e])}function RF(n){return{top:0,right:0,bottom:0,left:0,...n}}function IF(n){return typeof n=="number"?{top:n,right:n,bottom:n,left:n}:RF(n)}function dv(n){let{x:e,y:t,width:r,height:i}=n;return{width:r,height:i,top:t,left:e,right:e+r,bottom:t+i,x:e,y:t}}function ww(n,e,t){let{reference:r,floating:i}=n,o=Ed(e),l=f_(e),a=u_(l),h=cg(e),g=o==="y",m=r.x+r.width/2-i.width/2,x=r.y+r.height/2-i.height/2,w=r[a]/2-i[a]/2,_;switch(h){case"top":_={x:m,y:r.y-i.height};break;case"bottom":_={x:m,y:r.y+r.height};break;case"right":_={x:r.x+r.width,y:x};break;case"left":_={x:r.x-i.width,y:x};break;default:_={x:r.x,y:r.y}}switch(Dv(e)){case"start":_[l]-=w*(t&&g?-1:1);break;case"end":_[l]+=w*(t&&g?-1:1);break}return _}const kF=async(n,e,t)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=t,a=o.filter(Boolean),h=await(l.isRTL==null?void 0:l.isRTL(e)),g=await l.getElementRects({reference:n,floating:e,strategy:i}),{x:m,y:x}=ww(g,r,h),w=r,_={},E=0;for(let R=0;R<a.length;R++){let{name:k,fn:O}=a[R],{x:P,y:z,data:H,reset:G}=await O({x:m,y:x,initialPlacement:r,placement:w,strategy:i,middlewareData:_,rects:g,platform:l,elements:{reference:n,floating:e}});m=P??m,x=z??x,_={..._,[k]:{..._[k],...H}},G&&E<=50&&(E++,typeof G=="object"&&(G.placement&&(w=G.placement),G.rects&&(g=G.rects===!0?await l.getElementRects({reference:n,floating:e,strategy:i}):G.rects),{x:m,y:x}=ww(g,w,h)),R=-1)}return{x:m,y:x,placement:w,strategy:i,middlewareData:_}};async function h_(n,e){e===void 0&&(e={});let{x:t,y:r,platform:i,rects:o,elements:l,strategy:a}=n,{boundary:h="clippingAncestors",rootBoundary:g="viewport",elementContext:m="floating",altBoundary:x=!1,padding:w=0}=R1(e,n),_=IF(w),E=m==="floating"?"reference":"floating",R=l[x?E:m],k=dv(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(R))??!0?R:R.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:h,rootBoundary:g,strategy:a})),O=m==="floating"?{x:t,y:r,width:o.floating.width,height:o.floating.height}:o.reference,P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),z=await(i.isElement==null?void 0:i.isElement(P))&&await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1},H=dv(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:O,offsetParent:P,strategy:a}):O);return{top:(k.top-H.top+_.top)/z.y,bottom:(H.bottom-k.bottom+_.bottom)/z.y,left:(k.left-H.left+_.left)/z.x,right:(H.right-k.right+_.right)/z.x}}const MF=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(e){var fe,X,te,ne;var t;let{placement:r,middlewareData:i,rects:o,initialPlacement:l,platform:a,elements:h}=e,{mainAxis:g=!0,crossAxis:m=!0,fallbackPlacements:x,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:E=!0,...R}=R1(n,e);if((t=i.arrow)!=null&&t.alignmentOffset)return{};let k=cg(r),O=Ed(l),P=cg(l)===l,z=await(a.isRTL==null?void 0:a.isRTL(h.floating)),H=x||(P||!E?[hv(l)]:EF(l)),G=_!=="none";!x&&G&&H.push(...AF(l,E,_,z));let N=[l,...H],J=await h_(e,R),Y=[],K=((fe=i.flip)==null?void 0:fe.overflows)||[];if(g&&Y.push(J[k]),m){let ue=SF(r,o,z);Y.push(J[ue[0]],J[ue[1]])}if(K=[...K,{placement:r,overflows:Y}],!Y.every(ue=>ue<=0)){let ue=(((X=i.flip)==null?void 0:X.index)||0)+1,se=N[ue];if(se&&(!(m==="alignment"?O!==Ed(se):!1)||K.every(de=>de.overflows[0]>0&&Ed(de.placement)===O)))return{data:{index:ue,overflows:K},reset:{placement:se}};let $=(te=K.filter(re=>re.overflows[0]<=0).sort((re,de)=>re.overflows[1]-de.overflows[1])[0])==null?void 0:te.placement;if(!$)switch(w){case"bestFit":{let re=(ne=K.filter(de=>{if(G){let be=Ed(de.placement);return be===O||be==="y"}return!0}).map(de=>[de.placement,de.overflows.filter(be=>be>0).reduce((be,oe)=>be+oe,0)]).sort((de,be)=>de[1]-be[1])[0])==null?void 0:ne[0];re&&($=re);break}case"initialPlacement":$=l;break}if(r!==$)return{reset:{placement:$}}}return{}}}};async function LF(n,e){let{placement:t,platform:r,elements:i}=n,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),l=cg(t),a=Dv(t),h=Ed(t)==="y",g=["left","top"].includes(l)?-1:1,m=o&&h?-1:1,x=R1(e,n),{mainAxis:w,crossAxis:_,alignmentAxis:E}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:x.mainAxis||0,crossAxis:x.crossAxis||0,alignmentAxis:x.alignmentAxis};return a&&typeof E=="number"&&(_=a==="end"?E*-1:E),h?{x:_*m,y:w*g}:{x:w*g,y:_*m}}const OF=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(e){var h;var t;let{x:r,y:i,placement:o,middlewareData:l}=e,a=await LF(e,n);return o===((h=l.offset)==null?void 0:h.placement)&&(t=l.arrow)!=null&&t.alignmentOffset?{}:{x:r+a.x,y:i+a.y,data:{...a,placement:o}}}}},PF=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:i}=e,{mainAxis:o=!0,crossAxis:l=!1,limiter:a={fn:k=>{let{x:O,y:P}=k;return{x:O,y:P}}},...h}=R1(n,e),g={x:t,y:r},m=await h_(e,h),x=Ed(cg(i)),w=Zm(x),_=g[w],E=g[x];if(o){let k=w==="y"?"top":"left",O=w==="y"?"bottom":"right",P=_+m[k],z=_-m[O];_=xw(P,_,z)}if(l){let k=x==="y"?"top":"left",O=x==="y"?"bottom":"right",P=E+m[k],z=E-m[O];E=xw(P,E,z)}let R=a.fn({...e,[w]:_,[x]:E});return{...R,data:{x:R.x-t,y:R.y-r,enabled:{[w]:o,[x]:l}}}}}},DF=function(n){return n===void 0&&(n={}),{options:n,fn(e){var O,P;let{x:t,y:r,placement:i,rects:o,middlewareData:l}=e,{offset:a=0,mainAxis:h=!0,crossAxis:g=!0}=R1(n,e),m={x:t,y:r},x=Ed(i),w=Zm(x),_=m[w],E=m[x],R=R1(a,e),k=typeof R=="number"?{mainAxis:R,crossAxis:0}:{mainAxis:0,crossAxis:0,...R};if(h){let z=w==="y"?"height":"width",H=o.reference[w]-o.floating[z]+k.mainAxis,G=o.reference[w]+o.reference[z]-k.mainAxis;_<H?_=H:_>G&&(_=G)}if(g){let z=w==="y"?"width":"height",H=["top","left"].includes(cg(i)),G=o.reference[x]-o.floating[z]+(H&&((O=l.offset)==null?void 0:O[x])||0)+(H?0:k.crossAxis),N=o.reference[x]+o.reference[z]+(H?0:((P=l.offset)==null?void 0:P[x])||0)-(H?k.crossAxis:0);E<G?E=G:E>N&&(E=N)}return{[w]:_,[x]:E}}}};function Nv(){return typeof window<"u"}function D1(n){return d_(n)?(n.nodeName||"").toLowerCase():"#document"}function Bf(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function ad(n){var e;return(e=(d_(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function d_(n){return Nv()?n instanceof Node||n instanceof Bf(n).Node:!1}function Nh(n){return Nv()?n instanceof Element||n instanceof Bf(n).Element:!1}function od(n){return Nv()?n instanceof HTMLElement||n instanceof Bf(n).HTMLElement:!1}function Cw(n){return!Nv()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Bf(n).ShadowRoot}function Zp(n){let{overflow:e,overflowX:t,overflowY:r,display:i}=Fh(n);return/auto|scroll|overlay|hidden|clip/.test(e+r+t)&&!["inline","contents"].includes(i)}function NF(n){return["table","td","th"].includes(D1(n))}function Fv(n){return[":popover-open",":modal"].some(e=>{try{return n.matches(e)}catch{return!1}})}function Xm(n){let e=Km(),t=Nh(n)?Fh(n):n;return["transform","translate","scale","rotate","perspective"].some(r=>t[r]?t[r]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(t.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(t.contain||"").includes(r))}function FF(n){let e=ug(n);for(;od(e)&&!I1(e);){if(Xm(e))return e;if(Fv(e))return null;e=ug(e)}return null}function Km(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function I1(n){return["html","body","#document"].includes(D1(n))}function Fh(n){return Bf(n).getComputedStyle(n)}function Bv(n){return Nh(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function ug(n){if(D1(n)==="html")return n;let e=n.assignedSlot||n.parentNode||Cw(n)&&n.host||ad(n);return Cw(e)?e.host:e}function g_(n){let e=ug(n);return I1(e)?n.ownerDocument?n.ownerDocument.body:n.body:od(e)&&Zp(e)?e:g_(e)}function Dp(n,e,t){var l;e===void 0&&(e=[]),t===void 0&&(t=!0);let r=g_(n),i=r===((l=n.ownerDocument)==null?void 0:l.body),o=Bf(r);if(i){let a=im(o);return e.concat(o,o.visualViewport||[],Zp(r)?r:[],a&&t?Dp(a):[])}return e.concat(r,Dp(r,[],t))}function im(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function p_(n){let e=Fh(n),t=parseFloat(e.width)||0,r=parseFloat(e.height)||0,i=od(n),o=i?n.offsetWidth:t,l=i?n.offsetHeight:r,a=fv(t)!==o||fv(r)!==l;return a&&(t=o,r=l),{width:t,height:r,$:a}}function Jm(n){return Nh(n)?n:n.contextElement}function y1(n){let e=Jm(n);if(!od(e))return td(1);let t=e.getBoundingClientRect(),{width:r,height:i,$:o}=p_(e),l=(o?fv(t.width):t.width)/r,a=(o?fv(t.height):t.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!a||!Number.isFinite(a))&&(a=1),{x:l,y:a}}const BF=td(0);function v_(n){let e=Bf(n);return!Km()||!e.visualViewport?BF:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function zF(n,e,t){return e===void 0&&(e=!1),!t||e&&t!==Bf(n)?!1:e}function Fg(n,e,t,r){e===void 0&&(e=!1),t===void 0&&(t=!1);let i=n.getBoundingClientRect(),o=Jm(n),l=td(1);e&&(r?Nh(r)&&(l=y1(r)):l=y1(n));let a=zF(o,t,r)?v_(o):td(0),h=(i.left+a.x)/l.x,g=(i.top+a.y)/l.y,m=i.width/l.x,x=i.height/l.y;if(o){let w=Bf(o),_=r&&Nh(r)?Bf(r):r,E=w,R=im(E);for(;R&&r&&_!==E;){let k=y1(R),O=R.getBoundingClientRect(),P=Fh(R),z=O.left+(R.clientLeft+parseFloat(P.paddingLeft))*k.x,H=O.top+(R.clientTop+parseFloat(P.paddingTop))*k.y;h*=k.x,g*=k.y,m*=k.x,x*=k.y,h+=z,g+=H,E=Bf(R),R=im(E)}}return dv({width:m,height:x,x:h,y:g})}function Qm(n,e){let t=Bv(n).scrollLeft;return e?e.left+t:Fg(ad(n)).left+t}function b_(n,e,t){t===void 0&&(t=!1);let r=n.getBoundingClientRect(),i=r.left+e.scrollLeft-(t?0:Qm(n,r)),o=r.top+e.scrollTop;return{x:i,y:o}}function HF(n){let{elements:e,rect:t,offsetParent:r,strategy:i}=n,o=i==="fixed",l=ad(r),a=e?Fv(e.floating):!1;if(r===l||a&&o)return t;let h={scrollLeft:0,scrollTop:0},g=td(1),m=td(0),x=od(r);if((x||!x&&!o)&&((D1(r)!=="body"||Zp(l))&&(h=Bv(r)),od(r))){let _=Fg(r);g=y1(r),m.x=_.x+r.clientLeft,m.y=_.y+r.clientTop}let w=l&&!x&&!o?b_(l,h,!0):td(0);return{width:t.width*g.x,height:t.height*g.y,x:t.x*g.x-h.scrollLeft*g.x+m.x+w.x,y:t.y*g.y-h.scrollTop*g.y+m.y+w.y}}function WF(n){return Array.from(n.getClientRects())}function UF(n){let e=ad(n),t=Bv(n),r=n.ownerDocument.body,i=Og(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),o=Og(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),l=-t.scrollLeft+Qm(n),a=-t.scrollTop;return Fh(r).direction==="rtl"&&(l+=Og(e.clientWidth,r.clientWidth)-i),{width:i,height:o,x:l,y:a}}function GF(n,e){let t=Bf(n),r=ad(n),i=t.visualViewport,o=r.clientWidth,l=r.clientHeight,a=0,h=0;if(i){o=i.width,l=i.height;let g=Km();(!g||g&&e==="fixed")&&(a=i.offsetLeft,h=i.offsetTop)}return{width:o,height:l,x:a,y:h}}function YF(n,e){let t=Fg(n,!0,e==="fixed"),r=t.top+n.clientTop,i=t.left+n.clientLeft,o=od(n)?y1(n):td(1),l=n.clientWidth*o.x,a=n.clientHeight*o.y,h=i*o.x,g=r*o.y;return{width:l,height:a,x:h,y:g}}function _w(n,e,t){let r;if(e==="viewport")r=GF(n,t);else if(e==="document")r=UF(ad(n));else if(Nh(e))r=YF(e,t);else{let i=v_(n);r={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return dv(r)}function y_(n,e){let t=ug(n);return t===e||!Nh(t)||I1(t)?!1:Fh(t).position==="fixed"||y_(t,e)}function VF(n,e){let t=e.get(n);if(t)return t;let r=Dp(n,[],!1).filter(a=>Nh(a)&&D1(a)!=="body"),i=null,o=Fh(n).position==="fixed",l=o?ug(n):n;for(;Nh(l)&&!I1(l);){let a=Fh(l),h=Xm(l);!h&&a.position==="fixed"&&(i=null),(o?!h&&!i:!h&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Zp(l)&&!h&&y_(n,l))?r=r.filter(m=>m!==l):i=a,l=ug(l)}return e.set(n,r),r}function ZF(n){let{element:e,boundary:t,rootBoundary:r,strategy:i}=n,o=t==="clippingAncestors"?Fv(e)?[]:VF(e,this._c):[].concat(t),l=[...o,r],a=l[0],h=l.reduce((g,m)=>{let x=_w(e,m,i);return g.top=Og(x.top,g.top),g.right=uv(x.right,g.right),g.bottom=uv(x.bottom,g.bottom),g.left=Og(x.left,g.left),g},_w(e,a,i));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function XF(n){let{width:e,height:t}=p_(n);return{width:e,height:t}}function KF(n,e,t){let r=od(e),i=ad(e),o=t==="fixed",l=Fg(n,!0,o,e),a={scrollLeft:0,scrollTop:0},h=td(0);function g(){h.x=Qm(i)}if(r||!r&&!o)if((D1(e)!=="body"||Zp(i))&&(a=Bv(e)),r){let _=Fg(e,!0,o,e);h.x=_.x+e.clientLeft,h.y=_.y+e.clientTop}else i&&g();o&&!r&&i&&g();let m=i&&!r&&!o?b_(i,a):td(0),x=l.left+a.scrollLeft-h.x-m.x,w=l.top+a.scrollTop-h.y-m.y;return{x,y:w,width:l.width,height:l.height}}function Mb(n){return Fh(n).position==="static"}function Sw(n,e){if(!od(n)||Fh(n).position==="fixed")return null;if(e)return e(n);let t=n.offsetParent;return ad(n)===t&&(t=t.ownerDocument.body),t}function m_(n,e){let t=Bf(n);if(Fv(n))return t;if(!od(n)){let i=ug(n);for(;i&&!I1(i);){if(Nh(i)&&!Mb(i))return i;i=ug(i)}return t}let r=Sw(n,e);for(;r&&NF(r)&&Mb(r);)r=Sw(r,e);return r&&I1(r)&&Mb(r)&&!Xm(r)?t:r||FF(n)||t}const JF=async function(n){let e=this.getOffsetParent||m_,t=this.getDimensions,r=await t(n.floating);return{reference:KF(n.reference,await e(n.floating),n.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function QF(n){return Fh(n).direction==="rtl"}const qF={convertOffsetParentRelativeRectToViewportRelativeRect:HF,getDocumentElement:ad,getClippingRect:ZF,getOffsetParent:m_,getElementRects:JF,getClientRects:WF,getDimensions:XF,getScale:y1,isElement:Nh,isRTL:QF};function x_(n,e){return n.x===e.x&&n.y===e.y&&n.width===e.width&&n.height===e.height}function jF(n,e){let t=null,r,i=ad(n);function o(){var a;clearTimeout(r),(a=t)==null||a.disconnect(),t=null}function l(a,h){a===void 0&&(a=!1),h===void 0&&(h=1),o();let g=n.getBoundingClientRect(),{left:m,top:x,width:w,height:_}=g;if(a||e(),!w||!_)return;let E=M0(x),R=M0(i.clientWidth-(m+w)),k=M0(i.clientHeight-(x+_)),O=M0(m),P=-E+"px "+-R+"px "+-k+"px "+-O+"px",z={rootMargin:P,threshold:Og(0,uv(1,h))||1},H=!0;function G(N){let J=N[0].intersectionRatio;if(J!==h){if(!H)return l();J?l(!1,J):r=setTimeout(()=>{l(!1,1e-7)},1e3)}J===1&&!x_(g,n.getBoundingClientRect())&&l(),H=!1}try{t=new IntersectionObserver(G,{...z,root:i.ownerDocument})}catch{t=new IntersectionObserver(G,z)}t.observe(n)}return l(!0),o}function $F(n,e,t,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:h=!1}=r,g=Jm(n),m=i||o?[...g?Dp(g):[],...Dp(e)]:[];m.forEach(O=>{i&&O.addEventListener("scroll",t,{passive:!0}),o&&O.addEventListener("resize",t)});let x=g&&a?jF(g,t):null,w=-1,_=null;l&&(_=new ResizeObserver(O=>{let[P]=O;P&&P.target===g&&_&&(_.unobserve(e),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var z;(z=_)==null||z.observe(e)})),t()}),g&&!h&&_.observe(g),_.observe(e));let E,R=h?Fg(n):null;h&&k();function k(){let O=Fg(n);R&&!x_(R,O)&&t(),R=O,E=requestAnimationFrame(k)}return t(),()=>{var O;m.forEach(P=>{i&&P.removeEventListener("scroll",t),o&&P.removeEventListener("resize",t)}),x==null||x(),(O=_)==null||O.disconnect(),_=null,h&&cancelAnimationFrame(E)}}const w_=OF,C_=PF,__=MF,S_=DF,E_=(n,e,t)=>{let r=new Map,i={platform:qF,...t},o={...i.platform,_c:r};return kF(n,e,{...i,platform:o})};function eB(n,e,t,r,i){return n.addEventListener("transitionend",t,r),setTimeout(()=>{t()},e)}const tB=4;let L0;function Lb(n,e={}){let{msg:t="",delay:r=150,content:i,direction:o="bottom",type:l="hover",container:a,onOpen:h,onClose:g,closed:m,onDestroy:x}=e,w=cu("tooltip");if(t||i){L0||(L0=document.createElement("div"),document.body.appendChild(L0));let _=a||L0,E=document.createElement("div");E.classList.add(w.b(),"hidden","transparent"),i?E.appendChild(i):t&&(E.textContent=t);let R,k,O,P=()=>{O&&O(),E_(n,E,{placement:o,middleware:[__(),C_({limiter:S_()}),w_(tB)]}).then(({x:ue,y:se})=>{Object.assign(E.style,{left:`${ue}px`,top:`${se}px`})})},z=()=>{E.classList.add("hidden"),_.contains(E)&&_.removeChild(E),O&&O(),m&&m()},H=(ue=!1)=>{k&&clearTimeout(k),R=setTimeout(()=>{if(h){let se=h(ue);if(!ue&&se)return}_.appendChild(E),E.removeEventListener("transitionend",z),E.classList.remove("hidden"),O=$F(n,E,P),E.classList.remove("transparent")},r)},G=(ue=!1)=>{R&&clearTimeout(R),k=setTimeout(()=>{if(g){let se=g(ue);if(!ue&&se)return}eB(E,150,z,{once:!0}),E.classList.add("transparent")},r)},N=()=>{let ue=[n,E],se=G.bind(void 0,!1),$=H.bind(void 0,!1);return{prepare:()=>{for(let de of ue)de.addEventListener("mouseenter",$),de.addEventListener("mouseleave",se)},show:H,hide:G,destroy:()=>{for(let de of ue)de.removeEventListener("mouseenter",$),de.removeEventListener("mouseleave",se)}}},J=()=>{let ue=$=>{$.stopPropagation(),G(!1)},se=$=>{$.stopPropagation(),H(),document.removeEventListener("click",ue),document.addEventListener("click",ue,{once:!0})};return{prepare:()=>{E.addEventListener("click",$=>$.stopPropagation()),n.addEventListener("click",se)},show:H,hide:($=!1)=>{G($),document.removeEventListener("click",ue)},destroy:()=>{n.removeEventListener("click",se),document.removeEventListener("click",ue)}}},Y={hover:N,click:J},{prepare:K,show:fe,hide:X,destroy:te}=Y[l]();return K(),{show:fe,hide:X,destroy:()=>{X(!0),x&&x(),te(),O&&O(),E.remove()}}}return null}function nB(n,e,t=0,r=!0){let{x:i,y:o,x1:l,y1:a}=n,{x:h,y:g,x1:m,y1:x}=e,w,_;return r?(w=l<h+t||i-t>m,_=a<g+t||o-t>x):(w=l<=h+t||i-t>=m,_=a<=g+t||o-t>=x),!(w||_)}function rB(n,e){let t=e.getBoundingClientRect();return{x:n.x-t.x-e.scrollLeft,y:n.y-t.y-e.scrollTop,x1:n.x-t.x-e.scrollLeft+n.width,y1:n.y-t.y-e.scrollTop+n.height,width:n.width,height:n.height}}const O0=8;function iB(n){let{left:e,top:t,width:r,height:i}=n,{clientWidth:o,clientHeight:l}=document.documentElement,a=!1,h=!1;return e+r>o?(e=o-r-O0,a=!0):e<0&&(e=O0,a=!0),t+i>l?(t=l-i-O0,h=!0):t<0&&(t=O0,h=!0),{left:e,top:t,leftLimited:a,topLimited:h}}function oB(n,e={}){let t=Symbol("ignoreFirstBind"),r=new Set,i=new ResizeObserver(h=>{e.ignoreFirstBind&&h.some(g=>{let m=g.target,x=m[t];return m[t]=!0,!x})||n(h)}),o=i.observe;i.observe=(h,g)=>{r.add(h),o.call(i,h,g)};let l=i.unobserve;i.unobserve=h=>{r.has(h)&&(r.delete(h),h[t]=void 0),l.call(i,h)};let a=i.disconnect;return i.disconnect=()=>{for(let h of r.values())h[t]=void 0;a.call(i)},i}function gv(n,e){n.addEventListener("scroll",e),this.scrollHandler.push([n,e])}function J0(){for(let n=0;n<this.scrollHandler.length;n++){let[e,t]=this.scrollHandler[n];e.removeEventListener("scroll",t)}this.scrollHandler=[]}function ap(n){return{y:n.scrollTop,x:n.scrollLeft}}function pv(n){let e={},t=n.trim().split(";");for(let r=0;r<t.length;r++){let i=t[r].trim();if(!i)continue;let o=i.indexOf(":");if(o===-1)continue;let l=i.slice(0,Math.max(0,o)).trim(),a=i.slice(Math.max(0,o+1)).trim();e[k1(l)]=a}return e}function om(n){return Object.entries(n).map(([e,t])=>`${lB(e)}: ${t};`).join(" ")}function lB(n){return n.replaceAll(/([A-Z])/g," $1").trim().split(" ").join("-").toLowerCase()}function k1(n){return n.replaceAll(/-(\w)/g,(e,t)=>t.toUpperCase())}const Na=()=>Math.random().toString(36).slice(2);function T_(n,e){let t;return function(...r){t&&clearTimeout(t),t=setTimeout(()=>{n.apply(this,r)},e)}}const Ob=Xe.import("parchment"),Ew=Xe.import("blots/container"),sB=Xe.import("blots/block"),aB=Xe.import("blots/block/embed");var uh,dg=(uh=class extends Ew{static create(e){let t=document.createElement(this.tagName);return this.className&&t.classList.add(this.className),t}optimize(e){if(this.children.length===0)if(this.statics.defaultChild!=null){let t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t)}else this.remove();this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}enforceAllowedChildren(){this.children.forEach(e=>{this.statics.allowedChildren.some(r=>e instanceof r)||(e.statics.scope===Ob.Scope.BLOCK_BLOT?(e.parent instanceof uh?(e.next!=null&&e.parent.splitAfter(e),e.prev!=null&&e.parent.splitAfter(e.prev)):(e.next!=null&&this.splitAfter(e),e.prev!=null&&this.splitAfter(e.prev)),e.parent.unwrap()):e instanceof Ob.ParentBlot?e.unwrap():e.remove())})}},Ee(uh,"tagName"),Ee(uh,"blotName",qe.container),Ee(uh,"scope",Ob.Scope.BLOCK_BLOT),Ee(uh,"allowedChildren",[sB,aB,Ew]),Ee(uh,"requiredContainer"),Ee(uh,"defaultChild"),uh);const ig=n=>bF(n)?n:1,Tw=Xe.import("blots/block"),cB=Xe.import("blots/block/embed");var Zd,cf=(Zd=class extends dg{static isAllowStyle(n){let e=k1(n);for(let t of this.allowStyle)if(e.startsWith(k1(t)))return!0;return!1}static create(n){let{tableId:e,rowId:t,colId:r,rowspan:i,colspan:o,style:l,emptyRow:a,tag:h="td"}=n,g=super.create();g.dataset.tableId=e,g.dataset.rowId=t,g.dataset.colId=r,g.dataset.rowspan=String(ig(i)),g.dataset.colspan=String(ig(o)),g.dataset.tag=h,l&&(g.dataset.style=l);try{a&&(g.dataset.emptyRow=JSON.stringify(a))}catch{}return g}static formats(n){let{tableId:e,rowId:t,colId:r,rowspan:i,colspan:o,style:l,emptyRow:a,tag:h="td"}=n.dataset,g={tableId:String(e),rowId:String(t),colId:String(r),rowspan:Number(ig(i)),colspan:Number(ig(o)),tag:h};l&&(g.style=l);try{a&&(g.emptyRow=JSON.parse(a))}catch{}return g}constructor(n,e,t){super(n,e),e.setAttribute("contenteditable",String(n.isEnabled()))}setFormatValue(n,e,t=!1){if(t){if(!this.statics.isAllowStyle(n))return;this.parent&&this.parent.statics.blotName===qe.tableCell&&this.parent.setFormatValue(n,e)}else{if(!this.statics.allowDataAttrs.has(n))return;let r=`data-${n}`;e?this.domNode.setAttribute(r,e):this.domNode.removeAttribute(r),this.parent&&this.parent.statics.blotName===qe.tableCell&&this.parent.setFormatValue(n,e)}this.clearCache()}clearCache(){let n=this.descendants(Tw,0);for(let e of n)e.cache={}}get tableId(){return this.domNode.dataset.tableId}get rowId(){return this.domNode.dataset.rowId}set rowId(n){this.setFormatValue("row-id",n)}get colId(){return this.domNode.dataset.colId}set colId(n){this.setFormatValue("col-id",n)}get rowspan(){return Number(this.domNode.dataset.rowspan)}set rowspan(n){this.setFormatValue("rowspan",n)}get colspan(){return Number(this.domNode.dataset.colspan)}set colspan(n){this.setFormatValue("colspan",n)}get emptyRow(){try{return JSON.parse(this.domNode.dataset.emptyRow)}catch{return[]}}set emptyRow(n){if(this.emptyRow.toString()!==n.toString())try{n.length>0?this.setFormatValue("empty-row",JSON.stringify(n),!1):this.setFormatValue("empty-row",null,!1)}catch{this.setFormatValue("empty-row",null,!1)}}getColumnIndex(){return Kl(this,qe.tableMain).getColIds().indexOf(this.colId)}setStyleByString(n){let e=pv(n);for(let[t,r]of Object.entries(e))this.setFormatValue(t,r,!0)}convertTableCell(){this.parent.statics.blotName===qe.tableCell&&(this.parent.convertTableCell(),this.clearCache())}formatAt(n,e,t,r){this.children.length===0&&(this.appendChild(this.scroll.create(this.statics.defaultChild.blotName)),e+=1),super.formatAt(n,e,t,r),r&&r.style&&this.setStyleByString(r.style)}insertAt(n,e,t){let[r]=this.children.find(n);if(!r&&this.statics.defaultChild){let i=this.scroll.create(this.statics.defaultChild.blotName||"block");this.appendChild(i)}super.insertAt(n,e,t)}formats(){let n=this.statics.formats(this.domNode);return{[this.statics.blotName]:n}}checkMerge(){let{colId:n,rowId:e,colspan:t,rowspan:r}=this,i=this.next;return i!==null&&i.statics.blotName===this.statics.blotName&&i.rowId===e&&i.colId===n&&i.colspan===t&&i.rowspan===r}optimize(){let n=this.parent,e=this.statics.formats(this.domNode);if(this.prev&&this.prev instanceof cB){let r=this.prev;if(this.insertBefore(r,this.children.head),this.length()<=1){let i=this.scroll.create("block");this.insertBefore(i,r.next)}}let t=n!==null&&n.statics.blotName!==qe.tableCell;if(t&&(this.wrap(qe.tableCell,e),this.children.length===0)){let r=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(r)}this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove()),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0?this.remove():this.domNode.dataset.style&&t&&n.domNode.style.cssText!==this.domNode.dataset.style&&this.setStyleByString(this.domNode.dataset.style)}insertBefore(n,e){if(n.statics.blotName===this.statics.blotName){let t=n,r=this.statics.formats(t.domNode),i=this.statics.formats(this.domNode);if(Object.entries(i).every(([l,a])=>String(a)===String(r[l]))){let l=this.split(e?e.offset():0);return this.parent.insertBefore(t,l)}else{let[l,a]=A1(this,[qe.tableRow,qe.tableCell]);if(e){let h=e.offset(),g=this.length();if(h+1<g){let m=this.scroll.create(qe.tableCellInner,i);this.children.forEachAt(h+1,this.length(),x=>{m.appendChild(x)}),l.insertBefore(m.wrap(qe.tableCell,i),a.next)}}if(this.rowId!==t.rowId){if(e){let m=e.offset(l);l.split(m)}else if(a.next){let m=a.next.offset(l);l.split(m)}let h=this.scroll.create(qe.tableRow,r),g=this.scroll.create(qe.tableCell,r);return g.appendChild(t),h.appendChild(g),l.parent.insertBefore(h,l.next)}return l.insertBefore(t.wrap(qe.tableCell,r),e?a:a.next)}}else if(n.statics.blotName===qe.tableCol){try{let t=Kl(this,qe.tableBody),r=this.offset(t),i=t.split(r);t.parent.insertBefore(n,i),n.optimize({})}catch{console.warn("TableCellInner not in TableBody")}return}super.insertBefore(n,e)}},Ee(Zd,"blotName",qe.tableCellInner),Ee(Zd,"tagName","div"),Ee(Zd,"className","ql-table-cell-inner"),Ee(Zd,"allowDataAttrs",new Set(["table-id","row-id","col-id","rowspan","colspan","empty-row"])),Ee(Zd,"defaultChild",Tw),Ee(Zd,"allowStyle",new Set(["background-color","border","height"])),Zd),up,qh=(up=class extends dg{static create(n){let e=super.create();return e.dataset.tableId=n.tableId,e.dataset.rowId=n.rowId,e}get rowId(){return this.domNode.dataset.rowId}get tableId(){return this.domNode.dataset.tableId}setHeight(n){this.foreachCellInner(e=>{e.setFormatValue("height",n,!0)})}getCellByColId(n,e){let t=Kl(this,qe.tableMain),r=t.getColIds(),i=r.indexOf(n),o=this.children.iterator(),l=null;for(;l=o();){if(l.colId===n)return l;let a=r.indexOf(l.colId);if(a<i&&a+l.colspan>i)return l}return this[e]&&this[e].statics.blotName===qe.tableRow?this[e].getCellByColId(n,e):null}insertCell(n,e){let t=[],r=this.children.iterator(),i=0,o;for(;(o=r())&&(i+=o.colspan,!(i>n));)if(o.rowspan!==1)for(let l=0;l<o.rowspan-1;l++)t[l]=(t[l]||0)+o.colspan;if(o&&i-o.colspan<n){let l=o.getCellInner();l.colspan+=1,o.rowspan!==1&&(t.skipRowNum=o.rowspan-1)}else{let l=this.scroll.create(qe.tableCell,e),a=this.scroll.create(qe.tableCellInner,e),h=this.scroll.create("block");h.appendChild(this.scroll.create("break")),a.appendChild(h),l.appendChild(a),this.insertBefore(l,o)}return t}getCellByColumIndex(n){let e=[],t=null,r=0;if(n<0)return[t,r,e];let i=this.children.iterator();for(;t=i();){if(r+=t.colspan,t.rowspan!==1)for(let o=0;o<t.rowspan-1;o++)e[o]=(e[o]||0)+t.colspan;if(r>n)break}return[t,r,e]}removeCell(n){if(n<0)return[];let e=this.getCellByColumIndex(n),[t,r]=e,i=e[2];if(!t)return i;if(r-t.colspan<n||t.colspan>1){let[o]=t.descendants(cf);if(t.colspan!==1&&n===r-t.colspan){let l=Kl(this,qe.tableMain),a=l.getColIds();o.colId=a[a.indexOf(o.colId)+1]}t.rowspan!==1&&(i.skipRowNum=t.rowspan-1),--o.colspan}else t.remove();return i}foreachCellInner(n){let e=this.children.iterator(),t=0,r;for(;r=e();){let[i]=r.descendants(cf);if(n(i,t++))break}}checkMerge(){let n=this.next;return n!==null&&n.statics.blotName===this.statics.blotName&&n.rowId===this.rowId}optimize(n){let e=this.parent,{tableId:t}=this;e!==null&&e.statics.blotName!==qe.tableBody&&this.wrap(qe.tableBody,t),this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName),this.enforceAllowedChildren(),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}},Ee(up,"blotName",qe.tableRow),Ee(up,"tagName","tr"),Ee(up,"className","ql-table-row"),up),H0,eg=(H0=class extends dg{static create(n){let e=super.create();return e.dataset.tableId=n,e}get tableId(){return this.domNode.dataset.tableId}insertRow(n){let e=Kl(this,qe.tableMain);if(!e)return;let t=e.getColIds(),r=this.descendants(qh),i=new Set(t),o=0;for(let g of r){if(o===n)break;g.foreachCellInner(m=>{if(o+m.rowspan>n&&(m.rowspan+=1,i.delete(m.colId),m.colspan!==1)){let x=t.indexOf(m.colId);for(let w=0;w<m.colspan-1;w++)i.delete(t[x+w+1])}}),o+=1}let l=e.tableId,a=Na(),h=this.scroll.create(qe.tableRow,{tableId:l,rowId:a});for(let g of i){let m=this.scroll.create("break"),x=m.wrap("block"),w=x.wrap(qe.tableCellInner,{tableId:l,rowId:a,colId:g,rowspan:1,colspan:1}),_=w.wrap(qe.tableCell,{tableId:l,rowId:a,colId:g,rowspan:1,colspan:1});h.appendChild(_)}this.insertBefore(h,r[n]||null)}checkMerge(){let n=this.next;return n!==null&&n.statics.blotName===this.statics.blotName&&n.tableId===this.tableId}optimize(n){let e=this.parent;if(e!==null&&e.statics.blotName!==qe.tableMain){let{tableId:t}=this;this.wrap(qe.tableMain,{tableId:t})}super.optimize(n)}},Ee(H0,"blotName",qe.tableBody),Ee(H0,"tagName","tbody"),H0);const uB=Xe.import("parchment"),fB=Xe.import("blots/block"),hB=Xe.import("blots/container");var lm=class extends fB{replaceWith(n,e){let t=Lg(n)?this.scroll.create(n,e):n;if(t instanceof uB.ParentBlot)if(t.statics.blotName===qe.tableCellInner){try{let i=Kl(this,qe.tableCellInner),o=i.formats(),l=t.formats();if(Object.keys(o).every(h=>JSON.stringify(o[h])===JSON.stringify(l[h])))return i}catch{}let r=this.parent;if(r.statics.blotName===qe.tableCellInner){if(r==null||r.insertBefore(t,this.prev?null:this.next),r.statics.blotName===qe.tableCellInner){let i=this;for(;i;){let o=i.next;t.appendChild(i),i=o}}else t.appendChild(this);if(r&&r.length()===0){r.remove(),r.parent.statics.blotName===qe.tableCell&&r.parent.length()===0&&r.parent.remove();let i=r.parent.parent;i.statics.blotName===qe.tableRow&&i.children.length===0&&i.remove()}}else r instanceof hB?r.parent.insertBefore(t,r):r==null||r.insertBefore(t,this.next),t.appendChild(this);return t}else this.moveChildren(t);return this.parent!=null&&(this.parent.insertBefore(t,this.next),this.remove()),this.attributes.copy(t),t}format(n,e){if(n===qe.tableCellInner&&this.parent.statics.blotName===n&&!e)try{Kl(this,qe.tableCellInner).unwrap()}catch{console.error("unwrap TableCellInner error")}else super.format(n,e)}};const dB=Xe.import("blots/block/embed");var Aw=class extends dB{delta(){let n=super.delta(),e=sm(this);return e[qe.tableCellInner]&&n.insert(`
package/dist/index.es.js CHANGED
@@ -42678,7 +42678,7 @@ class Wv extends si.Component {
42678
42678
  const r = this.editor.getContents(), i = this.editor.getSelection();
42679
42679
  this.regenerationSnapshot = { delta: r, selection: i }, this.setState({ generation: this.state.generation + 1 }), this.destroyEditor();
42680
42680
  }
42681
- if (this.state.generation !== t.generation) {
42681
+ if (this.editor && e.placeholder !== this.props.placeholder && (this.editor.root.dataset.placeholder = this.props.placeholder || ""), this.state.generation !== t.generation) {
42682
42682
  const { delta: r, selection: i } = this.regenerationSnapshot;
42683
42683
  delete this.regenerationSnapshot, this.instantiateEditor();
42684
42684
  const o = this.editor;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ados-rcm",
3
- "version": "1.1.671",
3
+ "version": "1.1.673",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -81,9 +81,14 @@
81
81
  "qs": "^6.14.0",
82
82
  "quill-magic-url": "^4.2.0",
83
83
  "quill-table-up": "^2.2.0",
84
- "react-quill-new": "^3.4.6"
84
+ "react-quill-new": "3.7.0-rc.1"
85
85
  },
86
86
  "overrides": {
87
- "lodash.isequal": "npm:fast-deep-equal@^3.1.3"
87
+ "lodash.isequal": "npm:fast-deep-equal@^3.1.3",
88
+ "inflight": "^1.0.6",
89
+ "glob": "^10.4.0",
90
+ "rimraf": "^5.0.10",
91
+ "@humanwhocodes/config-array": "npm:@eslint/config-array@^0.19.0",
92
+ "@humanwhocodes/object-schema": "npm:@eslint/object-schema@^2.1.0"
88
93
  }
89
94
  }