uawdijnntqw1x1x1
IP : 216.73.216.93
Hostname : panel.codeskitter.com
Kernel : Linux panel.codeskitter.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
Disable Function : apache_child_terminate, apache_note, apache_setenv, define_syslog_variables, dl, link, opcache_get_status, openlog, pcntl_exec, pcntl_fork, pcntl_setpriority, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid
OS : Linux
PATH:
/
home
/
users
/
unlimited
/
www
/
admin.medimeet.codeskitter.site
/
.
/
assets
/
Settings-BR8t5Pge.js
/
/
import{r as fe,w as Pe,j as P,B as ue,T as Re,N as tt,O as nt,x as ge,P as gt,y as de,M as rt,aB as Be,D as it,F as Ve,J as De,E as pe,X as ot,z as Ae,p as kt,aI as At,a0 as St}from"./index-f5FVPPWf.js";import{u as Tt}from"./HasPermission-D75jcuOi.js";import{V as lt,A as Nt,a as jt,S as Te,D as Pt,T as Ke,m as mt,c as at,d as ut,e as Le,f as st,h as qe,N as Lt}from"./Dashboard-QYea_GjR.js";import{F as qt,T as Rt}from"./index-NjlW3JBs.js";import{e as ft}from"./index-D-rZ_zLU.js";import{u as Ie}from"./SettingData-HUsgVeqA.js";import{u as Dt}from"./UseSearchFilter-7ev3Ltxt.js";import{a as ct,u as Ce,I as We}from"./index-B8iLT9XL.js";import{h as Ge,u as xe,M as Ye,b as Fe,a as Qe,c as Ue,g as Xe,d as ze,F as Oe,e as He,f as ae}from"./index.esm-CxKpqEdJ.js";import{D as Ne}from"./use-clickable-DJbYv-Vn.js";import{d as me,I as Ee,F as je}from"./input-aKY8cD2r.js";import{i as ht}from"./image-DDwLQVjO.js";import{u as dt}from"./useMutation-DWP0Ot2c.js";import{g as pt}from"./configs-CSMPbroZ.js";import{T as bt,a as _t,b as $e,c as _e,d as Ot,e as ve}from"./tr-SHTCPR9-.js";import{S as Et}from"./switch-aBDKduYP.js";import{o as It}from"./isEqual-963yh_6q.js";import"./visually-hidden.style-BrEqndXz.js";function Mt({isOpen:Q,onClose:V}){const[O,d]=fe.useState(),[h,A]=fe.useState(null),x=fe.useRef(),{register:g,handleSubmit:p,reset:y}=Ge(),c=Pe(),o=xe(),e=l=>{l.preventDefault();const r=l.dataTransfer.files[0];A(r)},n=l=>{l.preventDefault()},u=l=>{const r=l.target.files[0];A(r)},a=async l=>{let r={...l,image:h};try{d(!0);const i=await gt(de.token,"add_social_media",r);d(!1),i.response===200?(ae(o,"success","Social Media Added!"),c.invalidateQueries(["social-media"]),y(),V()):ae(o,"error",i.message)}catch(i){d(!1),ae(o,"error",JSON.stringify(i))}};return P.jsxs(Ye,{isOpen:Q,onClose:V,isCentered:!0,size:"lg",children:[P.jsx(Fe,{}),P.jsxs(Qe,{as:"form",onSubmit:p(a),children:[P.jsx(Ue,{fontSize:18,py:2,children:"Add Secial Media"}),P.jsx(Xe,{}),P.jsx(Ne,{}),P.jsx(ze,{children:P.jsxs(ue,{pb:3,children:[P.jsxs(me,{isRequired:!0,children:[P.jsx(Oe,{children:"Title"}),P.jsx(Ee,{placeholder:"Title",...g("title",{required:!0})})]}),P.jsxs(me,{isRequired:!0,mt:5,children:[P.jsx(Oe,{children:"URL"}),P.jsx(Ee,{type:"url",placeholder:"Ex: https://www.facebook.com",...g("url",{required:!0})})]}),P.jsx(ue,{mt:5,p:4,border:"2px dashed",borderColor:"gray.300",borderRadius:"md",onDrop:e,onDragOver:n,onClick:()=>{x.current&&x.current.click()},cursor:"pointer",children:h?P.jsxs(ue,{position:"relative",children:[P.jsxs(Re,{children:["Selected File: ",h.name]}),P.jsx(tt,{position:"absolute",right:-2,top:-2,size:"sm",onClick:()=>{A(null)}})]}):P.jsxs(ue,{children:[P.jsxs(lt,{children:[" ",P.jsx(Ee,{ref:x,type:"file",onChange:u,accept:".jpeg, .svg, .png , .jpg",mb:4})]}),P.jsxs(nt,{children:[" ",P.jsx(ct,{fontSize:32})]}),P.jsxs(Re,{textAlign:"center",mt:3,children:[P.jsx("b",{children:"Choose a file"})," or Drag it here."]})]})})]})}),P.jsx(Ne,{}),P.jsxs(He,{py:3,children:[P.jsx(ge,{colorScheme:"gray",mr:3,onClick:V,size:"sm",children:"Close"}),P.jsx(ge,{variant:"solid",size:"sm",colorScheme:"blue",type:"submit",isLoading:O,children:"Add"})]})]})]})}function Ct({isOpen:Q,onClose:V,data:O}){const[d,h]=fe.useState(),[A,x]=fe.useState(),[g,p]=fe.useState(null),y=fe.useRef(),{register:c,handleSubmit:o,reset:e}=Ge(),n=Pe(),u=xe(),a=t=>{t.preventDefault();const s=t.dataTransfer.files[0];p(s)},l=t=>{t.preventDefault()},r=t=>{const s=t.target.files[0];p(s)},i=async t=>{let s={...t,image:g,id:O.id};try{h(!0);const w=await Be(de.token,"update_social_media",s);h(!1),w.response===200?(ae(u,"success","Social Media Updated!"),n.invalidateQueries(["social-media"]),e(),p(null),V()):ae(u,"error",w.message)}catch(w){h(!1),ae(u,"error",JSON.stringify(w))}},f=async()=>{let t={id:O.id};try{x(!0);const s=await it(de.token,"remove_social_media_image",t);x(!1),s.response===200?(ae(u,"success","Image deleted!"),n.invalidateQueries("social-media"),e(),p(null),V()):ae(u,"error",s.message)}catch(s){x(!1),ae(u,"error",JSON.stringify(s))}};return P.jsxs(Ye,{isOpen:Q,onClose:V,isCentered:!0,size:"lg",scrollBehavior:"inside",children:[P.jsx(Fe,{}),P.jsxs(Qe,{as:"form",onSubmit:o(i),children:[P.jsx(Ue,{fontSize:18,py:2,children:"Update Social Media"}),P.jsx(Xe,{}),P.jsx(Ne,{}),P.jsx(ze,{children:P.jsxs(ue,{pb:3,children:[P.jsxs(me,{isRequired:!0,children:[P.jsx(Oe,{children:"Title"}),P.jsx(Ee,{defaultValue:O==null?void 0:O.title,placeholder:"Title",...c("title",{required:!0})})]}),P.jsxs(me,{isRequired:!0,mt:5,children:[P.jsx(Oe,{children:"URL"}),P.jsx(Ee,{type:"url",defaultValue:O==null?void 0:O.url,placeholder:"URL",...c("url",{required:!0})})]}),(O==null?void 0:O.image)&&P.jsxs(je,{mt:5,align:"center",gap:5,children:[P.jsx(rt,{src:`${ht}/${O==null?void 0:O.image}`,width:100,borderRadius:5}),P.jsx(ge,{size:"sm",colorScheme:"red",fontSize:12,isLoading:A,onClick:f,children:"Remove Image"})]}),!(O!=null&&O.image)&&P.jsx(ue,{mt:5,p:4,border:"2px dashed",borderColor:"gray.300",borderRadius:"md",onDrop:a,onDragOver:l,onClick:()=>{y.current&&y.current.click()},cursor:"pointer",children:g?P.jsxs(ue,{position:"relative",children:[P.jsxs(Re,{children:["Selected File: ",g.name]}),P.jsx(tt,{position:"absolute",right:-2,top:-2,size:"sm",onClick:()=>{p(null)}})]}):P.jsxs(ue,{children:[P.jsxs(lt,{children:[" ",P.jsx(Ee,{ref:y,type:"file",onChange:r,accept:".jpeg, .svg, .png , .jpg",mb:4})]}),P.jsxs(nt,{children:[" ",P.jsx(ct,{fontSize:32})]}),P.jsxs(Re,{textAlign:"center",mt:3,children:[P.jsx("b",{children:"Choose a file"})," or Drag it here."]})]})})]})}),P.jsx(Ne,{}),P.jsxs(He,{py:3,children:[P.jsx(ge,{colorScheme:"gray",mr:3,onClick:V,size:"sm",children:"Close"}),P.jsx(ge,{variant:"solid",size:"sm",colorScheme:"blue",type:"submit",isLoading:d,children:"Update"})]})]})]})}function Bt({isOpen:Q,onClose:V,data:O}){const d=xe(),h=fe.useRef(),A=Pe(),[x,g]=fe.useState(),p=async()=>{let y={id:O.id};try{g(!0);const c=await it(de.token,"delete_social_media",y);g(!1),c.response===200?(ae(d,"success","Social Media Deleted!"),A.invalidateQueries(["social-media"]),V()):ae(d,"error",c.message)}catch(c){g(!1),ae(d,"error",JSON.stringify(c))}};return P.jsx(Nt,{isOpen:Q,onClose:V,leastDestructiveRef:h,isCentered:!0,children:P.jsx(Fe,{children:P.jsxs(jt,{children:[P.jsxs(Ue,{fontSize:"lg",fontWeight:"semi-bold",children:["Delete ( ",P.jsx("b",{children:O==null?void 0:O.title})," )"]}),P.jsx(ze,{children:"Are you sure? You can not undo this action afterwards."}),P.jsxs(He,{children:[P.jsx(ge,{ref:h,onClick:V,colorScheme:"gray",size:"sm",children:"Cancel"}),P.jsx(ge,{colorScheme:"red",onClick:p,ml:3,size:"sm",isLoading:x,children:"Delete"})]})]})})})}function Ft({currentTab:Q,activeTab:V}){const{isOpen:O,onOpen:d,onClose:h}=Ce(),[A,x]=fe.useState(),{isOpen:g,onOpen:p,onClose:y}=Ce(),{isOpen:c,onOpen:o,onClose:e}=Ce(),n=xe(),u="Errortoast",a=async()=>(await De(de.token,"get_social_media")).data.map(E=>{const{id:T,title:b,url:v,image:m,updated_at:S}=E;return{id:T,title:b,url:v,image:m,updated_at:S}}),l=w=>{x(w)},{isLoading:r,data:i,error:f}=Ie({queryKey:["social-media"],queryFn:a,enabled:Q==V}),{handleSearchChange:t,filteredData:s}=Dt(i);return f&&(n.isActive(u)||n({id:u,title:"Oops!",description:"Something bad happened.",status:"error",duration:2e3,isClosable:!0,position:"top"})),P.jsxs(ue,{children:[r||!i?P.jsxs(ue,{children:[P.jsxs(je,{mb:5,justify:"space-between",children:[P.jsx(Te,{w:400,h:8}),P.jsx(Te,{w:50,h:8})]}),P.jsx(Te,{h:300,w:"100%"})]}):P.jsxs(ue,{children:[P.jsxs(je,{mb:5,justify:"space-between",align:"center",children:[P.jsx(Ee,{size:"md",placeholder:"Search",w:400,maxW:"50vw",onChange:w=>t(w.target.value)}),P.jsx(ue,{children:P.jsx(ge,{size:"sm",colorScheme:"blue",onClick:d,children:"Add New"})})]}),P.jsx(Pt,{minPad:"8px 8px",data:s,onActionClick:P.jsx(Ut,{onClick:l,DeleteonOpen:p,EditonOpen:o})})]}),P.jsx(Mt,{isOpen:O,onClose:h}),P.jsx(Bt,{isOpen:g,onClose:y,data:A}),c&&P.jsx(Ct,{isOpen:c,onClose:e,data:A})]})}const Ut=({onClick:Q,rowData:V,DeleteonOpen:O,EditonOpen:d})=>P.jsxs(je,{justify:"center",children:[P.jsx(We,{size:"sm",variant:"ghost",_hover:{background:"none"},onClick:()=>{Q(V),d()},icon:P.jsx(ft,{fontSize:18,color:Ve.colors.blue[500]})}),P.jsx(We,{size:"sm",variant:"ghost",_hover:{background:"none"},onClick:()=>{Q(V),O()},icon:P.jsx(qt,{fontSize:18,color:Ve.colors.red[500]})})]});function zt({isOpen:Q,onClose:V,data:O}){const[d,h]=fe.useState(),[A,x]=fe.useState(),[g,p]=fe.useState(null),y=fe.useRef(),{register:c,handleSubmit:o,reset:e}=Ge(),n=Pe(),u=xe(),a=t=>{t.preventDefault();const s=t.dataTransfer.files[0];p(s)},l=t=>{t.preventDefault()},r=t=>{const s=t.target.files[0];p(s)},i=async t=>{let s=g?{value:g,id:O.id}:{...t,id:O.id};try{h(!0),await pt();const w=await Be(de.token,"update_configurations",s);h(!1),w.response===200?(ae(u,"success","Updated!"),n.invalidateQueries("group-configs",O==null?void 0:O.group_name),e(),p(null),V()):ae(u,"error",w.message)}catch(w){h(!1),ae(u,"error",JSON.stringify(w))}},f=async()=>{let t={id:O.id};try{x(!0);const s=await it(de.token,"remove_configurations_image",t);x(!1),s.response===200?(ae(u,"success","Image deleted!"),n.invalidateQueries("group-configs",O==null?void 0:O.group_name),e(),p(null),V()):ae(u,"error",s.message)}catch(s){x(!1),ae(u,"error",JSON.stringify(s))}};return P.jsxs(Ye,{isOpen:Q,onClose:V,isCentered:!0,size:"lg",scrollBehavior:"inside",children:[P.jsx(Fe,{}),P.jsxs(Qe,{as:"form",onSubmit:o(i),children:[P.jsxs(Ue,{fontSize:18,py:2,children:["Update ",O.group_name]}),P.jsx(Xe,{}),P.jsx(Ne,{}),P.jsx(ze,{children:P.jsxs(ue,{pb:3,children:[P.jsxs(me,{children:[P.jsx(Oe,{children:"Title"}),P.jsx(Ee,{defaultValue:O==null?void 0:O.title,placeholder:"Title",...c("title"),isReadOnly:!0})]}),(O==null?void 0:O.id_name)==="fav_icon"||(O==null?void 0:O.id_name)==="logo"||(O==null?void 0:O.id_name)==="ma_doctor_image"||(O==null?void 0:O.id_name)==="web_doctor_image"?O.value!==null?P.jsxs(je,{mt:5,align:"center",gap:5,children:[P.jsx(rt,{src:`${ht}/${O==null?void 0:O.value}`,width:100,borderRadius:5}),P.jsx(ge,{size:"sm",colorScheme:"red",fontSize:12,isLoading:A,onClick:f,children:"Remove Image"})]}):P.jsx(ue,{mt:5,p:4,border:"2px dashed",borderColor:"gray.300",borderRadius:"md",onDrop:a,onDragOver:l,onClick:()=>{y.current&&y.current.click()},cursor:"pointer",children:g?P.jsxs(ue,{position:"relative",children:[P.jsxs(Re,{children:["Selected File: ",g.name]}),P.jsx(tt,{position:"absolute",right:-2,top:-2,size:"sm",onClick:()=>{p(null)}})]}):P.jsxs(ue,{children:[P.jsxs(lt,{children:[" ",P.jsx(Ee,{ref:y,type:"file",onChange:r,accept:".jpeg, .svg, .png , .jpg",mb:4})]}),P.jsxs(nt,{children:[" ",P.jsx(ct,{fontSize:32})]}),P.jsxs(Re,{textAlign:"center",mt:3,children:[P.jsx("b",{children:"Choose a file"})," or Drag it here."]})]})}):P.jsxs(me,{isRequired:!0,mt:5,children:[P.jsx(Oe,{children:"Value"}),P.jsx(Ke,{defaultValue:O==null?void 0:O.value,placeholder:"URL",...c("value",{required:!0})})]})]})}),P.jsx(Ne,{}),P.jsxs(He,{py:3,children:[P.jsx(ge,{colorScheme:"gray",mr:3,onClick:V,size:"sm",children:"Close"}),P.jsx(ge,{variant:"solid",size:"sm",colorScheme:"blue",type:"submit",isLoading:d,children:"Update"})]})]})]})}function Ht({groupName:Q}){const[V,O]=fe.useState(),{isOpen:d,onOpen:h,onClose:A}=Ce(),x=xe(),g="Errortoast",p=async()=>{await pt();const e=await De(de.token,`get_configurations/group_name/${Q}`);if(e.response===200&&Array.isArray(e.data))return e.data;throw new Error("Failed to fetch data")},{data:y,isLoading:c,error:o}=Ie({queryKey:["group-configs",Q],queryFn:p});return o&&(x.isActive(g)||x({id:g,title:"Oops!",description:"Something bad happened.",status:"error",duration:2e3,isClosable:!0,position:"top"})),P.jsxs(ue,{children:[c||!y?P.jsx(ue,{mt:10,children:P.jsx(Te,{h:300,w:"100%"})}):P.jsx(ue,{maxWidth:"100%",overflowX:"auto",mt:10,children:P.jsx(mt,{border:"1px solid",borderColor:pe("gray.100","gray.600"),borderRadius:"lg",padding:3,children:P.jsxs(bt,{variant:"simple",colorScheme:"gray",fontSize:12,size:"sm",fontWeight:500,children:[P.jsx(_t,{background:pe("blue.50","blue.700"),children:P.jsxs($e,{color:"#000",children:[P.jsx(_e,{color:pe("#000","#fff"),py:3,padding:"8px 8px",textAlign:"center",children:"ACTION"}),["ID","Titile","Value","Last Update"].map(e=>P.jsx(_e,{color:pe("#000","#fff"),py:3,padding:"8px 8px",children:e},e))]})}),P.jsx(Ot,{children:y.map(e=>P.jsxs($e,{children:[P.jsxs(ve,{padding:"12px",children:[" ",P.jsx(je,{justify:"center",children:P.jsx(We,{isDisabled:e.value==="true"||e.value==="false"||e.value===!0||e.value===!1,size:"sm",variant:"ghost",_hover:{background:"none"},onClick:()=>{O(e),h()},icon:P.jsx(ft,{fontSize:18,color:Ve.colors.blue[500]})})})]}),P.jsx(ve,{padding:"12px",children:e.id}),P.jsx(ve,{padding:"12px",children:e.title}),P.jsx(ve,{padding:"12px",maxW:500,overflow:"hidden",children:e.id_name==="fav_icon"||e.id_name==="logo"||(e==null?void 0:e.id_name)==="ma_doctor_image"||(e==null?void 0:e.id_name)==="web_doctor_image"?P.jsx(rt,{src:`${ht}/${e.value}`,w:12,fallbackSrc:"imagePlaceholder.png"}):e.value==="true"||e.value==="false"||e.value===!0||e.value===!1?P.jsx(Kt,{id:e.id,isActive:e.value,groupName:e.group_name}):e.value}),P.jsx(ve,{padding:"12px",children:e.updated_at})]},e.id))})]})})}),d&&P.jsx(zt,{data:V,isOpen:d,onClose:A})]})}const Kt=({id:Q,isActive:V,groupName:O})=>{const d=xe(),h=Pe(),A=async(g,p)=>{let y={id:g,value:p};try{const c=await Be(de.token,"update_configurations",y);c.response===200?(ae(d,"success","Updated!"),h.invalidateQueries("group-configs",O)):(ae(d,"error",c.message),h.invalidateQueries("group-configs",O))}catch(c){ae(d,"error",JSON.stringify(c))}},x=dt({mutationFn:async g=>{await A(g.id,g.value)},onError:()=>{h.invalidateQueries("group-configs",O)}});return P.jsx(me,{display:"flex",alignItems:"center",children:P.jsx(Et,{defaultChecked:V==="true",size:"md",onChange:g=>{let p=g.target.checked?"true":"false";x.mutate({id:Q,value:p})}})})},Vt=async()=>{await pt();const Q=await De(de.token,"get_configurations");if(Q.response!==200)throw new Error(Q.message);return Q.data};function Wt(){var d,h;const{data:Q,isLoading:V}=Ie({queryKey:["configs"],queryFn:Vt}),O=()=>{try{let A=[];for(let x=0;x<(Q==null?void 0:Q.length);x++){const g=Q[x];A.includes(g.group_name)||A.push(g.group_name)}return A}catch(A){console.log(A)}};return V?P.jsx(ot,{}):P.jsx(ue,{mt:5,children:P.jsxs(at,{children:[P.jsx(ut,{children:(d=O())==null?void 0:d.map(A=>P.jsx(Le,{children:A},A))}),P.jsx(st,{children:(h=O())==null?void 0:h.map(A=>P.jsx(qe,{p:0,children:P.jsx(Ht,{groupName:A})},A))})]})})}function $t({isOpen:Q,onClose:V,data:O}){const[d,h]=fe.useState(),{register:A,handleSubmit:x}=Ge(),g=Pe(),p=xe(),y=async c=>{let o={...c,id:O.id};try{h(!0);const e=await Be(de.token,"update_payment_gateway",o);h(!1),e.response===200?(ae(p,"success","Testimonial Updated!"),g.invalidateQueries(["payment-getways"]),V()):ae(p,"error",e.message)}catch(e){h(!1),ae(p,"error",JSON.stringify(e))}};return P.jsxs(Ye,{isOpen:Q,onClose:V,isCentered:!0,size:"lg",scrollBehavior:"inside",children:[P.jsx(Fe,{}),P.jsxs(Qe,{as:"form",onSubmit:x(y),children:[P.jsx(Ue,{fontSize:18,py:2,children:"Update Payment Getways"}),P.jsx(Xe,{}),P.jsx(Ne,{}),P.jsx(ze,{children:P.jsxs(ue,{pb:3,children:[P.jsxs(me,{isRequired:!0,children:[P.jsx(Oe,{children:"Title"}),P.jsx(Ee,{isReadOnly:!0,placeholder:"Title",defaultValue:O==null?void 0:O.title,...A("title",{required:!0})})]}),P.jsxs(me,{isRequired:!0,mt:5,children:[P.jsx(Oe,{children:"Key"}),P.jsx(Ke,{placeholder:"Key",defaultValue:O==null?void 0:O.key,...A("key",{required:!0})})]}),P.jsxs(me,{isRequired:!0,mt:5,children:[P.jsx(Oe,{children:"Secret"}),P.jsx(Ke,{placeholder:"Key",defaultValue:O==null?void 0:O.secret,...A("secret",{required:!0})})]}),P.jsxs(me,{isRequired:!0,mt:5,children:[P.jsx(Oe,{children:"Webhook Secret Key"}),P.jsx(Ke,{placeholder:"Webhook Secret Key",defaultValue:O==null?void 0:O.webhook_secret_key,...A("webhook_secret_key",{required:!0})})]})]})}),P.jsx(Ne,{}),P.jsxs(He,{py:3,children:[P.jsx(ge,{colorScheme:"gray",mr:3,onClick:V,size:"sm",children:"Close"}),P.jsx(ge,{variant:"solid",size:"sm",colorScheme:"blue",type:"submit",isLoading:d,children:"Update"})]})]})]})}const Zt=async()=>(await De(de.token,"get_payment_gateway")).data;function Gt({currentTab:Q,activeTab:V}){const O=xe(),d="Errortoast",[h,A]=fe.useState(),{isOpen:x,onOpen:g,onClose:p}=Ce(),{isLoading:y,data:c,error:o}=Ie({queryKey:["payment-getways"],queryFn:Zt,enabled:Q==V});return o&&(O.isActive(d)||O({id:d,title:"Oops!",description:"Something bad happened.",status:"error",duration:2e3,isClosable:!0,position:"top"})),P.jsxs(ue,{children:[y||!c?P.jsxs(ue,{children:[P.jsxs(je,{mb:5,justify:"space-between",children:[P.jsx(Te,{w:400,h:8}),P.jsx(Te,{w:50,h:8})]}),P.jsx(Te,{h:300,w:"100%"})]}):P.jsx(ue,{children:P.jsx(mt,{border:"1px solid",borderColor:pe("gray.100","gray.600"),borderRadius:"lg",padding:3,children:P.jsxs(bt,{variant:"simple",colorScheme:"gray",fontSize:12,size:"sm",fontWeight:500,children:[P.jsx(_t,{background:pe("blue.50","blue.700"),children:P.jsxs($e,{children:[P.jsx(_e,{color:pe("#000","#fff"),py:3,textAlign:"center",children:"Action"}),P.jsx(_e,{color:pe("#000","#fff"),py:3,textAlign:"center",children:"ID"}),P.jsx(_e,{color:pe("#000","#fff"),py:3,textAlign:"center",children:"Title"}),P.jsx(_e,{color:pe("#000","#fff"),py:3,textAlign:"center",children:"Key"}),P.jsx(_e,{color:pe("#000","#fff"),py:3,textAlign:"center",children:"Secret"}),P.jsx(_e,{color:pe("#000","#fff"),py:3,textAlign:"center",children:"Webhook Secret Key"}),P.jsx(_e,{color:pe("#000","#fff"),py:3,textAlign:"center",children:"Is Active"}),P.jsx(_e,{color:pe("#000","#fff"),py:3,textAlign:"center",children:"Created At"}),P.jsx(_e,{color:pe("#000","#fff"),py:3,textAlign:"center",children:"Updated At"})]})}),P.jsx(Ot,{children:c.map(e=>P.jsxs($e,{children:[P.jsxs(ve,{children:[" ",P.jsx(je,{justify:"center",children:P.jsx(We,{size:"sm",variant:"ghost",_hover:{background:"none"},onClick:()=>{A(e),g()},icon:P.jsx(ft,{fontSize:18,color:Ve.colors.blue[500]})})})]}),P.jsx(ve,{children:e.id}),P.jsx(ve,{children:e.title}),P.jsx(ve,{children:P.jsx(et,{value:e.key})}),P.jsx(ve,{children:P.jsx(et,{value:e.secret})}),P.jsx(ve,{children:P.jsx(et,{value:e.webhook_secret_key})}),P.jsx(ve,{children:P.jsx(Yt,{id:e.id,isActive:e.is_active})}),P.jsx(ve,{children:e.created_at}),P.jsx(ve,{children:e.updated_at})]},e.id))})]})})}),x&&P.jsx($t,{isOpen:x,onClose:p,data:h})]})}const et=({value:Q})=>{const[V,O]=fe.useState(!1);function d(h){if(h.length<=7){const A=h.slice(0,1),x=h.slice(-1),g="*".repeat(h.length-5);return`${A}${g}${x}`}else{const A=h.slice(0,3),x=h.slice(-4),g="*".repeat(h.length-7);return`${A}${g}${x}`}}return P.jsx(ve,{w:"fit-content",maxW:"200px",overflow:"hidden",borderRight:0,borderLeft:0,onMouseEnter:()=>O(!0),onMouseLeave:()=>O(!1),children:P.jsx(Rt,{label:d(Q),isOpen:V,placement:"top",hasArrow:!0,bg:"blue.500",color:"white",transition:"all 0.2s",borderRadius:"md",children:P.jsx("span",{children:"*************"})})})},Yt=({id:Q,isActive:V})=>{const O=xe(),d=Pe(),h=async(x,g)=>{let p={id:x,is_active:g};try{const y=await Be(de.token,"update_payment_gateway",p);if(y.response===200)return y;ae(O,"error",y.message)}catch(y){ae(O,"error",JSON.stringify(y))}},A=dt({mutationFn:async x=>{await h(x.id,x.active)},onSuccess:()=>{ae(O,"success","Payment getway updated!"),d.invalidateQueries("payment-getways")}});return P.jsx(me,{display:"flex",alignItems:"center",children:P.jsx(Et,{isChecked:V===1,size:"sm",onChange:x=>{let g=x.target.checked?1:0;A.mutate({id:Q,active:g})}})})};var xt={exports:{}};/*! * Quill Editor v1.3.7 * https://quilljs.com/ * Copyright (c) 2014, Jason Chen * Copyright (c) 2013, salesforce.com */(function(Q,V){(function(d,h){Q.exports=h()})(typeof self<"u"?self:Ae,function(){return function(O){var d={};function h(A){if(d[A])return d[A].exports;var x=d[A]={i:A,l:!1,exports:{}};return O[A].call(x.exports,x,x.exports,h),x.l=!0,x.exports}return h.m=O,h.c=d,h.d=function(A,x,g){h.o(A,x)||Object.defineProperty(A,x,{configurable:!1,enumerable:!0,get:g})},h.n=function(A){var x=A&&A.__esModule?function(){return A.default}:function(){return A};return h.d(x,"a",x),x},h.o=function(A,x){return Object.prototype.hasOwnProperty.call(A,x)},h.p="",h(h.s=109)}([function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0});var A=h(17),x=h(18),g=h(19),p=h(45),y=h(46),c=h(47),o=h(48),e=h(49),n=h(12),u=h(32),a=h(33),l=h(31),r=h(1),i={Scope:r.Scope,create:r.create,find:r.find,query:r.query,register:r.register,Container:A.default,Format:x.default,Leaf:g.default,Embed:o.default,Scroll:p.default,Block:c.default,Inline:y.default,Text:e.default,Attributor:{Attribute:n.default,Class:u.default,Style:a.default,Store:l.default}};d.default=i},function(O,d,h){var A=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var f in i)i.hasOwnProperty(f)&&(r[f]=i[f])};return function(r,i){l(r,i);function f(){this.constructor=r}r.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}();Object.defineProperty(d,"__esModule",{value:!0});var x=function(l){A(r,l);function r(i){var f=this;return i="[Parchment] "+i,f=l.call(this,i)||this,f.message=i,f.name=f.constructor.name,f}return r}(Error);d.ParchmentError=x;var g={},p={},y={},c={};d.DATA_KEY="__blot";var o;(function(l){l[l.TYPE=3]="TYPE",l[l.LEVEL=12]="LEVEL",l[l.ATTRIBUTE=13]="ATTRIBUTE",l[l.BLOT=14]="BLOT",l[l.INLINE=7]="INLINE",l[l.BLOCK=11]="BLOCK",l[l.BLOCK_BLOT=10]="BLOCK_BLOT",l[l.INLINE_BLOT=6]="INLINE_BLOT",l[l.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",l[l.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",l[l.ANY=15]="ANY"})(o=d.Scope||(d.Scope={}));function e(l,r){var i=u(l);if(i==null)throw new x("Unable to create "+l+" blot");var f=i,t=l instanceof Node||l.nodeType===Node.TEXT_NODE?l:f.create(r);return new f(t,r)}d.create=e;function n(l,r){return r===void 0&&(r=!1),l==null?null:l[d.DATA_KEY]!=null?l[d.DATA_KEY].blot:r?n(l.parentNode,r):null}d.find=n;function u(l,r){r===void 0&&(r=o.ANY);var i;if(typeof l=="string")i=c[l]||g[l];else if(l instanceof Text||l.nodeType===Node.TEXT_NODE)i=c.text;else if(typeof l=="number")l&o.LEVEL&o.BLOCK?i=c.block:l&o.LEVEL&o.INLINE&&(i=c.inline);else if(l instanceof HTMLElement){var f=(l.getAttribute("class")||"").split(/\s+/);for(var t in f)if(i=p[f[t]],i)break;i=i||y[l.tagName]}return i==null?null:r&o.LEVEL&i.scope&&r&o.TYPE&i.scope?i:null}d.query=u;function a(){for(var l=[],r=0;r<arguments.length;r++)l[r]=arguments[r];if(l.length>1)return l.map(function(t){return a(t)});var i=l[0];if(typeof i.blotName!="string"&&typeof i.attrName!="string")throw new x("Invalid definition");if(i.blotName==="abstract")throw new x("Cannot register abstract class");if(c[i.blotName||i.attrName]=i,typeof i.keyName=="string")g[i.keyName]=i;else if(i.className!=null&&(p[i.className]=i),i.tagName!=null){Array.isArray(i.tagName)?i.tagName=i.tagName.map(function(t){return t.toUpperCase()}):i.tagName=i.tagName.toUpperCase();var f=Array.isArray(i.tagName)?i.tagName:[i.tagName];f.forEach(function(t){(y[t]==null||i.className==null)&&(y[t]=i)})}return i}d.register=a},function(O,d,h){var A=h(51),x=h(11),g=h(3),p=h(20),y="\0",c=function(o){Array.isArray(o)?this.ops=o:o!=null&&Array.isArray(o.ops)?this.ops=o.ops:this.ops=[]};c.prototype.insert=function(o,e){var n={};return o.length===0?this:(n.insert=o,e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))},c.prototype.delete=function(o){return o<=0?this:this.push({delete:o})},c.prototype.retain=function(o,e){if(o<=0)return this;var n={retain:o};return e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)},c.prototype.push=function(o){var e=this.ops.length,n=this.ops[e-1];if(o=g(!0,{},o),typeof n=="object"){if(typeof o.delete=="number"&&typeof n.delete=="number")return this.ops[e-1]={delete:n.delete+o.delete},this;if(typeof n.delete=="number"&&o.insert!=null&&(e-=1,n=this.ops[e-1],typeof n!="object"))return this.ops.unshift(o),this;if(x(o.attributes,n.attributes)){if(typeof o.insert=="string"&&typeof n.insert=="string")return this.ops[e-1]={insert:n.insert+o.insert},typeof o.attributes=="object"&&(this.ops[e-1].attributes=o.attributes),this;if(typeof o.retain=="number"&&typeof n.retain=="number")return this.ops[e-1]={retain:n.retain+o.retain},typeof o.attributes=="object"&&(this.ops[e-1].attributes=o.attributes),this}}return e===this.ops.length?this.ops.push(o):this.ops.splice(e,0,o),this},c.prototype.chop=function(){var o=this.ops[this.ops.length-1];return o&&o.retain&&!o.attributes&&this.ops.pop(),this},c.prototype.filter=function(o){return this.ops.filter(o)},c.prototype.forEach=function(o){this.ops.forEach(o)},c.prototype.map=function(o){return this.ops.map(o)},c.prototype.partition=function(o){var e=[],n=[];return this.forEach(function(u){var a=o(u)?e:n;a.push(u)}),[e,n]},c.prototype.reduce=function(o,e){return this.ops.reduce(o,e)},c.prototype.changeLength=function(){return this.reduce(function(o,e){return e.insert?o+p.length(e):e.delete?o-e.delete:o},0)},c.prototype.length=function(){return this.reduce(function(o,e){return o+p.length(e)},0)},c.prototype.slice=function(o,e){o=o||0,typeof e!="number"&&(e=1/0);for(var n=[],u=p.iterator(this.ops),a=0;a<e&&u.hasNext();){var l;a<o?l=u.next(o-a):(l=u.next(e-a),n.push(l)),a+=p.length(l)}return new c(n)},c.prototype.compose=function(o){var e=p.iterator(this.ops),n=p.iterator(o.ops),u=[],a=n.peek();if(a!=null&&typeof a.retain=="number"&&a.attributes==null){for(var l=a.retain;e.peekType()==="insert"&&e.peekLength()<=l;)l-=e.peekLength(),u.push(e.next());a.retain-l>0&&n.next(a.retain-l)}for(var r=new c(u);e.hasNext()||n.hasNext();)if(n.peekType()==="insert")r.push(n.next());else if(e.peekType()==="delete")r.push(e.next());else{var i=Math.min(e.peekLength(),n.peekLength()),f=e.next(i),t=n.next(i);if(typeof t.retain=="number"){var s={};typeof f.retain=="number"?s.retain=i:s.insert=f.insert;var w=p.attributes.compose(f.attributes,t.attributes,typeof f.retain=="number");if(w&&(s.attributes=w),r.push(s),!n.hasNext()&&x(r.ops[r.ops.length-1],s)){var _=new c(e.rest());return r.concat(_).chop()}}else typeof t.delete=="number"&&typeof f.retain=="number"&&r.push(t)}return r.chop()},c.prototype.concat=function(o){var e=new c(this.ops.slice());return o.ops.length>0&&(e.push(o.ops[0]),e.ops=e.ops.concat(o.ops.slice(1))),e},c.prototype.diff=function(o,e){if(this.ops===o.ops)return new c;var n=[this,o].map(function(i){return i.map(function(f){if(f.insert!=null)return typeof f.insert=="string"?f.insert:y;var t=i===o?"on":"with";throw new Error("diff() called "+t+" non-document")}).join("")}),u=new c,a=A(n[0],n[1],e),l=p.iterator(this.ops),r=p.iterator(o.ops);return a.forEach(function(i){for(var f=i[1].length;f>0;){var t=0;switch(i[0]){case A.INSERT:t=Math.min(r.peekLength(),f),u.push(r.next(t));break;case A.DELETE:t=Math.min(f,l.peekLength()),l.next(t),u.delete(t);break;case A.EQUAL:t=Math.min(l.peekLength(),r.peekLength(),f);var s=l.next(t),w=r.next(t);x(s.insert,w.insert)?u.retain(t,p.attributes.diff(s.attributes,w.attributes)):u.push(w).delete(t);break}f-=t}}),u.chop()},c.prototype.eachLine=function(o,e){e=e||` `;for(var n=p.iterator(this.ops),u=new c,a=0;n.hasNext();){if(n.peekType()!=="insert")return;var l=n.peek(),r=p.length(l)-n.peekLength(),i=typeof l.insert=="string"?l.insert.indexOf(e,r)-r:-1;if(i<0)u.push(n.next());else if(i>0)u.push(n.next(i));else{if(o(u,n.next(1).attributes||{},a)===!1)return;a+=1,u=new c}}u.length()>0&&o(u,{},a)},c.prototype.transform=function(o,e){if(e=!!e,typeof o=="number")return this.transformPosition(o,e);for(var n=p.iterator(this.ops),u=p.iterator(o.ops),a=new c;n.hasNext()||u.hasNext();)if(n.peekType()==="insert"&&(e||u.peekType()!=="insert"))a.retain(p.length(n.next()));else if(u.peekType()==="insert")a.push(u.next());else{var l=Math.min(n.peekLength(),u.peekLength()),r=n.next(l),i=u.next(l);if(r.delete)continue;i.delete?a.push(i):a.retain(l,p.attributes.transform(r.attributes,i.attributes,e))}return a.chop()},c.prototype.transformPosition=function(o,e){e=!!e;for(var n=p.iterator(this.ops),u=0;n.hasNext()&&u<=o;){var a=n.peekLength(),l=n.peekType();if(n.next(),l==="delete"){o-=Math.min(a,o-u);continue}else l==="insert"&&(u<o||!e)&&(o+=a);u+=a}return o},O.exports=c},function(O,d){var h=Object.prototype.hasOwnProperty,A=Object.prototype.toString,x=Object.defineProperty,g=Object.getOwnPropertyDescriptor,p=function(n){return typeof Array.isArray=="function"?Array.isArray(n):A.call(n)==="[object Array]"},y=function(n){if(!n||A.call(n)!=="[object Object]")return!1;var u=h.call(n,"constructor"),a=n.constructor&&n.constructor.prototype&&h.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!u&&!a)return!1;var l;for(l in n);return typeof l>"u"||h.call(n,l)},c=function(n,u){x&&u.name==="__proto__"?x(n,u.name,{enumerable:!0,configurable:!0,value:u.newValue,writable:!0}):n[u.name]=u.newValue},o=function(n,u){if(u==="__proto__")if(h.call(n,u)){if(g)return g(n,u).value}else return;return n[u]};O.exports=function e(){var n,u,a,l,r,i,f=arguments[0],t=1,s=arguments.length,w=!1;for(typeof f=="boolean"&&(w=f,f=arguments[1]||{},t=2),(f==null||typeof f!="object"&&typeof f!="function")&&(f={});t<s;++t)if(n=arguments[t],n!=null)for(u in n)a=o(f,u),l=o(n,u),f!==l&&(w&&l&&(y(l)||(r=p(l)))?(r?(r=!1,i=a&&p(a)?a:[]):i=a&&y(a)?a:{},c(f,{name:u,newValue:e(w,i,l)})):typeof l<"u"&&c(f,{name:u,newValue:l}));return f}},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0}),d.default=d.BlockEmbed=d.bubbleFormats=void 0;var A=function(){function v(m,S){for(var N=0;N<S.length;N++){var R=S[N];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(m,R.key,R)}}return function(m,S,N){return S&&v(m.prototype,S),N&&v(m,N),m}}(),x=function v(m,S,N){m===null&&(m=Function.prototype);var R=Object.getOwnPropertyDescriptor(m,S);if(R===void 0){var B=Object.getPrototypeOf(m);return B===null?void 0:v(B,S,N)}else{if("value"in R)return R.value;var F=R.get;return F===void 0?void 0:F.call(N)}},g=h(3),p=f(g),y=h(2),c=f(y),o=h(0),e=f(o),n=h(16),u=f(n),a=h(6),l=f(a),r=h(7),i=f(r);function f(v){return v&&v.__esModule?v:{default:v}}function t(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function s(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function w(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var _=1,E=function(v){w(m,v);function m(){return t(this,m),s(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return A(m,[{key:"attach",value:function(){x(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"attach",this).call(this),this.attributes=new e.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new c.default().insert(this.value(),(0,p.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(N,R){var B=e.default.query(N,e.default.Scope.BLOCK_ATTRIBUTE);B!=null&&this.attributes.attribute(B,R)}},{key:"formatAt",value:function(N,R,B,F){this.format(B,F)}},{key:"insertAt",value:function(N,R,B){if(typeof R=="string"&&R.endsWith(` `)){var F=e.default.create(T.blotName);this.parent.insertBefore(F,N===0?this:this.next),F.insertAt(0,R.slice(0,-1))}else x(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"insertAt",this).call(this,N,R,B)}}]),m}(e.default.Embed);E.scope=e.default.Scope.BLOCK_BLOT;var T=function(v){w(m,v);function m(S){t(this,m);var N=s(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,S));return N.cache={},N}return A(m,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(e.default.Leaf).reduce(function(N,R){return R.length()===0?N:N.insert(R.value(),b(R))},new c.default).insert(` `,b(this))),this.cache.delta}},{key:"deleteAt",value:function(N,R){x(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"deleteAt",this).call(this,N,R),this.cache={}}},{key:"formatAt",value:function(N,R,B,F){R<=0||(e.default.query(B,e.default.Scope.BLOCK)?N+R===this.length()&&this.format(B,F):x(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"formatAt",this).call(this,N,Math.min(R,this.length()-N-1),B,F),this.cache={})}},{key:"insertAt",value:function(N,R,B){if(B!=null)return x(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"insertAt",this).call(this,N,R,B);if(R.length!==0){var F=R.split(` `),Z=F.shift();Z.length>0&&(N<this.length()-1||this.children.tail==null?x(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"insertAt",this).call(this,Math.min(N,this.length()-1),Z):this.children.tail.insertAt(this.children.tail.length(),Z),this.cache={});var M=this;F.reduce(function(D,k){return M=M.split(D,!0),M.insertAt(0,k),k.length},N+Z.length)}}},{key:"insertBefore",value:function(N,R){var B=this.children.head;x(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"insertBefore",this).call(this,N,R),B instanceof u.default&&B.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=x(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"length",this).call(this)+_),this.cache.length}},{key:"moveChildren",value:function(N,R){x(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"moveChildren",this).call(this,N,R),this.cache={}}},{key:"optimize",value:function(N){x(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,N),this.cache={}}},{key:"path",value:function(N){return x(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"path",this).call(this,N,!0)}},{key:"removeChild",value:function(N){x(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"removeChild",this).call(this,N),this.cache={}}},{key:"split",value:function(N){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(R&&(N===0||N>=this.length()-_)){var B=this.clone();return N===0?(this.parent.insertBefore(B,this),this):(this.parent.insertBefore(B,this.next),B)}else{var F=x(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"split",this).call(this,N,R);return this.cache={},F}}}]),m}(e.default.Block);T.blotName="block",T.tagName="P",T.defaultChild="break",T.allowedChildren=[l.default,e.default.Embed,i.default];function b(v){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return v==null||(typeof v.formats=="function"&&(m=(0,p.default)(m,v.formats())),v.parent==null||v.parent.blotName=="scroll"||v.parent.statics.scope!==v.statics.scope)?m:b(v.parent,m)}d.bubbleFormats=b,d.BlockEmbed=E,d.default=T},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0}),d.default=d.overload=d.expandConfig=void 0;var A=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},x=function(){function M(D,k){var L=[],q=!0,U=!1,C=void 0;try{for(var j=D[Symbol.iterator](),I;!(q=(I=j.next()).done)&&(L.push(I.value),!(k&&L.length===k));q=!0);}catch(z){U=!0,C=z}finally{try{!q&&j.return&&j.return()}finally{if(U)throw C}}return L}return function(D,k){if(Array.isArray(D))return D;if(Symbol.iterator in Object(D))return M(D,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(){function M(D,k){for(var L=0;L<k.length;L++){var q=k[L];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(D,q.key,q)}}return function(D,k,L){return k&&M(D.prototype,k),L&&M(D,L),D}}();h(50);var p=h(2),y=b(p),c=h(14),o=b(c),e=h(8),n=b(e),u=h(9),a=b(u),l=h(0),r=b(l),i=h(15),f=b(i),t=h(3),s=b(t),w=h(10),_=b(w),E=h(34),T=b(E);function b(M){return M&&M.__esModule?M:{default:M}}function v(M,D,k){return D in M?Object.defineProperty(M,D,{value:k,enumerable:!0,configurable:!0,writable:!0}):M[D]=k,M}function m(M,D){if(!(M instanceof D))throw new TypeError("Cannot call a class as a function")}var S=(0,_.default)("quill"),N=function(){g(M,null,[{key:"debug",value:function(k){k===!0&&(k="log"),_.default.level(k)}},{key:"find",value:function(k){return k.__quill||r.default.find(k)}},{key:"import",value:function(k){return this.imports[k]==null&&S.error("Cannot import "+k+". Are you sure it was registered?"),this.imports[k]}},{key:"register",value:function(k,L){var q=this,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof k!="string"){var C=k.attrName||k.blotName;typeof C=="string"?this.register("formats/"+C,k,L):Object.keys(k).forEach(function(j){q.register(j,k[j],L)})}else this.imports[k]!=null&&!U&&S.warn("Overwriting "+k+" with",L),this.imports[k]=L,(k.startsWith("blots/")||k.startsWith("formats/"))&&L.blotName!=="abstract"?r.default.register(L):k.startsWith("modules")&&typeof L.register=="function"&&L.register()}}]);function M(D){var k=this,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(m(this,M),this.options=R(D,L),this.container=this.options.container,this.container==null)return S.error("Invalid Quill container",D);this.options.debug&&M.debug(this.options.debug);var q=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new n.default,this.scroll=r.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new o.default(this.scroll),this.selection=new f.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(n.default.events.EDITOR_CHANGE,function(C){C===n.default.events.TEXT_CHANGE&&k.root.classList.toggle("ql-blank",k.editor.isBlank())}),this.emitter.on(n.default.events.SCROLL_UPDATE,function(C,j){var I=k.selection.lastRange,z=I&&I.length===0?I.index:void 0;B.call(k,function(){return k.editor.update(null,j,z)},C)});var U=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+q+"<p><br></p></div>");this.setContents(U),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return g(M,[{key:"addContainer",value:function(k){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof k=="string"){var q=k;k=document.createElement("div"),k.classList.add(q)}return this.container.insertBefore(k,L),k}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(k,L,q){var U=this,C=F(k,L,q),j=x(C,4);return k=j[0],L=j[1],q=j[3],B.call(this,function(){return U.editor.deleteText(k,L)},q,k,-1*L)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(k),this.container.classList.toggle("ql-disabled",!k)}},{key:"focus",value:function(){var k=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=k,this.scrollIntoView()}},{key:"format",value:function(k,L){var q=this,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:n.default.sources.API;return B.call(this,function(){var C=q.getSelection(!0),j=new y.default;if(C==null)return j;if(r.default.query(k,r.default.Scope.BLOCK))j=q.editor.formatLine(C.index,C.length,v({},k,L));else{if(C.length===0)return q.selection.format(k,L),j;j=q.editor.formatText(C.index,C.length,v({},k,L))}return q.setSelection(C,n.default.sources.SILENT),j},U)}},{key:"formatLine",value:function(k,L,q,U,C){var j=this,I=void 0,z=F(k,L,q,U,C),H=x(z,4);return k=H[0],L=H[1],I=H[2],C=H[3],B.call(this,function(){return j.editor.formatLine(k,L,I)},C,k,0)}},{key:"formatText",value:function(k,L,q,U,C){var j=this,I=void 0,z=F(k,L,q,U,C),H=x(z,4);return k=H[0],L=H[1],I=H[2],C=H[3],B.call(this,function(){return j.editor.formatText(k,L,I)},C,k,0)}},{key:"getBounds",value:function(k){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,q=void 0;typeof k=="number"?q=this.selection.getBounds(k,L):q=this.selection.getBounds(k.index,k.length);var U=this.container.getBoundingClientRect();return{bottom:q.bottom-U.top,height:q.height,left:q.left-U.left,right:q.right-U.left,top:q.top-U.top,width:q.width}}},{key:"getContents",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-k,q=F(k,L),U=x(q,2);return k=U[0],L=U[1],this.editor.getContents(k,L)}},{key:"getFormat",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof k=="number"?this.editor.getFormat(k,L):this.editor.getFormat(k.index,k.length)}},{key:"getIndex",value:function(k){return k.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(k){return this.scroll.leaf(k)}},{key:"getLine",value:function(k){return this.scroll.line(k)}},{key:"getLines",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof k!="number"?this.scroll.lines(k.index,k.length):this.scroll.lines(k,L)}},{key:"getModule",value:function(k){return this.theme.modules[k]}},{key:"getSelection",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return k&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-k,q=F(k,L),U=x(q,2);return k=U[0],L=U[1],this.editor.getText(k,L)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(k,L,q){var U=this,C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:M.sources.API;return B.call(this,function(){return U.editor.insertEmbed(k,L,q)},C,k)}},{key:"insertText",value:function(k,L,q,U,C){var j=this,I=void 0,z=F(k,0,q,U,C),H=x(z,4);return k=H[0],I=H[2],C=H[3],B.call(this,function(){return j.editor.insertText(k,L,I)},C,k,L.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(k,L,q){this.clipboard.dangerouslyPasteHTML(k,L,q)}},{key:"removeFormat",value:function(k,L,q){var U=this,C=F(k,L,q),j=x(C,4);return k=j[0],L=j[1],q=j[3],B.call(this,function(){return U.editor.removeFormat(k,L)},q,k)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(k){var L=this,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n.default.sources.API;return B.call(this,function(){k=new y.default(k);var U=L.getLength(),C=L.editor.deleteText(0,U),j=L.editor.applyDelta(k),I=j.ops[j.ops.length-1];I!=null&&typeof I.insert=="string"&&I.insert[I.insert.length-1]===` `&&(L.editor.deleteText(L.getLength()-1,1),j.delete(1));var z=C.compose(j);return z},q)}},{key:"setSelection",value:function(k,L,q){if(k==null)this.selection.setRange(null,L||M.sources.API);else{var U=F(k,L,q),C=x(U,4);k=C[0],L=C[1],q=C[3],this.selection.setRange(new i.Range(k,L),q),q!==n.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(k){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n.default.sources.API,q=new y.default().insert(k);return this.setContents(q,L)}},{key:"update",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:n.default.sources.USER,L=this.scroll.update(k);return this.selection.update(k),L}},{key:"updateContents",value:function(k){var L=this,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n.default.sources.API;return B.call(this,function(){return k=new y.default(k),L.editor.applyDelta(k,q)},q,!0)}}]),M}();N.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},N.events=n.default.events,N.sources=n.default.sources,N.version="1.3.7",N.imports={delta:y.default,parchment:r.default,"core/module":a.default,"core/theme":T.default};function R(M,D){if(D=(0,s.default)(!0,{container:M,modules:{clipboard:!0,keyboard:!0,history:!0}},D),!D.theme||D.theme===N.DEFAULTS.theme)D.theme=T.default;else if(D.theme=N.import("themes/"+D.theme),D.theme==null)throw new Error("Invalid theme "+D.theme+". Did you register it?");var k=(0,s.default)(!0,{},D.theme.DEFAULTS);[k,D].forEach(function(U){U.modules=U.modules||{},Object.keys(U.modules).forEach(function(C){U.modules[C]===!0&&(U.modules[C]={})})});var L=Object.keys(k.modules).concat(Object.keys(D.modules)),q=L.reduce(function(U,C){var j=N.import("modules/"+C);return j==null?S.error("Cannot load "+C+" module. Are you sure you registered it?"):U[C]=j.DEFAULTS||{},U},{});return D.modules!=null&&D.modules.toolbar&&D.modules.toolbar.constructor!==Object&&(D.modules.toolbar={container:D.modules.toolbar}),D=(0,s.default)(!0,{},N.DEFAULTS,{modules:q},k,D),["bounds","container","scrollingContainer"].forEach(function(U){typeof D[U]=="string"&&(D[U]=document.querySelector(D[U]))}),D.modules=Object.keys(D.modules).reduce(function(U,C){return D.modules[C]&&(U[C]=D.modules[C]),U},{}),D}function B(M,D,k,L){if(this.options.strict&&!this.isEnabled()&&D===n.default.sources.USER)return new y.default;var q=k==null?null:this.getSelection(),U=this.editor.delta,C=M();if(q!=null&&(k===!0&&(k=q.index),L==null?q=Z(q,C,D):L!==0&&(q=Z(q,k,L,D)),this.setSelection(q,n.default.sources.SILENT)),C.length()>0){var j,I=[n.default.events.TEXT_CHANGE,C,U,D];if((j=this.emitter).emit.apply(j,[n.default.events.EDITOR_CHANGE].concat(I)),D!==n.default.sources.SILENT){var z;(z=this.emitter).emit.apply(z,I)}}return C}function F(M,D,k,L,q){var U={};return typeof M.index=="number"&&typeof M.length=="number"?typeof D!="number"?(q=L,L=k,k=D,D=M.length,M=M.index):(D=M.length,M=M.index):typeof D!="number"&&(q=L,L=k,k=D,D=0),(typeof k>"u"?"undefined":A(k))==="object"?(U=k,q=L):typeof k=="string"&&(L!=null?U[k]=L:q=k),q=q||n.default.sources.API,[M,D,U,q]}function Z(M,D,k,L){if(M==null)return null;var q=void 0,U=void 0;if(D instanceof y.default){var C=[M.index,M.index+M.length].map(function(H){return D.transformPosition(H,L!==n.default.sources.USER)}),j=x(C,2);q=j[0],U=j[1]}else{var I=[M.index,M.index+M.length].map(function(H){return H<D||H===D&&L===n.default.sources.USER?H:k>=0?H+k:Math.max(D,H+k)}),z=x(I,2);q=z[0],U=z[1]}return new i.Range(q,U-q)}d.expandConfig=R,d.overload=F,d.default=N},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0});var A=function(){function l(r,i){for(var f=0;f<i.length;f++){var t=i[f];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(r,t.key,t)}}return function(r,i,f){return i&&l(r.prototype,i),f&&l(r,f),r}}(),x=function l(r,i,f){r===null&&(r=Function.prototype);var t=Object.getOwnPropertyDescriptor(r,i);if(t===void 0){var s=Object.getPrototypeOf(r);return s===null?void 0:l(s,i,f)}else{if("value"in t)return t.value;var w=t.get;return w===void 0?void 0:w.call(f)}},g=h(7),p=o(g),y=h(0),c=o(y);function o(l){return l&&l.__esModule?l:{default:l}}function e(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}function n(l,r){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:l}function u(l,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);l.prototype=Object.create(r&&r.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(l,r):l.__proto__=r)}var a=function(l){u(r,l);function r(){return e(this,r),n(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return A(r,[{key:"formatAt",value:function(f,t,s,w){if(r.compare(this.statics.blotName,s)<0&&c.default.query(s,c.default.Scope.BLOT)){var _=this.isolate(f,t);w&&_.wrap(s,w)}else x(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"formatAt",this).call(this,f,t,s,w)}},{key:"optimize",value:function(f){if(x(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"optimize",this).call(this,f),this.parent instanceof r&&r.compare(this.statics.blotName,this.parent.statics.blotName)>0){var t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}}],[{key:"compare",value:function(f,t){var s=r.order.indexOf(f),w=r.order.indexOf(t);return s>=0||w>=0?s-w:f===t?0:f<t?-1:1}}]),r}(c.default.Inline);a.allowedChildren=[a,c.default.Embed,p.default],a.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],d.default=a},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0});var A=h(0),x=g(A);function g(e){return e&&e.__esModule?e:{default:e}}function p(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function y(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:e}function c(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}var o=function(e){c(n,e);function n(){return p(this,n),y(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return n}(x.default.Text);d.default=o},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0});var A=function(){function i(f,t){for(var s=0;s<t.length;s++){var w=t[s];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(f,w.key,w)}}return function(f,t,s){return t&&i(f.prototype,t),s&&i(f,s),f}}(),x=function i(f,t,s){f===null&&(f=Function.prototype);var w=Object.getOwnPropertyDescriptor(f,t);if(w===void 0){var _=Object.getPrototypeOf(f);return _===null?void 0:i(_,t,s)}else{if("value"in w)return w.value;var E=w.get;return E===void 0?void 0:E.call(s)}},g=h(54),p=o(g),y=h(10),c=o(y);function o(i){return i&&i.__esModule?i:{default:i}}function e(i,f){if(!(i instanceof f))throw new TypeError("Cannot call a class as a function")}function n(i,f){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:i}function u(i,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);i.prototype=Object.create(f&&f.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(i,f):i.__proto__=f)}var a=(0,c.default)("quill:events"),l=["selectionchange","mousedown","mouseup","click"];l.forEach(function(i){document.addEventListener(i,function(){for(var f=arguments.length,t=Array(f),s=0;s<f;s++)t[s]=arguments[s];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(w){if(w.__quill&&w.__quill.emitter){var _;(_=w.__quill.emitter).handleDOM.apply(_,t)}})})});var r=function(i){u(f,i);function f(){e(this,f);var t=n(this,(f.__proto__||Object.getPrototypeOf(f)).call(this));return t.listeners={},t.on("error",a.error),t}return A(f,[{key:"emit",value:function(){a.log.apply(a,arguments),x(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(s){for(var w=arguments.length,_=Array(w>1?w-1:0),E=1;E<w;E++)_[E-1]=arguments[E];(this.listeners[s.type]||[]).forEach(function(T){var b=T.node,v=T.handler;(s.target===b||b.contains(s.target))&&v.apply(void 0,[s].concat(_))})}},{key:"listenDOM",value:function(s,w,_){this.listeners[s]||(this.listeners[s]=[]),this.listeners[s].push({node:w,handler:_})}}]),f}(p.default);r.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},r.sources={API:"api",SILENT:"silent",USER:"user"},d.default=r},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0});function A(g,p){if(!(g instanceof p))throw new TypeError("Cannot call a class as a function")}var x=function g(p){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};A(this,g),this.quill=p,this.options=y};x.DEFAULTS={},d.default=x},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0});var A=["error","warn","log","info"],x="warn";function g(y){if(A.indexOf(y)<=A.indexOf(x)){for(var c,o=arguments.length,e=Array(o>1?o-1:0),n=1;n<o;n++)e[n-1]=arguments[n];(c=console)[y].apply(c,e)}}function p(y){return A.reduce(function(c,o){return c[o]=g.bind(console,o,y),c},{})}g.level=p.level=function(y){x=y},d.default=p},function(O,d,h){var A=Array.prototype.slice,x=h(52),g=h(53),p=O.exports=function(e,n,u){return u||(u={}),e===n?!0:e instanceof Date&&n instanceof Date?e.getTime()===n.getTime():!e||!n||typeof e!="object"&&typeof n!="object"?u.strict?e===n:e==n:o(e,n,u)};function y(e){return e==null}function c(e){return!(!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number")}function o(e,n,u){var a,l;if(y(e)||y(n)||e.prototype!==n.prototype)return!1;if(g(e))return g(n)?(e=A.call(e),n=A.call(n),p(e,n,u)):!1;if(c(e)){if(!c(n)||e.length!==n.length)return!1;for(a=0;a<e.length;a++)if(e[a]!==n[a])return!1;return!0}try{var r=x(e),i=x(n)}catch{return!1}if(r.length!=i.length)return!1;for(r.sort(),i.sort(),a=r.length-1;a>=0;a--)if(r[a]!=i[a])return!1;for(a=r.length-1;a>=0;a--)if(l=r[a],!p(e[l],n[l],u))return!1;return typeof e==typeof n}},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0});var A=h(1),x=function(){function g(p,y,c){c===void 0&&(c={}),this.attrName=p,this.keyName=y;var o=A.Scope.TYPE&A.Scope.ATTRIBUTE;c.scope!=null?this.scope=c.scope&A.Scope.LEVEL|o:this.scope=A.Scope.ATTRIBUTE,c.whitelist!=null&&(this.whitelist=c.whitelist)}return g.keys=function(p){return[].map.call(p.attributes,function(y){return y.name})},g.prototype.add=function(p,y){return this.canAdd(p,y)?(p.setAttribute(this.keyName,y),!0):!1},g.prototype.canAdd=function(p,y){var c=A.query(p,A.Scope.BLOT&(this.scope|A.Scope.TYPE));return c==null?!1:this.whitelist==null?!0:typeof y=="string"?this.whitelist.indexOf(y.replace(/["']/g,""))>-1:this.whitelist.indexOf(y)>-1},g.prototype.remove=function(p){p.removeAttribute(this.keyName)},g.prototype.value=function(p){var y=p.getAttribute(this.keyName);return this.canAdd(p,y)&&y?y:""},g}();d.default=x},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0}),d.default=d.Code=void 0;var A=function(){function E(T,b){var v=[],m=!0,S=!1,N=void 0;try{for(var R=T[Symbol.iterator](),B;!(m=(B=R.next()).done)&&(v.push(B.value),!(b&&v.length===b));m=!0);}catch(F){S=!0,N=F}finally{try{!m&&R.return&&R.return()}finally{if(S)throw N}}return v}return function(T,b){if(Array.isArray(T))return T;if(Symbol.iterator in Object(T))return E(T,b);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),x=function(){function E(T,b){for(var v=0;v<b.length;v++){var m=b[v];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(T,m.key,m)}}return function(T,b,v){return b&&E(T.prototype,b),v&&E(T,v),T}}(),g=function E(T,b,v){T===null&&(T=Function.prototype);var m=Object.getOwnPropertyDescriptor(T,b);if(m===void 0){var S=Object.getPrototypeOf(T);return S===null?void 0:E(S,b,v)}else{if("value"in m)return m.value;var N=m.get;return N===void 0?void 0:N.call(v)}},p=h(2),y=i(p),c=h(0),o=i(c),e=h(4),n=i(e),u=h(6),a=i(u),l=h(7),r=i(l);function i(E){return E&&E.__esModule?E:{default:E}}function f(E,T){if(!(E instanceof T))throw new TypeError("Cannot call a class as a function")}function t(E,T){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:E}function s(E,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);E.prototype=Object.create(T&&T.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(E,T):E.__proto__=T)}var w=function(E){s(T,E);function T(){return f(this,T),t(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return T}(a.default);w.blotName="code",w.tagName="CODE";var _=function(E){s(T,E);function T(){return f(this,T),t(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return x(T,[{key:"delta",value:function(){var v=this,m=this.domNode.textContent;return m.endsWith(` `)&&(m=m.slice(0,-1)),m.split(` `).reduce(function(S,N){return S.insert(N).insert(` `,v.formats())},new y.default)}},{key:"format",value:function(v,m){if(!(v===this.statics.blotName&&m)){var S=this.descendant(r.default,this.length()-1),N=A(S,1),R=N[0];R!=null&&R.deleteAt(R.length()-1,1),g(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"format",this).call(this,v,m)}}},{key:"formatAt",value:function(v,m,S,N){if(m!==0&&!(o.default.query(S,o.default.Scope.BLOCK)==null||S===this.statics.blotName&&N===this.statics.formats(this.domNode))){var R=this.newlineIndex(v);if(!(R<0||R>=v+m)){var B=this.newlineIndex(v,!0)+1,F=R-B+1,Z=this.isolate(B,F),M=Z.next;Z.format(S,N),M instanceof T&&M.formatAt(0,v-B+m-F,S,N)}}}},{key:"insertAt",value:function(v,m,S){if(S==null){var N=this.descendant(r.default,v),R=A(N,2),B=R[0],F=R[1];B.insertAt(F,m)}}},{key:"length",value:function(){var v=this.domNode.textContent.length;return this.domNode.textContent.endsWith(` `)?v:v+1}},{key:"newlineIndex",value:function(v){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(m)return this.domNode.textContent.slice(0,v).lastIndexOf(` `);var S=this.domNode.textContent.slice(v).indexOf(` `);return S>-1?v+S:-1}},{key:"optimize",value:function(v){this.domNode.textContent.endsWith(` `)||this.appendChild(o.default.create("text",` `)),g(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"optimize",this).call(this,v);var m=this.next;m!=null&&m.prev===this&&m.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===m.statics.formats(m.domNode)&&(m.optimize(v),m.moveChildren(this),m.remove())}},{key:"replace",value:function(v){g(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"replace",this).call(this,v),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(m){var S=o.default.find(m);S==null?m.parentNode.removeChild(m):S instanceof o.default.Embed?S.remove():S.unwrap()})}}],[{key:"create",value:function(v){var m=g(T.__proto__||Object.getPrototypeOf(T),"create",this).call(this,v);return m.setAttribute("spellcheck",!1),m}},{key:"formats",value:function(){return!0}}]),T}(n.default);_.blotName="code-block",_.tagName="PRE",_.TAB=" ",d.Code=w,d.default=_},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0});var A=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},x=function(){function M(D,k){var L=[],q=!0,U=!1,C=void 0;try{for(var j=D[Symbol.iterator](),I;!(q=(I=j.next()).done)&&(L.push(I.value),!(k&&L.length===k));q=!0);}catch(z){U=!0,C=z}finally{try{!q&&j.return&&j.return()}finally{if(U)throw C}}return L}return function(D,k){if(Array.isArray(D))return D;if(Symbol.iterator in Object(D))return M(D,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(){function M(D,k){for(var L=0;L<k.length;L++){var q=k[L];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(D,q.key,q)}}return function(D,k,L){return k&&M(D.prototype,k),L&&M(D,L),D}}(),p=h(2),y=m(p),c=h(20),o=m(c),e=h(0),n=m(e),u=h(13),a=m(u),l=h(24),r=m(l),i=h(4),f=m(i),t=h(16),s=m(t),w=h(21),_=m(w),E=h(11),T=m(E),b=h(3),v=m(b);function m(M){return M&&M.__esModule?M:{default:M}}function S(M,D,k){return D in M?Object.defineProperty(M,D,{value:k,enumerable:!0,configurable:!0,writable:!0}):M[D]=k,M}function N(M,D){if(!(M instanceof D))throw new TypeError("Cannot call a class as a function")}var R=/^[ -~]*$/,B=function(){function M(D){N(this,M),this.scroll=D,this.delta=this.getDelta()}return g(M,[{key:"applyDelta",value:function(k){var L=this,q=!1;this.scroll.update();var U=this.scroll.length();return this.scroll.batchStart(),k=Z(k),k.reduce(function(C,j){var I=j.retain||j.delete||j.insert.length||1,z=j.attributes||{};if(j.insert!=null){if(typeof j.insert=="string"){var H=j.insert;H.endsWith(` `)&&q&&(q=!1,H=H.slice(0,-1)),C>=U&&!H.endsWith(` `)&&(q=!0),L.scroll.insertAt(C,H);var $=L.scroll.line(C),J=x($,2),ee=J[0],te=J[1],oe=(0,v.default)({},(0,i.bubbleFormats)(ee));if(ee instanceof f.default){var le=ee.descendant(n.default.Leaf,te),ye=x(le,1),he=ye[0];oe=(0,v.default)(oe,(0,i.bubbleFormats)(he))}z=o.default.attributes.diff(oe,z)||{}}else if(A(j.insert)==="object"){var K=Object.keys(j.insert)[0];if(K==null)return C;L.scroll.insertAt(C,K,j.insert[K])}U+=I}return Object.keys(z).forEach(function(W){L.scroll.formatAt(C,I,W,z[W])}),C+I},0),k.reduce(function(C,j){return typeof j.delete=="number"?(L.scroll.deleteAt(C,j.delete),C):C+(j.retain||j.insert.length||1)},0),this.scroll.batchEnd(),this.update(k)}},{key:"deleteText",value:function(k,L){return this.scroll.deleteAt(k,L),this.update(new y.default().retain(k).delete(L))}},{key:"formatLine",value:function(k,L){var q=this,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(U).forEach(function(C){if(!(q.scroll.whitelist!=null&&!q.scroll.whitelist[C])){var j=q.scroll.lines(k,Math.max(L,1)),I=L;j.forEach(function(z){var H=z.length();if(!(z instanceof a.default))z.format(C,U[C]);else{var $=k-z.offset(q.scroll),J=z.newlineIndex($+I)-$+1;z.formatAt($,J,C,U[C])}I-=H})}}),this.scroll.optimize(),this.update(new y.default().retain(k).retain(L,(0,_.default)(U)))}},{key:"formatText",value:function(k,L){var q=this,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(U).forEach(function(C){q.scroll.formatAt(k,L,C,U[C])}),this.update(new y.default().retain(k).retain(L,(0,_.default)(U)))}},{key:"getContents",value:function(k,L){return this.delta.slice(k,k+L)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(k,L){return k.concat(L.delta())},new y.default)}},{key:"getFormat",value:function(k){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,q=[],U=[];L===0?this.scroll.path(k).forEach(function(j){var I=x(j,1),z=I[0];z instanceof f.default?q.push(z):z instanceof n.default.Leaf&&U.push(z)}):(q=this.scroll.lines(k,L),U=this.scroll.descendants(n.default.Leaf,k,L));var C=[q,U].map(function(j){if(j.length===0)return{};for(var I=(0,i.bubbleFormats)(j.shift());Object.keys(I).length>0;){var z=j.shift();if(z==null)return I;I=F((0,i.bubbleFormats)(z),I)}return I});return v.default.apply(v.default,C)}},{key:"getText",value:function(k,L){return this.getContents(k,L).filter(function(q){return typeof q.insert=="string"}).map(function(q){return q.insert}).join("")}},{key:"insertEmbed",value:function(k,L,q){return this.scroll.insertAt(k,L,q),this.update(new y.default().retain(k).insert(S({},L,q)))}},{key:"insertText",value:function(k,L){var q=this,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return L=L.replace(/\r\n/g,` `).replace(/\r/g,` `),this.scroll.insertAt(k,L),Object.keys(U).forEach(function(C){q.scroll.formatAt(k,L.length,C,U[C])}),this.update(new y.default().retain(k).insert(L,(0,_.default)(U)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var k=this.scroll.children.head;return k.statics.blotName!==f.default.blotName||k.children.length>1?!1:k.children.head instanceof s.default}},{key:"removeFormat",value:function(k,L){var q=this.getText(k,L),U=this.scroll.line(k+L),C=x(U,2),j=C[0],I=C[1],z=0,H=new y.default;j!=null&&(j instanceof a.default?z=j.newlineIndex(I)-I+1:z=j.length()-I,H=j.delta().slice(I,I+z-1).insert(` `));var $=this.getContents(k,L+z),J=$.diff(new y.default().insert(q).concat(H)),ee=new y.default().retain(k).concat(J);return this.applyDelta(ee)}},{key:"update",value:function(k){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,U=this.delta;if(L.length===1&&L[0].type==="characterData"&&L[0].target.data.match(R)&&n.default.find(L[0].target)){var C=n.default.find(L[0].target),j=(0,i.bubbleFormats)(C),I=C.offset(this.scroll),z=L[0].oldValue.replace(r.default.CONTENTS,""),H=new y.default().insert(z),$=new y.default().insert(C.value()),J=new y.default().retain(I).concat(H.diff($,q));k=J.reduce(function(ee,te){return te.insert?ee.insert(te.insert,j):ee.push(te)},new y.default),this.delta=U.compose(k)}else this.delta=this.getDelta(),(!k||!(0,T.default)(U.compose(k),this.delta))&&(k=U.diff(this.delta,q));return k}}]),M}();function F(M,D){return Object.keys(D).reduce(function(k,L){return M[L]==null||(D[L]===M[L]?k[L]=D[L]:Array.isArray(D[L])?D[L].indexOf(M[L])<0&&(k[L]=D[L].concat([M[L]])):k[L]=[D[L],M[L]]),k},{})}function Z(M){return M.reduce(function(D,k){if(k.insert===1){var L=(0,_.default)(k.attributes);return delete L.image,D.insert({image:k.attributes.image},L)}if(k.attributes!=null&&(k.attributes.list===!0||k.attributes.bullet===!0)&&(k=(0,_.default)(k),k.attributes.list?k.attributes.list="ordered":(k.attributes.list="bullet",delete k.attributes.bullet)),typeof k.insert=="string"){var q=k.insert.replace(/\r\n/g,` `).replace(/\r/g,` `);return D.insert(q,k.attributes)}return D.push(k)},new y.default)}d.default=B},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0}),d.default=d.Range=void 0;var A=function(){function E(T,b){var v=[],m=!0,S=!1,N=void 0;try{for(var R=T[Symbol.iterator](),B;!(m=(B=R.next()).done)&&(v.push(B.value),!(b&&v.length===b));m=!0);}catch(F){S=!0,N=F}finally{try{!m&&R.return&&R.return()}finally{if(S)throw N}}return v}return function(T,b){if(Array.isArray(T))return T;if(Symbol.iterator in Object(T))return E(T,b);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),x=function(){function E(T,b){for(var v=0;v<b.length;v++){var m=b[v];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(T,m.key,m)}}return function(T,b,v){return b&&E(T.prototype,b),v&&E(T,v),T}}(),g=h(0),p=r(g),y=h(21),c=r(y),o=h(11),e=r(o),n=h(8),u=r(n),a=h(10),l=r(a);function r(E){return E&&E.__esModule?E:{default:E}}function i(E){if(Array.isArray(E)){for(var T=0,b=Array(E.length);T<E.length;T++)b[T]=E[T];return b}else return Array.from(E)}function f(E,T){if(!(E instanceof T))throw new TypeError("Cannot call a class as a function")}var t=(0,l.default)("quill:selection"),s=function E(T){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;f(this,E),this.index=T,this.length=b},w=function(){function E(T,b){var v=this;f(this,E),this.emitter=b,this.scroll=T,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=p.default.create("cursor",this),this.lastRange=this.savedRange=new s(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){v.mouseDown||setTimeout(v.update.bind(v,u.default.sources.USER),1)}),this.emitter.on(u.default.events.EDITOR_CHANGE,function(m,S){m===u.default.events.TEXT_CHANGE&&S.length()>0&&v.update(u.default.sources.SILENT)}),this.emitter.on(u.default.events.SCROLL_BEFORE_UPDATE,function(){if(v.hasFocus()){var m=v.getNativeRange();m!=null&&m.start.node!==v.cursor.textNode&&v.emitter.once(u.default.events.SCROLL_UPDATE,function(){try{v.setNativeRange(m.start.node,m.start.offset,m.end.node,m.end.offset)}catch{}})}}),this.emitter.on(u.default.events.SCROLL_OPTIMIZE,function(m,S){if(S.range){var N=S.range,R=N.startNode,B=N.startOffset,F=N.endNode,Z=N.endOffset;v.setNativeRange(R,B,F,Z)}}),this.update(u.default.sources.SILENT)}return x(E,[{key:"handleComposition",value:function(){var b=this;this.root.addEventListener("compositionstart",function(){b.composing=!0}),this.root.addEventListener("compositionend",function(){if(b.composing=!1,b.cursor.parent){var v=b.cursor.restore();if(!v)return;setTimeout(function(){b.setNativeRange(v.startNode,v.startOffset,v.endNode,v.endOffset)},1)}})}},{key:"handleDragging",value:function(){var b=this;this.emitter.listenDOM("mousedown",document.body,function(){b.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){b.mouseDown=!1,b.update(u.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(b,v){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[b])){this.scroll.update();var m=this.getNativeRange();if(!(m==null||!m.native.collapsed||p.default.query(b,p.default.Scope.BLOCK))){if(m.start.node!==this.cursor.textNode){var S=p.default.find(m.start.node,!1);if(S==null)return;if(S instanceof p.default.Leaf){var N=S.split(m.start.offset);S.parent.insertBefore(this.cursor,N)}else S.insertBefore(this.cursor,m.start.node);this.cursor.attach()}this.cursor.format(b,v),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(b){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,m=this.scroll.length();b=Math.min(b,m-1),v=Math.min(b+v,m-1)-b;var S=void 0,N=this.scroll.leaf(b),R=A(N,2),B=R[0],F=R[1];if(B==null)return null;var Z=B.position(F,!0),M=A(Z,2);S=M[0],F=M[1];var D=document.createRange();if(v>0){D.setStart(S,F);var k=this.scroll.leaf(b+v),L=A(k,2);if(B=L[0],F=L[1],B==null)return null;var q=B.position(F,!0),U=A(q,2);return S=U[0],F=U[1],D.setEnd(S,F),D.getBoundingClientRect()}else{var C="left",j=void 0;return S instanceof Text?(F<S.data.length?(D.setStart(S,F),D.setEnd(S,F+1)):(D.setStart(S,F-1),D.setEnd(S,F),C="right"),j=D.getBoundingClientRect()):(j=B.domNode.getBoundingClientRect(),F>0&&(C="right")),{bottom:j.top+j.height,height:j.height,left:j[C],right:j[C],top:j.top,width:0}}}},{key:"getNativeRange",value:function(){var b=document.getSelection();if(b==null||b.rangeCount<=0)return null;var v=b.getRangeAt(0);if(v==null)return null;var m=this.normalizeNative(v);return t.info("getNativeRange",m),m}},{key:"getRange",value:function(){var b=this.getNativeRange();if(b==null)return[null,null];var v=this.normalizedToRange(b);return[v,b]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(b){var v=this,m=[[b.start.node,b.start.offset]];b.native.collapsed||m.push([b.end.node,b.end.offset]);var S=m.map(function(B){var F=A(B,2),Z=F[0],M=F[1],D=p.default.find(Z,!0),k=D.offset(v.scroll);return M===0?k:D instanceof p.default.Container?k+D.length():k+D.index(Z,M)}),N=Math.min(Math.max.apply(Math,i(S)),this.scroll.length()-1),R=Math.min.apply(Math,[N].concat(i(S)));return new s(R,N-R)}},{key:"normalizeNative",value:function(b){if(!_(this.root,b.startContainer)||!b.collapsed&&!_(this.root,b.endContainer))return null;var v={start:{node:b.startContainer,offset:b.startOffset},end:{node:b.endContainer,offset:b.endOffset},native:b};return[v.start,v.end].forEach(function(m){for(var S=m.node,N=m.offset;!(S instanceof Text)&&S.childNodes.length>0;)if(S.childNodes.length>N)S=S.childNodes[N],N=0;else if(S.childNodes.length===N)S=S.lastChild,N=S instanceof Text?S.data.length:S.childNodes.length+1;else break;m.node=S,m.offset=N}),v}},{key:"rangeToNative",value:function(b){var v=this,m=b.collapsed?[b.index]:[b.index,b.index+b.length],S=[],N=this.scroll.length();return m.forEach(function(R,B){R=Math.min(N-1,R);var F=void 0,Z=v.scroll.leaf(R),M=A(Z,2),D=M[0],k=M[1],L=D.position(k,B!==0),q=A(L,2);F=q[0],k=q[1],S.push(F,k)}),S.length<2&&(S=S.concat(S)),S}},{key:"scrollIntoView",value:function(b){var v=this.lastRange;if(v!=null){var m=this.getBounds(v.index,v.length);if(m!=null){var S=this.scroll.length()-1,N=this.scroll.line(Math.min(v.index,S)),R=A(N,1),B=R[0],F=B;if(v.length>0){var Z=this.scroll.line(Math.min(v.index+v.length,S)),M=A(Z,1);F=M[0]}if(!(B==null||F==null)){var D=b.getBoundingClientRect();m.top<D.top?b.scrollTop-=D.top-m.top:m.bottom>D.bottom&&(b.scrollTop+=m.bottom-D.bottom)}}}}},{key:"setNativeRange",value:function(b,v){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:b,S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:v,N=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(t.info("setNativeRange",b,v,m,S),!(b!=null&&(this.root.parentNode==null||b.parentNode==null||m.parentNode==null))){var R=document.getSelection();if(R!=null)if(b!=null){this.hasFocus()||this.root.focus();var B=(this.getNativeRange()||{}).native;if(B==null||N||b!==B.startContainer||v!==B.startOffset||m!==B.endContainer||S!==B.endOffset){b.tagName=="BR"&&(v=[].indexOf.call(b.parentNode.childNodes,b),b=b.parentNode),m.tagName=="BR"&&(S=[].indexOf.call(m.parentNode.childNodes,m),m=m.parentNode);var F=document.createRange();F.setStart(b,v),F.setEnd(m,S),R.removeAllRanges(),R.addRange(F)}}else R.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(b){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.default.sources.API;if(typeof v=="string"&&(m=v,v=!1),t.info("setRange",b),b!=null){var S=this.rangeToNative(b);this.setNativeRange.apply(this,i(S).concat([v]))}else this.setNativeRange(null);this.update(m)}},{key:"update",value:function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u.default.sources.USER,v=this.lastRange,m=this.getRange(),S=A(m,2),N=S[0],R=S[1];if(this.lastRange=N,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,e.default)(v,this.lastRange)){var B;!this.composing&&R!=null&&R.native.collapsed&&R.start.node!==this.cursor.textNode&&this.cursor.restore();var F=[u.default.events.SELECTION_CHANGE,(0,c.default)(this.lastRange),(0,c.default)(v),b];if((B=this.emitter).emit.apply(B,[u.default.events.EDITOR_CHANGE].concat(F)),b!==u.default.sources.SILENT){var Z;(Z=this.emitter).emit.apply(Z,F)}}}}]),E}();function _(E,T){try{T.parentNode}catch{return!1}return T instanceof Text&&(T=T.parentNode),E.contains(T)}d.Range=s,d.default=w},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0});var A=function(){function u(a,l){for(var r=0;r<l.length;r++){var i=l[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(a,i.key,i)}}return function(a,l,r){return l&&u(a.prototype,l),r&&u(a,r),a}}(),x=function u(a,l,r){a===null&&(a=Function.prototype);var i=Object.getOwnPropertyDescriptor(a,l);if(i===void 0){var f=Object.getPrototypeOf(a);return f===null?void 0:u(f,l,r)}else{if("value"in i)return i.value;var t=i.get;return t===void 0?void 0:t.call(r)}},g=h(0),p=y(g);function y(u){return u&&u.__esModule?u:{default:u}}function c(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}function o(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:u}function e(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);u.prototype=Object.create(a&&a.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(u,a):u.__proto__=a)}var n=function(u){e(a,u);function a(){return c(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return A(a,[{key:"insertInto",value:function(r,i){r.children.length===0?x(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"insertInto",this).call(this,r,i):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),a}(p.default.Embed);n.blotName="break",n.tagName="BR",d.default=n},function(O,d,h){var A=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var u in n)n.hasOwnProperty(u)&&(e[u]=n[u])};return function(e,n){o(e,n);function u(){this.constructor=e}e.prototype=n===null?Object.create(n):(u.prototype=n.prototype,new u)}}();Object.defineProperty(d,"__esModule",{value:!0});var x=h(44),g=h(30),p=h(1),y=function(o){A(e,o);function e(n){var u=o.call(this,n)||this;return u.build(),u}return e.prototype.appendChild=function(n){this.insertBefore(n)},e.prototype.attach=function(){o.prototype.attach.call(this),this.children.forEach(function(n){n.attach()})},e.prototype.build=function(){var n=this;this.children=new x.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(u){try{var a=c(u);n.insertBefore(a,n.children.head||void 0)}catch(l){if(l instanceof p.ParchmentError)return;throw l}})},e.prototype.deleteAt=function(n,u){if(n===0&&u===this.length())return this.remove();this.children.forEachAt(n,u,function(a,l,r){a.deleteAt(l,r)})},e.prototype.descendant=function(n,u){var a=this.children.find(u),l=a[0],r=a[1];return n.blotName==null&&n(l)||n.blotName!=null&&l instanceof n?[l,r]:l instanceof e?l.descendant(n,r):[null,-1]},e.prototype.descendants=function(n,u,a){u===void 0&&(u=0),a===void 0&&(a=Number.MAX_VALUE);var l=[],r=a;return this.children.forEachAt(u,a,function(i,f,t){(n.blotName==null&&n(i)||n.blotName!=null&&i instanceof n)&&l.push(i),i instanceof e&&(l=l.concat(i.descendants(n,f,r))),r-=t}),l},e.prototype.detach=function(){this.children.forEach(function(n){n.detach()}),o.prototype.detach.call(this)},e.prototype.formatAt=function(n,u,a,l){this.children.forEachAt(n,u,function(r,i,f){r.formatAt(i,f,a,l)})},e.prototype.insertAt=function(n,u,a){var l=this.children.find(n),r=l[0],i=l[1];if(r)r.insertAt(i,u,a);else{var f=a==null?p.create("text",u):p.create(u,a);this.appendChild(f)}},e.prototype.insertBefore=function(n,u){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(a){return n instanceof a}))throw new p.ParchmentError("Cannot insert "+n.statics.blotName+" into "+this.statics.blotName);n.insertInto(this,u)},e.prototype.length=function(){return this.children.reduce(function(n,u){return n+u.length()},0)},e.prototype.moveChildren=function(n,u){this.children.forEach(function(a){n.insertBefore(a,u)})},e.prototype.optimize=function(n){if(o.prototype.optimize.call(this,n),this.children.length===0)if(this.statics.defaultChild!=null){var u=p.create(this.statics.defaultChild);this.appendChild(u),u.optimize(n)}else this.remove()},e.prototype.path=function(n,u){u===void 0&&(u=!1);var a=this.children.find(n,u),l=a[0],r=a[1],i=[[this,n]];return l instanceof e?i.concat(l.path(r,u)):(l!=null&&i.push([l,r]),i)},e.prototype.removeChild=function(n){this.children.remove(n)},e.prototype.replace=function(n){n instanceof e&&n.moveChildren(this),o.prototype.replace.call(this,n)},e.prototype.split=function(n,u){if(u===void 0&&(u=!1),!u){if(n===0)return this;if(n===this.length())return this.next}var a=this.clone();return this.parent.insertBefore(a,this.next),this.children.forEachAt(n,this.length(),function(l,r,i){l=l.split(r,u),a.appendChild(l)}),a},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(n,u){var a=this,l=[],r=[];n.forEach(function(i){i.target===a.domNode&&i.type==="childList"&&(l.push.apply(l,i.addedNodes),r.push.apply(r,i.removedNodes))}),r.forEach(function(i){if(!(i.parentNode!=null&&i.tagName!=="IFRAME"&&document.body.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var f=p.find(i);f!=null&&(f.domNode.parentNode==null||f.domNode.parentNode===a.domNode)&&f.detach()}}),l.filter(function(i){return i.parentNode==a.domNode}).sort(function(i,f){return i===f?0:i.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(i){var f=null;i.nextSibling!=null&&(f=p.find(i.nextSibling));var t=c(i);(t.next!=f||t.next==null)&&(t.parent!=null&&t.parent.removeChild(a),a.insertBefore(t,f||void 0))})},e}(g.default);function c(o){var e=p.find(o);if(e==null)try{e=p.create(o)}catch{e=p.create(p.Scope.INLINE),[].slice.call(o.childNodes).forEach(function(u){e.domNode.appendChild(u)}),o.parentNode&&o.parentNode.replaceChild(e.domNode,o),e.attach()}return e}d.default=y},function(O,d,h){var A=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var u in n)n.hasOwnProperty(u)&&(e[u]=n[u])};return function(e,n){o(e,n);function u(){this.constructor=e}e.prototype=n===null?Object.create(n):(u.prototype=n.prototype,new u)}}();Object.defineProperty(d,"__esModule",{value:!0});var x=h(12),g=h(31),p=h(17),y=h(1),c=function(o){A(e,o);function e(n){var u=o.call(this,n)||this;return u.attributes=new g.default(u.domNode),u}return e.formats=function(n){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return n.tagName.toLowerCase()},e.prototype.format=function(n,u){var a=y.query(n);a instanceof x.default?this.attributes.attribute(a,u):u&&a!=null&&(n!==this.statics.blotName||this.formats()[n]!==u)&&this.replaceWith(n,u)},e.prototype.formats=function(){var n=this.attributes.values(),u=this.statics.formats(this.domNode);return u!=null&&(n[this.statics.blotName]=u),n},e.prototype.replaceWith=function(n,u){var a=o.prototype.replaceWith.call(this,n,u);return this.attributes.copy(a),a},e.prototype.update=function(n,u){var a=this;o.prototype.update.call(this,n,u),n.some(function(l){return l.target===a.domNode&&l.type==="attributes"})&&this.attributes.build()},e.prototype.wrap=function(n,u){var a=o.prototype.wrap.call(this,n,u);return a instanceof e&&a.statics.scope===this.statics.scope&&this.attributes.move(a),a},e}(p.default);d.default=c},function(O,d,h){var A=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var e in o)o.hasOwnProperty(e)&&(c[e]=o[e])};return function(c,o){y(c,o);function e(){this.constructor=c}c.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(d,"__esModule",{value:!0});var x=h(30),g=h(1),p=function(y){A(c,y);function c(){return y!==null&&y.apply(this,arguments)||this}return c.value=function(o){return!0},c.prototype.index=function(o,e){return this.domNode===o||this.domNode.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},c.prototype.position=function(o,e){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return o>0&&(n+=1),[this.parent.domNode,n]},c.prototype.value=function(){var o;return o={},o[this.statics.blotName]=this.statics.value(this.domNode)||!0,o},c.scope=g.Scope.INLINE_BLOT,c}(x.default);d.default=p},function(O,d,h){var A=h(11),x=h(3),g={attributes:{compose:function(y,c,o){typeof y!="object"&&(y={}),typeof c!="object"&&(c={});var e=x(!0,{},c);o||(e=Object.keys(e).reduce(function(u,a){return e[a]!=null&&(u[a]=e[a]),u},{}));for(var n in y)y[n]!==void 0&&c[n]===void 0&&(e[n]=y[n]);return Object.keys(e).length>0?e:void 0},diff:function(y,c){typeof y!="object"&&(y={}),typeof c!="object"&&(c={});var o=Object.keys(y).concat(Object.keys(c)).reduce(function(e,n){return A(y[n],c[n])||(e[n]=c[n]===void 0?null:c[n]),e},{});return Object.keys(o).length>0?o:void 0},transform:function(y,c,o){if(typeof y!="object")return c;if(typeof c=="object"){if(!o)return c;var e=Object.keys(c).reduce(function(n,u){return y[u]===void 0&&(n[u]=c[u]),n},{});return Object.keys(e).length>0?e:void 0}}},iterator:function(y){return new p(y)},length:function(y){return typeof y.delete=="number"?y.delete:typeof y.retain=="number"?y.retain:typeof y.insert=="string"?y.insert.length:1}};function p(y){this.ops=y,this.index=0,this.offset=0}p.prototype.hasNext=function(){return this.peekLength()<1/0},p.prototype.next=function(y){y||(y=1/0);var c=this.ops[this.index];if(c){var o=this.offset,e=g.length(c);if(y>=e-o?(y=e-o,this.index+=1,this.offset=0):this.offset+=y,typeof c.delete=="number")return{delete:y};var n={};return c.attributes&&(n.attributes=c.attributes),typeof c.retain=="number"?n.retain=y:typeof c.insert=="string"?n.insert=c.insert.substr(o,y):n.insert=c.insert,n}else return{retain:1/0}},p.prototype.peek=function(){return this.ops[this.index]},p.prototype.peekLength=function(){return this.ops[this.index]?g.length(this.ops[this.index])-this.offset:1/0},p.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"},p.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var y=this.offset,c=this.index,o=this.next(),e=this.ops.slice(this.index);return this.offset=y,this.index=c,[o].concat(e)}else return[]},O.exports=g},function(O,d){var h=function(){function A(a,l){return l!=null&&a instanceof l}var x;try{x=Map}catch{x=function(){}}var g;try{g=Set}catch{g=function(){}}var p;try{p=Promise}catch{p=function(){}}function y(a,l,r,i,f){typeof l=="object"&&(r=l.depth,i=l.prototype,f=l.includeNonEnumerable,l=l.circular);var t=[],s=[],w=typeof Buffer<"u";typeof l>"u"&&(l=!0),typeof r>"u"&&(r=1/0);function _(E,T){if(E===null)return null;if(T===0)return E;var b,v;if(typeof E!="object")return E;if(A(E,x))b=new x;else if(A(E,g))b=new g;else if(A(E,p))b=new p(function(D,k){E.then(function(L){D(_(L,T-1))},function(L){k(_(L,T-1))})});else if(y.__isArray(E))b=[];else if(y.__isRegExp(E))b=new RegExp(E.source,u(E)),E.lastIndex&&(b.lastIndex=E.lastIndex);else if(y.__isDate(E))b=new Date(E.getTime());else{if(w&&Buffer.isBuffer(E))return Buffer.allocUnsafe?b=Buffer.allocUnsafe(E.length):b=new Buffer(E.length),E.copy(b),b;A(E,Error)?b=Object.create(E):typeof i>"u"?(v=Object.getPrototypeOf(E),b=Object.create(v)):(b=Object.create(i),v=i)}if(l){var m=t.indexOf(E);if(m!=-1)return s[m];t.push(E),s.push(b)}A(E,x)&&E.forEach(function(D,k){var L=_(k,T-1),q=_(D,T-1);b.set(L,q)}),A(E,g)&&E.forEach(function(D){var k=_(D,T-1);b.add(k)});for(var S in E){var N;v&&(N=Object.getOwnPropertyDescriptor(v,S)),!(N&&N.set==null)&&(b[S]=_(E[S],T-1))}if(Object.getOwnPropertySymbols)for(var R=Object.getOwnPropertySymbols(E),S=0;S<R.length;S++){var B=R[S],F=Object.getOwnPropertyDescriptor(E,B);F&&!F.enumerable&&!f||(b[B]=_(E[B],T-1),F.enumerable||Object.defineProperty(b,B,{enumerable:!1}))}if(f)for(var Z=Object.getOwnPropertyNames(E),S=0;S<Z.length;S++){var M=Z[S],F=Object.getOwnPropertyDescriptor(E,M);F&&F.enumerable||(b[M]=_(E[M],T-1),Object.defineProperty(b,M,{enumerable:!1}))}return b}return _(a,r)}y.clonePrototype=function(l){if(l===null)return null;var r=function(){};return r.prototype=l,new r};function c(a){return Object.prototype.toString.call(a)}y.__objToStr=c;function o(a){return typeof a=="object"&&c(a)==="[object Date]"}y.__isDate=o;function e(a){return typeof a=="object"&&c(a)==="[object Array]"}y.__isArray=e;function n(a){return typeof a=="object"&&c(a)==="[object RegExp]"}y.__isRegExp=n;function u(a){var l="";return a.global&&(l+="g"),a.ignoreCase&&(l+="i"),a.multiline&&(l+="m"),l}return y.__getRegExpFlags=u,y}();typeof O=="object"&&O.exports&&(O.exports=h)},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0});var A=function(){function b(v,m){var S=[],N=!0,R=!1,B=void 0;try{for(var F=v[Symbol.iterator](),Z;!(N=(Z=F.next()).done)&&(S.push(Z.value),!(m&&S.length===m));N=!0);}catch(M){R=!0,B=M}finally{try{!N&&F.return&&F.return()}finally{if(R)throw B}}return S}return function(v,m){if(Array.isArray(v))return v;if(Symbol.iterator in Object(v))return b(v,m);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),x=function(){function b(v,m){for(var S=0;S<m.length;S++){var N=m[S];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(v,N.key,N)}}return function(v,m,S){return m&&b(v.prototype,m),S&&b(v,S),v}}(),g=function b(v,m,S){v===null&&(v=Function.prototype);var N=Object.getOwnPropertyDescriptor(v,m);if(N===void 0){var R=Object.getPrototypeOf(v);return R===null?void 0:b(R,m,S)}else{if("value"in N)return N.value;var B=N.get;return B===void 0?void 0:B.call(S)}},p=h(0),y=t(p),c=h(8),o=t(c),e=h(4),n=t(e),u=h(16),a=t(u),l=h(13),r=t(l),i=h(25),f=t(i);function t(b){return b&&b.__esModule?b:{default:b}}function s(b,v){if(!(b instanceof v))throw new TypeError("Cannot call a class as a function")}function w(b,v){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:b}function _(b,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);b.prototype=Object.create(v&&v.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(b,v):b.__proto__=v)}function E(b){return b instanceof n.default||b instanceof e.BlockEmbed}var T=function(b){_(v,b);function v(m,S){s(this,v);var N=w(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,m));return N.emitter=S.emitter,Array.isArray(S.whitelist)&&(N.whitelist=S.whitelist.reduce(function(R,B){return R[B]=!0,R},{})),N.domNode.addEventListener("DOMNodeInserted",function(){}),N.optimize(),N.enable(),N}return x(v,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(S,N){var R=this.line(S),B=A(R,2),F=B[0],Z=B[1],M=this.line(S+N),D=A(M,1),k=D[0];if(g(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"deleteAt",this).call(this,S,N),k!=null&&F!==k&&Z>0){if(F instanceof e.BlockEmbed||k instanceof e.BlockEmbed){this.optimize();return}if(F instanceof r.default){var L=F.newlineIndex(F.length(),!0);if(L>-1&&(F=F.split(L+1),F===k)){this.optimize();return}}else if(k instanceof r.default){var q=k.newlineIndex(0);q>-1&&k.split(q+1)}var U=k.children.head instanceof a.default?null:k.children.head;F.moveChildren(k,U),F.remove()}this.optimize()}},{key:"enable",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",S)}},{key:"formatAt",value:function(S,N,R,B){this.whitelist!=null&&!this.whitelist[R]||(g(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"formatAt",this).call(this,S,N,R,B),this.optimize())}},{key:"insertAt",value:function(S,N,R){if(!(R!=null&&this.whitelist!=null&&!this.whitelist[N])){if(S>=this.length())if(R==null||y.default.query(N,y.default.Scope.BLOCK)==null){var B=y.default.create(this.statics.defaultChild);this.appendChild(B),R==null&&N.endsWith(` `)&&(N=N.slice(0,-1)),B.insertAt(0,N,R)}else{var F=y.default.create(N,R);this.appendChild(F)}else g(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertAt",this).call(this,S,N,R);this.optimize()}}},{key:"insertBefore",value:function(S,N){if(S.statics.scope===y.default.Scope.INLINE_BLOT){var R=y.default.create(this.statics.defaultChild);R.appendChild(S),S=R}g(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertBefore",this).call(this,S,N)}},{key:"leaf",value:function(S){return this.path(S).pop()||[null,-1]}},{key:"line",value:function(S){return S===this.length()?this.line(S-1):this.descendant(E,S)}},{key:"lines",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,R=function B(F,Z,M){var D=[],k=M;return F.children.forEachAt(Z,M,function(L,q,U){E(L)?D.push(L):L instanceof y.default.Container&&(D=D.concat(B(L,q,k))),k-=U}),D};return R(this,S,N)}},{key:"optimize",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(g(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"optimize",this).call(this,S,N),S.length>0&&this.emitter.emit(o.default.events.SCROLL_OPTIMIZE,S,N))}},{key:"path",value:function(S){return g(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"path",this).call(this,S).slice(1)}},{key:"update",value:function(S){if(this.batch!==!0){var N=o.default.sources.USER;typeof S=="string"&&(N=S),Array.isArray(S)||(S=this.observer.takeRecords()),S.length>0&&this.emitter.emit(o.default.events.SCROLL_BEFORE_UPDATE,N,S),g(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"update",this).call(this,S.concat([])),S.length>0&&this.emitter.emit(o.default.events.SCROLL_UPDATE,N,S)}}}]),v}(y.default.Scroll);T.blotName="scroll",T.className="ql-editor",T.tagName="DIV",T.defaultChild="block",T.allowedChildren=[n.default,e.BlockEmbed,f.default],d.default=T},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0}),d.SHORTKEY=d.default=void 0;var A=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},x=function(){function j(I,z){var H=[],$=!0,J=!1,ee=void 0;try{for(var te=I[Symbol.iterator](),oe;!($=(oe=te.next()).done)&&(H.push(oe.value),!(z&&H.length===z));$=!0);}catch(le){J=!0,ee=le}finally{try{!$&&te.return&&te.return()}finally{if(J)throw ee}}return H}return function(I,z){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return j(I,z);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(){function j(I,z){for(var H=0;H<z.length;H++){var $=z[H];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(I,$.key,$)}}return function(I,z,H){return z&&j(I.prototype,z),H&&j(I,H),I}}(),p=h(21),y=b(p),c=h(11),o=b(c),e=h(3),n=b(e),u=h(2),a=b(u),l=h(20),r=b(l),i=h(0),f=b(i),t=h(5),s=b(t),w=h(10),_=b(w),E=h(9),T=b(E);function b(j){return j&&j.__esModule?j:{default:j}}function v(j,I,z){return I in j?Object.defineProperty(j,I,{value:z,enumerable:!0,configurable:!0,writable:!0}):j[I]=z,j}function m(j,I){if(!(j instanceof I))throw new TypeError("Cannot call a class as a function")}function S(j,I){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:j}function N(j,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);j.prototype=Object.create(I&&I.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(j,I):j.__proto__=I)}var R=(0,_.default)("quill:keyboard"),B=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",F=function(j){N(I,j),g(I,null,[{key:"match",value:function(H,$){return $=C($),["altKey","ctrlKey","metaKey","shiftKey"].some(function(J){return!!$[J]!==H[J]&&$[J]!==null})?!1:$.key===(H.which||H.keyCode)}}]);function I(z,H){m(this,I);var $=S(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,z,H));return $.bindings={},Object.keys($.options.bindings).forEach(function(J){J==="list autofill"&&z.scroll.whitelist!=null&&!z.scroll.whitelist.list||$.options.bindings[J]&&$.addBinding($.options.bindings[J])}),$.addBinding({key:I.keys.ENTER,shiftKey:null},L),$.addBinding({key:I.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?($.addBinding({key:I.keys.BACKSPACE},{collapsed:!0},M),$.addBinding({key:I.keys.DELETE},{collapsed:!0},D)):($.addBinding({key:I.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},M),$.addBinding({key:I.keys.DELETE},{collapsed:!0,suffix:/^.?$/},D)),$.addBinding({key:I.keys.BACKSPACE},{collapsed:!1},k),$.addBinding({key:I.keys.DELETE},{collapsed:!1},k),$.addBinding({key:I.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},M),$.listen(),$}return g(I,[{key:"addBinding",value:function(H){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ee=C(H);if(ee==null||ee.key==null)return R.warn("Attempted to add invalid keyboard binding",ee);typeof $=="function"&&($={handler:$}),typeof J=="function"&&(J={handler:J}),ee=(0,n.default)(ee,$,J),this.bindings[ee.key]=this.bindings[ee.key]||[],this.bindings[ee.key].push(ee)}},{key:"listen",value:function(){var H=this;this.quill.root.addEventListener("keydown",function($){if(!$.defaultPrevented){var J=$.which||$.keyCode,ee=(H.bindings[J]||[]).filter(function(ce){return I.match($,ce)});if(ee.length!==0){var te=H.quill.getSelection();if(!(te==null||!H.quill.hasFocus())){var oe=H.quill.getLine(te.index),le=x(oe,2),ye=le[0],he=le[1],K=H.quill.getLeaf(te.index),W=x(K,2),Y=W[0],X=W[1],G=te.length===0?[Y,X]:H.quill.getLeaf(te.index+te.length),ne=x(G,2),re=ne[0],ie=ne[1],be=Y instanceof f.default.Text?Y.value().slice(0,X):"",ke=re instanceof f.default.Text?re.value().slice(ie):"",se={collapsed:te.length===0,empty:te.length===0&&ye.length()<=1,format:H.quill.getFormat(te),offset:he,prefix:be,suffix:ke},wt=ee.some(function(ce){if(ce.collapsed!=null&&ce.collapsed!==se.collapsed||ce.empty!=null&&ce.empty!==se.empty||ce.offset!=null&&ce.offset!==se.offset)return!1;if(Array.isArray(ce.format)){if(ce.format.every(function(Se){return se.format[Se]==null}))return!1}else if(A(ce.format)==="object"&&!Object.keys(ce.format).every(function(Se){return ce.format[Se]===!0?se.format[Se]!=null:ce.format[Se]===!1?se.format[Se]==null:(0,o.default)(ce.format[Se],se.format[Se])}))return!1;return ce.prefix!=null&&!ce.prefix.test(se.prefix)||ce.suffix!=null&&!ce.suffix.test(se.suffix)?!1:ce.handler.call(H,te,se)!==!0});wt&&$.preventDefault()}}}})}}]),I}(T.default);F.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},F.DEFAULTS={bindings:{bold:U("bold"),italic:U("italic"),underline:U("underline"),indent:{key:F.keys.TAB,format:["blockquote","indent","list"],handler:function(I,z){if(z.collapsed&&z.offset!==0)return!0;this.quill.format("indent","+1",s.default.sources.USER)}},outdent:{key:F.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(I,z){if(z.collapsed&&z.offset!==0)return!0;this.quill.format("indent","-1",s.default.sources.USER)}},"outdent backspace":{key:F.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(I,z){z.format.indent!=null?this.quill.format("indent","-1",s.default.sources.USER):z.format.list!=null&&this.quill.format("list",!1,s.default.sources.USER)}},"indent code-block":q(!0),"outdent code-block":q(!1),"remove tab":{key:F.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(I){this.quill.deleteText(I.index-1,1,s.default.sources.USER)}},tab:{key:F.keys.TAB,handler:function(I){this.quill.history.cutoff();var z=new a.default().retain(I.index).delete(I.length).insert(" ");this.quill.updateContents(z,s.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(I.index+1,s.default.sources.SILENT)}},"list empty enter":{key:F.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(I,z){this.quill.format("list",!1,s.default.sources.USER),z.format.indent&&this.quill.format("indent",!1,s.default.sources.USER)}},"checklist enter":{key:F.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(I){var z=this.quill.getLine(I.index),H=x(z,2),$=H[0],J=H[1],ee=(0,n.default)({},$.formats(),{list:"checked"}),te=new a.default().retain(I.index).insert(` `,ee).retain($.length()-J-1).retain(1,{list:"unchecked"});this.quill.updateContents(te,s.default.sources.USER),this.quill.setSelection(I.index+1,s.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:F.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(I,z){var H=this.quill.getLine(I.index),$=x(H,2),J=$[0],ee=$[1],te=new a.default().retain(I.index).insert(` `,z.format).retain(J.length()-ee-1).retain(1,{header:null});this.quill.updateContents(te,s.default.sources.USER),this.quill.setSelection(I.index+1,s.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(I,z){var H=z.prefix.length,$=this.quill.getLine(I.index),J=x($,2),ee=J[0],te=J[1];if(te>H)return!0;var oe=void 0;switch(z.prefix.trim()){case"[]":case"[ ]":oe="unchecked";break;case"[x]":oe="checked";break;case"-":case"*":oe="bullet";break;default:oe="ordered"}this.quill.insertText(I.index," ",s.default.sources.USER),this.quill.history.cutoff();var le=new a.default().retain(I.index-te).delete(H+1).retain(ee.length()-2-te).retain(1,{list:oe});this.quill.updateContents(le,s.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(I.index-H,s.default.sources.SILENT)}},"code exit":{key:F.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(I){var z=this.quill.getLine(I.index),H=x(z,2),$=H[0],J=H[1],ee=new a.default().retain(I.index+$.length()-J-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(ee,s.default.sources.USER)}},"embed left":Z(F.keys.LEFT,!1),"embed left shift":Z(F.keys.LEFT,!0),"embed right":Z(F.keys.RIGHT,!1),"embed right shift":Z(F.keys.RIGHT,!0)}};function Z(j,I){var z,H=j===F.keys.LEFT?"prefix":"suffix";return z={key:j,shiftKey:I,altKey:null},v(z,H,/^$/),v(z,"handler",function(J){var ee=J.index;j===F.keys.RIGHT&&(ee+=J.length+1);var te=this.quill.getLeaf(ee),oe=x(te,1),le=oe[0];return le instanceof f.default.Embed?(j===F.keys.LEFT?I?this.quill.setSelection(J.index-1,J.length+1,s.default.sources.USER):this.quill.setSelection(J.index-1,s.default.sources.USER):I?this.quill.setSelection(J.index,J.length+1,s.default.sources.USER):this.quill.setSelection(J.index+J.length+1,s.default.sources.USER),!1):!0}),z}function M(j,I){if(!(j.index===0||this.quill.getLength()<=1)){var z=this.quill.getLine(j.index),H=x(z,1),$=H[0],J={};if(I.offset===0){var ee=this.quill.getLine(j.index-1),te=x(ee,1),oe=te[0];if(oe!=null&&oe.length()>1){var le=$.formats(),ye=this.quill.getFormat(j.index-1,1);J=r.default.attributes.diff(le,ye)||{}}}var he=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(I.prefix)?2:1;this.quill.deleteText(j.index-he,he,s.default.sources.USER),Object.keys(J).length>0&&this.quill.formatLine(j.index-he,he,J,s.default.sources.USER),this.quill.focus()}}function D(j,I){var z=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(I.suffix)?2:1;if(!(j.index>=this.quill.getLength()-z)){var H={},$=0,J=this.quill.getLine(j.index),ee=x(J,1),te=ee[0];if(I.offset>=te.length()-1){var oe=this.quill.getLine(j.index+1),le=x(oe,1),ye=le[0];if(ye){var he=te.formats(),K=this.quill.getFormat(j.index,1);H=r.default.attributes.diff(he,K)||{},$=ye.length()}}this.quill.deleteText(j.index,z,s.default.sources.USER),Object.keys(H).length>0&&this.quill.formatLine(j.index+$-1,z,H,s.default.sources.USER)}}function k(j){var I=this.quill.getLines(j),z={};if(I.length>1){var H=I[0].formats(),$=I[I.length-1].formats();z=r.default.attributes.diff($,H)||{}}this.quill.deleteText(j,s.default.sources.USER),Object.keys(z).length>0&&this.quill.formatLine(j.index,1,z,s.default.sources.USER),this.quill.setSelection(j.index,s.default.sources.SILENT),this.quill.focus()}function L(j,I){var z=this;j.length>0&&this.quill.scroll.deleteAt(j.index,j.length);var H=Object.keys(I.format).reduce(function($,J){return f.default.query(J,f.default.Scope.BLOCK)&&!Array.isArray(I.format[J])&&($[J]=I.format[J]),$},{});this.quill.insertText(j.index,` `,H,s.default.sources.USER),this.quill.setSelection(j.index+1,s.default.sources.SILENT),this.quill.focus(),Object.keys(I.format).forEach(function($){H[$]==null&&(Array.isArray(I.format[$])||$!=="link"&&z.quill.format($,I.format[$],s.default.sources.USER))})}function q(j){return{key:F.keys.TAB,shiftKey:!j,format:{"code-block":!0},handler:function(z){var H=f.default.query("code-block"),$=z.index,J=z.length,ee=this.quill.scroll.descendant(H,$),te=x(ee,2),oe=te[0],le=te[1];if(oe!=null){var ye=this.quill.getIndex(oe),he=oe.newlineIndex(le,!0)+1,K=oe.newlineIndex(ye+le+J),W=oe.domNode.textContent.slice(he,K).split(` `);le=0,W.forEach(function(Y,X){j?(oe.insertAt(he+le,H.TAB),le+=H.TAB.length,X===0?$+=H.TAB.length:J+=H.TAB.length):Y.startsWith(H.TAB)&&(oe.deleteAt(he+le,H.TAB.length),le-=H.TAB.length,X===0?$-=H.TAB.length:J-=H.TAB.length),le+=Y.length+1}),this.quill.update(s.default.sources.USER),this.quill.setSelection($,J,s.default.sources.SILENT)}}}}function U(j){return{key:j[0].toUpperCase(),shortKey:!0,handler:function(z,H){this.quill.format(j,!H.format[j],s.default.sources.USER)}}}function C(j){if(typeof j=="string"||typeof j=="number")return C({key:j});if((typeof j>"u"?"undefined":A(j))==="object"&&(j=(0,y.default)(j,!1)),typeof j.key=="string")if(F.keys[j.key.toUpperCase()]!=null)j.key=F.keys[j.key.toUpperCase()];else if(j.key.length===1)j.key=j.key.toUpperCase().charCodeAt(0);else return null;return j.shortKey&&(j[B]=j.shortKey,delete j.shortKey),j}d.default=F,d.SHORTKEY=B},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0});var A=function(){function r(i,f){var t=[],s=!0,w=!1,_=void 0;try{for(var E=i[Symbol.iterator](),T;!(s=(T=E.next()).done)&&(t.push(T.value),!(f&&t.length===f));s=!0);}catch(b){w=!0,_=b}finally{try{!s&&E.return&&E.return()}finally{if(w)throw _}}return t}return function(i,f){if(Array.isArray(i))return i;if(Symbol.iterator in Object(i))return r(i,f);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),x=function r(i,f,t){i===null&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,f);if(s===void 0){var w=Object.getPrototypeOf(i);return w===null?void 0:r(w,f,t)}else{if("value"in s)return s.value;var _=s.get;return _===void 0?void 0:_.call(t)}},g=function(){function r(i,f){for(var t=0;t<f.length;t++){var s=f[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}return function(i,f,t){return f&&r(i.prototype,f),t&&r(i,t),i}}(),p=h(0),y=e(p),c=h(7),o=e(c);function e(r){return r&&r.__esModule?r:{default:r}}function n(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function u(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function a(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var l=function(r){a(i,r),g(i,null,[{key:"value",value:function(){}}]);function i(f,t){n(this,i);var s=u(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,f));return s.selection=t,s.textNode=document.createTextNode(i.CONTENTS),s.domNode.appendChild(s.textNode),s._length=0,s}return g(i,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(t,s){if(this._length!==0)return x(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"format",this).call(this,t,s);for(var w=this,_=0;w!=null&&w.statics.scope!==y.default.Scope.BLOCK_BLOT;)_+=w.offset(w.parent),w=w.parent;w!=null&&(this._length=i.CONTENTS.length,w.optimize(),w.formatAt(_,i.CONTENTS.length,t,s),this._length=0)}},{key:"index",value:function(t,s){return t===this.textNode?0:x(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,t,s)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){x(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var t=this.textNode,s=this.selection.getNativeRange(),w=void 0,_=void 0,E=void 0;if(s!=null&&s.start.node===t&&s.end.node===t){var T=[t,s.start.offset,s.end.offset];w=T[0],_=T[1],E=T[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==i.CONTENTS){var b=this.textNode.data.split(i.CONTENTS).join("");this.next instanceof o.default?(w=this.next.domNode,this.next.insertAt(0,b),this.textNode.data=i.CONTENTS):(this.textNode.data=b,this.parent.insertBefore(y.default.create(this.textNode),this),this.textNode=document.createTextNode(i.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),_!=null){var v=[_,E].map(function(S){return Math.max(0,Math.min(w.data.length,S-1))}),m=A(v,2);return _=m[0],E=m[1],{startNode:w,startOffset:_,endNode:w,endOffset:E}}}}},{key:"update",value:function(t,s){var w=this;if(t.some(function(E){return E.type==="characterData"&&E.target===w.textNode})){var _=this.restore();_&&(s.range=_)}}},{key:"value",value:function(){return""}}]),i}(y.default.Embed);l.blotName="cursor",l.className="ql-cursor",l.tagName="span",l.CONTENTS="\uFEFF",d.default=l},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0});var A=h(0),x=y(A),g=h(4),p=y(g);function y(u){return u&&u.__esModule?u:{default:u}}function c(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}function o(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:u}function e(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);u.prototype=Object.create(a&&a.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(u,a):u.__proto__=a)}var n=function(u){e(a,u);function a(){return c(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return a}(x.default.Container);n.allowedChildren=[p.default,g.BlockEmbed,n],d.default=n},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0}),d.ColorStyle=d.ColorClass=d.ColorAttributor=void 0;var A=function(){function l(r,i){for(var f=0;f<i.length;f++){var t=i[f];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(r,t.key,t)}}return function(r,i,f){return i&&l(r.prototype,i),f&&l(r,f),r}}(),x=function l(r,i,f){r===null&&(r=Function.prototype);var t=Object.getOwnPropertyDescriptor(r,i);if(t===void 0){var s=Object.getPrototypeOf(r);return s===null?void 0:l(s,i,f)}else{if("value"in t)return t.value;var w=t.get;return w===void 0?void 0:w.call(f)}},g=h(0),p=y(g);function y(l){return l&&l.__esModule?l:{default:l}}function c(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}function o(l,r){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:l}function e(l,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);l.prototype=Object.create(r&&r.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(l,r):l.__proto__=r)}var n=function(l){e(r,l);function r(){return c(this,r),o(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return A(r,[{key:"value",value:function(f){var t=x(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"value",this).call(this,f);return t.startsWith("rgb(")?(t=t.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+t.split(",").map(function(s){return("00"+parseInt(s).toString(16)).slice(-2)}).join("")):t}}]),r}(p.default.Attributor.Style),u=new p.default.Attributor.Class("color","ql-color",{scope:p.default.Scope.INLINE}),a=new n("color","color",{scope:p.default.Scope.INLINE});d.ColorAttributor=n,d.ColorClass=u,d.ColorStyle=a},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0}),d.sanitize=d.default=void 0;var A=function(){function a(l,r){for(var i=0;i<r.length;i++){var f=r[i];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(l,f.key,f)}}return function(l,r,i){return r&&a(l.prototype,r),i&&a(l,i),l}}(),x=function a(l,r,i){l===null&&(l=Function.prototype);var f=Object.getOwnPropertyDescriptor(l,r);if(f===void 0){var t=Object.getPrototypeOf(l);return t===null?void 0:a(t,r,i)}else{if("value"in f)return f.value;var s=f.get;return s===void 0?void 0:s.call(i)}},g=h(6),p=y(g);function y(a){return a&&a.__esModule?a:{default:a}}function c(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")}function o(a,l){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:a}function e(a,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);a.prototype=Object.create(l&&l.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(a,l):a.__proto__=l)}var n=function(a){e(l,a);function l(){return c(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return A(l,[{key:"format",value:function(i,f){if(i!==this.statics.blotName||!f)return x(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"format",this).call(this,i,f);f=this.constructor.sanitize(f),this.domNode.setAttribute("href",f)}}],[{key:"create",value:function(i){var f=x(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this,i);return i=this.sanitize(i),f.setAttribute("href",i),f.setAttribute("rel","noopener noreferrer"),f.setAttribute("target","_blank"),f}},{key:"formats",value:function(i){return i.getAttribute("href")}},{key:"sanitize",value:function(i){return u(i,this.PROTOCOL_WHITELIST)?i:this.SANITIZED_URL}}]),l}(p.default);n.blotName="link",n.tagName="A",n.SANITIZED_URL="about:blank",n.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function u(a,l){var r=document.createElement("a");r.href=a;var i=r.href.slice(0,r.href.indexOf(":"));return l.indexOf(i)>-1}d.default=n,d.sanitize=u},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0});var A=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},x=function(){function l(r,i){for(var f=0;f<i.length;f++){var t=i[f];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(r,t.key,t)}}return function(r,i,f){return i&&l(r.prototype,i),f&&l(r,f),r}}(),g=h(23),p=o(g),y=h(107),c=o(y);function o(l){return l&&l.__esModule?l:{default:l}}function e(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}var n=0;function u(l,r){l.setAttribute(r,l.getAttribute(r)!=="true")}var a=function(){function l(r){var i=this;e(this,l),this.select=r,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){i.togglePicker()}),this.label.addEventListener("keydown",function(f){switch(f.keyCode){case p.default.keys.ENTER:i.togglePicker();break;case p.default.keys.ESCAPE:i.escape(),f.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return x(l,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),u(this.label,"aria-expanded"),u(this.options,"aria-hidden")}},{key:"buildItem",value:function(i){var f=this,t=document.createElement("span");return t.tabIndex="0",t.setAttribute("role","button"),t.classList.add("ql-picker-item"),i.hasAttribute("value")&&t.setAttribute("data-value",i.getAttribute("value")),i.textContent&&t.setAttribute("data-label",i.textContent),t.addEventListener("click",function(){f.selectItem(t,!0)}),t.addEventListener("keydown",function(s){switch(s.keyCode){case p.default.keys.ENTER:f.selectItem(t,!0),s.preventDefault();break;case p.default.keys.ESCAPE:f.escape(),s.preventDefault();break}}),t}},{key:"buildLabel",value:function(){var i=document.createElement("span");return i.classList.add("ql-picker-label"),i.innerHTML=c.default,i.tabIndex="0",i.setAttribute("role","button"),i.setAttribute("aria-expanded","false"),this.container.appendChild(i),i}},{key:"buildOptions",value:function(){var i=this,f=document.createElement("span");f.classList.add("ql-picker-options"),f.setAttribute("aria-hidden","true"),f.tabIndex="-1",f.id="ql-picker-options-"+n,n+=1,this.label.setAttribute("aria-controls",f.id),this.options=f,[].slice.call(this.select.options).forEach(function(t){var s=i.buildItem(t);f.appendChild(s),t.selected===!0&&i.selectItem(s)}),this.container.appendChild(f)}},{key:"buildPicker",value:function(){var i=this;[].slice.call(this.select.attributes).forEach(function(f){i.container.setAttribute(f.name,f.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var i=this;this.close(),setTimeout(function(){return i.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(i){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=this.container.querySelector(".ql-selected");if(i!==t&&(t!=null&&t.classList.remove("ql-selected"),i!=null&&(i.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(i.parentNode.children,i),i.hasAttribute("data-value")?this.label.setAttribute("data-value",i.getAttribute("data-value")):this.label.removeAttribute("data-value"),i.hasAttribute("data-label")?this.label.setAttribute("data-label",i.getAttribute("data-label")):this.label.removeAttribute("data-label"),f))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":A(Event))==="object"){var s=document.createEvent("Event");s.initEvent("change",!0,!0),this.select.dispatchEvent(s)}this.close()}}},{key:"update",value:function(){var i=void 0;if(this.select.selectedIndex>-1){var f=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];i=this.select.options[this.select.selectedIndex],this.selectItem(f)}else this.selectItem(null);var t=i!=null&&i!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",t)}}]),l}();d.default=a},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0});var A=h(0),x=R(A),g=h(5),p=R(g),y=h(4),c=R(y),o=h(16),e=R(o),n=h(25),u=R(n),a=h(24),l=R(a),r=h(35),i=R(r),f=h(6),t=R(f),s=h(22),w=R(s),_=h(7),E=R(_),T=h(55),b=R(T),v=h(42),m=R(v),S=h(23),N=R(S);function R(B){return B&&B.__esModule?B:{default:B}}p.default.register({"blots/block":c.default,"blots/block/embed":y.BlockEmbed,"blots/break":e.default,"blots/container":u.default,"blots/cursor":l.default,"blots/embed":i.default,"blots/inline":t.default,"blots/scroll":w.default,"blots/text":E.default,"modules/clipboard":b.default,"modules/history":m.default,"modules/keyboard":N.default}),x.default.register(c.default,e.default,l.default,t.default,w.default,E.default),d.default=p.default},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0});var A=h(1),x=function(){function g(p){this.domNode=p,this.domNode[A.DATA_KEY]={blot:this}}return Object.defineProperty(g.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),g.create=function(p){if(this.tagName==null)throw new A.ParchmentError("Blot definition missing tagName");var y;return Array.isArray(this.tagName)?(typeof p=="string"&&(p=p.toUpperCase(),parseInt(p).toString()===p&&(p=parseInt(p))),typeof p=="number"?y=document.createElement(this.tagName[p-1]):this.tagName.indexOf(p)>-1?y=document.createElement(p):y=document.createElement(this.tagName[0])):y=document.createElement(this.tagName),this.className&&y.classList.add(this.className),y},g.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},g.prototype.clone=function(){var p=this.domNode.cloneNode(!1);return A.create(p)},g.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[A.DATA_KEY]},g.prototype.deleteAt=function(p,y){var c=this.isolate(p,y);c.remove()},g.prototype.formatAt=function(p,y,c,o){var e=this.isolate(p,y);if(A.query(c,A.Scope.BLOT)!=null&&o)e.wrap(c,o);else if(A.query(c,A.Scope.ATTRIBUTE)!=null){var n=A.create(this.statics.scope);e.wrap(n),n.format(c,o)}},g.prototype.insertAt=function(p,y,c){var o=c==null?A.create("text",y):A.create(y,c),e=this.split(p);this.parent.insertBefore(o,e)},g.prototype.insertInto=function(p,y){y===void 0&&(y=null),this.parent!=null&&this.parent.children.remove(this);var c=null;p.children.insertBefore(this,y),y!=null&&(c=y.domNode),(this.domNode.parentNode!=p.domNode||this.domNode.nextSibling!=c)&&p.domNode.insertBefore(this.domNode,c),this.parent=p,this.attach()},g.prototype.isolate=function(p,y){var c=this.split(p);return c.split(y),c},g.prototype.length=function(){return 1},g.prototype.offset=function(p){return p===void 0&&(p=this.parent),this.parent==null||this==p?0:this.parent.children.offset(this)+this.parent.offset(p)},g.prototype.optimize=function(p){this.domNode[A.DATA_KEY]!=null&&delete this.domNode[A.DATA_KEY].mutations},g.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},g.prototype.replace=function(p){p.parent!=null&&(p.parent.insertBefore(this,p.next),p.remove())},g.prototype.replaceWith=function(p,y){var c=typeof p=="string"?A.create(p,y):p;return c.replace(this),c},g.prototype.split=function(p,y){return p===0?this:this.next},g.prototype.update=function(p,y){},g.prototype.wrap=function(p,y){var c=typeof p=="string"?A.create(p,y):p;return this.parent!=null&&this.parent.insertBefore(c,this.next),c.appendChild(this),c},g.blotName="abstract",g}();d.default=x},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0});var A=h(12),x=h(32),g=h(33),p=h(1),y=function(){function c(o){this.attributes={},this.domNode=o,this.build()}return c.prototype.attribute=function(o,e){e?o.add(this.domNode,e)&&(o.value(this.domNode)!=null?this.attributes[o.attrName]=o:delete this.attributes[o.attrName]):(o.remove(this.domNode),delete this.attributes[o.attrName])},c.prototype.build=function(){var o=this;this.attributes={};var e=A.default.keys(this.domNode),n=x.default.keys(this.domNode),u=g.default.keys(this.domNode);e.concat(n).concat(u).forEach(function(a){var l=p.query(a,p.Scope.ATTRIBUTE);l instanceof A.default&&(o.attributes[l.attrName]=l)})},c.prototype.copy=function(o){var e=this;Object.keys(this.attributes).forEach(function(n){var u=e.attributes[n].value(e.domNode);o.format(n,u)})},c.prototype.move=function(o){var e=this;this.copy(o),Object.keys(this.attributes).forEach(function(n){e.attributes[n].remove(e.domNode)}),this.attributes={}},c.prototype.values=function(){var o=this;return Object.keys(this.attributes).reduce(function(e,n){return e[n]=o.attributes[n].value(o.domNode),e},{})},c}();d.default=y},function(O,d,h){var A=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var e in o)o.hasOwnProperty(e)&&(c[e]=o[e])};return function(c,o){y(c,o);function e(){this.constructor=c}c.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(d,"__esModule",{value:!0});var x=h(12);function g(y,c){var o=y.getAttribute("class")||"";return o.split(/\s+/).filter(function(e){return e.indexOf(c+"-")===0})}var p=function(y){A(c,y);function c(){return y!==null&&y.apply(this,arguments)||this}return c.keys=function(o){return(o.getAttribute("class")||"").split(/\s+/).map(function(e){return e.split("-").slice(0,-1).join("-")})},c.prototype.add=function(o,e){return this.canAdd(o,e)?(this.remove(o),o.classList.add(this.keyName+"-"+e),!0):!1},c.prototype.remove=function(o){var e=g(o,this.keyName);e.forEach(function(n){o.classList.remove(n)}),o.classList.length===0&&o.removeAttribute("class")},c.prototype.value=function(o){var e=g(o,this.keyName)[0]||"",n=e.slice(this.keyName.length+1);return this.canAdd(o,n)?n:""},c}(x.default);d.default=p},function(O,d,h){var A=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var e in o)o.hasOwnProperty(e)&&(c[e]=o[e])};return function(c,o){y(c,o);function e(){this.constructor=c}c.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(d,"__esModule",{value:!0});var x=h(12);function g(y){var c=y.split("-"),o=c.slice(1).map(function(e){return e[0].toUpperCase()+e.slice(1)}).join("");return c[0]+o}var p=function(y){A(c,y);function c(){return y!==null&&y.apply(this,arguments)||this}return c.keys=function(o){return(o.getAttribute("style")||"").split(";").map(function(e){var n=e.split(":");return n[0].trim()})},c.prototype.add=function(o,e){return this.canAdd(o,e)?(o.style[g(this.keyName)]=e,!0):!1},c.prototype.remove=function(o){o.style[g(this.keyName)]="",o.getAttribute("style")||o.removeAttribute("style")},c.prototype.value=function(o){var e=o.style[g(this.keyName)];return this.canAdd(o,e)?e:""},c}(x.default);d.default=p},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0});var A=function(){function p(y,c){for(var o=0;o<c.length;o++){var e=c[o];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(y,e.key,e)}}return function(y,c,o){return c&&p(y.prototype,c),o&&p(y,o),y}}();function x(p,y){if(!(p instanceof y))throw new TypeError("Cannot call a class as a function")}var g=function(){function p(y,c){x(this,p),this.quill=y,this.options=c,this.modules={}}return A(p,[{key:"init",value:function(){var c=this;Object.keys(this.options.modules).forEach(function(o){c.modules[o]==null&&c.addModule(o)})}},{key:"addModule",value:function(c){var o=this.quill.constructor.import("modules/"+c);return this.modules[c]=new o(this.quill,this.options.modules[c]||{}),this.modules[c]}}]),p}();g.DEFAULTS={modules:{}},g.themes={default:g},d.default=g},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0});var A=function(){function r(i,f){for(var t=0;t<f.length;t++){var s=f[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}return function(i,f,t){return f&&r(i.prototype,f),t&&r(i,t),i}}(),x=function r(i,f,t){i===null&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,f);if(s===void 0){var w=Object.getPrototypeOf(i);return w===null?void 0:r(w,f,t)}else{if("value"in s)return s.value;var _=s.get;return _===void 0?void 0:_.call(t)}},g=h(0),p=o(g),y=h(7),c=o(y);function o(r){return r&&r.__esModule?r:{default:r}}function e(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function n(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function u(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var a="\uFEFF",l=function(r){u(i,r);function i(f){e(this,i);var t=n(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,f));return t.contentNode=document.createElement("span"),t.contentNode.setAttribute("contenteditable",!1),[].slice.call(t.domNode.childNodes).forEach(function(s){t.contentNode.appendChild(s)}),t.leftGuard=document.createTextNode(a),t.rightGuard=document.createTextNode(a),t.domNode.appendChild(t.leftGuard),t.domNode.appendChild(t.contentNode),t.domNode.appendChild(t.rightGuard),t}return A(i,[{key:"index",value:function(t,s){return t===this.leftGuard?0:t===this.rightGuard?1:x(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,t,s)}},{key:"restore",value:function(t){var s=void 0,w=void 0,_=t.data.split(a).join("");if(t===this.leftGuard)if(this.prev instanceof c.default){var E=this.prev.length();this.prev.insertAt(E,_),s={startNode:this.prev.domNode,startOffset:E+_.length}}else w=document.createTextNode(_),this.parent.insertBefore(p.default.create(w),this),s={startNode:w,startOffset:_.length};else t===this.rightGuard&&(this.next instanceof c.default?(this.next.insertAt(0,_),s={startNode:this.next.domNode,startOffset:_.length}):(w=document.createTextNode(_),this.parent.insertBefore(p.default.create(w),this.next),s={startNode:w,startOffset:_.length}));return t.data=a,s}},{key:"update",value:function(t,s){var w=this;t.forEach(function(_){if(_.type==="characterData"&&(_.target===w.leftGuard||_.target===w.rightGuard)){var E=w.restore(_.target);E&&(s.range=E)}})}}]),i}(p.default.Embed);d.default=l},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0}),d.AlignStyle=d.AlignClass=d.AlignAttribute=void 0;var A=h(0),x=g(A);function g(e){return e&&e.__esModule?e:{default:e}}var p={scope:x.default.Scope.BLOCK,whitelist:["right","center","justify"]},y=new x.default.Attributor.Attribute("align","align",p),c=new x.default.Attributor.Class("align","ql-align",p),o=new x.default.Attributor.Style("align","text-align",p);d.AlignAttribute=y,d.AlignClass=c,d.AlignStyle=o},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0}),d.BackgroundStyle=d.BackgroundClass=void 0;var A=h(0),x=p(A),g=h(26);function p(o){return o&&o.__esModule?o:{default:o}}var y=new x.default.Attributor.Class("background","ql-bg",{scope:x.default.Scope.INLINE}),c=new g.ColorAttributor("background","background-color",{scope:x.default.Scope.INLINE});d.BackgroundClass=y,d.BackgroundStyle=c},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0}),d.DirectionStyle=d.DirectionClass=d.DirectionAttribute=void 0;var A=h(0),x=g(A);function g(e){return e&&e.__esModule?e:{default:e}}var p={scope:x.default.Scope.BLOCK,whitelist:["rtl"]},y=new x.default.Attributor.Attribute("direction","dir",p),c=new x.default.Attributor.Class("direction","ql-direction",p),o=new x.default.Attributor.Style("direction","direction",p);d.DirectionAttribute=y,d.DirectionClass=c,d.DirectionStyle=o},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0}),d.FontClass=d.FontStyle=void 0;var A=function(){function r(i,f){for(var t=0;t<f.length;t++){var s=f[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}return function(i,f,t){return f&&r(i.prototype,f),t&&r(i,t),i}}(),x=function r(i,f,t){i===null&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,f);if(s===void 0){var w=Object.getPrototypeOf(i);return w===null?void 0:r(w,f,t)}else{if("value"in s)return s.value;var _=s.get;return _===void 0?void 0:_.call(t)}},g=h(0),p=y(g);function y(r){return r&&r.__esModule?r:{default:r}}function c(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function o(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function e(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var n={scope:p.default.Scope.INLINE,whitelist:["serif","monospace"]},u=new p.default.Attributor.Class("font","ql-font",n),a=function(r){e(i,r);function i(){return c(this,i),o(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return A(i,[{key:"value",value:function(t){return x(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"value",this).call(this,t).replace(/["']/g,"")}}]),i}(p.default.Attributor.Style),l=new a("font","font-family",n);d.FontStyle=l,d.FontClass=u},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0}),d.SizeStyle=d.SizeClass=void 0;var A=h(0),x=g(A);function g(c){return c&&c.__esModule?c:{default:c}}var p=new x.default.Attributor.Class("size","ql-size",{scope:x.default.Scope.INLINE,whitelist:["small","large","huge"]}),y=new x.default.Attributor.Style("size","font-size",{scope:x.default.Scope.INLINE,whitelist:["10px","18px","32px"]});d.SizeClass=p,d.SizeStyle=y},function(O,d,h){O.exports={align:{"":h(76),center:h(77),right:h(78),justify:h(79)},background:h(80),blockquote:h(81),bold:h(82),clean:h(83),code:h(58),"code-block":h(58),color:h(84),direction:{"":h(85),rtl:h(86)},float:{center:h(87),full:h(88),left:h(89),right:h(90)},formula:h(91),header:{1:h(92),2:h(93)},italic:h(94),image:h(95),indent:{"+1":h(96),"-1":h(97)},link:h(98),list:{ordered:h(99),bullet:h(100),check:h(101)},script:{sub:h(102),super:h(103)},strike:h(104),underline:h(105),video:h(106)}},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0}),d.getLastChangeIndex=d.default=void 0;var A=function(){function f(t,s){for(var w=0;w<s.length;w++){var _=s[w];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(t,_.key,_)}}return function(t,s,w){return s&&f(t.prototype,s),w&&f(t,w),t}}(),x=h(0),g=e(x),p=h(5),y=e(p),c=h(9),o=e(c);function e(f){return f&&f.__esModule?f:{default:f}}function n(f,t){if(!(f instanceof t))throw new TypeError("Cannot call a class as a function")}function u(f,t){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:f}function a(f,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);f.prototype=Object.create(t&&t.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(f,t):f.__proto__=t)}var l=function(f){a(t,f);function t(s,w){n(this,t);var _=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,s,w));return _.lastRecorded=0,_.ignoreChange=!1,_.clear(),_.quill.on(y.default.events.EDITOR_CHANGE,function(E,T,b,v){E!==y.default.events.TEXT_CHANGE||_.ignoreChange||(!_.options.userOnly||v===y.default.sources.USER?_.record(T,b):_.transform(T))}),_.quill.keyboard.addBinding({key:"Z",shortKey:!0},_.undo.bind(_)),_.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},_.redo.bind(_)),/Win/i.test(navigator.platform)&&_.quill.keyboard.addBinding({key:"Y",shortKey:!0},_.redo.bind(_)),_}return A(t,[{key:"change",value:function(w,_){if(this.stack[w].length!==0){var E=this.stack[w].pop();this.stack[_].push(E),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(E[w],y.default.sources.USER),this.ignoreChange=!1;var T=i(E[w]);this.quill.setSelection(T)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(w,_){if(w.ops.length!==0){this.stack.redo=[];var E=this.quill.getContents().diff(_),T=Date.now();if(this.lastRecorded+this.options.delay>T&&this.stack.undo.length>0){var b=this.stack.undo.pop();E=E.compose(b.undo),w=b.redo.compose(w)}else this.lastRecorded=T;this.stack.undo.push({redo:w,undo:E}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(w){this.stack.undo.forEach(function(_){_.undo=w.transform(_.undo,!0),_.redo=w.transform(_.redo,!0)}),this.stack.redo.forEach(function(_){_.undo=w.transform(_.undo,!0),_.redo=w.transform(_.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(o.default);l.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function r(f){var t=f.ops[f.ops.length-1];return t==null?!1:t.insert!=null?typeof t.insert=="string"&&t.insert.endsWith(` `):t.attributes!=null?Object.keys(t.attributes).some(function(s){return g.default.query(s,g.default.Scope.BLOCK)!=null}):!1}function i(f){var t=f.reduce(function(w,_){return w+=_.delete||0,w},0),s=f.length()-t;return r(f)&&(s-=1),s}d.default=l,d.getLastChangeIndex=i},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0}),d.default=d.BaseTooltip=void 0;var A=function(){function L(q,U){for(var C=0;C<U.length;C++){var j=U[C];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(q,j.key,j)}}return function(q,U,C){return U&&L(q.prototype,U),C&&L(q,C),q}}(),x=function L(q,U,C){q===null&&(q=Function.prototype);var j=Object.getOwnPropertyDescriptor(q,U);if(j===void 0){var I=Object.getPrototypeOf(q);return I===null?void 0:L(I,U,C)}else{if("value"in j)return j.value;var z=j.get;return z===void 0?void 0:z.call(C)}},g=h(3),p=T(g),y=h(2),c=T(y),o=h(8),e=T(o),n=h(23),u=T(n),a=h(34),l=T(a),r=h(59),i=T(r),f=h(60),t=T(f),s=h(28),w=T(s),_=h(61),E=T(_);function T(L){return L&&L.__esModule?L:{default:L}}function b(L,q){if(!(L instanceof q))throw new TypeError("Cannot call a class as a function")}function v(L,q){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return q&&(typeof q=="object"||typeof q=="function")?q:L}function m(L,q){if(typeof q!="function"&&q!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof q);L.prototype=Object.create(q&&q.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),q&&(Object.setPrototypeOf?Object.setPrototypeOf(L,q):L.__proto__=q)}var S=[!1,"center","right","justify"],N=["#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"],R=[!1,"serif","monospace"],B=["1","2","3",!1],F=["small",!1,"large","huge"],Z=function(L){m(q,L);function q(U,C){b(this,q);var j=v(this,(q.__proto__||Object.getPrototypeOf(q)).call(this,U,C)),I=function z(H){if(!document.body.contains(U.root))return document.body.removeEventListener("click",z);j.tooltip!=null&&!j.tooltip.root.contains(H.target)&&document.activeElement!==j.tooltip.textbox&&!j.quill.hasFocus()&&j.tooltip.hide(),j.pickers!=null&&j.pickers.forEach(function($){$.container.contains(H.target)||$.close()})};return U.emitter.listenDOM("click",document.body,I),j}return A(q,[{key:"addModule",value:function(C){var j=x(q.prototype.__proto__||Object.getPrototypeOf(q.prototype),"addModule",this).call(this,C);return C==="toolbar"&&this.extendToolbar(j),j}},{key:"buildButtons",value:function(C,j){C.forEach(function(I){var z=I.getAttribute("class")||"";z.split(/\s+/).forEach(function(H){if(H.startsWith("ql-")&&(H=H.slice(3),j[H]!=null))if(H==="direction")I.innerHTML=j[H][""]+j[H].rtl;else if(typeof j[H]=="string")I.innerHTML=j[H];else{var $=I.value||"";$!=null&&j[H][$]&&(I.innerHTML=j[H][$])}})})}},{key:"buildPickers",value:function(C,j){var I=this;this.pickers=C.map(function(H){if(H.classList.contains("ql-align"))return H.querySelector("option")==null&&k(H,S),new t.default(H,j.align);if(H.classList.contains("ql-background")||H.classList.contains("ql-color")){var $=H.classList.contains("ql-background")?"background":"color";return H.querySelector("option")==null&&k(H,N,$==="background"?"#ffffff":"#000000"),new i.default(H,j[$])}else return H.querySelector("option")==null&&(H.classList.contains("ql-font")?k(H,R):H.classList.contains("ql-header")?k(H,B):H.classList.contains("ql-size")&&k(H,F)),new w.default(H)});var z=function(){I.pickers.forEach(function($){$.update()})};this.quill.on(e.default.events.EDITOR_CHANGE,z)}}]),q}(l.default);Z.DEFAULTS=(0,p.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var q=this,U=this.container.querySelector("input.ql-image[type=file]");U==null&&(U=document.createElement("input"),U.setAttribute("type","file"),U.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),U.classList.add("ql-image"),U.addEventListener("change",function(){if(U.files!=null&&U.files[0]!=null){var C=new FileReader;C.onload=function(j){var I=q.quill.getSelection(!0);q.quill.updateContents(new c.default().retain(I.index).delete(I.length).insert({image:j.target.result}),e.default.sources.USER),q.quill.setSelection(I.index+1,e.default.sources.SILENT),U.value=""},C.readAsDataURL(U.files[0])}}),this.container.appendChild(U)),U.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var M=function(L){m(q,L);function q(U,C){b(this,q);var j=v(this,(q.__proto__||Object.getPrototypeOf(q)).call(this,U,C));return j.textbox=j.root.querySelector('input[type="text"]'),j.listen(),j}return A(q,[{key:"listen",value:function(){var C=this;this.textbox.addEventListener("keydown",function(j){u.default.match(j,"enter")?(C.save(),j.preventDefault()):u.default.match(j,"escape")&&(C.cancel(),j.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),j!=null?this.textbox.value=j:C!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+C)||""),this.root.setAttribute("data-mode",C)}},{key:"restoreFocus",value:function(){var C=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=C}},{key:"save",value:function(){var C=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var j=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",C,e.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",C,e.default.sources.USER)),this.quill.root.scrollTop=j;break}case"video":C=D(C);case"formula":{if(!C)break;var I=this.quill.getSelection(!0);if(I!=null){var z=I.index+I.length;this.quill.insertEmbed(z,this.root.getAttribute("data-mode"),C,e.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(z+1," ",e.default.sources.USER),this.quill.setSelection(z+2,e.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),q}(E.default);function D(L){var q=L.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||L.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return q?(q[1]||"https")+"://www.youtube.com/embed/"+q[2]+"?showinfo=0":(q=L.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(q[1]||"https")+"://player.vimeo.com/video/"+q[2]+"/":L}function k(L,q){var U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;q.forEach(function(C){var j=document.createElement("option");C===U?j.setAttribute("selected","selected"):j.setAttribute("value",C),L.appendChild(j)})}d.BaseTooltip=M,d.default=Z},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0});var A=function(){function x(){this.head=this.tail=null,this.length=0}return x.prototype.append=function(){for(var g=[],p=0;p<arguments.length;p++)g[p]=arguments[p];this.insertBefore(g[0],null),g.length>1&&this.append.apply(this,g.slice(1))},x.prototype.contains=function(g){for(var p,y=this.iterator();p=y();)if(p===g)return!0;return!1},x.prototype.insertBefore=function(g,p){g&&(g.next=p,p!=null?(g.prev=p.prev,p.prev!=null&&(p.prev.next=g),p.prev=g,p===this.head&&(this.head=g)):this.tail!=null?(this.tail.next=g,g.prev=this.tail,this.tail=g):(g.prev=null,this.head=this.tail=g),this.length+=1)},x.prototype.offset=function(g){for(var p=0,y=this.head;y!=null;){if(y===g)return p;p+=y.length(),y=y.next}return-1},x.prototype.remove=function(g){this.contains(g)&&(g.prev!=null&&(g.prev.next=g.next),g.next!=null&&(g.next.prev=g.prev),g===this.head&&(this.head=g.next),g===this.tail&&(this.tail=g.prev),this.length-=1)},x.prototype.iterator=function(g){return g===void 0&&(g=this.head),function(){var p=g;return g!=null&&(g=g.next),p}},x.prototype.find=function(g,p){p===void 0&&(p=!1);for(var y,c=this.iterator();y=c();){var o=y.length();if(g<o||p&&g===o&&(y.next==null||y.next.length()!==0))return[y,g];g-=o}return[null,0]},x.prototype.forEach=function(g){for(var p,y=this.iterator();p=y();)g(p)},x.prototype.forEachAt=function(g,p,y){if(!(p<=0))for(var c=this.find(g),o=c[0],e=c[1],n,u=g-e,a=this.iterator(o);(n=a())&&u<g+p;){var l=n.length();g>u?y(n,g-u,Math.min(p,u+l-g)):y(n,0,Math.min(l,g+p-u)),u+=l}},x.prototype.map=function(g){return this.reduce(function(p,y){return p.push(g(y)),p},[])},x.prototype.reduce=function(g,p){for(var y,c=this.iterator();y=c();)p=g(p,y);return p},x}();d.default=A},function(O,d,h){var A=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var u in n)n.hasOwnProperty(u)&&(e[u]=n[u])};return function(e,n){o(e,n);function u(){this.constructor=e}e.prototype=n===null?Object.create(n):(u.prototype=n.prototype,new u)}}();Object.defineProperty(d,"__esModule",{value:!0});var x=h(17),g=h(1),p={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},y=100,c=function(o){A(e,o);function e(n){var u=o.call(this,n)||this;return u.scroll=u,u.observer=new MutationObserver(function(a){u.update(a)}),u.observer.observe(u.domNode,p),u.attach(),u}return e.prototype.detach=function(){o.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(n,u){this.update(),n===0&&u===this.length()?this.children.forEach(function(a){a.remove()}):o.prototype.deleteAt.call(this,n,u)},e.prototype.formatAt=function(n,u,a,l){this.update(),o.prototype.formatAt.call(this,n,u,a,l)},e.prototype.insertAt=function(n,u,a){this.update(),o.prototype.insertAt.call(this,n,u,a)},e.prototype.optimize=function(n,u){var a=this;n===void 0&&(n=[]),u===void 0&&(u={}),o.prototype.optimize.call(this,u);for(var l=[].slice.call(this.observer.takeRecords());l.length>0;)n.push(l.pop());for(var r=function(s,w){w===void 0&&(w=!0),!(s==null||s===a)&&s.domNode.parentNode!=null&&(s.domNode[g.DATA_KEY].mutations==null&&(s.domNode[g.DATA_KEY].mutations=[]),w&&r(s.parent))},i=function(s){s.domNode[g.DATA_KEY]==null||s.domNode[g.DATA_KEY].mutations==null||(s instanceof x.default&&s.children.forEach(i),s.optimize(u))},f=n,t=0;f.length>0;t+=1){if(t>=y)throw new Error("[Parchment] Maximum optimize iterations reached");for(f.forEach(function(s){var w=g.find(s.target,!0);w!=null&&(w.domNode===s.target&&(s.type==="childList"?(r(g.find(s.previousSibling,!1)),[].forEach.call(s.addedNodes,function(_){var E=g.find(_,!1);r(E,!1),E instanceof x.default&&E.children.forEach(function(T){r(T,!1)})})):s.type==="attributes"&&r(w.prev)),r(w))}),this.children.forEach(i),f=[].slice.call(this.observer.takeRecords()),l=f.slice();l.length>0;)n.push(l.pop())}},e.prototype.update=function(n,u){var a=this;u===void 0&&(u={}),n=n||this.observer.takeRecords(),n.map(function(l){var r=g.find(l.target,!0);return r==null?null:r.domNode[g.DATA_KEY].mutations==null?(r.domNode[g.DATA_KEY].mutations=[l],r):(r.domNode[g.DATA_KEY].mutations.push(l),null)}).forEach(function(l){l==null||l===a||l.domNode[g.DATA_KEY]==null||l.update(l.domNode[g.DATA_KEY].mutations||[],u)}),this.domNode[g.DATA_KEY].mutations!=null&&o.prototype.update.call(this,this.domNode[g.DATA_KEY].mutations,u),this.optimize(n,u)},e.blotName="scroll",e.defaultChild="block",e.scope=g.Scope.BLOCK_BLOT,e.tagName="DIV",e}(x.default);d.default=c},function(O,d,h){var A=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var n in e)e.hasOwnProperty(n)&&(o[n]=e[n])};return function(o,e){c(o,e);function n(){this.constructor=o}o.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(d,"__esModule",{value:!0});var x=h(18),g=h(1);function p(c,o){if(Object.keys(c).length!==Object.keys(o).length)return!1;for(var e in c)if(c[e]!==o[e])return!1;return!0}var y=function(c){A(o,c);function o(){return c!==null&&c.apply(this,arguments)||this}return o.formats=function(e){if(e.tagName!==o.tagName)return c.formats.call(this,e)},o.prototype.format=function(e,n){var u=this;e===this.statics.blotName&&!n?(this.children.forEach(function(a){a instanceof x.default||(a=a.wrap(o.blotName,!0)),u.attributes.copy(a)}),this.unwrap()):c.prototype.format.call(this,e,n)},o.prototype.formatAt=function(e,n,u,a){if(this.formats()[u]!=null||g.query(u,g.Scope.ATTRIBUTE)){var l=this.isolate(e,n);l.format(u,a)}else c.prototype.formatAt.call(this,e,n,u,a)},o.prototype.optimize=function(e){c.prototype.optimize.call(this,e);var n=this.formats();if(Object.keys(n).length===0)return this.unwrap();var u=this.next;u instanceof o&&u.prev===this&&p(n,u.formats())&&(u.moveChildren(this),u.remove())},o.blotName="inline",o.scope=g.Scope.INLINE_BLOT,o.tagName="SPAN",o}(x.default);d.default=y},function(O,d,h){var A=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var e in o)o.hasOwnProperty(e)&&(c[e]=o[e])};return function(c,o){y(c,o);function e(){this.constructor=c}c.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(d,"__esModule",{value:!0});var x=h(18),g=h(1),p=function(y){A(c,y);function c(){return y!==null&&y.apply(this,arguments)||this}return c.formats=function(o){var e=g.query(c.blotName).tagName;if(o.tagName!==e)return y.formats.call(this,o)},c.prototype.format=function(o,e){g.query(o,g.Scope.BLOCK)!=null&&(o===this.statics.blotName&&!e?this.replaceWith(c.blotName):y.prototype.format.call(this,o,e))},c.prototype.formatAt=function(o,e,n,u){g.query(n,g.Scope.BLOCK)!=null?this.format(n,u):y.prototype.formatAt.call(this,o,e,n,u)},c.prototype.insertAt=function(o,e,n){if(n==null||g.query(e,g.Scope.INLINE)!=null)y.prototype.insertAt.call(this,o,e,n);else{var u=this.split(o),a=g.create(e,n);u.parent.insertBefore(a,u)}},c.prototype.update=function(o,e){navigator.userAgent.match(/Trident/)?this.build():y.prototype.update.call(this,o,e)},c.blotName="block",c.scope=g.Scope.BLOCK_BLOT,c.tagName="P",c}(x.default);d.default=p},function(O,d,h){var A=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,c){y.__proto__=c}||function(y,c){for(var o in c)c.hasOwnProperty(o)&&(y[o]=c[o])};return function(y,c){p(y,c);function o(){this.constructor=y}y.prototype=c===null?Object.create(c):(o.prototype=c.prototype,new o)}}();Object.defineProperty(d,"__esModule",{value:!0});var x=h(19),g=function(p){A(y,p);function y(){return p!==null&&p.apply(this,arguments)||this}return y.formats=function(c){},y.prototype.format=function(c,o){p.prototype.formatAt.call(this,0,this.length(),c,o)},y.prototype.formatAt=function(c,o,e,n){c===0&&o===this.length()?this.format(e,n):p.prototype.formatAt.call(this,c,o,e,n)},y.prototype.formats=function(){return this.statics.formats(this.domNode)},y}(x.default);d.default=g},function(O,d,h){var A=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var e in o)o.hasOwnProperty(e)&&(c[e]=o[e])};return function(c,o){y(c,o);function e(){this.constructor=c}c.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(d,"__esModule",{value:!0});var x=h(19),g=h(1),p=function(y){A(c,y);function c(o){var e=y.call(this,o)||this;return e.text=e.statics.value(e.domNode),e}return c.create=function(o){return document.createTextNode(o)},c.value=function(o){var e=o.data;return e.normalize&&(e=e.normalize()),e},c.prototype.deleteAt=function(o,e){this.domNode.data=this.text=this.text.slice(0,o)+this.text.slice(o+e)},c.prototype.index=function(o,e){return this.domNode===o?e:-1},c.prototype.insertAt=function(o,e,n){n==null?(this.text=this.text.slice(0,o)+e+this.text.slice(o),this.domNode.data=this.text):y.prototype.insertAt.call(this,o,e,n)},c.prototype.length=function(){return this.text.length},c.prototype.optimize=function(o){y.prototype.optimize.call(this,o),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof c&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},c.prototype.position=function(o,e){return[this.domNode,o]},c.prototype.split=function(o,e){if(e===void 0&&(e=!1),!e){if(o===0)return this;if(o===this.length())return this.next}var n=g.create(this.domNode.splitText(o));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},c.prototype.update=function(o,e){var n=this;o.some(function(u){return u.type==="characterData"&&u.target===n.domNode})&&(this.text=this.statics.value(this.domNode))},c.prototype.value=function(){return this.text},c.blotName="text",c.scope=g.Scope.INLINE_BLOT,c}(x.default);d.default=p},function(O,d,h){var A=document.createElement("div");if(A.classList.toggle("test-class",!1),A.classList.contains("test-class")){var x=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(g,p){return arguments.length>1&&!this.contains(g)==!p?p:x.call(this,g)}}String.prototype.startsWith||(String.prototype.startsWith=function(g,p){return p=p||0,this.substr(p,g.length)===g}),String.prototype.endsWith||(String.prototype.endsWith=function(g,p){var y=this.toString();(typeof p!="number"||!isFinite(p)||Math.floor(p)!==p||p>y.length)&&(p=y.length),p-=g.length;var c=y.indexOf(g,p);return c!==-1&&c===p}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(p){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof p!="function")throw new TypeError("predicate must be a function");for(var y=Object(this),c=y.length>>>0,o=arguments[1],e,n=0;n<c;n++)if(e=y[n],p.call(o,e,n,y))return e}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(O,d){var h=-1,A=1,x=0;function g(t,s,w){if(t==s)return t?[[x,t]]:[];(w<0||t.length<w)&&(w=null);var _=o(t,s),E=t.substring(0,_);t=t.substring(_),s=s.substring(_),_=e(t,s);var T=t.substring(t.length-_);t=t.substring(0,t.length-_),s=s.substring(0,s.length-_);var b=p(t,s);return E&&b.unshift([x,E]),T&&b.push([x,T]),u(b),w!=null&&(b=r(b,w)),b=i(b),b}function p(t,s){var w;if(!t)return[[A,s]];if(!s)return[[h,t]];var _=t.length>s.length?t:s,E=t.length>s.length?s:t,T=_.indexOf(E);if(T!=-1)return w=[[A,_.substring(0,T)],[x,E],[A,_.substring(T+E.length)]],t.length>s.length&&(w[0][0]=w[2][0]=h),w;if(E.length==1)return[[h,t],[A,s]];var b=n(t,s);if(b){var v=b[0],m=b[1],S=b[2],N=b[3],R=b[4],B=g(v,S),F=g(m,N);return B.concat([[x,R]],F)}return y(t,s)}function y(t,s){for(var w=t.length,_=s.length,E=Math.ceil((w+_)/2),T=E,b=2*E,v=new Array(b),m=new Array(b),S=0;S<b;S++)v[S]=-1,m[S]=-1;v[T+1]=0,m[T+1]=0;for(var N=w-_,R=N%2!=0,B=0,F=0,Z=0,M=0,D=0;D<E;D++){for(var k=-D+B;k<=D-F;k+=2){var L=T+k,q;k==-D||k!=D&&v[L-1]<v[L+1]?q=v[L+1]:q=v[L-1]+1;for(var U=q-k;q<w&&U<_&&t.charAt(q)==s.charAt(U);)q++,U++;if(v[L]=q,q>w)F+=2;else if(U>_)B+=2;else if(R){var C=T+N-k;if(C>=0&&C<b&&m[C]!=-1){var j=w-m[C];if(q>=j)return c(t,s,q,U)}}}for(var I=-D+Z;I<=D-M;I+=2){var C=T+I,j;I==-D||I!=D&&m[C-1]<m[C+1]?j=m[C+1]:j=m[C-1]+1;for(var z=j-I;j<w&&z<_&&t.charAt(w-j-1)==s.charAt(_-z-1);)j++,z++;if(m[C]=j,j>w)M+=2;else if(z>_)Z+=2;else if(!R){var L=T+N-I;if(L>=0&&L<b&&v[L]!=-1){var q=v[L],U=T+q-L;if(j=w-j,q>=j)return c(t,s,q,U)}}}}return[[h,t],[A,s]]}function c(t,s,w,_){var E=t.substring(0,w),T=s.substring(0,_),b=t.substring(w),v=s.substring(_),m=g(E,T),S=g(b,v);return m.concat(S)}function o(t,s){if(!t||!s||t.charAt(0)!=s.charAt(0))return 0;for(var w=0,_=Math.min(t.length,s.length),E=_,T=0;w<E;)t.substring(T,E)==s.substring(T,E)?(w=E,T=w):_=E,E=Math.floor((_-w)/2+w);return E}function e(t,s){if(!t||!s||t.charAt(t.length-1)!=s.charAt(s.length-1))return 0;for(var w=0,_=Math.min(t.length,s.length),E=_,T=0;w<E;)t.substring(t.length-E,t.length-T)==s.substring(s.length-E,s.length-T)?(w=E,T=w):_=E,E=Math.floor((_-w)/2+w);return E}function n(t,s){var w=t.length>s.length?t:s,_=t.length>s.length?s:t;if(w.length<4||_.length*2<w.length)return null;function E(F,Z,M){for(var D=F.substring(M,M+Math.floor(F.length/4)),k=-1,L="",q,U,C,j;(k=Z.indexOf(D,k+1))!=-1;){var I=o(F.substring(M),Z.substring(k)),z=e(F.substring(0,M),Z.substring(0,k));L.length<z+I&&(L=Z.substring(k-z,k)+Z.substring(k,k+I),q=F.substring(0,M-z),U=F.substring(M+I),C=Z.substring(0,k-z),j=Z.substring(k+I))}return L.length*2>=F.length?[q,U,C,j,L]:null}var T=E(w,_,Math.ceil(w.length/4)),b=E(w,_,Math.ceil(w.length/2)),v;if(!T&&!b)return null;b?T?v=T[4].length>b[4].length?T:b:v=b:v=T;var m,S,N,R;t.length>s.length?(m=v[0],S=v[1],N=v[2],R=v[3]):(N=v[0],R=v[1],m=v[2],S=v[3]);var B=v[4];return[m,S,N,R,B]}function u(t){t.push([x,""]);for(var s=0,w=0,_=0,E="",T="",b;s<t.length;)switch(t[s][0]){case A:_++,T+=t[s][1],s++;break;case h:w++,E+=t[s][1],s++;break;case x:w+_>1?(w!==0&&_!==0&&(b=o(T,E),b!==0&&(s-w-_>0&&t[s-w-_-1][0]==x?t[s-w-_-1][1]+=T.substring(0,b):(t.splice(0,0,[x,T.substring(0,b)]),s++),T=T.substring(b),E=E.substring(b)),b=e(T,E),b!==0&&(t[s][1]=T.substring(T.length-b)+t[s][1],T=T.substring(0,T.length-b),E=E.substring(0,E.length-b))),w===0?t.splice(s-_,w+_,[A,T]):_===0?t.splice(s-w,w+_,[h,E]):t.splice(s-w-_,w+_,[h,E],[A,T]),s=s-w-_+(w?1:0)+(_?1:0)+1):s!==0&&t[s-1][0]==x?(t[s-1][1]+=t[s][1],t.splice(s,1)):s++,_=0,w=0,E="",T="";break}t[t.length-1][1]===""&&t.pop();var v=!1;for(s=1;s<t.length-1;)t[s-1][0]==x&&t[s+1][0]==x&&(t[s][1].substring(t[s][1].length-t[s-1][1].length)==t[s-1][1]?(t[s][1]=t[s-1][1]+t[s][1].substring(0,t[s][1].length-t[s-1][1].length),t[s+1][1]=t[s-1][1]+t[s+1][1],t.splice(s-1,1),v=!0):t[s][1].substring(0,t[s+1][1].length)==t[s+1][1]&&(t[s-1][1]+=t[s+1][1],t[s][1]=t[s][1].substring(t[s+1][1].length)+t[s+1][1],t.splice(s+1,1),v=!0)),s++;v&&u(t)}var a=g;a.INSERT=A,a.DELETE=h,a.EQUAL=x,O.exports=a;function l(t,s){if(s===0)return[x,t];for(var w=0,_=0;_<t.length;_++){var E=t[_];if(E[0]===h||E[0]===x){var T=w+E[1].length;if(s===T)return[_+1,t];if(s<T){t=t.slice();var b=s-w,v=[E[0],E[1].slice(0,b)],m=[E[0],E[1].slice(b)];return t.splice(_,1,v,m),[_+1,t]}else w=T}}throw new Error("cursor_pos is out of bounds!")}function r(t,s){var w=l(t,s),_=w[1],E=w[0],T=_[E],b=_[E+1];if(T==null)return t;if(T[0]!==x)return t;if(b!=null&&T[1]+b[1]===b[1]+T[1])return _.splice(E,2,b,T),f(_,E,2);if(b!=null&&b[1].indexOf(T[1])===0){_.splice(E,2,[b[0],T[1]],[0,T[1]]);var v=b[1].slice(T[1].length);return v.length>0&&_.splice(E+2,0,[b[0],v]),f(_,E,3)}else return t}function i(t){for(var s=!1,w=function(b){return b.charCodeAt(0)>=56320&&b.charCodeAt(0)<=57343},_=function(b){return b.charCodeAt(b.length-1)>=55296&&b.charCodeAt(b.length-1)<=56319},E=2;E<t.length;E+=1)t[E-2][0]===x&&_(t[E-2][1])&&t[E-1][0]===h&&w(t[E-1][1])&&t[E][0]===A&&w(t[E][1])&&(s=!0,t[E-1][1]=t[E-2][1].slice(-1)+t[E-1][1],t[E][1]=t[E-2][1].slice(-1)+t[E][1],t[E-2][1]=t[E-2][1].slice(0,-1));if(!s)return t;for(var T=[],E=0;E<t.length;E+=1)t[E][1].length>0&&T.push(t[E]);return T}function f(t,s,w){for(var _=s+w-1;_>=0&&_>=s-1;_--)if(_+1<t.length){var E=t[_],T=t[_+1];E[0]===T[1]&&t.splice(_,2,[E[0],E[1]+T[1]])}return t}},function(O,d){d=O.exports=typeof Object.keys=="function"?Object.keys:h,d.shim=h;function h(A){var x=[];for(var g in A)x.push(g);return x}},function(O,d){var h=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";d=O.exports=h?A:x,d.supported=A;function A(g){return Object.prototype.toString.call(g)=="[object Arguments]"}d.unsupported=x;function x(g){return g&&typeof g=="object"&&typeof g.length=="number"&&Object.prototype.hasOwnProperty.call(g,"callee")&&!Object.prototype.propertyIsEnumerable.call(g,"callee")||!1}},function(O,d){var h=Object.prototype.hasOwnProperty,A="~";function x(){}Object.create&&(x.prototype=Object.create(null),new x().__proto__||(A=!1));function g(y,c,o){this.fn=y,this.context=c,this.once=o||!1}function p(){this._events=new x,this._eventsCount=0}p.prototype.eventNames=function(){var c=[],o,e;if(this._eventsCount===0)return c;for(e in o=this._events)h.call(o,e)&&c.push(A?e.slice(1):e);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(o)):c},p.prototype.listeners=function(c,o){var e=A?A+c:c,n=this._events[e];if(o)return!!n;if(!n)return[];if(n.fn)return[n.fn];for(var u=0,a=n.length,l=new Array(a);u<a;u++)l[u]=n[u].fn;return l},p.prototype.emit=function(c,o,e,n,u,a){var l=A?A+c:c;if(!this._events[l])return!1;var r=this._events[l],i=arguments.length,f,t;if(r.fn){switch(r.once&&this.removeListener(c,r.fn,void 0,!0),i){case 1:return r.fn.call(r.context),!0;case 2:return r.fn.call(r.context,o),!0;case 3:return r.fn.call(r.context,o,e),!0;case 4:return r.fn.call(r.context,o,e,n),!0;case 5:return r.fn.call(r.context,o,e,n,u),!0;case 6:return r.fn.call(r.context,o,e,n,u,a),!0}for(t=1,f=new Array(i-1);t<i;t++)f[t-1]=arguments[t];r.fn.apply(r.context,f)}else{var s=r.length,w;for(t=0;t<s;t++)switch(r[t].once&&this.removeListener(c,r[t].fn,void 0,!0),i){case 1:r[t].fn.call(r[t].context);break;case 2:r[t].fn.call(r[t].context,o);break;case 3:r[t].fn.call(r[t].context,o,e);break;case 4:r[t].fn.call(r[t].context,o,e,n);break;default:if(!f)for(w=1,f=new Array(i-1);w<i;w++)f[w-1]=arguments[w];r[t].fn.apply(r[t].context,f)}}return!0},p.prototype.on=function(c,o,e){var n=new g(o,e||this),u=A?A+c:c;return this._events[u]?this._events[u].fn?this._events[u]=[this._events[u],n]:this._events[u].push(n):(this._events[u]=n,this._eventsCount++),this},p.prototype.once=function(c,o,e){var n=new g(o,e||this,!0),u=A?A+c:c;return this._events[u]?this._events[u].fn?this._events[u]=[this._events[u],n]:this._events[u].push(n):(this._events[u]=n,this._eventsCount++),this},p.prototype.removeListener=function(c,o,e,n){var u=A?A+c:c;if(!this._events[u])return this;if(!o)return--this._eventsCount===0?this._events=new x:delete this._events[u],this;var a=this._events[u];if(a.fn)a.fn===o&&(!n||a.once)&&(!e||a.context===e)&&(--this._eventsCount===0?this._events=new x:delete this._events[u]);else{for(var l=0,r=[],i=a.length;l<i;l++)(a[l].fn!==o||n&&!a[l].once||e&&a[l].context!==e)&&r.push(a[l]);r.length?this._events[u]=r.length===1?r[0]:r:--this._eventsCount===0?this._events=new x:delete this._events[u]}return this},p.prototype.removeAllListeners=function(c){var o;return c?(o=A?A+c:c,this._events[o]&&(--this._eventsCount===0?this._events=new x:delete this._events[o])):(this._events=new x,this._eventsCount=0),this},p.prototype.off=p.prototype.removeListener,p.prototype.addListener=p.prototype.on,p.prototype.setMaxListeners=function(){return this},p.prefixed=A,p.EventEmitter=p,typeof O<"u"&&(O.exports=p)},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0}),d.matchText=d.matchSpacing=d.matchNewline=d.matchBlot=d.matchAttributor=d.default=void 0;var A=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(K){return typeof K}:function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},x=function(){function K(W,Y){var X=[],G=!0,ne=!1,re=void 0;try{for(var ie=W[Symbol.iterator](),be;!(G=(be=ie.next()).done)&&(X.push(be.value),!(Y&&X.length===Y));G=!0);}catch(ke){ne=!0,re=ke}finally{try{!G&&ie.return&&ie.return()}finally{if(ne)throw re}}return X}return function(W,Y){if(Array.isArray(W))return W;if(Symbol.iterator in Object(W))return K(W,Y);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(){function K(W,Y){for(var X=0;X<Y.length;X++){var G=Y[X];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(W,G.key,G)}}return function(W,Y,X){return Y&&K(W.prototype,Y),X&&K(W,X),W}}(),p=h(3),y=m(p),c=h(2),o=m(c),e=h(0),n=m(e),u=h(5),a=m(u),l=h(10),r=m(l),i=h(9),f=m(i),t=h(36),s=h(37),w=h(13),_=m(w),E=h(26),T=h(38),b=h(39),v=h(40);function m(K){return K&&K.__esModule?K:{default:K}}function S(K,W,Y){return W in K?Object.defineProperty(K,W,{value:Y,enumerable:!0,configurable:!0,writable:!0}):K[W]=Y,K}function N(K,W){if(!(K instanceof W))throw new TypeError("Cannot call a class as a function")}function R(K,W){if(!K)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W&&(typeof W=="object"||typeof W=="function")?W:K}function B(K,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof W);K.prototype=Object.create(W&&W.prototype,{constructor:{value:K,enumerable:!1,writable:!0,configurable:!0}}),W&&(Object.setPrototypeOf?Object.setPrototypeOf(K,W):K.__proto__=W)}var F=(0,r.default)("quill:clipboard"),Z="__ql-matcher",M=[[Node.TEXT_NODE,he],[Node.TEXT_NODE,oe],["br",J],[Node.ELEMENT_NODE,oe],[Node.ELEMENT_NODE,$],[Node.ELEMENT_NODE,le],[Node.ELEMENT_NODE,H],[Node.ELEMENT_NODE,ye],["li",te],["b",z.bind(z,"bold")],["i",z.bind(z,"italic")],["style",ee]],D=[t.AlignAttribute,T.DirectionAttribute].reduce(function(K,W){return K[W.keyName]=W,K},{}),k=[t.AlignStyle,s.BackgroundStyle,E.ColorStyle,T.DirectionStyle,b.FontStyle,v.SizeStyle].reduce(function(K,W){return K[W.keyName]=W,K},{}),L=function(K){B(W,K);function W(Y,X){N(this,W);var G=R(this,(W.__proto__||Object.getPrototypeOf(W)).call(this,Y,X));return G.quill.root.addEventListener("paste",G.onPaste.bind(G)),G.container=G.quill.addContainer("ql-clipboard"),G.container.setAttribute("contenteditable",!0),G.container.setAttribute("tabindex",-1),G.matchers=[],M.concat(G.options.matchers).forEach(function(ne){var re=x(ne,2),ie=re[0],be=re[1];!X.matchVisual&&be===le||G.addMatcher(ie,be)}),G}return g(W,[{key:"addMatcher",value:function(X,G){this.matchers.push([X,G])}},{key:"convert",value:function(X){if(typeof X=="string")return this.container.innerHTML=X.replace(/\>\r?\n +\</g,"><"),this.convert();var G=this.quill.getFormat(this.quill.selection.savedRange.index);if(G[_.default.blotName]){var ne=this.container.innerText;return this.container.innerHTML="",new o.default().insert(ne,S({},_.default.blotName,G[_.default.blotName]))}var re=this.prepareMatching(),ie=x(re,2),be=ie[0],ke=ie[1],se=I(this.container,be,ke);return C(se,` `)&&se.ops[se.ops.length-1].attributes==null&&(se=se.compose(new o.default().retain(se.length()-1).delete(1))),F.log("convert",this.container.innerHTML,se),this.container.innerHTML="",se}},{key:"dangerouslyPasteHTML",value:function(X,G){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:a.default.sources.API;if(typeof X=="string")this.quill.setContents(this.convert(X),G),this.quill.setSelection(0,a.default.sources.SILENT);else{var re=this.convert(G);this.quill.updateContents(new o.default().retain(X).concat(re),ne),this.quill.setSelection(X+re.length(),a.default.sources.SILENT)}}},{key:"onPaste",value:function(X){var G=this;if(!(X.defaultPrevented||!this.quill.isEnabled())){var ne=this.quill.getSelection(),re=new o.default().retain(ne.index),ie=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(a.default.sources.SILENT),setTimeout(function(){re=re.concat(G.convert()).delete(ne.length),G.quill.updateContents(re,a.default.sources.USER),G.quill.setSelection(re.length()-ne.length,a.default.sources.SILENT),G.quill.scrollingContainer.scrollTop=ie,G.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var X=this,G=[],ne=[];return this.matchers.forEach(function(re){var ie=x(re,2),be=ie[0],ke=ie[1];switch(be){case Node.TEXT_NODE:ne.push(ke);break;case Node.ELEMENT_NODE:G.push(ke);break;default:[].forEach.call(X.container.querySelectorAll(be),function(se){se[Z]=se[Z]||[],se[Z].push(ke)});break}}),[G,ne]}}]),W}(f.default);L.DEFAULTS={matchers:[],matchVisual:!0};function q(K,W,Y){return(typeof W>"u"?"undefined":A(W))==="object"?Object.keys(W).reduce(function(X,G){return q(X,G,W[G])},K):K.reduce(function(X,G){return G.attributes&&G.attributes[W]?X.push(G):X.insert(G.insert,(0,y.default)({},S({},W,Y),G.attributes))},new o.default)}function U(K){if(K.nodeType!==Node.ELEMENT_NODE)return{};var W="__ql-computed-style";return K[W]||(K[W]=window.getComputedStyle(K))}function C(K,W){for(var Y="",X=K.ops.length-1;X>=0&&Y.length<W.length;--X){var G=K.ops[X];if(typeof G.insert!="string")break;Y=G.insert+Y}return Y.slice(-1*W.length)===W}function j(K){if(K.childNodes.length===0)return!1;var W=U(K);return["block","list-item"].indexOf(W.display)>-1}function I(K,W,Y){return K.nodeType===K.TEXT_NODE?Y.reduce(function(X,G){return G(K,X)},new o.default):K.nodeType===K.ELEMENT_NODE?[].reduce.call(K.childNodes||[],function(X,G){var ne=I(G,W,Y);return G.nodeType===K.ELEMENT_NODE&&(ne=W.reduce(function(re,ie){return ie(G,re)},ne),ne=(G[Z]||[]).reduce(function(re,ie){return ie(G,re)},ne)),X.concat(ne)},new o.default):new o.default}function z(K,W,Y){return q(Y,K,!0)}function H(K,W){var Y=n.default.Attributor.Attribute.keys(K),X=n.default.Attributor.Class.keys(K),G=n.default.Attributor.Style.keys(K),ne={};return Y.concat(X).concat(G).forEach(function(re){var ie=n.default.query(re,n.default.Scope.ATTRIBUTE);ie!=null&&(ne[ie.attrName]=ie.value(K),ne[ie.attrName])||(ie=D[re],ie!=null&&(ie.attrName===re||ie.keyName===re)&&(ne[ie.attrName]=ie.value(K)||void 0),ie=k[re],ie!=null&&(ie.attrName===re||ie.keyName===re)&&(ie=k[re],ne[ie.attrName]=ie.value(K)||void 0))}),Object.keys(ne).length>0&&(W=q(W,ne)),W}function $(K,W){var Y=n.default.query(K);if(Y==null)return W;if(Y.prototype instanceof n.default.Embed){var X={},G=Y.value(K);G!=null&&(X[Y.blotName]=G,W=new o.default().insert(X,Y.formats(K)))}else typeof Y.formats=="function"&&(W=q(W,Y.blotName,Y.formats(K)));return W}function J(K,W){return C(W,` `)||W.insert(` `),W}function ee(){return new o.default}function te(K,W){var Y=n.default.query(K);if(Y==null||Y.blotName!=="list-item"||!C(W,` `))return W;for(var X=-1,G=K.parentNode;!G.classList.contains("ql-clipboard");)(n.default.query(G)||{}).blotName==="list"&&(X+=1),G=G.parentNode;return X<=0?W:W.compose(new o.default().retain(W.length()-1).retain(1,{indent:X}))}function oe(K,W){return C(W,` `)||(j(K)||W.length()>0&&K.nextSibling&&j(K.nextSibling))&&W.insert(` `),W}function le(K,W){if(j(K)&&K.nextElementSibling!=null&&!C(W,` `)){var Y=K.offsetHeight+parseFloat(U(K).marginTop)+parseFloat(U(K).marginBottom);K.nextElementSibling.offsetTop>K.offsetTop+Y*1.5&&W.insert(` `)}return W}function ye(K,W){var Y={},X=K.style||{};return X.fontStyle&&U(K).fontStyle==="italic"&&(Y.italic=!0),X.fontWeight&&(U(K).fontWeight.startsWith("bold")||parseInt(U(K).fontWeight)>=700)&&(Y.bold=!0),Object.keys(Y).length>0&&(W=q(W,Y)),parseFloat(X.textIndent||0)>0&&(W=new o.default().insert(" ").concat(W)),W}function he(K,W){var Y=K.data;if(K.parentNode.tagName==="O:P")return W.insert(Y.trim());if(Y.trim().length===0&&K.parentNode.classList.contains("ql-clipboard"))return W;if(!U(K.parentNode).whiteSpace.startsWith("pre")){var X=function(ne,re){return re=re.replace(/[^\u00a0]/g,""),re.length<1&&ne?" ":re};Y=Y.replace(/\r\n/g," ").replace(/\n/g," "),Y=Y.replace(/\s\s+/g,X.bind(X,!0)),(K.previousSibling==null&&j(K.parentNode)||K.previousSibling!=null&&j(K.previousSibling))&&(Y=Y.replace(/^\s+/,X.bind(X,!1))),(K.nextSibling==null&&j(K.parentNode)||K.nextSibling!=null&&j(K.nextSibling))&&(Y=Y.replace(/\s+$/,X.bind(X,!1)))}return W.insert(Y)}d.default=L,d.matchAttributor=H,d.matchBlot=$,d.matchNewline=oe,d.matchSpacing=le,d.matchText=he},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0});var A=function(){function u(a,l){for(var r=0;r<l.length;r++){var i=l[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(a,i.key,i)}}return function(a,l,r){return l&&u(a.prototype,l),r&&u(a,r),a}}(),x=function u(a,l,r){a===null&&(a=Function.prototype);var i=Object.getOwnPropertyDescriptor(a,l);if(i===void 0){var f=Object.getPrototypeOf(a);return f===null?void 0:u(f,l,r)}else{if("value"in i)return i.value;var t=i.get;return t===void 0?void 0:t.call(r)}},g=h(6),p=y(g);function y(u){return u&&u.__esModule?u:{default:u}}function c(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}function o(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:u}function e(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);u.prototype=Object.create(a&&a.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(u,a):u.__proto__=a)}var n=function(u){e(a,u);function a(){return c(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return A(a,[{key:"optimize",value:function(r){x(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"optimize",this).call(this,r),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return x(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),a}(p.default);n.blotName="bold",n.tagName=["STRONG","B"],d.default=n},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0}),d.addControls=d.default=void 0;var A=function(){function v(m,S){var N=[],R=!0,B=!1,F=void 0;try{for(var Z=m[Symbol.iterator](),M;!(R=(M=Z.next()).done)&&(N.push(M.value),!(S&&N.length===S));R=!0);}catch(D){B=!0,F=D}finally{try{!R&&Z.return&&Z.return()}finally{if(B)throw F}}return N}return function(m,S){if(Array.isArray(m))return m;if(Symbol.iterator in Object(m))return v(m,S);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),x=function(){function v(m,S){for(var N=0;N<S.length;N++){var R=S[N];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(m,R.key,R)}}return function(m,S,N){return S&&v(m.prototype,S),N&&v(m,N),m}}(),g=h(2),p=r(g),y=h(0),c=r(y),o=h(5),e=r(o),n=h(10),u=r(n),a=h(9),l=r(a);function r(v){return v&&v.__esModule?v:{default:v}}function i(v,m,S){return m in v?Object.defineProperty(v,m,{value:S,enumerable:!0,configurable:!0,writable:!0}):v[m]=S,v}function f(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function t(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function s(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var w=(0,u.default)("quill:toolbar"),_=function(v){s(m,v);function m(S,N){f(this,m);var R=t(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,S,N));if(Array.isArray(R.options.container)){var B=document.createElement("div");T(B,R.options.container),S.container.parentNode.insertBefore(B,S.container),R.container=B}else typeof R.options.container=="string"?R.container=document.querySelector(R.options.container):R.container=R.options.container;if(!(R.container instanceof HTMLElement)){var F;return F=w.error("Container required for toolbar",R.options),t(R,F)}return R.container.classList.add("ql-toolbar"),R.controls=[],R.handlers={},Object.keys(R.options.handlers).forEach(function(Z){R.addHandler(Z,R.options.handlers[Z])}),[].forEach.call(R.container.querySelectorAll("button, select"),function(Z){R.attach(Z)}),R.quill.on(e.default.events.EDITOR_CHANGE,function(Z,M){Z===e.default.events.SELECTION_CHANGE&&R.update(M)}),R.quill.on(e.default.events.SCROLL_OPTIMIZE,function(){var Z=R.quill.selection.getRange(),M=A(Z,1),D=M[0];R.update(D)}),R}return x(m,[{key:"addHandler",value:function(N,R){this.handlers[N]=R}},{key:"attach",value:function(N){var R=this,B=[].find.call(N.classList,function(Z){return Z.indexOf("ql-")===0});if(B){if(B=B.slice(3),N.tagName==="BUTTON"&&N.setAttribute("type","button"),this.handlers[B]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[B]==null){w.warn("ignoring attaching to disabled format",B,N);return}if(c.default.query(B)==null){w.warn("ignoring attaching to nonexistent format",B,N);return}}var F=N.tagName==="SELECT"?"change":"click";N.addEventListener(F,function(Z){var M=void 0;if(N.tagName==="SELECT"){if(N.selectedIndex<0)return;var D=N.options[N.selectedIndex];D.hasAttribute("selected")?M=!1:M=D.value||!1}else N.classList.contains("ql-active")?M=!1:M=N.value||!N.hasAttribute("value"),Z.preventDefault();R.quill.focus();var k=R.quill.selection.getRange(),L=A(k,1),q=L[0];if(R.handlers[B]!=null)R.handlers[B].call(R,M);else if(c.default.query(B).prototype instanceof c.default.Embed){if(M=prompt("Enter "+B),!M)return;R.quill.updateContents(new p.default().retain(q.index).delete(q.length).insert(i({},B,M)),e.default.sources.USER)}else R.quill.format(B,M,e.default.sources.USER);R.update(q)}),this.controls.push([B,N])}}},{key:"update",value:function(N){var R=N==null?{}:this.quill.getFormat(N);this.controls.forEach(function(B){var F=A(B,2),Z=F[0],M=F[1];if(M.tagName==="SELECT"){var D=void 0;if(N==null)D=null;else if(R[Z]==null)D=M.querySelector("option[selected]");else if(!Array.isArray(R[Z])){var k=R[Z];typeof k=="string"&&(k=k.replace(/\"/g,'\\"')),D=M.querySelector('option[value="'+k+'"]')}D==null?(M.value="",M.selectedIndex=-1):D.selected=!0}else if(N==null)M.classList.remove("ql-active");else if(M.hasAttribute("value")){var L=R[Z]===M.getAttribute("value")||R[Z]!=null&&R[Z].toString()===M.getAttribute("value")||R[Z]==null&&!M.getAttribute("value");M.classList.toggle("ql-active",L)}else M.classList.toggle("ql-active",R[Z]!=null)})}}]),m}(l.default);_.DEFAULTS={};function E(v,m,S){var N=document.createElement("button");N.setAttribute("type","button"),N.classList.add("ql-"+m),S!=null&&(N.value=S),v.appendChild(N)}function T(v,m){Array.isArray(m[0])||(m=[m]),m.forEach(function(S){var N=document.createElement("span");N.classList.add("ql-formats"),S.forEach(function(R){if(typeof R=="string")E(N,R);else{var B=Object.keys(R)[0],F=R[B];Array.isArray(F)?b(N,B,F):E(N,B,F)}}),v.appendChild(N)})}function b(v,m,S){var N=document.createElement("select");N.classList.add("ql-"+m),S.forEach(function(R){var B=document.createElement("option");R!==!1?B.setAttribute("value",R):B.setAttribute("selected","selected"),N.appendChild(B)}),v.appendChild(N)}_.DEFAULTS={container:null,handlers:{clean:function(){var m=this,S=this.quill.getSelection();if(S!=null)if(S.length==0){var N=this.quill.getFormat();Object.keys(N).forEach(function(R){c.default.query(R,c.default.Scope.INLINE)!=null&&m.quill.format(R,!1)})}else this.quill.removeFormat(S,e.default.sources.USER)},direction:function(m){var S=this.quill.getFormat().align;m==="rtl"&&S==null?this.quill.format("align","right",e.default.sources.USER):!m&&S==="right"&&this.quill.format("align",!1,e.default.sources.USER),this.quill.format("direction",m,e.default.sources.USER)},indent:function(m){var S=this.quill.getSelection(),N=this.quill.getFormat(S),R=parseInt(N.indent||0);if(m==="+1"||m==="-1"){var B=m==="+1"?1:-1;N.direction==="rtl"&&(B*=-1),this.quill.format("indent",R+B,e.default.sources.USER)}},link:function(m){m===!0&&(m=prompt("Enter link URL:")),this.quill.format("link",m,e.default.sources.USER)},list:function(m){var S=this.quill.getSelection(),N=this.quill.getFormat(S);m==="check"?N.list==="checked"||N.list==="unchecked"?this.quill.format("list",!1,e.default.sources.USER):this.quill.format("list","unchecked",e.default.sources.USER):this.quill.format("list",m,e.default.sources.USER)}}},d.default=_,d.addControls=T},function(O,d){O.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0});var A=function(){function u(a,l){for(var r=0;r<l.length;r++){var i=l[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(a,i.key,i)}}return function(a,l,r){return l&&u(a.prototype,l),r&&u(a,r),a}}(),x=function u(a,l,r){a===null&&(a=Function.prototype);var i=Object.getOwnPropertyDescriptor(a,l);if(i===void 0){var f=Object.getPrototypeOf(a);return f===null?void 0:u(f,l,r)}else{if("value"in i)return i.value;var t=i.get;return t===void 0?void 0:t.call(r)}},g=h(28),p=y(g);function y(u){return u&&u.__esModule?u:{default:u}}function c(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}function o(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:u}function e(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);u.prototype=Object.create(a&&a.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(u,a):u.__proto__=a)}var n=function(u){e(a,u);function a(l,r){c(this,a);var i=o(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,l));return i.label.innerHTML=r,i.container.classList.add("ql-color-picker"),[].slice.call(i.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(f){f.classList.add("ql-primary")}),i}return A(a,[{key:"buildItem",value:function(r){var i=x(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"buildItem",this).call(this,r);return i.style.backgroundColor=r.getAttribute("value")||"",i}},{key:"selectItem",value:function(r,i){x(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"selectItem",this).call(this,r,i);var f=this.label.querySelector(".ql-color-label"),t=r&&r.getAttribute("data-value")||"";f&&(f.tagName==="line"?f.style.stroke=t:f.style.fill=t)}}]),a}(p.default);d.default=n},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0});var A=function(){function u(a,l){for(var r=0;r<l.length;r++){var i=l[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(a,i.key,i)}}return function(a,l,r){return l&&u(a.prototype,l),r&&u(a,r),a}}(),x=function u(a,l,r){a===null&&(a=Function.prototype);var i=Object.getOwnPropertyDescriptor(a,l);if(i===void 0){var f=Object.getPrototypeOf(a);return f===null?void 0:u(f,l,r)}else{if("value"in i)return i.value;var t=i.get;return t===void 0?void 0:t.call(r)}},g=h(28),p=y(g);function y(u){return u&&u.__esModule?u:{default:u}}function c(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}function o(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:u}function e(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);u.prototype=Object.create(a&&a.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(u,a):u.__proto__=a)}var n=function(u){e(a,u);function a(l,r){c(this,a);var i=o(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,l));return i.container.classList.add("ql-icon-picker"),[].forEach.call(i.container.querySelectorAll(".ql-picker-item"),function(f){f.innerHTML=r[f.getAttribute("data-value")||""]}),i.defaultItem=i.container.querySelector(".ql-selected"),i.selectItem(i.defaultItem),i}return A(a,[{key:"selectItem",value:function(r,i){x(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"selectItem",this).call(this,r,i),r=r||this.defaultItem,this.label.innerHTML=r.innerHTML}}]),a}(p.default);d.default=n},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0});var A=function(){function p(y,c){for(var o=0;o<c.length;o++){var e=c[o];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(y,e.key,e)}}return function(y,c,o){return c&&p(y.prototype,c),o&&p(y,o),y}}();function x(p,y){if(!(p instanceof y))throw new TypeError("Cannot call a class as a function")}var g=function(){function p(y,c){var o=this;x(this,p),this.quill=y,this.boundsContainer=c||document.body,this.root=y.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){o.root.style.marginTop=-1*o.quill.root.scrollTop+"px"}),this.hide()}return A(p,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(c){var o=c.left+c.width/2-this.root.offsetWidth/2,e=c.bottom+this.quill.root.scrollTop;this.root.style.left=o+"px",this.root.style.top=e+"px",this.root.classList.remove("ql-flip");var n=this.boundsContainer.getBoundingClientRect(),u=this.root.getBoundingClientRect(),a=0;if(u.right>n.right&&(a=n.right-u.right,this.root.style.left=o+a+"px"),u.left<n.left&&(a=n.left-u.left,this.root.style.left=o+a+"px"),u.bottom>n.bottom){var l=u.bottom-u.top,r=c.bottom-c.top+l;this.root.style.top=e-r+"px",this.root.classList.add("ql-flip")}return a}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),p}();d.default=g},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0});var A=function(){function b(v,m){var S=[],N=!0,R=!1,B=void 0;try{for(var F=v[Symbol.iterator](),Z;!(N=(Z=F.next()).done)&&(S.push(Z.value),!(m&&S.length===m));N=!0);}catch(M){R=!0,B=M}finally{try{!N&&F.return&&F.return()}finally{if(R)throw B}}return S}return function(v,m){if(Array.isArray(v))return v;if(Symbol.iterator in Object(v))return b(v,m);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),x=function b(v,m,S){v===null&&(v=Function.prototype);var N=Object.getOwnPropertyDescriptor(v,m);if(N===void 0){var R=Object.getPrototypeOf(v);return R===null?void 0:b(R,m,S)}else{if("value"in N)return N.value;var B=N.get;return B===void 0?void 0:B.call(S)}},g=function(){function b(v,m){for(var S=0;S<m.length;S++){var N=m[S];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(v,N.key,N)}}return function(v,m,S){return m&&b(v.prototype,m),S&&b(v,S),v}}(),p=h(3),y=f(p),c=h(8),o=f(c),e=h(43),n=f(e),u=h(27),a=f(u),l=h(15),r=h(41),i=f(r);function f(b){return b&&b.__esModule?b:{default:b}}function t(b,v){if(!(b instanceof v))throw new TypeError("Cannot call a class as a function")}function s(b,v){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:b}function w(b,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);b.prototype=Object.create(v&&v.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(b,v):b.__proto__=v)}var _=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],E=function(b){w(v,b);function v(m,S){t(this,v),S.modules.toolbar!=null&&S.modules.toolbar.container==null&&(S.modules.toolbar.container=_);var N=s(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,m,S));return N.quill.container.classList.add("ql-snow"),N}return g(v,[{key:"extendToolbar",value:function(S){S.container.classList.add("ql-snow"),this.buildButtons([].slice.call(S.container.querySelectorAll("button")),i.default),this.buildPickers([].slice.call(S.container.querySelectorAll("select")),i.default),this.tooltip=new T(this.quill,this.options.bounds),S.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(N,R){S.handlers.link.call(S,!R.format.link)})}}]),v}(n.default);E.DEFAULTS=(0,y.default)(!0,{},n.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(v){if(v){var m=this.quill.getSelection();if(m==null||m.length==0)return;var S=this.quill.getText(m);/^\S+@\S+\.\S+$/.test(S)&&S.indexOf("mailto:")!==0&&(S="mailto:"+S);var N=this.quill.theme.tooltip;N.edit("link",S)}else this.quill.format("link",!1)}}}}});var T=function(b){w(v,b);function v(m,S){t(this,v);var N=s(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,m,S));return N.preview=N.root.querySelector("a.ql-preview"),N}return g(v,[{key:"listen",value:function(){var S=this;x(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(N){S.root.classList.contains("ql-editing")?S.save():S.edit("link",S.preview.textContent),N.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(N){if(S.linkRange!=null){var R=S.linkRange;S.restoreFocus(),S.quill.formatText(R,"link",!1,o.default.sources.USER),delete S.linkRange}N.preventDefault(),S.hide()}),this.quill.on(o.default.events.SELECTION_CHANGE,function(N,R,B){if(N!=null){if(N.length===0&&B===o.default.sources.USER){var F=S.quill.scroll.descendant(a.default,N.index),Z=A(F,2),M=Z[0],D=Z[1];if(M!=null){S.linkRange=new l.Range(N.index-D,M.length());var k=a.default.formats(M.domNode);S.preview.textContent=k,S.preview.setAttribute("href",k),S.show(),S.position(S.quill.getBounds(S.linkRange));return}}else delete S.linkRange;S.hide()}})}},{key:"show",value:function(){x(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),v}(e.BaseTooltip);T.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(""),d.default=E},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0});var A=h(29),x=G(A),g=h(36),p=h(38),y=h(64),c=h(65),o=G(c),e=h(66),n=G(e),u=h(67),a=G(u),l=h(37),r=h(26),i=h(39),f=h(40),t=h(56),s=G(t),w=h(68),_=G(w),E=h(27),T=G(E),b=h(69),v=G(b),m=h(70),S=G(m),N=h(71),R=G(N),B=h(72),F=G(B),Z=h(73),M=G(Z),D=h(13),k=G(D),L=h(74),q=G(L),U=h(75),C=G(U),j=h(57),I=G(j),z=h(41),H=G(z),$=h(28),J=G($),ee=h(59),te=G(ee),oe=h(60),le=G(oe),ye=h(61),he=G(ye),K=h(108),W=G(K),Y=h(62),X=G(Y);function G(ne){return ne&&ne.__esModule?ne:{default:ne}}x.default.register({"attributors/attribute/direction":p.DirectionAttribute,"attributors/class/align":g.AlignClass,"attributors/class/background":l.BackgroundClass,"attributors/class/color":r.ColorClass,"attributors/class/direction":p.DirectionClass,"attributors/class/font":i.FontClass,"attributors/class/size":f.SizeClass,"attributors/style/align":g.AlignStyle,"attributors/style/background":l.BackgroundStyle,"attributors/style/color":r.ColorStyle,"attributors/style/direction":p.DirectionStyle,"attributors/style/font":i.FontStyle,"attributors/style/size":f.SizeStyle},!0),x.default.register({"formats/align":g.AlignClass,"formats/direction":p.DirectionClass,"formats/indent":y.IndentClass,"formats/background":l.BackgroundStyle,"formats/color":r.ColorStyle,"formats/font":i.FontClass,"formats/size":f.SizeClass,"formats/blockquote":o.default,"formats/code-block":k.default,"formats/header":n.default,"formats/list":a.default,"formats/bold":s.default,"formats/code":D.Code,"formats/italic":_.default,"formats/link":T.default,"formats/script":v.default,"formats/strike":S.default,"formats/underline":R.default,"formats/image":F.default,"formats/video":M.default,"formats/list/item":u.ListItem,"modules/formula":q.default,"modules/syntax":C.default,"modules/toolbar":I.default,"themes/bubble":W.default,"themes/snow":X.default,"ui/icons":H.default,"ui/picker":J.default,"ui/icon-picker":le.default,"ui/color-picker":te.default,"ui/tooltip":he.default},!0),d.default=x.default},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0}),d.IndentClass=void 0;var A=function(){function a(l,r){for(var i=0;i<r.length;i++){var f=r[i];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(l,f.key,f)}}return function(l,r,i){return r&&a(l.prototype,r),i&&a(l,i),l}}(),x=function a(l,r,i){l===null&&(l=Function.prototype);var f=Object.getOwnPropertyDescriptor(l,r);if(f===void 0){var t=Object.getPrototypeOf(l);return t===null?void 0:a(t,r,i)}else{if("value"in f)return f.value;var s=f.get;return s===void 0?void 0:s.call(i)}},g=h(0),p=y(g);function y(a){return a&&a.__esModule?a:{default:a}}function c(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")}function o(a,l){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:a}function e(a,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);a.prototype=Object.create(l&&l.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(a,l):a.__proto__=l)}var n=function(a){e(l,a);function l(){return c(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return A(l,[{key:"add",value:function(i,f){if(f==="+1"||f==="-1"){var t=this.value(i)||0;f=f==="+1"?t+1:t-1}return f===0?(this.remove(i),!0):x(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"add",this).call(this,i,f)}},{key:"canAdd",value:function(i,f){return x(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"canAdd",this).call(this,i,f)||x(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"canAdd",this).call(this,i,parseInt(f))}},{key:"value",value:function(i){return parseInt(x(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"value",this).call(this,i))||void 0}}]),l}(p.default.Attributor.Class),u=new n("indent","ql-indent",{scope:p.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});d.IndentClass=u},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0});var A=h(4),x=g(A);function g(e){return e&&e.__esModule?e:{default:e}}function p(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function y(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:e}function c(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}var o=function(e){c(n,e);function n(){return p(this,n),y(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return n}(x.default);o.blotName="blockquote",o.tagName="blockquote",d.default=o},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0});var A=function(){function n(u,a){for(var l=0;l<a.length;l++){var r=a[l];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(u,r.key,r)}}return function(u,a,l){return a&&n(u.prototype,a),l&&n(u,l),u}}(),x=h(4),g=p(x);function p(n){return n&&n.__esModule?n:{default:n}}function y(n,u){if(!(n instanceof u))throw new TypeError("Cannot call a class as a function")}function c(n,u){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:n}function o(n,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);n.prototype=Object.create(u&&u.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(n,u):n.__proto__=u)}var e=function(n){o(u,n);function u(){return y(this,u),c(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return A(u,null,[{key:"formats",value:function(l){return this.tagName.indexOf(l.tagName)+1}}]),u}(g.default);e.blotName="header",e.tagName=["H1","H2","H3","H4","H5","H6"],d.default=e},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0}),d.default=d.ListItem=void 0;var A=function(){function t(s,w){for(var _=0;_<w.length;_++){var E=w[_];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(s,E.key,E)}}return function(s,w,_){return w&&t(s.prototype,w),_&&t(s,_),s}}(),x=function t(s,w,_){s===null&&(s=Function.prototype);var E=Object.getOwnPropertyDescriptor(s,w);if(E===void 0){var T=Object.getPrototypeOf(s);return T===null?void 0:t(T,w,_)}else{if("value"in E)return E.value;var b=E.get;return b===void 0?void 0:b.call(_)}},g=h(0),p=n(g),y=h(4),c=n(y),o=h(25),e=n(o);function n(t){return t&&t.__esModule?t:{default:t}}function u(t,s,w){return s in t?Object.defineProperty(t,s,{value:w,enumerable:!0,configurable:!0,writable:!0}):t[s]=w,t}function a(t,s){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")}function l(t,s){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:t}function r(t,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);t.prototype=Object.create(s&&s.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(t,s):t.__proto__=s)}var i=function(t){r(s,t);function s(){return a(this,s),l(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return A(s,[{key:"format",value:function(_,E){_===f.blotName&&!E?this.replaceWith(p.default.create(this.statics.scope)):x(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"format",this).call(this,_,E)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():x(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(_,E){return this.parent.isolate(this.offset(this.parent),this.length()),_===this.parent.statics.blotName?(this.parent.replaceWith(_,E),this):(this.parent.unwrap(),x(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"replaceWith",this).call(this,_,E))}}],[{key:"formats",value:function(_){return _.tagName===this.tagName?void 0:x(s.__proto__||Object.getPrototypeOf(s),"formats",this).call(this,_)}}]),s}(c.default);i.blotName="list-item",i.tagName="LI";var f=function(t){r(s,t),A(s,null,[{key:"create",value:function(_){var E=_==="ordered"?"OL":"UL",T=x(s.__proto__||Object.getPrototypeOf(s),"create",this).call(this,E);return(_==="checked"||_==="unchecked")&&T.setAttribute("data-checked",_==="checked"),T}},{key:"formats",value:function(_){if(_.tagName==="OL")return"ordered";if(_.tagName==="UL")return _.hasAttribute("data-checked")?_.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function s(w){a(this,s);var _=l(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,w)),E=function(b){if(b.target.parentNode===w){var v=_.statics.formats(w),m=p.default.find(b.target);v==="checked"?m.format("list","unchecked"):v==="unchecked"&&m.format("list","checked")}};return w.addEventListener("touchstart",E),w.addEventListener("mousedown",E),_}return A(s,[{key:"format",value:function(_,E){this.children.length>0&&this.children.tail.format(_,E)}},{key:"formats",value:function(){return u({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(_,E){if(_ instanceof i)x(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"insertBefore",this).call(this,_,E);else{var T=E==null?this.length():E.offset(this),b=this.split(T);b.parent.insertBefore(_,b)}}},{key:"optimize",value:function(_){x(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"optimize",this).call(this,_);var E=this.next;E!=null&&E.prev===this&&E.statics.blotName===this.statics.blotName&&E.domNode.tagName===this.domNode.tagName&&E.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(E.moveChildren(this),E.remove())}},{key:"replace",value:function(_){if(_.statics.blotName!==this.statics.blotName){var E=p.default.create(this.statics.defaultChild);_.moveChildren(E),this.appendChild(E)}x(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"replace",this).call(this,_)}}]),s}(e.default);f.blotName="list",f.scope=p.default.Scope.BLOCK_BLOT,f.tagName=["OL","UL"],f.defaultChild="list-item",f.allowedChildren=[i],d.ListItem=i,d.default=f},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0});var A=h(56),x=g(A);function g(e){return e&&e.__esModule?e:{default:e}}function p(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function y(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:e}function c(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}var o=function(e){c(n,e);function n(){return p(this,n),y(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return n}(x.default);o.blotName="italic",o.tagName=["EM","I"],d.default=o},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0});var A=function(){function u(a,l){for(var r=0;r<l.length;r++){var i=l[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(a,i.key,i)}}return function(a,l,r){return l&&u(a.prototype,l),r&&u(a,r),a}}(),x=function u(a,l,r){a===null&&(a=Function.prototype);var i=Object.getOwnPropertyDescriptor(a,l);if(i===void 0){var f=Object.getPrototypeOf(a);return f===null?void 0:u(f,l,r)}else{if("value"in i)return i.value;var t=i.get;return t===void 0?void 0:t.call(r)}},g=h(6),p=y(g);function y(u){return u&&u.__esModule?u:{default:u}}function c(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}function o(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:u}function e(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);u.prototype=Object.create(a&&a.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(u,a):u.__proto__=a)}var n=function(u){e(a,u);function a(){return c(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return A(a,null,[{key:"create",value:function(r){return r==="super"?document.createElement("sup"):r==="sub"?document.createElement("sub"):x(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this,r)}},{key:"formats",value:function(r){if(r.tagName==="SUB")return"sub";if(r.tagName==="SUP")return"super"}}]),a}(p.default);n.blotName="script",n.tagName=["SUB","SUP"],d.default=n},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0});var A=h(6),x=g(A);function g(e){return e&&e.__esModule?e:{default:e}}function p(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function y(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:e}function c(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}var o=function(e){c(n,e);function n(){return p(this,n),y(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return n}(x.default);o.blotName="strike",o.tagName="S",d.default=o},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0});var A=h(6),x=g(A);function g(e){return e&&e.__esModule?e:{default:e}}function p(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function y(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:e}function c(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}var o=function(e){c(n,e);function n(){return p(this,n),y(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return n}(x.default);o.blotName="underline",o.tagName="U",d.default=o},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0});var A=function(){function l(r,i){for(var f=0;f<i.length;f++){var t=i[f];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(r,t.key,t)}}return function(r,i,f){return i&&l(r.prototype,i),f&&l(r,f),r}}(),x=function l(r,i,f){r===null&&(r=Function.prototype);var t=Object.getOwnPropertyDescriptor(r,i);if(t===void 0){var s=Object.getPrototypeOf(r);return s===null?void 0:l(s,i,f)}else{if("value"in t)return t.value;var w=t.get;return w===void 0?void 0:w.call(f)}},g=h(0),p=c(g),y=h(27);function c(l){return l&&l.__esModule?l:{default:l}}function o(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}function e(l,r){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:l}function n(l,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);l.prototype=Object.create(r&&r.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(l,r):l.__proto__=r)}var u=["alt","height","width"],a=function(l){n(r,l);function r(){return o(this,r),e(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return A(r,[{key:"format",value:function(f,t){u.indexOf(f)>-1?t?this.domNode.setAttribute(f,t):this.domNode.removeAttribute(f):x(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,f,t)}}],[{key:"create",value:function(f){var t=x(r.__proto__||Object.getPrototypeOf(r),"create",this).call(this,f);return typeof f=="string"&&t.setAttribute("src",this.sanitize(f)),t}},{key:"formats",value:function(f){return u.reduce(function(t,s){return f.hasAttribute(s)&&(t[s]=f.getAttribute(s)),t},{})}},{key:"match",value:function(f){return/\.(jpe?g|gif|png)$/.test(f)||/^data:image\/.+;base64/.test(f)}},{key:"sanitize",value:function(f){return(0,y.sanitize)(f,["http","https","data"])?f:"//:0"}},{key:"value",value:function(f){return f.getAttribute("src")}}]),r}(p.default.Embed);a.blotName="image",a.tagName="IMG",d.default=a},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0});var A=function(){function l(r,i){for(var f=0;f<i.length;f++){var t=i[f];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(r,t.key,t)}}return function(r,i,f){return i&&l(r.prototype,i),f&&l(r,f),r}}(),x=function l(r,i,f){r===null&&(r=Function.prototype);var t=Object.getOwnPropertyDescriptor(r,i);if(t===void 0){var s=Object.getPrototypeOf(r);return s===null?void 0:l(s,i,f)}else{if("value"in t)return t.value;var w=t.get;return w===void 0?void 0:w.call(f)}},g=h(4),p=h(27),y=c(p);function c(l){return l&&l.__esModule?l:{default:l}}function o(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}function e(l,r){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:l}function n(l,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);l.prototype=Object.create(r&&r.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(l,r):l.__proto__=r)}var u=["height","width"],a=function(l){n(r,l);function r(){return o(this,r),e(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return A(r,[{key:"format",value:function(f,t){u.indexOf(f)>-1?t?this.domNode.setAttribute(f,t):this.domNode.removeAttribute(f):x(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,f,t)}}],[{key:"create",value:function(f){var t=x(r.__proto__||Object.getPrototypeOf(r),"create",this).call(this,f);return t.setAttribute("frameborder","0"),t.setAttribute("allowfullscreen",!0),t.setAttribute("src",this.sanitize(f)),t}},{key:"formats",value:function(f){return u.reduce(function(t,s){return f.hasAttribute(s)&&(t[s]=f.getAttribute(s)),t},{})}},{key:"sanitize",value:function(f){return y.default.sanitize(f)}},{key:"value",value:function(f){return f.getAttribute("src")}}]),r}(g.BlockEmbed);a.blotName="video",a.className="ql-video",a.tagName="IFRAME",d.default=a},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0}),d.default=d.FormulaBlot=void 0;var A=function(){function f(t,s){for(var w=0;w<s.length;w++){var _=s[w];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(t,_.key,_)}}return function(t,s,w){return s&&f(t.prototype,s),w&&f(t,w),t}}(),x=function f(t,s,w){t===null&&(t=Function.prototype);var _=Object.getOwnPropertyDescriptor(t,s);if(_===void 0){var E=Object.getPrototypeOf(t);return E===null?void 0:f(E,s,w)}else{if("value"in _)return _.value;var T=_.get;return T===void 0?void 0:T.call(w)}},g=h(35),p=n(g),y=h(5),c=n(y),o=h(9),e=n(o);function n(f){return f&&f.__esModule?f:{default:f}}function u(f,t){if(!(f instanceof t))throw new TypeError("Cannot call a class as a function")}function a(f,t){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:f}function l(f,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);f.prototype=Object.create(t&&t.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(f,t):f.__proto__=t)}var r=function(f){l(t,f);function t(){return u(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return A(t,null,[{key:"create",value:function(w){var _=x(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,w);return typeof w=="string"&&(window.katex.render(w,_,{throwOnError:!1,errorColor:"#f00"}),_.setAttribute("data-value",w)),_}},{key:"value",value:function(w){return w.getAttribute("data-value")}}]),t}(p.default);r.blotName="formula",r.className="ql-formula",r.tagName="SPAN";var i=function(f){l(t,f),A(t,null,[{key:"register",value:function(){c.default.register(r,!0)}}]);function t(){u(this,t);var s=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return s}return t}(e.default);d.FormulaBlot=r,d.default=i},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0}),d.default=d.CodeToken=d.CodeBlock=void 0;var A=function(){function w(_,E){for(var T=0;T<E.length;T++){var b=E[T];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(_,b.key,b)}}return function(_,E,T){return E&&w(_.prototype,E),T&&w(_,T),_}}(),x=function w(_,E,T){_===null&&(_=Function.prototype);var b=Object.getOwnPropertyDescriptor(_,E);if(b===void 0){var v=Object.getPrototypeOf(_);return v===null?void 0:w(v,E,T)}else{if("value"in b)return b.value;var m=b.get;return m===void 0?void 0:m.call(T)}},g=h(0),p=a(g),y=h(5),c=a(y),o=h(9),e=a(o),n=h(13),u=a(n);function a(w){return w&&w.__esModule?w:{default:w}}function l(w,_){if(!(w instanceof _))throw new TypeError("Cannot call a class as a function")}function r(w,_){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:w}function i(w,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);w.prototype=Object.create(_&&_.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(w,_):w.__proto__=_)}var f=function(w){i(_,w);function _(){return l(this,_),r(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return A(_,[{key:"replaceWith",value:function(T){this.domNode.textContent=this.domNode.textContent,this.attach(),x(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"replaceWith",this).call(this,T)}},{key:"highlight",value:function(T){var b=this.domNode.textContent;this.cachedText!==b&&((b.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=T(b),this.domNode.normalize(),this.attach()),this.cachedText=b)}}]),_}(u.default);f.className="ql-syntax";var t=new p.default.Attributor.Class("token","hljs",{scope:p.default.Scope.INLINE}),s=function(w){i(_,w),A(_,null,[{key:"register",value:function(){c.default.register(t,!0),c.default.register(f,!0)}}]);function _(E,T){l(this,_);var b=r(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,E,T));if(typeof b.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var v=null;return b.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(v),v=setTimeout(function(){b.highlight(),v=null},b.options.interval)}),b.highlight(),b}return A(_,[{key:"highlight",value:function(){var T=this;if(!this.quill.selection.composing){this.quill.update(c.default.sources.USER);var b=this.quill.getSelection();this.quill.scroll.descendants(f).forEach(function(v){v.highlight(T.options.highlight)}),this.quill.update(c.default.sources.SILENT),b!=null&&this.quill.setSelection(b,c.default.sources.SILENT)}}}]),_}(e.default);s.DEFAULTS={highlight:function(){return window.hljs==null?null:function(w){var _=window.hljs.highlightAuto(w);return _.value}}(),interval:1e3},d.CodeBlock=f,d.CodeToken=t,d.default=s},function(O,d){O.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(O,d){O.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(O,d){O.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(O,d){O.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(O,d){O.exports='<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"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <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"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(O,d){O.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(O,d){O.exports='<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> <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></path> </svg>'},function(O,d){O.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(O,d){O.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(O,d){O.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(O,d){O.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(O,d){O.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(O,d){O.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(O,d){O.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(O,d){O.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(O,d){O.exports='<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></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <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></path> </svg>'},function(O,d){O.exports='<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>'},function(O,d){O.exports='<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>'},function(O,d){O.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(O,d){O.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(O,d){O.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(O,d){O.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(O,d){O.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <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> <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></path> </svg>'},function(O,d){O.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <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> <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> <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></path> </svg>'},function(O,d){O.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(O,d){O.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(O,d){O.exports='<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>'},function(O,d){O.exports='<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>'},function(O,d){O.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <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> <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></path> </svg>'},function(O,d){O.exports='<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></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(O,d){O.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(O,d){O.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(O,d,h){Object.defineProperty(d,"__esModule",{value:!0}),d.default=d.BubbleTooltip=void 0;var A=function _(E,T,b){E===null&&(E=Function.prototype);var v=Object.getOwnPropertyDescriptor(E,T);if(v===void 0){var m=Object.getPrototypeOf(E);return m===null?void 0:_(m,T,b)}else{if("value"in v)return v.value;var S=v.get;return S===void 0?void 0:S.call(b)}},x=function(){function _(E,T){for(var b=0;b<T.length;b++){var v=T[b];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(E,v.key,v)}}return function(E,T,b){return T&&_(E.prototype,T),b&&_(E,b),E}}(),g=h(3),p=l(g),y=h(8),c=l(y),o=h(43),e=l(o),n=h(15),u=h(41),a=l(u);function l(_){return _&&_.__esModule?_:{default:_}}function r(_,E){if(!(_ instanceof E))throw new TypeError("Cannot call a class as a function")}function i(_,E){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:_}function f(_,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);_.prototype=Object.create(E&&E.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(_,E):_.__proto__=E)}var t=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],s=function(_){f(E,_);function E(T,b){r(this,E),b.modules.toolbar!=null&&b.modules.toolbar.container==null&&(b.modules.toolbar.container=t);var v=i(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,T,b));return v.quill.container.classList.add("ql-bubble"),v}return x(E,[{key:"extendToolbar",value:function(b){this.tooltip=new w(this.quill,this.options.bounds),this.tooltip.root.appendChild(b.container),this.buildButtons([].slice.call(b.container.querySelectorAll("button")),a.default),this.buildPickers([].slice.call(b.container.querySelectorAll("select")),a.default)}}]),E}(e.default);s.DEFAULTS=(0,p.default)(!0,{},e.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(E){E?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var w=function(_){f(E,_);function E(T,b){r(this,E);var v=i(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,T,b));return v.quill.on(c.default.events.EDITOR_CHANGE,function(m,S,N,R){if(m===c.default.events.SELECTION_CHANGE)if(S!=null&&S.length>0&&R===c.default.sources.USER){v.show(),v.root.style.left="0px",v.root.style.width="",v.root.style.width=v.root.offsetWidth+"px";var B=v.quill.getLines(S.index,S.length);if(B.length===1)v.position(v.quill.getBounds(S));else{var F=B[B.length-1],Z=v.quill.getIndex(F),M=Math.min(F.length()-1,S.index+S.length-Z),D=v.quill.getBounds(new n.Range(Z,M));v.position(D)}}else document.activeElement!==v.textbox&&v.quill.hasFocus()&&v.hide()}),v}return x(E,[{key:"listen",value:function(){var b=this;A(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){b.root.classList.remove("ql-editing")}),this.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!b.root.classList.contains("ql-hidden")){var v=b.quill.getSelection();v!=null&&b.position(b.quill.getBounds(v))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(b){var v=A(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"position",this).call(this,b),m=this.root.querySelector(".ql-tooltip-arrow");if(m.style.marginLeft="",v===0)return v;m.style.marginLeft=-1*v-m.offsetWidth/2+"px"}}]),E}(o.BaseTooltip);w.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(""),d.BubbleTooltip=w,d.default=s},function(O,d,h){O.exports=h(63)}]).default})})(xt);var Qt=xt.exports,Xt=Ae&&Ae.__extends||function(){var Q=function(V,O){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var A in h)h.hasOwnProperty(A)&&(d[A]=h[A])},Q(V,O)};return function(V,O){Q(V,O);function d(){this.constructor=V}V.prototype=O===null?Object.create(O):(d.prototype=O.prototype,new d)}}(),Ze=Ae&&Ae.__assign||function(){return Ze=Object.assign||function(Q){for(var V,O=1,d=arguments.length;O<d;O++){V=arguments[O];for(var h in V)Object.prototype.hasOwnProperty.call(V,h)&&(Q[h]=V[h])}return Q},Ze.apply(this,arguments)},Jt=Ae&&Ae.__spreadArrays||function(){for(var Q=0,V=0,O=arguments.length;V<O;V++)Q+=arguments[V].length;for(var d=Array(Q),h=0,V=0;V<O;V++)for(var A=arguments[V],x=0,g=A.length;x<g;x++,h++)d[h]=A[x];return d},Je=Ae&&Ae.__importDefault||function(Q){return Q&&Q.__esModule?Q:{default:Q}},we=Je(fe),en=Je(At),Me=Je(It),vt=Je(Qt),tn=function(Q){Xt(V,Q);function V(O){var d=Q.call(this,O)||this;d.dirtyProps=["modules","formats","bounds","theme","children"],d.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],d.state={generation:0},d.selection=null,d.onEditorChange=function(A,x,g,p){var y,c,o,e;A==="text-change"?(c=(y=d).onEditorChangeText)===null||c===void 0||c.call(y,d.editor.root.innerHTML,x,p,d.unprivilegedEditor):A==="selection-change"&&((e=(o=d).onEditorChangeSelection)===null||e===void 0||e.call(o,x,p,d.unprivilegedEditor))};var h=d.isControlled()?O.value:O.defaultValue;return d.value=h??"",d}return V.prototype.validateProps=function(O){var d;if(we.default.Children.count(O.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(we.default.Children.count(O.children)){var h=we.default.Children.only(O.children);if(((d=h)===null||d===void 0?void 0:d.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&O.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")},V.prototype.shouldComponentUpdate=function(O,d){var h=this,A;if(this.validateProps(O),!this.editor||this.state.generation!==d.generation)return!0;if("value"in O){var x=this.getEditorContents(),g=(A=O.value,A??"");this.isEqualValue(g,x)||this.setEditorContents(this.editor,g)}return O.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,O.readOnly),Jt(this.cleanProps,this.dirtyProps).some(function(p){return!Me.default(O[p],h.props[p])})},V.prototype.shouldComponentRegenerate=function(O){var d=this;return this.dirtyProps.some(function(h){return!Me.default(O[h],d.props[h])})},V.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},V.prototype.componentWillUnmount=function(){this.destroyEditor()},V.prototype.componentDidUpdate=function(O,d){var h=this;if(this.editor&&this.shouldComponentRegenerate(O)){var A=this.editor.getContents(),x=this.editor.getSelection();this.regenerationSnapshot={delta:A,selection:x},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==d.generation){var g=this.regenerationSnapshot,A=g.delta,p=g.selection;delete this.regenerationSnapshot,this.instantiateEditor();var y=this.editor;y.setContents(A),yt(function(){return h.setEditorSelection(y,p)})}},V.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},V.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},V.prototype.isControlled=function(){return"value"in this.props},V.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},V.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},V.prototype.createEditor=function(O,d){var h=new vt.default(O,d);return d.tabIndex!=null&&this.setEditorTabIndex(h,d.tabIndex),this.hookEditor(h),h},V.prototype.hookEditor=function(O){this.unprivilegedEditor=this.makeUnprivilegedEditor(O),O.on("editor-change",this.onEditorChange)},V.prototype.unhookEditor=function(O){O.off("editor-change",this.onEditorChange)},V.prototype.getEditorContents=function(){return this.value},V.prototype.getEditorSelection=function(){return this.selection},V.prototype.isDelta=function(O){return O&&O.ops},V.prototype.isEqualValue=function(O,d){return this.isDelta(O)&&this.isDelta(d)?Me.default(O.ops,d.ops):Me.default(O,d)},V.prototype.setEditorContents=function(O,d){var h=this;this.value=d;var A=this.getEditorSelection();typeof d=="string"?O.setContents(O.clipboard.convert(d)):O.setContents(d),yt(function(){return h.setEditorSelection(O,A)})},V.prototype.setEditorSelection=function(O,d){if(this.selection=d,d){var h=O.getLength();d.index=Math.max(0,Math.min(d.index,h-1)),d.length=Math.max(0,Math.min(d.length,h-1-d.index)),O.setSelection(d)}},V.prototype.setEditorTabIndex=function(O,d){var h,A;!((A=(h=O)===null||h===void 0?void 0:h.scroll)===null||A===void 0)&&A.domNode&&(O.scroll.domNode.tabIndex=d)},V.prototype.setEditorReadOnly=function(O,d){d?O.disable():O.enable()},V.prototype.makeUnprivilegedEditor=function(O){var d=O;return{getHTML:function(){return d.root.innerHTML},getLength:d.getLength.bind(d),getText:d.getText.bind(d),getContents:d.getContents.bind(d),getSelection:d.getSelection.bind(d),getBounds:d.getBounds.bind(d)}},V.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var O=en.default.findDOMNode(this.editingArea);if(!O)throw new Error("Cannot find element for editing area");if(O.nodeType===3)throw new Error("Editing area cannot be a text node");return O},V.prototype.renderEditingArea=function(){var O=this,d=this.props,h=d.children,A=d.preserveWhitespace,x=this.state.generation,g={key:x,ref:function(p){O.editingArea=p}};return we.default.Children.count(h)?we.default.cloneElement(we.default.Children.only(h),g):A?we.default.createElement("pre",Ze({},g)):we.default.createElement("div",Ze({},g))},V.prototype.render=function(){var O;return we.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(O=this.props.className,O??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},V.prototype.onEditorChangeText=function(O,d,h,A){var x,g;if(this.editor){var p=this.isDelta(this.value)?A.getContents():A.getHTML();p!==this.getEditorContents()&&(this.lastDeltaChangeSet=d,this.value=p,(g=(x=this.props).onChange)===null||g===void 0||g.call(x,O,d,h,A))}},V.prototype.onEditorChangeSelection=function(O,d,h){var A,x,g,p,y,c;if(this.editor){var o=this.getEditorSelection(),e=!o&&O,n=o&&!O;Me.default(O,o)||(this.selection=O,(x=(A=this.props).onChangeSelection)===null||x===void 0||x.call(A,O,d,h),e?(p=(g=this.props).onFocus)===null||p===void 0||p.call(g,O,d,h):n&&((c=(y=this.props).onBlur)===null||c===void 0||c.call(y,o,d,h)))}},V.prototype.focus=function(){this.editor&&this.editor.focus()},V.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},V.displayName="React Quill",V.Quill=vt.default,V.defaultProps={theme:"snow",modules:{},readOnly:!1},V}(we.default.Component);function yt(Q){Promise.resolve().then(Q)}var nn=tn;const rn=kt(nn),on=async Q=>{const V=await gt(de.token,"update_web_page",Q);if(V.response!==200)throw new Error(V.message);return V.data},ln=({value:Q})=>{const[V,O]=fe.useState(Q),d=Pe(),h=xe(),{colorMode:A}=St(),x={toolbar:[[{font:[]}],[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline","strike"],[{color:[]},{background:[]}],[{script:"sub"},{script:"super"}],["blockquote","code-block"],[{list:"ordered"},{list:"bullet"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{align:[]}],["link"],["clean"]]},g=dt({mutationFn:async()=>{await on(V)},onError:p=>{ae(h,"error",p.message)},onSuccess:()=>{ae(h,"success","Success"),d.invalidateQueries(["page",V.page_id])}});return g.isPending?P.jsx(ot,{}):P.jsxs(ue,{children:[P.jsx(Ee,{value:V==null?void 0:V.title,placeholder:"Page Title",mb:5,onChange:p=>{O({...V,title:p.target.value})}}),P.jsx(rn,{value:V==null?void 0:V.body,onChange:p=>{O({...V,body:p})},theme:"snow",modules:x,style:{color:A==="dark"?"#E2E8F0":"#1A202C"}}),P.jsx(ge,{w:"100%",mt:5,colorScheme:"blue",size:"sm",onClick:()=>{g.mutate()},isLoading:g.isPending,children:"Update"})]})},an=async()=>{const Q=await De(de.token,"get_web_pages");if(Q.response!==200)throw new Error(Q.message);return Q.data};function un({currentTab:Q,activeTab:V}){const{data:O,isLoading:d}=Ie({queryFn:an,queryKey:["web-pages"],enabled:Q==V});return d?P.jsx(ot,{}):P.jsxs(at,{children:[P.jsx(ut,{children:O==null?void 0:O.map(h=>P.jsx(Le,{children:h.title},h.id))}),P.jsx(st,{children:O==null?void 0:O.map(h=>P.jsx(qe,{children:P.jsx(sn,{page:h.page_id,name:h.title})},h.id))})]})}const sn=({page:Q,name:V})=>{const O=async()=>{const A=await De(de.token,`get_web_page/page/${Q}`);if(A.response!==200)throw new Error(A.message);return A.data},{data:d,isLoading:h}=Ie({queryFn:O,queryKey:["web-page",Q]});return P.jsx(ue,{children:P.jsxs(me,{isRequired:!0,children:[" ",P.jsx(Oe,{fontSize:24,children:V}),h||d!==null&&P.jsx(ln,{value:d}),h&&P.jsx(Te,{w:"full",h:20})]})})};function Tn(){const{hasPermission:Q}=Tt(),[V,O]=fe.useState(0);return Q("SETTING_VIEW")?P.jsx(ue,{children:P.jsxs(at,{index:V,onChange:d=>O(d),children:[P.jsxs(ut,{children:[P.jsx(Le,{children:"Settings"}),P.jsx(Le,{children:"Web pages"}),P.jsx(Le,{children:"Social Media"}),P.jsx(Le,{children:"Payment Getways"})]}),P.jsxs(st,{children:[P.jsx(qe,{p:0,children:P.jsx(Wt,{currentTab:0,activeTab:V})}),P.jsx(qe,{px:0,children:P.jsx(un,{currentTab:1,activeTab:V})}),P.jsx(qe,{children:P.jsx(Ft,{currentTab:2,activeTab:V})}),P.jsx(qe,{children:P.jsx(Gt,{currentTab:3,activeTab:V})})]})]})}):P.jsx(Lt,{})}export{Tn as default};
/home/users/unlimited/www/admin.medimeet.codeskitter.site/./assets/Settings-BR8t5Pge.js