@creaditor/web-starterkit 1.0.21 โ 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/creaditor.bundle.js
CHANGED
|
@@ -1769,41 +1769,41 @@
|
|
|
1769
1769
|
width: 100%;
|
|
1770
1770
|
position: absolute;
|
|
1771
1771
|
}
|
|
1772
|
-
`,customElements.define("cdtr-background-element",Q);var tt=n(90069),et={};et.setAttributes=g(),et.insert=f().bind(null,"head"),et.domAPI=h(),et.insertStyleElement=y();d()(tt.A,et);const nt=tt.A&&tt.A.locals?tt.A.locals:void 0,rt=t=>{new s.A;const e=(0,i.A)("row-component",t.classList,nt.root),n=(0,o.A)("cdtr-row",{justify:"center",style:t.props.style,"data-type":t.type,"data-id":t.id,className:e},t.children),r={set:(t,e,r)=>"style"===e&&(t[e]=r,(0,a.A)(n,{style:t[e]}),!0)};return(0,B.n)({id:t.id,name:t.type,allowSortable:!0,validator:r,template:n,childrenHolder:n,elementProps:t,destroy:()=>{},remove:()=>{n.remove()},onSelect:t=>{},onDeselect:t=>{}})};var ot=n(60932),it={};it.setAttributes=g(),it.insert=f().bind(null,"head"),it.domAPI=h(),it.insertStyleElement=y();d()(ot.A,it);const at=ot.A&&ot.A.locals?ot.A.locals:void 0,st=t=>{let{event:e,compose:n}=t;const{key:r,target:o,ctrlKey:i}=e;if(i){const t=n.closest("col");if(!t)return;const e=t.props.justify;"ArrowLeft"===r?"flex-end"===e?E.EN.store().execCommand("justify","center",{find:"col"}):E.EN.store().execCommand("justify","flex-start",{find:"col"}):"ArrowRight"===r&&("flex-start"===e?E.EN.store().execCommand("justify","center",{find:"col"}):E.EN.store().execCommand("justify","flex-end",{find:"col"}));const o=E.EN.getEditor().find(t=>"resizeable"===t.name);o&&o.editor.rePosition()}},lt=t=>{let{component:e,commands:n}=t;const r=()=>Array.isArray(e.props.items)?e.props.items:[],o=()=>r()[0]?.style||{},i=t=>{const e=r().map(e=>({...e,style:{...e.style||{},...t}}));n.execCommand("items",e)};return{select:t=>{let{changeTab:e,tab:n}=t;n.text||e("style")},tabs:t=>{const e=[{text:"style"},{text:"links"},{text:"settings"}];return e.forEach(e=>e.selected=e.text===(t||"style")),e},layout:t=>{let{tab:a}=t;const s=()=>"style"===a.text,l=()=>"settings"===a.text,c=()=>"links"===a.text;return[...r().flatMap((t,e)=>[{type:"info",text:t.text||`#${e+1}`,active:c},{type:"linkpicker",active:c,href:t.onClick?.link,protocol:t.onClick?.link?.protocol,target:t.onClick?.link?.target,onChange:t=>((t,e)=>{const o=r().map((n,r)=>r===t?{...n,onClick:{...n.onClick||{},link:e}}:{...n});n.execCommand("items",o)})(e,t.target.value)},{type:"divider",active:c}]),{type:"dropdown",title:"alignment",active:s,selected:e.props.justify||"flex-start",value:e.props.justify||"flex-start",items:[{value:"flex-start"},{value:"center"},{value:"flex-end"}],onChange:t=>n.execCommand("justify",t.target.value)},{type:"colorpicker",title:"textColor",active:s,value:o().color||"#000000",onChange:t=>i({color:t.target.value})},{type:"colorpicker",title:"background",active:s,value:o().backgroundColor||"transparent",onChange:t=>i({backgroundColor:t.target.value})},{type:"slider",title:"fontSize",min:10,max:48,active:s,value:parseInt(o().fontSize,10)||16,onInput:t=>i({fontSize:`${t.target.value}px`})},{type:"fontFamily",active:s,value:o().fontFamily,weight:!0,weightValue:o().fontWeight,onChange:t=>i({fontFamily:t.target.value}),onWeightChange:t=>i({fontWeight:t.detail.value})},{type:"divider",active:s},{type:"slider",title:"width",unit:"px",min:100,max:1200,active:l,value:parseInt(e.props.style?.width,10)||300,onInput:t=>n.execCommand("style",{width:t.target.value+"px"})},{type:"input",title:"marginBottom",active:l,value:e.props.style?.marginBottom||"",onChange:t=>n.execCommand("style",{marginBottom:t.target.value})}]}}},ct=t=>{const{children:e,bottomSpacing:a="20px",editor:c}=t,d=(new s.A,(0,i.A)("menu-component",t.classList,at.main)),p=(t.props,(0,o.A)("cdtr-menu-editor",{style:{width:"100%"}}));p.onChangeText=(e,n,r)=>{const o=p.items.findIndex(t=>t.id===r.id);if(r){const n=JSON.parse(JSON.stringify(p.items));n[o].text=e,c.store().execCommand2({transactions:[{key:"items",value:n,type:t.type}]})}};const h=e=>{if(e&&e.editor&&Array.isArray(e.editor.components)){if(!e.editor.components.find(e=>e.id===t.id)&&Array.isArray(p.items)){const t=[...p.items];t.forEach(t=>t.selected=!1),p.items=t}}};n.e(4109).then(n.t.bind(n,14109,23)).then(()=>{c.on("select",h),p.spacing="20px",p.translates={add:l.M.get("lang","add"),placeholder:"...",remove:l.M.get("lang","remove"),info:l.M.get("lang","drag_to_move_click_to_options")},p.onFocus=()=>{p.focused=!0},p.onBlur=(t,e)=>{p.focused=!1},p.justify=t.justify,p.items=t.props.items,p.onAdd=(t,e)=>{if(p.items.length>8)throw new Error("now the limit is 8");t.text="";const n=[...p.items];n.forEach(t=>t.selected=!1),n.length>0&&(t.style=n[0].style,t.selected=!0),n.unshift(t),c.store().execCommand("items",n)},p.onRemove=t=>{const e=JSON.parse(JSON.stringify(p.items)),n=e.findIndex(e=>e.id===t.id);-1!==n&&(e.splice(n,1),c.store().execCommand("items",e))},p.onSort=t=>{c.store().execCommand("items",t)},p.onSelect=t=>{const e=[...p.items],n=e.find(e=>e.id===t.id);n&&(e.forEach(t=>t.selected=!1),n.selected=!0),p.items=e,b.props.items=e}});const u=(0,o.A)("cdtr-move-handle-bar",{className:(0,i.A)(at.handle)}),f=(0,o.A)("cdtr-row",{alignItems:"center",style:{height:"100%"},justify:"flex-start"},(0,o.A)("div",{style:{width:"100%"}},p)),m=(0,o.A)("div",{"data-type":t.type,"data-id":t.id,"draggable-element":"element",style:{width:"100%"}},u,(0,o.A)("nav",(0,r.A)({},t,{className:d}),f)),g={set:(e,n,r)=>{switch(n){case"style":return e[n]=k()(e[n],r),t.props.style=r,!0;case"items":return p.items=r,e[n]=r,!0;case"justify":return e[n]=r,p.justify=r,!0;default:return!1}}},b=(0,W.A)(m,t,g),y={execCommand:(t,e)=>c.store().execCommand(t,e)};b.createEditor=t=>lt({component:b,commands:y,...t});const w=l.M.get("config","editor","configure","plugins"),A=Array.isArray(w)?w.findIndex(e=>e.name===t.type):-1;return A>-1&&(w[A].createEditor=b.createEditor),b.onKeyUp=st,b.onSelect=e=>{m.classList.add(e),u.setAttribute("for",t.id)},b.destroy=()=>{c.off("select",h)},b.remove=()=>{m.remove()},b.onDeselect=t=>{m.classList.remove(t)},b.commands={...b.commands||{},remove:()=>c.removeComponent({componentId:t.id})},b};var dt=n(40120),pt=n(15035);const ht=t=>{let{item:e,index:n}=t;E.Ay.components.forEach(t=>{if("form"===t.type){const r=t.props.items;t.props.items[n]&&"button"!==t.props.items[n].type&&n++;let o=null,i={},a={};const s=r.find(t=>"input"===t.type),l=r.find(t=>t?.props?.label_field);switch(s&&s.props.style&&(a=s.props.style),l&&l&&l?.props?.label_field?.props.style&&(i=l.props.label_field.props.style),e.type){case"input":["type","id","name","paramName","inputType"].forEach(t=>{if(!e[t])throw new Error(`'${t}' is required`)}),o=(0,pt.v)(e,{fieldStyle:a,labelStyle:i});break;case"textarea":["type","id","name","paramName"].forEach(t=>{if(!e[t])throw new Error(`'${t}' is required`)}),o=(0,pt.v)(e,{labelStyle:i,fieldStyle:a});break;case"checkbox":case"toggle":["type","id","name","paramName"].forEach(t=>{if(!e[t])throw new Error(`'${t}' is required`)}),o=(0,pt.v)(e,{labelStyle:i});break;case"radio-group":if(["type","id","name","paramName","items"].forEach(t=>{if(!e[t])throw new Error(`'${t}' is required`)}),!Array.isArray(e.items))throw new Error("'array of items' is required");if(e.items.length>10)throw new Error("'items' should not be more than 10");e.items.forEach(t=>{["label","value"].forEach(e=>{if(!t[e])throw new Error(`'${e}' is required`)}),t={id:t.id||null,label:t.label||t.name,value:t.value}}),o=(0,pt.v)(e,{labelStyle:i});break;case"menu":case"dropdown":if(["type","id","name","paramName","items"].forEach(t=>{if(!e[t])throw new Error(`'${t}' is required`)}),!Array.isArray(e.items))throw new Error("'array of items' is required");if(e.items.length>150)throw new Error("'items' should not be more than 10");e.items.forEach(t=>{["value"].forEach(e=>{if(!t[e])throw new Error(`'${e}' is required`)}),t={id:t.id||null,name:t.label||t.name,value:t.value}}),o=(0,pt.v)(e,{labelStyle:i});break;default:return void console.warn("unknown type in form creator.")}r.splice(n>r.length?r.length-1:n,0,o),E.Ay.store().updateComponent(t,"items",r)}})};async function ut(t,e){E.Ay.dispatch(`form:field:${t}`,{field:e,action:t});const n=E.Ay.formHooks||{},r="create"===t?n.onFieldCreate:"update"===t?n.onFieldUpdate:"delete"===t?n.onFieldDelete:null;if("function"!=typeof r)return e;try{const n="delete"===t?e.id:e,o=await r(n);return"delete"===t?e:o&&"object"==typeof o?o:e}catch(t){return M.A.dispatch("snackbar",{text:t&&t.message||"field_change_rejected"}),null}}var ft=n(32325),mt=n(50220),gt=n(25879);const bt=["input","textarea","checkbox","toggle","radio-group","dropdown"],yt=["text","email","tel","number","url"],wt=new Set(["radio-group","dropdown"]),At=t=>t.map(t=>({value:t,label:t})),xt=t=>String(t||"").trim().toLowerCase().replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"");function _t(){let{target:t,field:e=null,onSubmit:n,onCancel:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o=!!e
|
|
1772
|
+
`,customElements.define("cdtr-background-element",Q);var tt=n(90069),et={};et.setAttributes=g(),et.insert=f().bind(null,"head"),et.domAPI=h(),et.insertStyleElement=y();d()(tt.A,et);const nt=tt.A&&tt.A.locals?tt.A.locals:void 0,rt=t=>{new s.A;const e=(0,i.A)("row-component",t.classList,nt.root),n=(0,o.A)("cdtr-row",{justify:"center",style:t.props.style,"data-type":t.type,"data-id":t.id,className:e},t.children),r={set:(t,e,r)=>"style"===e&&(t[e]=r,(0,a.A)(n,{style:t[e]}),!0)};return(0,B.n)({id:t.id,name:t.type,allowSortable:!0,validator:r,template:n,childrenHolder:n,elementProps:t,destroy:()=>{},remove:()=>{n.remove()},onSelect:t=>{},onDeselect:t=>{}})};var ot=n(60932),it={};it.setAttributes=g(),it.insert=f().bind(null,"head"),it.domAPI=h(),it.insertStyleElement=y();d()(ot.A,it);const at=ot.A&&ot.A.locals?ot.A.locals:void 0,st=t=>{let{event:e,compose:n}=t;const{key:r,target:o,ctrlKey:i}=e;if(i){const t=n.closest("col");if(!t)return;const e=t.props.justify;"ArrowLeft"===r?"flex-end"===e?E.EN.store().execCommand("justify","center",{find:"col"}):E.EN.store().execCommand("justify","flex-start",{find:"col"}):"ArrowRight"===r&&("flex-start"===e?E.EN.store().execCommand("justify","center",{find:"col"}):E.EN.store().execCommand("justify","flex-end",{find:"col"}));const o=E.EN.getEditor().find(t=>"resizeable"===t.name);o&&o.editor.rePosition()}},lt=t=>{let{component:e,commands:n}=t;const r=()=>Array.isArray(e.props.items)?e.props.items:[],o=()=>r()[0]?.style||{},i=t=>{const e=r().map(e=>({...e,style:{...e.style||{},...t}}));n.execCommand("items",e)};return{select:t=>{let{changeTab:e,tab:n}=t;n.text||e("style")},tabs:t=>{const e=[{text:"style"},{text:"links"},{text:"settings"}];return e.forEach(e=>e.selected=e.text===(t||"style")),e},layout:t=>{let{tab:a}=t;const s=()=>"style"===a.text,l=()=>"settings"===a.text,c=()=>"links"===a.text;return[...r().flatMap((t,e)=>[{type:"info",text:t.text||`#${e+1}`,active:c},{type:"linkpicker",active:c,href:t.onClick?.link,protocol:t.onClick?.link?.protocol,target:t.onClick?.link?.target,onChange:t=>((t,e)=>{const o=r().map((n,r)=>r===t?{...n,onClick:{...n.onClick||{},link:e}}:{...n});n.execCommand("items",o)})(e,t.target.value)},{type:"divider",active:c}]),{type:"dropdown",title:"alignment",active:s,selected:e.props.justify||"flex-start",value:e.props.justify||"flex-start",items:[{value:"flex-start"},{value:"center"},{value:"flex-end"}],onChange:t=>n.execCommand("justify",t.target.value)},{type:"colorpicker",title:"textColor",active:s,value:o().color||"#000000",onChange:t=>i({color:t.target.value})},{type:"colorpicker",title:"background",active:s,value:o().backgroundColor||"transparent",onChange:t=>i({backgroundColor:t.target.value})},{type:"slider",title:"fontSize",min:10,max:48,active:s,value:parseInt(o().fontSize,10)||16,onInput:t=>i({fontSize:`${t.target.value}px`})},{type:"fontFamily",active:s,value:o().fontFamily,weight:!0,weightValue:o().fontWeight,onChange:t=>i({fontFamily:t.target.value}),onWeightChange:t=>i({fontWeight:t.detail.value})},{type:"divider",active:s},{type:"slider",title:"width",unit:"px",min:100,max:1200,active:l,value:parseInt(e.props.style?.width,10)||300,onInput:t=>n.execCommand("style",{width:t.target.value+"px"})},{type:"input",title:"marginBottom",active:l,value:e.props.style?.marginBottom||"",onChange:t=>n.execCommand("style",{marginBottom:t.target.value})}]}}},ct=t=>{const{children:e,bottomSpacing:a="20px",editor:c}=t,d=(new s.A,(0,i.A)("menu-component",t.classList,at.main)),p=(t.props,(0,o.A)("cdtr-menu-editor",{style:{width:"100%"}}));p.onChangeText=(e,n,r)=>{const o=p.items.findIndex(t=>t.id===r.id);if(r){const n=JSON.parse(JSON.stringify(p.items));n[o].text=e,c.store().execCommand2({transactions:[{key:"items",value:n,type:t.type}]})}};const h=e=>{if(e&&e.editor&&Array.isArray(e.editor.components)){if(!e.editor.components.find(e=>e.id===t.id)&&Array.isArray(p.items)){const t=[...p.items];t.forEach(t=>t.selected=!1),p.items=t}}};n.e(4109).then(n.t.bind(n,14109,23)).then(()=>{c.on("select",h),p.spacing="20px",p.translates={add:l.M.get("lang","add"),placeholder:"...",remove:l.M.get("lang","remove"),info:l.M.get("lang","drag_to_move_click_to_options")},p.onFocus=()=>{p.focused=!0},p.onBlur=(t,e)=>{p.focused=!1},p.justify=t.justify,p.items=t.props.items,p.onAdd=(t,e)=>{if(p.items.length>8)throw new Error("now the limit is 8");t.text="";const n=[...p.items];n.forEach(t=>t.selected=!1),n.length>0&&(t.style=n[0].style,t.selected=!0),n.unshift(t),c.store().execCommand("items",n)},p.onRemove=t=>{const e=JSON.parse(JSON.stringify(p.items)),n=e.findIndex(e=>e.id===t.id);-1!==n&&(e.splice(n,1),c.store().execCommand("items",e))},p.onSort=t=>{c.store().execCommand("items",t)},p.onSelect=t=>{const e=[...p.items],n=e.find(e=>e.id===t.id);n&&(e.forEach(t=>t.selected=!1),n.selected=!0),p.items=e,b.props.items=e}});const u=(0,o.A)("cdtr-move-handle-bar",{className:(0,i.A)(at.handle)}),f=(0,o.A)("cdtr-row",{alignItems:"center",style:{height:"100%"},justify:"flex-start"},(0,o.A)("div",{style:{width:"100%"}},p)),m=(0,o.A)("div",{"data-type":t.type,"data-id":t.id,"draggable-element":"element",style:{width:"100%"}},u,(0,o.A)("nav",(0,r.A)({},t,{className:d}),f)),g={set:(e,n,r)=>{switch(n){case"style":return e[n]=k()(e[n],r),t.props.style=r,!0;case"items":return p.items=r,e[n]=r,!0;case"justify":return e[n]=r,p.justify=r,!0;default:return!1}}},b=(0,W.A)(m,t,g),y={execCommand:(t,e)=>c.store().execCommand(t,e)};b.createEditor=t=>lt({component:b,commands:y,...t});const w=l.M.get("config","editor","configure","plugins"),A=Array.isArray(w)?w.findIndex(e=>e.name===t.type):-1;return A>-1&&(w[A].createEditor=b.createEditor),b.onKeyUp=st,b.onSelect=e=>{m.classList.add(e),u.setAttribute("for",t.id)},b.destroy=()=>{c.off("select",h)},b.remove=()=>{m.remove()},b.onDeselect=t=>{m.classList.remove(t)},b.commands={...b.commands||{},remove:()=>c.removeComponent({componentId:t.id})},b};var dt=n(40120),pt=n(15035);const ht=t=>{let{item:e,index:n}=t;E.Ay.components.forEach(t=>{if("form"===t.type){const r=t.props.items;t.props.items[n]&&"button"!==t.props.items[n].type&&n++;let o=null,i={},a={};const s=r.find(t=>"input"===t.type),l=r.find(t=>t?.props?.label_field);switch(s&&s.props.style&&(a=s.props.style),l&&l&&l?.props?.label_field?.props.style&&(i=l.props.label_field.props.style),e.type){case"input":["type","id","name","paramName","inputType"].forEach(t=>{if(!e[t])throw new Error(`'${t}' is required`)}),o=(0,pt.v)(e,{fieldStyle:a,labelStyle:i});break;case"textarea":["type","id","name","paramName"].forEach(t=>{if(!e[t])throw new Error(`'${t}' is required`)}),o=(0,pt.v)(e,{labelStyle:i,fieldStyle:a});break;case"checkbox":case"toggle":["type","id","name","paramName"].forEach(t=>{if(!e[t])throw new Error(`'${t}' is required`)}),o=(0,pt.v)(e,{labelStyle:i});break;case"radio-group":if(["type","id","name","paramName","items"].forEach(t=>{if(!e[t])throw new Error(`'${t}' is required`)}),!Array.isArray(e.items))throw new Error("'array of items' is required");if(e.items.length>10)throw new Error("'items' should not be more than 10");e.items.forEach(t=>{["label","value"].forEach(e=>{if(!t[e])throw new Error(`'${e}' is required`)}),t={id:t.id||null,label:t.label||t.name,value:t.value}}),o=(0,pt.v)(e,{labelStyle:i});break;case"menu":case"dropdown":if(["type","id","name","paramName","items"].forEach(t=>{if(!e[t])throw new Error(`'${t}' is required`)}),!Array.isArray(e.items))throw new Error("'array of items' is required");if(e.items.length>150)throw new Error("'items' should not be more than 10");e.items.forEach(t=>{["value"].forEach(e=>{if(!t[e])throw new Error(`'${e}' is required`)}),t={id:t.id||null,name:t.label||t.name,value:t.value}}),o=(0,pt.v)(e,{labelStyle:i});break;default:return void console.warn("unknown type in form creator.")}r.splice(n>r.length?r.length-1:n,0,o),E.Ay.store().updateComponent(t,"items",r)}})};async function ut(t,e){E.Ay.dispatch(`form:field:${t}`,{field:e,action:t});const n=E.Ay.formHooks||{},r="create"===t?n.onFieldCreate:"update"===t?n.onFieldUpdate:"delete"===t?n.onFieldDelete:null;if("function"!=typeof r)return e;try{const n="delete"===t?e.id:e,o=await r(n);return"delete"===t?e:o&&"object"==typeof o?o:e}catch(t){return M.A.dispatch("snackbar",{text:t&&t.message||"field_change_rejected"}),null}}var ft=n(32325),mt=n(50220),gt=n(25879);const bt=["input","textarea","checkbox","toggle","radio-group","dropdown"],yt=["text","email","tel","number","url"],wt=new Set(["radio-group","dropdown"]),At=t=>t.map(t=>({value:t,label:t})),xt=t=>String(t||"").trim().toLowerCase().replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"");function _t(){let{target:t,field:e=null,onSubmit:n,onCancel:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o=!!e;let i=null;const a={id:e?.id||null,type:e?.type||"input",label:e?.label||"",name:e?.name||"",paramName:e?.paramName||`field_${Math.random().toString(36).slice(2,8)}`,inputType:e?.inputType||"text",items:e?.items?.length?e.items.map(t=>({label:t.label,value:t.value})):[{label:"",value:""}]};t&&(t.headerText=o?"edit_field":"add_field");const s="rtl"===l.M.get("theme")?.direction?"arrowRight":"arrowLeft",c=()=>{const t=a.name||xt(a.label),r=xt(a.paramName)||t,s={id:a.id||`${t||"field"}_${Date.now()}`,type:a.type,name:t,label:a.label||t,paramName:r};"input"===a.type&&(s.inputType=a.inputType),wt.has(a.type)&&(s.items=a.items.filter(t=>t.label&&t.value).map(t=>({label:t.label,value:t.value})));const l=(c=s).name?c.paramName?"input"!==c.type||c.inputType?!wt.has(c.type)||c.items&&c.items.length?null:"field_options_required":"field_input_type_required":"field_param_required":"field_name_required";var c;if(l)return i=l,void d();i=null,n?.(s,o?e:null)},d=()=>(0,Y.XX)(b(),t),p=t=>e=>{a[t]=e.target.value},h=(t,e)=>n=>{a.items[t][e]=n.target.value},u=t=>{a.type=t.target.value,d()},f=t=>{a.inputType=t.target.value},m=()=>{a.items.push({label:"",value:""}),d()},g=()=>Y.qy`
|
|
1773
1773
|
${(0,gt.A)({level:6,text:"field_options"})}
|
|
1774
1774
|
<cdtr-editor-container>
|
|
1775
|
-
${
|
|
1775
|
+
${a.items.map((t,e)=>Y.qy`<div
|
|
1776
1776
|
style="display:flex;gap:var(--space-2,8px);align-items:center;margin-bottom:var(--space-2,8px);"
|
|
1777
1777
|
>
|
|
1778
1778
|
<cdtr-input
|
|
1779
1779
|
style="flex:1;"
|
|
1780
1780
|
.placeholder=${l.M.get("lang","label")||"Label"}
|
|
1781
1781
|
.value=${t.label}
|
|
1782
|
-
@input=${
|
|
1782
|
+
@input=${h(e,"label")}
|
|
1783
1783
|
></cdtr-input>
|
|
1784
1784
|
<cdtr-input
|
|
1785
1785
|
style="flex:1;"
|
|
1786
1786
|
.placeholder=${l.M.get("lang","field_value")||"Value"}
|
|
1787
1787
|
.value=${t.value}
|
|
1788
|
-
@input=${
|
|
1788
|
+
@input=${h(e,"value")}
|
|
1789
1789
|
></cdtr-input>
|
|
1790
1790
|
<paper-button
|
|
1791
1791
|
title=${l.M.get("lang","remove_option")||"Remove"}
|
|
1792
1792
|
style="min-width:0;width:34px;height:34px;padding:0;justify-content:center;border-radius:var(--radius-sm,6px);color:var(--color-text-muted,#888);flex:0 0 auto;"
|
|
1793
|
-
@click=${()=>(t=>{
|
|
1793
|
+
@click=${()=>(t=>{a.items.splice(t,1),a.items.length||a.items.push({label:"",value:""}),d()})(e)}
|
|
1794
1794
|
>
|
|
1795
1795
|
<cdtr-icon width="16" height="16" icon="delete"></cdtr-icon>
|
|
1796
1796
|
</paper-button>
|
|
1797
1797
|
</div>`)}
|
|
1798
1798
|
<paper-button
|
|
1799
1799
|
style="min-width:0;padding:6px 10px;margin-inline-start:-8px;gap:6px;color:var(--color-primary,#6366f1);font-weight:600;font-size:var(--text-sm,13px);border-radius:var(--radius-sm,6px);"
|
|
1800
|
-
@click=${
|
|
1800
|
+
@click=${m}
|
|
1801
1801
|
>
|
|
1802
1802
|
<cdtr-icon width="14" height="14" icon="add"></cdtr-icon>
|
|
1803
1803
|
<lang-text text="add_option"></lang-text>
|
|
1804
1804
|
</paper-button>
|
|
1805
1805
|
</cdtr-editor-container>
|
|
1806
|
-
`,
|
|
1806
|
+
`,b=()=>Y.qy`
|
|
1807
1807
|
<div
|
|
1808
1808
|
style="padding-bottom:var(--space-2,8px);direction:var(--direction-locale,ltr);--editor-container-inline-padding:var(--space-6,24px);"
|
|
1809
1809
|
>
|
|
@@ -1814,34 +1814,47 @@
|
|
|
1814
1814
|
style="min-width:0;padding:6px 10px;margin-inline-start:-10px;gap:4px;color:var(--color-text-secondary,#555);font-size:var(--text-sm,13px);font-weight:500;border-radius:var(--radius-sm,6px);"
|
|
1815
1815
|
@click=${()=>r?.()}
|
|
1816
1816
|
>
|
|
1817
|
-
<cdtr-icon width="16" height="16" icon=${
|
|
1817
|
+
<cdtr-icon width="16" height="16" icon=${s}></cdtr-icon>
|
|
1818
1818
|
<lang-text text="back"></lang-text>
|
|
1819
1819
|
</paper-button>
|
|
1820
1820
|
</div>
|
|
1821
|
-
${(0,mt.A)({title:"field_type",value:
|
|
1822
|
-
${(0,ft.A)({title:"label",value:
|
|
1823
|
-
${(0,ft.A)({title:"param_name",value:
|
|
1824
|
-
|
|
1825
|
-
|
|
1821
|
+
${(0,mt.A)({title:"field_type",value:a.type,selected:a.type,items:At(bt),onChange:u})}
|
|
1822
|
+
${(0,ft.A)({title:"label",value:a.label,onInput:p("label")})}
|
|
1823
|
+
${(0,ft.A)({title:"param_name",value:a.paramName,placeholder:xt(a.label)||"field",onInput:p("paramName")})}
|
|
1824
|
+
<div
|
|
1825
|
+
style="padding:0 var(--space-6,24px);margin-top:calc(-1 * var(--space-1,4px));color:var(--color-text-muted,#888);font-size:var(--text-sm,12px);line-height:1.45;white-space:normal;overflow-wrap:anywhere;word-break:break-word;"
|
|
1826
|
+
>
|
|
1827
|
+
<lang-text text="param_name_hint" .whiteSpace=${"normal"}></lang-text>
|
|
1828
|
+
</div>
|
|
1829
|
+
${"input"===a.type?(0,mt.A)({title:"input_type",value:a.inputType,selected:a.inputType,items:At(yt),onChange:f}):null}
|
|
1830
|
+
${wt.has(a.type)?g():null}
|
|
1826
1831
|
|
|
1827
1832
|
<div
|
|
1828
|
-
style="
|
|
1833
|
+
style="padding:var(--space-4,16px) var(--space-6,24px);margin-top:var(--space-3,12px);border-top:1px solid var(--color-border,#e8e8ec);"
|
|
1829
1834
|
>
|
|
1830
|
-
<
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1835
|
+
<div style="display:flex;gap:var(--space-3,12px);align-items:center;">
|
|
1836
|
+
<paper-button
|
|
1837
|
+
style="flex:1;justify-content:center;padding:11px 18px;background:var(--color-primary,#6366f1);color:var(--color-primary-text,#fff);font-weight:600;font-size:var(--text-md,14px);border-radius:var(--radius-md,10px);box-shadow:none;"
|
|
1838
|
+
@click=${c}
|
|
1839
|
+
>
|
|
1840
|
+
<lang-text text=${o?"save":"add_field"}></lang-text>
|
|
1841
|
+
</paper-button>
|
|
1842
|
+
<paper-button
|
|
1843
|
+
style="justify-content:center;padding:11px 18px;color:var(--color-text-secondary,#555);font-weight:500;font-size:var(--text-md,14px);border:1px solid var(--color-border,#e8e8ec);border-radius:var(--radius-md,10px);background:transparent;"
|
|
1844
|
+
@click=${()=>r?.()}
|
|
1845
|
+
>
|
|
1846
|
+
<lang-text text="cancel"></lang-text>
|
|
1847
|
+
</paper-button>
|
|
1848
|
+
</div>
|
|
1849
|
+
${i?Y.qy`<div
|
|
1850
|
+
role="alert"
|
|
1851
|
+
style="margin-top:var(--space-2,8px);color:var(--color-danger,#e5484d);font-size:var(--text-sm,13px);line-height:1.4;"
|
|
1852
|
+
>
|
|
1853
|
+
<lang-text text=${i} .whiteSpace=${"normal"}></lang-text>
|
|
1854
|
+
</div>`:null}
|
|
1842
1855
|
</div>
|
|
1843
1856
|
</div>
|
|
1844
|
-
`;c()}var vt=n(29811),kt={};kt.setAttributes=g(),kt.insert=f().bind(null,"head"),kt.domAPI=h(),kt.insertStyleElement=y();d()(vt.A,kt);const Ct=vt.A&&vt.A.locals?vt.A.locals:void 0;var Et=n(73890);function St(t){const{props:e,commands:r,justify:i,items:a,editor:s,store:l,schema:c}=t,{style:d,classList:p=[]}=e;t.automations||(t.automations={});const h=(0,o.A)("div",null,(0,o.A)("cdtr-block-loader",null),(0,o.A)("cdtr-title",null,(0,o.A)("lang-text",{text:"please_wait_downloading_new_version"}))),u=(0,o.A)("cdtr-form-builder",{className:Ct.form},h);n.e(2550).then(n.t.bind(n,12550,23)).then(()=>{h.remove(),u.style.outlineOffset="10px",u.style.display="block",u.language=l.get("config","language"),u.autoComplete="off",u.spacing=2,u.theme={palette:{primary:{main:"#845EC2"}}},u.formStyle=t.style,u.onSelectField=(t,e)=>{const n=[...u.items];l.get("ctrlKey")?n[t].selected=!n[t].selected:(n.forEach(t=>t.selected=!1),n[t].selected=!0),u.items=n,s.dispatch("update")},u.onSortEnd=t=>{let{items:e}=t;s.store().updateComponent(x,"items",e)},u.items=t.items});const f=(0,o.A)("cdtr-move-handle-bar",null),m=(0,o.A)("cdtr-editor-bar",{opened:!1,direction:"left",offsetY:60,componentId:t.id},(0,o.A)("cdtr-tooltip",{content:"form:manage_fields"},(0,o.A)("paper-button",{class:Ct.button,onClick:()=>y()},(0,o.A)("cdtr-icon",{width:"36",height:"36",icon:"createField"}))),(0,o.A)("cdtr-tooltip",{content:"design_form"},(0,o.A)("paper-button",{onClick:()=>{const t=x.closest("card");t&&s.clean().selectComponent(t)},class:Ct.button},(0,o.A)("cdtr-icon",{width:"36",height:"36",icon:"designForm"})))),g=(0,o.A)("div",{"data-type":t.type,"data-id":t.id,"draggable-element":"element","droppable-element":"element",style:{width:"100%"},className:p.concat("form-component").join(" ")},u,f,m),b={set:(t,e,n)=>{switch(e){case"onSubmit":return u.onSubmit=t[e],!0;case"items:v":return u.items=[],t[e]=r.cloneDeep(n),u.items=t[e],!0;case"items":return r.debounce(()=>{u.items=[],t[e]=r.cloneDeep(n),u.items=t[e]},10),!0;case"automations":return t[e]=r.deepMerge(t[e],n),!0;case"display":return t[e]=r.deepMerge(t[e]||{},n),!0;case"style":return t[e]=r.deepMerge(t[e],n),u.formStyle=t[e],!0;default:return!0}}};m.opened=!1;const y=()=>{const e=t.schema??(l.get("config","editor","configure","plugins")||[]).find(t=>t&&"form"===t.name),n=e?.configure?.fields;if(!n)return void console.warn("[form] manage fields: no form plugin schema available (fields missing)");const r=(0,o.A)("cdtr-drawer",{backdropColor:"#000000a1",width:"400px",style:{direction:"var(--direction-locale)"}});r.opened=!0,r.headerText="available_fields",document.body.appendChild(r);const i={fields:n.map(t=>{const e=u.items.find(e=>e.id===t.id);return t.inserted=!!e,t}),onChange:async(t,e,n)=>{const r=u.items.findIndex(e=>e.id===t.id);if(e&&-1===r){const e=await ut("create",t);if(!e)return t.inserted=!1,void d(i.fields);const n=u.items.findIndex(t=>t.selected)||u.items.length-1;ht({item:e,index:n})}else if(!e&&-1!==r){if("button"===u.items[r]?.type)return;if(!await ut("delete",t))return t.inserted=!0,void d(i.fields);const e=[...u.items];e.splice(r,1),s.updateComponent(x,"items",e)}},onCreate:async(t,e)=>{const r=e?"update":"create",o=await ut(r,t);if(!o)return;const a=i.fields.find(t=>t.id===o.id);a?Object.assign(a,o):(o.inserted=!0,i.fields.push(o),n.push(o));const l=u.items.findIndex(t=>t.id===o.id);if(-1===l){const t=u.items.findIndex(t=>t.selected)||u.items.length-1;ht({item:o,index:t})}else{const t=[...u.items];t.splice(l,1),s.updateComponent(x,"items",t),ht({item:o,index:l})}a&&(a.inserted=!0),d(i.fields)}},a=()=>d(i.fields),c=function(){return _t({target:r,field:arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,onSubmit:i.onCreate,onCancel:a})},d=t=>{r.headerText="available_fields";(0,Y.XX)((0,Et.A)({items:t,onChange:i.onChange,debounce:t=>{let{target:e}=t;const n=e.value,r=i.fields.filter(t=>-1!==t.name.indexOf(n));d(r)},onAdd:()=>c(),onEdit:t=>c(t)}),r)};d(i.fields),r.addEventListener("close",()=>{r.remove()},{once:!0})},w=function(t){let{debounce:e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s.components.forEach(e=>{if("form"===e.type){const n=JSON.parse(JSON.stringify(e.props.items));let r=0;const o=()=>{r=n.length};for(;r<n.length;r++){const i=n[r];i.props.label_field||(i.props.label_field={props:{inline:!1,style:{},text:""}}),i.props.label_field.props||(i.props.label_field={props:{inline:!1,style:{},text:""}}),i.props.label_field.props.style||(i.props.label_field.props.style={}),"menu"!==i.type&&"dropdown"!==i.type||(i.props.triggerProps||(i.props.triggerProps={}),i.props.triggerProps.style||(i.props.triggerProps.style={})),t(i,{stop:o,items:n,compose:e})}s.store().updateComponent(e,"items",n)}})};let A=!1;const x=(0,B.n)({name:"form",id:t.id,template:g,atomElement:u,defaultProps:{style:{},classList:[],items:[]},schema:c,onSelect:e=>{m.opened=!0,m.componentId=x.closest("card")?.id||t.id},onDeselect:t=>{m.opened=!1},elementProps:t,createEditor:t=>{let{component:e,props:n,commands:r,helpers:o}=t;const i={BUTTONS:["button"],INPUTS:["input","textarea"],TOGGLES:["radio-group","checkbox","toggle"],MENUS:["dropdown","menu"]},a=e.props.items?.find(t=>t.selected);if(!a)return{};function l(){return c?.configure?.mailingLists.map(t=>({...t,value:t.label}))}return{select:t=>{let{changeTab:e,tab:n}=t;"style"!==n.text&&e("style")},tabs:t=>{const e=[{text:"style"},{text:"list-settings"},{text:"automations"},{text:"settings"}];return e.forEach(e=>e.selected=e.text===t),e},layout:t=>{let{tab:n,changeTab:r,tabs:d}=t;if("automations"!==n.text){const t=e?.props?.automations?.when?.submitted?.then?.sendMail;if(t?.to?.length){const e=t.to.filter(t=>"string"==typeof t&&""!==t.trim());e.length!==t.to.length&&s.store().execCommands({key:"automations",value:n=>o.deepMerge(n.props.automations,{when:{submitted:{then:{sendMail:{...t,to:e}}}}}),options:{find:"form"}})}}const p=e?.props?.display||{},h=p.mode||"inline",u=t=>s.store().execCommands({key:"display",value:e=>o.deepMerge(e.props.display||{},t),options:{find:"form"}}),f=[{type:"heading",level:6,text:"form_behavior",active:"style"===n.text},{type:"dropdown",title:"display_mode",active:"style"===n.text,value:h,selected:h,items:[{key:"display_inline",value:"inline"},{key:"display_modal",value:"modal"}],onChange:t=>{u({mode:t.target.value}),r("style")}},{type:"slider",title:"open_delay_seconds",inputType:"number",min:0,max:60,active:"style"===n.text&&"modal"===h,value:p.delaySeconds??3,onInput:t=>{u({delaySeconds:parseFloat(t.target.value)})}},{type:"heading",level:6,text:"settings",active:"style"===n.text&&"button"===a.type},{type:"input",title:"text:button",active:"style"===n.text&&"button"===a.type,value:a.props.text,onInput:t=>{const e=t.target.value;w(t=>{t.selected&&"button"===t.type&&(t.props.text=e)},{debounce:!0})}},{type:"heading",level:6,text:"field_settings",active:"list-settings"===n.text&&"button"!==a.type},{type:"input",title:"label",active:"button"!==a.type&&"list-settings"===n.text,value:a?.props?.label_field?.props?.text,onInput:t=>{const e=t.target.value;w(t=>{t.selected&&"button"!==t.type&&(t.props.label_field.props.text=e)},{debounce:!0})}},{type:"input",title:"placeholder",active:i.INPUTS.includes(a.type)&&"list-settings"===n.text,value:a.props.placeholder,onInput:t=>{const e=t.target.value;w(t=>{i.INPUTS.includes(t.type)&&t.selected&&"button"!==t.type&&(t.props.placeholder=e)},{debounce:!0})}},{type:"checkbox",title:"checkbox_checked_as_default",checked:a.props.checked,active:["toggle","checkbox"].includes(a.type)&&"list-settings"===n.text,onChange:t=>{const e=t.target.checked;w(t=>{t.selected&&i.TOGGLES.includes(t.type)&&(t.props.checked=e)})}},{type:"checkbox",title:"checkbox_on_right_side",checked:!0===a.props.labelPlacement,active:"checkbox"===a.type&&"list-settings"===n.text,onChange:t=>{const e=t.target.checked;w(t=>{t.selected&&"checkbox"===t.type&&(t.props.labelPlacement=e?"start":"end")})}},{type:"stringListBuilder",title:"items_in_menu",active:(i.MENUS.includes(a.type)||"radio-group"===a.type)&&"list-settings"===n.text,items:a.props.items,changeItemValue:(t,e,n)=>{w(n=>{n!==a&&n.id!==a.id||(n.props.items[t].label=e)})}},{type:"heading",level:6,text:"typography",active:"style"===n.text},{type:"fontFamily",active:"style"===n.text,value:a?.props?.style?.fontFamily||a?.props?.label_field?.props?.style.fontFamily,weight:!0,weightValue:a?.props?.style?.fontWeight||a?.props?.label_field?.props?.style.fontWeight,onChange:t=>{const e=t.target.value;(0,dt.sw)({cssRule:e}),e&&w(t=>{i.BUTTONS.includes(a.type)&&i.BUTTONS.includes(t.type)?t.props.style.fontFamily=e:i.TOGGLES.includes(a.type)&&a.id===t.id?(t.props.label_field.props.style.fontFamily=e,t.props.style.fontFamily=e):[...i.INPUTS,...i.MENUS].includes(a.type)&&[...i.INPUTS,...i.MENUS].includes(t.type)&&(i.MENUS.includes(t.type)?t.props.triggerProps.style.fontFamily=e:(t.props.label_field.props.style.fontFamily=e,t.props.style.fontFamily=e))},{debounce:!0})},onWeightChange:t=>{const e=t.detail.value;e&&w(t=>{i.BUTTONS.includes(a.type)&&i.BUTTONS.includes(t.type)?t.props.style.fontWeight=e:i.TOGGLES.includes(a.type)&&a.id===t.id?(t.props.label_field.props.style.fontWeight=e,t.props.style.fontWeight=e):[...i.INPUTS,...i.MENUS].includes(a.type)&&[...i.INPUTS,...i.MENUS].includes(t.type)&&(i.MENUS.includes(t.type)?t.props.triggerProps.style.fontWeight=e:(t.props.label_field.props.style.fontWeight=e,t.props.style.fontWeight=e))},{debounce:!0})}},{type:"slider",title:"fontSize",max:30,min:8,active:"style"===n.text,value:parseInt(a.props?.style.fontSize)||parseInt(a?.props?.label_field?.props?.style.fontSize)||16,onInput:t=>{const e=t.target.value+"px";e&&w(t=>{i.BUTTONS.includes(a.type)&&i.BUTTONS.includes(t.type)?t.props.style.fontSize=e:(i.TOGGLES.includes(a.type)&&a.id===t.id||[...i.INPUTS,...i.MENUS].includes(a.type)&&[...i.INPUTS,...i.MENUS].includes(t.type))&&(t.props.label_field.props.style.fontSize=e)},{debounce:!0})}},{type:"typography",active:"style"===n.text,bold:700===a.props?.style?.fontWeight||700===a.props?.label_field?.props?.style?.fontWeight,italic:"italic"===a.props?.style?.fontStyle||"italic"===a.props?.label_field?.props.style?.fontStyle,underline:"underline"===a.props?.style?.textDecoration||"underline"===a.props?.label_field?.props?.style?.textDecoration,onChange:t=>{function e(e){switch(t){case"bold":e.fontWeight=null===e.fontWeight?700:null;break;case"italic":e.fontStyle=null===e.fontStyle?"italic":null;break;case"underline":e.textDecoration="underline"===e.textDecoration?null:"underline"}}w(t=>{"checkbox"===a.type?t.selected&&"checkbox"===t.type&&e(t.props.label_field.props.style):t.selected&&"button"===a.type&&"button"===t.type?e(t.props.style):"button"!==a.type&&"button"!==t.type&&(!t.selected||"menu"!==t.type&&"dropdown"!==t.type?t.selected&&e(t.props.label_field.props.style):e(t.props.label_field.props.style))},{debounce:!0})}},{type:"heading",level:6,text:"colors",active:"style"===n.text},{type:"colorpicker",title:"color:label",active:"style"===n.text,value:a.props?.label_field?.props?.style?.color||a.props?.style.color,onChange:t=>{const e=t.target.value;e&&w(t=>{i.BUTTONS.includes(a.type)&&i.BUTTONS.includes(t.type)?t.props.style.color=e:(i.TOGGLES.includes(a.type)&&a.id===t.id||[...i.INPUTS,...i.MENUS].includes(a.type)&&[...i.INPUTS,...i.MENUS].includes(t.type))&&(t.props.label_field.props.style.color=e)},{debounce:!0})}},{type:"colorpicker",title:"component_color",active:()=>"style"===n.text&&i.TOGGLES.includes(a?.type),value:a.props?.style.color,onChange:t=>{const e=t.target.value;e&&w(t=>{i.TOGGLES.includes(a.type)&&a.id===t.id&&(t.props.style.color=e)},{debounce:!0})}},{type:"colorpicker",title:"button"===a.type?"background":"form:background",active:"style"===n.text&&-1!==[...i.BUTTONS,...i.INPUTS,...i.MENUS].indexOf(a.type),value:a.props?.triggerProps?.style?.background||a.props?.style?.background,onChange:t=>{const e=t.target.value;e&&w(t=>{i.BUTTONS.includes(a.type)&&i.BUTTONS.includes(t.type)?t.props.style.background=e:[...i.INPUTS,...i.MENUS].includes(a.type)&&[...i.INPUTS,...i.MENUS].includes(t.type)&&(i.MENUS.includes(t.type)?t.props.triggerProps.style.background=e:t.props.style.background=e)})}},{type:"colorpicker",title:"form:placeholder_color",active:"style"===n.text&&-1!==[...i.INPUTS,...i.MENUS].indexOf(a.type),value:a.props?.style?.color,onChange:t=>{const e=t.target.value;e&&w(t=>{i.INPUTS.includes(t.type)&&i.INPUTS.includes(a.type)?t.props.style.color=e:i.MENUS.includes(t.type)&&i.MENUS.includes(a.type)&&(t.props.triggerProps.style.color=e)},{debounce:!0})}},{type:"heading",level:6,text:"dimensions",active:"style"===n.text},{type:"slider",title:"height",max:70,min:20,active:"style"===n.text&&["input",...i.MENUS,...i.BUTTONS].includes(a.type),value:parseInt(a.props.style.minHeight)||parseInt(a?.props?.triggerProps?.style.minHeight)||40,onInput:t=>{const e=t.target.value+"px";e&&w(t=>{i.BUTTONS.includes(a.type)&&i.BUTTONS.includes(t.type)?(delete t.props.style.height,t.props.style.minHeight=e):[...i.INPUTS,...i.MENUS].includes(a.type)&&[...i.INPUTS,...i.MENUS].includes(t.type)&&(i.MENUS.includes(t.type)?t.props.triggerProps.style.minHeight=e:delete t.props.style.height,t.props.style.minHeight=e)},{debounce:!0})}},{type:"slider",title:"radius",max:50,min:0,active:"style"===n.text&&[...i.INPUTS,...i.MENUS,...i.BUTTONS].includes(a.type),value:parseInt(a?.props?.style.borderRadius)||parseInt(a?.props?.triggerProps?.style?.borderRadius)||0,onInput:t=>{const e=t.target.value+"px";e&&w(t=>{i.BUTTONS.includes(a.type)&&i.BUTTONS.includes(t.type)?t.props.style.borderRadius=e:[...i.INPUTS,...i.MENUS].includes(a.type)&&[...i.INPUTS,...i.MENUS].includes(t.type)&&(i.MENUS.includes(t.type)?t.props.triggerProps.style.borderRadius=e:t.props.style.borderRadius=e)},{debounce:!0})}},{type:"dropdown",title:"type",value:a.props.type,active:()=>"input"===a.type&&"list-settings"===n.text,selected:a.props.type,items:c.types.find(t=>"input"===t.name)?.types.map(t=>new Object({key:t,value:t})),onChange:t=>{const e=t.target.value;w(t=>{"input"===a.type&&t.selected&&"input"===t.type&&(t.props.type=e)},{debounce:!0})}},{type:"input",title:"default_value",active:()=>"input"===a.type&&"list-settings"===n.text,value:a.props.value,onInput:t=>{const e=t.target.value;w(t=>{!t.selected||"input"!==t.type&&"menu"!==t.type&&"dropdown"!==t.type&&"textarea"!==t.type||(t.props.value=e)},{debounce:!0})}},{type:"heading",level:6,text:"properties",active:"list-settings"===n.text&&"button"!==a.type},{type:"checkbox",title:"required",info:"required_form_field_info",checked:a.props.isRequired,controlled:!1,active:"list-settings"===n.text&&"button"!==a.type,onChange:t=>{const e=t.target.checked;w(t=>{t.selected&&(t.props.isRequired=e)})}},{type:"checkbox",title:"hidden_field",info:"hidden_form_field_info",checked:a.props.isHidden,controlled:!1,active:"list-settings"===n.text&&"button"!==a.type,onChange:t=>{const e=t.target.checked;w(t=>{t.selected&&(t.props.isHidden=e)})}},{type:"input",max:1024,title:"url_param",active:"list-settings"===n.text&&"button"!==a.type,value:a.props.paramName,onInput:t=>{let{target:e}=t,n=e.value;n=n.trim().replace(/\s/g,"_"),n=n.replace(/\//g,""),n=n.replace(/\\/g,""),n=n.replace(/[^a-zA-Z0-9_\-]/g,"");w((t,r)=>{let{stop:o,items:i}=r;i.find(t=>t.paramName===n)||t.selected&&"button"!==t.type&&(t.props.paramName=e.value=n,o())})}},{type:"heading",level:6,text:"after_submission",active:"automations"===n.text},{type:"dropdown",title:"after_submission",active:()=>(A=!!e?.props?.automations?.when?.submitted?.then?.redirect?.url,"automations"===n.text),selected:e?.props?.automations?.when?.submitted?.then?.redirect?.url?"redirect":"stay_at_page",value:A?"redirect":"stay_at_page",items:[{value:"stay_at_page",key:"stay_at_page"},{value:"redirect",key:"redirect",selected:!!e?.props?.automations?.when?.submitted?.then?.redirect?.url}],onChange:t=>{"redirect"===t.target.value?(A=!0,r("automations")):(A=!1,s.store().execCommands({key:"automations",value:t=>o.deepMerge(t.props.automations,{when:{submitted:{then:{redirect:{url:null}}}}}),options:{find:"form"}}),r("automations"))}},{type:"input",title:"where_to_redirect",max:1024,value:e?.props?.automations?.when?.submitted?.then?.redirect?.url||"",active:!0===A&&"automations"===n.text,autofocus:!1==!!e?.props?.automations?.when?.submitted?.then?.redirect?.url,onChange:t=>{let{target:e}=t;const n=e.value,r=new o.Url(n);if(""===r.href)return A=!1,s.store().execCommands({key:"automations",value:t=>o.deepMerge(t.props.automations,{when:{submitted:{then:{redirect:{url:null}}}}}),options:{find:"form"}});A=!0,s.store().execCommands({key:"automations",value:t=>o.deepMerge(t.props.automations,{when:{submitted:{then:{redirect:{url:r.href}}}}}),options:{find:"form"}})}},{type:"checkbox",title:"forward_params",checked:e?.props?.automations?.when?.submitted?.then?.redirect?.forward_params||!1,active:!0===A&&"automations"===n.text,onChange:t=>{let{target:e}=t;const n=e.checked;s.store().execCommands({key:"automations",value:t=>o.deepMerge(t.props.automations,{when:{submitted:{then:{redirect:{forward_params:n}}}}}),options:{find:"form"}})}},{type:"heading",level:6,text:"select_mailing_lists",active:"automations"===n.text},{type:"chipsInput",removeable:!1,active:"automations"===n.text,title:"add_user_from_mailinglist_after_subscribed",onCreate:()=>{c?.configure?.mailingListEvents?.create({name:"hello",resolve:()=>{},reject:()=>{}})},onChange:t=>{const n=e.props.automations?.when?.submitted?.then?.add?.to?.mailingLists;if(n){const n=e.props.automations?.when?.submitted?.then?.add?.to?.mailingLists,r=n.findIndex(e=>e.key===t.key);-1!==r?n.splice(r,1):n.push({key:t.key}),s.store().execCommands({key:"automations",value:t=>o.deepMerge(t.props.automations,{when:{submitted:{then:{add:{to:{mailingLists:n}}}}}}),options:{find:"form"}})}else s.store().execCommands({key:"automations",value:e=>o.deepMerge(e.props.automations,{when:{submitted:{then:{add:{to:{mailingLists:[{key:t.key}]}}}}}}),options:{find:"form"}})},list:function(){const t=l(),n=e.props.automations?.when?.submitted?.then?.add?.to?.mailingLists;if(n){const e=t;return n.forEach(t=>{const n=e.find(e=>e.key===t.key);n&&(n.inserted=!0)}),e}return[...t]}(),items:function(){const t=l(),n=e.props.automations?.when?.submitted?.then?.add?.to?.mailingLists;if(n){const e=[];return n.forEach(n=>{const r=t.find(t=>t.key===n.key);r&&(r.inserted=!0,e.push(r))}),e}return[]}()},{type:"chipsInput",removeable:!1,active:"automations"===n.text,title:"remove_user_from_mailinglist_after_subscribed",onChange:t=>{const n=e.props.automations?.when?.submitted?.then?.remove?.from?.mailingLists;if(n){const n=e.props.automations?.when?.submitted?.then?.remove?.from?.mailingLists,r=n.findIndex(e=>e.key===t.key);-1!==r?n.splice(r,1):n.push({key:t.key}),s.store().execCommands({key:"automations",value:t=>o.deepMerge(t.props.automations,{when:{submitted:{then:{remove:{from:{mailingLists:n}}}}}}),options:{find:"form"}})}else s.store().execCommands({key:"automations",value:e=>o.deepMerge(e.props.automations,{when:{submitted:{then:{remove:{from:{mailingLists:[{key:t.key}]}}}}}}),options:{find:"form"}})},list:function(){const t=l(),n=e.props.automations?.when?.submitted?.then?.remove?.from?.mailingLists;if(n){const e=t;return n.forEach(t=>{const n=e.find(e=>e.key===t.key);n&&(n.inserted=!0)}),e}return t}(),items:function(){const t=l(),n=e.props.automations?.when?.submitted?.then?.remove?.from?.mailingLists;if(n){const e=[];return n.forEach(n=>{const r=t.find(t=>t.key===n.key);r&&(r.inserted=!0,e.push(r))}),e}return[]}()},{type:"heading",level:6,text:"automations",active:"automations"===n.text},{type:"input",max:1024,active:"automations"===n.text,value:e?.props?.automations?.when?.submitted?.then?.sendParams?.url,placeholder:"URL...",title:"send_the_data_to",onInput:t=>{let{target:e}=t;const n=e.value,r={method:"post",url:new o.Url(n).href,type:"http"};s.store().execCommands({key:"automations",value:t=>o.deepMerge(t.props.automations,{when:{submitted:{then:{sendParams:r}}}}),options:{find:"form"}})}},{type:"stringListBuilder",title:"send_mail_on_submitted",active:"automations"===n.text,placeholder:"example@email.com",inputType:"email",items:e?.props?.automations?.when?.submitted?.then?.sendMail?.to||[""],changeItemValue:(t,e,n)=>{s.store().execCommands({key:"automations",value:n=>{let r=n?.props?.automations?.when?.submitted?.then?.sendMail;if(r)return r.to[t]=e,o.deepMerge(n.props.automations,{when:{submitted:{then:{sendMail:r}}}})},options:{find:"form"}})},onRemove:(t,e)=>{s.store().execCommands({key:"automations",value:e=>{let n=e?.props?.automations?.when?.submitted?.then?.sendMail;if(n)return n.to.splice(t,1),o.deepMerge(e.props.automations,{when:{submitted:{then:{sendMail:n}}}})},options:{find:"form"}})},onAddItem:()=>{s.store().execCommands({key:"automations",value:t=>{let e=t?.props?.automations?.when?.submitted?.then?.sendMail;return e||(e={to:[],html:"",text:"",subject:"",from:""}),e.to.push(""),o.deepMerge(t.props.automations,{when:{submitted:{then:{sendMail:e}}}})},options:{find:"form"}})},onChange:(t,e,n)=>{s.store().execCommands({key:"automations",value:n=>{const r=n.props.automations.when.submitted.then.sendMail;return r.to[t]=e,o.deepMerge(n.props.automations,{when:{submitted:{then:{sendMail:r}}}})},options:{find:"form"}})}}];return f}}},commands:{select:t=>{m.opened=!0},deSelect:t=>{m.opened=!1},deSelectedField:()=>{u.items.forEach(t=>{t.selected=!1}),x.props.items=u.items}},globalCommands:{},remove:()=>{g.remove()},destroy:()=>{},validator:b});return x}var Mt=n(21663),Bt=n(98352),Tt=n.n(Bt),Lt=n(83235),Ot=n(4982),It=n.n(Ot);const Nt={deepMerge:k(),mergeDiff:a.A,deepEqual:It(),cloneDeep:Tt(),arrayToString:i.A},Rt=t=>{const{type:e,children:n,props:c}=t,d={mergeDiff:a.A,deepMerge:k(),isRtl:Mt.A,arrayToString:i.A,cloneDeep:Tt(),isImage:Lt.A,debounce:(new s.A).run,snackbar:t=>M.A.dispatch("snackbar",{text:t})},p={...t,...c,commands:d,editor:E.Ay,store:l.M},h={block:()=>(0,o.A)(z,p,n),row:()=>(0,o.A)(rt,p,n),"menu-widget":()=>(0,o.A)(ct,p,n),background:()=>(0,o.A)(G,p),form:()=>{const t=l.M.get("config","editor"),e=t?.configure?.plugins;if(!e)return;const i=e.find(t=>"form"===t.name),a=(0,o.A)(St,(0,r.A)({schema:i},p),n);return a&&"function"==typeof a.createEditor&&i&&(i.createEditor=a.createEditor),a},iframe:()=>(0,o.A)(V,p),html:()=>(0,o.A)(j,p)};if(h[e])return"function"==typeof h[e]?h[e]():h[e];{const n=l.M.get("config","editor","configure","plugins")||[],r=l.M.get("config","channel"),o=n.find(t=>t.name===e);if(o&&o.name&&o.lazy&&"function"==typeof o.lazy){const i=o=>{const i=n.findIndex(t=>t.name===e);if(-1===i)return void console.error("scheme not found when resolving component",e);const a=o.create({compose:p,createElement:B.n,helpers:Nt,channel:r});a.type=e,a.createEditor&&(n[i].createEditor=a.createEditor),"function"==typeof o.menu&&(n[i].menu=o.menu);try{const d=l.M.get("components",t.id);if(!d)return console.error("element not found during lazy load","#8l#$f"),null;function h(){d.element.parentElement&&d.element.parentElement.replaceChild(a.element,d.element),d.element.remove()}"cdtr-block-loader"===d.element.localName&&(d.element.onLoad=()=>{h()},d.element.isConnected&&h())}catch(u){console.error("lazy load replace failed",u,e)}const s=l.M.get("components"),c=s[t.id];c&&(a.children=c.children,a.elements=c.elements),s[t.id]=a,l.M.set({components:s})};return o.lazy(i),{name:o.name,id:t.id,element:(()=>{const e=document.createElement("cdtr-block-loader");return e.setAttribute("data-component-type",t.type),e})()}}if(o&&o.create){const t=o.create({compose:p,createElement:B.n,helpers:Nt,channel:r});return t.type=e,t&&"object"==typeof t&&"function"==typeof t.createEditor&&(o.createEditor=t.createEditor),t}}};var zt=n(98829);const Ht=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=n=>{if(!n||n.is_removed)return;if(n.props||(n.props={}),"string"==typeof n)return n;n._id&&(n.id=n._id),t.id&&(n.parentId=t.id),n.children&&(n.__children=[...n.children].map(t=>{if(t)return t.id||t._id})),n.elements&&(n.__elements=[...n.elements].map(t=>{if(t)return t.id||t._id}));const{children:i,elements:a}=Ht(n,e);n.props.style&&"object"==typeof n.props.style&&Object.keys(n.props.style).forEach(t=>{null!==n.props.style[t]&&void 0!==n.props.style[t]||delete n.props.style[t]});const s=(0,o.A)(Rt,(0,r.A)({},n,{elements:a,"data-id":n.id,"data-type":n.type,silent:e.silent}),i);if(s&&!0!==e.silent)(t=>{(t=>{t.props&&(t.props.interactions||(t.props.interactions=[]),void 0===t.props.show_on_desktop&&(t.props.show_on_desktop=!0),void 0===t.props.show_on_tablet&&(t.props.show_on_tablet=!0),void 0===t.props.show_on_mobile&&(t.props.show_on_mobile=!0))})(t);const{props:e,element:n,id:r,extend:o,parentId:i,__children:a,__elements:s}=t,c=l.M.get("components");window.location.href.includes("localhost")&&(window.components=c);const d={id:r,...t,props:e,children:a||[],elements:s||[]};c[r]=d})({...n,...s});else if(!s)return console.error("unresolved compose",n,n.type),null;return s.element};return"object"==typeof t&&(t=JSON.parse(JSON.stringify(t))),t.children&&(t.children=t.children.map(n)),t.elements&&(t.elements=t.elements.map(n)),t};const Pt=t=>{!function(t){t.forEach(t=>{t.props||(t.props={}),t.props.style||(t.props.style={}),t.id||(t._id?t.id=t._id:console.error("component must have id")),t._id||(t._id=t.id)})}(t);let e,n=t.findIndex(t=>"root"===t.type);-1===n&&(n=t.findIndex(t=>"section"===t.type)),-1!==n&&([e]=t.splice(n,1),e.props.datasetId||(e.props.datasetId=crypto.randomUUID()));const r=e=>{if(e)return Array.isArray(e.children)&&e.children.length>0&&(e.children_ids=e.children,e.children=e.children.map(e=>{if(Array.isArray(e))return;if(!e)return;const o=t.find(t=>t._id===e);n(o);const i=r(o);return i&&i.children&&(o.children=i.children),i&&i.elements&&(o.elements=i.elements),o})),Array.isArray(e.elements)&&e.elements.length>0&&(e.elements=e.elements.map(o=>{const i=t.find(t=>t._id===o);n(i);const a=r(i);return a&&a.elements&&(i.elements=a.elements),a&&a.children&&e.children.length>0&&(i.children=a.children),i})),e;function n(t){if(!t)return;"text"===t.type&&t.props?.text&&"string"==typeof t.props.text&&(t.props.text=((t,e)=>{if("text"===t&&"string"==typeof e)try{return JSON.parse(e)}catch(t){(0,zt.v)({error_code:"#11jhb",info:t,msg:"could not parse text in transformValues",s:"E"})}return e})("text",t.props.text)),"form"===t.type&&Array.isArray(t.props?.items)&&t.props.items.forEach(t=>{const e=t?.props?.style?.fontFamily;e&&(0,dt.sw)({cssRule:e})});const e=t.props?.style?.fontFamily;e&&(0,dt.sw)({cssRule:e})}};if(e){const t=r(e);t.children&&(e.children=t.children)}return e}},36565(t,e,n){"use strict";n.d(e,{Ay:()=>H,EN:()=>z});var r=n(81840),o=n(4952),i=n(86319),a=n(12106),s=n(18057);const l=(t,e)=>{t&&(e(t),t.children&&t.children.forEach(t=>{l(t,e)}))},c=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500;i.M.get("error","status")||n(50629)(`./${t}`).then(()=>{i.M.set({error:{status:t}}),window.__show_errors=!0;const e=document.createElement(`cdtr-${t}`);document.body.appendChild(e)})};var d=n(98829),p=n(93432);const h=class{constructor(t,e,n,r,o){this.component=t,this.color=e,this.userId=n,this.name=r,this.componentId=o,this.borderElement=null,this.isDestroyed=!1,this.createBorder(),this.updatePosition(),this.attachListeners()}createBorder(){this.borderElement=document.createElement("div"),this.borderElement.style.position="absolute",this.borderElement.style.pointerEvents="none",this.borderElement.style.border=`2px solid ${this.color}`,this.borderElement.style.zIndex="0",this.borderElement.style.transition="all 0.01s ease-out",document.body.appendChild(this.borderElement),this.labelElement=document.createElement("div"),this.labelElement.textContent=this.name,this.labelElement.style.position="absolute",this.labelElement.style.pointerEvents="none",this.labelElement.style.backgroundColor=this.color,this.labelElement.style.color="#fff",this.labelElement.style.padding="2px 6px",this.labelElement.style.fontSize="11px",this.labelElement.style.fontWeight="500",this.labelElement.style.borderRadius="3px",this.labelElement.style.zIndex="0",this.labelElement.style.whiteSpace="nowrap",this.labelElement.style.transition="all 0.01s ease-out",this.labelElement.style.boxShadow="0 1px 3px rgba(0,0,0,0.2)",document.body.appendChild(this.labelElement),this.updatePosition()}updatePosition(){if(this.isDestroyed||!this.component.element)return;const t=this.component.element.getBoundingClientRect();if(this.borderElement.style.top=t.top+"px",this.borderElement.style.left=t.left+"px",this.borderElement.style.width=t.width+"px",this.borderElement.style.height=t.height+"px",this.labelElement){const e=t.top-20,n=e<0?t.top+2:e;this.labelElement.style.top=n+"px",this.labelElement.style.left=t.left+t.width/6+"px"}}attachListeners(){this.boundUpdatePosition=this.updatePosition.bind(this),window.addEventListener("scroll",this.boundUpdatePosition,!0),window.addEventListener("resize",this.boundUpdatePosition),this.mutationObserver=new MutationObserver(this.boundUpdatePosition),this.component.element&&this.mutationObserver.observe(this.component.element,{attributes:!0,attributeFilter:["style","class"]})}remove(){this.isDestroyed=!0,window.removeEventListener("scroll",this.boundUpdatePosition,!0),window.removeEventListener("resize",this.boundUpdatePosition),this.mutationObserver&&this.mutationObserver.disconnect(),this.borderElement&&this.borderElement.parentNode&&this.borderElement.parentNode.removeChild(this.borderElement),this.labelElement&&this.labelElement.parentNode&&this.labelElement.parentNode.removeChild(this.labelElement),this.borderElement=null,this.labelElement=null,this.component=null}},u=[];function f(){return u}function m(t){u.push(t)}function g(t){const e=u.findIndex(e=>e?.userId===t);-1!==e&&(u[e].borderSelected.remove(),u.splice(e,1))}function b(){u.forEach(t=>{t.borderSelected.updatePosition()})}var y=n(4217),w=n(69172);function A(t){if(t.disconnectedAt){if(Date.now()-t.disconnectedAt>t.maxDisconnectTime)return console.error("%cDisconnected too long, reload required","color:red"),t.isReconnecting=!1,i.M.set({wsConnection:{status:"failed",message:"Disconnected for too long. Please reload the page to ensure data sync."}}),void c("updateNeeded")}if(t.reconnectAttempts>=t.maxReconnectAttempts)return console.error("%cMax reconnection attempts reached","color:red"),t.isReconnecting=!1,i.M.set({wsConnection:{status:"failed",message:"Unable to reconnect to server"}}),void c(500);t.reconnectAttempts++;const e=1===t.reconnectAttempts?0:Math.min(t.reconnectDelay*Math.pow(2,t.reconnectAttempts-2),3e4);0===e?console.log(`%cAttempting to reconnect immediately (${t.reconnectAttempts}/${t.maxReconnectAttempts})`,"color:orange"):console.log(`%cAttempting to reconnect (${t.reconnectAttempts}/${t.maxReconnectAttempts}) in ${e}ms`,"color:orange"),i.M.set({wsConnection:{status:"reconnecting",attempts:t.reconnectAttempts,nextAttemptIn:e}}),t.reconnectTimer=setTimeout(()=>{t.wsConnectionProps&&(console.log("%cReconnecting...","color:orange"),v(t,t.wsConnectionProps))},e)}function x(t){t.reconnectTimer&&(clearTimeout(t.reconnectTimer),t.reconnectTimer=null),t.isReconnecting=!1}function _(t,e){try{console.log("WS MESSAGE RECEIVED:",e.data);const n=JSON.parse(e.data);f();if(n.transactions)return n.transactions.forEach(e=>{switch(e.type){case"SELECT_ELEMENT":{const r=t.getComponent(e.componentId);if(r){g(n.user.id);const t=function(t,e,n,r,o){return new h(t,e,n,r,o)}(r,n.user.color,n.user.id,n.user.name,e.componentId);m({userId:n.user.id,componentId:e.componentId,borderSelected:t})}break}case"USER_JOINED":{const t=i.M.get("connectedUsers")||[];i.M.set({connectedUsers:[...t,e.user]});break}case"USER_LEFT":{const t=i.M.get("connectedUsers")||[];i.M.set({connectedUsers:t.filter(t=>t.userId!==e.user.userId)}),g(e.user.userId);break}case"SESSION_INITIALIZED":{const n=t.wsConnectionProps?.userId,r=e.users.filter(t=>t.userId!==n);i.M.set({connectedUsers:r});break}case"PATCH":t.updateComponent(e.componentId,e.key,e.value,{silent:!0,sync:!1});break;case"MOVE":t.moveComponent({componentId:e.componentId,newParentId:e.newParentId,newIndex:e.newIndex,oldIndex:e.oldIndex,oldParentId:e.oldParentId,direction:e.direction},{sync:!1});break;case"CREATE":t.createComponent({componentId:e.componentId,parentId:e.parentId,index:e.index,body:e.body},{sync:!1,clone:!0});break;case"ADD":t.addComponent({componentId:e.componentId,parentId:e.parentId,index:e.index},{sync:!1});break;case"REMOVE":t.removeComponent({componentId:e.componentId,parentId:e.parentId,index:e.index},{sync:!1})}}),void b();if("transaction:complete"===n.type){const e=n.completed;if(!t.transactions[n.transactionId])return(0,d.v)({msg:"transaction not found to mark as completed",s:"E",info:{tasks:e},error_code:"#c4ca2"}),void console.error("transaction not found to mark as completed");let r=!0;Array.isArray(e)&&e.forEach(t=>{"completed"!==t.status&&(r=!1)}),r?(delete t.transactions[n.transactionId],t.lastSyncTimestamp=Date.now()):((0,d.v)({msg:"some of tasks not completed",s:"E",info:{tasks:e},error_code:"#c4222"}),c(500),console.error("some of tasks not completed",n))}else"notification:reset"===n.type&&c("updateNeeded")}catch(t){(0,d.v)({msg:t.message,s:"E",info:{data:t.stack},error_code:"#c4222"}),console.error(t)}}function v(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{onOpen:n,access:r,userId:o,sessionId:a,avatar:s,name:l}=e;let d;r?d=`app:${r}`:(o||c(401),a||c(401),d=`freesolo?userId=${o}&sessionId=${a}&avatar=${s}&name=${l}`),t.wsConnectionProps=e,x(t),i.M.set({wsConnection:{status:t.isReconnecting?"reconnecting":"connecting",attempts:t.reconnectAttempts}});const p=t.wsService=new y.w3cwebsocket(`${w.XW.ws_url}/${d}`);p.onopen=()=>{console.log("%cConnected","color:green"),t.wasConnected=!0,t.reconnectAttempts=0,t.isReconnecting=!1,t.disconnectedAt=null,i.M.set({wsConnection:{status:"connected",attempts:0}}),"function"==typeof n&&n()},p.onmessage=e=>_(t,e),p.onclose=e=>{if(console.log("%cWebSocket connection closed","color:orange",e),i.M.set({wsConnection:{status:"disconnected",code:e.code,reason:e.reason}}),!t.wasConnected)return console.error("%cInitial connection failed, not attempting reconnection","color:red"),void c(500);t.disconnectedAt||(t.disconnectedAt=Date.now());[1e3,1008,4401].includes(e.code)?c(500):t.isReconnecting||(t.isReconnecting=!0,A(t))},p.onerror=t=>{console.error("%cWebSocket error:","color:red",t),i.M.set({wsConnection:{status:"error",error:t.message||"WebSocket error occurred"}})}}var k=n(159),C=n(3832),E=n(67549);class S{constructor(t){let{componentId:e,parentId:n,index:r,layer:o}=t;this.componentId=e,this.parentId=n,this.index=r,this.type="ADD",this.layer=o}}var M=n(4807),B=n(89531),T=n(3474),L=n(81139);const O={mobile:"sm"};function I(){if("web"!==i.M.get("config","channel"))return null;const t=i.M.get("deviceFilter")||"all";return O[t]||null}function N(t,e,n){const r=I();if(!r)return null;if("style"!==e&&"text"!==e)return null;const o=t?.props?.breakpoints||{},i=o[r]||{};let a;return a="style"===e?{...i,style:{...i.style||{},...n}}:{...i,text:n},{key:"breakpoints",value:{...o,[r]:a}}}function R(t,e,n){return N(t,e,n)||{key:e,value:n}}"undefined"!=typeof window&&(window.location?.href?.includes("DEBUG=1"),1)&&(window.__trace__=[]);const z=new class{constructor(t){let{editors:e}=t;this.debounder=new s.A,this.configure={},this.app=new r.A,this.pendingTransactions=[],this.undoRedo=o.A,this.templates={},this.commands={goToError:c,logError:d.v},this.wsService={send:t=>console.warn("ws not connected yet, please wait..",t)},window.transactions=this.transactions={},this.withSnapshot=!1,this.editors=[],this.__elements={},this.changes=[],this.globalCommands={bodyWalk:l},this.isRealtimeConnected=!1,this.reconnectAttempts=0,this.maxReconnectAttempts=10,this.reconnectDelay=1e3,this.reconnectTimer=null,this.wsConnectionProps=null,this.isReconnecting=!1,this.wasConnected=!1,this.lastSyncTimestamp=Date.now(),this.disconnectedAt=null,this.maxDisconnectTime=3e5,this.connectOnline=t=>{"string"==typeof t&&0!==t.length?v(this,{access:t,onOpen:()=>{this.isRealtimeConnected=!0,this.app.dispatch("ws-loaded",{editor:this})}}):c(401)},this.connectRealtime=t=>{if(t&&"object"==typeof t){const{sessionId:e,avatar:n,name:r}=t,o=(0,a.A)();e||c(401),v(this,{userId:o,sessionId:e,avatar:n,name:r,onOpen:()=>{this.isRealtimeConnected=!0,this.app.dispatch("ws-loaded",{editor:this})}})}},e&&e.forEach(t=>this.addEditor(t)),this.type=null,this.components=[],this.undoRedo.on("ON_REDO",()=>setTimeout(()=>this.updateAll(),200)),this.undoRedo.on("ON_UNDO",()=>setTimeout(()=>this.updateAll(),200)),this.undoRedo.on("ON_SNAPSHOT",t=>{let{deletedSteps:e}=t;Array.isArray(e)&&e.forEach(t=>{t?.stack&&t.stack.forEach(t=>{"CREATE"!==t.type&&"REMOVE"!==t.type||(t.__type=t.type)})})}),this.commitEdits=t=>function(t,e){i.M.get("config","savedDebounce"),t.pendingTransactions.push(...e),t.debounder.run(()=>{t.updateAll([...t.pendingTransactions]),Array.isArray(window.__trace__)&&window.__trace__.push({transactions:[...t.pendingTransactions]}),t.pendingTransactions.forEach(t=>{delete t.newValue,delete t.oldValue});const e={transactions:[...t.pendingTransactions],transactionId:(0,a.A)(),created_at:Date.now()};if(t.transactions[e.transactionId]=[...t.pendingTransactions],t.isRealtimeConnected){const n=JSON.stringify(e);if(t.wsService.readyState===WebSocket.OPEN)try{t.wsService.send(n),console.trace("transactions sent",e.transactions.length),t.pendingTransactions=[],t.transactions[e.transactionId]=[]}catch(t){(0,d.v)({msg:"There is Error on sync data with the server",info:n,error_code:"#c4ca4",s:"E"}),console.warn("error on syncing, sent:",n),c()}else(0,d.v)({msg:"ws not connected",s:"E",info:{connection:t.wsService.readyState},error_code:"#c4ca9"}),console.warn("ws not connected"),c()}})}(this,t),this.updateAll=t=>function(t,e){e&&e.forEach(e=>{const n=t.getComponent(e.componentId);if(n){const t=(n.atomElement||n.element).getBoundingClientRect();n.props.rect=t,n.props.width=t.width,n.props.height=t.height}else console.error("component not found in updateAll",e)}),t.app.dispatch("update",{editor:t}),b();const n=i.M.get("config","editor","props","onSave");"function"==typeof n&&n({transactions:e,toJson:p.U2,toJSON:p.U2,toHTML:p.FE})}(this,t),this.attemptReconnect=()=>A(this),this.cancelReconnect=()=>x(this),this.connectToWSServer=t=>v(this,t),this.addComponent=(t,e)=>function(t,e){let{componentId:n,parentId:r,index:o,layer:a}=e,{sync:s=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const l=i.M.get("components",n),c=i.M.get("components",r);if(!l||!c)return;const d=[new S({componentId:n,parentId:r,index:o,layer:a})];l.parentId=r,2===a?c.elements.push(n):c.children.splice(o,0,n),t.withSnapshot&&d.length>0&&(0,C.Ay)({steps:d,onEnd:()=>t.withSnapshot=!1}),c.appendChild(l.element,o),s&&t.commitEdits(d)}(this,t,e),this.removeComponent=(t,e)=>function(t,e){let{componentId:n}=e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{const{sync:e=!0}=r,o=i.M.get("components",n);if(!o)return(0,d.v)({msg:"component not found",error_code:"#e44lk",info:{},s:"E"}),void c();const a=o.parent();if(!a)return t;if(2!==o.props.layer){const r=a.children.findIndex(t=>t===o.id);if(r<0)return(0,d.v)({msg:`children index not found for parent ${o.id}: ${r}`,error_code:"#e24lmvD3",info:{data:{componentId:n,parentId:a.id,children:a.children,layer:1}},s:"E"}),c(),t;a.children.splice(r,1);const i=[new B.A({componentId:n,parentId:a.id,index:r,layer:o.layer})];o.remove(),t.withSnapshot&&i.length>0&&(0,C.Ay)({steps:i,onEnd:()=>t.withSnapshot=!1}),e&&t.commitEdits(i)}else{const e=a.elements.findIndex(t=>t===o.id);if(e<0)return(0,d.v)({msg:`parent index not found: ${e}`,error_code:"#eggf4",info:{data:{componentId:n,parentId:a.id,elements:a.elements,layer:2}},s:"E"}),c(),t;a.elements.splice(e,1);const r=[new B.A({componentId:n,parentId:a.id,index:e,layer:2})];o.remove(),t.withSnapshot&&r.length>0&&(0,C.Ay)({steps:r,onEnd:()=>t.withSnapshot=!1}),t.commitEdits(r)}return t}catch(t){(0,d.v)({error_code:"#eggf!!4",msg:t.message,info:{data:t.stack},s:"E"}),c(),console.error(t)}}(this,t,e),this.moveComponent=(t,e)=>function(t,e){let{componentId:n,newParentId:r,oldParentId:o,newIndex:a,oldIndex:s,fromLayer:l,toLayer:p,direction:h}=e,{sync:u=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(-1===s||-1===a)return(0,d.v)({error_code:"#eggf$^4",msg:"invalid index on moveComponent",info:{componentId:n,newParentId:r,oldParentId:o,newIndex:a,oldIndex:s,fromLayer:l,toLayer:p},s:"E"}),c(),null;const f=[new T.A({componentId:n,newParentId:r,oldParentId:o,newIndex:a,oldIndex:s,direction:h,fromLayer:l,toLayer:p})],m=i.M.get("components",o),g=i.M.get("components",r),b=i.M.get("components",n);if(!b||!g||!m)return console.error("component not found on move",`\n componentId: ${n},\n newParentId: ${r},\n oldParentId: ${o},\n newIndex: ${a},\n oldIndex: ${s},\n fromLayer: ${l},\n toLayer: ${p}`),t;try{if(2===l&&2===p)m.elements.splice(s,1),g.elements.splice(a,0,b.id),g.element.appendChild(b.element);else{let t;m.children.splice(s,1),g.children.splice(a,0,b.id),m.id===g.id&&"block"===g.type&&(t={direction:a>s?"bottom":"top"}),g.appendChild(b.element,a,t)}}catch(t){console.error("appendChild method required for move",g)}return t.withSnapshot&&f.length>0&&(0,C.Ay)({steps:f,onEnd:()=>t.withSnapshot=!1}),b.parentId=r,u&&t.commitEdits(f),t}(this,t,e),this.createComponent=(t,e)=>function(t,e){let{body:n,parentId:r,index:o,layer:s}=e,{sync:l=!0,clone:p=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const h=i.M.get("components",r);if(!h)return c(),void(0,d.v)({msg:"component not found on create",error_code:"#c49vk",info:{data:{body:n,parentId:r,index:o,layer:s}},s:"E"});n.layer=s||1;const u=t=>{t.id=t._id=p?t.id:`cdtr-${(0,a.A)()}`,t.children&&t.children.forEach(e=>{e.parentId=t.id,u(e)})};u(n),n.children||(n.children=[]),2===s?(Array.isArray(h.elements)||(h.elements=[]),h.elements.splice(o,0,n.id)):h.children.splice(o,0,n.id);const{children:f}=(0,k.X)({children:[n],id:r});requestAnimationFrame(()=>{f[0].scrollIntoView({behavior:"smooth",block:"nearest"})}),h.appendChild(f[0],o);const m=[new M.A({componentId:n.id,parentId:r,body:n,index:o,layer:s})];return l&&t.commitEdits(m),t.withSnapshot&&m.length>0&&(0,C.Ay)({steps:m,onEnd:()=>t.withSnapshot=!1}),i.M.get("components",n.id)}(this,t,e),this.cloneComponent=t=>function(t,e){let{componentId:n,parentId:r,index:o}=e;const s=[];let l=null;const c=i.M.get("components",n),p=i.M.get("components",r);if(!c||!p)return console.error("component not found");const h=(e,n,r)=>{const o=JSON.parse(JSON.stringify(e.props)),c={id:`cdtr-${(0,a.A)()}`,type:e.type,parentId:n.id,index:r,props:o,children:[]};delete c._id;const d=t.createComponent({body:c,parentId:n.id,index:r,layer:e.layer||1});null===l&&(l=d.id),s.push(new M.A({componentId:d.id,parentId:n.id,index:r,body:c})),e.children&&e.children.forEach((t,e)=>{const n=i.M.get("components",t),r=i.M.get("components",d.id);n&&h(n,r,e)})};if(h(c,p,o),"card"===c.type||"col"===c.type){const t=c.closest("block");t&&(0,E.s)(t).forEach(t=>{i.M.get("components",t.componentId)?s.push(t):(console.error("col not found for resize on clone"),(0,d.v)({s:"E",error_code:"#ggbbk$",info:{},msg:"col not found for resize on clone"}))})}(0,C.Ay)({steps:s,update:!0})}(this,t),this.updateComponent=(t,e,n,r)=>function(t,e,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const{sync:a=!0}=o;if("string"==typeof e&&(e=i.M.get("components",e)),!e)return console.error("component not found on update"),(0,d.v)({error_code:"#e@lld",msg:"component not found on update",info:{},s:"E"}),null;const s=R(e,n,r),l=[new L.A({componentId:e.id,key:s.key,value:s.value&&"object"==typeof s.value?JSON.parse(JSON.stringify(s.value)):s.value})];return t.withSnapshot&&l.length>0?(0,C.Ay)({steps:l,onEnd:()=>{t.withSnapshot=!1,a&&t.commitEdits(l)}}):(e.props[s.key]=s.value,a?t.commitEdits(l):t.updateAll()),t}(this,t,e,n,r),this.silentPatch=(t,e,n)=>function(t,e,n,r){const o=[new L.A({componentId:e.id,key:n,value:r})];t.commitEdits(o)}(this,t,e,n),this.selectComponent=(t,e)=>function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e?(-1!==t.components.findIndex(t=>t.id===e.id)||(e.isSelected=!0,t.type=n.type||e.type,"function"==typeof e.onSelect&&e.onSelect("selected"),t.wsService.send(JSON.stringify({transactions:[{type:"SELECT_ELEMENT",componentId:e.id}]})),t.components.push(e),t.app.dispatch("update",{editor:t,props:n}),t.app.dispatch("select",{editor:t,props:n,component:e,components:t.components})),t):t}(this,t,e),this.clean=()=>function(t){return t.components.forEach(t=>{t.isSelected=!1,"function"==typeof t.onDeselect&&t.onDeselect("selected")}),t.components=[],t}(this),this.execCommand2=t=>function(t,e){let{transactions:n,update:r=t.components}=e;const o=[];Array.isArray(r)||(r=[r]),n.forEach(t=>{let{type:e,key:n,value:i}=t;r.forEach(t=>{const r=e?t.closest(e):t;if(r){const t=R(r,n,i);o.push(new L.A({componentId:r.id,key:t.key,value:t.value}))}})}),t.withSnapshot&&o.length>0?(0,C.Ay)({steps:o,onEnd:e=>{let{steps:n}=e;t.withSnapshot=!1,t.commitEdits(n)}}):o.forEach(e=>{let{componentId:n,key:r,value:a}=e;const s=i.M.get("components",n);s&&(s.props[r]=a,t.commitEdits(o))})}(this,t),this.execCommands=(t,e)=>function(t,e,n){let{components:r=[...t.components],silent:o=!1}=n||{};Array.isArray(r)||(r=[r]),Array.isArray(e)||(e=[e]);const a=[];return e.forEach(e=>{let{componentId:n,key:o,value:i,options:s={}}=e;const{find:l}=s;if(n){let e=i;if("function"==typeof i){const r=t.getComponent(n);e=i(r)}const r=t.getComponent(n),s=r?R(r,o,e):{key:o,value:e};a.push(new L.A({componentId:n,key:s.key,value:s.value}))}else r.forEach(e=>{if(l){let t=e.closest(l);if(t||(t=e.find(l)),!t)return void console.log("component not found on execCommands",l);e=t}let n=i;if("function"==typeof i&&(n=i(e),null===n))return t;const r=R(e,o,n);a.push(new L.A({componentId:e.id,key:r.key,value:r.value}))})}),t.withSnapshot&&a.length>0?(0,C.Ay)({steps:a,onEnd:()=>{t.withSnapshot=!1,t.commitEdits(a)}}):a.forEach(e=>{let{componentId:n,key:r,value:o}=e;const s=i.M.get("components",n);s&&(s.props[r]=o,t.commitEdits(a))}),t}(this,t,e)}dispatch(t,e){return this.app.dispatch(t,e),this}on(t,e){this.app.subscribe(t,e)}off(t,e){switch(t){case"update":this.app.unSubscribe("update",e);break;case"select":this.app.unSubscribe("select",e)}}addEditor(t){let{id:e,type:n,name:r,editor:o}=t;this.editors.push({id:e,type:n,name:r,editor:o})}removeEditor(t){let{id:e,name:n,type:r}=t;e&&(this.editors=this.editors.filter(t=>t.id!==e)),n&&(this.editors=this.editors.filter(t=>t.name!==n)),r&&(this.editors=this.editors.filter(t=>t.type!==r))}getComponents(){return i.M.get("components")}getComponent(t){return t?i.M.get("components",t):null}getEditor(t){if(t){const e=this.editors.find(e=>e.name===t);return e?e.editor:null}return this.editors}getSelectedComponent(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{find:e=null}=t;if(!e)return this.components;const n=[],r=t=>{t&&t.forEach(t=>{const o=this.getComponent(t);o&&(e?.equalWith(o.type)&&n.push(o),r(o.children))})};return this.components.forEach(t=>{e?.equalWith(t.type)&&n.push(t),t.children&&r(t.children)}),n}saveTemplate(t,e){this.templates[t]=e}getTemplate(t){return this.templates[`style:${t}`]}store(){return this.withSnapshot=!0,this}execCommand(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.execCommands({key:t,value:e,options:n}),this}createschema(t,e){this.__elements[t]=e}getschema(t){return this.__elements[t]}}({}),H=z},67549(t,e,n){"use strict";function r(t){const e=[];if(t&&"function"==typeof t.commands.fixCols){t.commands.fixCols().sizes.forEach(t=>e.push(t))}return e}n.d(e,{s:()=>r})},83965(t,e,n){"use strict";n.d(e,{i:()=>i});var r=n(36565),o=n(89531);function i(t){let e=[],n=t;for(;n&&(!n||"section"!==n.type&&"root"!==n.type);){if(0===n.children.length){const t=n.parent(),i=t.children.findIndex(t=>t===n.id);-1!==i&&(e.push(new o.A({componentId:n.id,parentId:t.id,index:i})),r.Ay.removeComponent({componentId:n.id}))}n=n.parent()}return e}},50220(t,e,n){"use strict";n.d(e,{A:()=>o});var r=n(59929);const o=t=>{let e="function"==typeof t.value?t.value(t):t.value;return e||(e=""),r.qy`<cdtr-editor-container>
|
|
1857
|
+
`;d()}var vt=n(29811),kt={};kt.setAttributes=g(),kt.insert=f().bind(null,"head"),kt.domAPI=h(),kt.insertStyleElement=y();d()(vt.A,kt);const Ct=vt.A&&vt.A.locals?vt.A.locals:void 0;var Et=n(73890);function St(t){const{props:e,commands:r,justify:i,items:a,editor:s,store:l,schema:c}=t,{style:d,classList:p=[]}=e;t.automations||(t.automations={});const h=(0,o.A)("div",null,(0,o.A)("cdtr-block-loader",null),(0,o.A)("cdtr-title",null,(0,o.A)("lang-text",{text:"please_wait_downloading_new_version"}))),u=(0,o.A)("cdtr-form-builder",{className:Ct.form},h);n.e(2550).then(n.t.bind(n,12550,23)).then(()=>{h.remove(),u.style.outlineOffset="10px",u.style.display="block",u.language=l.get("config","language"),u.autoComplete="off",u.spacing=2,u.theme={palette:{primary:{main:"#845EC2"}}},u.formStyle=t.style,u.onSelectField=(t,e)=>{const n=[...u.items];l.get("ctrlKey")?n[t].selected=!n[t].selected:(n.forEach(t=>t.selected=!1),n[t].selected=!0),u.items=n,s.dispatch("update")},u.onSortEnd=t=>{let{items:e}=t;s.store().updateComponent(x,"items",e)},u.items=t.items});const f=(0,o.A)("cdtr-move-handle-bar",null),m=(0,o.A)("cdtr-editor-bar",{opened:!1,direction:"left",offsetY:60,componentId:t.id},(0,o.A)("cdtr-tooltip",{content:"form:manage_fields"},(0,o.A)("paper-button",{class:Ct.button,onClick:()=>y()},(0,o.A)("cdtr-icon",{width:"36",height:"36",icon:"createField"}))),(0,o.A)("cdtr-tooltip",{content:"design_form"},(0,o.A)("paper-button",{onClick:()=>{const t=x.closest("card");t&&s.clean().selectComponent(t)},class:Ct.button},(0,o.A)("cdtr-icon",{width:"36",height:"36",icon:"designForm"})))),g=(0,o.A)("div",{"data-type":t.type,"data-id":t.id,"draggable-element":"element","droppable-element":"element",style:{width:"100%"},className:p.concat("form-component").join(" ")},u,f,m),b={set:(t,e,n)=>{switch(e){case"onSubmit":return u.onSubmit=t[e],!0;case"items:v":return u.items=[],t[e]=r.cloneDeep(n),u.items=t[e],!0;case"items":return r.debounce(()=>{u.items=[],t[e]=r.cloneDeep(n),u.items=t[e]},10),!0;case"automations":return t[e]=r.deepMerge(t[e],n),!0;case"display":return t[e]=r.deepMerge(t[e]||{},n),!0;case"style":return t[e]=r.deepMerge(t[e],n),u.formStyle=t[e],!0;default:return!0}}};m.opened=!1;const y=()=>{const e=t.schema??(l.get("config","editor","configure","plugins")||[]).find(t=>t&&"form"===t.name),n=e?.configure?.fields;if(!n)return void console.warn("[form] manage fields: no form plugin schema available (fields missing)");const r=(0,o.A)("cdtr-drawer",{backdropColor:"#000000a1",width:"400px",style:{direction:"var(--direction-locale)"}});r.opened=!0,r.headerText="available_fields",document.body.appendChild(r);const i={fields:n.map(t=>{const e=u.items.find(e=>e.id===t.id);return t.inserted=!!e,t}),onChange:async(t,e,n)=>{const r=u.items.findIndex(e=>e.id===t.id);if(e&&-1===r){const e=await ut("create",t);if(!e)return t.inserted=!1,void d(i.fields);const n=u.items.findIndex(t=>t.selected)||u.items.length-1;ht({item:e,index:n})}else if(!e&&-1!==r){if("button"===u.items[r]?.type)return;if(!await ut("delete",t))return t.inserted=!0,void d(i.fields);const e=[...u.items];e.splice(r,1),s.updateComponent(x,"items",e)}},onCreate:async(t,e)=>{const r=e?"update":"create",o=await ut(r,t);if(!o)return;const a=i.fields.find(t=>t.id===o.id);a?Object.assign(a,o):(o.inserted=!0,i.fields.push(o),n.push(o));const l=u.items.findIndex(t=>t.id===o.id);if(-1===l){const t=u.items.findIndex(t=>t.selected)||u.items.length-1;ht({item:o,index:t})}else{const t=[...u.items];t.splice(l,1),s.updateComponent(x,"items",t),ht({item:o,index:l})}a&&(a.inserted=!0),d(i.fields)}},a=()=>d(i.fields),c=function(){return _t({target:r,field:arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,onSubmit:i.onCreate,onCancel:a})},d=t=>{r.headerText="available_fields";(0,Y.XX)((0,Et.A)({items:t,onChange:i.onChange,debounce:t=>{let{target:e}=t;const n=e.value,r=i.fields.filter(t=>-1!==t.name.indexOf(n));d(r)},onAdd:()=>c(),onEdit:t=>c(t)}),r)};d(i.fields),r.addEventListener("close",()=>{r.remove()},{once:!0})},w=function(t){let{debounce:e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s.components.forEach(e=>{if("form"===e.type){const n=JSON.parse(JSON.stringify(e.props.items));let r=0;const o=()=>{r=n.length};for(;r<n.length;r++){const i=n[r];i.props.label_field||(i.props.label_field={props:{inline:!1,style:{},text:""}}),i.props.label_field.props||(i.props.label_field={props:{inline:!1,style:{},text:""}}),i.props.label_field.props.style||(i.props.label_field.props.style={}),"menu"!==i.type&&"dropdown"!==i.type||(i.props.triggerProps||(i.props.triggerProps={}),i.props.triggerProps.style||(i.props.triggerProps.style={})),t(i,{stop:o,items:n,compose:e})}s.store().updateComponent(e,"items",n)}})};let A=!1;const x=(0,B.n)({name:"form",id:t.id,template:g,atomElement:u,defaultProps:{style:{},classList:[],items:[]},schema:c,onSelect:e=>{m.opened=!0,m.componentId=x.closest("card")?.id||t.id},onDeselect:t=>{m.opened=!1},elementProps:t,createEditor:t=>{let{component:e,props:n,commands:r,helpers:o}=t;const i={BUTTONS:["button"],INPUTS:["input","textarea"],TOGGLES:["radio-group","checkbox","toggle"],MENUS:["dropdown","menu"]},a=e.props.items?.find(t=>t.selected);if(!a)return{};function l(){return c?.configure?.mailingLists.map(t=>({...t,value:t.label}))}return{select:t=>{let{changeTab:e,tab:n}=t;"style"!==n.text&&e("style")},tabs:t=>{const e=[{text:"style"},{text:"list-settings"},{text:"automations"},{text:"settings"}];return e.forEach(e=>e.selected=e.text===t),e},layout:t=>{let{tab:n,changeTab:r,tabs:d}=t;if("automations"!==n.text){const t=e?.props?.automations?.when?.submitted?.then?.sendMail;if(t?.to?.length){const e=t.to.filter(t=>"string"==typeof t&&""!==t.trim());e.length!==t.to.length&&s.store().execCommands({key:"automations",value:n=>o.deepMerge(n.props.automations,{when:{submitted:{then:{sendMail:{...t,to:e}}}}}),options:{find:"form"}})}}const p=e?.props?.display||{},h=p.mode||"inline",u=t=>s.store().execCommands({key:"display",value:e=>o.deepMerge(e.props.display||{},t),options:{find:"form"}}),f=[{type:"heading",level:6,text:"form_behavior",active:"style"===n.text},{type:"dropdown",title:"display_mode",active:"style"===n.text,value:h,selected:h,items:[{key:"display_inline",value:"inline"},{key:"display_modal",value:"modal"}],onChange:t=>{u({mode:t.target.value}),r("style")}},{type:"slider",title:"open_delay_seconds",inputType:"number",min:0,max:60,active:"style"===n.text&&"modal"===h,value:p.delaySeconds??3,onInput:t=>{u({delaySeconds:parseFloat(t.target.value)})}},{type:"heading",level:6,text:"settings",active:"style"===n.text&&"button"===a.type},{type:"input",title:"text:button",active:"style"===n.text&&"button"===a.type,value:a.props.text,onInput:t=>{const e=t.target.value;w(t=>{t.selected&&"button"===t.type&&(t.props.text=e)},{debounce:!0})}},{type:"heading",level:6,text:"field_settings",active:"list-settings"===n.text&&"button"!==a.type},{type:"input",title:"label",active:"button"!==a.type&&"list-settings"===n.text,value:a?.props?.label_field?.props?.text,onInput:t=>{const e=t.target.value;w(t=>{t.selected&&"button"!==t.type&&(t.props.label_field.props.text=e)},{debounce:!0})}},{type:"input",title:"placeholder",active:i.INPUTS.includes(a.type)&&"list-settings"===n.text,value:a.props.placeholder,onInput:t=>{const e=t.target.value;w(t=>{i.INPUTS.includes(t.type)&&t.selected&&"button"!==t.type&&(t.props.placeholder=e)},{debounce:!0})}},{type:"checkbox",title:"checkbox_checked_as_default",checked:a.props.checked,active:["toggle","checkbox"].includes(a.type)&&"list-settings"===n.text,onChange:t=>{const e=t.target.checked;w(t=>{t.selected&&i.TOGGLES.includes(t.type)&&(t.props.checked=e)})}},{type:"checkbox",title:"checkbox_on_right_side",checked:!0===a.props.labelPlacement,active:"checkbox"===a.type&&"list-settings"===n.text,onChange:t=>{const e=t.target.checked;w(t=>{t.selected&&"checkbox"===t.type&&(t.props.labelPlacement=e?"start":"end")})}},{type:"stringListBuilder",title:"items_in_menu",active:(i.MENUS.includes(a.type)||"radio-group"===a.type)&&"list-settings"===n.text,items:a.props.items,changeItemValue:(t,e,n)=>{w(n=>{n!==a&&n.id!==a.id||(n.props.items[t].label=e)})}},{type:"heading",level:6,text:"typography",active:"style"===n.text},{type:"fontFamily",active:"style"===n.text,value:a?.props?.style?.fontFamily||a?.props?.label_field?.props?.style.fontFamily,weight:!0,weightValue:a?.props?.style?.fontWeight||a?.props?.label_field?.props?.style.fontWeight,onChange:t=>{const e=t.target.value;(0,dt.sw)({cssRule:e}),e&&w(t=>{i.BUTTONS.includes(a.type)&&i.BUTTONS.includes(t.type)?t.props.style.fontFamily=e:i.TOGGLES.includes(a.type)&&a.id===t.id?(t.props.label_field.props.style.fontFamily=e,t.props.style.fontFamily=e):[...i.INPUTS,...i.MENUS].includes(a.type)&&[...i.INPUTS,...i.MENUS].includes(t.type)&&(i.MENUS.includes(t.type)?t.props.triggerProps.style.fontFamily=e:(t.props.label_field.props.style.fontFamily=e,t.props.style.fontFamily=e))},{debounce:!0})},onWeightChange:t=>{const e=t.detail.value;e&&w(t=>{i.BUTTONS.includes(a.type)&&i.BUTTONS.includes(t.type)?t.props.style.fontWeight=e:i.TOGGLES.includes(a.type)&&a.id===t.id?(t.props.label_field.props.style.fontWeight=e,t.props.style.fontWeight=e):[...i.INPUTS,...i.MENUS].includes(a.type)&&[...i.INPUTS,...i.MENUS].includes(t.type)&&(i.MENUS.includes(t.type)?t.props.triggerProps.style.fontWeight=e:(t.props.label_field.props.style.fontWeight=e,t.props.style.fontWeight=e))},{debounce:!0})}},{type:"slider",title:"fontSize",max:30,min:8,active:"style"===n.text,value:parseInt(a.props?.style.fontSize)||parseInt(a?.props?.label_field?.props?.style.fontSize)||16,onInput:t=>{const e=t.target.value+"px";e&&w(t=>{i.BUTTONS.includes(a.type)&&i.BUTTONS.includes(t.type)?t.props.style.fontSize=e:(i.TOGGLES.includes(a.type)&&a.id===t.id||[...i.INPUTS,...i.MENUS].includes(a.type)&&[...i.INPUTS,...i.MENUS].includes(t.type))&&(t.props.label_field.props.style.fontSize=e)},{debounce:!0})}},{type:"typography",active:"style"===n.text,bold:700===a.props?.style?.fontWeight||700===a.props?.label_field?.props?.style?.fontWeight,italic:"italic"===a.props?.style?.fontStyle||"italic"===a.props?.label_field?.props.style?.fontStyle,underline:"underline"===a.props?.style?.textDecoration||"underline"===a.props?.label_field?.props?.style?.textDecoration,onChange:t=>{function e(e){switch(t){case"bold":e.fontWeight=null===e.fontWeight?700:null;break;case"italic":e.fontStyle=null===e.fontStyle?"italic":null;break;case"underline":e.textDecoration="underline"===e.textDecoration?null:"underline"}}w(t=>{"checkbox"===a.type?t.selected&&"checkbox"===t.type&&e(t.props.label_field.props.style):t.selected&&"button"===a.type&&"button"===t.type?e(t.props.style):"button"!==a.type&&"button"!==t.type&&(!t.selected||"menu"!==t.type&&"dropdown"!==t.type?t.selected&&e(t.props.label_field.props.style):e(t.props.label_field.props.style))},{debounce:!0})}},{type:"heading",level:6,text:"colors",active:"style"===n.text},{type:"colorpicker",title:"color:label",active:"style"===n.text,value:a.props?.label_field?.props?.style?.color||a.props?.style.color,onChange:t=>{const e=t.target.value;e&&w(t=>{i.BUTTONS.includes(a.type)&&i.BUTTONS.includes(t.type)?t.props.style.color=e:(i.TOGGLES.includes(a.type)&&a.id===t.id||[...i.INPUTS,...i.MENUS].includes(a.type)&&[...i.INPUTS,...i.MENUS].includes(t.type))&&(t.props.label_field.props.style.color=e)},{debounce:!0})}},{type:"colorpicker",title:"component_color",active:()=>"style"===n.text&&i.TOGGLES.includes(a?.type),value:a.props?.style.color,onChange:t=>{const e=t.target.value;e&&w(t=>{i.TOGGLES.includes(a.type)&&a.id===t.id&&(t.props.style.color=e)},{debounce:!0})}},{type:"colorpicker",title:"button"===a.type?"background":"form:background",active:"style"===n.text&&-1!==[...i.BUTTONS,...i.INPUTS,...i.MENUS].indexOf(a.type),value:a.props?.triggerProps?.style?.background||a.props?.style?.background,onChange:t=>{const e=t.target.value;e&&w(t=>{i.BUTTONS.includes(a.type)&&i.BUTTONS.includes(t.type)?t.props.style.background=e:[...i.INPUTS,...i.MENUS].includes(a.type)&&[...i.INPUTS,...i.MENUS].includes(t.type)&&(i.MENUS.includes(t.type)?t.props.triggerProps.style.background=e:t.props.style.background=e)})}},{type:"colorpicker",title:"form:placeholder_color",active:"style"===n.text&&-1!==[...i.INPUTS,...i.MENUS].indexOf(a.type),value:a.props?.style?.color,onChange:t=>{const e=t.target.value;e&&w(t=>{i.INPUTS.includes(t.type)&&i.INPUTS.includes(a.type)?t.props.style.color=e:i.MENUS.includes(t.type)&&i.MENUS.includes(a.type)&&(t.props.triggerProps.style.color=e)},{debounce:!0})}},{type:"heading",level:6,text:"dimensions",active:"style"===n.text},{type:"slider",title:"height",max:70,min:20,active:"style"===n.text&&["input",...i.MENUS,...i.BUTTONS].includes(a.type),value:parseInt(a.props.style.minHeight)||parseInt(a?.props?.triggerProps?.style.minHeight)||40,onInput:t=>{const e=t.target.value+"px";e&&w(t=>{i.BUTTONS.includes(a.type)&&i.BUTTONS.includes(t.type)?(delete t.props.style.height,t.props.style.minHeight=e):[...i.INPUTS,...i.MENUS].includes(a.type)&&[...i.INPUTS,...i.MENUS].includes(t.type)&&(i.MENUS.includes(t.type)?t.props.triggerProps.style.minHeight=e:delete t.props.style.height,t.props.style.minHeight=e)},{debounce:!0})}},{type:"slider",title:"radius",max:50,min:0,active:"style"===n.text&&[...i.INPUTS,...i.MENUS,...i.BUTTONS].includes(a.type),value:parseInt(a?.props?.style.borderRadius)||parseInt(a?.props?.triggerProps?.style?.borderRadius)||0,onInput:t=>{const e=t.target.value+"px";e&&w(t=>{i.BUTTONS.includes(a.type)&&i.BUTTONS.includes(t.type)?t.props.style.borderRadius=e:[...i.INPUTS,...i.MENUS].includes(a.type)&&[...i.INPUTS,...i.MENUS].includes(t.type)&&(i.MENUS.includes(t.type)?t.props.triggerProps.style.borderRadius=e:t.props.style.borderRadius=e)},{debounce:!0})}},{type:"dropdown",title:"type",value:a.props.type,active:()=>"input"===a.type&&"list-settings"===n.text,selected:a.props.type,items:c.types.find(t=>"input"===t.name)?.types.map(t=>new Object({key:t,value:t})),onChange:t=>{const e=t.target.value;w(t=>{"input"===a.type&&t.selected&&"input"===t.type&&(t.props.type=e)},{debounce:!0})}},{type:"input",title:"default_value",active:()=>"input"===a.type&&"list-settings"===n.text,value:a.props.value,onInput:t=>{const e=t.target.value;w(t=>{!t.selected||"input"!==t.type&&"menu"!==t.type&&"dropdown"!==t.type&&"textarea"!==t.type||(t.props.value=e)},{debounce:!0})}},{type:"heading",level:6,text:"properties",active:"list-settings"===n.text&&"button"!==a.type},{type:"checkbox",title:"required",info:"required_form_field_info",checked:a.props.isRequired,controlled:!1,active:"list-settings"===n.text&&"button"!==a.type,onChange:t=>{const e=t.target.checked;w(t=>{t.selected&&(t.props.isRequired=e)})}},{type:"checkbox",title:"hidden_field",info:"hidden_form_field_info",checked:a.props.isHidden,controlled:!1,active:"list-settings"===n.text&&"button"!==a.type,onChange:t=>{const e=t.target.checked;w(t=>{t.selected&&(t.props.isHidden=e)})}},{type:"input",max:1024,title:"url_param",active:"list-settings"===n.text&&"button"!==a.type,value:a.props.paramName,onInput:t=>{let{target:e}=t,n=e.value;n=n.trim().replace(/\s/g,"_"),n=n.replace(/\//g,""),n=n.replace(/\\/g,""),n=n.replace(/[^a-zA-Z0-9_\-]/g,"");w((t,r)=>{let{stop:o,items:i}=r;i.find(t=>t.paramName===n)||t.selected&&"button"!==t.type&&(t.props.paramName=e.value=n,o())})}},{type:"heading",level:6,text:"after_submission",active:"automations"===n.text},{type:"dropdown",title:"after_submission",active:()=>(A=!!e?.props?.automations?.when?.submitted?.then?.redirect?.url,"automations"===n.text),selected:e?.props?.automations?.when?.submitted?.then?.redirect?.url?"redirect":"stay_at_page",value:A?"redirect":"stay_at_page",items:[{value:"stay_at_page",key:"stay_at_page"},{value:"redirect",key:"redirect",selected:!!e?.props?.automations?.when?.submitted?.then?.redirect?.url}],onChange:t=>{"redirect"===t.target.value?(A=!0,r("automations")):(A=!1,s.store().execCommands({key:"automations",value:t=>o.deepMerge(t.props.automations,{when:{submitted:{then:{redirect:{url:null}}}}}),options:{find:"form"}}),r("automations"))}},{type:"input",title:"where_to_redirect",max:1024,value:e?.props?.automations?.when?.submitted?.then?.redirect?.url||"",active:!0===A&&"automations"===n.text,autofocus:!1==!!e?.props?.automations?.when?.submitted?.then?.redirect?.url,onChange:t=>{let{target:e}=t;const n=e.value,r=new o.Url(n);if(""===r.href)return A=!1,s.store().execCommands({key:"automations",value:t=>o.deepMerge(t.props.automations,{when:{submitted:{then:{redirect:{url:null}}}}}),options:{find:"form"}});A=!0,s.store().execCommands({key:"automations",value:t=>o.deepMerge(t.props.automations,{when:{submitted:{then:{redirect:{url:r.href}}}}}),options:{find:"form"}})}},{type:"checkbox",title:"forward_params",checked:e?.props?.automations?.when?.submitted?.then?.redirect?.forward_params||!1,active:!0===A&&"automations"===n.text,onChange:t=>{let{target:e}=t;const n=e.checked;s.store().execCommands({key:"automations",value:t=>o.deepMerge(t.props.automations,{when:{submitted:{then:{redirect:{forward_params:n}}}}}),options:{find:"form"}})}},{type:"heading",level:6,text:"select_mailing_lists",active:"automations"===n.text},{type:"chipsInput",removeable:!1,active:"automations"===n.text,title:"add_user_from_mailinglist_after_subscribed",onCreate:()=>{c?.configure?.mailingListEvents?.create({name:"hello",resolve:()=>{},reject:()=>{}})},onChange:t=>{const n=e.props.automations?.when?.submitted?.then?.add?.to?.mailingLists;if(n){const n=e.props.automations?.when?.submitted?.then?.add?.to?.mailingLists,r=n.findIndex(e=>e.key===t.key);-1!==r?n.splice(r,1):n.push({key:t.key}),s.store().execCommands({key:"automations",value:t=>o.deepMerge(t.props.automations,{when:{submitted:{then:{add:{to:{mailingLists:n}}}}}}),options:{find:"form"}})}else s.store().execCommands({key:"automations",value:e=>o.deepMerge(e.props.automations,{when:{submitted:{then:{add:{to:{mailingLists:[{key:t.key}]}}}}}}),options:{find:"form"}})},list:function(){const t=l(),n=e.props.automations?.when?.submitted?.then?.add?.to?.mailingLists;if(n){const e=t;return n.forEach(t=>{const n=e.find(e=>e.key===t.key);n&&(n.inserted=!0)}),e}return[...t]}(),items:function(){const t=l(),n=e.props.automations?.when?.submitted?.then?.add?.to?.mailingLists;if(n){const e=[];return n.forEach(n=>{const r=t.find(t=>t.key===n.key);r&&(r.inserted=!0,e.push(r))}),e}return[]}()},{type:"chipsInput",removeable:!1,active:"automations"===n.text,title:"remove_user_from_mailinglist_after_subscribed",onChange:t=>{const n=e.props.automations?.when?.submitted?.then?.remove?.from?.mailingLists;if(n){const n=e.props.automations?.when?.submitted?.then?.remove?.from?.mailingLists,r=n.findIndex(e=>e.key===t.key);-1!==r?n.splice(r,1):n.push({key:t.key}),s.store().execCommands({key:"automations",value:t=>o.deepMerge(t.props.automations,{when:{submitted:{then:{remove:{from:{mailingLists:n}}}}}}),options:{find:"form"}})}else s.store().execCommands({key:"automations",value:e=>o.deepMerge(e.props.automations,{when:{submitted:{then:{remove:{from:{mailingLists:[{key:t.key}]}}}}}}),options:{find:"form"}})},list:function(){const t=l(),n=e.props.automations?.when?.submitted?.then?.remove?.from?.mailingLists;if(n){const e=t;return n.forEach(t=>{const n=e.find(e=>e.key===t.key);n&&(n.inserted=!0)}),e}return t}(),items:function(){const t=l(),n=e.props.automations?.when?.submitted?.then?.remove?.from?.mailingLists;if(n){const e=[];return n.forEach(n=>{const r=t.find(t=>t.key===n.key);r&&(r.inserted=!0,e.push(r))}),e}return[]}()},{type:"heading",level:6,text:"automations",active:"automations"===n.text},{type:"input",max:1024,active:"automations"===n.text,value:e?.props?.automations?.when?.submitted?.then?.sendParams?.url,placeholder:"URL...",title:"send_the_data_to",onInput:t=>{let{target:e}=t;const n=e.value,r={method:"post",url:new o.Url(n).href,type:"http"};s.store().execCommands({key:"automations",value:t=>o.deepMerge(t.props.automations,{when:{submitted:{then:{sendParams:r}}}}),options:{find:"form"}})}},{type:"stringListBuilder",title:"send_mail_on_submitted",active:"automations"===n.text,placeholder:"example@email.com",inputType:"email",items:e?.props?.automations?.when?.submitted?.then?.sendMail?.to||[""],changeItemValue:(t,e,n)=>{s.store().execCommands({key:"automations",value:n=>{let r=n?.props?.automations?.when?.submitted?.then?.sendMail;if(r)return r.to[t]=e,o.deepMerge(n.props.automations,{when:{submitted:{then:{sendMail:r}}}})},options:{find:"form"}})},onRemove:(t,e)=>{s.store().execCommands({key:"automations",value:e=>{let n=e?.props?.automations?.when?.submitted?.then?.sendMail;if(n)return n.to.splice(t,1),o.deepMerge(e.props.automations,{when:{submitted:{then:{sendMail:n}}}})},options:{find:"form"}})},onAddItem:()=>{s.store().execCommands({key:"automations",value:t=>{let e=t?.props?.automations?.when?.submitted?.then?.sendMail;return e||(e={to:[],html:"",text:"",subject:"",from:""}),e.to.push(""),o.deepMerge(t.props.automations,{when:{submitted:{then:{sendMail:e}}}})},options:{find:"form"}})},onChange:(t,e,n)=>{s.store().execCommands({key:"automations",value:n=>{const r=n.props.automations.when.submitted.then.sendMail;return r.to[t]=e,o.deepMerge(n.props.automations,{when:{submitted:{then:{sendMail:r}}}})},options:{find:"form"}})}}];return f}}},commands:{select:t=>{m.opened=!0},deSelect:t=>{m.opened=!1},deSelectedField:()=>{u.items.forEach(t=>{t.selected=!1}),x.props.items=u.items}},globalCommands:{},remove:()=>{g.remove()},destroy:()=>{},validator:b});return x}var Mt=n(21663),Bt=n(98352),Tt=n.n(Bt),Lt=n(83235),Ot=n(4982),It=n.n(Ot);const Nt={deepMerge:k(),mergeDiff:a.A,deepEqual:It(),cloneDeep:Tt(),arrayToString:i.A},Rt=t=>{const{type:e,children:n,props:c}=t,d={mergeDiff:a.A,deepMerge:k(),isRtl:Mt.A,arrayToString:i.A,cloneDeep:Tt(),isImage:Lt.A,debounce:(new s.A).run,snackbar:t=>M.A.dispatch("snackbar",{text:t})},p={...t,...c,commands:d,editor:E.Ay,store:l.M},h={block:()=>(0,o.A)(z,p,n),row:()=>(0,o.A)(rt,p,n),"menu-widget":()=>(0,o.A)(ct,p,n),background:()=>(0,o.A)(G,p),form:()=>{const t=l.M.get("config","editor"),e=t?.configure?.plugins;if(!e)return;const i=e.find(t=>"form"===t.name),a=(0,o.A)(St,(0,r.A)({schema:i},p),n);return a&&"function"==typeof a.createEditor&&i&&(i.createEditor=a.createEditor),a},iframe:()=>(0,o.A)(V,p),html:()=>(0,o.A)(j,p)};if(h[e])return"function"==typeof h[e]?h[e]():h[e];{const n=l.M.get("config","editor","configure","plugins")||[],r=l.M.get("config","channel"),o=n.find(t=>t.name===e);if(o&&o.name&&o.lazy&&"function"==typeof o.lazy){const i=o=>{const i=n.findIndex(t=>t.name===e);if(-1===i)return void console.error("scheme not found when resolving component",e);const a=o.create({compose:p,createElement:B.n,helpers:Nt,channel:r});a.type=e,a.createEditor&&(n[i].createEditor=a.createEditor),"function"==typeof o.menu&&(n[i].menu=o.menu);try{const d=l.M.get("components",t.id);if(!d)return console.error("element not found during lazy load","#8l#$f"),null;function h(){d.element.parentElement&&d.element.parentElement.replaceChild(a.element,d.element),d.element.remove()}"cdtr-block-loader"===d.element.localName&&(d.element.onLoad=()=>{h()},d.element.isConnected&&h())}catch(u){console.error("lazy load replace failed",u,e)}const s=l.M.get("components"),c=s[t.id];c&&(a.children=c.children,a.elements=c.elements),s[t.id]=a,l.M.set({components:s})};return o.lazy(i),{name:o.name,id:t.id,element:(()=>{const e=document.createElement("cdtr-block-loader");return e.setAttribute("data-component-type",t.type),e})()}}if(o&&o.create){const t=o.create({compose:p,createElement:B.n,helpers:Nt,channel:r});return t.type=e,t&&"object"==typeof t&&"function"==typeof t.createEditor&&(o.createEditor=t.createEditor),t}}};var zt=n(98829);const Ht=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=n=>{if(!n||n.is_removed)return;if(n.props||(n.props={}),"string"==typeof n)return n;n._id&&(n.id=n._id),t.id&&(n.parentId=t.id),n.children&&(n.__children=[...n.children].map(t=>{if(t)return t.id||t._id})),n.elements&&(n.__elements=[...n.elements].map(t=>{if(t)return t.id||t._id}));const{children:i,elements:a}=Ht(n,e);n.props.style&&"object"==typeof n.props.style&&Object.keys(n.props.style).forEach(t=>{null!==n.props.style[t]&&void 0!==n.props.style[t]||delete n.props.style[t]});const s=(0,o.A)(Rt,(0,r.A)({},n,{elements:a,"data-id":n.id,"data-type":n.type,silent:e.silent}),i);if(s&&!0!==e.silent)(t=>{(t=>{t.props&&(t.props.interactions||(t.props.interactions=[]),void 0===t.props.show_on_desktop&&(t.props.show_on_desktop=!0),void 0===t.props.show_on_tablet&&(t.props.show_on_tablet=!0),void 0===t.props.show_on_mobile&&(t.props.show_on_mobile=!0))})(t);const{props:e,element:n,id:r,extend:o,parentId:i,__children:a,__elements:s}=t,c=l.M.get("components");window.location.href.includes("localhost")&&(window.components=c);const d={id:r,...t,props:e,children:a||[],elements:s||[]};c[r]=d})({...n,...s});else if(!s)return console.error("unresolved compose",n,n.type),null;return s.element};return"object"==typeof t&&(t=JSON.parse(JSON.stringify(t))),t.children&&(t.children=t.children.map(n)),t.elements&&(t.elements=t.elements.map(n)),t};const Pt=t=>{!function(t){t.forEach(t=>{t.props||(t.props={}),t.props.style||(t.props.style={}),t.id||(t._id?t.id=t._id:console.error("component must have id")),t._id||(t._id=t.id)})}(t);let e,n=t.findIndex(t=>"root"===t.type);-1===n&&(n=t.findIndex(t=>"section"===t.type)),-1!==n&&([e]=t.splice(n,1),e.props.datasetId||(e.props.datasetId=crypto.randomUUID()));const r=e=>{if(e)return Array.isArray(e.children)&&e.children.length>0&&(e.children_ids=e.children,e.children=e.children.map(e=>{if(Array.isArray(e))return;if(!e)return;const o=t.find(t=>t._id===e);n(o);const i=r(o);return i&&i.children&&(o.children=i.children),i&&i.elements&&(o.elements=i.elements),o})),Array.isArray(e.elements)&&e.elements.length>0&&(e.elements=e.elements.map(o=>{const i=t.find(t=>t._id===o);n(i);const a=r(i);return a&&a.elements&&(i.elements=a.elements),a&&a.children&&e.children.length>0&&(i.children=a.children),i})),e;function n(t){if(!t)return;"text"===t.type&&t.props?.text&&"string"==typeof t.props.text&&(t.props.text=((t,e)=>{if("text"===t&&"string"==typeof e)try{return JSON.parse(e)}catch(t){(0,zt.v)({error_code:"#11jhb",info:t,msg:"could not parse text in transformValues",s:"E"})}return e})("text",t.props.text)),"form"===t.type&&Array.isArray(t.props?.items)&&t.props.items.forEach(t=>{const e=t?.props?.style?.fontFamily;e&&(0,dt.sw)({cssRule:e})});const e=t.props?.style?.fontFamily;e&&(0,dt.sw)({cssRule:e})}};if(e){const t=r(e);t.children&&(e.children=t.children)}return e}},36565(t,e,n){"use strict";n.d(e,{Ay:()=>H,EN:()=>z});var r=n(81840),o=n(4952),i=n(86319),a=n(12106),s=n(18057);const l=(t,e)=>{t&&(e(t),t.children&&t.children.forEach(t=>{l(t,e)}))},c=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500;i.M.get("error","status")||n(50629)(`./${t}`).then(()=>{i.M.set({error:{status:t}}),window.__show_errors=!0;const e=document.createElement(`cdtr-${t}`);document.body.appendChild(e)})};var d=n(98829),p=n(93432);const h=class{constructor(t,e,n,r,o){this.component=t,this.color=e,this.userId=n,this.name=r,this.componentId=o,this.borderElement=null,this.isDestroyed=!1,this.createBorder(),this.updatePosition(),this.attachListeners()}createBorder(){this.borderElement=document.createElement("div"),this.borderElement.style.position="absolute",this.borderElement.style.pointerEvents="none",this.borderElement.style.border=`2px solid ${this.color}`,this.borderElement.style.zIndex="0",this.borderElement.style.transition="all 0.01s ease-out",document.body.appendChild(this.borderElement),this.labelElement=document.createElement("div"),this.labelElement.textContent=this.name,this.labelElement.style.position="absolute",this.labelElement.style.pointerEvents="none",this.labelElement.style.backgroundColor=this.color,this.labelElement.style.color="#fff",this.labelElement.style.padding="2px 6px",this.labelElement.style.fontSize="11px",this.labelElement.style.fontWeight="500",this.labelElement.style.borderRadius="3px",this.labelElement.style.zIndex="0",this.labelElement.style.whiteSpace="nowrap",this.labelElement.style.transition="all 0.01s ease-out",this.labelElement.style.boxShadow="0 1px 3px rgba(0,0,0,0.2)",document.body.appendChild(this.labelElement),this.updatePosition()}updatePosition(){if(this.isDestroyed||!this.component.element)return;const t=this.component.element.getBoundingClientRect();if(this.borderElement.style.top=t.top+"px",this.borderElement.style.left=t.left+"px",this.borderElement.style.width=t.width+"px",this.borderElement.style.height=t.height+"px",this.labelElement){const e=t.top-20,n=e<0?t.top+2:e;this.labelElement.style.top=n+"px",this.labelElement.style.left=t.left+t.width/6+"px"}}attachListeners(){this.boundUpdatePosition=this.updatePosition.bind(this),window.addEventListener("scroll",this.boundUpdatePosition,!0),window.addEventListener("resize",this.boundUpdatePosition),this.mutationObserver=new MutationObserver(this.boundUpdatePosition),this.component.element&&this.mutationObserver.observe(this.component.element,{attributes:!0,attributeFilter:["style","class"]})}remove(){this.isDestroyed=!0,window.removeEventListener("scroll",this.boundUpdatePosition,!0),window.removeEventListener("resize",this.boundUpdatePosition),this.mutationObserver&&this.mutationObserver.disconnect(),this.borderElement&&this.borderElement.parentNode&&this.borderElement.parentNode.removeChild(this.borderElement),this.labelElement&&this.labelElement.parentNode&&this.labelElement.parentNode.removeChild(this.labelElement),this.borderElement=null,this.labelElement=null,this.component=null}},u=[];function f(){return u}function m(t){u.push(t)}function g(t){const e=u.findIndex(e=>e?.userId===t);-1!==e&&(u[e].borderSelected.remove(),u.splice(e,1))}function b(){u.forEach(t=>{t.borderSelected.updatePosition()})}var y=n(4217),w=n(69172);function A(t){if(t.disconnectedAt){if(Date.now()-t.disconnectedAt>t.maxDisconnectTime)return console.error("%cDisconnected too long, reload required","color:red"),t.isReconnecting=!1,i.M.set({wsConnection:{status:"failed",message:"Disconnected for too long. Please reload the page to ensure data sync."}}),void c("updateNeeded")}if(t.reconnectAttempts>=t.maxReconnectAttempts)return console.error("%cMax reconnection attempts reached","color:red"),t.isReconnecting=!1,i.M.set({wsConnection:{status:"failed",message:"Unable to reconnect to server"}}),void c(500);t.reconnectAttempts++;const e=1===t.reconnectAttempts?0:Math.min(t.reconnectDelay*Math.pow(2,t.reconnectAttempts-2),3e4);0===e?console.log(`%cAttempting to reconnect immediately (${t.reconnectAttempts}/${t.maxReconnectAttempts})`,"color:orange"):console.log(`%cAttempting to reconnect (${t.reconnectAttempts}/${t.maxReconnectAttempts}) in ${e}ms`,"color:orange"),i.M.set({wsConnection:{status:"reconnecting",attempts:t.reconnectAttempts,nextAttemptIn:e}}),t.reconnectTimer=setTimeout(()=>{t.wsConnectionProps&&(console.log("%cReconnecting...","color:orange"),v(t,t.wsConnectionProps))},e)}function x(t){t.reconnectTimer&&(clearTimeout(t.reconnectTimer),t.reconnectTimer=null),t.isReconnecting=!1}function _(t,e){try{console.log("WS MESSAGE RECEIVED:",e.data);const n=JSON.parse(e.data);f();if(n.transactions)return n.transactions.forEach(e=>{switch(e.type){case"SELECT_ELEMENT":{const r=t.getComponent(e.componentId);if(r){g(n.user.id);const t=function(t,e,n,r,o){return new h(t,e,n,r,o)}(r,n.user.color,n.user.id,n.user.name,e.componentId);m({userId:n.user.id,componentId:e.componentId,borderSelected:t})}break}case"USER_JOINED":{const t=i.M.get("connectedUsers")||[];i.M.set({connectedUsers:[...t,e.user]});break}case"USER_LEFT":{const t=i.M.get("connectedUsers")||[];i.M.set({connectedUsers:t.filter(t=>t.userId!==e.user.userId)}),g(e.user.userId);break}case"SESSION_INITIALIZED":{const n=t.wsConnectionProps?.userId,r=e.users.filter(t=>t.userId!==n);i.M.set({connectedUsers:r});break}case"PATCH":t.updateComponent(e.componentId,e.key,e.value,{silent:!0,sync:!1});break;case"MOVE":t.moveComponent({componentId:e.componentId,newParentId:e.newParentId,newIndex:e.newIndex,oldIndex:e.oldIndex,oldParentId:e.oldParentId,direction:e.direction},{sync:!1});break;case"CREATE":t.createComponent({componentId:e.componentId,parentId:e.parentId,index:e.index,body:e.body},{sync:!1,clone:!0});break;case"ADD":t.addComponent({componentId:e.componentId,parentId:e.parentId,index:e.index},{sync:!1});break;case"REMOVE":t.removeComponent({componentId:e.componentId,parentId:e.parentId,index:e.index},{sync:!1})}}),void b();if("transaction:complete"===n.type){const e=n.completed;if(!t.transactions[n.transactionId])return(0,d.v)({msg:"transaction not found to mark as completed",s:"E",info:{tasks:e},error_code:"#c4ca2"}),void console.error("transaction not found to mark as completed");let r=!0;Array.isArray(e)&&e.forEach(t=>{"completed"!==t.status&&(r=!1)}),r?(delete t.transactions[n.transactionId],t.lastSyncTimestamp=Date.now()):((0,d.v)({msg:"some of tasks not completed",s:"E",info:{tasks:e},error_code:"#c4222"}),c(500),console.error("some of tasks not completed",n))}else"notification:reset"===n.type&&c("updateNeeded")}catch(t){(0,d.v)({msg:t.message,s:"E",info:{data:t.stack},error_code:"#c4222"}),console.error(t)}}function v(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{onOpen:n,access:r,userId:o,sessionId:a,avatar:s,name:l}=e;let d;r?d=`app:${r}`:(o||c(401),a||c(401),d=`freesolo?userId=${o}&sessionId=${a}&avatar=${s}&name=${l}`),t.wsConnectionProps=e,x(t),i.M.set({wsConnection:{status:t.isReconnecting?"reconnecting":"connecting",attempts:t.reconnectAttempts}});const p=t.wsService=new y.w3cwebsocket(`${w.XW.ws_url}/${d}`);p.onopen=()=>{console.log("%cConnected","color:green"),t.wasConnected=!0,t.reconnectAttempts=0,t.isReconnecting=!1,t.disconnectedAt=null,i.M.set({wsConnection:{status:"connected",attempts:0}}),"function"==typeof n&&n()},p.onmessage=e=>_(t,e),p.onclose=e=>{if(console.log("%cWebSocket connection closed","color:orange",e),i.M.set({wsConnection:{status:"disconnected",code:e.code,reason:e.reason}}),!t.wasConnected)return console.error("%cInitial connection failed, not attempting reconnection","color:red"),void c(500);t.disconnectedAt||(t.disconnectedAt=Date.now());[1e3,1008,4401].includes(e.code)?c(500):t.isReconnecting||(t.isReconnecting=!0,A(t))},p.onerror=t=>{console.error("%cWebSocket error:","color:red",t),i.M.set({wsConnection:{status:"error",error:t.message||"WebSocket error occurred"}})}}var k=n(159),C=n(3832),E=n(67549);class S{constructor(t){let{componentId:e,parentId:n,index:r,layer:o}=t;this.componentId=e,this.parentId=n,this.index=r,this.type="ADD",this.layer=o}}var M=n(4807),B=n(89531),T=n(3474),L=n(81139);const O={mobile:"sm"};function I(){if("web"!==i.M.get("config","channel"))return null;const t=i.M.get("deviceFilter")||"all";return O[t]||null}function N(t,e,n){const r=I();if(!r)return null;if("style"!==e&&"text"!==e)return null;const o=t?.props?.breakpoints||{},i=o[r]||{};let a;return a="style"===e?{...i,style:{...i.style||{},...n}}:{...i,text:n},{key:"breakpoints",value:{...o,[r]:a}}}function R(t,e,n){return N(t,e,n)||{key:e,value:n}}"undefined"!=typeof window&&(window.location?.href?.includes("DEBUG=1"),1)&&(window.__trace__=[]);const z=new class{constructor(t){let{editors:e}=t;this.debounder=new s.A,this.configure={},this.app=new r.A,this.pendingTransactions=[],this.undoRedo=o.A,this.templates={},this.commands={goToError:c,logError:d.v},this.wsService={send:t=>console.warn("ws not connected yet, please wait..",t)},window.transactions=this.transactions={},this.withSnapshot=!1,this.editors=[],this.__elements={},this.changes=[],this.globalCommands={bodyWalk:l},this.isRealtimeConnected=!1,this.reconnectAttempts=0,this.maxReconnectAttempts=10,this.reconnectDelay=1e3,this.reconnectTimer=null,this.wsConnectionProps=null,this.isReconnecting=!1,this.wasConnected=!1,this.lastSyncTimestamp=Date.now(),this.disconnectedAt=null,this.maxDisconnectTime=3e5,this.connectOnline=t=>{"string"==typeof t&&0!==t.length?v(this,{access:t,onOpen:()=>{this.isRealtimeConnected=!0,this.app.dispatch("ws-loaded",{editor:this})}}):c(401)},this.connectRealtime=t=>{if(t&&"object"==typeof t){const{sessionId:e,avatar:n,name:r}=t,o=(0,a.A)();e||c(401),v(this,{userId:o,sessionId:e,avatar:n,name:r,onOpen:()=>{this.isRealtimeConnected=!0,this.app.dispatch("ws-loaded",{editor:this})}})}},e&&e.forEach(t=>this.addEditor(t)),this.type=null,this.components=[],this.undoRedo.on("ON_REDO",()=>setTimeout(()=>this.updateAll(),200)),this.undoRedo.on("ON_UNDO",()=>setTimeout(()=>this.updateAll(),200)),this.undoRedo.on("ON_SNAPSHOT",t=>{let{deletedSteps:e}=t;Array.isArray(e)&&e.forEach(t=>{t?.stack&&t.stack.forEach(t=>{"CREATE"!==t.type&&"REMOVE"!==t.type||(t.__type=t.type)})})}),this.commitEdits=t=>function(t,e){i.M.get("config","savedDebounce"),t.pendingTransactions.push(...e),t.debounder.run(()=>{t.updateAll([...t.pendingTransactions]),Array.isArray(window.__trace__)&&window.__trace__.push({transactions:[...t.pendingTransactions]}),t.pendingTransactions.forEach(t=>{delete t.newValue,delete t.oldValue});const e={transactions:[...t.pendingTransactions],transactionId:(0,a.A)(),created_at:Date.now()};if(t.transactions[e.transactionId]=[...t.pendingTransactions],t.isRealtimeConnected){const n=JSON.stringify(e);if(t.wsService.readyState===WebSocket.OPEN)try{t.wsService.send(n),console.trace("transactions sent",e.transactions.length),t.pendingTransactions=[],t.transactions[e.transactionId]=[]}catch(t){(0,d.v)({msg:"There is Error on sync data with the server",info:n,error_code:"#c4ca4",s:"E"}),console.warn("error on syncing, sent:",n),c()}else(0,d.v)({msg:"ws not connected",s:"E",info:{connection:t.wsService.readyState},error_code:"#c4ca9"}),console.warn("ws not connected"),c()}})}(this,t),this.updateAll=t=>function(t,e){e&&e.forEach(e=>{const n=t.getComponent(e.componentId);if(n){const t=(n.atomElement||n.element).getBoundingClientRect();n.props.rect=t,n.props.width=t.width,n.props.height=t.height}else console.error("component not found in updateAll",e)}),t.app.dispatch("update",{editor:t}),b();const n=i.M.get("config","editor","props","onSave");"function"==typeof n&&n({transactions:e,toJson:p.U2,toJSON:p.U2,toHTML:p.FE})}(this,t),this.attemptReconnect=()=>A(this),this.cancelReconnect=()=>x(this),this.connectToWSServer=t=>v(this,t),this.addComponent=(t,e)=>function(t,e){let{componentId:n,parentId:r,index:o,layer:a}=e,{sync:s=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const l=i.M.get("components",n),c=i.M.get("components",r);if(!l||!c)return;const d=[new S({componentId:n,parentId:r,index:o,layer:a})];l.parentId=r,2===a?c.elements.push(n):c.children.splice(o,0,n),t.withSnapshot&&d.length>0&&(0,C.Ay)({steps:d,onEnd:()=>t.withSnapshot=!1}),c.appendChild(l.element,o),s&&t.commitEdits(d)}(this,t,e),this.removeComponent=(t,e)=>function(t,e){let{componentId:n}=e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{const{sync:e=!0}=r,o=i.M.get("components",n);if(!o)return(0,d.v)({msg:"component not found",error_code:"#e44lk",info:{},s:"E"}),void c();const a=o.parent();if(!a)return t;if(2!==o.props.layer){const r=a.children.findIndex(t=>t===o.id);if(r<0)return(0,d.v)({msg:`children index not found for parent ${o.id}: ${r}`,error_code:"#e24lmvD3",info:{data:{componentId:n,parentId:a.id,children:a.children,layer:1}},s:"E"}),c(),t;a.children.splice(r,1);const i=[new B.A({componentId:n,parentId:a.id,index:r,layer:o.layer})];o.remove(),t.withSnapshot&&i.length>0&&(0,C.Ay)({steps:i,onEnd:()=>t.withSnapshot=!1}),e&&t.commitEdits(i)}else{const e=a.elements.findIndex(t=>t===o.id);if(e<0)return(0,d.v)({msg:`parent index not found: ${e}`,error_code:"#eggf4",info:{data:{componentId:n,parentId:a.id,elements:a.elements,layer:2}},s:"E"}),c(),t;a.elements.splice(e,1);const r=[new B.A({componentId:n,parentId:a.id,index:e,layer:2})];o.remove(),t.withSnapshot&&r.length>0&&(0,C.Ay)({steps:r,onEnd:()=>t.withSnapshot=!1}),t.commitEdits(r)}return t}catch(t){(0,d.v)({error_code:"#eggf!!4",msg:t.message,info:{data:t.stack},s:"E"}),c(),console.error(t)}}(this,t,e),this.moveComponent=(t,e)=>function(t,e){let{componentId:n,newParentId:r,oldParentId:o,newIndex:a,oldIndex:s,fromLayer:l,toLayer:p,direction:h}=e,{sync:u=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(-1===s||-1===a)return(0,d.v)({error_code:"#eggf$^4",msg:"invalid index on moveComponent",info:{componentId:n,newParentId:r,oldParentId:o,newIndex:a,oldIndex:s,fromLayer:l,toLayer:p},s:"E"}),c(),null;const f=[new T.A({componentId:n,newParentId:r,oldParentId:o,newIndex:a,oldIndex:s,direction:h,fromLayer:l,toLayer:p})],m=i.M.get("components",o),g=i.M.get("components",r),b=i.M.get("components",n);if(!b||!g||!m)return console.error("component not found on move",`\n componentId: ${n},\n newParentId: ${r},\n oldParentId: ${o},\n newIndex: ${a},\n oldIndex: ${s},\n fromLayer: ${l},\n toLayer: ${p}`),t;try{if(2===l&&2===p)m.elements.splice(s,1),g.elements.splice(a,0,b.id),g.element.appendChild(b.element);else{let t;m.children.splice(s,1),g.children.splice(a,0,b.id),m.id===g.id&&"block"===g.type&&(t={direction:a>s?"bottom":"top"}),g.appendChild(b.element,a,t)}}catch(t){console.error("appendChild method required for move",g)}return t.withSnapshot&&f.length>0&&(0,C.Ay)({steps:f,onEnd:()=>t.withSnapshot=!1}),b.parentId=r,u&&t.commitEdits(f),t}(this,t,e),this.createComponent=(t,e)=>function(t,e){let{body:n,parentId:r,index:o,layer:s}=e,{sync:l=!0,clone:p=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const h=i.M.get("components",r);if(!h)return c(),void(0,d.v)({msg:"component not found on create",error_code:"#c49vk",info:{data:{body:n,parentId:r,index:o,layer:s}},s:"E"});n.layer=s||1;const u=t=>{t.id=t._id=p?t.id:`cdtr-${(0,a.A)()}`,t.children&&t.children.forEach(e=>{e.parentId=t.id,u(e)})};u(n),n.children||(n.children=[]),2===s?(Array.isArray(h.elements)||(h.elements=[]),h.elements.splice(o,0,n.id)):h.children.splice(o,0,n.id);const{children:f}=(0,k.X)({children:[n],id:r});requestAnimationFrame(()=>{f[0].scrollIntoView({behavior:"smooth",block:"nearest"})}),h.appendChild(f[0],o);const m=[new M.A({componentId:n.id,parentId:r,body:n,index:o,layer:s})];return l&&t.commitEdits(m),t.withSnapshot&&m.length>0&&(0,C.Ay)({steps:m,onEnd:()=>t.withSnapshot=!1}),i.M.get("components",n.id)}(this,t,e),this.cloneComponent=t=>function(t,e){let{componentId:n,parentId:r,index:o}=e;const s=[];let l=null;const c=i.M.get("components",n),p=i.M.get("components",r);if(!c||!p)return console.error("component not found");const h=(e,n,r)=>{const o=JSON.parse(JSON.stringify(e.props)),c={id:`cdtr-${(0,a.A)()}`,type:e.type,parentId:n.id,index:r,props:o,children:[]};delete c._id;const d=t.createComponent({body:c,parentId:n.id,index:r,layer:e.layer||1});null===l&&(l=d.id),s.push(new M.A({componentId:d.id,parentId:n.id,index:r,body:c})),e.children&&e.children.forEach((t,e)=>{const n=i.M.get("components",t),r=i.M.get("components",d.id);n&&h(n,r,e)})};if(h(c,p,o),"card"===c.type||"col"===c.type){const t=c.closest("block");t&&(0,E.s)(t).forEach(t=>{i.M.get("components",t.componentId)?s.push(t):(console.error("col not found for resize on clone"),(0,d.v)({s:"E",error_code:"#ggbbk$",info:{},msg:"col not found for resize on clone"}))})}(0,C.Ay)({steps:s,update:!0})}(this,t),this.updateComponent=(t,e,n,r)=>function(t,e,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const{sync:a=!0}=o;if("string"==typeof e&&(e=i.M.get("components",e)),!e)return console.error("component not found on update"),(0,d.v)({error_code:"#e@lld",msg:"component not found on update",info:{},s:"E"}),null;const s=R(e,n,r),l=[new L.A({componentId:e.id,key:s.key,value:s.value&&"object"==typeof s.value?JSON.parse(JSON.stringify(s.value)):s.value})];return t.withSnapshot&&l.length>0?(0,C.Ay)({steps:l,onEnd:()=>{t.withSnapshot=!1,a&&t.commitEdits(l)}}):(e.props[s.key]=s.value,a?t.commitEdits(l):t.updateAll()),t}(this,t,e,n,r),this.silentPatch=(t,e,n)=>function(t,e,n,r){const o=[new L.A({componentId:e.id,key:n,value:r})];t.commitEdits(o)}(this,t,e,n),this.selectComponent=(t,e)=>function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e?(-1!==t.components.findIndex(t=>t.id===e.id)||(e.isSelected=!0,t.type=n.type||e.type,"function"==typeof e.onSelect&&e.onSelect("selected"),t.wsService.send(JSON.stringify({transactions:[{type:"SELECT_ELEMENT",componentId:e.id}]})),t.components.push(e),t.app.dispatch("update",{editor:t,props:n}),t.app.dispatch("select",{editor:t,props:n,component:e,components:t.components})),t):t}(this,t,e),this.clean=()=>function(t){return t.components.forEach(t=>{t.isSelected=!1,"function"==typeof t.onDeselect&&t.onDeselect("selected")}),t.components=[],t}(this),this.execCommand2=t=>function(t,e){let{transactions:n,update:r=t.components}=e;const o=[];Array.isArray(r)||(r=[r]),n.forEach(t=>{let{type:e,key:n,value:i}=t;r.forEach(t=>{const r=e?t.closest(e):t;if(r){const t=R(r,n,i);o.push(new L.A({componentId:r.id,key:t.key,value:t.value}))}})}),t.withSnapshot&&o.length>0?(0,C.Ay)({steps:o,onEnd:e=>{let{steps:n}=e;t.withSnapshot=!1,t.commitEdits(n)}}):o.forEach(e=>{let{componentId:n,key:r,value:a}=e;const s=i.M.get("components",n);s&&(s.props[r]=a,t.commitEdits(o))})}(this,t),this.execCommands=(t,e)=>function(t,e,n){let{components:r=[...t.components],silent:o=!1}=n||{};Array.isArray(r)||(r=[r]),Array.isArray(e)||(e=[e]);const a=[];return e.forEach(e=>{let{componentId:n,key:o,value:i,options:s={}}=e;const{find:l}=s;if(n){let e=i;if("function"==typeof i){const r=t.getComponent(n);e=i(r)}const r=t.getComponent(n),s=r?R(r,o,e):{key:o,value:e};a.push(new L.A({componentId:n,key:s.key,value:s.value}))}else r.forEach(e=>{if(l){let t=e.closest(l);if(t||(t=e.find(l)),!t)return void console.log("component not found on execCommands",l);e=t}let n=i;if("function"==typeof i&&(n=i(e),null===n))return t;const r=R(e,o,n);a.push(new L.A({componentId:e.id,key:r.key,value:r.value}))})}),t.withSnapshot&&a.length>0?(0,C.Ay)({steps:a,onEnd:()=>{t.withSnapshot=!1,t.commitEdits(a)}}):a.forEach(e=>{let{componentId:n,key:r,value:o}=e;const s=i.M.get("components",n);s&&(s.props[r]=o,t.commitEdits(a))}),t}(this,t,e)}dispatch(t,e){return this.app.dispatch(t,e),this}on(t,e){this.app.subscribe(t,e)}off(t,e){switch(t){case"update":this.app.unSubscribe("update",e);break;case"select":this.app.unSubscribe("select",e)}}addEditor(t){let{id:e,type:n,name:r,editor:o}=t;this.editors.push({id:e,type:n,name:r,editor:o})}removeEditor(t){let{id:e,name:n,type:r}=t;e&&(this.editors=this.editors.filter(t=>t.id!==e)),n&&(this.editors=this.editors.filter(t=>t.name!==n)),r&&(this.editors=this.editors.filter(t=>t.type!==r))}getComponents(){return i.M.get("components")}getComponent(t){return t?i.M.get("components",t):null}getEditor(t){if(t){const e=this.editors.find(e=>e.name===t);return e?e.editor:null}return this.editors}getSelectedComponent(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{find:e=null}=t;if(!e)return this.components;const n=[],r=t=>{t&&t.forEach(t=>{const o=this.getComponent(t);o&&(e?.equalWith(o.type)&&n.push(o),r(o.children))})};return this.components.forEach(t=>{e?.equalWith(t.type)&&n.push(t),t.children&&r(t.children)}),n}saveTemplate(t,e){this.templates[t]=e}getTemplate(t){return this.templates[`style:${t}`]}store(){return this.withSnapshot=!0,this}execCommand(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.execCommands({key:t,value:e,options:n}),this}createschema(t,e){this.__elements[t]=e}getschema(t){return this.__elements[t]}}({}),H=z},67549(t,e,n){"use strict";function r(t){const e=[];if(t&&"function"==typeof t.commands.fixCols){t.commands.fixCols().sizes.forEach(t=>e.push(t))}return e}n.d(e,{s:()=>r})},83965(t,e,n){"use strict";n.d(e,{i:()=>i});var r=n(36565),o=n(89531);function i(t){let e=[],n=t;for(;n&&(!n||"section"!==n.type&&"root"!==n.type);){if(0===n.children.length){const t=n.parent(),i=t.children.findIndex(t=>t===n.id);-1!==i&&(e.push(new o.A({componentId:n.id,parentId:t.id,index:i})),r.Ay.removeComponent({componentId:n.id}))}n=n.parent()}return e}},50220(t,e,n){"use strict";n.d(e,{A:()=>o});var r=n(59929);const o=t=>{let e="function"==typeof t.value?t.value(t):t.value;return e||(e=""),r.qy`<cdtr-editor-container>
|
|
1845
1858
|
<cdtr-title><lang-text text="${t.title}"></lang-text></cdtr-title>
|
|
1846
1859
|
<cdtr-dropdown
|
|
1847
1860
|
style="width:100%;"
|
|
@@ -2444,7 +2457,7 @@
|
|
|
2444
2457
|
</paper-button>
|
|
2445
2458
|
</cdtr-row>
|
|
2446
2459
|
</form>
|
|
2447
|
-
</div>`,h),document.body.appendChild(h)}}},49937(t,e,n){"use strict";n.d(e,{A:()=>r});const r=new(n(18396).A)},3832(t,e,n){"use strict";n.d(e,{Ay:()=>C});var r=n(80120),o=n(18057);const i=t=>t instanceof Date,a=t=>null!=t&&"object"==typeof t,s=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),l=t=>a(t)&&(t=>0===Object.keys(t).length)(t),c=(t,e)=>{if(t===e)return{};if(!a(t)||!a(e))return e;const n=Object.keys(t).reduce((t,n)=>(s(e,n)||(t[n]=void 0),t),Object.create(null));return i(t)||i(e)?t.valueOf()==e.valueOf()?{}:e:Object.keys(e).reduce((n,r)=>{if(!s(t,r))return n[r]=e[r],n;const o=c(t[r],e[r]);return!l(o)||i(o)||!l(t[r])&&l(e[r])?(n[r]=o,n):n},n)},d=c;var p=n(49937),h=n(4952),u=n(86319),f=n(36565),m=n(52144),g=n(91937),b=n.n(g),y=n(98352),w=n.n(y);const A=new o.A,x={},_={},v=[],k=t=>{try{let{steps:e,options:n,onEnd:o,force:i,update:a}=t;e=Array.isArray(e)?e:[e],e.forEach(t=>{const{type:e}=t;if(e===r.d.PATCH){const{componentId:e,key:n}=t;let{value:r}=t;const o=b()({componentId:e,key:n}),i=u.M.get("components",e);if(!i)return console.error("component not found",e,t),void console.trace();if(!x[o]){const t=w()(i.props?i.props[n]:void 0);x[o]=t??{}}let a=w()(r);if("style"===n||"iconStyle"===n){if(a&&"object"==typeof a){const t=i.props;a=(0,m.A)(t[n],a),_[o]=a}}else _[o]=w()(a);try{i.props[n]=_[o]}catch(t){console.error("error applying patch",t)}if(void 0!==_[o]){const r=v.findIndex(t=>t.componentId===e&&t.key===n);-1!==r&&v.splice(r,1),v.push({...t,newValue:a})}else delete _[o]}else v.push(t)}),A.run(()=>{for(let t=0;t<v.length;t++){const e=v[t];if("PATCH"!==e.type)continue;const{newValue:n,componentId:r,key:o}=e,s=b()({componentId:r,key:o}),l=x[s];let c;if(e.oldValue=l,delete x[s],c=Array.isArray(n)&&Array.isArray(l)?n.filter(t=>!l.find(e=>e===t)):d(l,n),null!=c&&"object"==typeof c)for(const t of Object.keys(c))void 0===c[t]&&delete c[t];!0!==i&&null!=c&&"object"==typeof c&&Object.keys(c).length;a&&void 0!==_[s]&&f.Ay.silentPatch(f.Ay.getComponent(r),o,_[s]),delete _[s]}if(v.length>0){h.A.create({stack:v,options:n});const t=[...v];"function"==typeof o&&o({stack:t,steps:t})}v.length=0})}catch(e){console.error(e);const n=e instanceof Error?e:new Error(String(e));f.Ay.commands.logError({error_code:"#123!#",info:JSON.stringify({data:n.stack,steps:t.steps,force:t.force,update:t.update}),msg:n.message,s:1,siteId:"",v:void 0})}finally{p.A.dispatch("changed",{})}},C=k},18057(t,e,n){"use strict";n.d(e,{A:()=>r});class r{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300;this.callback=void 0,this.timeout=void 0,this.delay=void 0,this.delay=t,this.run=this.run.bind(this)}run(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300;this.callback=t,"number"==typeof e&&(this.delay=e),clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.callback()},this.delay)}}},21663(t,e,n){"use strict";n.d(e,{A:()=>r});const r=t=>{if(!t||"string"!=typeof t)return!1;const e="$%^$%^";return 0===t.replace(/[^\P{L}a-z][^a-z]*/giu,e).indexOf(e)||(t=(t=t.replace(/[0-9]/g,"")).replace(/\n/g,""),new RegExp(/^[\u0590-\u05FF ,.,!,?,/,*,#,@,&,(,)'-]+$/i).test(t))}},83235(t,e,n){"use strict";n.d(e,{A:()=>o});const r=JSON.parse('["ase","art","bmp","blp","cd5","cit","cpt","cr2","cut","dds","dib","djvu","egt","exif","gif","gpl","grf","icns","ico","iff","jng","jpeg","jpg","jfif","jp2","jps","lbm","max","miff","mng","msp","nef","nitf","ota","pbm","pc1","pc2","pc3","pcf","pcx","pdn","pgm","PI1","PI2","PI3","pict","pct","pnm","pns","ppm","psb","psd","pdd","psp","px","pxm","pxr","qfx","raw","rle","sct","sgi","rgb","int","bw","tga","tiff","tif","vtf","xbm","xcf","xpm","3dv","amf","ai","awg","cgm","cdr","cmx","dxf","e2d","egt","eps","fs","gbr","odg","svg","stl","vrml","x3d","sxd","v2d","vnd","wmf","emf","art","xar","png","webp","jxr","hdp","wdp","cur","ecw","iff","lbm","liff","nrrd","pam","pcx","pgf","sgi","rgb","rgba","bw","int","inta","sid","ras","sun","tga","heic","heif"]');function o(t){const e=(/(?:\.([^.]+))?$/.exec(t.toLowerCase())??[])[1]||"",n=e.includes("&")?e.split("&")[0]:e;return-1!==r.findIndex(t=>t===n)}},40120(t,e,n){"use strict";n.d(e,{VH:()=>l,sw:()=>a});var r=n(69172),o=n(82706),i=n(86319);async function a(t){let{cssRule:e,name:n,id:r,url:o}=t;if(!o){const t=(await l()).find(t=>t.id===r||t.cssRule===e||t.name===n);t&&(o=t.url)}if(!o)return null;if(!document.querySelector(`link[href="${o}"]`)){const t=document.createElement("link");t.href=o,t.rel="stylesheet",t.type="text/css",document.head.appendChild(t)}}let s=null;const l=async()=>{const t=i.M.get("config","editor","configure","editorProps"),e=t?.fonts||[];return"web"===i.M.get("config","channel")&&t?(s||(s=(0,o.Jt)(r.XW.api_url+r.JZ.fonts+"/?limit=999").then(n=>{const r=function(t,e){const n=new Set,r=[];for(const o of[...t,...e]){if(!o)continue;const t=o.id||o.name||o.cssRule;t&&n.has(t)||(t&&n.add(t),r.push(o))}return r}(e,n?.data?.results||[]);return t.fonts=r,r}).catch(t=>(console.error("failed to fetch web fonts",t),e))),s):e}},98829(t,e,n){"use strict";n.d(e,{v:()=>s});var r=n(69172),o=n(86319),i=n(82706),a=n(8330);const s=t=>{const e=o.M.get("config")._id;return t.siteId=e,t.v=a.rE,console.log(t),(0,i.bE)(r.XW.api_url+r.JZ.log,t)}},90090(t,e,n){"use strict";n.d(e,{YE:()=>l,bA:()=>a,bK:()=>c,sU:()=>s});var r=n(69172),o=n(82706),i=n(86319);o.jd;const a=t=>(0,o.bE)(r.XW.api_url_v2+r.JZ.generateCode,t),s=t=>{const e=encodeURIComponent(t);return(0,o.Jt)(r.XW.api_url_v2+r.JZ.submitAccessCode+`/${e}`)},l=t=>{const e=i.M.get("app");return(0,o.F6)(r.XW.api_url+r.JZ.site+`/${e._id}`,t)},c=t=>{const e=i.M.get("app");return(0,o.bE)(r.XW.api_url+r.JZ.site+`/publish/${e._id}`,t)}},80120(t,e,n){"use strict";n.d(e,{d:()=>r});let r=function(t){return t.PATCH="PATCH",t.REMOVE="REMOVE",t.CLONE="CLONE",t.ADD="ADD",t.MOVE="MOVE",t.CREATE="CREATE",t}({})},4952(t,e,n){"use strict";n.d(e,{A:()=>l,q:()=>c});var r=n(81840),o=n(12106),i=n(86319);const a=n(98352),s=t=>{const e=typeof t;return Array.isArray(t)||"object"===e?JSON.parse(JSON.stringify(t)):t};const l=new class{constructor(){this.emitter=void 0,this.state=void 0,this.emitter=new r.A,this.state={past:[],present:null,future:[]}}setHistory(t){const e=t;e&&"object"==typeof e&&Array.isArray(e.past)&&Array.isArray(e.future)&&e.present&&(this.state=e,this.onAnyChange(),this.emitter.dispatch("ON_SNAPSHOT",this.dispatchValue(this.state.present)))}onAnyChange(){i.M.set({history:this.state})}hasRedo(){return this.state.future.length>0||"oldValue"===this.state.present?.currectValue}hasUndo(){return this.state.past.length>0||"newValue"===this.state.present?.currectValue}hasPresent(){return!!this.state.present}undo(){if(!this.hasUndo()&&!this.state.present)return;let t,e;"newValue"===this.state.present.currectValue?(t=this.state.present,e=s(this.state.present),this.state.present.currectValue="oldValue"):(t=this.state.past.pop(),t&&(this.state.future.unshift(this.state.present),this.state.present=t,e=s(this.state.present),this.state.present.currectValue="oldValue")),e&&(this.emitter.dispatch("ON_UNDO",this.dispatchValue(e)),this.onAnyChange())}redo(){if(!this.hasRedo()&&!this.state.present)return;let t,e;"oldValue"===this.state.present.currectValue?(t=this.state.present,e=s(this.state.present),this.state.present.currectValue="newValue"):(t=this.state.future.shift(),t&&(this.state.past.push(this.state.present),this.state.present=t,e=s(this.state.present),this.state.present.currectValue="newValue")),e&&(this.emitter.dispatch("ON_REDO",this.dispatchValue(e)),this.onAnyChange())}create(t){let e=[];this.state.present&&"newValue"===this.state.present.currectValue&&0===this.state.future.length?(this.state.present.currectValue="newValue",this.state.past.push(this.state.present),this.state.present=null):this.state.present&&"oldValue"===this.state.present.currectValue&&this.state.future.length>0&&(this.state.present=null),e=JSON.parse(JSON.stringify(this.state.future)),this.state.future=[];const n=a(t),r={id:(0,o.A)(),stack:n.stack,options:n.options,created_at:Date.now(),currectValue:"newValue",deletedSteps:e};this.state.present=r,this.emitter.dispatch("ON_SNAPSHOT",this.dispatchValue(r)),this.onAnyChange()}dispatchValue(t){return{currectValue:t.currectValue,stack:t.stack,options:t.options,hasUndo:this.hasUndo(),hasRedo:this.hasRedo(),__state:this.state,pastLength:this.state.past.length+1,futureLength:this.state.future.length,deletedSteps:t.deletedSteps}}on(t,e){this.emitter.subscribe(t,e)}off(t,e){this.emitter.unSubscribe(t,e)}},c={ON_UNDO:"ON_UNDO",ON_REDO:"ON_REDO",ON_SNAPSHOT:"ON_SNAPSHOT"}},43214(t,e,n){"use strict";n.d(e,{A:()=>o});var r=n(12106);const o=t=>{const{id:e="style-"+(0,r.A)(),parentNode:n=document.body,isImportant:o=!0,context:i}=t;let a=null;function s(t,e){const n=[];return n.push(t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()),n.push(":"),n.push(e||'""'),n.push(o?" !important;":";"),n.join("")}return e&&(a=document.getElementById(e)),a||(a=document.createElement("style"),a.id=e),a.innerHTML=(t=>{const e=[];for(const n in t)if(Object.hasOwnProperty.call(t,n)){const r=t[n];e.push(n),e.push("{");for(const t in r)if(Object.hasOwnProperty.call(r,t)){const n=s(t,r[t]);e.push(n)}e.push("}")}return e.join("")})(i),n.appendChild(a),e}},29482(t,e,n){"use strict";function r(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];let o=[];return"string"==typeof e?e.split(",").join(" "):(e.forEach(t=>{"string"==typeof t?o.push(t):Array.isArray(t)&&o.push(r(...t))}),o=o.filter(t=>t),o.join(" "))}n.d(e,{A:()=>r})},9334(t,e,n){"use strict";function r(t){return t.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})}n.d(e,{A:()=>r})},93432(t,e,n){"use strict";n.d(e,{FE:()=>u,U2:()=>c,Ux:()=>s});var r=n(86959),o=n(86319),i=n(72505),a=n.n(i);const s=t=>{const e=t,n=t.element.getBoundingClientRect(),r={id:e.id,_id:e.id,type:e.type,props:JSON.parse(JSON.stringify(e.props)),children:e.children,elements:e.elements,width:e.width,height:e.height,renderedHTML:null};return"function"==typeof e.getRenderedHTML&&(r.renderedHTML=e.getRenderedHTML({props:e.props})),n.width&&n.height?(r.width=n.width,r.height=n.height,r):(console.warn("The Editor is must be visible to get the correct width and height of the components"),r)},l=t=>Array.isArray(t)?t.filter(t=>"string"==typeof t||!(!t||"object"!=typeof t||!Array.isArray(t.children))&&(t.children=l(t.children),!0)):[],c=()=>{const t=o.M.get("components"),e=[];return t.forEach(t=>{const n=s(t);if(n&&Array.isArray(n.children)&&(n.children=l(n.children)),n&&Array.isArray(n.elements)&&(n.elements=l(n.elements)),"root"===n.type){const t=o.M.get("config","editor","configure","editorProps","fonts"),e=Array.from(document.querySelectorAll("[data-cdtr-font-name]")).map(t=>t.getAttribute("data-cdtr-font-name")),r=[...new Set(e)],i=[],a={};Array.isArray(t)&&r.forEach(e=>{const n=t.find(t=>t.cssRule===e);n&&!a[e]&&n&&(i.push(n),a[e]=!0)}),n.props.fonts=i}e.push(n)}),e.forEach(t=>{try{JSON.stringify(t)}catch(t){console.error("Error serializing component",t)}}),e};let d=!1,p=[];const h=async()=>{if(0===p.length)return void(d=!1);const{resolve:t,reject:e,components:n,channel:o,device:i}=p[0];try{const e="mobile"===i?"Mozilla/5.0 (Linux; Android 12; SM-S906N Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/80.0.3987.119 Mobile Safari/537.36":void 0;t(("web"===o?await a().post(r.XW.render_build_url,{children:n,userAgent:e}):await a().post(`${r.XW.api_url.replace("v1","v2")}/render/newsletter/build`,{components:n})).data)}catch(t){e(t)}p.shift(),h()},u=async(t,e)=>{const n=c();return new Promise((r,o)=>{p.push({resolve:r,reject:o,components:n,channel:String(t??"newsletter"),device:null!=e?String(e):void 0}),d||(d=!0,h())})}},40156(t,e,n){"use strict";n.d(e,{A:()=>r});const r=(t,e)=>{const n=document.head.querySelector(`script[src='${t}']`);if(n){const t=parseInt(n.dataset.requested??"0")||1;return n.setAttribute("data-requested",String(t+1)),n.getAttribute("data-loaded"),void("function"==typeof e&&e())}const r=document.createElement("script");r.type="text/javascript",r.setAttribute("data-loaded","false"),r.async=!0,r.defer=!0,-1!==t.indexOf("?module")&&(r.type="module"),r.src=t,function(t){t.addEventListener("load",()=>{t.setAttribute("data-loaded","true");const n=parseInt(t.dataset.requested??"0")||0;t.setAttribute("data-requested",String(n+1)),"function"==typeof e&&e()},{once:!0})}(r),r.addEventListener("error",()=>{r.setAttribute("data-error","true")},{once:!0}),document.getElementsByTagName("head")[0].appendChild(r)}},12106(t,e,n){"use strict";var r;n.d(e,{A:()=>p});var o=new Uint8Array(16);function i(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}const a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const s=function(t){return"string"==typeof t&&a.test(t)};for(var l=[],c=0;c<256;++c)l.push((c+256).toString(16).substr(1));const d=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(l[t[e+0]]+l[t[e+1]]+l[t[e+2]]+l[t[e+3]]+"-"+l[t[e+4]]+l[t[e+5]]+"-"+l[t[e+6]]+l[t[e+7]]+"-"+l[t[e+8]]+l[t[e+9]]+"-"+l[t[e+10]]+l[t[e+11]]+l[t[e+12]]+l[t[e+13]]+l[t[e+14]]+l[t[e+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n};const p=function(t,e,n){var r=(t=t||{}).random||(t.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var o=0;o<16;++o)e[n+o]=r[o];return e}return d(r)}},4217(t,e,n){var r;if("object"==typeof globalThis)r=globalThis;else try{r=n(9444)}catch(t){}finally{if(r||"undefined"==typeof window||(r=window),!r)throw new Error("Could not determine global this")}var o=r.WebSocket||r.MozWebSocket,i=n(66409);function a(t,e){return e?new o(t,e):new o(t)}o&&["CONNECTING","OPEN","CLOSING","CLOSED"].forEach(function(t){Object.defineProperty(a,t,{get:function(){return o[t]}})}),t.exports={w3cwebsocket:o?a:null,version:i}},66409(t,e,n){t.exports=n(99438).version},68502(t,e,n){"use strict";var r=n(8120),o=n(36828),i=n(53725),a=n(43409),s=n(18078);t.exports=function(t){return null==t||"object"!=typeof t&&"function"!=typeof t?null:r(t)?"String":o(t)?"Number":i(t)?"Boolean":a(t)?"Symbol":s(t)?"BigInt":void 0}},39334(t,e,n){"use strict";var r=n(98009),o=n(2583),i=n(88341),a=n(82347);t.exports=function(t){if(t&&"object"==typeof t){if(r(t))return"Map";if(o(t))return"Set";if(i(t))return"WeakMap";if(a(t))return"WeakSet"}return!1}},52730(t,e,n){"use strict";var r=n(80705),o=n(14834),i=n(28498),a=n(14607),s=n(69336),l=n(46369),c=a("Object.prototype.toString"),d=n(51913)(),p="undefined"==typeof globalThis?n.g:globalThis,h=o(),u=a("String.prototype.slice"),f=a("Array.prototype.indexOf",!0)||function(t,e){for(var n=0;n<t.length;n+=1)if(t[n]===e)return n;return-1},m={__proto__:null};r(h,d&&s&&l?function(t){var e=new p[t];if(Symbol.toStringTag in e&&l){var n=l(e),r=s(n,Symbol.toStringTag);if(!r&&n){var o=l(n);r=s(o,Symbol.toStringTag)}if(r&&r.get){var a=i(r.get);m["$"+t]=a}}}:function(t){var e=new p[t],n=e.slice||e.set;if(n){var r=i(n);m["$"+t]=r}});t.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!d){var e=u(c(t),8,-1);return f(h,e)>-1?e:"Object"===e&&function(t){var e=!1;return r(m,function(n,r){if(!e)try{n(t),e=u(r,1)}catch(t){}}),e}(t)}return s?function(t){var e=!1;return r(m,function(n,r){if(!e)try{"$"+n(t)===r&&(e=u(r,1))}catch(t){}}),e}(t):null}},77203(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return l.default}});var r=h(n(61738)),o=h(n(97696)),i=h(n(37845)),a=h(n(45782)),s=h(n(95636)),l=h(n(62379)),c=h(n(76777)),d=h(n(12610)),p=h(n(62284));function h(t){return t&&t.__esModule?t:{default:t}}},85707(t,e){"use strict";function n(t){return 14+(t+64>>>9<<4)+1}function r(t,e){const n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function o(t,e,n,o,i,a){return r((s=r(r(e,t),r(o,a)))<<(l=i)|s>>>32-l,n);var s,l}function i(t,e,n,r,i,a,s){return o(e&n|~e&r,t,e,i,a,s)}function a(t,e,n,r,i,a,s){return o(e&r|n&~r,t,e,i,a,s)}function s(t,e,n,r,i,a,s){return o(e^n^r,t,e,i,a,s)}function l(t,e,n,r,i,a,s){return o(n^(e|~r),t,e,i,a,s)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var c=function(t){if("string"==typeof t){const e=unescape(encodeURIComponent(t));t=new Uint8Array(e.length);for(let n=0;n<e.length;++n)t[n]=e.charCodeAt(n)}return function(t){const e=[],n=32*t.length,r="0123456789abcdef";for(let o=0;o<n;o+=8){const n=t[o>>5]>>>o%32&255,i=parseInt(r.charAt(n>>>4&15)+r.charAt(15&n),16);e.push(i)}return e}(function(t,e){t[e>>5]|=128<<e%32,t[n(e)-1]=e;let o=1732584193,c=-271733879,d=-1732584194,p=271733878;for(let e=0;e<t.length;e+=16){const n=o,h=c,u=d,f=p;o=i(o,c,d,p,t[e],7,-680876936),p=i(p,o,c,d,t[e+1],12,-389564586),d=i(d,p,o,c,t[e+2],17,606105819),c=i(c,d,p,o,t[e+3],22,-1044525330),o=i(o,c,d,p,t[e+4],7,-176418897),p=i(p,o,c,d,t[e+5],12,1200080426),d=i(d,p,o,c,t[e+6],17,-1473231341),c=i(c,d,p,o,t[e+7],22,-45705983),o=i(o,c,d,p,t[e+8],7,1770035416),p=i(p,o,c,d,t[e+9],12,-1958414417),d=i(d,p,o,c,t[e+10],17,-42063),c=i(c,d,p,o,t[e+11],22,-1990404162),o=i(o,c,d,p,t[e+12],7,1804603682),p=i(p,o,c,d,t[e+13],12,-40341101),d=i(d,p,o,c,t[e+14],17,-1502002290),c=i(c,d,p,o,t[e+15],22,1236535329),o=a(o,c,d,p,t[e+1],5,-165796510),p=a(p,o,c,d,t[e+6],9,-1069501632),d=a(d,p,o,c,t[e+11],14,643717713),c=a(c,d,p,o,t[e],20,-373897302),o=a(o,c,d,p,t[e+5],5,-701558691),p=a(p,o,c,d,t[e+10],9,38016083),d=a(d,p,o,c,t[e+15],14,-660478335),c=a(c,d,p,o,t[e+4],20,-405537848),o=a(o,c,d,p,t[e+9],5,568446438),p=a(p,o,c,d,t[e+14],9,-1019803690),d=a(d,p,o,c,t[e+3],14,-187363961),c=a(c,d,p,o,t[e+8],20,1163531501),o=a(o,c,d,p,t[e+13],5,-1444681467),p=a(p,o,c,d,t[e+2],9,-51403784),d=a(d,p,o,c,t[e+7],14,1735328473),c=a(c,d,p,o,t[e+12],20,-1926607734),o=s(o,c,d,p,t[e+5],4,-378558),p=s(p,o,c,d,t[e+8],11,-2022574463),d=s(d,p,o,c,t[e+11],16,1839030562),c=s(c,d,p,o,t[e+14],23,-35309556),o=s(o,c,d,p,t[e+1],4,-1530992060),p=s(p,o,c,d,t[e+4],11,1272893353),d=s(d,p,o,c,t[e+7],16,-155497632),c=s(c,d,p,o,t[e+10],23,-1094730640),o=s(o,c,d,p,t[e+13],4,681279174),p=s(p,o,c,d,t[e],11,-358537222),d=s(d,p,o,c,t[e+3],16,-722521979),c=s(c,d,p,o,t[e+6],23,76029189),o=s(o,c,d,p,t[e+9],4,-640364487),p=s(p,o,c,d,t[e+12],11,-421815835),d=s(d,p,o,c,t[e+15],16,530742520),c=s(c,d,p,o,t[e+2],23,-995338651),o=l(o,c,d,p,t[e],6,-198630844),p=l(p,o,c,d,t[e+7],10,1126891415),d=l(d,p,o,c,t[e+14],15,-1416354905),c=l(c,d,p,o,t[e+5],21,-57434055),o=l(o,c,d,p,t[e+12],6,1700485571),p=l(p,o,c,d,t[e+3],10,-1894986606),d=l(d,p,o,c,t[e+10],15,-1051523),c=l(c,d,p,o,t[e+1],21,-2054922799),o=l(o,c,d,p,t[e+8],6,1873313359),p=l(p,o,c,d,t[e+15],10,-30611744),d=l(d,p,o,c,t[e+6],15,-1560198380),c=l(c,d,p,o,t[e+13],21,1309151649),o=l(o,c,d,p,t[e+4],6,-145523070),p=l(p,o,c,d,t[e+11],10,-1120210379),d=l(d,p,o,c,t[e+2],15,718787259),c=l(c,d,p,o,t[e+9],21,-343485551),o=r(o,n),c=r(c,h),d=r(d,u),p=r(p,f)}return[o,c,d,p]}(function(t){if(0===t.length)return[];const e=8*t.length,r=new Uint32Array(n(e));for(let n=0;n<e;n+=8)r[n>>5]|=(255&t[n/8])<<n%32;return r}(t),8*t.length))};e.default=c},53952(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};e.default=n},95636(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default="00000000-0000-0000-0000-000000000000"},62284(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=(r=n(76777))&&r.__esModule?r:{default:r};var i=function(t){if(!(0,o.default)(t))throw TypeError("Invalid UUID");let e;const n=new Uint8Array(16);return n[0]=(e=parseInt(t.slice(0,8),16))>>>24,n[1]=e>>>16&255,n[2]=e>>>8&255,n[3]=255&e,n[4]=(e=parseInt(t.slice(9,13),16))>>>8,n[5]=255&e,n[6]=(e=parseInt(t.slice(14,18),16))>>>8,n[7]=255&e,n[8]=(e=parseInt(t.slice(19,23),16))>>>8,n[9]=255&e,n[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,n[11]=e/4294967296&255,n[12]=e>>>24&255,n[13]=e>>>16&255,n[14]=e>>>8&255,n[15]=255&e,n};e.default=i},92460(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},91190(t,e){"use strict";let n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){if(!n&&(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!n))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(r)};const r=new Uint8Array(16)},1862(t,e){"use strict";function n(t,e,n,r){switch(t){case 0:return e&n^~e&r;case 1:case 3:return e^n^r;case 2:return e&n^e&r^n&r}}function r(t,e){return t<<e|t>>>32-e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function(t){const e=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){const e=unescape(encodeURIComponent(t));t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);const i=t.length/4+2,a=Math.ceil(i/16),s=new Array(a);for(let e=0;e<a;++e){const n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=t[64*e+4*r]<<24|t[64*e+4*r+1]<<16|t[64*e+4*r+2]<<8|t[64*e+4*r+3];s[e]=n}s[a-1][14]=8*(t.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(t.length-1)&4294967295;for(let t=0;t<a;++t){const i=new Uint32Array(80);for(let e=0;e<16;++e)i[e]=s[t][e];for(let t=16;t<80;++t)i[t]=r(i[t-3]^i[t-8]^i[t-14]^i[t-16],1);let a=o[0],l=o[1],c=o[2],d=o[3],p=o[4];for(let t=0;t<80;++t){const o=Math.floor(t/20),s=r(a,5)+n(o,l,c,d)+p+e[o]+i[t]>>>0;p=d,d=c,c=r(l,30)>>>0,l=a,a=s}o[0]=o[0]+a>>>0,o[1]=o[1]+l>>>0,o[2]=o[2]+c>>>0,o[3]=o[3]+d>>>0,o[4]=o[4]+p>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,255&o[0],o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,255&o[1],o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,255&o[2],o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,255&o[3],o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,255&o[4]]};e.default=o},12610(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.unsafeStringify=a;var r,o=(r=n(76777))&&r.__esModule?r:{default:r};const i=[];for(let t=0;t<256;++t)i.push((t+256).toString(16).slice(1));function a(t,e=0){return i[t[e+0]]+i[t[e+1]]+i[t[e+2]]+i[t[e+3]]+"-"+i[t[e+4]]+i[t[e+5]]+"-"+i[t[e+6]]+i[t[e+7]]+"-"+i[t[e+8]]+i[t[e+9]]+"-"+i[t[e+10]]+i[t[e+11]]+i[t[e+12]]+i[t[e+13]]+i[t[e+14]]+i[t[e+15]]}var s=function(t,e=0){const n=a(t,e);if(!(0,o.default)(n))throw TypeError("Stringified UUID is invalid");return n};e.default=s},61738(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=(r=n(91190))&&r.__esModule?r:{default:r},i=n(12610);let a,s,l=0,c=0;var d=function(t,e,n){let r=e&&n||0;const d=e||new Array(16);let p=(t=t||{}).node||a,h=void 0!==t.clockseq?t.clockseq:s;if(null==p||null==h){const e=t.random||(t.rng||o.default)();null==p&&(p=a=[1|e[0],e[1],e[2],e[3],e[4],e[5]]),null==h&&(h=s=16383&(e[6]<<8|e[7]))}let u=void 0!==t.msecs?t.msecs:Date.now(),f=void 0!==t.nsecs?t.nsecs:c+1;const m=u-l+(f-c)/1e4;if(m<0&&void 0===t.clockseq&&(h=h+1&16383),(m<0||u>l)&&void 0===t.nsecs&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=u,c=f,s=h,u+=122192928e5;const g=(1e4*(268435455&u)+f)%4294967296;d[r++]=g>>>24&255,d[r++]=g>>>16&255,d[r++]=g>>>8&255,d[r++]=255&g;const b=u/4294967296*1e4&268435455;d[r++]=b>>>8&255,d[r++]=255&b,d[r++]=b>>>24&15|16,d[r++]=b>>>16&255,d[r++]=h>>>8|128,d[r++]=255&h;for(let t=0;t<6;++t)d[r+t]=p[t];return e||(0,i.unsafeStringify)(d)};e.default=d},97696(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n(42109)),o=i(n(85707));function i(t){return t&&t.__esModule?t:{default:t}}var a=(0,r.default)("v3",48,o.default);e.default=a},42109(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.URL=e.DNS=void 0,e.default=function(t,e,n){function r(t,r,a,s){var l;if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));const e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n));return e}(t)),"string"==typeof r&&(r=(0,i.default)(r)),16!==(null===(l=r)||void 0===l?void 0:l.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+t.length);if(c.set(r),c.set(t,r.length),c=n(c),c[6]=15&c[6]|e,c[8]=63&c[8]|128,a){s=s||0;for(let t=0;t<16;++t)a[s+t]=c[t];return a}return(0,o.unsafeStringify)(c)}try{r.name=t}catch(t){}return r.DNS=a,r.URL=s,r};var r,o=n(12610),i=(r=n(62284))&&r.__esModule?r:{default:r};const a="6ba7b810-9dad-11d1-80b4-00c04fd430c8";e.DNS=a;const s="6ba7b811-9dad-11d1-80b4-00c04fd430c8";e.URL=s},37845(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(n(53952)),o=a(n(91190)),i=n(12610);function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t,e,n){if(r.default.randomUUID&&!e&&!t)return r.default.randomUUID();const a=(t=t||{}).random||(t.rng||o.default)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e){n=n||0;for(let t=0;t<16;++t)e[n+t]=a[t];return e}return(0,i.unsafeStringify)(a)};e.default=s},45782(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n(42109)),o=i(n(1862));function i(t){return t&&t.__esModule?t:{default:t}}var a=(0,r.default)("v5",80,o.default);e.default=a},76777(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=(r=n(92460))&&r.__esModule?r:{default:r};var i=function(t){return"string"==typeof t&&o.default.test(t)};e.default=i},62379(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=(r=n(76777))&&r.__esModule?r:{default:r};var i=function(t){if(!(0,o.default)(t))throw TypeError("Invalid UUID");return parseInt(t.slice(14,15),16)};e.default=i},72505(t,e,n){t.exports=n(18015)},35592(t,e,n){"use strict";var r=n(9516),o=n(7522),i=n(33948),a=n(79106),s=n(99615),l=n(62012),c=n(64202),d=n(47763),p=n(96987),h=n(31928);t.exports=function(t){return new Promise(function(e,n){var u,f=t.data,m=t.headers,g=t.responseType;function b(){t.cancelToken&&t.cancelToken.unsubscribe(u),t.signal&&t.signal.removeEventListener("abort",u)}r.isFormData(f)&&delete m["Content-Type"];var y=new XMLHttpRequest;if(t.auth){var w=t.auth.username||"",A=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";m.Authorization="Basic "+btoa(w+":"+A)}var x=s(t.baseURL,t.url);function _(){if(y){var r="getAllResponseHeaders"in y?l(y.getAllResponseHeaders()):null,i={data:g&&"text"!==g&&"json"!==g?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:r,config:t,request:y};o(function(t){e(t),b()},function(t){n(t),b()},i),y=null}}if(y.open(t.method.toUpperCase(),a(x,t.params,t.paramsSerializer),!0),y.timeout=t.timeout,"onloadend"in y?y.onloadend=_:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(_)},y.onabort=function(){y&&(n(d("Request aborted",t,"ECONNABORTED",y)),y=null)},y.onerror=function(){n(d("Network Error",t,null,y)),y=null},y.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",r=t.transitional||p.transitional;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(d(e,t,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),y=null},r.isStandardBrowserEnv()){var v=(t.withCredentials||c(x))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;v&&(m[t.xsrfHeaderName]=v)}"setRequestHeader"in y&&r.forEach(m,function(t,e){void 0===f&&"content-type"===e.toLowerCase()?delete m[e]:y.setRequestHeader(e,t)}),r.isUndefined(t.withCredentials)||(y.withCredentials=!!t.withCredentials),g&&"json"!==g&&(y.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&y.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(u=function(t){y&&(n(!t||t&&t.type?new h("canceled"):t),y.abort(),y=null)},t.cancelToken&&t.cancelToken.subscribe(u),t.signal&&(t.signal.aborted?u():t.signal.addEventListener("abort",u))),f||(f=null),y.send(f)})}},18015(t,e,n){"use strict";var r=n(9516),o=n(69012),i=n(35155),a=n(85343);var s=function t(e){var n=new i(e),s=o(i.prototype.request,n);return r.extend(s,i.prototype,n),r.extend(s,n),s.create=function(n){return t(a(e,n))},s}(n(96987));s.Axios=i,s.Cancel=n(31928),s.CancelToken=n(3191),s.isCancel=n(93864),s.VERSION=n(49641).version,s.all=function(t){return Promise.all(t)},s.spread=n(17980),s.isAxiosError=n(45019),t.exports=s,t.exports.default=s},31928(t){"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},3191(t,e,n){"use strict";var r=n(31928);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var n=this;this.promise.then(function(t){if(n._listeners){var e,r=n._listeners.length;for(e=0;e<r;e++)n._listeners[e](t);n._listeners=null}}),this.promise.then=function(t){var e,r=new Promise(function(t){n.subscribe(t),e=t}).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t(function(t){n.reason||(n.reason=new r(t),e(n.reason))})}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},o.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},o.source=function(){var t;return{token:new o(function(e){t=e}),cancel:t}},t.exports=o},93864(t){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},35155(t,e,n){"use strict";var r=n(9516),o=n(79106),i=n(83471),a=n(64490),s=n(85343),l=n(34841),c=l.validators;function d(t){this.defaults=t,this.interceptors={request:new i,response:new i}}d.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&l.assertOptions(e,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,n.unshift(e.fulfilled,e.rejected))});var o,i=[];if(this.interceptors.response.forEach(function(t){i.push(t.fulfilled,t.rejected)}),!r){var d=[a,void 0];for(Array.prototype.unshift.apply(d,n),d=d.concat(i),o=Promise.resolve(t);d.length;)o=o.then(d.shift(),d.shift());return o}for(var p=t;n.length;){var h=n.shift(),u=n.shift();try{p=h(p)}catch(t){u(t);break}}try{o=a(p)}catch(t){return Promise.reject(t)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},d.prototype.getUri=function(t){return t=s(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],function(t){d.prototype[t]=function(e,n){return this.request(s(n||{},{method:t,url:e,data:(n||{}).data}))}}),r.forEach(["post","put","patch"],function(t){d.prototype[t]=function(e,n,r){return this.request(s(r||{},{method:t,url:e,data:n}))}}),t.exports=d},83471(t,e,n){"use strict";var r=n(9516);function o(){this.handlers=[]}o.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=o},99615(t,e,n){"use strict";var r=n(29137),o=n(84680);t.exports=function(t,e){return t&&!r(e)?o(t,e):e}},47763(t,e,n){"use strict";var r=n(5449);t.exports=function(t,e,n,o,i){var a=new Error(t);return r(a,e,n,o,i)}},64490(t,e,n){"use strict";var r=n(9516),o=n(82881),i=n(93864),a=n(96987),s=n(31928);function l(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new s("canceled")}t.exports=function(t){return l(t),t.headers=t.headers||{},t.data=o.call(t,t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||a.adapter)(t).then(function(e){return l(t),e.data=o.call(t,e.data,e.headers,t.transformResponse),e},function(e){return i(e)||(l(t),e&&e.response&&(e.response.data=o.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},5449(t){"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t}},85343(t,e,n){"use strict";var r=n(9516);t.exports=function(t,e){e=e||{};var n={};function o(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function i(n){return r.isUndefined(e[n])?r.isUndefined(t[n])?void 0:o(void 0,t[n]):o(t[n],e[n])}function a(t){if(!r.isUndefined(e[t]))return o(void 0,e[t])}function s(n){return r.isUndefined(e[n])?r.isUndefined(t[n])?void 0:o(void 0,t[n]):o(void 0,e[n])}function l(n){return n in e?o(t[n],e[n]):n in t?o(void 0,t[n]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return r.forEach(Object.keys(t).concat(Object.keys(e)),function(t){var e=c[t]||i,o=e(t);r.isUndefined(o)&&e!==l||(n[t]=o)}),n}},7522(t,e,n){"use strict";var r=n(47763);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},82881(t,e,n){"use strict";var r=n(9516),o=n(96987);t.exports=function(t,e,n){var i=this||o;return r.forEach(n,function(n){t=n.call(i,t,e)}),t}},96987(t,e,n){"use strict";var r=n(9516),o=n(7018),i=n(5449),a={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var l,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(l=n(35592)),l),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)||e&&"application/json"===e["Content-Type"]?(s(e,"application/json"),function(t,e,n){if(r.isString(t))try{return(e||JSON.parse)(t),r.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||c.transitional,n=e&&e.silentJSONParsing,o=e&&e.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(a){if("SyntaxError"===t.name)throw i(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],function(t){c.headers[t]={}}),r.forEach(["post","put","patch"],function(t){c.headers[t]=r.merge(a)}),t.exports=c},49641(t){t.exports={version:"0.24.0"}},69012(t){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},79106(t,e,n){"use strict";var r=n(9516);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(r.isURLSearchParams(e))i=e.toString();else{var a=[];r.forEach(e,function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(o(e)+"="+o(t))}))}),i=a.join("&")}if(i){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},84680(t){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},33948(t,e,n){"use strict";var r=n(9516);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,i,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},29137(t){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},45019(t){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},64202(t,e,n){"use strict";var r=n(9516);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},7018(t,e,n){"use strict";var r=n(9516);t.exports=function(t,e){r.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})}},62012(t,e,n){"use strict";var r=n(9516),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,i,a={};return t?(r.forEach(t.split("\n"),function(t){if(i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e){if(a[e]&&o.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}}),a):a}},17980(t){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},34841(t,e,n){"use strict";var r=n(49641).version,o={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){o[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var i={};o.transitional=function(t,e,n){function o(t,e){return"[Axios v"+r+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,r,a){if(!1===t)throw new Error(o(r," has been removed"+(e?" in "+e:"")));return e&&!i[r]&&(i[r]=!0,console.warn(o(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,a)}},t.exports={assertOptions:function(t,e,n){if("object"!=typeof t)throw new TypeError("options must be an object");for(var r=Object.keys(t),o=r.length;o-- >0;){var i=r[o],a=e[i];if(a){var s=t[i],l=void 0===s||a(s,i,t);if(!0!==l)throw new TypeError("option "+i+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},9516(t,e,n){"use strict";var r=n(69012),o=Object.prototype.toString;function i(t){return"[object Array]"===o.call(t)}function a(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function l(t){if("[object Object]"!==o.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function c(t){return"[object Function]"===o.call(t)}function d(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:i,isArrayBuffer:function(t){return"[object ArrayBuffer]"===o.call(t)},isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isPlainObject:l,isUndefined:a,isDate:function(t){return"[object Date]"===o.call(t)},isFile:function(t){return"[object File]"===o.call(t)},isBlob:function(t){return"[object Blob]"===o.call(t)},isFunction:c,isStream:function(t){return s(t)&&c(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:d,merge:function t(){var e={};function n(n,r){l(e[r])&&l(n)?e[r]=t(e[r],n):l(n)?e[r]=t({},n):i(n)?e[r]=n.slice():e[r]=n}for(var r=0,o=arguments.length;r<o;r++)d(arguments[r],n);return e},extend:function(t,e,n){return d(e,function(e,o){t[o]=n&&"function"==typeof e?r(e,n):e}),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},4982(t,e,n){"use strict";var r=n(27368),o=n(79818),i=n(21026),a=n(528),s=n(68989),l=n(77575),c=n(55968),d=n(55387),p=n(56815),h=n(56227),u=n(19543),f=n(52672),m=n(31189),g=n(49228),b=n(68502),y=n(39334),w=n(52730),A=n(27300),x=o("SharedArrayBuffer.prototype.byteLength",!0),_=o("Date.prototype.getTime"),v=Object.getPrototypeOf,k=o("Object.prototype.toString"),C=a("%Set%",!0),E=o("Map.prototype.has",!0),S=o("Map.prototype.get",!0),M=o("Map.prototype.size",!0),B=o("Set.prototype.add",!0),T=o("Set.prototype.delete",!0),L=o("Set.prototype.has",!0),O=o("Set.prototype.size",!0);function I(t,e,n,r){for(var o,i=s(t);(o=i.next())&&!o.done;)if(P(e,o.value,n,r))return T(t,o.value),!0;return!1}function N(t){return void 0===t?null:"object"!=typeof t?"symbol"!=typeof t&&("string"!=typeof t&&"number"!=typeof t||+t==+t):void 0}function R(t,e,n,o,i,a){var s=N(n);if(null!=s)return s;var l=S(e,s),c=r({},i,{strict:!1});return!(void 0===l&&!E(e,s)||!P(o,l,c,a))&&(!E(t,s)&&P(o,l,c,a))}function z(t,e,n){var r=N(n);return null!=r?r:L(e,r)&&!L(t,r)}function H(t,e,n,r,o,i){for(var a,l,c=s(t);(a=c.next())&&!a.done;)if(P(n,l=a.value,o,i)&&P(r,S(e,l),o,i))return T(t,l),!0;return!1}function P(t,e,n,o){var a=n||{};if(a.strict?c(t,e):t===e)return!0;if(b(t)!==b(e))return!1;if(!t||!e||"object"!=typeof t&&"object"!=typeof e)return a.strict?c(t,e):t==e;var l,T=o.has(t),N=o.has(e);if(T&&N){if(o.get(t)===o.get(e))return!0}else l={};return T||o.set(t,l),N||o.set(e,l),function(t,e,n,o){var a,l;if(typeof t!=typeof e)return!1;if(null==t||null==e)return!1;if(k(t)!==k(e))return!1;if(d(t)!==d(e))return!1;var c=p(t),b=p(e);if(c!==b)return!1;var T=t instanceof Error,N=e instanceof Error;if(T!==N)return!1;if((T||N)&&(t.name!==e.name||t.message!==e.message))return!1;var $=f(t),j=f(e);if($!==j)return!1;if(($||j)&&(t.source!==e.source||i(t)!==i(e)))return!1;var F=u(t),U=u(e);if(F!==U)return!1;if((F||U)&&_(t)!==_(e))return!1;if(n.strict&&v&&v(t)!==v(e))return!1;var q=w(t),W=w(e);if(q!==W)return!1;if(q||W){if(t.length!==e.length)return!1;for(a=0;a<t.length;a++)if(t[a]!==e[a])return!1;return!0}var V=D(t),Y=D(e);if(V!==Y)return!1;if(V||Y){if(t.length!==e.length)return!1;for(a=0;a<t.length;a++)if(t[a]!==e[a])return!1;return!0}var X=h(t),Z=h(e);if(X!==Z)return!1;if(X||Z)return A(t)===A(e)&&("function"==typeof Uint8Array&&P(new Uint8Array(t),new Uint8Array(e),n,o));var K=m(t),J=m(e);if(K!==J)return!1;if(K||J)return x(t)===x(e)&&("function"==typeof Uint8Array&&P(new Uint8Array(t),new Uint8Array(e),n,o));if(typeof t!=typeof e)return!1;var G=g(t),Q=g(e);if(G.length!==Q.length)return!1;for(G.sort(),Q.sort(),a=G.length-1;a>=0;a--)if(G[a]!=Q[a])return!1;for(a=G.length-1;a>=0;a--)if(!P(t[l=G[a]],e[l],n,o))return!1;var tt=y(t),et=y(e);if(tt!==et)return!1;if("Set"===tt||"Set"===et)return function(t,e,n,r){if(O(t)!==O(e))return!1;var o,i,a,l=s(t),c=s(e);for(;(o=l.next())&&!o.done;)if(o.value&&"object"==typeof o.value)a||(a=new C),B(a,o.value);else if(!L(e,o.value)){if(n.strict)return!1;if(!z(t,e,o.value))return!1;a||(a=new C),B(a,o.value)}if(a){for(;(i=c.next())&&!i.done;)if(i.value&&"object"==typeof i.value){if(!I(a,i.value,n.strict,r))return!1}else if(!n.strict&&!L(t,i.value)&&!I(a,i.value,n.strict,r))return!1;return 0===O(a)}return!0}(t,e,n,o);if("Map"===tt)return function(t,e,n,o){if(M(t)!==M(e))return!1;var i,a,l,c,d,p,h=s(t),u=s(e);for(;(i=h.next())&&!i.done;)if(c=i.value[0],d=i.value[1],c&&"object"==typeof c)l||(l=new C),B(l,c);else if(void 0===(p=S(e,c))&&!E(e,c)||!P(d,p,n,o)){if(n.strict)return!1;if(!R(t,e,c,d,n,o))return!1;l||(l=new C),B(l,c)}if(l){for(;(a=u.next())&&!a.done;)if(c=a.value[0],p=a.value[1],c&&"object"==typeof c){if(!H(l,t,c,p,n,o))return!1}else if(!(n.strict||t.has(c)&&P(S(t,c),p,n,o)||H(l,t,c,p,r({},n,{strict:!1}),o)))return!1;return 0===O(l)}return!0}(t,e,n,o);return!0}(t,e,a,o)}function D(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length)&&("function"==typeof t.copy&&"function"==typeof t.slice&&(!(t.length>0&&"number"!=typeof t[0])&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))))}t.exports=function(t,e,n){return P(t,e,n,l())}},54224(t,e,n){var r={"./cdtr-aurora-preset":[55379,[5379]],"./cdtr-aurora-preset/":[55379,[5379]],"./cdtr-aurora-preset/index":[55379,[5379]],"./cdtr-aurora-preset/index.js":[55379,[5379]],"./cdtr-background-video":[44475,[5284,4475]],"./cdtr-background-video/":[44475,[5284,4475]],"./cdtr-background-video/index":[44475,[5284,4475]],"./cdtr-background-video/index.js":[44475,[5284,4475]],"./cdtr-glows-preset":[85391,[5391]],"./cdtr-glows-preset/":[85391,[5391]],"./cdtr-glows-preset/index":[85391,[5391]],"./cdtr-glows-preset/index.js":[85391,[5391]],"./cdtr-halo-preset":[40353,[353]],"./cdtr-halo-preset/":[40353,[353]],"./cdtr-halo-preset/index":[40353,[353]],"./cdtr-halo-preset/index.js":[40353,[353]],"./cdtr-images-preset":[68141,[8141]],"./cdtr-images-preset/":[68141,[8141]],"./cdtr-images-preset/index":[68141,[8141]],"./cdtr-images-preset/index.js":[68141,[8141]],"./cdtr-particlesjs":[70211,[211]],"./cdtr-particlesjs/":[70211,[211]],"./cdtr-particlesjs/index":[70211,[211]],"./cdtr-particlesjs/index.js":[70211,[211]]};function o(t){try{if(!n.o(r,t))return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}catch(t){return Promise.reject(t)}var e=r[t],o=e[0];return Promise.all(e[1].map(n.e)).then(()=>n(o))}o.keys=()=>Object.keys(r),o.id=54224,t.exports=o},604(t,e,n){var r={"./cdtr-aurora-preset":[55379,[5379]],"./cdtr-aurora-preset/":[55379,[5379]],"./cdtr-aurora-preset/index":[55379,[5379]],"./cdtr-aurora-preset/index.js":[55379,[5379]],"./cdtr-background-video":[44475,[5284,4475]],"./cdtr-background-video/":[44475,[5284,4475]],"./cdtr-background-video/index":[44475,[5284,4475]],"./cdtr-background-video/index.js":[44475,[5284,4475]],"./cdtr-glows-preset":[85391,[5391]],"./cdtr-glows-preset/":[85391,[5391]],"./cdtr-glows-preset/index":[85391,[5391]],"./cdtr-glows-preset/index.js":[85391,[5391]],"./cdtr-halo-preset":[40353,[353]],"./cdtr-halo-preset/":[40353,[353]],"./cdtr-halo-preset/index":[40353,[353]],"./cdtr-halo-preset/index.js":[40353,[353]],"./cdtr-images-preset":[68141,[8141]],"./cdtr-images-preset/":[68141,[8141]],"./cdtr-images-preset/index":[68141,[8141]],"./cdtr-images-preset/index.js":[68141,[8141]],"./cdtr-particlesjs":[70211,[211]],"./cdtr-particlesjs/":[70211,[211]],"./cdtr-particlesjs/index":[70211,[211]],"./cdtr-particlesjs/index.js":[70211,[211]]};function o(t){try{if(!n.o(r,t))return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}catch(t){return Promise.reject(t)}var e=r[t],o=e[0];return Promise.all(e[1].map(n.e)).then(()=>n(o))}o.keys=()=>Object.keys(r),o.id=604,t.exports=o},50629(t,e,n){var r={"./401":[9250,[9250]],"./401.js":[9250,[9250]],"./404":[77997,[7997]],"./404.js":[77997,[7997]],"./500":[64762,[4762]],"./500.js":[64762,[4762]],"./504":[91334,[1334]],"./504.js":[91334,[1334]]};function o(t){try{if(!n.o(r,t))return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}catch(t){return Promise.reject(t)}var e=r[t],o=e[0];return n.e(e[1][0]).then(()=>n(o))}o.keys=()=>Object.keys(r),o.id=50629,t.exports=o},56489(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg=="},59224(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+"},86973(){},14834(t,e,n){"use strict";var r=n(69501),o="undefined"==typeof globalThis?n.g:globalThis;t.exports=function(){for(var t=[],e=0;e<r.length;e++)"function"==typeof o[r[e]]&&(t[t.length]=r[e]);return t}},47764(t,e,n){"use strict";function r(t,e){return function(){return t.apply(e,arguments)}}const{toString:o}=Object.prototype,{getPrototypeOf:i}=Object,{iterator:a,toStringTag:s}=Symbol,l=(c=Object.create(null),t=>{const e=o.call(t);return c[e]||(c[e]=e.slice(8,-1).toLowerCase())});var c;const d=t=>(t=t.toLowerCase(),e=>l(e)===t),p=t=>e=>typeof e===t,{isArray:h}=Array,u=p("undefined");function f(t){return null!==t&&!u(t)&&null!==t.constructor&&!u(t.constructor)&&b(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const m=d("ArrayBuffer");const g=p("string"),b=p("function"),y=p("number"),w=t=>null!==t&&"object"==typeof t,A=t=>{if("object"!==l(t))return!1;const e=i(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||s in t||a in t)},x=d("Date"),_=d("File"),v=d("Blob"),k=d("FileList");const C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{},E=void 0!==C.FormData?C.FormData:void 0,S=d("URLSearchParams"),[M,B,T,L]=["ReadableStream","Request","Response","Headers"].map(d);function O(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,o;if("object"!=typeof t&&(t=[t]),h(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{if(f(t))return;const o=n?Object.getOwnPropertyNames(t):Object.keys(t),i=o.length;let a;for(r=0;r<i;r++)a=o[r],e.call(null,t[a],a,t)}}function I(t,e){if(f(t))return null;e=e.toLowerCase();const n=Object.keys(t);let r,o=n.length;for(;o-- >0;)if(r=n[o],e===r.toLowerCase())return r;return null}const N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,R=t=>!u(t)&&t!==N;const z=(H="undefined"!=typeof Uint8Array&&i(Uint8Array),t=>H&&t instanceof H);var H;const P=d("HTMLFormElement"),D=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),$=d("RegExp"),j=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};O(n,(n,o)=>{let i;!1!==(i=e(n,o,t))&&(r[o]=i||n)}),Object.defineProperties(t,r)};const F=d("AsyncFunction"),U=(q="function"==typeof setImmediate,W=b(N.postMessage),q?setImmediate:W?(V=`axios@${Math.random()}`,Y=[],N.addEventListener("message",({source:t,data:e})=>{t===N&&e===V&&Y.length&&Y.shift()()},!1),t=>{Y.push(t),N.postMessage(V,"*")}):t=>setTimeout(t));var q,W,V,Y;const X="undefined"!=typeof queueMicrotask?queueMicrotask.bind(N):"undefined"!=typeof process&&process.nextTick||U;var Z={isArray:h,isArrayBuffer:m,isBuffer:f,isFormData:t=>{let e;return t&&(E&&t instanceof E||b(t.append)&&("formdata"===(e=l(t))||"object"===e&&b(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&m(t.buffer),e},isString:g,isNumber:y,isBoolean:t=>!0===t||!1===t,isObject:w,isPlainObject:A,isEmptyObject:t=>{if(!w(t)||f(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(t){return!1}},isReadableStream:M,isRequest:B,isResponse:T,isHeaders:L,isUndefined:u,isDate:x,isFile:_,isReactNativeBlob:t=>!(!t||void 0===t.uri),isReactNative:t=>t&&void 0!==t.getParts,isBlob:v,isRegExp:$,isFunction:b,isStream:t=>w(t)&&b(t.pipe),isURLSearchParams:S,isTypedArray:z,isFileList:k,forEach:O,merge:function t(){const{caseless:e,skipUndefined:n}=R(this)&&this||{},r={},o=(o,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const a=e&&I(r,i)||i;A(r[a])&&A(o)?r[a]=t(r[a],o):A(o)?r[a]=t({},o):h(o)?r[a]=o.slice():n&&u(o)||(r[a]=o)};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&O(arguments[t],o);return r},extend:(t,e,n,{allOwnKeys:o}={})=>(O(e,(e,o)=>{n&&b(e)?Object.defineProperty(t,o,{value:r(e,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,o,{value:e,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let o,a,s;const l={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),a=o.length;a-- >0;)s=o[a],r&&!r(s,t,e)||l[s]||(e[s]=t[s],l[s]=!0);t=!1!==n&&i(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:l,kindOfTest:d,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(h(t))return t;let e=t.length;if(!y(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[a]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:P,hasOwnProperty:D,hasOwnProp:D,reduceDescriptors:j,freezeMethods:t=>{j(t,(e,n)=>{if(b(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];b(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach(t=>{n[t]=!0})};return h(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,n){return e.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:I,global:N,isContextDefined:R,isSpecCompliantForm:function(t){return!!(t&&b(t.append)&&"FormData"===t[s]&&t[a])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(w(t)){if(e.indexOf(t)>=0)return;if(f(t))return t;if(!("toJSON"in t)){e[r]=t;const o=h(t)?[]:{};return O(t,(t,e)=>{const i=n(t,r+1);!u(i)&&(o[e]=i)}),e[r]=void 0,o}}return t};return n(t,0)},isAsyncFn:F,isThenable:t=>t&&(w(t)||b(t))&&b(t.then)&&b(t.catch),setImmediate:U,asap:X,isIterable:t=>null!=t&&b(t[a])};class K extends Error{static from(t,e,n,r,o,i){const a=new K(t.message,e||t.code,n,r,o);return a.cause=t,a.name=t.name,null!=t.status&&null==a.status&&(a.status=t.status),i&&Object.assign(a,i),a}constructor(t,e,n,r,o){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Z.toJSONObject(this.config),code:this.code,status:this.status}}}K.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",K.ERR_BAD_OPTION="ERR_BAD_OPTION",K.ECONNABORTED="ECONNABORTED",K.ETIMEDOUT="ETIMEDOUT",K.ERR_NETWORK="ERR_NETWORK",K.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",K.ERR_DEPRECATED="ERR_DEPRECATED",K.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",K.ERR_BAD_REQUEST="ERR_BAD_REQUEST",K.ERR_CANCELED="ERR_CANCELED",K.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",K.ERR_INVALID_URL="ERR_INVALID_URL";var J=K;function G(t){return Z.isPlainObject(t)||Z.isArray(t)}function Q(t){return Z.endsWith(t,"[]")?t.slice(0,-2):t}function tt(t,e,n){return t?t.concat(e).map(function(t,e){return t=Q(t),!n&&e?"["+t+"]":t}).join(n?".":""):e}const et=Z.toFlatObject(Z,{},null,function(t){return/^is[A-Z]/.test(t)});function nt(t,e,n){if(!Z.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const r=(n=Z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,e){return!Z.isUndefined(e[t])})).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Z.isSpecCompliantForm(e);if(!Z.isFunction(o))throw new TypeError("visitor must be a function");function l(t){if(null===t)return"";if(Z.isDate(t))return t.toISOString();if(Z.isBoolean(t))return t.toString();if(!s&&Z.isBlob(t))throw new J("Blob is not supported. Use a Buffer instead.");return Z.isArrayBuffer(t)||Z.isTypedArray(t)?s&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function c(t,n,o){let s=t;if(Z.isReactNative(e)&&Z.isReactNativeBlob(t))return e.append(tt(o,n,i),l(t)),!1;if(t&&!o&&"object"==typeof t)if(Z.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(Z.isArray(t)&&function(t){return Z.isArray(t)&&!t.some(G)}(t)||(Z.isFileList(t)||Z.endsWith(n,"[]"))&&(s=Z.toArray(t)))return n=Q(n),s.forEach(function(t,r){!Z.isUndefined(t)&&null!==t&&e.append(!0===a?tt([n],r,i):null===a?n:n+"[]",l(t))}),!1;return!!G(t)||(e.append(tt(o,n,i),l(t)),!1)}const d=[],p=Object.assign(et,{defaultVisitor:c,convertValue:l,isVisitable:G});if(!Z.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!Z.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+r.join("."));d.push(n),Z.forEach(n,function(n,i){!0===(!(Z.isUndefined(n)||null===n)&&o.call(e,n,Z.isString(i)?i.trim():i,r,p))&&t(n,r?r.concat(i):[i])}),d.pop()}}(t),e}function rt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function ot(t,e){this._pairs=[],t&&nt(t,this,e)}const it=ot.prototype;function at(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function st(t,e,n){if(!e)return t;const r=n&&n.encode||at,o=Z.isFunction(n)?{serialize:n}:n,i=o&&o.serialize;let a;if(a=i?i(e,o):Z.isURLSearchParams(e)?e.toString():new ot(e,o).toString(r),a){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+a}return t}it.append=function(t,e){this._pairs.push([t,e])},it.toString=function(t){const e=t?function(e){return t.call(this,e,rt)}:rt;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};var lt=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Z.forEach(this.handlers,function(e){null!==e&&t(e)})}},ct={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},dt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ot,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const pt="undefined"!=typeof window&&"undefined"!=typeof document,ht="object"==typeof navigator&&navigator||void 0,ut=pt&&(!ht||["ReactNative","NativeScript","NS"].indexOf(ht.product)<0),ft="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,mt=pt&&window.location.href||"http://localhost";var gt={...Object.freeze({__proto__:null,hasBrowserEnv:pt,hasStandardBrowserWebWorkerEnv:ft,hasStandardBrowserEnv:ut,navigator:ht,origin:mt}),...dt};function bt(t){function e(t,n,r,o){let i=t[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=t.length;if(i=!i&&Z.isArray(r)?r.length:i,s)return Z.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&Z.isObject(r[i])||(r[i]=[]);return e(t,n,r[i],o)&&Z.isArray(r[i])&&(r[i]=function(t){const e={},n=Object.keys(t);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],e[i]=t[i];return e}(r[i])),!a}if(Z.isFormData(t)&&Z.isFunction(t.entries)){const n={};return Z.forEachEntry(t,(t,r)=>{e(function(t){return Z.matchAll(/\w+|\[(\w*)]/g,t).map(t=>"[]"===t[0]?"":t[1]||t[0])}(t),r,n,0)}),n}return null}const yt={transitional:ct,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,o=Z.isObject(t);o&&Z.isHTMLForm(t)&&(t=new FormData(t));if(Z.isFormData(t))return r?JSON.stringify(bt(t)):t;if(Z.isArrayBuffer(t)||Z.isBuffer(t)||Z.isStream(t)||Z.isFile(t)||Z.isBlob(t)||Z.isReadableStream(t))return t;if(Z.isArrayBufferView(t))return t.buffer;if(Z.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return nt(t,new gt.classes.URLSearchParams,{visitor:function(t,e,n,r){return gt.isNode&&Z.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...e})}(t,this.formSerializer).toString();if((i=Z.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return nt(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||r?(e.setContentType("application/json",!1),function(t,e,n){if(Z.isString(t))try{return(e||JSON.parse)(t),Z.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||yt.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(Z.isResponse(t)||Z.isReadableStream(t))return t;if(t&&Z.isString(t)&&(n&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t,this.parseReviver)}catch(t){if(n){if("SyntaxError"===t.name)throw J.from(t,J.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gt.classes.FormData,Blob:gt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Z.forEach(["delete","get","head","post","put","patch"],t=>{yt.headers[t]={}});var wt=yt;const At=Z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const xt=Symbol("internals");function _t(t){return t&&String(t).trim().toLowerCase()}function vt(t){return!1===t||null==t?t:Z.isArray(t)?t.map(vt):String(t)}function kt(t,e,n,r,o){return Z.isFunction(r)?r.call(this,e,n):(o&&(e=n),Z.isString(e)?Z.isString(r)?-1!==e.indexOf(r):Z.isRegExp(r)?r.test(e):void 0:void 0)}class Ct{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function o(t,e,n){const o=_t(e);if(!o)throw new Error("header name must be a non-empty string");const i=Z.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||e]=vt(t))}const i=(t,e)=>Z.forEach(t,(t,n)=>o(t,n,e));if(Z.isPlainObject(t)||t instanceof this.constructor)i(t,e);else if(Z.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))i((t=>{const e={};let n,r,o;return t&&t.split("\n").forEach(function(t){o=t.indexOf(":"),n=t.substring(0,o).trim().toLowerCase(),r=t.substring(o+1).trim(),!n||e[n]&&At[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e})(t),e);else if(Z.isObject(t)&&Z.isIterable(t)){let n,r,o={};for(const e of t){if(!Z.isArray(e))throw TypeError("Object iterator must return a key-value pair");o[r=e[0]]=(n=o[r])?Z.isArray(n)?[...n,e[1]]:[n,e[1]]:e[1]}i(o,e)}else null!=t&&o(e,t,n);return this}get(t,e){if(t=_t(t)){const n=Z.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(Z.isFunction(e))return e.call(this,t,n);if(Z.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=_t(t)){const n=Z.findKey(this,t);return!(!n||void 0===this[n]||e&&!kt(0,this[n],n,e))}return!1}delete(t,e){const n=this;let r=!1;function o(t){if(t=_t(t)){const o=Z.findKey(n,t);!o||e&&!kt(0,n[o],o,e)||(delete n[o],r=!0)}}return Z.isArray(t)?t.forEach(o):o(t),r}clear(t){const e=Object.keys(this);let n=e.length,r=!1;for(;n--;){const o=e[n];t&&!kt(0,this[o],o,t,!0)||(delete this[o],r=!0)}return r}normalize(t){const e=this,n={};return Z.forEach(this,(r,o)=>{const i=Z.findKey(n,o);if(i)return e[i]=vt(r),void delete e[o];const a=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,n)=>e.toUpperCase()+n)}(o):String(o).trim();a!==o&&delete e[o],e[a]=vt(r),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return Z.forEach(this,(n,r)=>{null!=n&&!1!==n&&(e[r]=t&&Z.isArray(n)?n.join(", "):n)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach(t=>n.set(t)),n}static accessor(t){const e=(this[xt]=this[xt]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=_t(t);e[r]||(!function(t,e){const n=Z.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(t,n,o){return this[r].call(this,e,t,n,o)},configurable:!0})})}(n,t),e[r]=!0)}return Z.isArray(t)?t.forEach(r):r(t),this}}Ct.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Z.reduceDescriptors(Ct.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}}),Z.freezeMethods(Ct);var Et=Ct;function St(t,e){const n=this||wt,r=e||n,o=Et.from(r.headers);let i=r.data;return Z.forEach(t,function(t){i=t.call(n,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function Mt(t){return!(!t||!t.__CANCEL__)}var Bt=class extends J{constructor(t,e,n){super(null==t?"canceled":t,J.ERR_CANCELED,e,n),this.name="CanceledError",this.__CANCEL__=!0}};function Tt(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new J("Request failed with status code "+n.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}const Lt=(t,e,n=3)=>{let r=0;const o=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o,i=0,a=0;return e=void 0!==e?e:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let d=a,p=0;for(;d!==i;)p+=n[d++],d%=t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),l-o<e)return;const h=c&&l-c;return h?Math.round(1e3*p/h):void 0}}(50,250);return function(t,e){let n,r,o=0,i=1e3/e;const a=(e,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),t(...e)};return[(...t)=>{const e=Date.now(),s=e-o;s>=i?a(t,e):(n=t,r||(r=setTimeout(()=>{r=null,a(n)},i-s)))},()=>n&&a(n)]}(n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;t({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[e?"download":"upload"]:!0})},n)},Ot=(t,e)=>{const n=null!=t;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},It=t=>(...e)=>Z.asap(()=>t(...e));var Nt=gt.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,gt.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(gt.origin),gt.navigator&&/(msie|trident)/i.test(gt.navigator.userAgent)):()=>!0,Rt=gt.hasStandardBrowserEnv?{write(t,e,n,r,o,i,a){if("undefined"==typeof document)return;const s=[`${t}=${encodeURIComponent(e)}`];Z.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),Z.isString(r)&&s.push(`path=${r}`),Z.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),Z.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(t){if("undefined"==typeof document)return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function zt(t,e,n){let r=!("string"==typeof(o=e)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));var o;return t&&(r||0==n)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const Ht=t=>t instanceof Et?{...t}:t;function Pt(t,e){e=e||{};const n={};function r(t,e,n,r){return Z.isPlainObject(t)&&Z.isPlainObject(e)?Z.merge.call({caseless:r},t,e):Z.isPlainObject(e)?Z.merge({},e):Z.isArray(e)?e.slice():e}function o(t,e,n,o){return Z.isUndefined(e)?Z.isUndefined(t)?void 0:r(void 0,t,0,o):r(t,e,0,o)}function i(t,e){if(!Z.isUndefined(e))return r(void 0,e)}function a(t,e){return Z.isUndefined(e)?Z.isUndefined(t)?void 0:r(void 0,t):r(void 0,e)}function s(n,o,i){return i in e?r(n,o):i in t?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(t,e,n)=>o(Ht(t),Ht(e),0,!0)};return Z.forEach(Object.keys({...t,...e}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const i=Z.hasOwnProp(l,r)?l[r]:o,a=i(t[r],e[r],r);Z.isUndefined(a)&&i!==s||(n[r]=a)}),n}var Dt=t=>{const e=Pt({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=e;if(e.headers=a=Et.from(a),e.url=st(zt(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),Z.isFormData(n))if(gt.hasStandardBrowserEnv||gt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(Z.isFunction(n.getHeaders)){const t=n.getHeaders(),e=["content-type","content-length"];Object.entries(t).forEach(([t,n])=>{e.includes(t.toLowerCase())&&a.set(t,n)})}if(gt.hasStandardBrowserEnv&&(r&&Z.isFunction(r)&&(r=r(e)),r||!1!==r&&Nt(e.url))){const t=o&&i&&Rt.read(i);t&&a.set(o,t)}return e};var $t="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise(function(e,n){const r=Dt(t);let o=r.data;const i=Et.from(r.headers).normalize();let a,s,l,c,d,{responseType:p,onUploadProgress:h,onDownloadProgress:u}=r;function f(){c&&c(),d&&d(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=Et.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Tt(function(t){e(t),f()},function(t){n(t),f()},{data:p&&"text"!==p&&"json"!==p?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:t,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new J("Request aborted",J.ECONNABORTED,t,m)),m=null)},m.onerror=function(e){const r=e&&e.message?e.message:"Network Error",o=new J(r,J.ERR_NETWORK,t,m);o.event=e||null,n(o),m=null},m.ontimeout=function(){let e=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||ct;r.timeoutErrorMessage&&(e=r.timeoutErrorMessage),n(new J(e,o.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,t,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&Z.forEach(i.toJSON(),function(t,e){m.setRequestHeader(e,t)}),Z.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),p&&"json"!==p&&(m.responseType=r.responseType),u&&([l,d]=Lt(u,!0),m.addEventListener("progress",l)),h&&m.upload&&([s,c]=Lt(h),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=e=>{m&&(n(!e||e.type?new Bt(null,t,m):e),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const b=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(r.url);b&&-1===gt.protocols.indexOf(b)?n(new J("Unsupported protocol "+b+":",J.ERR_BAD_REQUEST,t)):m.send(o||null)})};var jt=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let n,r=new AbortController;const o=function(t){if(!n){n=!0,a();const e=t instanceof Error?t:this.reason;r.abort(e instanceof J?e:new Bt(e instanceof Error?e.message:e))}};let i=e&&setTimeout(()=>{i=null,o(new J(`timeout of ${e}ms exceeded`,J.ETIMEDOUT))},e);const a=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach(t=>{t.unsubscribe?t.unsubscribe(o):t.removeEventListener("abort",o)}),t=null)};t.forEach(t=>t.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>Z.asap(a),s}};const Ft=function*(t,e){let n=t.byteLength;if(!e||n<e)return void(yield t);let r,o=0;for(;o<n;)r=o+e,yield t.slice(o,r),o=r},Ut=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const e=t.getReader();try{for(;;){const{done:t,value:n}=await e.read();if(t)break;yield n}}finally{await e.cancel()}},qt=(t,e,n,r)=>{const o=async function*(t,e){for await(const n of Ut(t))yield*Ft(n,e)}(t,e);let i,a=0,s=t=>{i||(i=!0,r&&r(t))};return new ReadableStream({async pull(t){try{const{done:e,value:r}=await o.next();if(e)return s(),void t.close();let i=r.byteLength;if(n){let t=a+=i;n(t)}t.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:t=>(s(t),o.return())},{highWaterMark:2})},{isFunction:Wt}=Z,Vt=(({Request:t,Response:e})=>({Request:t,Response:e}))(Z.global),{ReadableStream:Yt,TextEncoder:Xt}=Z.global,Zt=(t,...e)=>{try{return!!t(...e)}catch(t){return!1}},Kt=t=>{t=Z.merge.call({skipUndefined:!0},Vt,t);const{fetch:e,Request:n,Response:r}=t,o=e?Wt(e):"function"==typeof fetch,i=Wt(n),a=Wt(r);if(!o)return!1;const s=o&&Wt(Yt),l=o&&("function"==typeof Xt?(c=new Xt,t=>c.encode(t)):async t=>new Uint8Array(await new n(t).arrayBuffer()));var c;const d=i&&s&&Zt(()=>{let t=!1;const e=new n(gt.origin,{body:new Yt,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),p=a&&s&&Zt(()=>Z.isReadableStream(new r("").body)),h={stream:p&&(t=>t.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!h[t]&&(h[t]=(e,n)=>{let r=e&&e[t];if(r)return r.call(e);throw new J(`Response type '${t}' is not supported`,J.ERR_NOT_SUPPORT,n)})});const u=async(t,e)=>{const r=Z.toFiniteNumber(t.getContentLength());return null==r?(async t=>{if(null==t)return 0;if(Z.isBlob(t))return t.size;if(Z.isSpecCompliantForm(t)){const e=new n(gt.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return Z.isArrayBufferView(t)||Z.isArrayBuffer(t)?t.byteLength:(Z.isURLSearchParams(t)&&(t+=""),Z.isString(t)?(await l(t)).byteLength:void 0)})(e):r};return async t=>{let{url:o,method:a,data:s,signal:l,cancelToken:c,timeout:f,onDownloadProgress:m,onUploadProgress:g,responseType:b,headers:y,withCredentials:w="same-origin",fetchOptions:A}=Dt(t),x=e||fetch;b=b?(b+"").toLowerCase():"text";let _=jt([l,c&&c.toAbortSignal()],f),v=null;const k=_&&_.unsubscribe&&(()=>{_.unsubscribe()});let C;try{if(g&&d&&"get"!==a&&"head"!==a&&0!==(C=await u(y,s))){let t,e=new n(o,{method:"POST",body:s,duplex:"half"});if(Z.isFormData(s)&&(t=e.headers.get("content-type"))&&y.setContentType(t),e.body){const[t,n]=Ot(C,Lt(It(g)));s=qt(e.body,65536,t,n)}}Z.isString(w)||(w=w?"include":"omit");const e=i&&"credentials"in n.prototype,l={...A,signal:_,method:a.toUpperCase(),headers:y.normalize().toJSON(),body:s,duplex:"half",credentials:e?w:void 0};v=i&&new n(o,l);let c=await(i?x(v,A):x(o,l));const f=p&&("stream"===b||"response"===b);if(p&&(m||f&&k)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=c[e]});const e=Z.toFiniteNumber(c.headers.get("content-length")),[n,o]=m&&Ot(e,Lt(It(m),!0))||[];c=new r(qt(c.body,65536,n,()=>{o&&o(),k&&k()}),t)}b=b||"text";let E=await h[Z.findKey(h,b)||"text"](c,t);return!f&&k&&k(),await new Promise((e,n)=>{Tt(e,n,{data:E,headers:Et.from(c.headers),status:c.status,statusText:c.statusText,config:t,request:v})})}catch(e){if(k&&k(),e&&"TypeError"===e.name&&/Load failed|fetch/i.test(e.message))throw Object.assign(new J("Network Error",J.ERR_NETWORK,t,v,e&&e.response),{cause:e.cause||e});throw J.from(e,e&&e.code,t,v,e&&e.response)}}},Jt=new Map,Gt=t=>{let e=t&&t.env||{};const{fetch:n,Request:r,Response:o}=e,i=[r,o,n];let a,s,l=i.length,c=Jt;for(;l--;)a=i[l],s=c.get(a),void 0===s&&c.set(a,s=l?new Map:Kt(e)),c=s;return s};Gt();const Qt={http:null,xhr:$t,fetch:{get:Gt}};Z.forEach(Qt,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}});const te=t=>`- ${t}`,ee=t=>Z.isFunction(t)||null===t||!1===t;var ne={getAdapter:function(t,e){t=Z.isArray(t)?t:[t];const{length:n}=t;let r,o;const i={};for(let a=0;a<n;a++){let n;if(r=t[a],o=r,!ee(r)&&(o=Qt[(n=String(r)).toLowerCase()],void 0===o))throw new J(`Unknown adapter '${n}'`);if(o&&(Z.isFunction(o)||(o=o.get(e))))break;i[n||"#"+a]=o}if(!o){const t=Object.entries(i).map(([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build"));let e=n?t.length>1?"since :\n"+t.map(te).join("\n"):" "+te(t[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+e,"ERR_NOT_SUPPORT")}return o},adapters:Qt};function re(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Bt(null,t)}function oe(t){re(t),t.headers=Et.from(t.headers),t.data=St.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return ne.getAdapter(t.adapter||wt.adapter,t)(t).then(function(e){return re(t),e.data=St.call(t,t.transformResponse,e),e.headers=Et.from(e.headers),e},function(e){return Mt(e)||(re(t),e&&e.response&&(e.response.data=St.call(t,t.transformResponse,e.response),e.response.headers=Et.from(e.response.headers))),Promise.reject(e)})}const ie="1.13.6",ae={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{ae[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const se={};ae.transitional=function(t,e,n){function r(t,e){return"[Axios v"+ie+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,o,i)=>{if(!1===t)throw new J(r(o," has been removed"+(e?" in "+e:"")),J.ERR_DEPRECATED);return e&&!se[o]&&(se[o]=!0,console.warn(r(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,o,i)}},ae.spelling=function(t){return(e,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};var le={assertOptions:function(t,e,n){if("object"!=typeof t)throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const i=r[o],a=e[i];if(a){const e=t[i],n=void 0===e||a(e,i,t);if(!0!==n)throw new J("option "+i+" must be "+n,J.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new J("Unknown option "+i,J.ERR_BAD_OPTION)}},validators:ae};const ce=le.validators;class de{constructor(t){this.defaults=t||{},this.interceptors={request:new lt,response:new lt}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const n=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?n&&!String(t.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+n):t.stack=n}catch(t){}}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Pt(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:o}=e;void 0!==n&&le.assertOptions(n,{silentJSONParsing:ce.transitional(ce.boolean),forcedJSONParsing:ce.transitional(ce.boolean),clarifyTimeoutError:ce.transitional(ce.boolean),legacyInterceptorReqResOrdering:ce.transitional(ce.boolean)},!1),null!=r&&(Z.isFunction(r)?e.paramsSerializer={serialize:r}:le.assertOptions(r,{encode:ce.function,serialize:ce.function},!0)),void 0!==e.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),le.assertOptions(e,{baseUrl:ce.spelling("baseURL"),withXsrfToken:ce.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=o&&Z.merge(o.common,o[e.method]);o&&Z.forEach(["delete","get","head","post","put","patch","common"],t=>{delete o[t]}),e.headers=Et.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(t){if("function"==typeof t.runWhen&&!1===t.runWhen(e))return;s=s&&t.synchronous;const n=e.transitional||ct;n&&n.legacyInterceptorReqResOrdering?a.unshift(t.fulfilled,t.rejected):a.push(t.fulfilled,t.rejected)});const l=[];let c;this.interceptors.response.forEach(function(t){l.push(t.fulfilled,t.rejected)});let d,p=0;if(!s){const t=[oe.bind(this),void 0];for(t.unshift(...a),t.push(...l),d=t.length,c=Promise.resolve(e);p<d;)c=c.then(t[p++],t[p++]);return c}d=a.length;let h=e;for(;p<d;){const t=a[p++],e=a[p++];try{h=t(h)}catch(t){e.call(this,t);break}}try{c=oe.call(this,h)}catch(t){return Promise.reject(t)}for(p=0,d=l.length;p<d;)c=c.then(l[p++],l[p++]);return c}getUri(t){return st(zt((t=Pt(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls),t.params,t.paramsSerializer)}}Z.forEach(["delete","get","head","options"],function(t){de.prototype[t]=function(e,n){return this.request(Pt(n||{},{method:t,url:e,data:(n||{}).data}))}}),Z.forEach(["post","put","patch"],function(t){function e(e){return function(n,r,o){return this.request(Pt(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}de.prototype[t]=e(),de.prototype[t+"Form"]=e(!0)});var pe=de;class he{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(t){e=t});const n=this;this.promise.then(t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null}),this.promise.then=t=>{let e;const r=new Promise(t=>{n.subscribe(t),e=t}).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t(function(t,r,o){n.reason||(n.reason=new Bt(t,r,o),e(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new he(function(e){t=e}),cancel:t}}}var ue=he;const fe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(fe).forEach(([t,e])=>{fe[e]=t});var me=fe;const ge=function t(e){const n=new pe(e),o=r(pe.prototype.request,n);return Z.extend(o,pe.prototype,n,{allOwnKeys:!0}),Z.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return t(Pt(e,n))},o}(wt);ge.Axios=pe,ge.CanceledError=Bt,ge.CancelToken=ue,ge.isCancel=Mt,ge.VERSION=ie,ge.toFormData=nt,ge.AxiosError=J,ge.Cancel=ge.CanceledError,ge.all=function(t){return Promise.all(t)},ge.spread=function(t){return function(e){return t.apply(null,e)}},ge.isAxiosError=function(t){return Z.isObject(t)&&!0===t.isAxiosError},ge.mergeConfig=Pt,ge.AxiosHeaders=Et,ge.formToJSON=t=>bt(Z.isHTMLForm(t)?new FormData(t):t),ge.getAdapter=ne.getAdapter,ge.HttpStatusCode=me,ge.default=ge,t.exports=ge},68989(t,e,n){"use strict";var r=n(55387),o=n(63693);if(n(53558)()||n(62908)()){var i=Symbol.iterator;t.exports=function(t){return null!=t&&void 0!==t[i]?t[i]():r(t)?Array.prototype[i].call(t):void 0}}else{var a=n(56815),s=n(8120),l=n(528),c=l("%Map%",!0),d=l("%Set%",!0),p=n(79818),h=p("Array.prototype.push"),u=p("String.prototype.charCodeAt"),f=p("String.prototype.slice"),m=function(t){var e=0;return{next:function(){var n,r=e>=t.length;return r||(n=t[e],e+=1),{done:r,value:n}}}},g=function(t,e){if(a(t)||r(t))return m(t);if(s(t)){var n=0;return{next:function(){var e=function(t,e){if(e+1>=t.length)return e+1;var n=u(t,e);if(n<55296||n>56319)return e+1;var r=u(t,e+1);return r<56320||r>57343?e+1:e+2}(t,n),r=f(t,n,e);return n=e,{done:e>t.length,value:r}}}}return e&&void 0!==t["_es6-shim iterator_"]?t["_es6-shim iterator_"]():void 0};if(c||d){var b=n(98009),y=n(2583),w=p("Map.prototype.forEach",!0),A=p("Set.prototype.forEach",!0);if("undefined"==typeof process||!process.versions||!process.versions.node)var x=p("Map.prototype.iterator",!0),_=p("Set.prototype.iterator",!0);var v=p("Map.prototype.@@iterator",!0)||p("Map.prototype._es6-shim iterator_",!0),k=p("Set.prototype.@@iterator",!0)||p("Set.prototype._es6-shim iterator_",!0);t.exports=function(t){return function(t){if(b(t)){if(x)return o(x(t));if(v)return v(t);if(w){var e=[];return w(t,function(t,n){h(e,[n,t])}),m(e)}}if(y(t)){if(_)return o(_(t));if(k)return k(t);if(A){var n=[];return A(t,function(t){h(n,t)}),m(n)}}}(t)||g(t)}}else t.exports=function(t){if(null!=t)return g(t,!0)}}},14523(t){function e(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(n=>{const r=t[n],o=typeof r;"object"!==o&&"function"!==o||Object.isFrozen(r)||e(r)}),t}class n{constructor(t){void 0===t.data&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function o(t,...e){const n=Object.create(null);for(const e in t)n[e]=t[e];return e.forEach(function(t){for(const e in t)n[e]=t[e]}),n}const i=t=>!!t.scope;class a{constructor(t,e){this.buffer="",this.classPrefix=e.classPrefix,t.walk(this)}addText(t){this.buffer+=r(t)}openNode(t){if(!i(t))return;const e=((t,{prefix:e})=>{if(t.startsWith("language:"))return t.replace("language:","language-");if(t.includes(".")){const n=t.split(".");return[`${e}${n.shift()}`,...n.map((t,e)=>`${t}${"_".repeat(e+1)}`)].join(" ")}return`${e}${t}`})(t.scope,{prefix:this.classPrefix});this.span(e)}closeNode(t){i(t)&&(this.buffer+="</span>")}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const s=(t={})=>{const e={children:[]};return Object.assign(e,t),e};class l{constructor(){this.rootNode=s(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const e=s({scope:t});this.add(e),this.stack.push(e)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,e){return"string"==typeof e?t.addText(e):e.children&&(t.openNode(e),e.children.forEach(e=>this._walk(t,e)),t.closeNode(e)),t}static _collapse(t){"string"!=typeof t&&t.children&&(t.children.every(t=>"string"==typeof t)?t.children=[t.children.join("")]:t.children.forEach(t=>{l._collapse(t)}))}}class c extends l{constructor(t){super(),this.options=t}addText(t){""!==t&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,e){const n=t.root;e&&(n.scope=`language:${e}`),this.add(n)}toHTML(){return new a(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function d(t){return t?"string"==typeof t?t:t.source:null}function p(t){return f("(?=",t,")")}function h(t){return f("(?:",t,")*")}function u(t){return f("(?:",t,")?")}function f(...t){return t.map(t=>d(t)).join("")}function m(...t){const e=function(t){const e=t[t.length-1];return"object"==typeof e&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}(t);return"("+(e.capture?"":"?:")+t.map(t=>d(t)).join("|")+")"}function g(t){return new RegExp(t.toString()+"|").exec("").length-1}const b=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function y(t,{joinWith:e}){let n=0;return t.map(t=>{n+=1;const e=n;let r=d(t),o="";for(;r.length>0;){const t=b.exec(r);if(!t){o+=r;break}o+=r.substring(0,t.index),r=r.substring(t.index+t[0].length),"\\"===t[0][0]&&t[1]?o+="\\"+String(Number(t[1])+e):(o+=t[0],"("===t[0]&&n++)}return o}).map(t=>`(${t})`).join(e)}const w="[a-zA-Z]\\w*",A="[a-zA-Z_]\\w*",x="\\b\\d+(\\.\\d+)?",_="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",v="\\b(0b[01]+)",k={begin:"\\\\[\\s\\S]",relevance:0},C={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[k]},E={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[k]},S=function(t,e,n={}){const r=o({scope:"comment",begin:t,end:e,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=m("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:f(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},M=S("//","$"),B=S("/\\*","\\*/"),T=S("#","$"),L={scope:"number",begin:x,relevance:0},O={scope:"number",begin:_,relevance:0},I={scope:"number",begin:v,relevance:0},N={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[k,{begin:/\[/,end:/\]/,relevance:0,contains:[k]}]}]},R={scope:"title",begin:w,relevance:0},z={scope:"title",begin:A,relevance:0},H={begin:"\\.\\s*"+A,relevance:0};var P=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:w,UNDERSCORE_IDENT_RE:A,NUMBER_RE:x,C_NUMBER_RE:_,BINARY_NUMBER_RE:v,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(t={})=>{const e=/^#![ ]*\//;return t.binary&&(t.begin=f(e,/.*\b/,t.binary,/\b.*/)),o({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,e)=>{0!==t.index&&e.ignoreMatch()}},t)},BACKSLASH_ESCAPE:k,APOS_STRING_MODE:C,QUOTE_STRING_MODE:E,PHRASAL_WORDS_MODE:{begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},COMMENT:S,C_LINE_COMMENT_MODE:M,C_BLOCK_COMMENT_MODE:B,HASH_COMMENT_MODE:T,NUMBER_MODE:L,C_NUMBER_MODE:O,BINARY_NUMBER_MODE:I,REGEXP_MODE:N,TITLE_MODE:R,UNDERSCORE_TITLE_MODE:z,METHOD_GUARD:H,END_SAME_AS_BEGIN:function(t){return Object.assign(t,{"on:begin":(t,e)=>{e.data._beginMatch=t[1]},"on:end":(t,e)=>{e.data._beginMatch!==t[1]&&e.ignoreMatch()}})}});function D(t,e){"."===t.input[t.index-1]&&e.ignoreMatch()}function $(t,e){void 0!==t.className&&(t.scope=t.className,delete t.className)}function j(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=D,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,void 0===t.relevance&&(t.relevance=0))}function F(t,e){Array.isArray(t.illegal)&&(t.illegal=m(...t.illegal))}function U(t,e){if(t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function q(t,e){void 0===t.relevance&&(t.relevance=1)}const W=(t,e)=>{if(!t.beforeMatch)return;if(t.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},t);Object.keys(t).forEach(e=>{delete t[e]}),t.keywords=n.keywords,t.begin=f(n.beforeMatch,p(n.begin)),t.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},t.relevance=0,delete n.beforeMatch},V=["of","and","for","in","not","or","if","then","parent","list","value"];function Y(t,e,n="keyword"){const r=Object.create(null);return"string"==typeof t?o(n,t.split(" ")):Array.isArray(t)?o(n,t):Object.keys(t).forEach(function(n){Object.assign(r,Y(t[n],e,n))}),r;function o(t,n){e&&(n=n.map(t=>t.toLowerCase())),n.forEach(function(e){const n=e.split("|");r[n[0]]=[t,X(n[0],n[1])]})}}function X(t,e){return e?Number(e):function(t){return V.includes(t.toLowerCase())}(t)?0:1}const Z={},K=t=>{console.error(t)},J=(t,...e)=>{console.log(`WARN: ${t}`,...e)},G=(t,e)=>{Z[`${t}/${e}`]||(console.log(`Deprecated as of ${t}. ${e}`),Z[`${t}/${e}`]=!0)},Q=new Error;function tt(t,e,{key:n}){let r=0;const o=t[n],i={},a={};for(let t=1;t<=e.length;t++)a[t+r]=o[t],i[t+r]=!0,r+=g(e[t-1]);t[n]=a,t[n]._emit=i,t[n]._multi=!0}function et(t){!function(t){t.scope&&"object"==typeof t.scope&&null!==t.scope&&(t.beginScope=t.scope,delete t.scope)}(t),"string"==typeof t.beginScope&&(t.beginScope={_wrap:t.beginScope}),"string"==typeof t.endScope&&(t.endScope={_wrap:t.endScope}),function(t){if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw K("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Q;if("object"!=typeof t.beginScope||null===t.beginScope)throw K("beginScope must be object"),Q;tt(t,t.begin,{key:"beginScope"}),t.begin=y(t.begin,{joinWith:""})}}(t),function(t){if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw K("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Q;if("object"!=typeof t.endScope||null===t.endScope)throw K("endScope must be object"),Q;tt(t,t.end,{key:"endScope"}),t.end=y(t.end,{joinWith:""})}}(t)}function nt(t){function e(e,n){return new RegExp(d(e),"m"+(t.case_insensitive?"i":"")+(t.unicodeRegex?"u":"")+(n?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(t,e){e.position=this.position++,this.matchIndexes[this.matchAt]=e,this.regexes.push([e,t]),this.matchAt+=g(t)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const t=this.regexes.map(t=>t[1]);this.matcherRe=e(y(t,{joinWith:"|"}),!0),this.lastIndex=0}exec(t){this.matcherRe.lastIndex=this.lastIndex;const e=this.matcherRe.exec(t);if(!e)return null;const n=e.findIndex((t,e)=>e>0&&void 0!==t),r=this.matchIndexes[n];return e.splice(0,n),Object.assign(e,r)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(t){if(this.multiRegexes[t])return this.multiRegexes[t];const e=new n;return this.rules.slice(t).forEach(([t,n])=>e.addRule(t,n)),e.compile(),this.multiRegexes[t]=e,e}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(t,e){this.rules.push([t,e]),"begin"===e.type&&this.count++}exec(t){const e=this.getMatcher(this.regexIndex);e.lastIndex=this.lastIndex;let n=e.exec(t);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const e=this.getMatcher(0);e.lastIndex=this.lastIndex+1,n=e.exec(t)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=o(t.classNameAliases||{}),function n(i,a){const s=i;if(i.isCompiled)return s;[$,U,et,W].forEach(t=>t(i,a)),t.compilerExtensions.forEach(t=>t(i,a)),i.__beforeBegin=null,[j,F,q].forEach(t=>t(i,a)),i.isCompiled=!0;let l=null;return"object"==typeof i.keywords&&i.keywords.$pattern&&(i.keywords=Object.assign({},i.keywords),l=i.keywords.$pattern,delete i.keywords.$pattern),l=l||/\w+/,i.keywords&&(i.keywords=Y(i.keywords,t.case_insensitive)),s.keywordPatternRe=e(l,!0),a&&(i.begin||(i.begin=/\B|\b/),s.beginRe=e(s.begin),i.end||i.endsWithParent||(i.end=/\B|\b/),i.end&&(s.endRe=e(s.end)),s.terminatorEnd=d(s.end)||"",i.endsWithParent&&a.terminatorEnd&&(s.terminatorEnd+=(i.end?"|":"")+a.terminatorEnd)),i.illegal&&(s.illegalRe=e(i.illegal)),i.contains||(i.contains=[]),i.contains=[].concat(...i.contains.map(function(t){return function(t){t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return o(t,{variants:null},e)}));if(t.cachedVariants)return t.cachedVariants;if(rt(t))return o(t,{starts:t.starts?o(t.starts):null});if(Object.isFrozen(t))return o(t);return t}("self"===t?i:t)})),i.contains.forEach(function(t){n(t,s)}),i.starts&&n(i.starts,a),s.matcher=function(t){const e=new r;return t.contains.forEach(t=>e.addRule(t.begin,{rule:t,type:"begin"})),t.terminatorEnd&&e.addRule(t.terminatorEnd,{type:"end"}),t.illegal&&e.addRule(t.illegal,{type:"illegal"}),e}(s),s}(t)}function rt(t){return!!t&&(t.endsWithParent||rt(t.starts))}class ot extends Error{constructor(t,e){super(t),this.name="HTMLInjectionError",this.html=e}}const it=r,at=o,st=Symbol("nomatch"),lt=function(t){const r=Object.create(null),o=Object.create(null),i=[];let a=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",l={disableAutodetect:!0,name:"Plain text",contains:[]};let d={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:c};function g(t){return d.noHighlightRe.test(t)}function b(t,e,n){let r="",o="";"object"==typeof e?(r=t,n=e.ignoreIllegals,o=e.language):(G("10.7.0","highlight(lang, code, ...args) has been deprecated."),G("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),o=t,r=e),void 0===n&&(n=!0);const i={code:r,language:o};E("before:highlight",i);const a=i.result?i.result:y(i.language,i.code,n);return a.code=i.code,E("after:highlight",a),a}function y(t,e,o,i){const l=Object.create(null);function c(t,e){return t.keywords[e]}function p(){if(!S.keywords)return void B.addText(T);let t=0;S.keywordPatternRe.lastIndex=0;let e=S.keywordPatternRe.exec(T),n="";for(;e;){n+=T.substring(t,e.index);const r=k.case_insensitive?e[0].toLowerCase():e[0],o=c(S,r);if(o){const[t,i]=o;if(B.addText(n),n="",l[r]=(l[r]||0)+1,l[r]<=7&&(L+=i),t.startsWith("_"))n+=e[0];else{const n=k.classNameAliases[t]||t;u(e[0],n)}}else n+=e[0];t=S.keywordPatternRe.lastIndex,e=S.keywordPatternRe.exec(T)}n+=T.substring(t),B.addText(n)}function h(){null!=S.subLanguage?function(){if(""===T)return;let t=null;if("string"==typeof S.subLanguage){if(!r[S.subLanguage])return void B.addText(T);t=y(S.subLanguage,T,!0,M[S.subLanguage]),M[S.subLanguage]=t._top}else t=w(T,S.subLanguage.length?S.subLanguage:null);S.relevance>0&&(L+=t.relevance),B.__addSublanguage(t._emitter,t.language)}():p(),T=""}function u(t,e){""!==t&&(B.startScope(e),B.addText(t),B.endScope())}function f(t,e){let n=1;const r=e.length-1;for(;n<=r;){if(!t._emit[n]){n++;continue}const r=k.classNameAliases[t[n]]||t[n],o=e[n];r?u(o,r):(T=o,p(),T=""),n++}}function m(t,e){return t.scope&&"string"==typeof t.scope&&B.openNode(k.classNameAliases[t.scope]||t.scope),t.beginScope&&(t.beginScope._wrap?(u(T,k.classNameAliases[t.beginScope._wrap]||t.beginScope._wrap),T=""):t.beginScope._multi&&(f(t.beginScope,e),T="")),S=Object.create(t,{parent:{value:S}}),S}function g(t,e,r){let o=function(t,e){const n=t&&t.exec(e);return n&&0===n.index}(t.endRe,r);if(o){if(t["on:end"]){const r=new n(t);t["on:end"](e,r),r.isMatchIgnored&&(o=!1)}if(o){for(;t.endsParent&&t.parent;)t=t.parent;return t}}if(t.endsWithParent)return g(t.parent,e,r)}function b(t){return 0===S.matcher.regexIndex?(T+=t[0],1):(N=!0,0)}function A(t){const n=t[0],r=e.substring(t.index),o=g(S,t,r);if(!o)return st;const i=S;S.endScope&&S.endScope._wrap?(h(),u(n,S.endScope._wrap)):S.endScope&&S.endScope._multi?(h(),f(S.endScope,t)):i.skip?T+=n:(i.returnEnd||i.excludeEnd||(T+=n),h(),i.excludeEnd&&(T=n));do{S.scope&&B.closeNode(),S.skip||S.subLanguage||(L+=S.relevance),S=S.parent}while(S!==o.parent);return o.starts&&m(o.starts,t),i.returnEnd?0:n.length}let x={};function _(r,i){const s=i&&i[0];if(T+=r,null==s)return h(),0;if("begin"===x.type&&"end"===i.type&&x.index===i.index&&""===s){if(T+=e.slice(i.index,i.index+1),!a){const e=new Error(`0 width match regex (${t})`);throw e.languageName=t,e.badRule=x.rule,e}return 1}if(x=i,"begin"===i.type)return function(t){const e=t[0],r=t.rule,o=new n(r),i=[r.__beforeBegin,r["on:begin"]];for(const n of i)if(n&&(n(t,o),o.isMatchIgnored))return b(e);return r.skip?T+=e:(r.excludeBegin&&(T+=e),h(),r.returnBegin||r.excludeBegin||(T=e)),m(r,t),r.returnBegin?0:e.length}(i);if("illegal"===i.type&&!o){const t=new Error('Illegal lexeme "'+s+'" for mode "'+(S.scope||"<unnamed>")+'"');throw t.mode=S,t}if("end"===i.type){const t=A(i);if(t!==st)return t}if("illegal"===i.type&&""===s)return 1;if(I>1e5&&I>3*i.index){throw new Error("potential infinite loop, way more iterations than matches")}return T+=s,s.length}const k=v(t);if(!k)throw K(s.replace("{}",t)),new Error('Unknown language: "'+t+'"');const C=nt(k);let E="",S=i||C;const M={},B=new d.__emitter(d);!function(){const t=[];for(let e=S;e!==k;e=e.parent)e.scope&&t.unshift(e.scope);t.forEach(t=>B.openNode(t))}();let T="",L=0,O=0,I=0,N=!1;try{if(k.__emitTokens)k.__emitTokens(e,B);else{for(S.matcher.considerAll();;){I++,N?N=!1:S.matcher.considerAll(),S.matcher.lastIndex=O;const t=S.matcher.exec(e);if(!t)break;const n=_(e.substring(O,t.index),t);O=t.index+n}_(e.substring(O))}return B.finalize(),E=B.toHTML(),{language:t,value:E,relevance:L,illegal:!1,_emitter:B,_top:S}}catch(n){if(n.message&&n.message.includes("Illegal"))return{language:t,value:it(e),illegal:!0,relevance:0,_illegalBy:{message:n.message,index:O,context:e.slice(O-100,O+100),mode:n.mode,resultSoFar:E},_emitter:B};if(a)return{language:t,value:it(e),illegal:!1,relevance:0,errorRaised:n,_emitter:B,_top:S};throw n}}function w(t,e){e=e||d.languages||Object.keys(r);const n=function(t){const e={value:it(t),illegal:!1,relevance:0,_top:l,_emitter:new d.__emitter(d)};return e._emitter.addText(t),e}(t),o=e.filter(v).filter(C).map(e=>y(e,t,!1));o.unshift(n);const i=o.sort((t,e)=>{if(t.relevance!==e.relevance)return e.relevance-t.relevance;if(t.language&&e.language){if(v(t.language).supersetOf===e.language)return 1;if(v(e.language).supersetOf===t.language)return-1}return 0}),[a,s]=i,c=a;return c.secondBest=s,c}function A(t){let e=null;const n=function(t){let e=t.className+" ";e+=t.parentNode?t.parentNode.className:"";const n=d.languageDetectRe.exec(e);if(n){const e=v(n[1]);return e||(J(s.replace("{}",n[1])),J("Falling back to no-highlight mode for this block.",t)),e?n[1]:"no-highlight"}return e.split(/\s+/).find(t=>g(t)||v(t))}(t);if(g(n))return;if(E("before:highlightElement",{el:t,language:n}),t.children.length>0&&(d.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(t)),d.throwUnescapedHTML)){throw new ot("One of your code blocks includes unescaped HTML.",t.innerHTML)}e=t;const r=e.textContent,i=n?b(r,{language:n,ignoreIllegals:!0}):w(r);t.innerHTML=i.value,function(t,e,n){const r=e&&o[e]||n;t.classList.add("hljs"),t.classList.add(`language-${r}`)}(t,n,i.language),t.result={language:i.language,re:i.relevance,relevance:i.relevance},i.secondBest&&(t.secondBest={language:i.secondBest.language,relevance:i.secondBest.relevance}),E("after:highlightElement",{el:t,result:i,text:r})}let x=!1;function _(){if("loading"===document.readyState)return void(x=!0);document.querySelectorAll(d.cssSelector).forEach(A)}function v(t){return t=(t||"").toLowerCase(),r[t]||r[o[t]]}function k(t,{languageName:e}){"string"==typeof t&&(t=[t]),t.forEach(t=>{o[t.toLowerCase()]=e})}function C(t){const e=v(t);return e&&!e.disableAutodetect}function E(t,e){const n=t;i.forEach(function(t){t[n]&&t[n](e)})}"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",function(){x&&_()},!1),Object.assign(t,{highlight:b,highlightAuto:w,highlightAll:_,highlightElement:A,highlightBlock:function(t){return G("10.7.0","highlightBlock will be removed entirely in v12.0"),G("10.7.0","Please use highlightElement now."),A(t)},configure:function(t){d=at(d,t)},initHighlighting:()=>{_(),G("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function(){_(),G("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function(e,n){let o=null;try{o=n(t)}catch(t){if(K("Language definition for '{}' could not be registered.".replace("{}",e)),!a)throw t;K(t),o=l}o.name||(o.name=e),r[e]=o,o.rawDefinition=n.bind(null,t),o.aliases&&k(o.aliases,{languageName:e})},unregisterLanguage:function(t){delete r[t];for(const e of Object.keys(o))o[e]===t&&delete o[e]},listLanguages:function(){return Object.keys(r)},getLanguage:v,registerAliases:k,autoDetection:C,inherit:at,addPlugin:function(t){!function(t){t["before:highlightBlock"]&&!t["before:highlightElement"]&&(t["before:highlightElement"]=e=>{t["before:highlightBlock"](Object.assign({block:e.el},e))}),t["after:highlightBlock"]&&!t["after:highlightElement"]&&(t["after:highlightElement"]=e=>{t["after:highlightBlock"](Object.assign({block:e.el},e))})}(t),i.push(t)},removePlugin:function(t){const e=i.indexOf(t);-1!==e&&i.splice(e,1)}}),t.debugMode=function(){a=!1},t.safeMode=function(){a=!0},t.versionString="11.8.0",t.regex={concat:f,lookahead:p,either:m,optional:u,anyNumberOfTimes:h};for(const t in P)"object"==typeof P[t]&&e(P[t]);return Object.assign(t,P),t},ct=lt({});ct.newInstance=()=>lt({}),t.exports=ct,ct.HighlightJS=ct,ct.default=ct},33714(t){"use strict";var e,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,a={};function s(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}((t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})})(a,{Hooks:()=>mt,Lexer:()=>pt,Marked:()=>gt,Parser:()=>ft,Renderer:()=>ht,TextRenderer:()=>ut,Tokenizer:()=>dt,defaults:()=>l,getDefaults:()=>s,lexer:()=>Et,marked:()=>yt,options:()=>wt,parse:()=>kt,parseInline:()=>vt,parser:()=>Ct,setOptions:()=>At,use:()=>xt,walkTokens:()=>_t}),t.exports=(e=a,((t,e,a,s)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let l of o(e))i.call(t,l)||l===a||n(t,l,{get:()=>e[l],enumerable:!(s=r(e,l))||s.enumerable});return t})(n({},"__esModule",{value:!0}),e));var l={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function c(t){l=t}var d={exec:()=>null};function p(t,e=""){let n="string"==typeof t?t:t.source;const r={replace:(t,e)=>{let o="string"==typeof e?e:e.source;return o=o.replace(h.caret,"$1"),n=n.replace(t,o),r},getRegex:()=>new RegExp(n,e)};return r}var h={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},u=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,f=/(?:[*+-]|\d{1,9}[.)])/,m=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,g=p(m).replace(/bull/g,f).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),b=p(m).replace(/bull/g,f).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),y=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,w=/(?!\s*\])(?:\\.|[^\[\]\\])+/,A=p(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",w).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),x=p(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,f).getRegex(),_="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",v=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,k=p("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",v).replace("tag",_).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),C=p(y).replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_).getRegex(),E={blockquote:p(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",C).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:A,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:u,html:k,lheading:g,list:x,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:C,table:d,text:/^[^\n]+/},S=p("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_).getRegex(),M={...E,lheading:b,table:S,paragraph:p(y).replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",S).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_).getRegex()},B={...E,html:p("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",v).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:d,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:p(y).replace("hr",u).replace("heading"," *#{1,6} *[^\n]").replace("lheading",g).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},T=/^( {2,}|\\)\n(?!\s*$)/,L=/[\p{P}\p{S}]/u,O=/[\s\p{P}\p{S}]/u,I=/[^\s\p{P}\p{S}]/u,N=p(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,O).getRegex(),R=/(?!~)[\p{P}\p{S}]/u,z=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,H=p(z,"u").replace(/punct/g,L).getRegex(),P=p(z,"u").replace(/punct/g,R).getRegex(),D="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",$=p(D,"gu").replace(/notPunctSpace/g,I).replace(/punctSpace/g,O).replace(/punct/g,L).getRegex(),j=p(D,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,R).getRegex(),F=p("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,I).replace(/punctSpace/g,O).replace(/punct/g,L).getRegex(),U=p(/\\(punct)/,"gu").replace(/punct/g,L).getRegex(),q=p(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),W=p(v).replace("(?:--\x3e|$)","--\x3e").getRegex(),V=p("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",W).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Y=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,X=p(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Y).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Z=p(/^!?\[(label)\]\[(ref)\]/).replace("label",Y).replace("ref",w).getRegex(),K=p(/^!?\[(ref)\](?:\[\])?/).replace("ref",w).getRegex(),J={_backpedal:d,anyPunctuation:U,autolink:q,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,br:T,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:d,emStrongLDelim:H,emStrongRDelimAst:$,emStrongRDelimUnd:F,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:X,nolink:K,punctuation:N,reflink:Z,reflinkSearch:p("reflink|nolink(?!\\()","g").replace("reflink",Z).replace("nolink",K).getRegex(),tag:V,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:d},G={...J,link:p(/^!?\[(label)\]\((.*?)\)/).replace("label",Y).getRegex(),reflink:p(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Y).getRegex()},Q={...J,emStrongRDelimAst:j,emStrongLDelim:P,url:p(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},tt={...Q,br:p(T).replace("{2,}","*").getRegex(),text:p(Q.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},et={normal:E,gfm:M,pedantic:B},nt={normal:J,gfm:Q,breaks:tt,pedantic:G},rt={"&":"&","<":"<",">":">",'"':""","'":"'"},ot=t=>rt[t];function it(t,e){if(e){if(h.escapeTest.test(t))return t.replace(h.escapeReplace,ot)}else if(h.escapeTestNoEncode.test(t))return t.replace(h.escapeReplaceNoEncode,ot);return t}function at(t){try{t=encodeURI(t).replace(h.percentDecode,"%")}catch{return null}return t}function st(t,e){const n=t.replace(h.findPipe,(t,e,n)=>{let r=!1,o=e;for(;--o>=0&&"\\"===n[o];)r=!r;return r?"|":" |"}).split(h.splitPipe);let r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(h.slashPipe,"|");return n}function lt(t,e,n){const r=t.length;if(0===r)return"";let o=0;for(;o<r;){const i=t.charAt(r-o-1);if(i!==e||n){if(i===e||!n)break;o++}else o++}return t.slice(0,r-o)}function ct(t,e,n,r,o){const i=e.href,a=e.title||null,s=t[1].replace(o.other.outputLinkReplace,"$1");r.state.inLink=!0;const l={type:"!"===t[0].charAt(0)?"image":"link",raw:n,href:i,title:a,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,l}var dt=class{options;rules;lexer;constructor(t){this.options=t||l}space(t){const e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){const e=this.rules.block.code.exec(t);if(e){const t=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:lt(t,"\n")}}}fences(t){const e=this.rules.block.fences.exec(t);if(e){const t=e[0],n=function(t,e,n){const r=t.match(n.other.indentCodeCompensation);if(null===r)return e;const o=r[1];return e.split("\n").map(t=>{const e=t.match(n.other.beginningSpace);if(null===e)return t;const[r]=e;return r.length>=o.length?t.slice(o.length):t}).join("\n")}(t,e[3]||"",this.rules);return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:n}}}heading(t){const e=this.rules.block.heading.exec(t);if(e){let t=e[2].trim();if(this.rules.other.endingHash.test(t)){const e=lt(t,"#");this.options.pedantic?t=e.trim():e&&!this.rules.other.endingSpaceChar.test(e)||(t=e.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(t){const e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:lt(e[0],"\n")}}blockquote(t){const e=this.rules.block.blockquote.exec(t);if(e){let t=lt(e[0],"\n").split("\n"),n="",r="";const o=[];for(;t.length>0;){let e=!1;const i=[];let a;for(a=0;a<t.length;a++)if(this.rules.other.blockquoteStart.test(t[a]))i.push(t[a]),e=!0;else{if(e)break;i.push(t[a])}t=t.slice(a);const s=i.join("\n"),l=s.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${s}`:s,r=r?`${r}\n${l}`:l;const c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,o,!0),this.lexer.state.top=c,0===t.length)break;const d=o.at(-1);if("code"===d?.type)break;if("blockquote"===d?.type){const e=d,i=e.raw+"\n"+t.join("\n"),a=this.blockquote(i);o[o.length-1]=a,n=n.substring(0,n.length-e.raw.length)+a.raw,r=r.substring(0,r.length-e.text.length)+a.text;break}if("list"===d?.type){const e=d,i=e.raw+"\n"+t.join("\n"),a=this.list(i);o[o.length-1]=a,n=n.substring(0,n.length-d.raw.length)+a.raw,r=r.substring(0,r.length-e.raw.length)+a.raw,t=i.substring(o.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:n,tokens:o,text:r}}}list(t){let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim();const r=n.length>1,o={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");const i=this.rules.other.listItemRegex(n);let a=!1;for(;t;){let n=!1,r="",s="";if(!(e=i.exec(t)))break;if(this.rules.block.hr.test(t))break;r=e[0],t=t.substring(r.length);let l=e[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,t=>" ".repeat(3*t.length)),c=t.split("\n",1)[0],d=!l.trim(),p=0;if(this.options.pedantic?(p=2,s=l.trimStart()):d?p=e[1].length+1:(p=e[2].search(this.rules.other.nonSpaceChar),p=p>4?1:p,s=l.slice(p),p+=e[1].length),d&&this.rules.other.blankLine.test(c)&&(r+=c+"\n",t=t.substring(c.length+1),n=!0),!n){const e=this.rules.other.nextBulletRegex(p),n=this.rules.other.hrRegex(p),o=this.rules.other.fencesBeginRegex(p),i=this.rules.other.headingBeginRegex(p),a=this.rules.other.htmlBeginRegex(p);for(;t;){const h=t.split("\n",1)[0];let u;if(c=h,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),u=c):u=c.replace(this.rules.other.tabCharGlobal," "),o.test(c))break;if(i.test(c))break;if(a.test(c))break;if(e.test(c))break;if(n.test(c))break;if(u.search(this.rules.other.nonSpaceChar)>=p||!c.trim())s+="\n"+u.slice(p);else{if(d)break;if(l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4)break;if(o.test(l))break;if(i.test(l))break;if(n.test(l))break;s+="\n"+c}d||c.trim()||(d=!0),r+=h+"\n",t=t.substring(h.length+1),l=u.slice(p)}}o.loose||(a?o.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(a=!0));let h,u=null;this.options.gfm&&(u=this.rules.other.listIsTask.exec(s),u&&(h="[ ] "!==u[0],s=s.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:r,task:!!u,checked:h,loose:!1,text:s,tokens:[]}),o.raw+=r}const s=o.items.at(-1);if(!s)return;s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd(),o.raw=o.raw.trimEnd();for(let t=0;t<o.items.length;t++)if(this.lexer.state.top=!1,o.items[t].tokens=this.lexer.blockTokens(o.items[t].text,[]),!o.loose){const e=o.items[t].tokens.filter(t=>"space"===t.type),n=e.length>0&&e.some(t=>this.rules.other.anyLine.test(t.raw));o.loose=n}if(o.loose)for(let t=0;t<o.items.length;t++)o.items[t].loose=!0;return o}}html(t){const e=this.rules.block.html.exec(t);if(e){return{type:"html",block:!0,raw:e[0],pre:"pre"===e[1]||"script"===e[1]||"style"===e[1],text:e[0]}}}def(t){const e=this.rules.block.def.exec(t);if(e){const t=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:t,raw:e[0],href:n,title:r}}}table(t){const e=this.rules.block.table.exec(t);if(!e)return;if(!this.rules.other.tableDelimiter.test(e[2]))return;const n=st(e[1]),r=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],i={type:"table",raw:e[0],header:[],align:[],rows:[]};if(n.length===r.length){for(const t of r)this.rules.other.tableAlignRight.test(t)?i.align.push("right"):this.rules.other.tableAlignCenter.test(t)?i.align.push("center"):this.rules.other.tableAlignLeft.test(t)?i.align.push("left"):i.align.push(null);for(let t=0;t<n.length;t++)i.header.push({text:n[t],tokens:this.lexer.inline(n[t]),header:!0,align:i.align[t]});for(const t of o)i.rows.push(st(t,i.header.length).map((t,e)=>({text:t,tokens:this.lexer.inline(t),header:!1,align:i.align[e]})));return i}}lheading(t){const e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){const e=this.rules.block.paragraph.exec(t);if(e){const t="\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(t){const e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){const e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){const e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){const e=this.rules.inline.link.exec(t);if(e){const t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;const e=lt(t.slice(0,-1),"\\");if((t.length-e.length)%2==0)return}else{const t=function(t,e){if(-1===t.indexOf(e[1]))return-1;let n=0;for(let r=0;r<t.length;r++)if("\\"===t[r])r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return n>0?-2:-1}(e[2],"()");if(-2===t)return;if(t>-1){const n=(0===e[0].indexOf("!")?5:4)+e[1].length+t;e[2]=e[2].substring(0,t),e[0]=e[0].substring(0,n).trim(),e[3]=""}}let n=e[2],r="";if(this.options.pedantic){const t=this.rules.other.pedanticHrefTitle.exec(n);t&&(n=t[1],r=t[3])}else r=e[3]?e[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(t)?n.slice(1):n.slice(1,-1)),ct(e,{href:n?n.replace(this.rules.inline.anyPunctuation,"$1"):n,title:r?r.replace(this.rules.inline.anyPunctuation,"$1"):r},e[0],this.lexer,this.rules)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){const t=e[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!t){const t=n[0].charAt(0);return{type:"text",raw:t,text:t}}return ct(n,t,n[0],this.lexer,this.rules)}}emStrong(t,e,n=""){let r=this.rules.inline.emStrongLDelim.exec(t);if(!r)return;if(r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))return;if(!(r[1]||r[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const n=[...r[0]].length-1;let o,i,a=n,s=0;const l="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,e=e.slice(-1*t.length+n);null!=(r=l.exec(e));){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o)continue;if(i=[...o].length,r[3]||r[4]){a+=i;continue}if((r[5]||r[6])&&n%3&&!((n+i)%3)){s+=i;continue}if(a-=i,a>0)continue;i=Math.min(i,i+a+s);const e=[...r[0]][0].length,l=t.slice(0,n+r.index+e+i);if(Math.min(n,i)%2){const t=l.slice(1,-1);return{type:"em",raw:l,text:t,tokens:this.lexer.inlineTokens(t)}}const c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(t){const e=this.rules.inline.code.exec(t);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," ");const n=this.rules.other.nonSpaceChar.test(t),r=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return n&&r&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(t){const e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){const e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){const e=this.rules.inline.autolink.exec(t);if(e){let t,n;return"@"===e[2]?(t=e[1],n="mailto:"+t):(t=e[1],n=t),{type:"link",raw:e[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let t,n;if("@"===e[2])t=e[0],n="mailto:"+t;else{let r;do{r=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??""}while(r!==e[0]);t=e[0],n="www."===e[1]?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(t){const e=this.rules.inline.text.exec(t);if(e){const t=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:t}}}},pt=class t{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||l,this.options.tokenizer=this.options.tokenizer||new dt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const e={other:h,block:et.normal,inline:nt.normal};this.options.pedantic?(e.block=et.pedantic,e.inline=nt.pedantic):this.options.gfm&&(e.block=et.gfm,this.options.breaks?e.inline=nt.breaks:e.inline=nt.gfm),this.tokenizer.rules=e}static get rules(){return{block:et,inline:nt}}static lex(e,n){return new t(n).lex(e)}static lexInline(e,n){return new t(n).inlineTokens(e)}lex(t){t=t.replace(h.carriageReturn,"\n"),this.blockTokens(t,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){const e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,e=[],n=!1){for(this.options.pedantic&&(t=t.replace(h.tabCharGlobal," ").replace(h.spaceLine,""));t;){let r;if(this.options.extensions?.block?.some(n=>!!(r=n.call({lexer:this},t,e))&&(t=t.substring(r.raw.length),e.push(r),!0)))continue;if(r=this.tokenizer.space(t)){t=t.substring(r.raw.length);const n=e.at(-1);1===r.raw.length&&void 0!==n?n.raw+="\n":e.push(r);continue}if(r=this.tokenizer.code(t)){t=t.substring(r.raw.length);const n=e.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.at(-1).src=n.text):e.push(r);continue}if(r=this.tokenizer.fences(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.heading(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.hr(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.blockquote(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.list(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.html(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.def(t)){t=t.substring(r.raw.length);const n=e.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if(r=this.tokenizer.table(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.lheading(t)){t=t.substring(r.raw.length),e.push(r);continue}let o=t;if(this.options.extensions?.startBlock){let e=1/0;const n=t.slice(1);let r;this.options.extensions.startBlock.forEach(t=>{r=t.call({lexer:this},n),"number"==typeof r&&r>=0&&(e=Math.min(e,r))}),e<1/0&&e>=0&&(o=t.substring(0,e+1))}if(this.state.top&&(r=this.tokenizer.paragraph(o))){const i=e.at(-1);n&&"paragraph"===i?.type?(i.raw+="\n"+r.raw,i.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):e.push(r),n=o.length!==t.length,t=t.substring(r.raw.length);continue}if(r=this.tokenizer.text(t)){t=t.substring(r.raw.length);const n=e.at(-1);"text"===n?.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):e.push(r);continue}if(t){const e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw new Error(e)}}return this.state.top=!0,e}inline(t,e=[]){return this.inlineQueue.push({src:t,tokens:e}),e}inlineTokens(t,e=[]){let n=t,r=null;if(this.tokens.links){const t=Object.keys(this.tokens.links);if(t.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(n));)t.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.anyPunctuation.exec(n));)n=n.slice(0,r.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(n));)n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let o=!1,i="";for(;t;){let r;if(o||(i=""),o=!1,this.options.extensions?.inline?.some(n=>!!(r=n.call({lexer:this},t,e))&&(t=t.substring(r.raw.length),e.push(r),!0)))continue;if(r=this.tokenizer.escape(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.tag(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.link(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length);const n=e.at(-1);"text"===r.type&&"text"===n?.type?(n.raw+=r.raw,n.text+=r.text):e.push(r);continue}if(r=this.tokenizer.emStrong(t,n,i)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.codespan(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.br(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.del(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.autolink(t)){t=t.substring(r.raw.length),e.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(t))){t=t.substring(r.raw.length),e.push(r);continue}let a=t;if(this.options.extensions?.startInline){let e=1/0;const n=t.slice(1);let r;this.options.extensions.startInline.forEach(t=>{r=t.call({lexer:this},n),"number"==typeof r&&r>=0&&(e=Math.min(e,r))}),e<1/0&&e>=0&&(a=t.substring(0,e+1))}if(r=this.tokenizer.inlineText(a)){t=t.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(i=r.raw.slice(-1)),o=!0;const n=e.at(-1);"text"===n?.type?(n.raw+=r.raw,n.text+=r.text):e.push(r);continue}if(t){const e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw new Error(e)}}return e}},ht=class{options;parser;constructor(t){this.options=t||l}space(t){return""}code({text:t,lang:e,escaped:n}){const r=(e||"").match(h.notSpaceStart)?.[0],o=t.replace(h.endingNewline,"")+"\n";return r?'<pre><code class="language-'+it(r)+'">'+(n?o:it(o,!0))+"</code></pre>\n":"<pre><code>"+(n?o:it(o,!0))+"</code></pre>\n"}blockquote({tokens:t}){return`<blockquote>\n${this.parser.parse(t)}</blockquote>\n`}html({text:t}){return t}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>\n`}hr(t){return"<hr>\n"}list(t){const e=t.ordered,n=t.start;let r="";for(let e=0;e<t.items.length;e++){const n=t.items[e];r+=this.listitem(n)}const o=e?"ol":"ul";return"<"+o+(e&&1!==n?' start="'+n+'"':"")+">\n"+r+"</"+o+">\n"}listitem(t){let e="";if(t.task){const n=this.checkbox({checked:!!t.checked});t.loose?"paragraph"===t.tokens[0]?.type?(t.tokens[0].text=n+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&"text"===t.tokens[0].tokens[0].type&&(t.tokens[0].tokens[0].text=n+" "+it(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):e+=n+" "}return e+=this.parser.parse(t.tokens,!!t.loose),`<li>${e}</li>\n`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>\n`}table(t){let e="",n="";for(let e=0;e<t.header.length;e++)n+=this.tablecell(t.header[e]);e+=this.tablerow({text:n});let r="";for(let e=0;e<t.rows.length;e++){const o=t.rows[e];n="";for(let t=0;t<o.length;t++)n+=this.tablecell(o[t]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+r+"</table>\n"}tablerow({text:t}){return`<tr>\n${t}</tr>\n`}tablecell(t){const e=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>\n`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${it(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:n}){const r=this.parser.parseInline(n),o=at(t);if(null===o)return r;let i='<a href="'+(t=o)+'"';return e&&(i+=' title="'+it(e)+'"'),i+=">"+r+"</a>",i}image({href:t,title:e,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));const o=at(t);if(null===o)return it(n);let i=`<img src="${t=o}" alt="${n}"`;return e&&(i+=` title="${it(e)}"`),i+=">",i}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:it(t.text)}},ut=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},ft=class t{options;renderer;textRenderer;constructor(t){this.options=t||l,this.options.renderer=this.options.renderer||new ht,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ut}static parse(e,n){return new t(n).parse(e)}static parseInline(e,n){return new t(n).parseInline(e)}parse(t,e=!0){let n="";for(let r=0;r<t.length;r++){const o=t[r];if(this.options.extensions?.renderers?.[o.type]){const t=o,e=this.options.extensions.renderers[t.type].call({parser:this},t);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(t.type)){n+=e||"";continue}}const i=o;switch(i.type){case"space":n+=this.renderer.space(i);continue;case"hr":n+=this.renderer.hr(i);continue;case"heading":n+=this.renderer.heading(i);continue;case"code":n+=this.renderer.code(i);continue;case"table":n+=this.renderer.table(i);continue;case"blockquote":n+=this.renderer.blockquote(i);continue;case"list":n+=this.renderer.list(i);continue;case"html":n+=this.renderer.html(i);continue;case"paragraph":n+=this.renderer.paragraph(i);continue;case"text":{let o=i,a=this.renderer.text(o);for(;r+1<t.length&&"text"===t[r+1].type;)o=t[++r],a+="\n"+this.renderer.text(o);n+=e?this.renderer.paragraph({type:"paragraph",raw:a,text:a,tokens:[{type:"text",raw:a,text:a,escaped:!0}]}):a;continue}default:{const t='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw new Error(t)}}}return n}parseInline(t,e=this.renderer){let n="";for(let r=0;r<t.length;r++){const o=t[r];if(this.options.extensions?.renderers?.[o.type]){const t=this.options.extensions.renderers[o.type].call({parser:this},o);if(!1!==t||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){n+=t||"";continue}}const i=o;switch(i.type){case"escape":case"text":n+=e.text(i);break;case"html":n+=e.html(i);break;case"link":n+=e.link(i);break;case"image":n+=e.image(i);break;case"strong":n+=e.strong(i);break;case"em":n+=e.em(i);break;case"codespan":n+=e.codespan(i);break;case"br":n+=e.br(i);break;case"del":n+=e.del(i);break;default:{const t='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw new Error(t)}}}return n}},mt=class{options;block;constructor(t){this.options=t||l}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?pt.lex:pt.lexInline}provideParser(){return this.block?ft.parse:ft.parseInline}},gt=class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ft;Renderer=ht;TextRenderer=ut;Lexer=pt;Tokenizer=dt;Hooks=mt;constructor(...t){this.use(...t)}walkTokens(t,e){let n=[];for(const r of t)switch(n=n.concat(e.call(this,r)),r.type){case"table":{const t=r;for(const r of t.header)n=n.concat(this.walkTokens(r.tokens,e));for(const r of t.rows)for(const t of r)n=n.concat(this.walkTokens(t.tokens,e));break}case"list":{const t=r;n=n.concat(this.walkTokens(t.items,e));break}default:{const t=r;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(r=>{const o=t[r].flat(1/0);n=n.concat(this.walkTokens(o,e))}):t.tokens&&(n=n.concat(this.walkTokens(t.tokens,e)))}}return n}use(...t){const e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(t=>{const n={...t};if(n.async=this.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach(t=>{if(!t.name)throw new Error("extension name required");if("renderer"in t){const n=e.renderers[t.name];e.renderers[t.name]=n?function(...e){let r=t.renderer.apply(this,e);return!1===r&&(r=n.apply(this,e)),r}:t.renderer}if("tokenizer"in t){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw new Error("extension level must be 'block' or 'inline'");const n=e[t.level];n?n.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)}),n.extensions=e),t.renderer){const e=this.defaults.renderer||new ht(this.defaults);for(const n in t.renderer){if(!(n in e))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;const r=n,o=t.renderer[r],i=e[r];e[r]=(...t)=>{let n=o.apply(e,t);return!1===n&&(n=i.apply(e,t)),n||""}}n.renderer=e}if(t.tokenizer){const e=this.defaults.tokenizer||new dt(this.defaults);for(const n in t.tokenizer){if(!(n in e))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;const r=n,o=t.tokenizer[r],i=e[r];e[r]=(...t)=>{let n=o.apply(e,t);return!1===n&&(n=i.apply(e,t)),n}}n.tokenizer=e}if(t.hooks){const e=this.defaults.hooks||new mt;for(const n in t.hooks){if(!(n in e))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;const r=n,o=t.hooks[r],i=e[r];mt.passThroughHooks.has(n)?e[r]=t=>{if(this.defaults.async)return Promise.resolve(o.call(e,t)).then(t=>i.call(e,t));const n=o.call(e,t);return i.call(e,n)}:e[r]=(...t)=>{let n=o.apply(e,t);return!1===n&&(n=i.apply(e,t)),n}}n.hooks=e}if(t.walkTokens){const e=this.defaults.walkTokens,r=t.walkTokens;n.walkTokens=function(t){let n=[];return n.push(r.call(this,t)),e&&(n=n.concat(e.call(this,t))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return pt.lex(t,e??this.defaults)}parser(t,e){return ft.parse(t,e??this.defaults)}parseMarkdown(t){return(e,n)=>{const r={...n},o={...this.defaults,...r},i=this.onError(!!o.silent,!!o.async);if(!0===this.defaults.async&&!1===r.async)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(null==e)return i(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));o.hooks&&(o.hooks.options=o,o.hooks.block=t);const a=o.hooks?o.hooks.provideLexer():t?pt.lex:pt.lexInline,s=o.hooks?o.hooks.provideParser():t?ft.parse:ft.parseInline;if(o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(e):e).then(t=>a(t,o)).then(t=>o.hooks?o.hooks.processAllTokens(t):t).then(t=>o.walkTokens?Promise.all(this.walkTokens(t,o.walkTokens)).then(()=>t):t).then(t=>s(t,o)).then(t=>o.hooks?o.hooks.postprocess(t):t).catch(i);try{o.hooks&&(e=o.hooks.preprocess(e));let t=a(e,o);o.hooks&&(t=o.hooks.processAllTokens(t)),o.walkTokens&&this.walkTokens(t,o.walkTokens);let n=s(t,o);return o.hooks&&(n=o.hooks.postprocess(n)),n}catch(t){return i(t)}}}onError(t,e){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",t){const t="<p>An error occurred:</p><pre>"+it(n.message+"",!0)+"</pre>";return e?Promise.resolve(t):t}if(e)return Promise.reject(n);throw n}}},bt=new gt;function yt(t,e){return bt.parse(t,e)}yt.options=yt.setOptions=function(t){return bt.setOptions(t),yt.defaults=bt.defaults,c(yt.defaults),yt},yt.getDefaults=s,yt.defaults=l,yt.use=function(...t){return bt.use(...t),yt.defaults=bt.defaults,c(yt.defaults),yt},yt.walkTokens=function(t,e){return bt.walkTokens(t,e)},yt.parseInline=bt.parseInline,yt.Parser=ft,yt.parser=ft.parse,yt.Renderer=ht,yt.TextRenderer=ut,yt.Lexer=pt,yt.lexer=pt.lex,yt.Tokenizer=dt,yt.Hooks=mt,yt.parse=yt;var wt=yt.options,At=yt.setOptions,xt=yt.use,_t=yt.walkTokens,vt=yt.parseInline,kt=yt,Ct=ft.parse,Et=pt.lex},45888(t){t.exports=function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}var e=/^\s+/,n=/\s+$/;function r(t,e){if(e=e||{},(t=t||"")instanceof r)return t;if(!(this instanceof r))return new r(t,e);var n=o(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function o(e){var n={r:0,g:0,b:0},r=1,o=null,a=null,l=null,d=!1,p=!1;return"string"==typeof e&&(e=U(e)),"object"==t(e)&&(F(e.r)&&F(e.g)&&F(e.b)?(n=i(e.r,e.g,e.b),d=!0,p="%"===String(e.r).substr(-1)?"prgb":"rgb"):F(e.h)&&F(e.s)&&F(e.v)?(o=R(e.s),a=R(e.v),n=c(e.h,o,a),d=!0,p="hsv"):F(e.h)&&F(e.s)&&F(e.l)&&(o=R(e.s),l=R(e.l),n=s(e.h,o,l),d=!0,p="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=M(r),{ok:d,format:e.format||p,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:r}}function i(t,e,n){return{r:255*B(t,255),g:255*B(e,255),b:255*B(n,255)}}function a(t,e,n){t=B(t,255),e=B(e,255),n=B(n,255);var r,o,i=Math.max(t,e,n),a=Math.min(t,e,n),s=(i+a)/2;if(i==a)r=o=0;else{var l=i-a;switch(o=s>.5?l/(2-i-a):l/(i+a),i){case t:r=(e-n)/l+(e<n?6:0);break;case e:r=(n-t)/l+2;break;case n:r=(t-e)/l+4}r/=6}return{h:r,s:o,l:s}}function s(t,e,n){var r,o,i;function a(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=B(t,360),e=B(e,100),n=B(n,100),0===e)r=o=i=n;else{var s=n<.5?n*(1+e):n+e-n*e,l=2*n-s;r=a(l,s,t+1/3),o=a(l,s,t),i=a(l,s,t-1/3)}return{r:255*r,g:255*o,b:255*i}}function l(t,e,n){t=B(t,255),e=B(e,255),n=B(n,255);var r,o,i=Math.max(t,e,n),a=Math.min(t,e,n),s=i,l=i-a;if(o=0===i?0:l/i,i==a)r=0;else{switch(i){case t:r=(e-n)/l+(e<n?6:0);break;case e:r=(n-t)/l+2;break;case n:r=(t-e)/l+4}r/=6}return{h:r,s:o,v:s}}function c(t,e,n){t=6*B(t,360),e=B(e,100),n=B(n,100);var r=Math.floor(t),o=t-r,i=n*(1-e),a=n*(1-o*e),s=n*(1-(1-o)*e),l=r%6;return{r:255*[n,a,i,i,s,n][l],g:255*[s,n,n,a,i,i][l],b:255*[i,i,s,n,n,a][l]}}function d(t,e,n,r){var o=[N(Math.round(t).toString(16)),N(Math.round(e).toString(16)),N(Math.round(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function p(t,e,n,r,o){var i=[N(Math.round(t).toString(16)),N(Math.round(e).toString(16)),N(Math.round(n).toString(16)),N(z(r))];return o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function h(t,e,n,r){return[N(z(r)),N(Math.round(t).toString(16)),N(Math.round(e).toString(16)),N(Math.round(n).toString(16))].join("")}function u(t,e){e=0===e?0:e||10;var n=r(t).toHsl();return n.s-=e/100,n.s=T(n.s),r(n)}function f(t,e){e=0===e?0:e||10;var n=r(t).toHsl();return n.s+=e/100,n.s=T(n.s),r(n)}function m(t){return r(t).desaturate(100)}function g(t,e){e=0===e?0:e||10;var n=r(t).toHsl();return n.l+=e/100,n.l=T(n.l),r(n)}function b(t,e){e=0===e?0:e||10;var n=r(t).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-e/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-e/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-e/100*255))),r(n)}function y(t,e){e=0===e?0:e||10;var n=r(t).toHsl();return n.l-=e/100,n.l=T(n.l),r(n)}function w(t,e){var n=r(t).toHsl(),o=(n.h+e)%360;return n.h=o<0?360+o:o,r(n)}function A(t){var e=r(t).toHsl();return e.h=(e.h+180)%360,r(e)}function x(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var n=r(t).toHsl(),o=[r(t)],i=360/e,a=1;a<e;a++)o.push(r({h:(n.h+a*i)%360,s:n.s,l:n.l}));return o}function _(t){var e=r(t).toHsl(),n=e.h;return[r(t),r({h:(n+72)%360,s:e.s,l:e.l}),r({h:(n+216)%360,s:e.s,l:e.l})]}function v(t,e,n){e=e||6,n=n||30;var o=r(t).toHsl(),i=360/n,a=[r(t)];for(o.h=(o.h-(i*e>>1)+720)%360;--e;)o.h=(o.h+i)%360,a.push(r(o));return a}function k(t,e){e=e||6;for(var n=r(t).toHsv(),o=n.h,i=n.s,a=n.v,s=[],l=1/e;e--;)s.push(r({h:o,s:i,v:a})),a=(a+l)%1;return s}r.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,r=this.toRgb();return t=r.r/255,e=r.g/255,n=r.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=M(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=l(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=l(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=a(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=a(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return d(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return p(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*B(this._r,255))+"%",g:Math.round(100*B(this._g,255))+"%",b:Math.round(100*B(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*B(this._r,255))+"%, "+Math.round(100*B(this._g,255))+"%, "+Math.round(100*B(this._b,255))+"%)":"rgba("+Math.round(100*B(this._r,255))+"%, "+Math.round(100*B(this._g,255))+"%, "+Math.round(100*B(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(E[d(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+h(this._r,this._g,this._b,this._a),n=e,o=this._gradientType?"GradientType = 1, ":"";if(t){var i=r(t);n="#"+h(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return e||!r||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return r(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(g,arguments)},brighten:function(){return this._applyModification(b,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(u,arguments)},saturate:function(){return this._applyModification(f,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(w,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(v,arguments)},complement:function(){return this._applyCombination(A,arguments)},monochromatic:function(){return this._applyCombination(k,arguments)},splitcomplement:function(){return this._applyCombination(_,arguments)},triad:function(){return this._applyCombination(x,[3])},tetrad:function(){return this._applyCombination(x,[4])}},r.fromRatio=function(e,n){if("object"==t(e)){var o={};for(var i in e)e.hasOwnProperty(i)&&(o[i]="a"===i?e[i]:R(e[i]));e=o}return r(e,n)},r.equals=function(t,e){return!(!t||!e)&&r(t).toRgbString()==r(e).toRgbString()},r.random=function(){return r.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},r.mix=function(t,e,n){n=0===n?0:n||50;var o=r(t).toRgb(),i=r(e).toRgb(),a=n/100;return r({r:(i.r-o.r)*a+o.r,g:(i.g-o.g)*a+o.g,b:(i.b-o.b)*a+o.b,a:(i.a-o.a)*a+o.a})},r.readability=function(t,e){var n=r(t),o=r(e);return(Math.max(n.getLuminance(),o.getLuminance())+.05)/(Math.min(n.getLuminance(),o.getLuminance())+.05)},r.isReadable=function(t,e,n){var o,i,a=r.readability(t,e);switch(i=!1,(o=q(n)).level+o.size){case"AAsmall":case"AAAlarge":i=a>=4.5;break;case"AAlarge":i=a>=3;break;case"AAAsmall":i=a>=7}return i},r.mostReadable=function(t,e,n){var o,i,a,s,l=null,c=0;i=(n=n||{}).includeFallbackColors,a=n.level,s=n.size;for(var d=0;d<e.length;d++)(o=r.readability(t,e[d]))>c&&(c=o,l=r(e[d]));return r.isReadable(t,l,{level:a,size:s})||!i?l:(n.includeFallbackColors=!1,r.mostReadable(t,["#fff","#000"],n))};var C=r.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},E=r.hexNames=S(C);function S(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function M(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function B(t,e){O(t)&&(t="100%");var n=I(t);return t=Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function T(t){return Math.min(1,Math.max(0,t))}function L(t){return parseInt(t,16)}function O(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)}function I(t){return"string"==typeof t&&-1!=t.indexOf("%")}function N(t){return 1==t.length?"0"+t:""+t}function R(t){return t<=1&&(t=100*t+"%"),t}function z(t){return Math.round(255*parseFloat(t)).toString(16)}function H(t){return L(t)/255}var P,D,$,j=(D="[\\s|\\(]+("+(P="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+P+")[,|\\s]+("+P+")\\s*\\)?",$="[\\s|\\(]+("+P+")[,|\\s]+("+P+")[,|\\s]+("+P+")[,|\\s]+("+P+")\\s*\\)?",{CSS_UNIT:new RegExp(P),rgb:new RegExp("rgb"+D),rgba:new RegExp("rgba"+$),hsl:new RegExp("hsl"+D),hsla:new RegExp("hsla"+$),hsv:new RegExp("hsv"+D),hsva:new RegExp("hsva"+$),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function F(t){return!!j.CSS_UNIT.exec(t)}function U(t){t=t.replace(e,"").replace(n,"").toLowerCase();var r,o=!1;if(C[t])t=C[t],o=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(r=j.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=j.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=j.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=j.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=j.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=j.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=j.hex8.exec(t))?{r:L(r[1]),g:L(r[2]),b:L(r[3]),a:H(r[4]),format:o?"name":"hex8"}:(r=j.hex6.exec(t))?{r:L(r[1]),g:L(r[2]),b:L(r[3]),format:o?"name":"hex"}:(r=j.hex4.exec(t))?{r:L(r[1]+""+r[1]),g:L(r[2]+""+r[2]),b:L(r[3]+""+r[3]),a:H(r[4]+""+r[4]),format:o?"name":"hex8"}:!!(r=j.hex3.exec(t))&&{r:L(r[1]+""+r[1]),g:L(r[2]+""+r[2]),b:L(r[3]+""+r[3]),format:o?"name":"hex"}}function q(t){var e,n;return"AA"!==(e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==e&&(e="AA"),"small"!==(n=(t.size||"small").toLowerCase())&&"large"!==n&&(n="small"),{level:e,size:n}}return r}()},36936(t,e,n){"use strict";function r(t,e,n,r,o){var i={};return Object.keys(r).forEach(function(t){i[t]=r[t]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(n,r){return r(t,e,n)||n},i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer?(Object.defineProperty(t,e,i),null):i}n.d(e,{A:()=>r})},89575(t,e,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(null,arguments)}n.d(e,{A:()=>r})},59088(t,e,n){"use strict";function r(t,e,n,r){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}n.d(e,{A:()=>r})},72803(t,e,n){"use strict";n.d(e,{mN:()=>C,AH:()=>l,W3:()=>_,Ec:()=>v});const r=globalThis,o=r.ShadowRoot&&(void 0===r.ShadyCSS||r.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),a=new WeakMap;class s{constructor(t,e,n){if(this._$cssResult$=!0,n!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(o&&void 0===t){const n=void 0!==e&&1===e.length;n&&(t=a.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&a.set(e,t))}return t}toString(){return this.cssText}}const l=(t,...e)=>{const n=1===t.length?t[0]:e.reduce((e,n,r)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[r+1],t[0]);return new s(n,t,i)},c=(t,e)=>{if(o)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const n of e){const e=document.createElement("style"),o=r.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=n.cssText,t.appendChild(e)}},d=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return(t=>new s("string"==typeof t?t:t+"",void 0,i))(e)})(t):t,{is:p,defineProperty:h,getOwnPropertyDescriptor:u,getOwnPropertyNames:f,getOwnPropertySymbols:m,getPrototypeOf:g}=Object,b=globalThis,y=b.trustedTypes,w=y?y.emptyScript:"",A=b.reactiveElementPolyfillSupport,x=(t,e)=>t,_={toAttribute(t,e){switch(e){case Boolean:t=t?w:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},v=(t,e)=>!p(t,e),k={attribute:!0,type:String,converter:_,reflect:!1,useDefault:!1,hasChanged:v};Symbol.metadata??=Symbol("metadata"),b.litPropertyMetadata??=new WeakMap;class C extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=k){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const n=Symbol(),r=this.getPropertyDescriptor(t,n,e);void 0!==r&&h(this.prototype,t,r)}}static getPropertyDescriptor(t,e,n){const{get:r,set:o}=u(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:r,set(e){const i=r?.call(this);o?.call(this,e),this.requestUpdate(t,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??k}static _$Ei(){if(this.hasOwnProperty(x("elementProperties")))return;const t=g(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(x("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(x("properties"))){const t=this.properties,e=[...f(t),...m(t)];for(const n of e)this.createProperty(n,t[n])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,n]of e)this.elementProperties.set(t,n)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const n=this._$Eu(t,e);void 0!==n&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const t of n)e.unshift(d(t))}else void 0!==t&&e.push(d(t));return e}static _$Eu(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const n of e.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return c(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$ET(t,e){const n=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,n);if(void 0!==r&&!0===n.reflect){const o=(void 0!==n.converter?.toAttribute?n.converter:_).toAttribute(e,n.type);this._$Em=t,null==o?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,e){const n=this.constructor,r=n._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=n.getPropertyOptions(r),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:_;this._$Em=r;const i=o.fromAttribute(e,t.type);this[r]=i??this._$Ej?.get(r)??i,this._$Em=null}}requestUpdate(t,e,n,r=!1,o){if(void 0!==t){const i=this.constructor;if(!1===r&&(o=this[t]),n??=i.getPropertyOptions(t),!((n.hasChanged??v)(o,e)||n.useDefault&&n.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,n))))return;this.C(t,e,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:n,reflect:r,wrapped:o},i){n&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),!0!==o||void 0!==i)||(this._$AL.has(t)||(this.hasUpdated||n||(e=void 0),this._$AL.set(t,e)),!0===r&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,n]of t){const{wrapped:t}=n,r=this[e];!0!==t||this._$AL.has(e)||void 0===r||this.C(e,void 0,n,r)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}}C.elementStyles=[],C.shadowRootOptions={mode:"open"},C[x("elementProperties")]=new Map,C[x("finalized")]=new Map,A?.({ReactiveElement:C}),(b.reactiveElementVersions??=[]).push("2.1.2")},81318(t,e,n){"use strict";n.d(e,{KE:()=>ce,YY:()=>ut,CU:()=>st,bP:()=>me,gk:()=>X,T7:()=>zt,xe:()=>Ht,Nx:()=>Pt,eL:()=>Dt,gu:()=>Ft,FF:()=>qt,iI:()=>j,z6:()=>Rt,hO:()=>Wt,Op:()=>Zt,OX:()=>de,Zc:()=>ge,KV:()=>W,jT:()=>pe,gg:()=>be,Yp:()=>ue,JJ:()=>he,tG:()=>fe});var r=n(81570),o=n(73686),i=n(15939),a=n(16090),s=n(11329);const l=(t,e)=>!t.selection.empty&&(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function c(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const d=(t,e,n)=>{let o=c(t,n);if(!o)return!1;let i=f(o);if(!i){let n=o.blockRange(),r=n&&(0,s.jP)(n);return null!=r&&(e&&e(t.tr.lift(n,r).scrollIntoView()),!0)}let l=i.nodeBefore;if(E(t,i,e,-1))return!0;if(0==o.parent.content.size&&(h(l,"end")||r.nh.isSelectable(l)))for(let n=o.depth;;n--){let c=(0,s.$L)(t.doc,o.before(n),o.after(n),a.Ji.empty);if(c&&c.slice.size<c.to-c.from){if(e){let n=t.tr.step(c);n.setSelection(h(l,"end")?r.LN.findFrom(n.doc.resolve(n.mapping.map(i.pos,-1)),-1):r.nh.create(n.doc,i.pos-l.nodeSize)),e(n.scrollIntoView())}return!0}if(1==n||o.node(n-1).childCount>1)break}return!(!l.isAtom||i.depth!=o.depth-1)&&(e&&e(t.tr.delete(i.pos-l.nodeSize,i.pos).scrollIntoView()),!0)};function p(t,e,n){let o=e.nodeBefore,i=e.pos-1;for(;!o.isTextblock;i--){if(o.type.spec.isolating)return!1;let t=o.lastChild;if(!t)return!1;o=t}let l=e.nodeAfter,c=e.pos+1;for(;!l.isTextblock;c++){if(l.type.spec.isolating)return!1;let t=l.firstChild;if(!t)return!1;l=t}let d=(0,s.$L)(t.doc,i,c,a.Ji.empty);if(!d||d.from!=i||d instanceof s.Ln&&d.slice.size>=c-i)return!1;if(n){let e=t.tr.step(d);e.setSelection(r.U3.create(e.doc,i)),n(e.scrollIntoView())}return!0}function h(t,e,n=!1){for(let r=t;r;r="start"==e?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&1!=r.childCount)return!1}return!1}const u=(t,e,n)=>{let{$head:o,empty:i}=t.selection,a=o;if(!i)return!1;if(o.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):o.parentOffset>0)return!1;a=f(o)}let s=a&&a.nodeBefore;return!(!s||!r.nh.isSelectable(s))&&(e&&e(t.tr.setSelection(r.nh.create(t.doc,a.pos-s.nodeSize)).scrollIntoView()),!0)};function f(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function m(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const g=(t,e,n)=>{let o=m(t,n);if(!o)return!1;let i=y(o);if(!i)return!1;let l=i.nodeAfter;if(E(t,i,e,1))return!0;if(0==o.parent.content.size&&(h(l,"start")||r.nh.isSelectable(l))){let n=(0,s.$L)(t.doc,o.before(),o.after(),a.Ji.empty);if(n&&n.slice.size<n.to-n.from){if(e){let o=t.tr.step(n);o.setSelection(h(l,"start")?r.LN.findFrom(o.doc.resolve(o.mapping.map(i.pos)),1):r.nh.create(o.doc,o.mapping.map(i.pos))),e(o.scrollIntoView())}return!0}}return!(!l.isAtom||i.depth!=o.depth-1)&&(e&&e(t.tr.delete(i.pos,i.pos+l.nodeSize).scrollIntoView()),!0)},b=(t,e,n)=>{let{$head:o,empty:i}=t.selection,a=o;if(!i)return!1;if(o.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):o.parentOffset<o.parent.content.size)return!1;a=y(o)}let s=a&&a.nodeAfter;return!(!s||!r.nh.isSelectable(s))&&(e&&e(t.tr.setSelection(r.nh.create(t.doc,a.pos)).scrollIntoView()),!0)};function y(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){let n=t.node(e);if(t.index(e)+1<n.childCount)return t.doc.resolve(t.after(e+1));if(n.type.spec.isolating)break}return null}const w=(t,e)=>{let{$head:n,$anchor:r}=t.selection;return!(!n.parent.type.spec.code||!n.sameParent(r))&&(e&&e(t.tr.insertText("\n").scrollIntoView()),!0)};function A(t){for(let e=0;e<t.edgeCount;e++){let{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const x=(t,e)=>{let{$head:n,$anchor:o}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(o))return!1;let i=n.node(-1),a=n.indexAfter(-1),s=A(i.contentMatchAt(a));if(!s||!i.canReplaceWith(a,a,s))return!1;if(e){let o=n.after(),i=t.tr.replaceWith(o,o,s.createAndFill());i.setSelection(r.LN.near(i.doc.resolve(o),1)),e(i.scrollIntoView())}return!0},_=(t,e)=>{let n=t.selection,{$from:o,$to:i}=n;if(n instanceof r.i5||o.parent.inlineContent||i.parent.inlineContent)return!1;let a=A(i.parent.contentMatchAt(i.indexAfter()));if(!a||!a.isTextblock)return!1;if(e){let n=(!o.parentOffset&&i.index()<i.parent.childCount?o:i).pos,s=t.tr.insert(n,a.createAndFill());s.setSelection(r.U3.create(s.doc,n+1)),e(s.scrollIntoView())}return!0},v=(t,e)=>{let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let r=n.before();if((0,s.zy)(t.doc,r))return e&&e(t.tr.split(r).scrollIntoView()),!0}let r=n.blockRange(),o=r&&(0,s.jP)(r);return null!=o&&(e&&e(t.tr.lift(r,o).scrollIntoView()),!0)};const k=(t,e)=>{let{$from:n,$to:o}=t.selection;if(t.selection instanceof r.nh&&t.selection.node.isBlock)return!(!n.parentOffset||!(0,s.zy)(t.doc,n.pos)||(e&&e(t.tr.split(n.pos).scrollIntoView()),0));if(!n.depth)return!1;let i,a,l=[],c=!1,d=!1;for(let t=n.depth;;t--){if(n.node(t).isBlock){c=n.end(t)==n.pos+(n.depth-t),d=n.start(t)==n.pos-(n.depth-t),a=A(n.node(t-1).contentMatchAt(n.indexAfter(t-1)));let e=C&&C(o.parent,c,n);l.unshift(e||(c&&a?{type:a}:null)),i=t;break}if(1==t)return!1;l.unshift(null)}let p=t.tr;(t.selection instanceof r.U3||t.selection instanceof r.i5)&&p.deleteSelection();let h=p.mapping.map(n.pos),u=(0,s.zy)(p.doc,h,l.length,l);if(u||(l[0]=a?{type:a}:null,u=(0,s.zy)(p.doc,h,l.length,l)),!u)return!1;if(p.split(h,l.length,l),!c&&d&&n.node(i).type!=a){let t=p.mapping.map(n.before(i)),e=p.doc.resolve(t);a&&n.node(i-1).canReplaceWith(e.index(),e.index()+1,a)&&p.setNodeMarkup(p.mapping.map(n.before(i)),a)}return e&&e(p.scrollIntoView()),!0};var C;function E(t,e,n,o){let i,l,c=e.nodeBefore,d=e.nodeAfter,p=c.type.spec.isolating||d.type.spec.isolating;if(!p&&function(t,e,n){let r=e.nodeBefore,o=e.nodeAfter,i=e.index();return!(!(r&&o&&r.type.compatibleContent(o.type))||(!r.content.size&&e.parent.canReplace(i-1,i)?(n&&n(t.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),0):!e.parent.canReplace(i,i+1)||!o.isTextblock&&!(0,s.n9)(t.doc,e.pos)||(n&&n(t.tr.join(e.pos).scrollIntoView()),0)))}(t,e,n))return!0;let u=!p&&e.parent.canReplace(e.index(),e.index()+1);if(u&&(i=(l=c.contentMatchAt(c.childCount)).findWrapping(d.type))&&l.matchType(i[0]||d.type).validEnd){if(n){let r=e.pos+d.nodeSize,o=a.FK.empty;for(let t=i.length-1;t>=0;t--)o=a.FK.from(i[t].create(null,o));o=a.FK.from(c.copy(o));let l=t.tr.step(new s.Wg(e.pos-1,r,e.pos,r,new a.Ji(o,1,0),i.length,!0)),p=l.doc.resolve(r+2*i.length);p.nodeAfter&&p.nodeAfter.type==c.type&&(0,s.n9)(l.doc,p.pos)&&l.join(p.pos),n(l.scrollIntoView())}return!0}let f=d.type.spec.isolating||o>0&&p?null:r.LN.findFrom(e,1),m=f&&f.$from.blockRange(f.$to),g=m&&(0,s.jP)(m);if(null!=g&&g>=e.depth)return n&&n(t.tr.lift(m,g).scrollIntoView()),!0;if(u&&h(d,"start",!0)&&h(c,"end")){let r=c,o=[];for(;o.push(r),!r.isTextblock;)r=r.lastChild;let i=d,l=1;for(;!i.isTextblock;i=i.firstChild)l++;if(r.canReplace(r.childCount,r.childCount,i.content)){if(n){let r=a.FK.empty;for(let t=o.length-1;t>=0;t--)r=a.FK.from(o[t].copy(r));n(t.tr.step(new s.Wg(e.pos-o.length,e.pos+d.nodeSize,e.pos+l,e.pos+d.nodeSize-l,new a.Ji(r,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function S(t){return function(e,n){let o=e.selection,i=t<0?o.$from:o.$to,a=i.depth;for(;i.node(a).isInline;){if(!a)return!1;a--}return!!i.node(a).isTextblock&&(n&&n(e.tr.setSelection(r.U3.create(e.doc,t<0?i.start(a):i.end(a)))),!0)}}const M=S(-1),B=S(1);function T(t,e=null){return function(n,r){let o=!1;for(let r=0;r<n.selection.ranges.length&&!o;r++){let{$from:{pos:i},$to:{pos:a}}=n.selection.ranges[r];n.doc.nodesBetween(i,a,(r,i)=>{if(o)return!1;if(r.isTextblock&&!r.hasMarkup(t,e))if(r.type==t)o=!0;else{let e=n.doc.resolve(i),r=e.index();o=e.parent.canReplaceWith(r,r+1,t)}})}if(!o)return!1;if(r){let o=n.tr;for(let r=0;r<n.selection.ranges.length;r++){let{$from:{pos:i},$to:{pos:a}}=n.selection.ranges[r];o.setBlockType(i,a,t,e)}r(o.scrollIntoView())}return!0}}function L(...t){return function(e,n,r){for(let o=0;o<t.length;o++)if(t[o](e,n,r))return!0;return!1}}let O=L(l,d,u),I=L(l,g,b);const N={Enter:L(w,_,v,k),"Mod-Enter":x,Backspace:O,"Mod-Backspace":O,"Shift-Backspace":O,Delete:I,"Mod-Delete":I,"Mod-a":(t,e)=>(e&&e(t.tr.setSelection(new r.i5(t.doc))),!0)},R={"Ctrl-h":N.Backspace,"Alt-Backspace":N["Mod-Backspace"],"Ctrl-d":N.Delete,"Ctrl-Alt-Backspace":N["Mod-Delete"],"Alt-Delete":N["Mod-Delete"],"Alt-d":N["Mod-Delete"],"Ctrl-a":M,"Ctrl-e":B};for(let t in N)R[t]=N[t];"undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!("undefined"==typeof os||!os.platform)&&os.platform();function z(t,e=null){return function(n,r){let{$from:o,$to:i}=n.selection,l=o.blockRange(i);if(!l)return!1;let c=r?n.tr:null;return!!function(t,e,n,r=null){let o=!1,i=e,l=e.$from.doc;if(e.depth>=2&&e.$from.node(e.depth-1).type.compatibleContent(n)&&0==e.startIndex){if(0==e.$from.index(e.depth-1))return!1;let t=l.resolve(e.start-2);i=new a.u$(t,t,e.depth),e.endIndex<e.parent.childCount&&(e=new a.u$(e.$from,l.resolve(e.$to.end(e.depth)),e.depth)),o=!0}let c=(0,s.oM)(i,n,r,e);if(!c)return!1;t&&function(t,e,n,r,o){let i=a.FK.empty;for(let t=n.length-1;t>=0;t--)i=a.FK.from(n[t].type.create(n[t].attrs,i));t.step(new s.Wg(e.start-(r?2:0),e.end,e.start,e.end,new a.Ji(i,0,0),n.length,!0));let l=0;for(let t=0;t<n.length;t++)n[t].type==o&&(l=t+1);let c=n.length-l,d=e.start+n.length-(r?2:0),p=e.parent;for(let n=e.startIndex,r=e.endIndex,o=!0;n<r;n++,o=!1)!o&&(0,s.zy)(t.doc,d,c)&&(t.split(d,c),d+=2*c),d+=p.child(n).nodeSize}(t,e,c,o,n);return!0}(c,l,t,e)&&(r&&r(c.scrollIntoView()),!0)}}function H(t){return function(e,n){let{$from:r,$to:o}=e.selection,i=r.blockRange(o,e=>e.childCount>0&&e.firstChild.type==t);return!!i&&(!n||(r.node(i.depth-1).type==t?function(t,e,n,r){let o=t.tr,i=r.end,l=r.$to.end(r.depth);i<l&&(o.step(new s.Wg(i-1,l,i,l,new a.Ji(a.FK.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new a.u$(o.doc.resolve(r.$from.pos),o.doc.resolve(l),r.depth));const c=(0,s.jP)(r);if(null==c)return!1;o.lift(r,c);let d=o.doc.resolve(o.mapping.map(i,-1)-1);(0,s.n9)(o.doc,d.pos)&&d.nodeBefore.type==d.nodeAfter.type&&o.join(d.pos);return e(o.scrollIntoView()),!0}(e,n,t,i):function(t,e,n){let r=t.tr,o=n.parent;for(let t=n.end,e=n.endIndex-1,i=n.startIndex;e>i;e--)t-=o.child(e).nodeSize,r.delete(t-1,t+1);let i=r.doc.resolve(n.start),l=i.nodeAfter;if(r.mapping.map(n.end)!=n.start+i.nodeAfter.nodeSize)return!1;let c=0==n.startIndex,d=n.endIndex==o.childCount,p=i.node(-1),h=i.index(-1);if(!p.canReplace(h+(c?0:1),h+1,l.content.append(d?a.FK.empty:a.FK.from(o))))return!1;let u=i.pos,f=u+l.nodeSize;return r.step(new s.Wg(u-(c?1:0),f+(d?1:0),u+1,f-1,new a.Ji((c?a.FK.empty:a.FK.from(o.copy(a.FK.empty))).append(d?a.FK.empty:a.FK.from(o.copy(a.FK.empty))),c?0:1,d?0:1),c?0:1)),e(r.scrollIntoView()),!0}(e,n,i)))}}function P(t){const{state:e,transaction:n}=t;let{selection:r}=n,{doc:o}=n,{storedMarks:i}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return i},get selection(){return r},get doc(){return o},get tr(){return r=n.selection,o=n.doc,i=n.storedMarks,n}}}class D{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:e,state:n}=this,{view:r}=e,{tr:o}=n,i=this.buildProps(o);return Object.fromEntries(Object.entries(t).map(([t,e])=>[t,(...t)=>{const n=e(...t)(i);return o.getMeta("preventDispatch")||this.hasCustomState||r.dispatch(o),n}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,e=!0){const{rawCommands:n,editor:r,state:o}=this,{view:i}=r,a=[],s=!!t,l=t||o.tr,c={...Object.fromEntries(Object.entries(n).map(([t,n])=>[t,(...t)=>{const r=this.buildProps(l,e),o=n(...t)(r);return a.push(o),c}])),run:()=>(s||!e||l.getMeta("preventDispatch")||this.hasCustomState||i.dispatch(l),a.every(t=>!0===t))};return c}createCan(t){const{rawCommands:e,state:n}=this,r=!1,o=t||n.tr,i=this.buildProps(o,r),a=Object.fromEntries(Object.entries(e).map(([t,e])=>[t,(...t)=>e(...t)({...i,dispatch:void 0})]));return{...a,chain:()=>this.createChain(o,r)}}buildProps(t,e=!0){const{rawCommands:n,editor:r,state:o}=this,{view:i}=r,a={tr:t,editor:r,view:i,state:P({state:o,transaction:t}),dispatch:e?()=>{}:void 0,chain:()=>this.createChain(t,e),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(n).map(([t,e])=>[t,(...t)=>e(...t)(a)]))}};return a}}class ${constructor(){this.callbacks={}}on(t,e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),this}emit(t,...e){const n=this.callbacks[t];return n&&n.forEach(t=>t.apply(this,e)),this}off(t,e){const n=this.callbacks[t];return n&&(e?this.callbacks[t]=n.filter(t=>t!==e):delete this.callbacks[t]),this}once(t,e){const n=(...r)=>{this.off(t,n),e.apply(this,r)};return this.on(t,n)}removeAllListeners(){this.callbacks={}}}function j(t,e,n){if(void 0===t.config[e]&&t.parent)return j(t.parent,e,n);if("function"==typeof t.config[e]){return t.config[e].bind({...n,parent:t.parent?j(t.parent,e,n):null})}return t.config[e]}function F(t){return{baseExtensions:t.filter(t=>"extension"===t.type),nodeExtensions:t.filter(t=>"node"===t.type),markExtensions:t.filter(t=>"mark"===t.type)}}function U(t){const e=[],{nodeExtensions:n,markExtensions:r}=F(t),o=[...n,...r],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach(t=>{const n=j(t,"addGlobalAttributes",{name:t.name,options:t.options,storage:t.storage,extensions:o});if(!n)return;n().forEach(t=>{t.types.forEach(n=>{Object.entries(t.attributes).forEach(([t,r])=>{e.push({type:n,name:t,attribute:{...i,...r}})})})})}),o.forEach(t=>{const n={name:t.name,options:t.options,storage:t.storage},r=j(t,"addAttributes",n);if(!r)return;const o=r();Object.entries(o).forEach(([n,r])=>{const o={...i,...r};"function"==typeof(null==o?void 0:o.default)&&(o.default=o.default()),(null==o?void 0:o.isRequired)&&void 0===(null==o?void 0:o.default)&&delete o.default,e.push({type:t.name,name:n,attribute:o})})}),e}function q(t,e){if("string"==typeof t){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}function W(...t){return t.filter(t=>!!t).reduce((t,e)=>{const n={...t};return Object.entries(e).forEach(([t,e])=>{if(n[t])if("class"===t){const r=e?String(e).split(" "):[],o=n[t]?n[t].split(" "):[],i=r.filter(t=>!o.includes(t));n[t]=[...o,...i].join(" ")}else if("style"===t){const r=e?e.split(";").map(t=>t.trim()).filter(Boolean):[],o=n[t]?n[t].split(";").map(t=>t.trim()).filter(Boolean):[],i=new Map;o.forEach(t=>{const[e,n]=t.split(":").map(t=>t.trim());i.set(e,n)}),r.forEach(t=>{const[e,n]=t.split(":").map(t=>t.trim());i.set(e,n)}),n[t]=Array.from(i.entries()).map(([t,e])=>`${t}: ${e}`).join("; ")}else n[t]=e;else n[t]=e}),n},{})}function V(t,e){return e.filter(e=>e.type===t.type.name).filter(t=>t.attribute.rendered).map(e=>e.attribute.renderHTML?e.attribute.renderHTML(t.attrs)||{}:{[e.name]:t.attrs[e.name]}).reduce((t,e)=>W(t,e),{})}function Y(t){return"function"==typeof t}function X(t,e=void 0,...n){return Y(t)?e?t.bind(e)(...n):t(...n):t}function Z(t,e){return"style"in t?t:{...t,getAttrs:n=>{const r=t.getAttrs?t.getAttrs(n):t.attrs;if(!1===r)return!1;const o=e.reduce((t,e)=>{const r=e.attribute.parseHTML?e.attribute.parseHTML(n):function(t){return"string"!=typeof t?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):"true"===t||"false"!==t&&t}(n.getAttribute(e.name));return null==r?t:{...t,[e.name]:r}},{});return{...r,...o}}}}function K(t){return Object.fromEntries(Object.entries(t).filter(([t,e])=>("attrs"!==t||!function(t={}){return 0===Object.keys(t).length&&t.constructor===Object}(e))&&null!=e))}function J(t,e){var n;const r=U(t),{nodeExtensions:o,markExtensions:i}=F(t),s=null===(n=o.find(t=>j(t,"topNode")))||void 0===n?void 0:n.name,l=Object.fromEntries(o.map(n=>{const o=r.filter(t=>t.type===n.name),i={name:n.name,options:n.options,storage:n.storage,editor:e},a=K({...t.reduce((t,e)=>{const r=j(e,"extendNodeSchema",i);return{...t,...r?r(n):{}}},{}),content:X(j(n,"content",i)),marks:X(j(n,"marks",i)),group:X(j(n,"group",i)),inline:X(j(n,"inline",i)),atom:X(j(n,"atom",i)),selectable:X(j(n,"selectable",i)),draggable:X(j(n,"draggable",i)),code:X(j(n,"code",i)),whitespace:X(j(n,"whitespace",i)),linebreakReplacement:X(j(n,"linebreakReplacement",i)),defining:X(j(n,"defining",i)),isolating:X(j(n,"isolating",i)),attrs:Object.fromEntries(o.map(t=>{var e;return[t.name,{default:null===(e=null==t?void 0:t.attribute)||void 0===e?void 0:e.default}]}))}),s=X(j(n,"parseHTML",i));s&&(a.parseDOM=s.map(t=>Z(t,o)));const l=j(n,"renderHTML",i);l&&(a.toDOM=t=>l({node:t,HTMLAttributes:V(t,o)}));const c=j(n,"renderText",i);return c&&(a.toText=c),[n.name,a]})),c=Object.fromEntries(i.map(n=>{const o=r.filter(t=>t.type===n.name),i={name:n.name,options:n.options,storage:n.storage,editor:e},a=K({...t.reduce((t,e)=>{const r=j(e,"extendMarkSchema",i);return{...t,...r?r(n):{}}},{}),inclusive:X(j(n,"inclusive",i)),excludes:X(j(n,"excludes",i)),group:X(j(n,"group",i)),spanning:X(j(n,"spanning",i)),code:X(j(n,"code",i)),attrs:Object.fromEntries(o.map(t=>{var e;return[t.name,{default:null===(e=null==t?void 0:t.attribute)||void 0===e?void 0:e.default}]}))}),s=X(j(n,"parseHTML",i));s&&(a.parseDOM=s.map(t=>Z(t,o)));const l=j(n,"renderHTML",i);return l&&(a.toDOM=t=>l({mark:t,HTMLAttributes:V(t,o)})),[n.name,a]}));return new a.Sj({topNode:s,nodes:l,marks:c})}function G(t,e){return e.nodes[t]||e.marks[t]||null}function Q(t,e){return Array.isArray(e)?e.some(e=>("string"==typeof e?e:e.name)===t.name):e}function tt(t,e){const n=a.ZF.fromSchema(e).serializeFragment(t),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}function et(t){return"[object RegExp]"===Object.prototype.toString.call(t)}class nt{constructor(t){this.find=t.find,this.handler=t.handler}}function rt(t){var e;const{editor:n,from:r,to:o,text:i,rules:a,plugin:s}=t,{view:l}=n;if(l.composing)return!1;const c=l.state.doc.resolve(r);if(c.parent.type.spec.code||(null===(e=c.nodeBefore||c.nodeAfter)||void 0===e?void 0:e.marks.find(t=>t.type.spec.code)))return!1;let d=!1;const p=((t,e=500)=>{let n="";const r=t.parentOffset;return t.parent.nodesBetween(Math.max(0,r-e),r,(t,e,o,i)=>{var a,s;const l=(null===(s=(a=t.type.spec).toText)||void 0===s?void 0:s.call(a,{node:t,pos:e,parent:o,index:i}))||t.textContent||"%leaf%";n+=t.isAtom&&!t.isText?l:l.slice(0,Math.max(0,r-e))}),n})(c)+i;return a.forEach(t=>{if(d)return;const e=((t,e)=>{if(et(e))return e.exec(t);const n=e(t);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=t,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r})(p,t.find);if(!e)return;const a=l.state.tr,c=P({state:l.state,transaction:a}),h={from:r-(e[0].length-i.length),to:o},{commands:u,chain:f,can:m}=new D({editor:n,state:c});null!==t.handler({state:c,range:h,match:e,commands:u,chain:f,can:m})&&a.steps.length&&(a.setMeta(s,{transform:a,from:r,to:o,text:i}),l.dispatch(a),d=!0)}),d}function ot(t){const{editor:e,rules:n}=t,o=new r.k_({state:{init:()=>null,apply(t,r,i){const s=t.getMeta(o);if(s)return s;const l=t.getMeta("applyInputRules");return!!l&&setTimeout(()=>{let{text:t}=l;"string"==typeof t||(t=tt(a.FK.from(t),i.schema));const{from:r}=l,s=r+t.length;rt({editor:e,from:r,to:s,text:t,rules:n,plugin:o})}),t.selectionSet||t.docChanged?null:r}},props:{handleTextInput:(t,r,i,a)=>rt({editor:e,from:r,to:i,text:a,rules:n,plugin:o}),handleDOMEvents:{compositionend:t=>(setTimeout(()=>{const{$cursor:r}=t.state.selection;r&&rt({editor:e,from:r.pos,to:r.pos,text:"",rules:n,plugin:o})}),!1)},handleKeyDown(t,r){if("Enter"!==r.key)return!1;const{$cursor:i}=t.state.selection;return!!i&&rt({editor:e,from:i.pos,to:i.pos,text:"\n",rules:n,plugin:o})}},isInputRules:!0});return o}function it(t){return"Object"===function(t){return Object.prototype.toString.call(t).slice(8,-1)}(t)&&(t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype)}function at(t,e){const n={...t};return it(t)&&it(e)&&Object.keys(e).forEach(r=>{it(e[r])&&it(t[r])?n[r]=at(t[r],e[r]):n[r]=e[r]}),n}class st{constructor(t={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=X(j(this,"addOptions",{name:this.name}))),this.storage=X(j(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new st(t)}configure(t={}){const e=this.extend({...this.config,addOptions:()=>at(this.options,t)});return e.name=this.name,e.parent=this.parent,e}extend(t={}){const e=new st(t);return e.parent=this,this.child=e,e.name=t.name?t.name:e.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=X(j(e,"addOptions",{name:e.name})),e.storage=X(j(e,"addStorage",{name:e.name,options:e.options})),e}static handleExit({editor:t,mark:e}){const{tr:n}=t.state,r=t.state.selection.$from;if(r.pos===r.end()){const o=r.marks();if(!!!o.find(t=>(null==t?void 0:t.type.name)===e.name))return!1;const i=o.find(t=>(null==t?void 0:t.type.name)===e.name);return i&&n.removeStoredMark(i),n.insertText(" ",r.pos),t.view.dispatch(n),!0}return!1}}class lt{constructor(t){this.find=t.find,this.handler=t.handler}}function ct(t){const{editor:e,state:n,from:r,to:o,rule:i,pasteEvent:a,dropEvent:s}=t,{commands:l,chain:c,can:d}=new D({editor:e,state:n}),p=[];n.doc.nodesBetween(r,o,(t,e)=>{if(!t.isTextblock||t.type.spec.code)return;const h=Math.max(r,e),u=Math.min(o,e+t.content.size);((t,e,n)=>{if(et(e))return[...t.matchAll(e)];const r=e(t,n);return r?r.map(e=>{const n=[e.text];return n.index=e.index,n.input=t,n.data=e.data,e.replaceWith&&(e.text.includes(e.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),n.push(e.replaceWith)),n}):[]})(t.textBetween(h-e,u-e,void 0,"๏ฟผ"),i.find,a).forEach(t=>{if(void 0===t.index)return;const e=h+t.index+1,r=e+t[0].length,o={from:n.tr.mapping.map(e),to:n.tr.mapping.map(r)},u=i.handler({state:n,range:o,match:t,commands:l,chain:c,can:d,pasteEvent:a,dropEvent:s});p.push(u)})});return p.every(t=>null!==t)}let dt=null;function pt(t){const{editor:e,rules:n}=t;let o,i=null,s=!1,l=!1,c="undefined"!=typeof ClipboardEvent?new ClipboardEvent("paste"):null;try{o="undefined"!=typeof DragEvent?new DragEvent("drop"):null}catch{o=null}const d=({state:t,from:n,to:r,rule:i,pasteEvt:a})=>{const s=t.tr,l=P({state:t,transaction:s});if(ct({editor:e,state:l,from:Math.max(n-1,0),to:r.b-1,rule:i,pasteEvent:a,dropEvent:o})&&s.steps.length){try{o="undefined"!=typeof DragEvent?new DragEvent("drop"):null}catch{o=null}return c="undefined"!=typeof ClipboardEvent?new ClipboardEvent("paste"):null,s}};return n.map(t=>new r.k_({view(t){const n=n=>{var r;i=(null===(r=t.dom.parentElement)||void 0===r?void 0:r.contains(n.target))?t.dom.parentElement:null,i&&(dt=e)},r=()=>{dt&&(dt=null)};return window.addEventListener("dragstart",n),window.addEventListener("dragend",r),{destroy(){window.removeEventListener("dragstart",n),window.removeEventListener("dragend",r)}}},props:{handleDOMEvents:{drop:(t,e)=>{if(l=i===t.dom.parentElement,o=e,!l){const t=dt;(null==t?void 0:t.isEditable)&&setTimeout(()=>{const e=t.state.selection;e&&t.commands.deleteRange({from:e.from,to:e.to})},10)}return!1},paste:(t,e)=>{var n;const r=null===(n=e.clipboardData)||void 0===n?void 0:n.getData("text/html");return c=e,s=!!(null==r?void 0:r.includes("data-pm-slice")),!1}}},appendTransaction:(e,n,r)=>{const o=e[0],i="paste"===o.getMeta("uiEvent")&&!s,p="drop"===o.getMeta("uiEvent")&&!l,h=o.getMeta("applyPasteRules"),u=!!h;if(!i&&!p&&!u)return;if(u){let{text:e}=h;"string"==typeof e||(e=tt(a.FK.from(e),r.schema));const{from:n}=h,o=n+e.length,i=(t=>{var e;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return null===(e=n.clipboardData)||void 0===e||e.setData("text/html",t),n})(e);return d({rule:t,state:r,from:n,to:{b:o},pasteEvt:i})}const f=n.doc.content.findDiffStart(r.doc.content),m=n.doc.content.findDiffEnd(r.doc.content);return"number"==typeof f&&m&&f!==m.b?d({rule:t,state:r,from:f,to:m,pasteEvt:c}):void 0}}))}class ht{constructor(t,e){this.splittableMarks=[],this.editor=e,this.extensions=ht.resolve(t),this.schema=J(this.extensions,e),this.setupExtensions()}static resolve(t){const e=ht.sort(ht.flatten(t)),n=function(t){const e=t.filter((e,n)=>t.indexOf(e)!==n);return Array.from(new Set(e))}(e.map(t=>t.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(t=>`'${t}'`).join(", ")}]. This can lead to issues.`),e}static flatten(t){return t.map(t=>{const e=j(t,"addExtensions",{name:t.name,options:t.options,storage:t.storage});return e?[t,...this.flatten(e())]:t}).flat(10)}static sort(t){return t.sort((t,e)=>{const n=j(t,"priority")||100,r=j(e,"priority")||100;return n>r?-1:n<r?1:0})}get commands(){return this.extensions.reduce((t,e)=>{const n=j(e,"addCommands",{name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:G(e.name,this.schema)});return n?{...t,...n()}:t},{})}get plugins(){const{editor:t}=this,e=ht.sort([...this.extensions].reverse()),n=[],r=[],o=e.map(e=>{const o={name:e.name,options:e.options,storage:e.storage,editor:t,type:G(e.name,this.schema)},a=[],s=j(e,"addKeyboardShortcuts",o);let l={};if("mark"===e.type&&j(e,"exitable",o)&&(l.ArrowRight=()=>st.handleExit({editor:t,mark:e})),s){const e=Object.fromEntries(Object.entries(s()).map(([e,n])=>[e,()=>n({editor:t})]));l={...l,...e}}const c=(0,i.w)(l);a.push(c);const d=j(e,"addInputRules",o);Q(e,t.options.enableInputRules)&&d&&n.push(...d());const p=j(e,"addPasteRules",o);Q(e,t.options.enablePasteRules)&&p&&r.push(...p());const h=j(e,"addProseMirrorPlugins",o);if(h){const t=h();a.push(...t)}return a}).flat();return[ot({editor:t,rules:n}),...pt({editor:t,rules:r}),...o]}get attributes(){return U(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:e}=F(this.extensions);return Object.fromEntries(e.filter(t=>!!j(t,"addNodeView")).map(e=>{const n=this.attributes.filter(t=>t.type===e.name),r={name:e.name,options:e.options,storage:e.storage,editor:t,type:q(e.name,this.schema)},o=j(e,"addNodeView",r);if(!o)return[];return[e.name,(r,i,a,s,l)=>{const c=V(r,n);return o()({node:r,view:i,getPos:a,decorations:s,innerDecorations:l,editor:t,extension:e,HTMLAttributes:c})}]}))}setupExtensions(){this.extensions.forEach(t=>{var e;this.editor.extensionStorage[t.name]=t.storage;const n={name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:G(t.name,this.schema)};if("mark"===t.type){(null===(e=X(j(t,"keepOnSplit",n)))||void 0===e||e)&&this.splittableMarks.push(t.name)}const r=j(t,"onBeforeCreate",n),o=j(t,"onCreate",n),i=j(t,"onUpdate",n),a=j(t,"onSelectionUpdate",n),s=j(t,"onTransaction",n),l=j(t,"onFocus",n),c=j(t,"onBlur",n),d=j(t,"onDestroy",n);r&&this.editor.on("beforeCreate",r),o&&this.editor.on("create",o),i&&this.editor.on("update",i),a&&this.editor.on("selectionUpdate",a),s&&this.editor.on("transaction",s),l&&this.editor.on("focus",l),c&&this.editor.on("blur",c),d&&this.editor.on("destroy",d)})}}class ut{constructor(t={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=X(j(this,"addOptions",{name:this.name}))),this.storage=X(j(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new ut(t)}configure(t={}){const e=this.extend({...this.config,addOptions:()=>at(this.options,t)});return e.name=this.name,e.parent=this.parent,e}extend(t={}){const e=new ut({...this.config,...t});return e.parent=this,this.child=e,e.name=t.name?t.name:e.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=X(j(e,"addOptions",{name:e.name})),e.storage=X(j(e,"addStorage",{name:e.name,options:e.options})),e}}function ft(t,e,n){const{from:r,to:o}=e,{blockSeparator:i="\n\n",textSerializers:a={}}=n||{};let s="";return t.nodesBetween(r,o,(t,n,l,c)=>{var d;t.isBlock&&n>r&&(s+=i);const p=null==a?void 0:a[t.type.name];if(p)return l&&(s+=p({node:t,pos:n,parent:l,index:c,range:e})),!1;t.isText&&(s+=null===(d=null==t?void 0:t.text)||void 0===d?void 0:d.slice(Math.max(r,n)-n,o-n))}),s}function mt(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,t])=>t.spec.toText).map(([t,e])=>[t,e.spec.toText]))}const gt=ut.create({name:"clipboardTextSerializer",addOptions:()=>({blockSeparator:void 0}),addProseMirrorPlugins(){return[new r.k_({key:new r.hs("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:r,selection:o}=e,{ranges:i}=o,a=Math.min(...i.map(t=>t.$from.pos)),s=Math.max(...i.map(t=>t.$to.pos)),l=mt(n);return ft(r,{from:a,to:s},{...void 0!==this.options.blockSeparator?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}});function bt(t,e,n={strict:!0}){const r=Object.keys(e);return!r.length||r.every(r=>n.strict?e[r]===t[r]:et(e[r])?e[r].test(t[r]):e[r]===t[r])}function yt(t,e,n={}){return t.find(t=>t.type===e&&bt(Object.fromEntries(Object.keys(n).map(e=>[e,t.attrs[e]])),n))}function wt(t,e,n={}){return!!yt(t,e,n)}function At(t,e,n){var r;if(!t||!e)return;let o=t.parent.childAfter(t.parentOffset);if(o.node&&o.node.marks.some(t=>t.type===e)||(o=t.parent.childBefore(t.parentOffset)),!o.node||!o.node.marks.some(t=>t.type===e))return;n=n||(null===(r=o.node.marks[0])||void 0===r?void 0:r.attrs);if(!yt([...o.node.marks],e,n))return;let i=o.index,a=t.start()+o.offset,s=i+1,l=a+o.node.nodeSize;for(;i>0&&wt([...t.parent.child(i-1).marks],e,n);)i-=1,a-=t.parent.child(i).nodeSize;for(;s<t.parent.childCount&&wt([...t.parent.child(s).marks],e,n);)l+=t.parent.child(s).nodeSize,s+=1;return{from:a,to:l}}function xt(t,e){if("string"==typeof t){if(!e.marks[t])throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);return e.marks[t]}return t}function _t(t){return t instanceof r.U3}function vt(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function kt(t,e=null){if(!e)return null;const n=r.LN.atStart(t),o=r.LN.atEnd(t);if("start"===e||!0===e)return n;if("end"===e)return o;const i=n.from,a=o.to;return"all"===e?r.U3.create(t,vt(0,i,a),vt(t.content.size,i,a)):r.U3.create(t,vt(e,i,a),vt(e,i,a))}function Ct(){return"Android"===navigator.platform||/android/i.test(navigator.userAgent)}function Et(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const St=t=>{const e=t.childNodes;for(let n=e.length-1;n>=0;n-=1){const r=e[n];3===r.nodeType&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?t.removeChild(r):1===r.nodeType&&St(r)}return t};function Mt(t){const e=`<body>${t}</body>`,n=(new window.DOMParser).parseFromString(e,"text/html").body;return St(n)}function Bt(t,e,n){if(t instanceof a.bP||t instanceof a.FK)return t;n={slice:!0,parseOptions:{},...n};const r="string"==typeof t;if("object"==typeof t&&null!==t)try{if(Array.isArray(t)&&t.length>0)return a.FK.fromArray(t.map(t=>e.nodeFromJSON(t)));const r=e.nodeFromJSON(t);return n.errorOnInvalidContent&&r.check(),r}catch(r){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:r});return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",r),Bt("",e,n)}if(r){if(n.errorOnInvalidContent){let r=!1,o="";const i=new a.Sj({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:t=>(r=!0,o="string"==typeof t?t:t.outerHTML,null)}]}})});if(n.slice?a.S4.fromSchema(i).parseSlice(Mt(t),n.parseOptions):a.S4.fromSchema(i).parse(Mt(t),n.parseOptions),n.errorOnInvalidContent&&r)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${o}`)})}const r=a.S4.fromSchema(e);return n.slice?r.parseSlice(Mt(t),n.parseOptions).content:r.parse(Mt(t),n.parseOptions)}return Bt("",e,n)}function Tt(){return"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)}function Lt(t,e,n={}){const{from:r,to:o,empty:i}=t.selection,a=e?q(e,t.schema):null,s=[];t.doc.nodesBetween(r,o,(t,e)=>{if(t.isText)return;const n=Math.max(r,e),i=Math.min(o,e+t.nodeSize);s.push({node:t,from:n,to:i})});const l=o-r,c=s.filter(t=>!a||a.name===t.node.type.name).filter(t=>bt(t.node.attrs,n,{strict:!1}));if(i)return!!c.length;return c.reduce((t,e)=>t+e.to-e.from,0)>=l}function Ot(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function It(t,e){const n="string"==typeof e?[e]:e;return Object.keys(t).reduce((e,r)=>(n.includes(r)||(e[r]=t[r]),e),{})}function Nt(t,e,n={},r={}){return Bt(t,e,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}function Rt(t,e){const n=xt(e,t.schema),{from:r,to:o,empty:i}=t.selection,a=[];i?(t.storedMarks&&a.push(...t.storedMarks),a.push(...t.selection.$head.marks())):t.doc.nodesBetween(r,o,t=>{a.push(...t.marks)});const s=a.find(t=>t.type.name===n.name);return s?{...s.attrs}:{}}function zt(t,e){const n=new s.dL(t);return e.forEach(t=>{t.steps.forEach(t=>{n.step(t)})}),n}function Ht(t,e){const n=[];return t.descendants((t,r)=>{e(t)&&n.push({node:t,pos:r})}),n}function Pt(t,e,n){const r=[];return t.nodesBetween(e.from,e.to,(t,e)=>{n(t)&&r.push({node:t,pos:e})}),r}function Dt(t,e){for(let n=t.depth;n>0;n-=1){const r=t.node(n);if(e(r))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:r}}}function $t(t){return e=>Dt(e.$from,t)}function jt(t,e){return ft(t,{from:0,to:t.content.size},e)}function Ft(t,e){const n=Ot("string"==typeof e?e:e.name,t.schema);return"node"===n?function(t,e){const n=q(e,t.schema),{from:r,to:o}=t.selection,i=[];t.doc.nodesBetween(r,o,t=>{i.push(t)});const a=i.reverse().find(t=>t.type.name===n.name);return a?{...a.attrs}:{}}(t,e):"mark"===n?Rt(t,e):{}}function Ut(t){const e=function(t,e=JSON.stringify){const n={};return t.filter(t=>{const r=e(t);return!Object.prototype.hasOwnProperty.call(n,r)&&(n[r]=!0)})}(t);return 1===e.length?e:e.filter((t,n)=>!e.filter((t,e)=>e!==n).some(e=>t.oldRange.from>=e.oldRange.from&&t.oldRange.to<=e.oldRange.to&&t.newRange.from>=e.newRange.from&&t.newRange.to<=e.newRange.to))}function qt(t){const{mapping:e,steps:n}=t,r=[];return e.maps.forEach((t,o)=>{const i=[];if(t.ranges.length)t.forEach((t,e)=>{i.push({from:t,to:e})});else{const{from:t,to:e}=n[o];if(void 0===t||void 0===e)return;i.push({from:t,to:e})}i.forEach(({from:t,to:n})=>{const i=e.slice(o).map(t,-1),a=e.slice(o).map(n),s=e.invert().map(i,-1),l=e.invert().map(a);r.push({oldRange:{from:s,to:l},newRange:{from:i,to:a}})})}),Ut(r)}function Wt(t,e,n){const r=[];return t===e?n.resolve(t).marks().forEach(e=>{const o=At(n.resolve(t),e.type);o&&r.push({mark:e,...o})}):n.nodesBetween(t,e,(t,e)=>{t&&void 0!==(null==t?void 0:t.nodeSize)&&r.push(...t.marks.map(n=>({from:e,to:e+t.nodeSize,mark:n})))}),r}function Vt(t,e,n){return Object.fromEntries(Object.entries(n).filter(([n])=>{const r=t.find(t=>t.type===e&&t.name===n);return!!r&&r.attribute.keepOnSplit}))}function Yt(t,e,n={}){const{empty:r,ranges:o}=t.selection,i=e?xt(e,t.schema):null;if(r)return!!(t.storedMarks||t.selection.$from.marks()).filter(t=>!i||i.name===t.type.name).find(t=>bt(t.attrs,n,{strict:!1}));let a=0;const s=[];if(o.forEach(({$from:e,$to:n})=>{const r=e.pos,o=n.pos;t.doc.nodesBetween(r,o,(t,e)=>{if(!t.isText&&!t.marks.length)return;const n=Math.max(r,e),i=Math.min(o,e+t.nodeSize);a+=i-n,s.push(...t.marks.map(t=>({mark:t,from:n,to:i})))})}),0===a)return!1;const l=s.filter(t=>!i||i.name===t.mark.type.name).filter(t=>bt(t.mark.attrs,n,{strict:!1})).reduce((t,e)=>t+e.to-e.from,0),c=s.filter(t=>!i||t.mark.type!==i&&t.mark.type.excludes(i)).reduce((t,e)=>t+e.to-e.from,0);return(l>0?l+c:l)>=a}function Xt(t,e){const{nodeExtensions:n}=F(e),r=n.find(e=>e.name===t);if(!r)return!1;const o=X(j(r,"group",{name:r.name,options:r.options,storage:r.storage}));return"string"==typeof o&&o.split(" ").includes("list")}function Zt(t,{checkChildren:e=!0,ignoreWhitespace:n=!1}={}){var r;if(n){if("hardBreak"===t.type.name)return!0;if(t.isText)return/^\s*$/m.test(null!==(r=t.text)&&void 0!==r?r:"")}if(t.isText)return!t.text;if(t.isAtom||t.isLeaf)return!1;if(0===t.content.childCount)return!0;if(e){let r=!0;return t.content.forEach(t=>{!1!==r&&(Zt(t,{ignoreWhitespace:n,checkChildren:e})||(r=!1))}),r}return!1}function Kt(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const r=n.filter(t=>null==e?void 0:e.includes(t.type.name));t.tr.ensureMarks(r)}}const Jt=(t,e)=>{const n=$t(t=>t.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(void 0===r)return!0;const o=t.doc.nodeAt(r);return n.node.type!==(null==o?void 0:o.type)||!(0,s.n9)(t.doc,n.pos)||(t.join(n.pos),!0)},Gt=(t,e)=>{const n=$t(t=>t.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(n.start).after(n.depth);if(void 0===r)return!0;const o=t.doc.nodeAt(r);return n.node.type!==(null==o?void 0:o.type)||!(0,s.n9)(t.doc,r)||(t.join(r),!0)};var Qt=Object.freeze({__proto__:null,blur:()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var n;t.isDestroyed||(e.dom.blur(),null===(n=null===window||void 0===window?void 0:window.getSelection())||void 0===n||n.removeAllRanges())}),!0),clearContent:(t=!1)=>({commands:e})=>e.setContent("",t),clearNodes:()=>({state:t,tr:e,dispatch:n})=>{const{selection:r}=e,{ranges:o}=r;return!n||(o.forEach(({$from:n,$to:r})=>{t.doc.nodesBetween(n.pos,r.pos,(t,n)=>{if(t.type.isText)return;const{doc:r,mapping:o}=e,i=r.resolve(o.map(n)),a=r.resolve(o.map(n+t.nodeSize)),l=i.blockRange(a);if(!l)return;const c=(0,s.jP)(l);if(t.type.isTextblock){const{defaultType:t}=i.parent.contentMatchAt(i.index());e.setNodeMarkup(l.start,t)}(c||0===c)&&e.lift(l,c)})}),!0)},command:t=>e=>t(e),createParagraphNear:()=>({state:t,dispatch:e})=>_(t,e),cut:(t,e)=>({editor:n,tr:o})=>{const{state:i}=n,a=i.doc.slice(t.from,t.to);o.deleteRange(t.from,t.to);const s=o.mapping.map(e);return o.insert(s,a.content),o.setSelection(new r.U3(o.doc.resolve(Math.max(s-1,0)))),!0},deleteCurrentNode:()=>({tr:t,dispatch:e})=>{const{selection:n}=t,r=n.$anchor.node();if(r.content.size>0)return!1;const o=t.selection.$anchor;for(let n=o.depth;n>0;n-=1){if(o.node(n).type===r.type){if(e){const e=o.before(n),r=o.after(n);t.delete(e,r).scrollIntoView()}return!0}}return!1},deleteNode:t=>({tr:e,state:n,dispatch:r})=>{const o=q(t,n.schema),i=e.selection.$anchor;for(let t=i.depth;t>0;t-=1){if(i.node(t).type===o){if(r){const n=i.before(t),r=i.after(t);e.delete(n,r).scrollIntoView()}return!0}}return!1},deleteRange:t=>({tr:e,dispatch:n})=>{const{from:r,to:o}=t;return n&&e.delete(r,o),!0},deleteSelection:()=>({state:t,dispatch:e})=>l(t,e),enter:()=>({commands:t})=>t.keyboardShortcut("Enter"),exitCode:()=>({state:t,dispatch:e})=>x(t,e),extendMarkRange:(t,e={})=>({tr:n,state:o,dispatch:i})=>{const a=xt(t,o.schema),{doc:s,selection:l}=n,{$from:c,from:d,to:p}=l;if(i){const t=At(c,a,e);if(t&&t.from<=d&&t.to>=p){const e=r.U3.create(s,t.from,t.to);n.setSelection(e)}}return!0},first:t=>e=>{const n="function"==typeof t?t(e):t;for(let t=0;t<n.length;t+=1)if(n[t](e))return!0;return!1},focus:(t=null,e={})=>({editor:n,view:r,tr:o,dispatch:i})=>{e={scrollIntoView:!0,...e};const a=()=>{(Et()||Ct())&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),"undefined"==typeof navigator||!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||Et()||Ct()||r.dom.focus({preventScroll:!0}))})};if(r.hasFocus()&&null===t||!1===t)return!0;if(i&&null===t&&!_t(n.state.selection))return a(),!0;const s=kt(o.doc,t)||n.state.selection,l=n.state.selection.eq(s);return i&&(l||o.setSelection(s),l&&o.storedMarks&&o.setStoredMarks(o.storedMarks),a()),!0},forEach:(t,e)=>n=>t.every((t,r)=>e(t,{...n,index:r})),insertContent:(t,e)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),insertContentAt:(t,e,n)=>({tr:o,dispatch:i,editor:l})=>{var c;if(i){let i;const d=t=>{l.emit("contentError",{editor:l,error:t,disableCollaboration:()=>{l.storage.collaboration&&(l.storage.collaboration.isDisabled=!0)}})},p={preserveWhitespace:"full",...(n={parseOptions:l.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n}).parseOptions};if(!n.errorOnInvalidContent&&!l.options.enableContentCheck&&l.options.emitContentError)try{Bt(e,l.schema,{parseOptions:p,errorOnInvalidContent:!0})}catch(t){d(t)}try{i=Bt(e,l.schema,{parseOptions:p,errorOnInvalidContent:null!==(c=n.errorOnInvalidContent)&&void 0!==c?c:l.options.enableContentCheck})}catch(t){return d(t),!1}let{from:h,to:u}="number"==typeof t?{from:t,to:t}:{from:t.from,to:t.to},f=!0,m=!0;if(("type"in i?[i]:i).forEach(t=>{t.check(),f=!!f&&(t.isText&&0===t.marks.length),m=!!m&&t.isBlock}),h===u&&m){const{parent:t}=o.doc.resolve(h);t.isTextblock&&!t.type.spec.code&&!t.childCount&&(h-=1,u+=1)}let g;if(f){if(Array.isArray(e))g=e.map(t=>t.text||"").join("");else if(e instanceof a.FK){let t="";e.forEach(e=>{e.text&&(t+=e.text)}),g=t}else g="object"==typeof e&&e&&e.text?e.text:e;o.insertText(g,h,u)}else g=i,o.replaceWith(h,u,g);n.updateSelection&&function(t,e,n){const o=t.steps.length-1;if(o<e)return;const i=t.steps[o];if(!(i instanceof s.Ln||i instanceof s.Wg))return;const a=t.mapping.maps[o];let l=0;a.forEach((t,e,n,r)=>{0===l&&(l=r)}),t.setSelection(r.LN.near(t.doc.resolve(l),n))}(o,o.steps.length-1,-1),n.applyInputRules&&o.setMeta("applyInputRules",{from:h,text:g}),n.applyPasteRules&&o.setMeta("applyPasteRules",{from:h,text:g})}return!0},joinBackward:()=>({state:t,dispatch:e})=>d(t,e),joinDown:()=>({state:t,dispatch:e})=>((t,e)=>{let n,o=t.selection;if(o instanceof r.nh){if(o.node.isTextblock||!(0,s.n9)(t.doc,o.to))return!1;n=o.to}else if(n=(0,s.N0)(t.doc,o.to,1),null==n)return!1;return e&&e(t.tr.join(n).scrollIntoView()),!0})(t,e),joinForward:()=>({state:t,dispatch:e})=>g(t,e),joinItemBackward:()=>({state:t,dispatch:e,tr:n})=>{try{const r=(0,s.N0)(t.doc,t.selection.$from.pos,-1);return null!=r&&(n.join(r,2),e&&e(n),!0)}catch{return!1}},joinItemForward:()=>({state:t,dispatch:e,tr:n})=>{try{const r=(0,s.N0)(t.doc,t.selection.$from.pos,1);return null!=r&&(n.join(r,2),e&&e(n),!0)}catch{return!1}},joinTextblockBackward:()=>({state:t,dispatch:e})=>((t,e,n)=>{let r=c(t,n);if(!r)return!1;let o=f(r);return!!o&&p(t,o,e)})(t,e),joinTextblockForward:()=>({state:t,dispatch:e})=>((t,e,n)=>{let r=m(t,n);if(!r)return!1;let o=y(r);return!!o&&p(t,o,e)})(t,e),joinUp:()=>({state:t,dispatch:e})=>((t,e)=>{let n,o=t.selection,i=o instanceof r.nh;if(i){if(o.node.isTextblock||!(0,s.n9)(t.doc,o.from))return!1;n=o.from}else if(n=(0,s.N0)(t.doc,o.from,-1),null==n)return!1;if(e){let o=t.tr.join(n);i&&o.setSelection(r.nh.create(o.doc,n-t.doc.resolve(n).nodeBefore.nodeSize)),e(o.scrollIntoView())}return!0})(t,e),keyboardShortcut:t=>({editor:e,view:n,tr:r,dispatch:o})=>{const i=function(t){const e=t.split(/-(?!$)/);let n,r,o,i,a=e[e.length-1];"Space"===a&&(a=" ");for(let t=0;t<e.length-1;t+=1){const a=e[t];if(/^(cmd|meta|m)$/i.test(a))i=!0;else if(/^a(lt)?$/i.test(a))n=!0;else if(/^(c|ctrl|control)$/i.test(a))r=!0;else if(/^s(hift)?$/i.test(a))o=!0;else{if(!/^mod$/i.test(a))throw new Error(`Unrecognized modifier name: ${a}`);Et()||Tt()?i=!0:r=!0}}return n&&(a=`Alt-${a}`),r&&(a=`Ctrl-${a}`),i&&(a=`Meta-${a}`),o&&(a=`Shift-${a}`),a}(t).split(/-(?!$)/),a=i.find(t=>!["Alt","Ctrl","Meta","Shift"].includes(t)),s=new KeyboardEvent("keydown",{key:"Space"===a?" ":a,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),l=e.captureTransaction(()=>{n.someProp("handleKeyDown",t=>t(n,s))});return null==l||l.steps.forEach(t=>{const e=t.map(r.mapping);e&&o&&r.maybeStep(e)}),!0},lift:(t,e={})=>({state:n,dispatch:r})=>!!Lt(n,q(t,n.schema),e)&&((t,e)=>{let{$from:n,$to:r}=t.selection,o=n.blockRange(r),i=o&&(0,s.jP)(o);return null!=i&&(e&&e(t.tr.lift(o,i).scrollIntoView()),!0)})(n,r),liftEmptyBlock:()=>({state:t,dispatch:e})=>v(t,e),liftListItem:t=>({state:e,dispatch:n})=>H(q(t,e.schema))(e,n),newlineInCode:()=>({state:t,dispatch:e})=>w(t,e),resetAttributes:(t,e)=>({tr:n,state:r,dispatch:o})=>{let i=null,a=null;const s=Ot("string"==typeof t?t:t.name,r.schema);return!!s&&("node"===s&&(i=q(t,r.schema)),"mark"===s&&(a=xt(t,r.schema)),o&&n.selection.ranges.forEach(t=>{r.doc.nodesBetween(t.$from.pos,t.$to.pos,(t,r)=>{i&&i===t.type&&n.setNodeMarkup(r,void 0,It(t.attrs,e)),a&&t.marks.length&&t.marks.forEach(o=>{a===o.type&&n.addMark(r,r+t.nodeSize,a.create(It(o.attrs,e)))})})}),!0)},scrollIntoView:()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),selectAll:()=>({tr:t,dispatch:e})=>{if(e){const e=new r.i5(t.doc);t.setSelection(e)}return!0},selectNodeBackward:()=>({state:t,dispatch:e})=>u(t,e),selectNodeForward:()=>({state:t,dispatch:e})=>b(t,e),selectParentNode:()=>({state:t,dispatch:e})=>((t,e)=>{let n,{$from:o,to:i}=t.selection,a=o.sharedDepth(i);return 0!=a&&(n=o.before(a),e&&e(t.tr.setSelection(r.nh.create(t.doc,n))),!0)})(t,e),selectTextblockEnd:()=>({state:t,dispatch:e})=>B(t,e),selectTextblockStart:()=>({state:t,dispatch:e})=>M(t,e),setContent:(t,e=!1,n={},r={})=>({editor:o,tr:i,dispatch:a,commands:s})=>{var l,c;const{doc:d}=i;if("full"!==n.preserveWhitespace){const s=Nt(t,o.schema,n,{errorOnInvalidContent:null!==(l=r.errorOnInvalidContent)&&void 0!==l?l:o.options.enableContentCheck});return a&&i.replaceWith(0,d.content.size,s).setMeta("preventUpdate",!e),!0}return a&&i.setMeta("preventUpdate",!e),s.insertContentAt({from:0,to:d.content.size},t,{parseOptions:n,errorOnInvalidContent:null!==(c=r.errorOnInvalidContent)&&void 0!==c?c:o.options.enableContentCheck})},setMark:(t,e={})=>({tr:n,state:r,dispatch:o})=>{const{selection:i}=n,{empty:a,ranges:s}=i,l=xt(t,r.schema);if(o)if(a){const t=Rt(r,l);n.addStoredMark(l.create({...t,...e}))}else s.forEach(t=>{const o=t.$from.pos,i=t.$to.pos;r.doc.nodesBetween(o,i,(t,r)=>{const a=Math.max(r,o),s=Math.min(r+t.nodeSize,i);t.marks.find(t=>t.type===l)?t.marks.forEach(t=>{l===t.type&&n.addMark(a,s,l.create({...t.attrs,...e}))}):n.addMark(a,s,l.create(e))})});return function(t,e,n){var r;const{selection:o}=e;let i=null;if(_t(o)&&(i=o.$cursor),i){const e=null!==(r=t.storedMarks)&&void 0!==r?r:i.marks();return!!n.isInSet(e)||!e.some(t=>t.type.excludes(n))}const{ranges:a}=o;return a.some(({$from:e,$to:r})=>{let o=0===e.depth&&t.doc.inlineContent&&t.doc.type.allowsMarkType(n);return t.doc.nodesBetween(e.pos,r.pos,(t,e,r)=>{if(o)return!1;if(t.isInline){const e=!r||r.type.allowsMarkType(n),i=!!n.isInSet(t.marks)||!t.marks.some(t=>t.type.excludes(n));o=e&&i}return!o}),o})}(r,n,l)},setMeta:(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),setNode:(t,e={})=>({state:n,dispatch:r,chain:o})=>{const i=q(t,n.schema);let a;return n.selection.$anchor.sameParent(n.selection.$head)&&(a=n.selection.$anchor.parent.attrs),i.isTextblock?o().command(({commands:t})=>!!T(i,{...a,...e})(n)||t.clearNodes()).command(({state:t})=>T(i,{...a,...e})(t,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},setNodeSelection:t=>({tr:e,dispatch:n})=>{if(n){const{doc:n}=e,o=vt(t,0,n.content.size),i=r.nh.create(n,o);e.setSelection(i)}return!0},setTextSelection:t=>({tr:e,dispatch:n})=>{if(n){const{doc:n}=e,{from:o,to:i}="number"==typeof t?{from:t,to:t}:t,a=r.U3.atStart(n).from,s=r.U3.atEnd(n).to,l=vt(o,a,s),c=vt(i,a,s),d=r.U3.create(n,l,c);e.setSelection(d)}return!0},sinkListItem:t=>({state:e,dispatch:n})=>{const r=q(t,e.schema);return(o=r,function(t,e){let{$from:n,$to:r}=t.selection,i=n.blockRange(r,t=>t.childCount>0&&t.firstChild.type==o);if(!i)return!1;let l=i.startIndex;if(0==l)return!1;let c=i.parent,d=c.child(l-1);if(d.type!=o)return!1;if(e){let n=d.lastChild&&d.lastChild.type==c.type,r=a.FK.from(n?o.create():null),l=new a.Ji(a.FK.from(o.create(null,a.FK.from(c.type.create(null,r)))),n?3:1,0),p=i.start,h=i.end;e(t.tr.step(new s.Wg(p-(n?3:1),h,p,h,l,1,!0)).scrollIntoView())}return!0})(e,n);var o},splitBlock:({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:o,editor:i})=>{const{selection:a,doc:l}=e,{$from:c,$to:d}=a,p=Vt(i.extensionManager.attributes,c.node().type.name,c.node().attrs);if(a instanceof r.nh&&a.node.isBlock)return!(!c.parentOffset||!(0,s.zy)(l,c.pos))&&(o&&(t&&Kt(n,i.extensionManager.splittableMarks),e.split(c.pos).scrollIntoView()),!0);if(!c.parent.isBlock)return!1;const h=d.parentOffset===d.parent.content.size,u=0===c.depth?void 0:function(t){for(let e=0;e<t.edgeCount;e+=1){const{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}(c.node(-1).contentMatchAt(c.indexAfter(-1)));let f=h&&u?[{type:u,attrs:p}]:void 0,m=(0,s.zy)(e.doc,e.mapping.map(c.pos),1,f);if(f||m||!(0,s.zy)(e.doc,e.mapping.map(c.pos),1,u?[{type:u}]:void 0)||(m=!0,f=u?[{type:u,attrs:p}]:void 0),o){if(m&&(a instanceof r.U3&&e.deleteSelection(),e.split(e.mapping.map(c.pos),1,f),u&&!h&&!c.parentOffset&&c.parent.type!==u)){const t=e.mapping.map(c.before()),n=e.doc.resolve(t);c.node(-1).canReplaceWith(n.index(),n.index()+1,u)&&e.setNodeMarkup(e.mapping.map(c.before()),u)}t&&Kt(n,i.extensionManager.splittableMarks),e.scrollIntoView()}return m},splitListItem:(t,e={})=>({tr:n,state:o,dispatch:i,editor:l})=>{var c;const d=q(t,o.schema),{$from:p,$to:h}=o.selection,u=o.selection.node;if(u&&u.isBlock||p.depth<2||!p.sameParent(h))return!1;const f=p.node(-1);if(f.type!==d)return!1;const m=l.extensionManager.attributes;if(0===p.parent.content.size&&p.node(-1).childCount===p.indexAfter(-1)){if(2===p.depth||p.node(-3).type!==d||p.index(-2)!==p.node(-2).childCount-1)return!1;if(i){let t=a.FK.empty;const o=p.index(-1)?1:p.index(-2)?2:3;for(let e=p.depth-o;e>=p.depth-3;e-=1)t=a.FK.from(p.node(e).copy(t));const i=p.indexAfter(-1)<p.node(-2).childCount?1:p.indexAfter(-2)<p.node(-3).childCount?2:3,s={...Vt(m,p.node().type.name,p.node().attrs),...e},l=(null===(c=d.contentMatch.defaultType)||void 0===c?void 0:c.createAndFill(s))||void 0;t=t.append(a.FK.from(d.createAndFill(null,l)||void 0));const h=p.before(p.depth-(o-1));n.replace(h,p.after(-i),new a.Ji(t,4-o,0));let u=-1;n.doc.nodesBetween(h,n.doc.content.size,(t,e)=>{if(u>-1)return!1;t.isTextblock&&0===t.content.size&&(u=e+1)}),u>-1&&n.setSelection(r.U3.near(n.doc.resolve(u))),n.scrollIntoView()}return!0}const g=h.pos===p.end()?f.contentMatchAt(0).defaultType:null,b={...Vt(m,f.type.name,f.attrs),...e},y={...Vt(m,p.node().type.name,p.node().attrs),...e};n.delete(p.pos,h.pos);const w=g?[{type:d,attrs:b},{type:g,attrs:y}]:[{type:d,attrs:b}];if(!(0,s.zy)(n.doc,p.pos,2))return!1;if(i){const{selection:t,storedMarks:e}=o,{splittableMarks:r}=l.extensionManager,a=e||t.$to.parentOffset&&t.$from.marks();if(n.split(p.pos,2,w).scrollIntoView(),!a||!i)return!0;const s=a.filter(t=>r.includes(t.type.name));n.ensureMarks(s)}return!0},toggleList:(t,e,n,r={})=>({editor:o,tr:i,state:a,dispatch:s,chain:l,commands:c,can:d})=>{const{extensions:p,splittableMarks:h}=o.extensionManager,u=q(t,a.schema),f=q(e,a.schema),{selection:m,storedMarks:g}=a,{$from:b,$to:y}=m,w=b.blockRange(y),A=g||m.$to.parentOffset&&m.$from.marks();if(!w)return!1;const x=$t(t=>Xt(t.type.name,p))(m);if(w.depth>=1&&x&&w.depth-x.depth<=1){if(x.node.type===u)return c.liftListItem(f);if(Xt(x.node.type.name,p)&&u.validContent(x.node.content)&&s)return l().command(()=>(i.setNodeMarkup(x.pos,u),!0)).command(()=>Jt(i,u)).command(()=>Gt(i,u)).run()}return n&&A&&s?l().command(()=>{const t=d().wrapInList(u,r),e=A.filter(t=>h.includes(t.type.name));return i.ensureMarks(e),!!t||c.clearNodes()}).wrapInList(u,r).command(()=>Jt(i,u)).command(()=>Gt(i,u)).run():l().command(()=>!!d().wrapInList(u,r)||c.clearNodes()).wrapInList(u,r).command(()=>Jt(i,u)).command(()=>Gt(i,u)).run()},toggleMark:(t,e={},n={})=>({state:r,commands:o})=>{const{extendEmptyMarkRange:i=!1}=n,a=xt(t,r.schema);return Yt(r,a,e)?o.unsetMark(a,{extendEmptyMarkRange:i}):o.setMark(a,e)},toggleNode:(t,e,n={})=>({state:r,commands:o})=>{const i=q(t,r.schema),a=q(e,r.schema),s=Lt(r,i,n);let l;return r.selection.$anchor.sameParent(r.selection.$head)&&(l=r.selection.$anchor.parent.attrs),s?o.setNode(a,l):o.setNode(i,{...l,...n})},toggleWrap:(t,e={})=>({state:n,commands:r})=>{const o=q(t,n.schema);return Lt(n,o,e)?r.lift(o):r.wrapIn(o,e)},undoInputRule:()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let r=0;r<n.length;r+=1){const o=n[r];let i;if(o.spec.isInputRules&&(i=o.getState(t))){if(e){const e=t.tr,n=i.transform;for(let t=n.steps.length-1;t>=0;t-=1)e.step(n.steps[t].invert(n.docs[t]));if(i.text){const n=e.doc.resolve(i.from).marks();e.replaceWith(i.from,i.to,t.schema.text(i.text,n))}else e.delete(i.from,i.to)}return!0}}return!1},unsetAllMarks:()=>({tr:t,dispatch:e})=>{const{selection:n}=t,{empty:r,ranges:o}=n;return r||e&&o.forEach(e=>{t.removeMark(e.$from.pos,e.$to.pos)}),!0},unsetMark:(t,e={})=>({tr:n,state:r,dispatch:o})=>{var i;const{extendEmptyMarkRange:a=!1}=e,{selection:s}=n,l=xt(t,r.schema),{$from:c,empty:d,ranges:p}=s;if(!o)return!0;if(d&&a){let{from:t,to:e}=s;const r=null===(i=c.marks().find(t=>t.type===l))||void 0===i?void 0:i.attrs,o=At(c,l,r);o&&(t=o.from,e=o.to),n.removeMark(t,e,l)}else p.forEach(t=>{n.removeMark(t.$from.pos,t.$to.pos,l)});return n.removeStoredMark(l),!0},updateAttributes:(t,e={})=>({tr:n,state:r,dispatch:o})=>{let i=null,a=null;const s=Ot("string"==typeof t?t:t.name,r.schema);return!!s&&("node"===s&&(i=q(t,r.schema)),"mark"===s&&(a=xt(t,r.schema)),o&&n.selection.ranges.forEach(t=>{const o=t.$from.pos,s=t.$to.pos;let l,c,d,p;n.selection.empty?r.doc.nodesBetween(o,s,(t,e)=>{i&&i===t.type&&(d=Math.max(e,o),p=Math.min(e+t.nodeSize,s),l=e,c=t)}):r.doc.nodesBetween(o,s,(t,r)=>{r<o&&i&&i===t.type&&(d=Math.max(r,o),p=Math.min(r+t.nodeSize,s),l=r,c=t),r>=o&&r<=s&&(i&&i===t.type&&n.setNodeMarkup(r,void 0,{...t.attrs,...e}),a&&t.marks.length&&t.marks.forEach(i=>{if(a===i.type){const l=Math.max(r,o),c=Math.min(r+t.nodeSize,s);n.addMark(l,c,a.create({...i.attrs,...e}))}}))}),c&&(void 0!==l&&n.setNodeMarkup(l,void 0,{...c.attrs,...e}),a&&c.marks.length&&c.marks.forEach(t=>{a===t.type&&n.addMark(d,p,a.create({...t.attrs,...e}))}))}),!0)},wrapIn:(t,e={})=>({state:n,dispatch:r})=>function(t,e=null){return function(n,r){let{$from:o,$to:i}=n.selection,a=o.blockRange(i),l=a&&(0,s.oM)(a,t,e);return!!l&&(r&&r(n.tr.wrap(a,l).scrollIntoView()),!0)}}(q(t,n.schema),e)(n,r),wrapInList:(t,e={})=>({state:n,dispatch:r})=>z(q(t,n.schema),e)(n,r)});const te=ut.create({name:"commands",addCommands:()=>({...Qt})}),ee=ut.create({name:"drop",addProseMirrorPlugins(){return[new r.k_({key:new r.hs("tiptapDrop"),props:{handleDrop:(t,e,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:n,moved:r})}}})]}}),ne=ut.create({name:"editable",addProseMirrorPlugins(){return[new r.k_({key:new r.hs("editable"),props:{editable:()=>this.editor.options.editable}})]}}),re=new r.hs("focusEvents"),oe=ut.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new r.k_({key:re,props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0;const r=t.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1},blur:(e,n)=>{t.isFocused=!1;const r=t.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1}}}})]}}),ie=ut.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:t})=>[()=>t.undoInputRule(),()=>t.command(({tr:e})=>{const{selection:n,doc:o}=e,{empty:i,$anchor:a}=n,{pos:s,parent:l}=a,c=a.parent.isTextblock&&s>0?e.doc.resolve(s-1):a,d=c.parent.type.spec.isolating,p=a.pos-a.parentOffset,h=d&&1===c.parent.childCount?p===a.pos:r.LN.atStart(o).from===s;return!(!i||!l.type.isTextblock||l.textContent.length||!h||h&&"paragraph"===a.parent.type.name)&&t.clearNodes()}),()=>t.deleteSelection(),()=>t.joinBackward(),()=>t.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:t})=>[()=>t.deleteSelection(),()=>t.deleteCurrentNode(),()=>t.joinForward(),()=>t.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:t})=>[()=>t.newlineInCode(),()=>t.createParagraphNear(),()=>t.liftEmptyBlock(),()=>t.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},o={...n},i={...n,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return Et()||Tt()?i:o},addProseMirrorPlugins(){return[new r.k_({key:new r.hs("clearDocument"),appendTransaction:(t,e,n)=>{if(t.some(t=>t.getMeta("composition")))return;const o=t.some(t=>t.docChanged)&&!e.doc.eq(n.doc),i=t.some(t=>t.getMeta("preventClearDocument"));if(!o||i)return;const{empty:a,from:s,to:l}=e.selection,c=r.LN.atStart(e.doc).from,d=r.LN.atEnd(e.doc).to;if(a||!(s===c&&l===d))return;if(!Zt(n.doc))return;const p=n.tr,h=P({state:n,transaction:p}),{commands:u}=new D({editor:this.editor,state:h});return u.clearNodes(),p.steps.length?p:void 0}})]}}),ae=ut.create({name:"paste",addProseMirrorPlugins(){return[new r.k_({key:new r.hs("tiptapPaste"),props:{handlePaste:(t,e,n)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:n})}}})]}}),se=ut.create({name:"tabindex",addProseMirrorPlugins(){return[new r.k_({key:new r.hs("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class le{get name(){return this.node.type.name}constructor(t,e,n=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=n,this.resolvedPos=t,this.editor=e,this.currentNode=r}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var t;return null!==(t=this.actualDepth)&&void 0!==t?t:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(t){let e=this.from,n=this.to;if(this.isBlock){if(0===this.content.size)return void console.error(`You canโt set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);e=this.from+1,n=this.to-1}this.editor.commands.insertContentAt({from:e,to:n},t)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(0===this.depth)return null;const t=this.resolvedPos.start(this.resolvedPos.depth-1),e=this.resolvedPos.doc.resolve(t);return new le(e,this.editor)}get before(){let t=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.from-3)),new le(t,this.editor)}get after(){let t=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.to+3)),new le(t,this.editor)}get children(){const t=[];return this.node.content.forEach((e,n)=>{const r=e.isBlock&&!e.isTextblock,o=e.isAtom&&!e.isText,i=this.pos+n+(o?0:1);if(i<0||i>this.resolvedPos.doc.nodeSize-2)return;const a=this.resolvedPos.doc.resolve(i);if(!r&&a.depth<=this.depth)return;const s=new le(a,this.editor,r,r?e:null);r&&(s.actualDepth=this.depth+1),t.push(new le(a,this.editor,r,r?e:null))}),t}get firstChild(){return this.children[0]||null}get lastChild(){const t=this.children;return t[t.length-1]||null}closest(t,e={}){let n=null,r=this.parent;for(;r&&!n;){if(r.node.type.name===t)if(Object.keys(e).length>0){const t=r.node.attrs,n=Object.keys(e);for(let r=0;r<n.length;r+=1){const o=n[r];if(t[o]!==e[o])break}}else n=r;r=r.parent}return n}querySelector(t,e={}){return this.querySelectorAll(t,e,!0)[0]||null}querySelectorAll(t,e={},n=!1){let r=[];if(!this.children||0===this.children.length)return r;const o=Object.keys(e);return this.children.forEach(i=>{if(!(n&&r.length>0)){if(i.node.type.name===t){o.every(t=>e[t]===i.node.attrs[t])&&r.push(i)}n&&r.length>0||(r=r.concat(i.querySelectorAll(t,e,n)))}}),r}setAttribute(t){const{tr:e}=this.editor.state;e.setNodeMarkup(this.from,void 0,{...this.node.attrs,...t}),this.editor.view.dispatch(e)}}class ce extends ${constructor(t={}){super(),this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:t})=>{throw t},onPaste:()=>null,onDrop:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(t),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("contentError",this.options.onContentError),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:t,slice:e,moved:n})=>this.options.onDrop(t,e,n)),this.on("paste",({event:t,slice:e})=>this.options.onPaste(t,e)),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=function(t,e,n){const r=document.querySelector(`style[data-tiptap-style${n?`-${n}`:""}]`);if(null!==r)return r;const o=document.createElement("style");return e&&o.setAttribute("nonce",e),o.setAttribute("data-tiptap-style"+(n?`-${n}`:""),""),o.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(o),o}('.ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n}\n\n.ProseMirror [contenteditable="false"] {\n white-space: normal;\n}\n\n.ProseMirror [contenteditable="false"] [contenteditable="true"] {\n white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n display: inline !important;\n border: none !important;\n margin: 0 !important;\n width: 0 !important;\n height: 0 !important;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n margin: 0;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.tippy-box[data-animation=fade][data-state=hidden] {\n opacity: 0\n}',this.options.injectNonce))}setOptions(t={}){this.options={...this.options,...t},this.view&&this.state&&!this.isDestroyed&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(t,e=!0){this.setOptions({editable:t}),e&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(t,e){const n=Y(e)?e(t,[...this.state.plugins]):[...this.state.plugins,t],r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}unregisterPlugin(t){if(this.isDestroyed)return;const e=this.state.plugins;let n=e;if([].concat(t).forEach(t=>{const e="string"==typeof t?`${t}$`:t.key;n=n.filter(t=>!t.key.startsWith(e))}),e.length===n.length)return;const r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}createExtensionManager(){var t,e;const n=[...this.options.enableCoreExtensions?[ne,gt.configure({blockSeparator:null===(e=null===(t=this.options.coreExtensionOptions)||void 0===t?void 0:t.clipboardTextSerializer)||void 0===e?void 0:e.blockSeparator}),te,oe,ie,se,ee,ae].filter(t=>"object"!=typeof this.options.enableCoreExtensions||!1!==this.options.enableCoreExtensions[t.name]):[],...this.options.extensions].filter(t=>["extension","node","mark"].includes(null==t?void 0:t.type));this.extensionManager=new ht(n,this)}createCommandManager(){this.commandManager=new D({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){var t;let e;try{e=Nt(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(t){if(!(t instanceof Error&&["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(t.message)))throw t;this.emit("contentError",{editor:this,error:t,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(t=>"collaboration"!==t.name),this.createExtensionManager()}}),e=Nt(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const n=kt(e,this.options.autofocus);this.view=new o.Lz(this.options.element,{...this.options.editorProps,attributes:{role:"textbox",...null===(t=this.options.editorProps)||void 0===t?void 0:t.attributes},dispatchTransaction:this.dispatchTransaction.bind(this),state:r.$t.create({doc:e,selection:n||void 0})});const i=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(i),this.createNodeViews(),this.prependClass();this.view.dom.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(t){this.isCapturingTransaction=!0,t(),this.isCapturingTransaction=!1;const e=this.capturedTransaction;return this.capturedTransaction=null,e}dispatchTransaction(t){if(this.view.isDestroyed)return;if(this.isCapturingTransaction)return this.capturedTransaction?void t.steps.forEach(t=>{var e;return null===(e=this.capturedTransaction)||void 0===e?void 0:e.step(t)}):void(this.capturedTransaction=t);const e=this.state.apply(t),n=!this.state.selection.eq(e.selection);this.emit("beforeTransaction",{editor:this,transaction:t,nextState:e}),this.view.updateState(e),this.emit("transaction",{editor:this,transaction:t}),n&&this.emit("selectionUpdate",{editor:this,transaction:t});const r=t.getMeta("focus"),o=t.getMeta("blur");r&&this.emit("focus",{editor:this,event:r.event,transaction:t}),o&&this.emit("blur",{editor:this,event:o.event,transaction:t}),t.docChanged&&!t.getMeta("preventUpdate")&&this.emit("update",{editor:this,transaction:t})}getAttributes(t){return Ft(this.state,t)}isActive(t,e){const n="string"==typeof t?t:null,r="string"==typeof t?e:t;return function(t,e,n={}){if(!e)return Lt(t,null,n)||Yt(t,null,n);const r=Ot(e,t.schema);return"node"===r?Lt(t,e,n):"mark"===r&&Yt(t,e,n)}(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return tt(this.state.doc.content,this.schema)}getText(t){const{blockSeparator:e="\n\n",textSerializers:n={}}=t||{};return jt(this.state.doc,{blockSeparator:e,textSerializers:{...mt(this.schema),...n}})}get isEmpty(){return Zt(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){if(this.emit("destroy"),this.view){const t=this.view.dom;t&&t.editor&&delete t.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var t;return!(null===(t=this.view)||void 0===t?void 0:t.docView)}$node(t,e){var n;return(null===(n=this.$doc)||void 0===n?void 0:n.querySelector(t,e))||null}$nodes(t,e){var n;return(null===(n=this.$doc)||void 0===n?void 0:n.querySelectorAll(t,e))||null}$pos(t){const e=this.state.doc.resolve(t);return new le(e,this)}get $doc(){return this.$pos(0)}}function de(t){return new nt({find:t.find,handler:({state:e,range:n,match:r})=>{const o=X(t.getAttributes,void 0,r);if(!1===o||null===o)return null;const{tr:i}=e,a=r[r.length-1],s=r[0];if(a){const r=s.search(/\S/),l=n.from+s.indexOf(a),c=l+a.length;if(Wt(n.from,n.to,e.doc).filter(e=>e.mark.type.excluded.find(n=>n===t.type&&n!==e.mark.type)).filter(t=>t.to>l).length)return null;c<n.to&&i.delete(c,n.to),l>n.from&&i.delete(n.from+r,l);const d=n.from+r+a.length;i.addMark(n.from+r,d,t.type.create(o||{})),i.removeStoredMark(t.type)}}})}function pe(t){return new nt({find:t.find,handler:({state:e,range:n,match:r})=>{const o=X(t.getAttributes,void 0,r)||{},{tr:i}=e,a=n.from;let s=n.to;const l=t.type.create(o);if(r[1]){let t=a+r[0].lastIndexOf(r[1]);t>s?t=s:s=t+r[1].length;const e=r[0][r[0].length-1];i.insertText(e,a+r[0].length-1),i.replaceWith(t,s,l)}else if(r[0]){const e=t.type.isInline?a:a-1;i.insert(e,t.type.create(o)).delete(i.mapping.map(a),i.mapping.map(s))}i.scrollIntoView()}})}function he(t){return new nt({find:t.find,handler:({state:e,range:n,match:r})=>{const o=e.doc.resolve(n.from),i=X(t.getAttributes,void 0,r)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,i)}})}function ue(t){return new nt({find:t.find,handler:({state:e,range:n,match:r})=>{let o=t.replace,i=n.from;const a=n.to;if(r[1]){const t=r[0].lastIndexOf(r[1]);o+=r[0].slice(t+r[1].length),i+=t;const e=i-a;e>0&&(o=r[0].slice(t-e,t)+o,i=a)}e.tr.insertText(o,i,a)}})}function fe(t){return new nt({find:t.find,handler:({state:e,range:n,match:r,chain:o})=>{const i=X(t.getAttributes,void 0,r)||{},a=e.tr.delete(n.from,n.to),l=a.doc.resolve(n.from).blockRange(),c=l&&(0,s.oM)(l,t.type,i);if(!c)return null;if(a.wrap(l,c),t.keepMarks&&t.editor){const{selection:n,storedMarks:r}=e,{splittableMarks:o}=t.editor.extensionManager,i=r||n.$to.parentOffset&&n.$from.marks();if(i){const t=i.filter(t=>o.includes(t.type.name));a.ensureMarks(t)}}if(t.keepAttributes){const e="bulletList"===t.type.name||"orderedList"===t.type.name?"listItem":"taskList";o().updateAttributes(e,i).run()}const d=a.doc.resolve(n.from-1).nodeBefore;d&&d.type===t.type&&(0,s.n9)(a.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(r,d))&&a.join(n.from-1)}})}class me{constructor(t={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=X(j(this,"addOptions",{name:this.name}))),this.storage=X(j(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new me(t)}configure(t={}){const e=this.extend({...this.config,addOptions:()=>at(this.options,t)});return e.name=this.name,e.parent=this.parent,e}extend(t={}){const e=new me(t);return e.parent=this,this.child=e,e.name=t.name?t.name:e.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=X(j(e,"addOptions",{name:e.name})),e.storage=X(j(e,"addStorage",{name:e.name,options:e.options})),e}}function ge(t){return new lt({find:t.find,handler:({state:e,range:n,match:r,pasteEvent:o})=>{const i=X(t.getAttributes,void 0,r,o);if(!1===i||null===i)return null;const{tr:a}=e,s=r[r.length-1],l=r[0];let c=n.to;if(s){const r=l.search(/\S/),o=n.from+l.indexOf(s),d=o+s.length;if(Wt(n.from,n.to,e.doc).filter(e=>e.mark.type.excluded.find(n=>n===t.type&&n!==e.mark.type)).filter(t=>t.to>o).length)return null;d<n.to&&a.delete(d,n.to),o>n.from&&a.delete(n.from+r,o),c=n.from+r+s.length,a.addMark(n.from+r,c,t.type.create(i||{})),a.removeStoredMark(t.type)}}})}function be(t){return new lt({find:t.find,handler({match:e,chain:n,range:r,pasteEvent:o}){const i=X(t.getAttributes,void 0,e,o),a=X(t.getContent,void 0,i);if(!1===i||null===i)return null;const s={type:t.type.name,attrs:i};a&&(s.content=a),e.input&&n().deleteRange(r).insertContentAt(r.from,s)}})}},1366(t,e,n){"use strict";n.d(e,{A:()=>r});const r=n(81318).bP.create({name:"doc",topNode:!0,content:"block+"})},28396(t,e,n){"use strict";n.d(e,{A:()=>r});const r=n(81318).bP.create({name:"text",group:"inline"})},85194(t,e,n){"use strict";n.d(e,{Ay:()=>o});var r=n(81318);const o=r.YY.create({name:"typography",addOptions:()=>({closeDoubleQuote:"โ",closeSingleQuote:"โ",copyright:"ยฉ",ellipsis:"โฆ",emDash:"โ",laquo:"ยซ",leftArrow:"โ",multiplication:"ร",notEqual:"โ ",oneHalf:"ยฝ",oneQuarter:"ยผ",openDoubleQuote:"โ",openSingleQuote:"โ",plusMinus:"ยฑ",raquo:"ยป",registeredTrademark:"ยฎ",rightArrow:"โ",servicemark:"โ ",superscriptThree:"ยณ",superscriptTwo:"ยฒ",threeQuarters:"ยพ",trademark:"โข"}),addInputRules(){const t=[];var e;return!1!==this.options.emDash&&t.push((e=this.options.emDash,(0,r.Yp)({find:/--$/,replace:null!=e?e:"โ"}))),!1!==this.options.ellipsis&&t.push((t=>(0,r.Yp)({find:/\.\.\.$/,replace:null!=t?t:"โฆ"}))(this.options.ellipsis)),!1!==this.options.openDoubleQuote&&t.push((t=>(0,r.Yp)({find:/(?:^|[\s{[(<'"\u2018\u201C])(")$/,replace:null!=t?t:"โ"}))(this.options.openDoubleQuote)),!1!==this.options.closeDoubleQuote&&t.push((t=>(0,r.Yp)({find:/"$/,replace:null!=t?t:"โ"}))(this.options.closeDoubleQuote)),!1!==this.options.openSingleQuote&&t.push((t=>(0,r.Yp)({find:/(?:^|[\s{[(<'"\u2018\u201C])(')$/,replace:null!=t?t:"โ"}))(this.options.openSingleQuote)),!1!==this.options.closeSingleQuote&&t.push((t=>(0,r.Yp)({find:/'$/,replace:null!=t?t:"โ"}))(this.options.closeSingleQuote)),!1!==this.options.leftArrow&&t.push((t=>(0,r.Yp)({find:/<-$/,replace:null!=t?t:"โ"}))(this.options.leftArrow)),!1!==this.options.rightArrow&&t.push((t=>(0,r.Yp)({find:/->$/,replace:null!=t?t:"โ"}))(this.options.rightArrow)),!1!==this.options.copyright&&t.push((t=>(0,r.Yp)({find:/\(c\)$/,replace:null!=t?t:"ยฉ"}))(this.options.copyright)),!1!==this.options.trademark&&t.push((t=>(0,r.Yp)({find:/\(tm\)$/,replace:null!=t?t:"โข"}))(this.options.trademark)),!1!==this.options.servicemark&&t.push((t=>(0,r.Yp)({find:/\(sm\)$/,replace:null!=t?t:"โ "}))(this.options.servicemark)),!1!==this.options.registeredTrademark&&t.push((t=>(0,r.Yp)({find:/\(r\)$/,replace:null!=t?t:"ยฎ"}))(this.options.registeredTrademark)),!1!==this.options.oneHalf&&t.push((t=>(0,r.Yp)({find:/(?:^|\s)(1\/2)\s$/,replace:null!=t?t:"ยฝ"}))(this.options.oneHalf)),!1!==this.options.plusMinus&&t.push((t=>(0,r.Yp)({find:/\+\/-$/,replace:null!=t?t:"ยฑ"}))(this.options.plusMinus)),!1!==this.options.notEqual&&t.push((t=>(0,r.Yp)({find:/!=$/,replace:null!=t?t:"โ "}))(this.options.notEqual)),!1!==this.options.laquo&&t.push((t=>(0,r.Yp)({find:/<<$/,replace:null!=t?t:"ยซ"}))(this.options.laquo)),!1!==this.options.raquo&&t.push((t=>(0,r.Yp)({find:/>>$/,replace:null!=t?t:"ยป"}))(this.options.raquo)),!1!==this.options.multiplication&&t.push((t=>(0,r.Yp)({find:/\d+\s?([*x])\s?\d+$/,replace:null!=t?t:"ร"}))(this.options.multiplication)),!1!==this.options.superscriptTwo&&t.push((t=>(0,r.Yp)({find:/\^2$/,replace:null!=t?t:"ยฒ"}))(this.options.superscriptTwo)),!1!==this.options.superscriptThree&&t.push((t=>(0,r.Yp)({find:/\^3$/,replace:null!=t?t:"ยณ"}))(this.options.superscriptThree)),!1!==this.options.oneQuarter&&t.push((t=>(0,r.Yp)({find:/(?:^|\s)(1\/4)\s$/,replace:null!=t?t:"ยผ"}))(this.options.oneQuarter)),!1!==this.options.threeQuarters&&t.push((t=>(0,r.Yp)({find:/(?:^|\s)(3\/4)\s$/,replace:null!=t?t:"ยพ"}))(this.options.threeQuarters)),t}})},70367(t,e,n){"use strict";n.d(e,{Dx:()=>l,KO:()=>u,Rt:()=>a,cN:()=>h,lx:()=>c,mY:()=>p});var r=n(80181);const{I:o}=r.ge,i=t=>t,a=t=>void 0===t.strings,s=()=>document.createComment(""),l=(t,e,n)=>{const r=t._$AA.parentNode,a=void 0===e?t._$AB:e._$AA;if(void 0===n){const e=r.insertBefore(s(),a),i=r.insertBefore(s(),a);n=new o(e,i,t,t.options)}else{const e=n._$AB.nextSibling,o=n._$AM,s=o!==t;if(s){let e;n._$AQ?.(t),n._$AM=t,void 0!==n._$AP&&(e=t._$AU)!==o._$AU&&n._$AP(e)}if(e!==a||s){let t=n._$AA;for(;t!==e;){const e=i(t).nextSibling;i(r).insertBefore(t,a),t=e}}}return n},c=(t,e,n=t)=>(t._$AI(e,n),t),d={},p=(t,e=d)=>t._$AH=e,h=t=>t._$AH,u=t=>{t._$AR(),t._$AA.remove()}},16655(t,e,n){"use strict";n.d(e,{OA:()=>r,WL:()=>i,u$:()=>o});const r={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},o=t=>(...e)=>({_$litDirective$:t,values:e});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}},80181(t,e,n){"use strict";n.d(e,{JW:()=>E,XX:()=>q,c0:()=>S,ge:()=>F,qy:()=>C,s6:()=>M});const r=globalThis,o=t=>t,i=r.trustedTypes,a=i?i.createPolicy("lit-html",{createHTML:t=>t}):void 0,s="$lit$",l=`lit$${Math.random().toFixed(9).slice(2)}$`,c="?"+l,d=`<${c}>`,p=document,h=()=>p.createComment(""),u=t=>null===t||"object"!=typeof t&&"function"!=typeof t,f=Array.isArray,m=t=>f(t)||"function"==typeof t?.[Symbol.iterator],g="[ \t\n\f\r]",b=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,y=/-->/g,w=/>/g,A=RegExp(`>|${g}(?:([^\\s"'>=/]+)(${g}*=${g}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),x=/'/g,_=/"/g,v=/^(?:script|style|textarea|title)$/i,k=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),C=k(1),E=k(2),S=(k(3),Symbol.for("lit-noChange")),M=Symbol.for("lit-nothing"),B=new WeakMap,T=p.createTreeWalker(p,129);function L(t,e){if(!f(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==a?a.createHTML(e):e}const O=(t,e)=>{const n=t.length-1,r=[];let o,i=2===e?"<svg>":3===e?"<math>":"",a=b;for(let e=0;e<n;e++){const n=t[e];let c,p,h=-1,u=0;for(;u<n.length&&(a.lastIndex=u,p=a.exec(n),null!==p);)u=a.lastIndex,a===b?"!--"===p[1]?a=y:void 0!==p[1]?a=w:void 0!==p[2]?(v.test(p[2])&&(o=RegExp("</"+p[2],"g")),a=A):void 0!==p[3]&&(a=A):a===A?">"===p[0]?(a=o??b,h=-1):void 0===p[1]?h=-2:(h=a.lastIndex-p[2].length,c=p[1],a=void 0===p[3]?A:'"'===p[3]?_:x):a===_||a===x?a=A:a===y||a===w?a=b:(a=A,o=void 0);const f=a===A&&t[e+1].startsWith("/>")?" ":"";i+=a===b?n+d:h>=0?(r.push(c),n.slice(0,h)+s+n.slice(h)+l+f):n+l+(-2===h?e:f)}return[L(t,i+(t[n]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),r]};class I{constructor({strings:t,_$litType$:e},n){let r;this.parts=[];let o=0,a=0;const d=t.length-1,p=this.parts,[u,f]=O(t,e);if(this.el=I.createElement(u,n),T.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=T.nextNode())&&p.length<d;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(s)){const e=f[a++],n=r.getAttribute(t).split(l),i=/([.?@])?(.*)/.exec(e);p.push({type:1,index:o,name:i[2],strings:n,ctor:"."===i[1]?P:"?"===i[1]?D:"@"===i[1]?$:H}),r.removeAttribute(t)}else t.startsWith(l)&&(p.push({type:6,index:o}),r.removeAttribute(t));if(v.test(r.tagName)){const t=r.textContent.split(l),e=t.length-1;if(e>0){r.textContent=i?i.emptyScript:"";for(let n=0;n<e;n++)r.append(t[n],h()),T.nextNode(),p.push({type:2,index:++o});r.append(t[e],h())}}}else if(8===r.nodeType)if(r.data===c)p.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(l,t+1));)p.push({type:7,index:o}),t+=l.length-1}o++}}static createElement(t,e){const n=p.createElement("template");return n.innerHTML=t,n}}function N(t,e,n=t,r){if(e===S)return e;let o=void 0!==r?n._$Co?.[r]:n._$Cl;const i=u(e)?void 0:e._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(!1),void 0===i?o=void 0:(o=new i(t),o._$AT(t,n,r)),void 0!==r?(n._$Co??=[])[r]=o:n._$Cl=o),void 0!==o&&(e=N(t,o._$AS(t,e.values),o,r)),e}class R{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:n}=this._$AD,r=(t?.creationScope??p).importNode(e,!0);T.currentNode=r;let o=T.nextNode(),i=0,a=0,s=n[0];for(;void 0!==s;){if(i===s.index){let e;2===s.type?e=new z(o,o.nextSibling,this,t):1===s.type?e=new s.ctor(o,s.name,s.strings,this,t):6===s.type&&(e=new j(o,this,t)),this._$AV.push(e),s=n[++a]}i!==s?.index&&(o=T.nextNode(),i++)}return T.currentNode=p,r}p(t){let e=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class z{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,n,r){this.type=2,this._$AH=M,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=N(this,t,e),u(t)?t===M||null==t||""===t?(this._$AH!==M&&this._$AR(),this._$AH=M):t!==this._$AH&&t!==S&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):m(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==M&&u(this._$AH)?this._$AA.nextSibling.data=t:this.T(p.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:n}=t,r="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=I.createElement(L(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new R(r,this),n=t.u(this.options);t.p(e),this.T(n),this._$AH=t}}_$AC(t){let e=B.get(t.strings);return void 0===e&&B.set(t.strings,e=new I(t)),e}k(t){f(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,r=0;for(const o of t)r===e.length?e.push(n=new z(this.O(h()),this.O(h()),this,this.options)):n=e[r],n._$AI(o),r++;r<e.length&&(this._$AR(n&&n._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=o(t).nextSibling;o(t).remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class H{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,n,r,o){this.type=1,this._$AH=M,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=M}_$AI(t,e=this,n,r){const o=this.strings;let i=!1;if(void 0===o)t=N(this,t,e,0),i=!u(t)||t!==this._$AH&&t!==S,i&&(this._$AH=t);else{const r=t;let a,s;for(t=o[0],a=0;a<o.length-1;a++)s=N(this,r[n+a],e,a),s===S&&(s=this._$AH[a]),i||=!u(s)||s!==this._$AH[a],s===M?t=M:t!==M&&(t+=(s??"")+o[a+1]),this._$AH[a]=s}i&&!r&&this.j(t)}j(t){t===M?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class P extends H{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===M?void 0:t}}class D extends H{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==M)}}class $ extends H{constructor(t,e,n,r,o){super(t,e,n,r,o),this.type=5}_$AI(t,e=this){if((t=N(this,t,e,0)??M)===S)return;const n=this._$AH,r=t===M&&n!==M||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==M&&(n===M||r);r&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class j{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){N(this,t)}}const F={M:s,P:l,A:c,C:1,L:O,R,D:m,V:N,I:z,H,N:D,U:$,B:P,F:j},U=r.litHtmlPolyfillSupport;U?.(I,z),(r.litHtmlVersions??=[]).push("3.3.2");const q=(t,e,n)=>{const r=n?.renderBefore??e;let o=r._$litPart$;if(void 0===o){const t=n?.renderBefore??null;r._$litPart$=o=new z(e.insertBefore(h(),t),t,void 0,n??{})}return o._$AI(t),o}},49410(t,e,n){"use strict";n.d(e,{EM:()=>r,MZ:()=>s});const r=t=>(e,n)=>{void 0!==n?n.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var o=n(72803);const i={attribute:!0,type:String,converter:o.W3,reflect:!1,hasChanged:o.Ec},a=(t=i,e,n)=>{const{kind:r,metadata:o}=n;let a=globalThis.litPropertyMetadata.get(o);if(void 0===a&&globalThis.litPropertyMetadata.set(o,a=new Map),"setter"===r&&((t=Object.create(t)).wrapped=!0),a.set(n.name,t),"accessor"===r){const{name:r}=n;return{set(n){const o=e.get.call(this);e.set.call(this,n),this.requestUpdate(r,o,t,!0,n)},init(e){return void 0!==e&&this.C(r,void 0,t,e),e}}}if("setter"===r){const{name:r}=n;return function(n){const o=this[r];e.call(this,n),this.requestUpdate(r,o,t,!0,n)}}throw Error("Unsupported decorator location: "+r)};function s(t){return(e,n)=>"object"==typeof n?a(t,e,n):((t,e,n)=>{const r=e.hasOwnProperty(n);return e.constructor.createProperty(n,t),r?Object.getOwnPropertyDescriptor(e,n):void 0})(t,e,n)}},21421(t,e,n){"use strict";n.d(e,{_:()=>u,K:()=>g});var r=n(80181),o=n(70367),i=n(16655);const a=(t,e)=>{const n=t._$AN;if(void 0===n)return!1;for(const t of n)t._$AO?.(e,!1),a(t,e);return!0},s=t=>{let e,n;do{if(void 0===(e=t._$AM))break;n=e._$AN,n.delete(t),t=e}while(0===n?.size)},l=t=>{for(let e;e=t._$AM;t=e){let n=e._$AN;if(void 0===n)e._$AN=n=new Set;else if(n.has(t))break;n.add(t),p(e)}};function c(t){void 0!==this._$AN?(s(this),this._$AM=t,l(this)):this._$AM=t}function d(t,e=!1,n=0){const r=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(e)if(Array.isArray(r))for(let t=n;t<r.length;t++)a(r[t],!1),s(r[t]);else null!=r&&(a(r,!1),s(r));else a(this,t)}const p=t=>{t.type==i.OA.CHILD&&(t._$AP??=d,t._$AQ??=c)};class h extends i.WL{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,n){super._$AT(t,e,n),l(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(a(this,t),s(this))}setValue(t){if((0,o.Rt)(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const u=()=>new f;class f{}const m=new WeakMap,g=(0,i.u$)(class extends h{render(t){return r.s6}update(t,[e]){const n=e!==this.G;return n&&void 0!==this.G&&this.rt(void 0),(n||this.lt!==this.ct)&&(this.G=e,this.ht=t.options?.host,this.rt(this.ct=t.element)),r.s6}rt(t){if(this.isConnected||(t=void 0),"function"==typeof this.G){const e=this.ht??globalThis;let n=m.get(e);void 0===n&&(n=new WeakMap,m.set(e,n)),void 0!==n.get(this.G)&&this.G.call(this.ht,void 0),n.set(this.G,t),void 0!==t&&this.G.call(this.ht,t)}else this.G.value=t}get lt(){return"function"==typeof this.G?m.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}})},49549(t,e,n){"use strict";n.d(e,{u:()=>s});var r=n(80181),o=n(16655),i=n(70367);const a=(t,e,n)=>{const r=new Map;for(let o=e;o<=n;o++)r.set(t[o],o);return r},s=(0,o.u$)(class extends o.WL{constructor(t){if(super(t),t.type!==o.OA.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,n){let r;void 0===n?n=e:void 0!==e&&(r=e);const o=[],i=[];let a=0;for(const e of t)o[a]=r?r(e,a):a,i[a]=n(e,a),a++;return{values:i,keys:o}}render(t,e,n){return this.dt(t,e,n).values}update(t,[e,n,o]){const s=(0,i.cN)(t),{values:l,keys:c}=this.dt(e,n,o);if(!Array.isArray(s))return this.ut=c,l;const d=this.ut??=[],p=[];let h,u,f=0,m=s.length-1,g=0,b=l.length-1;for(;f<=m&&g<=b;)if(null===s[f])f++;else if(null===s[m])m--;else if(d[f]===c[g])p[g]=(0,i.lx)(s[f],l[g]),f++,g++;else if(d[m]===c[b])p[b]=(0,i.lx)(s[m],l[b]),m--,b--;else if(d[f]===c[b])p[b]=(0,i.lx)(s[f],l[b]),(0,i.Dx)(t,p[b+1],s[f]),f++,b--;else if(d[m]===c[g])p[g]=(0,i.lx)(s[m],l[g]),(0,i.Dx)(t,s[f],s[m]),m--,g++;else if(void 0===h&&(h=a(c,g,b),u=a(d,f,m)),h.has(d[f]))if(h.has(d[m])){const e=u.get(c[g]),n=void 0!==e?s[e]:null;if(null===n){const e=(0,i.Dx)(t,s[f]);(0,i.lx)(e,l[g]),p[g]=e}else p[g]=(0,i.lx)(n,l[g]),(0,i.Dx)(t,s[f],n),s[e]=null;g++}else(0,i.KO)(s[m]),m--;else(0,i.KO)(s[f]),f++;for(;g<=b;){const e=(0,i.Dx)(t,p[b+1]);(0,i.lx)(e,l[g]),p[g++]=e}for(;f<=m;){const t=s[f++];null!==t&&(0,i.KO)(t)}return this.ut=c,(0,i.mY)(t,p),r.c0}})},70980(t,e,n){"use strict";n.d(e,{W:()=>s});var r=n(80181),o=n(16655);const i="important",a=" !"+i,s=(0,o.u$)(class extends o.WL{constructor(t){if(super(t),t.type!==o.OA.ATTRIBUTE||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,n)=>{const r=t[n];return null==r?e:e+`${n=n.includes("-")?n:n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(t,[e]){const{style:n}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const t of this.ft)null==e[t]&&(this.ft.delete(t),t.includes("-")?n.removeProperty(t):n[t]=null);for(const t in e){const r=e[t];if(null!=r){this.ft.add(t);const e="string"==typeof r&&r.endsWith(a);t.includes("-")||e?n.setProperty(t,e?r.slice(0,-11):r,e?i:""):n[t]=r}}return r.c0}})},59929(t,e,n){"use strict";n.d(e,{WF:()=>a,AH:()=>r.AH,qy:()=>o.qy,s6:()=>o.s6,XX:()=>o.XX,JW:()=>o.JW});var r=n(72803),o=n(80181);const i=globalThis;class a extends r.mN{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=(0,o.XX)(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return o.c0}}a._$litElement$=!0,a.finalized=!0,i.litElementHydrateSupport?.({LitElement:a});const s=i.litElementPolyfillSupport;s?.({LitElement:a});(i.litElementVersions??=[]).push("4.2.2")},15939(t,e,n){"use strict";n.d(e,{K:()=>m,w:()=>f});for(var r={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},o={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},i="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),a="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),s=0;s<10;s++)r[48+s]=r[96+s]=String(s);for(s=1;s<=24;s++)r[s+111]="F"+s;for(s=65;s<=90;s++)r[s]=String.fromCharCode(s+32),o[s]=String.fromCharCode(s);for(var l in r)o.hasOwnProperty(l)||(o[l]=r[l]);var c=n(81570);const d="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),p="undefined"!=typeof navigator&&/Win/.test(navigator.platform);function h(t){let e,n,r,o,i=t.split(/-(?!$)/),a=i[i.length-1];"Space"==a&&(a=" ");for(let t=0;t<i.length-1;t++){let a=i[t];if(/^(cmd|meta|m)$/i.test(a))o=!0;else if(/^a(lt)?$/i.test(a))e=!0;else if(/^(c|ctrl|control)$/i.test(a))n=!0;else if(/^s(hift)?$/i.test(a))r=!0;else{if(!/^mod$/i.test(a))throw new Error("Unrecognized modifier name: "+a);d?o=!0:n=!0}}return e&&(a="Alt-"+a),n&&(a="Ctrl-"+a),o&&(a="Meta-"+a),r&&(a="Shift-"+a),a}function u(t,e,n=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n&&e.shiftKey&&(t="Shift-"+t),t}function f(t){return new c.k_({props:{handleKeyDown:m(t)}})}function m(t){let e=function(t){let e=Object.create(null);for(let n in t)e[h(n)]=t[n];return e}(t);return function(t,n){let s,l=function(t){var e=!(i&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||a&&t.shiftKey&&t.key&&1==t.key.length||"Unidentified"==t.key)&&t.key||(t.shiftKey?o:r)[t.keyCode]||t.key||"Unidentified";return"Esc"==e&&(e="Escape"),"Del"==e&&(e="Delete"),"Left"==e&&(e="ArrowLeft"),"Up"==e&&(e="ArrowUp"),"Right"==e&&(e="ArrowRight"),"Down"==e&&(e="ArrowDown"),e}(n),c=e[u(l,n)];if(c&&c(t.state,t.dispatch,t))return!0;if(1==l.length&&" "!=l){if(n.shiftKey){let r=e[u(l,n,!1)];if(r&&r(t.state,t.dispatch,t))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(p&&n.ctrlKey&&n.altKey)&&(s=r[n.keyCode])&&s!=l){let r=e[u(s,n)];if(r&&r(t.state,t.dispatch,t))return!0}}return!1}}},16090(t,e,n){"use strict";function r(t){this.content=t}n.d(e,{S4:()=>G,ZF:()=>lt,FK:()=>s,CU:()=>p,sX:()=>Z,bP:()=>L,u$:()=>B,vI:()=>h,Sj:()=>K,Ji:()=>u}),r.prototype={constructor:r,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return-1==e?void 0:this.content[e+1]},update:function(t,e,n){var o=n&&n!=t?this.remove(n):this,i=o.find(t),a=o.content.slice();return-1==i?a.push(n||t,e):(a[i+1]=e,n&&(a[i]=n)),new r(a)},remove:function(t){var e=this.find(t);if(-1==e)return this;var n=this.content.slice();return n.splice(e,2),new r(n)},addToStart:function(t,e){return new r([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new r(n)},addBefore:function(t,e,n){var o=this.remove(e),i=o.content.slice(),a=o.find(t);return i.splice(-1==a?i.length:a,0,e,n),new r(i)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return(t=r.from(t)).size?new r(t.content.concat(this.subtract(t).content)):this},append:function(t){return(t=r.from(t)).size?new r(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=r.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}},r.from=function(t){if(t instanceof r)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new r(e)};const o=r;function i(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let o=t.child(r),a=e.child(r);if(o!=a){if(!o.sameMarkup(a))return n;if(o.isText&&o.text!=a.text){for(let t=0;o.text[t]==a.text[t];t++)n++;return n}if(o.content.size||a.content.size){let t=i(o.content,a.content,n+1);if(null!=t)return t}n+=o.nodeSize}else n+=o.nodeSize}}function a(t,e,n,r){for(let o=t.childCount,i=e.childCount;;){if(0==o||0==i)return o==i?null:{a:n,b:r};let s=t.child(--o),l=e.child(--i),c=s.nodeSize;if(s!=l){if(!s.sameMarkup(l))return{a:n,b:r};if(s.isText&&s.text!=l.text){let t=0,e=Math.min(s.text.length,l.text.length);for(;t<e&&s.text[s.text.length-t-1]==l.text[l.text.length-t-1];)t++,n--,r--;return{a:n,b:r}}if(s.content.size||l.content.size){let t=a(s.content,l.content,n-1,r-1);if(t)return t}n-=c,r-=c}else n-=c,r-=c}}class s{constructor(t,e){if(this.content=t,this.size=e||0,null==e)for(let e=0;e<t.length;e++)this.size+=t[e].nodeSize}nodesBetween(t,e,n,r=0,o){for(let i=0,a=0;a<e;i++){let s=this.content[i],l=a+s.nodeSize;if(l>t&&!1!==n(s,r+a,o||null,i)&&s.content.size){let o=a+1;s.nodesBetween(Math.max(0,t-o),Math.min(s.content.size,e-o),n,r+o)}a=l}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,e,n,r){let o="",i=!0;return this.nodesBetween(t,e,(a,s)=>{let l=a.isText?a.text.slice(Math.max(t,s)-s,e-s):a.isLeaf?r?"function"==typeof r?r(a):r:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&l||a.isTextblock)&&n&&(i?i=!1:o+=n),o+=l},0),o}append(t){if(!t.size)return this;if(!this.size)return t;let e=this.lastChild,n=t.firstChild,r=this.content.slice(),o=0;for(e.isText&&e.sameMarkup(n)&&(r[r.length-1]=e.withText(e.text+n.text),o=1);o<t.content.length;o++)r.push(t.content[o]);return new s(r,this.size+t.size)}cut(t,e=this.size){if(0==t&&e==this.size)return this;let n=[],r=0;if(e>t)for(let o=0,i=0;i<e;o++){let a=this.content[o],s=i+a.nodeSize;s>t&&((i<t||s>e)&&(a=a.isText?a.cut(Math.max(0,t-i),Math.min(a.text.length,e-i)):a.cut(Math.max(0,t-i-1),Math.min(a.content.size,e-i-1))),n.push(a),r+=a.nodeSize),i=s}return new s(n,r)}cutByIndex(t,e){return t==e?s.empty:0==t&&e==this.content.length?this:new s(this.content.slice(t,e))}replaceChild(t,e){let n=this.content[t];if(n==e)return this;let r=this.content.slice(),o=this.size+e.nodeSize-n.nodeSize;return r[t]=e,new s(r,o)}addToStart(t){return new s([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new s(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let e=0;e<this.content.length;e++)if(!this.content[e].eq(t.content[e]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(t){let e=this.content[t];if(!e)throw new RangeError("Index "+t+" out of range for "+this);return e}maybeChild(t){return this.content[t]||null}forEach(t){for(let e=0,n=0;e<this.content.length;e++){let r=this.content[e];t(r,n,e),n+=r.nodeSize}}findDiffStart(t,e=0){return i(this,t,e)}findDiffEnd(t,e=this.size,n=t.size){return a(this,t,e,n)}findIndex(t){if(0==t)return c(0,t);if(t==this.size)return c(this.content.length,t);if(t>this.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let e=0,n=0;;e++){let r=n+this.child(e).nodeSize;if(r>=t)return r==t?c(e+1,r):c(e,n);n=r}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,e){if(!e)return s.empty;if(!Array.isArray(e))throw new RangeError("Invalid input for Fragment.fromJSON");return new s(e.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return s.empty;let e,n=0;for(let r=0;r<t.length;r++){let o=t[r];n+=o.nodeSize,r&&o.isText&&t[r-1].sameMarkup(o)?(e||(e=t.slice(0,r)),e[e.length-1]=o.withText(e[e.length-1].text+o.text)):e&&e.push(o)}return new s(e||t,n)}static from(t){if(!t)return s.empty;if(t instanceof s)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new s([t],t.nodeSize);throw new RangeError("Can not convert "+t+" to a Fragment"+(t.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}s.empty=new s([],0);const l={index:0,offset:0};function c(t,e){return l.index=t,l.offset=e,l}function d(t,e){if(t===e)return!0;if(!t||"object"!=typeof t||!e||"object"!=typeof e)return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!d(t[n],e[n]))return!1}else{for(let n in t)if(!(n in e)||!d(t[n],e[n]))return!1;for(let n in e)if(!(n in t))return!1}return!0}class p{constructor(t,e){this.type=t,this.attrs=e}addToSet(t){let e,n=!1;for(let r=0;r<t.length;r++){let o=t[r];if(this.eq(o))return t;if(this.type.excludes(o.type))e||(e=t.slice(0,r));else{if(o.type.excludes(this.type))return t;!n&&o.type.rank>this.type.rank&&(e||(e=t.slice(0,r)),e.push(this),n=!0),e&&e.push(o)}}return e||(e=t.slice()),n||e.push(this),e}removeFromSet(t){for(let e=0;e<t.length;e++)if(this.eq(t[e]))return t.slice(0,e).concat(t.slice(e+1));return t}isInSet(t){for(let e=0;e<t.length;e++)if(this.eq(t[e]))return!0;return!1}eq(t){return this==t||this.type==t.type&&d(this.attrs,t.attrs)}toJSON(){let t={type:this.type.name};for(let e in this.attrs){t.attrs=this.attrs;break}return t}static fromJSON(t,e){if(!e)throw new RangeError("Invalid input for Mark.fromJSON");let n=t.marks[e.type];if(!n)throw new RangeError(`There is no mark type ${e.type} in this schema`);let r=n.create(e.attrs);return n.checkAttrs(r.attrs),r}static sameSet(t,e){if(t==e)return!0;if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].eq(e[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&0==t.length)return p.none;if(t instanceof p)return[t];let e=t.slice();return e.sort((t,e)=>t.type.rank-e.type.rank),e}}p.none=[];class h extends Error{}class u{constructor(t,e,n){this.content=t,this.openStart=e,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,e){let n=m(this.content,t+this.openStart,e);return n&&new u(n,this.openStart,this.openEnd)}removeBetween(t,e){return new u(f(this.content,t+this.openStart,e+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,e){if(!e)return u.empty;let n=e.openStart||0,r=e.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw new RangeError("Invalid input for Slice.fromJSON");return new u(s.fromJSON(t,e.content),n,r)}static maxOpen(t,e=!0){let n=0,r=0;for(let r=t.firstChild;r&&!r.isLeaf&&(e||!r.type.spec.isolating);r=r.firstChild)n++;for(let n=t.lastChild;n&&!n.isLeaf&&(e||!n.type.spec.isolating);n=n.lastChild)r++;return new u(t,n,r)}}function f(t,e,n){let{index:r,offset:o}=t.findIndex(e),i=t.maybeChild(r),{index:a,offset:s}=t.findIndex(n);if(o==e||i.isText){if(s!=n&&!t.child(a).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=a)throw new RangeError("Removing non-flat range");return t.replaceChild(r,i.copy(f(i.content,e-o-1,n-o-1)))}function m(t,e,n,r){let{index:o,offset:i}=t.findIndex(e),a=t.maybeChild(o);if(i==e||a.isText)return r&&!r.canReplace(o,o,n)?null:t.cut(0,e).append(n).append(t.cut(e));let s=m(a.content,e-i-1,n,a);return s&&t.replaceChild(o,a.copy(s))}function g(t,e,n){if(n.openStart>t.depth)throw new h("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new h("Inconsistent open depths");return b(t,e,n,0)}function b(t,e,n,r){let o=t.index(r),i=t.node(r);if(o==e.index(r)&&r<t.depth-n.openStart){let a=b(t,e,n,r+1);return i.copy(i.content.replaceChild(o,a))}if(n.content.size){if(n.openStart||n.openEnd||t.depth!=r||e.depth!=r){let{start:o,end:a}=function(t,e){let n=e.depth-t.openStart,r=e.node(n).copy(t.content);for(let t=n-1;t>=0;t--)r=e.node(t).copy(s.from(r));return{start:r.resolveNoCache(t.openStart+n),end:r.resolveNoCache(r.content.size-t.openEnd-n)}}(n,t);return _(i,v(t,o,a,e,r))}{let r=t.parent,o=r.content;return _(r,o.cut(0,t.parentOffset).append(n.content).append(o.cut(e.parentOffset)))}}return _(i,k(t,e,r))}function y(t,e){if(!e.type.compatibleContent(t.type))throw new h("Cannot join "+e.type.name+" onto "+t.type.name)}function w(t,e,n){let r=t.node(n);return y(r,e.node(n)),r}function A(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function x(t,e,n,r){let o=(e||t).node(n),i=0,a=e?e.index(n):o.childCount;t&&(i=t.index(n),t.depth>n?i++:t.textOffset&&(A(t.nodeAfter,r),i++));for(let t=i;t<a;t++)A(o.child(t),r);e&&e.depth==n&&e.textOffset&&A(e.nodeBefore,r)}function _(t,e){return t.type.checkContent(e),t.copy(e)}function v(t,e,n,r,o){let i=t.depth>o&&w(t,e,o+1),a=r.depth>o&&w(n,r,o+1),l=[];return x(null,t,o,l),i&&a&&e.index(o)==n.index(o)?(y(i,a),A(_(i,v(t,e,n,r,o+1)),l)):(i&&A(_(i,k(t,e,o+1)),l),x(e,n,o,l),a&&A(_(a,k(n,r,o+1)),l)),x(r,null,o,l),new s(l)}function k(t,e,n){let r=[];if(x(null,t,n,r),t.depth>n){A(_(w(t,e,n+1),k(t,e,n+1)),r)}return x(e,null,n,r),new s(r)}u.empty=new u(s.empty,0,0);class C{constructor(t,e,n){this.pos=t,this.path=e,this.parentOffset=n,this.depth=e.length/3-1}resolveDepth(t){return null==t?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[3*this.resolveDepth(t)]}index(t){return this.path[3*this.resolveDepth(t)+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t!=this.depth||this.textOffset?1:0)}start(t){return 0==(t=this.resolveDepth(t))?0:this.path[3*t-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(!(t=this.resolveDepth(t)))throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]}after(t){if(!(t=this.resolveDepth(t)))throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]+this.path[3*t].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,e=this.index(this.depth);if(e==t.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=t.child(e);return n?t.child(e).cut(n):r}get nodeBefore(){let t=this.index(this.depth),e=this.pos-this.path[this.path.length-1];return e?this.parent.child(t).cut(0,e):0==t?null:this.parent.child(t-1)}posAtIndex(t,e){e=this.resolveDepth(e);let n=this.path[3*e],r=0==e?0:this.path[3*e-1]+1;for(let e=0;e<t;e++)r+=n.child(e).nodeSize;return r}marks(){let t=this.parent,e=this.index();if(0==t.content.size)return p.none;if(this.textOffset)return t.child(e).marks;let n=t.maybeChild(e-1),r=t.maybeChild(e);if(!n){let t=n;n=r,r=t}let o=n.marks;for(var i=0;i<o.length;i++)!1!==o[i].type.spec.inclusive||r&&o[i].isInSet(r.marks)||(o=o[i--].removeFromSet(o));return o}marksAcross(t){let e=this.parent.maybeChild(this.index());if(!e||!e.isInline)return null;let n=e.marks,r=t.parent.maybeChild(t.index());for(var o=0;o<n.length;o++)!1!==n[o].type.spec.inclusive||r&&n[o].isInSet(r.marks)||(n=n[o--].removeFromSet(n));return n}sharedDepth(t){for(let e=this.depth;e>0;e--)if(this.start(e)<=t&&this.end(e)>=t)return e;return 0}blockRange(t=this,e){if(t.pos<this.pos)return t.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==t.pos?1:0);n>=0;n--)if(t.pos<=this.end(n)&&(!e||e(this.node(n))))return new B(this,t,n);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos<this.pos?t:this}toString(){let t="";for(let e=1;e<=this.depth;e++)t+=(t?"/":"")+this.node(e).type.name+"_"+this.index(e-1);return t+":"+this.parentOffset}static resolve(t,e){if(!(e>=0&&e<=t.content.size))throw new RangeError("Position "+e+" out of range");let n=[],r=0,o=e;for(let e=t;;){let{index:t,offset:i}=e.content.findIndex(o),a=o-i;if(n.push(e,t,r+i),!a)break;if(e=e.child(t),e.isText)break;o=a-1,r+=i+1}return new C(e,n,o)}static resolveCached(t,e){let n=M.get(t);if(n)for(let t=0;t<n.elts.length;t++){let r=n.elts[t];if(r.pos==e)return r}else M.set(t,n=new E);let r=n.elts[n.i]=C.resolve(t,e);return n.i=(n.i+1)%S,r}}class E{constructor(){this.elts=[],this.i=0}}const S=12,M=new WeakMap;class B{constructor(t,e,n){this.$from=t,this.$to=e,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const T=Object.create(null);class L{constructor(t,e,n,r=p.none){this.type=t,this.attrs=e,this.marks=r,this.content=n||s.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(t){return this.content.child(t)}maybeChild(t){return this.content.maybeChild(t)}forEach(t){this.content.forEach(t)}nodesBetween(t,e,n,r=0){this.content.nodesBetween(t,e,n,r,this)}descendants(t){this.nodesBetween(0,this.content.size,t)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(t,e,n,r){return this.content.textBetween(t,e,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(t){return this==t||this.sameMarkup(t)&&this.content.eq(t.content)}sameMarkup(t){return this.hasMarkup(t.type,t.attrs,t.marks)}hasMarkup(t,e,n){return this.type==t&&d(this.attrs,e||t.defaultAttrs||T)&&p.sameSet(this.marks,n||p.none)}copy(t=null){return t==this.content?this:new L(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new L(this.type,this.attrs,this.content,t)}cut(t,e=this.content.size){return 0==t&&e==this.content.size?this:this.copy(this.content.cut(t,e))}slice(t,e=this.content.size,n=!1){if(t==e)return u.empty;let r=this.resolve(t),o=this.resolve(e),i=n?0:r.sharedDepth(e),a=r.start(i),s=r.node(i).content.cut(r.pos-a,o.pos-a);return new u(s,r.depth-i,o.depth-i)}replace(t,e,n){return g(this.resolve(t),this.resolve(e),n)}nodeAt(t){for(let e=this;;){let{index:n,offset:r}=e.content.findIndex(t);if(e=e.maybeChild(n),!e)return null;if(r==t||e.isText)return e;t-=r+1}}childAfter(t){let{index:e,offset:n}=this.content.findIndex(t);return{node:this.content.maybeChild(e),index:e,offset:n}}childBefore(t){if(0==t)return{node:null,index:0,offset:0};let{index:e,offset:n}=this.content.findIndex(t);if(n<t)return{node:this.content.child(e),index:e,offset:n};let r=this.content.child(e-1);return{node:r,index:e-1,offset:n-r.nodeSize}}resolve(t){return C.resolveCached(this,t)}resolveNoCache(t){return C.resolve(this,t)}rangeHasMark(t,e,n){let r=!1;return e>t&&this.nodesBetween(t,e,t=>(n.isInSet(t.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),I(this.marks,t)}contentMatchAt(t){let e=this.type.contentMatch.matchFragment(this.content,0,t);if(!e)throw new Error("Called contentMatchAt on a node with invalid content");return e}canReplace(t,e,n=s.empty,r=0,o=n.childCount){let i=this.contentMatchAt(t).matchFragment(n,r,o),a=i&&i.matchFragment(this.content,e);if(!a||!a.validEnd)return!1;for(let t=r;t<o;t++)if(!this.type.allowsMarks(n.child(t).marks))return!1;return!0}canReplaceWith(t,e,n,r){if(r&&!this.type.allowsMarks(r))return!1;let o=this.contentMatchAt(t).matchType(n),i=o&&o.matchFragment(this.content,e);return!!i&&i.validEnd}canAppend(t){return t.content.size?this.canReplace(this.childCount,this.childCount,t.content):this.type.compatibleContent(t.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let t=p.none;for(let e=0;e<this.marks.length;e++){let n=this.marks[e];n.type.checkAttrs(n.attrs),t=n.addToSet(t)}if(!p.sameSet(t,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let t={type:this.type.name};for(let e in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(t=>t.toJSON())),t}static fromJSON(t,e){if(!e)throw new RangeError("Invalid input for Node.fromJSON");let n;if(e.marks){if(!Array.isArray(e.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=e.marks.map(t.markFromJSON)}if("text"==e.type){if("string"!=typeof e.text)throw new RangeError("Invalid text node in JSON");return t.text(e.text,n)}let r=s.fromJSON(t,e.content),o=t.nodeType(e.type).create(e.attrs,r,n);return o.type.checkAttrs(o.attrs),o}}L.prototype.text=void 0;class O extends L{constructor(t,e,n,r){if(super(t,e,null,r),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):I(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,e){return this.text.slice(t,e)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new O(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new O(this.type,this.attrs,t,this.marks)}cut(t=0,e=this.text.length){return 0==t&&e==this.text.length?this:this.withText(this.text.slice(t,e))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function I(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class N{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,e){let n=new R(t,e);if(null==n.next)return N.empty;let r=z(n);n.next&&n.err("Unexpected trailing text");let o=function(t){let e=Object.create(null);return n(F(t,0));function n(r){let o=[];r.forEach(e=>{t[e].forEach(({term:e,to:n})=>{if(!e)return;let r;for(let t=0;t<o.length;t++)o[t][0]==e&&(r=o[t][1]);F(t,n).forEach(t=>{r||o.push([e,r=[]]),-1==r.indexOf(t)&&r.push(t)})})});let i=e[r.join(",")]=new N(r.indexOf(t.length-1)>-1);for(let t=0;t<o.length;t++){let r=o[t][1].sort(j);i.next.push({type:o[t][0],next:e[r.join(",")]||n(r)})}return i}}(function(t){let e=[[]];return o(i(t,0),n()),e;function n(){return e.push([])-1}function r(t,n,r){let o={term:r,to:n};return e[t].push(o),o}function o(t,e){t.forEach(t=>t.to=e)}function i(t,e){if("choice"==t.type)return t.exprs.reduce((t,n)=>t.concat(i(n,e)),[]);if("seq"!=t.type){if("star"==t.type){let a=n();return r(e,a),o(i(t.expr,a),a),[r(a)]}if("plus"==t.type){let a=n();return o(i(t.expr,e),a),o(i(t.expr,a),a),[r(a)]}if("opt"==t.type)return[r(e)].concat(i(t.expr,e));if("range"==t.type){let a=e;for(let e=0;e<t.min;e++){let e=n();o(i(t.expr,a),e),a=e}if(-1==t.max)o(i(t.expr,a),a);else for(let e=t.min;e<t.max;e++){let e=n();r(a,e),o(i(t.expr,a),e),a=e}return[r(a)]}if("name"==t.type)return[r(e,void 0,t.value)];throw new Error("Unknown expr type")}for(let r=0;;r++){let a=i(t.exprs[r],e);if(r==t.exprs.length-1)return a;o(a,e=n())}}}(r));return function(t,e){for(let n=0,r=[t];n<r.length;n++){let t=r[n],o=!t.validEnd,i=[];for(let e=0;e<t.next.length;e++){let{type:n,next:a}=t.next[e];i.push(n.name),!o||n.isText||n.hasRequiredAttrs()||(o=!1),-1==r.indexOf(a)&&r.push(a)}o&&e.err("Only non-generatable nodes ("+i.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(o,n),o}matchType(t){for(let e=0;e<this.next.length;e++)if(this.next[e].type==t)return this.next[e].next;return null}matchFragment(t,e=0,n=t.childCount){let r=this;for(let o=e;r&&o<n;o++)r=r.matchType(t.child(o).type);return r}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let t=0;t<this.next.length;t++){let{type:e}=this.next[t];if(!e.isText&&!e.hasRequiredAttrs())return e}return null}compatible(t){for(let e=0;e<this.next.length;e++)for(let n=0;n<t.next.length;n++)if(this.next[e].type==t.next[n].type)return!0;return!1}fillBefore(t,e=!1,n=0){let r=[this];return function o(i,a){let l=i.matchFragment(t,n);if(l&&(!e||l.validEnd))return s.from(a.map(t=>t.createAndFill()));for(let t=0;t<i.next.length;t++){let{type:e,next:n}=i.next[t];if(!e.isText&&!e.hasRequiredAttrs()&&-1==r.indexOf(n)){r.push(n);let t=o(n,a.concat(e));if(t)return t}}return null}(this,[])}findWrapping(t){for(let e=0;e<this.wrapCache.length;e+=2)if(this.wrapCache[e]==t)return this.wrapCache[e+1];let e=this.computeWrapping(t);return this.wrapCache.push(t,e),e}computeWrapping(t){let e=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),o=r.match;if(o.matchType(t)){let t=[];for(let e=r;e.type;e=e.via)t.push(e.type);return t.reverse()}for(let t=0;t<o.next.length;t++){let{type:i,next:a}=o.next[t];i.isLeaf||i.hasRequiredAttrs()||i.name in e||r.type&&!a.validEnd||(n.push({match:i.contentMatch,type:i,via:r}),e[i.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(t){if(t>=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];return function e(n){t.push(n);for(let r=0;r<n.next.length;r++)-1==t.indexOf(n.next[r].next)&&e(n.next[r].next)}(this),t.map((e,n)=>{let r=n+(e.validEnd?"*":" ")+" ";for(let n=0;n<e.next.length;n++)r+=(n?", ":"")+e.next[n].type.name+"->"+t.indexOf(e.next[n].next);return r}).join("\n")}}N.empty=new N(!0);class R{constructor(t,e){this.string=t,this.nodeTypes=e,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function z(t){let e=[];do{e.push(H(t))}while(t.eat("|"));return 1==e.length?e[0]:{type:"choice",exprs:e}}function H(t){let e=[];do{e.push(P(t))}while(t.next&&")"!=t.next&&"|"!=t.next);return 1==e.length?e[0]:{type:"seq",exprs:e}}function P(t){let e=function(t){if(t.eat("(")){let e=z(t);return t.eat(")")||t.err("Missing closing paren"),e}if(!/\W/.test(t.next)){let e=function(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let o=[];for(let t in n){let r=n[t];r.isInGroup(e)&&o.push(r)}0==o.length&&t.err("No node type or group '"+e+"' found");return o}(t,t.next).map(e=>(null==t.inline?t.inline=e.isInline:t.inline!=e.isInline&&t.err("Mixing inline and block content"),{type:"name",value:e}));return t.pos++,1==e.length?e[0]:{type:"choice",exprs:e}}t.err("Unexpected token '"+t.next+"'")}(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else{if(!t.eat("{"))break;e=$(t,e)}return e}function D(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function $(t,e){let n=D(t),r=n;return t.eat(",")&&(r="}"!=t.next?D(t):-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function j(t,e){return e-t}function F(t,e){let n=[];return function e(r){let o=t[r];if(1==o.length&&!o[0].term)return e(o[0].to);n.push(r);for(let t=0;t<o.length;t++){let{term:r,to:i}=o[t];r||-1!=n.indexOf(i)||e(i)}}(e),n.sort(j)}function U(t){let e=Object.create(null);for(let n in t){let r=t[n];if(!r.hasDefault)return null;e[n]=r.default}return e}function q(t,e){let n=Object.create(null);for(let r in t){let o=e&&e[r];if(void 0===o){let e=t[r];if(!e.hasDefault)throw new RangeError("No value supplied for attribute "+r);o=e.default}n[r]=o}return n}function W(t,e,n,r){for(let r in e)if(!(r in t))throw new RangeError(`Unsupported attribute ${r} for ${n} of type ${r}`);for(let n in t){let r=t[n];r.validate&&r.validate(e[n])}}function V(t,e){let n=Object.create(null);if(e)for(let r in e)n[r]=new X(t,r,e[r]);return n}class Y{constructor(t,e,n){this.name=t,this.schema=e,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=V(t,n.attrs),this.defaultAttrs=U(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==t),this.isText="text"==t}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==N.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(t){return this.groups.indexOf(t)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let t in this.attrs)if(this.attrs[t].isRequired)return!0;return!1}compatibleContent(t){return this==t||this.contentMatch.compatible(t.contentMatch)}computeAttrs(t){return!t&&this.defaultAttrs?this.defaultAttrs:q(this.attrs,t)}create(t=null,e,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new L(this,this.computeAttrs(t),s.from(e),p.setFrom(n))}createChecked(t=null,e,n){return e=s.from(e),this.checkContent(e),new L(this,this.computeAttrs(t),e,p.setFrom(n))}createAndFill(t=null,e,n){if(t=this.computeAttrs(t),(e=s.from(e)).size){let t=this.contentMatch.fillBefore(e);if(!t)return null;e=t.append(e)}let r=this.contentMatch.matchFragment(e),o=r&&r.fillBefore(s.empty,!0);return o?new L(this,t,e.append(o),p.setFrom(n)):null}validContent(t){let e=this.contentMatch.matchFragment(t);if(!e||!e.validEnd)return!1;for(let e=0;e<t.childCount;e++)if(!this.allowsMarks(t.child(e).marks))return!1;return!0}checkContent(t){if(!this.validContent(t))throw new RangeError(`Invalid content for node ${this.name}: ${t.toString().slice(0,50)}`)}checkAttrs(t){W(this.attrs,t,"node",this.name)}allowsMarkType(t){return null==this.markSet||this.markSet.indexOf(t)>-1}allowsMarks(t){if(null==this.markSet)return!0;for(let e=0;e<t.length;e++)if(!this.allowsMarkType(t[e].type))return!1;return!0}allowedMarks(t){if(null==this.markSet)return t;let e;for(let n=0;n<t.length;n++)this.allowsMarkType(t[n].type)?e&&e.push(t[n]):e||(e=t.slice(0,n));return e?e.length?e:p.none:t}static compile(t,e){let n=Object.create(null);t.forEach((t,r)=>n[t]=new Y(t,e,r));let r=e.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let t in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}}class X{constructor(t,e,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,"default"),this.default=n.default,this.validate="string"==typeof n.validate?function(t,e,n){let r=n.split("|");return n=>{let o=null===n?"null":typeof n;if(r.indexOf(o)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${t}, got ${o}`)}}(t,e,n.validate):n.validate}get isRequired(){return!this.hasDefault}}class Z{constructor(t,e,n,r){this.name=t,this.rank=e,this.schema=n,this.spec=r,this.attrs=V(t,r.attrs),this.excluded=null;let o=U(this.attrs);this.instance=o?new p(this,o):null}create(t=null){return!t&&this.instance?this.instance:new p(this,q(this.attrs,t))}static compile(t,e){let n=Object.create(null),r=0;return t.forEach((t,o)=>n[t]=new Z(t,r++,e,o)),n}removeFromSet(t){for(var e=0;e<t.length;e++)t[e].type==this&&(t=t.slice(0,e).concat(t.slice(e+1)),e--);return t}isInSet(t){for(let e=0;e<t.length;e++)if(t[e].type==this)return t[e]}checkAttrs(t){W(this.attrs,t,"mark",this.name)}excludes(t){return this.excluded.indexOf(t)>-1}}class K{constructor(t){this.linebreakReplacement=null,this.cached=Object.create(null);let e=this.spec={};for(let n in t)e[n]=t[n];e.nodes=o.from(t.nodes),e.marks=o.from(t.marks||{}),this.nodes=Y.compile(this.spec.nodes,this),this.marks=Z.compile(this.spec.marks,this);let n=Object.create(null);for(let t in this.nodes){if(t in this.marks)throw new RangeError(t+" can not be both a node and a mark");let e=this.nodes[t],r=e.spec.content||"",o=e.spec.marks;if(e.contentMatch=n[r]||(n[r]=N.parse(r,this.nodes)),e.inlineContent=e.contentMatch.inlineContent,e.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!e.isInline||!e.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=e}e.markSet="_"==o?null:o?J(this,o.split(" ")):""!=o&&e.inlineContent?null:[]}for(let t in this.marks){let e=this.marks[t],n=e.spec.excludes;e.excluded=null==n?[e]:""==n?[]:J(this,n.split(" "))}this.nodeFromJSON=t=>L.fromJSON(this,t),this.markFromJSON=t=>p.fromJSON(this,t),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,e=null,n,r){if("string"==typeof t)t=this.nodeType(t);else{if(!(t instanceof Y))throw new RangeError("Invalid node type: "+t);if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}return t.createChecked(e,n,r)}text(t,e){let n=this.nodes.text;return new O(n,n.defaultAttrs,t,p.setFrom(e))}mark(t,e){return"string"==typeof t&&(t=this.marks[t]),t.create(e)}nodeType(t){let e=this.nodes[t];if(!e)throw new RangeError("Unknown node type: "+t);return e}}function J(t,e){let n=[];for(let r=0;r<e.length;r++){let o=e[r],i=t.marks[o],a=i;if(i)n.push(i);else for(let e in t.marks){let r=t.marks[e];("_"==o||r.spec.group&&r.spec.group.split(" ").indexOf(o)>-1)&&n.push(a=r)}if(!a)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}class G{constructor(t,e){this.schema=t,this.rules=e,this.tags=[],this.styles=[];let n=this.matchedStyles=[];e.forEach(t=>{if(function(t){return null!=t.tag}(t))this.tags.push(t);else if(function(t){return null!=t.style}(t)){let e=/[^=]*/.exec(t.style)[0];n.indexOf(e)<0&&n.push(e),this.styles.push(t)}}),this.normalizeLists=!this.tags.some(e=>{if(!/^(ul|ol)\b/.test(e.tag)||!e.node)return!1;let n=t.nodes[e.node];return n.contentMatch.matchType(n)})}parse(t,e={}){let n=new ot(this,e,!1);return n.addAll(t,p.none,e.from,e.to),n.finish()}parseSlice(t,e={}){let n=new ot(this,e,!0);return n.addAll(t,p.none,e.from,e.to),u.maxOpen(n.finish())}matchTag(t,e,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let n=this.tags[r];if(it(t,n.tag)&&(void 0===n.namespace||t.namespaceURI==n.namespace)&&(!n.context||e.matchesContext(n.context))){if(n.getAttrs){let e=n.getAttrs(t);if(!1===e)continue;n.attrs=e||void 0}return n}}}matchStyle(t,e,n,r){for(let o=r?this.styles.indexOf(r)+1:0;o<this.styles.length;o++){let r=this.styles[o],i=r.style;if(!(0!=i.indexOf(t)||r.context&&!n.matchesContext(r.context)||i.length>t.length&&(61!=i.charCodeAt(t.length)||i.slice(t.length+1)!=e))){if(r.getAttrs){let t=r.getAttrs(e);if(!1===t)continue;r.attrs=t||void 0}return r}}}static schemaRules(t){let e=[];function n(t){let n=null==t.priority?50:t.priority,r=0;for(;r<e.length;r++){let t=e[r];if((null==t.priority?50:t.priority)<n)break}e.splice(r,0,t)}for(let e in t.marks){let r=t.marks[e].spec.parseDOM;r&&r.forEach(t=>{n(t=at(t)),t.mark||t.ignore||t.clearMark||(t.mark=e)})}for(let e in t.nodes){let r=t.nodes[e].spec.parseDOM;r&&r.forEach(t=>{n(t=at(t)),t.node||t.ignore||t.mark||(t.node=e)})}return e}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new G(t,G.schemaRules(t)))}}const Q={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},tt={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},et={ol:!0,ul:!0};function nt(t,e,n){return null!=e?(e?1:0)|("full"===e?2:0):t&&"pre"==t.whitespace?3:-5&n}class rt{constructor(t,e,n,r,o,i){this.type=t,this.attrs=e,this.marks=n,this.solid=r,this.options=i,this.content=[],this.activeMarks=p.none,this.match=o||(4&i?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let e=this.type.contentMatch.fillBefore(s.from(t));if(!e){let e,n=this.type.contentMatch;return(e=n.findWrapping(t.type))?(this.match=n,e):null}this.match=this.type.contentMatch.matchFragment(e)}return this.match.findWrapping(t.type)}finish(t){if(!(1&this.options)){let t,e=this.content[this.content.length-1];if(e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))){let n=e;e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length))}}let e=s.from(this.content);return!t&&this.match&&(e=e.append(this.match.fillBefore(s.empty,!0))),this.type?this.type.create(this.attrs,e,this.marks):e}inlineContext(t){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:t.parentNode&&!Q.hasOwnProperty(t.parentNode.nodeName.toLowerCase())}}class ot{constructor(t,e,n){this.parser=t,this.options=e,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r,o=e.topNode,i=nt(null,e.preserveWhitespace,0)|(n?4:0);r=o?new rt(o.type,o.attrs,p.none,!0,e.topMatch||o.type.contentMatch,i):new rt(n?null:t.schema.topNodeType,null,p.none,!0,null,i),this.nodes=[r],this.find=e.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(t,e){3==t.nodeType?this.addTextNode(t,e):1==t.nodeType&&this.addElement(t,e)}addTextNode(t,e){let n=t.nodeValue,r=this.top,o=2&r.options?"full":this.localPreserveWS||(1&r.options)>0,{schema:i}=this.parser;if("full"===o||r.inlineContext(t)||/[^ \t\r\n\u000c]/.test(n)){if(o)if("full"===o)n=n.replace(/\r\n?/g,"\n");else if(i.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(i.linebreakReplacement.create())){let t=n.split(/\r?\n|\r/);for(let n=0;n<t.length;n++)n&&this.insertNode(i.linebreakReplacement.create(),e,!0),t[n]&&this.insertNode(i.text(t[n]),e,!/\S/.test(t[n]));n=""}else n=n.replace(/\r?\n|\r/g," ");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let e=r.content[r.content.length-1],o=t.previousSibling;(!e||o&&"BR"==o.nodeName||e.isText&&/[ \t\r\n\u000c]$/.test(e.text))&&(n=n.slice(1))}n&&this.insertNode(i.text(n),e,!/\S/.test(n)),this.findInText(t)}else this.findInside(t)}addElement(t,e,n){let r=this.localPreserveWS,o=this.top;("PRE"==t.tagName||/pre/.test(t.style&&t.style.whiteSpace))&&(this.localPreserveWS=!0);let i,a=t.nodeName.toLowerCase();et.hasOwnProperty(a)&&this.parser.normalizeLists&&function(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let t=1==e.nodeType?e.nodeName.toLowerCase():null;t&&et.hasOwnProperty(t)&&n?(n.appendChild(e),e=n):"li"==t?n=e:t&&(n=null)}}(t);let s=this.options.ruleFromNode&&this.options.ruleFromNode(t)||(i=this.parser.matchTag(t,this,n));t:if(s?s.ignore:tt.hasOwnProperty(a))this.findInside(t),this.ignoreFallback(t,e);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(t=s.skip);let n,r=this.needsBlock;if(Q.hasOwnProperty(a))o.content.length&&o.content[0].isInline&&this.open&&(this.open--,o=this.top),n=!0,o.type||(this.needsBlock=!0);else if(!t.firstChild){this.leafFallback(t,e);break t}let i=s&&s.skip?e:this.readStyles(t,e);i&&this.addAll(t,i),n&&this.sync(o),this.needsBlock=r}else{let n=this.readStyles(t,e);n&&this.addElementByRule(t,s,n,!1===s.consuming?i:void 0)}this.localPreserveWS=r}leafFallback(t,e){"BR"==t.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode("\n"),e)}ignoreFallback(t,e){"BR"!=t.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),e,!0)}readStyles(t,e){let n=t.style;if(n&&n.length)for(let t=0;t<this.parser.matchedStyles.length;t++){let r=this.parser.matchedStyles[t],o=n.getPropertyValue(r);if(o)for(let t;;){let n=this.parser.matchStyle(r,o,this,t);if(!n)break;if(n.ignore)return null;if(e=n.clearMark?e.filter(t=>!n.clearMark(t)):e.concat(this.parser.schema.marks[n.mark].create(n.attrs)),!1!==n.consuming)break;t=n}}return e}addElementByRule(t,e,n,r){let o,i;if(e.node)if(i=this.parser.schema.nodes[e.node],i.isLeaf)this.insertNode(i.create(e.attrs),n,"BR"==t.nodeName)||this.leafFallback(t,n);else{let t=this.enter(i,e.attrs||null,n,e.preserveWhitespace);t&&(o=!0,n=t)}else{let t=this.parser.schema.marks[e.mark];n=n.concat(t.create(e.attrs))}let a=this.top;if(i&&i.isLeaf)this.findInside(t);else if(r)this.addElement(t,n,r);else if(e.getContent)this.findInside(t),e.getContent(t,this.parser.schema).forEach(t=>this.insertNode(t,n,!1));else{let r=t;"string"==typeof e.contentElement?r=t.querySelector(e.contentElement):"function"==typeof e.contentElement?r=e.contentElement(t):e.contentElement&&(r=e.contentElement),this.findAround(t,r,!0),this.addAll(r,n),this.findAround(t,r,!1)}o&&this.sync(a)&&this.open--}addAll(t,e,n,r){let o=n||0;for(let i=n?t.childNodes[n]:t.firstChild,a=null==r?null:t.childNodes[r];i!=a;i=i.nextSibling,++o)this.findAtPoint(t,o),this.addDOM(i,e);this.findAtPoint(t,o)}findPlace(t,e,n){let r,o;for(let e=this.open,i=0;e>=0;e--){let a=this.nodes[e],s=a.findWrapping(t);if(s&&(!r||r.length>s.length+i)&&(r=s,o=a,!s.length))break;if(a.solid){if(n)break;i+=2}}if(!r)return null;this.sync(o);for(let t=0;t<r.length;t++)e=this.enterInner(r[t],null,e,!1);return e}insertNode(t,e,n){if(t.isInline&&this.needsBlock&&!this.top.type){let t=this.textblockFromContext();t&&(e=this.enterInner(t,null,e))}let r=this.findPlace(t,e,n);if(r){this.closeExtra();let e=this.top;e.match&&(e.match=e.match.matchType(t.type));let n=p.none;for(let o of r.concat(t.marks))(e.type?e.type.allowsMarkType(o.type):st(o.type,t.type))&&(n=o.addToSet(n));return e.content.push(t.mark(n)),!0}return!1}enter(t,e,n,r){let o=this.findPlace(t.create(e),n,!1);return o&&(o=this.enterInner(t,e,n,!0,r)),o}enterInner(t,e,n,r=!1,o){this.closeExtra();let i=this.top;i.match=i.match&&i.match.matchType(t);let a=nt(t,o,i.options);4&i.options&&0==i.content.length&&(a|=4);let s=p.none;return n=n.filter(e=>!(i.type?i.type.allowsMarkType(e.type):st(e.type,t))||(s=e.addToSet(s),!1)),this.nodes.push(new rt(t,e,s,r,null,a)),this.open++,n}closeExtra(t=!1){let e=this.nodes.length-1;if(e>this.open){for(;e>this.open;e--)this.nodes[e-1].content.push(this.nodes[e].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!(!this.isOpen&&!this.options.topOpen))}sync(t){for(let e=this.open;e>=0;e--){if(this.nodes[e]==t)return this.open=e,!0;this.localPreserveWS&&(this.nodes[e].options|=1)}return!1}get currentPos(){this.closeExtra();let t=0;for(let e=this.open;e>=0;e--){let n=this.nodes[e].content;for(let e=n.length-1;e>=0;e--)t+=n[e].nodeSize;e&&t++}return t}findAtPoint(t,e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==t&&this.find[n].offset==e&&(this.find[n].pos=this.currentPos)}findInside(t){if(this.find)for(let e=0;e<this.find.length;e++)null==this.find[e].pos&&1==t.nodeType&&t.contains(this.find[e].node)&&(this.find[e].pos=this.currentPos)}findAround(t,e,n){if(t!=e&&this.find)for(let r=0;r<this.find.length;r++)if(null==this.find[r].pos&&1==t.nodeType&&t.contains(this.find[r].node)){e.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}}findInText(t){if(this.find)for(let e=0;e<this.find.length;e++)this.find[e].node==t&&(this.find[e].pos=this.currentPos-(t.nodeValue.length-this.find[e].offset))}matchesContext(t){if(t.indexOf("|")>-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let e=t.split("/"),n=this.options.context,r=!(this.isOpen||n&&n.parent.type!=this.nodes[0].type),o=-(n?n.depth+1:0)+(r?0:1),i=(t,a)=>{for(;t>=0;t--){let s=e[t];if(""==s){if(t==e.length-1||0==t)continue;for(;a>=o;a--)if(i(t-1,a))return!0;return!1}{let t=a>0||0==a&&r?this.nodes[a].type:n&&a>=o?n.node(a-o).type:null;if(!t||t.name!=s&&!t.isInGroup(s))return!1;a--}}return!0};return i(e.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let e=t.depth;e>=0;e--){let n=t.node(e).contentMatchAt(t.indexAfter(e)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let t in this.parser.schema.nodes){let e=this.parser.schema.nodes[t];if(e.isTextblock&&e.defaultAttrs)return e}}}function it(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function at(t){let e={};for(let n in t)e[n]=t[n];return e}function st(t,e){let n=e.schema.nodes;for(let r in n){let o=n[r];if(!o.allowsMarkType(t))continue;let i=[],a=t=>{i.push(t);for(let n=0;n<t.edgeCount;n++){let{type:r,next:o}=t.edge(n);if(r==e)return!0;if(i.indexOf(o)<0&&a(o))return!0}};if(a(o.contentMatch))return!0}}class lt{constructor(t,e){this.nodes=t,this.marks=e}serializeFragment(t,e={},n){n||(n=dt(e).createDocumentFragment());let r=n,o=[];return t.forEach(t=>{if(o.length||t.marks.length){let n=0,i=0;for(;n<o.length&&i<t.marks.length;){let e=t.marks[i];if(this.marks[e.type.name]){if(!e.eq(o[n][0])||!1===e.type.spec.spanning)break;n++,i++}else i++}for(;n<o.length;)r=o.pop()[1];for(;i<t.marks.length;){let n=t.marks[i++],a=this.serializeMark(n,t.isInline,e);a&&(o.push([n,r]),r.appendChild(a.dom),r=a.contentDOM||a.dom)}}r.appendChild(this.serializeNodeInner(t,e))}),n}serializeNodeInner(t,e){let{dom:n,contentDOM:r}=ut(dt(e),this.nodes[t.type.name](t),null,t.attrs);if(r){if(t.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(t.content,e,r)}return n}serializeNode(t,e={}){let n=this.serializeNodeInner(t,e);for(let r=t.marks.length-1;r>=0;r--){let o=this.serializeMark(t.marks[r],t.isInline,e);o&&((o.contentDOM||o.dom).appendChild(n),n=o.dom)}return n}serializeMark(t,e,n={}){let r=this.marks[t.type.name];return r&&ut(dt(n),r(t,e),null,t.attrs)}static renderSpec(t,e,n=null,r){return ut(t,e,n,r)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new lt(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let e=ct(t.nodes);return e.text||(e.text=t=>t.text),e}static marksFromSchema(t){return ct(t.marks)}}function ct(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function dt(t){return t.document||window.document}const pt=new WeakMap;function ht(t){let e=pt.get(t);return void 0===e&&pt.set(t,e=function(t){let e=null;function n(t){if(t&&"object"==typeof t)if(Array.isArray(t))if("string"==typeof t[0])e||(e=[]),e.push(t);else for(let e=0;e<t.length;e++)n(t[e]);else for(let e in t)n(t[e])}return n(t),e}(t)),e}function ut(t,e,n,r){if("string"==typeof e)return{dom:t.createTextNode(e)};if(null!=e.nodeType)return{dom:e};if(e.dom&&null!=e.dom.nodeType)return e;let o,i=e[0];if("string"!=typeof i)throw new RangeError("Invalid array passed to renderSpec");if(r&&(o=ht(r))&&o.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let a,s=i.indexOf(" ");s>0&&(n=i.slice(0,s),i=i.slice(s+1));let l=n?t.createElementNS(n,i):t.createElement(i),c=e[1],d=1;if(c&&"object"==typeof c&&null==c.nodeType&&!Array.isArray(c)){d=2;for(let t in c)if(null!=c[t]){let e=t.indexOf(" ");e>0?l.setAttributeNS(t.slice(0,e),t.slice(e+1),c[t]):"style"==t&&l.style?l.style.cssText=c[t]:l.setAttribute(t,c[t])}}for(let o=d;o<e.length;o++){let i=e[o];if(0===i){if(o<e.length-1||o>d)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}{let{dom:e,contentDOM:o}=ut(t,i,n,r);if(l.appendChild(e),o){if(a)throw new RangeError("Multiple content holes");a=o}}}return{dom:l,contentDOM:a}}},81570(t,e,n){"use strict";n.d(e,{$t:()=>v,LN:()=>a,U3:()=>d,hs:()=>M,i5:()=>f,k_:()=>C,nh:()=>h,yn:()=>s});var r=n(16090),o=n(11329);const i=Object.create(null);class a{constructor(t,e,n){this.$anchor=t,this.$head=e,this.ranges=n||[new s(t.min(e),t.max(e))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let e=0;e<t.length;e++)if(t[e].$from.pos!=t[e].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(t,e=r.Ji.empty){let n=e.content.lastChild,o=null;for(let t=0;t<e.openEnd;t++)o=n,n=n.lastChild;let i=t.steps.length,a=this.ranges;for(let s=0;s<a.length;s++){let{$from:l,$to:c}=a[s],d=t.mapping.slice(i);t.replaceRange(d.map(l.pos),d.map(c.pos),s?r.Ji.empty:e),0==s&&b(t,i,(n?n.isInline:o&&o.isTextblock)?-1:1)}}replaceWith(t,e){let n=t.steps.length,r=this.ranges;for(let o=0;o<r.length;o++){let{$from:i,$to:a}=r[o],s=t.mapping.slice(n),l=s.map(i.pos),c=s.map(a.pos);o?t.deleteRange(l,c):(t.replaceRangeWith(l,c,e),b(t,n,e.isInline?-1:1))}}static findFrom(t,e,n=!1){let r=t.parent.inlineContent?new d(t):g(t.node(0),t.parent,t.pos,t.index(),e,n);if(r)return r;for(let r=t.depth-1;r>=0;r--){let o=e<0?g(t.node(0),t.node(r),t.before(r+1),t.index(r),e,n):g(t.node(0),t.node(r),t.after(r+1),t.index(r)+1,e,n);if(o)return o}return null}static near(t,e=1){return this.findFrom(t,e)||this.findFrom(t,-e)||new f(t.node(0))}static atStart(t){return g(t,t,0,0,1)||new f(t)}static atEnd(t){return g(t,t,t.content.size,t.childCount,-1)||new f(t)}static fromJSON(t,e){if(!e||!e.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=i[e.type];if(!n)throw new RangeError(`No selection type ${e.type} defined`);return n.fromJSON(t,e)}static jsonID(t,e){if(t in i)throw new RangeError("Duplicate use of selection JSON ID "+t);return i[t]=e,e.prototype.jsonID=t,e}getBookmark(){return d.between(this.$anchor,this.$head).getBookmark()}}a.prototype.visible=!0;class s{constructor(t,e){this.$from=t,this.$to=e}}let l=!1;function c(t){l||t.parent.inlineContent||(l=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class d extends a{constructor(t,e=t){c(t),c(e),super(t,e)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,e){let n=t.resolve(e.map(this.head));if(!n.parent.inlineContent)return a.near(n);let r=t.resolve(e.map(this.anchor));return new d(r.parent.inlineContent?r:n,n)}replace(t,e=r.Ji.empty){if(super.replace(t,e),e==r.Ji.empty){let e=this.$from.marksAcross(this.$to);e&&t.ensureMarks(e)}}eq(t){return t instanceof d&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new p(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,e){if("number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new d(t.resolve(e.anchor),t.resolve(e.head))}static create(t,e,n=e){let r=t.resolve(e);return new this(r,n==e?r:t.resolve(n))}static between(t,e,n){let r=t.pos-e.pos;if(n&&!r||(n=r>=0?1:-1),!e.parent.inlineContent){let t=a.findFrom(e,n,!0)||a.findFrom(e,-n,!0);if(!t)return a.near(e,n);e=t.$head}return t.parent.inlineContent||(0==r||(t=(a.findFrom(t,-n,!0)||a.findFrom(t,n,!0)).$anchor).pos<e.pos!=r<0)&&(t=e),new d(t,e)}}a.jsonID("text",d);class p{constructor(t,e){this.anchor=t,this.head=e}map(t){return new p(t.map(this.anchor),t.map(this.head))}resolve(t){return d.between(t.resolve(this.anchor),t.resolve(this.head))}}class h extends a{constructor(t){let e=t.nodeAfter,n=t.node(0).resolve(t.pos+e.nodeSize);super(t,n),this.node=e}map(t,e){let{deleted:n,pos:r}=e.mapResult(this.anchor),o=t.resolve(r);return n?a.near(o):new h(o)}content(){return new r.Ji(r.FK.from(this.node),0,0)}eq(t){return t instanceof h&&t.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new u(this.anchor)}static fromJSON(t,e){if("number"!=typeof e.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new h(t.resolve(e.anchor))}static create(t,e){return new h(t.resolve(e))}static isSelectable(t){return!t.isText&&!1!==t.type.spec.selectable}}h.prototype.visible=!1,a.jsonID("node",h);class u{constructor(t){this.anchor=t}map(t){let{deleted:e,pos:n}=t.mapResult(this.anchor);return e?new p(n,n):new u(n)}resolve(t){let e=t.resolve(this.anchor),n=e.nodeAfter;return n&&h.isSelectable(n)?new h(e):a.near(e)}}class f extends a{constructor(t){super(t.resolve(0),t.resolve(t.content.size))}replace(t,e=r.Ji.empty){if(e==r.Ji.empty){t.delete(0,t.doc.content.size);let e=a.atStart(t.doc);e.eq(t.selection)||t.setSelection(e)}else super.replace(t,e)}toJSON(){return{type:"all"}}static fromJSON(t){return new f(t)}map(t){return new f(t)}eq(t){return t instanceof f}getBookmark(){return m}}a.jsonID("all",f);const m={map(){return this},resolve:t=>new f(t)};function g(t,e,n,r,o,i=!1){if(e.inlineContent)return d.create(t,n);for(let a=r-(o>0?0:1);o>0?a<e.childCount:a>=0;a+=o){let r=e.child(a);if(r.isAtom){if(!i&&h.isSelectable(r))return h.create(t,n-(o<0?r.nodeSize:0))}else{let e=g(t,r,n+o,o<0?r.childCount:0,o,i);if(e)return e}n+=r.nodeSize*o}return null}function b(t,e,n){let r=t.steps.length-1;if(r<e)return;let i,s=t.steps[r];(s instanceof o.Ln||s instanceof o.Wg)&&(t.mapping.maps[r].forEach((t,e,n,r)=>{null==i&&(i=r)}),t.setSelection(a.near(t.doc.resolve(i),n)))}class y extends o.dL{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(t){if(t.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=t,this.curSelectionFor=this.steps.length,this.updated=-3&this.updated|1,this.storedMarks=null,this}get selectionSet(){return(1&this.updated)>0}setStoredMarks(t){return this.storedMarks=t,this.updated|=2,this}ensureMarks(t){return r.CU.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(t,e){super.addStep(t,e),this.updated=-3&this.updated,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,e=!0){let n=this.selection;return e&&(t=t.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||r.CU.none))),n.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,e,n){let r=this.doc.type.schema;if(null==e)return t?this.replaceSelectionWith(r.text(t),!0):this.deleteSelection();{if(null==n&&(n=e),!t)return this.deleteRange(e,n);let o=this.storedMarks;if(!o){let t=this.doc.resolve(e);o=n==e?t.marks():t.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(e,n,r.text(t,o)),this.selection.empty||this.selection.to!=e+t.length||this.setSelection(a.near(this.selection.$to)),this}}setMeta(t,e){return this.meta["string"==typeof t?t:t.key]=e,this}getMeta(t){return this.meta["string"==typeof t?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function w(t,e){return e&&t?t.bind(e):t}class A{constructor(t,e,n){this.name=t,this.init=w(e.init,n),this.apply=w(e.apply,n)}}const x=[new A("doc",{init:t=>t.doc||t.schema.topNodeType.createAndFill(),apply:t=>t.doc}),new A("selection",{init:(t,e)=>t.selection||a.atStart(e.doc),apply:t=>t.selection}),new A("storedMarks",{init:t=>t.storedMarks||null,apply:(t,e,n,r)=>r.selection.$cursor?t.storedMarks:null}),new A("scrollToSelection",{init:()=>0,apply:(t,e)=>t.scrolledIntoView?e+1:e})];class _{constructor(t,e){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=x.slice(),e&&e.forEach(t=>{if(this.pluginsByKey[t.key])throw new RangeError("Adding different instances of a keyed plugin ("+t.key+")");this.plugins.push(t),this.pluginsByKey[t.key]=t,t.spec.state&&this.fields.push(new A(t.key,t.spec.state,t))})}}class v{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,e=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=e){let e=this.config.plugins[n];if(e.spec.filterTransaction&&!e.spec.filterTransaction.call(e,t,this))return!1}return!0}applyTransaction(t){if(!this.filterTransaction(t))return{state:this,transactions:[]};let e=[t],n=this.applyInner(t),r=null;for(;;){let o=!1;for(let i=0;i<this.config.plugins.length;i++){let a=this.config.plugins[i];if(a.spec.appendTransaction){let s=r?r[i].n:0,l=r?r[i].state:this,c=s<e.length&&a.spec.appendTransaction.call(a,s?e.slice(s):e,l,n);if(c&&n.filterTransaction(c,i)){if(c.setMeta("appendedTransaction",t),!r){r=[];for(let t=0;t<this.config.plugins.length;t++)r.push(t<i?{state:n,n:e.length}:{state:this,n:0})}e.push(c),n=n.applyInner(c),o=!0}r&&(r[i]={state:n,n:e.length})}}if(!o)return{state:n,transactions:e}}}applyInner(t){if(!t.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let e=new v(this.config),n=this.config.fields;for(let r=0;r<n.length;r++){let o=n[r];e[o.name]=o.apply(t,this[o.name],this,e)}return e}get tr(){return new y(this)}static create(t){let e=new _(t.doc?t.doc.type.schema:t.schema,t.plugins),n=new v(e);for(let r=0;r<e.fields.length;r++)n[e.fields[r].name]=e.fields[r].init(t,n);return n}reconfigure(t){let e=new _(this.schema,t.plugins),n=e.fields,r=new v(e);for(let e=0;e<n.length;e++){let o=n[e].name;r[o]=this.hasOwnProperty(o)?this[o]:n[e].init(t,r)}return r}toJSON(t){let e={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(e.storedMarks=this.storedMarks.map(t=>t.toJSON())),t&&"object"==typeof t)for(let n in t){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=t[n],o=r.spec.state;o&&o.toJSON&&(e[n]=o.toJSON.call(r,this[r.key]))}return e}static fromJSON(t,e,n){if(!e)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let o=new _(t.schema,t.plugins),i=new v(o);return o.fields.forEach(o=>{if("doc"==o.name)i.doc=r.bP.fromJSON(t.schema,e.doc);else if("selection"==o.name)i.selection=a.fromJSON(i.doc,e.selection);else if("storedMarks"==o.name)e.storedMarks&&(i.storedMarks=e.storedMarks.map(t.schema.markFromJSON));else{if(n)for(let r in n){let a=n[r],s=a.spec.state;if(a.key==o.name&&s&&s.fromJSON&&Object.prototype.hasOwnProperty.call(e,r))return void(i[o.name]=s.fromJSON.call(a,t,e[r],i))}i[o.name]=o.init(t,i)}}),i}}function k(t,e,n){for(let r in t){let o=t[r];o instanceof Function?o=o.bind(e):"handleDOMEvents"==r&&(o=k(o,e,{})),n[r]=o}return n}class C{constructor(t){this.spec=t,this.props={},t.props&&k(t.props,this,this.props),this.key=t.key?t.key.key:S("plugin")}getState(t){return t[this.key]}}const E=Object.create(null);function S(t){return t in E?t+"$"+ ++E[t]:(E[t]=0,t+"$")}class M{constructor(t="key"){this.key=S(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}},11329(t,e,n){"use strict";n.d(e,{$L:()=>I,Ln:()=>y,N0:()=>L,Um:()=>O,Wg:()=>w,dL:()=>Y,jP:()=>v,n9:()=>B,oM:()=>k,zy:()=>M});var r=n(16090);const o=Math.pow(2,16);function i(t,e){return t+e*o}function a(t){return 65535&t}class s{constructor(t,e,n){this.pos=t,this.delInfo=e,this.recover=n}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class l{constructor(t,e=!1){if(this.ranges=t,this.inverted=e,!t.length&&l.empty)return l.empty}recover(t){let e=0,n=a(t);if(!this.inverted)for(let t=0;t<n;t++)e+=this.ranges[3*t+2]-this.ranges[3*t+1];return this.ranges[3*n]+e+function(t){return(t-(65535&t))/o}(t)}mapResult(t,e=1){return this._map(t,e,!1)}map(t,e=1){return this._map(t,e,!0)}_map(t,e,n){let r=0,o=this.inverted?2:1,a=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let c=this.ranges[l]-(this.inverted?r:0);if(c>t)break;let d=this.ranges[l+o],p=this.ranges[l+a],h=c+d;if(t<=h){let o=c+r+((d?t==c?-1:t==h?1:e:e)<0?0:p);if(n)return o;let a=t==(e<0?c:h)?null:i(l/3,t-c),u=t==c?2:t==h?1:4;return(e<0?t!=c:t!=h)&&(u|=8),new s(o,u,a)}r+=p-d}return n?t+r:new s(t+r,0,null)}touches(t,e){let n=0,r=a(e),o=this.inverted?2:1,i=this.inverted?1:2;for(let e=0;e<this.ranges.length;e+=3){let a=this.ranges[e]-(this.inverted?n:0);if(a>t)break;let s=this.ranges[e+o];if(t<=a+s&&e==3*r)return!0;n+=this.ranges[e+i]-s}return!1}forEach(t){let e=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,o=0;r<this.ranges.length;r+=3){let i=this.ranges[r],a=i-(this.inverted?o:0),s=i+(this.inverted?0:o),l=this.ranges[r+e],c=this.ranges[r+n];t(a,a+l,s,s+c),o+=c-l}}invert(){return new l(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(t){return 0==t?l.empty:new l(t<0?[0,-t,0]:[0,0,t])}}l.empty=new l([]);class c{constructor(t,e,n=0,r=(t?t.length:0)){this.mirror=e,this.from=n,this.to=r,this._maps=t||[],this.ownData=!(t||e)}get maps(){return this._maps}slice(t=0,e=this.maps.length){return new c(this._maps,this.mirror,t,e)}appendMap(t,e){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(t),null!=e&&this.setMirror(this._maps.length-1,e)}appendMapping(t){for(let e=0,n=this._maps.length;e<t._maps.length;e++){let r=t.getMirror(e);this.appendMap(t._maps[e],null!=r&&r<e?n+r:void 0)}}getMirror(t){if(this.mirror)for(let e=0;e<this.mirror.length;e++)if(this.mirror[e]==t)return this.mirror[e+(e%2?-1:1)]}setMirror(t,e){this.mirror||(this.mirror=[]),this.mirror.push(t,e)}appendMappingInverted(t){for(let e=t.maps.length-1,n=this._maps.length+t._maps.length;e>=0;e--){let r=t.getMirror(e);this.appendMap(t._maps[e].invert(),null!=r&&r>e?n-r-1:void 0)}}invert(){let t=new c;return t.appendMappingInverted(this),t}map(t,e=1){if(this.mirror)return this._map(t,e,!0);for(let n=this.from;n<this.to;n++)t=this._maps[n].map(t,e);return t}mapResult(t,e=1){return this._map(t,e,!1)}_map(t,e,n){let r=0;for(let n=this.from;n<this.to;n++){let o=this._maps[n].mapResult(t,e);if(null!=o.recover){let e=this.getMirror(n);if(null!=e&&e>n&&e<this.to){n=e,t=this._maps[e].recover(o.recover);continue}}r|=o.delInfo,t=o.pos}return n?t:new s(t,r,null)}}const d=Object.create(null);class p{getMap(){return l.empty}merge(t){return null}static fromJSON(t,e){if(!e||!e.stepType)throw new RangeError("Invalid input for Step.fromJSON");let n=d[e.stepType];if(!n)throw new RangeError(`No step type ${e.stepType} defined`);return n.fromJSON(t,e)}static jsonID(t,e){if(t in d)throw new RangeError("Duplicate use of step JSON ID "+t);return d[t]=e,e.prototype.jsonID=t,e}}class h{constructor(t,e){this.doc=t,this.failed=e}static ok(t){return new h(t,null)}static fail(t){return new h(null,t)}static fromReplace(t,e,n,o){try{return h.ok(t.replace(e,n,o))}catch(t){if(t instanceof r.vI)return h.fail(t.message);throw t}}}function u(t,e,n){let o=[];for(let r=0;r<t.childCount;r++){let i=t.child(r);i.content.size&&(i=i.copy(u(i.content,e,i))),i.isInline&&(i=e(i,n,r)),o.push(i)}return r.FK.fromArray(o)}class f extends p{constructor(t,e,n){super(),this.from=t,this.to=e,this.mark=n}apply(t){let e=t.slice(this.from,this.to),n=t.resolve(this.from),o=n.node(n.sharedDepth(this.to)),i=new r.Ji(u(e.content,(t,e)=>t.isAtom&&e.type.allowsMarkType(this.mark.type)?t.mark(this.mark.addToSet(t.marks)):t,o),e.openStart,e.openEnd);return h.fromReplace(t,this.from,this.to,i)}invert(){return new m(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),n=t.mapResult(this.to,-1);return e.deleted&&n.deleted||e.pos>=n.pos?null:new f(e.pos,n.pos,this.mark)}merge(t){return t instanceof f&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new f(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new f(e.from,e.to,t.markFromJSON(e.mark))}}p.jsonID("addMark",f);class m extends p{constructor(t,e,n){super(),this.from=t,this.to=e,this.mark=n}apply(t){let e=t.slice(this.from,this.to),n=new r.Ji(u(e.content,t=>t.mark(this.mark.removeFromSet(t.marks)),t),e.openStart,e.openEnd);return h.fromReplace(t,this.from,this.to,n)}invert(){return new f(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),n=t.mapResult(this.to,-1);return e.deleted&&n.deleted||e.pos>=n.pos?null:new m(e.pos,n.pos,this.mark)}merge(t){return t instanceof m&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new m(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new m(e.from,e.to,t.markFromJSON(e.mark))}}p.jsonID("removeMark",m);class g extends p{constructor(t,e){super(),this.pos=t,this.mark=e}apply(t){let e=t.nodeAt(this.pos);if(!e)return h.fail("No node at mark step's position");let n=e.type.create(e.attrs,null,this.mark.addToSet(e.marks));return h.fromReplace(t,this.pos,this.pos+1,new r.Ji(r.FK.from(n),0,e.isLeaf?0:1))}invert(t){let e=t.nodeAt(this.pos);if(e){let t=this.mark.addToSet(e.marks);if(t.length==e.marks.length){for(let n=0;n<e.marks.length;n++)if(!e.marks[n].isInSet(t))return new g(this.pos,e.marks[n]);return new g(this.pos,this.mark)}}return new b(this.pos,this.mark)}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new g(e.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new g(e.pos,t.markFromJSON(e.mark))}}p.jsonID("addNodeMark",g);class b extends p{constructor(t,e){super(),this.pos=t,this.mark=e}apply(t){let e=t.nodeAt(this.pos);if(!e)return h.fail("No node at mark step's position");let n=e.type.create(e.attrs,null,this.mark.removeFromSet(e.marks));return h.fromReplace(t,this.pos,this.pos+1,new r.Ji(r.FK.from(n),0,e.isLeaf?0:1))}invert(t){let e=t.nodeAt(this.pos);return e&&this.mark.isInSet(e.marks)?new g(this.pos,this.mark):this}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new b(e.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new b(e.pos,t.markFromJSON(e.mark))}}p.jsonID("removeNodeMark",b);class y extends p{constructor(t,e,n,r=!1){super(),this.from=t,this.to=e,this.slice=n,this.structure=r}apply(t){return this.structure&&A(t,this.from,this.to)?h.fail("Structure replace would overwrite content"):h.fromReplace(t,this.from,this.to,this.slice)}getMap(){return new l([this.from,this.to-this.from,this.slice.size])}invert(t){return new y(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let e=t.mapResult(this.from,1),n=t.mapResult(this.to,-1);return e.deletedAcross&&n.deletedAcross?null:new y(e.pos,Math.max(e.pos,n.pos),this.slice,this.structure)}merge(t){if(!(t instanceof y)||t.structure||this.structure)return null;if(this.from+this.slice.size!=t.from||this.slice.openEnd||t.slice.openStart){if(t.to!=this.from||this.slice.openStart||t.slice.openEnd)return null;{let e=this.slice.size+t.slice.size==0?r.Ji.empty:new r.Ji(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new y(t.from,this.to,e,this.structure)}}{let e=this.slice.size+t.slice.size==0?r.Ji.empty:new r.Ji(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new y(this.from,this.to+(t.to-t.from),e,this.structure)}}toJSON(){let t={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new y(e.from,e.to,r.Ji.fromJSON(t,e.slice),!!e.structure)}}p.jsonID("replace",y);class w extends p{constructor(t,e,n,r,o,i,a=!1){super(),this.from=t,this.to=e,this.gapFrom=n,this.gapTo=r,this.slice=o,this.insert=i,this.structure=a}apply(t){if(this.structure&&(A(t,this.from,this.gapFrom)||A(t,this.gapTo,this.to)))return h.fail("Structure gap-replace would overwrite content");let e=t.slice(this.gapFrom,this.gapTo);if(e.openStart||e.openEnd)return h.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,e.content);return n?h.fromReplace(t,this.from,this.to,n):h.fail("Content does not fit in gap")}getMap(){return new l([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let e=this.gapTo-this.gapFrom;return new w(this.from,this.from+this.slice.size+e,this.from+this.insert,this.from+this.insert+e,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let e=t.mapResult(this.from,1),n=t.mapResult(this.to,-1),r=this.from==this.gapFrom?e.pos:t.map(this.gapFrom,-1),o=this.to==this.gapTo?n.pos:t.map(this.gapTo,1);return e.deletedAcross&&n.deletedAcross||r<e.pos||o>n.pos?null:new w(e.pos,n.pos,r,o,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to||"number"!=typeof e.gapFrom||"number"!=typeof e.gapTo||"number"!=typeof e.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new w(e.from,e.to,e.gapFrom,e.gapTo,r.Ji.fromJSON(t,e.slice),e.insert,!!e.structure)}}function A(t,e,n){let r=t.resolve(e),o=n-e,i=r.depth;for(;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0){let t=r.node(i).maybeChild(r.indexAfter(i));for(;o>0;){if(!t||t.isLeaf)return!0;t=t.firstChild,o--}}return!1}function x(t,e,n,o=n.contentMatch,i=!0){let a=t.doc.nodeAt(e),s=[],l=e+1;for(let e=0;e<a.childCount;e++){let c=a.child(e),d=l+c.nodeSize,p=o.matchType(c.type);if(p){o=p;for(let e=0;e<c.marks.length;e++)n.allowsMarkType(c.marks[e].type)||t.step(new m(l,d,c.marks[e]));if(i&&c.isText&&"pre"!=n.whitespace){let t,e,o=/\r?\n|\r/g;for(;t=o.exec(c.text);)e||(e=new r.Ji(r.FK.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),s.push(new y(l+t.index,l+t.index+t[0].length,e))}}else s.push(new y(l,d,r.Ji.empty));l=d}if(!o.validEnd){let e=o.fillBefore(r.FK.empty,!0);t.replace(l,l,new r.Ji(e,0,0))}for(let e=s.length-1;e>=0;e--)t.step(s[e])}function _(t,e,n){return(0==e||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function v(t){let e=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let n=t.depth,r=0,o=0;;--n){let i=t.$from.node(n),a=t.$from.index(n)+r,s=t.$to.indexAfter(n)-o;if(n<t.depth&&i.canReplace(a,s,e))return n;if(0==n||i.type.spec.isolating||!_(i,a,s))break;a&&(r=1),s<i.childCount&&(o=1)}return null}function k(t,e,n=null,r=t){let o=function(t,e){let{parent:n,startIndex:r,endIndex:o}=t,i=n.contentMatchAt(r).findWrapping(e);if(!i)return null;let a=i.length?i[0]:e;return n.canReplaceWith(r,o,a)?i:null}(t,e),i=o&&function(t,e){let{parent:n,startIndex:r,endIndex:o}=t,i=n.child(r),a=e.contentMatch.findWrapping(i.type);if(!a)return null;let s=(a.length?a[a.length-1]:e).contentMatch;for(let t=r;s&&t<o;t++)s=s.matchType(n.child(t).type);return s&&s.validEnd?a:null}(r,e);return i?o.map(C).concat({type:e,attrs:n}).concat(i.map(C)):null}function C(t){return{type:t,attrs:null}}function E(t,e,n,r){e.forEach((o,i)=>{if(o.isText){let a,s=/\r?\n|\r/g;for(;a=s.exec(o.text);){let o=t.mapping.slice(r).map(n+1+i+a.index);t.replaceWith(o,o+1,e.type.schema.linebreakReplacement.create())}}})}function S(t,e,n,r){e.forEach((o,i)=>{if(o.type==o.type.schema.linebreakReplacement){let o=t.mapping.slice(r).map(n+1+i);t.replaceWith(o,o+1,e.type.schema.text("\n"))}})}function M(t,e,n=1,r){let o=t.resolve(e),i=o.depth-n,a=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!a.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let t=o.depth-1,e=n-2;t>i;t--,e--){let n=o.node(t),i=o.index(t);if(n.type.spec.isolating)return!1;let a=n.content.cutByIndex(i,n.childCount),s=r&&r[e+1];s&&(a=a.replaceChild(0,s.type.create(s.attrs)));let l=r&&r[e]||n;if(!n.canReplace(i+1,n.childCount)||!l.type.validContent(a))return!1}let s=o.indexAfter(i),l=r&&r[0];return o.node(i).canReplaceWith(s,s,l?l.type:o.node(i+1).type)}function B(t,e){let n=t.resolve(e),r=n.index();return T(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function T(t,e){return!(!t||!e||t.isLeaf||!function(t,e){e.content.size||t.type.compatibleContent(e.type);let n=t.contentMatchAt(t.childCount),{linebreakReplacement:r}=t.type.schema;for(let o=0;o<e.childCount;o++){let i=e.child(o),a=i.type==r?t.type.schema.nodes.text:i.type;if(n=n.matchType(a),!n)return!1;if(!t.type.allowsMarks(i.marks))return!1}return n.validEnd}(t,e))}function L(t,e,n=-1){let r=t.resolve(e);for(let t=r.depth;;t--){let o,i,a=r.index(t);if(t==r.depth?(o=r.nodeBefore,i=r.nodeAfter):n>0?(o=r.node(t+1),a++,i=r.node(t).maybeChild(a)):(o=r.node(t).maybeChild(a-1),i=r.node(t+1)),o&&!o.isTextblock&&T(o,i)&&r.node(t).canReplace(a,a+1))return e;if(0==t)break;e=n<0?r.before(t):r.after(t)}}function O(t,e,n){let r=t.resolve(e);if(!n.content.size)return e;let o=n.content;for(let t=0;t<n.openStart;t++)o=o.firstChild.content;for(let t=1;t<=(0==n.openStart&&n.size?2:1);t++)for(let e=r.depth;e>=0;e--){let n=e==r.depth?0:r.pos<=(r.start(e+1)+r.end(e+1))/2?-1:1,i=r.index(e)+(n>0?1:0),a=r.node(e),s=!1;if(1==t)s=a.canReplace(i,i,o);else{let t=a.contentMatchAt(i).findWrapping(o.firstChild.type);s=t&&a.canReplaceWith(i,i,t[0])}if(s)return 0==n?r.pos:n<0?r.before(e+1):r.after(e+1)}return null}function I(t,e,n=e,o=r.Ji.empty){if(e==n&&!o.size)return null;let i=t.resolve(e),a=t.resolve(n);return N(i,a,o)?new y(e,n,o):new R(i,a,o).fit()}function N(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}p.jsonID("replaceAround",w);class R{constructor(t,e,n){this.$from=t,this.$to=e,this.unplaced=n,this.frontier=[],this.placed=r.FK.empty;for(let e=0;e<=t.depth;e++){let n=t.node(e);this.frontier.push({type:n.type,match:n.contentMatchAt(t.indexAfter(e))})}for(let e=t.depth;e>0;e--)this.placed=r.FK.from(t.node(e).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let t=this.findFittable();t?this.placeNodes(t):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),e=this.placed.size-this.depth-this.$from.depth,n=this.$from,o=this.close(t<0?this.$to:n.doc.resolve(t));if(!o)return null;let i=this.placed,a=n.depth,s=o.depth;for(;a&&s&&1==i.childCount;)i=i.firstChild.content,a--,s--;let l=new r.Ji(i,a,s);return t>-1?new w(n.pos,t,this.$to.pos,this.$to.end(),l,e):l.size||n.pos!=this.$to.pos?new y(n.pos,o.pos,l):null}findFittable(){let t=this.unplaced.openStart;for(let e=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<t;n++){let o=e.firstChild;if(e.childCount>1&&(r=0),o.type.spec.isolating&&r<=n){t=n;break}e=o.content}for(let e=1;e<=2;e++)for(let n=1==e?t:this.unplaced.openStart;n>=0;n--){let t,o=null;n?(o=P(this.unplaced.content,n-1).firstChild,t=o.content):t=this.unplaced.content;let i=t.firstChild;for(let t=this.depth;t>=0;t--){let a,{type:s,match:l}=this.frontier[t],c=null;if(1==e&&(i?l.matchType(i.type)||(c=l.fillBefore(r.FK.from(i),!1)):o&&s.compatibleContent(o.type)))return{sliceDepth:n,frontierDepth:t,parent:o,inject:c};if(2==e&&i&&(a=l.findWrapping(i.type)))return{sliceDepth:n,frontierDepth:t,parent:o,wrap:a};if(o&&l.matchType(o.type))break}}}openMore(){let{content:t,openStart:e,openEnd:n}=this.unplaced,o=P(t,e);return!(!o.childCount||o.firstChild.isLeaf)&&(this.unplaced=new r.Ji(t,e+1,Math.max(n,o.size+e>=t.size-n?e+1:0)),!0)}dropNode(){let{content:t,openStart:e,openEnd:n}=this.unplaced,o=P(t,e);if(o.childCount<=1&&e>0){let i=t.size-e<=e+o.size;this.unplaced=new r.Ji(z(t,e-1,1),e-1,i?e-1:n)}else this.unplaced=new r.Ji(z(t,e,1),e,n)}placeNodes({sliceDepth:t,frontierDepth:e,parent:n,inject:o,wrap:i}){for(;this.depth>e;)this.closeFrontierNode();if(i)for(let t=0;t<i.length;t++)this.openFrontierNode(i[t]);let a=this.unplaced,s=n?n.content:a.content,l=a.openStart-t,c=0,d=[],{match:p,type:h}=this.frontier[e];if(o){for(let t=0;t<o.childCount;t++)d.push(o.child(t));p=p.matchFragment(o)}let u=s.size+t-(a.content.size-a.openEnd);for(;c<s.childCount;){let t=s.child(c),e=p.matchType(t.type);if(!e)break;c++,(c>1||0==l||t.content.size)&&(p=e,d.push(D(t.mark(h.allowedMarks(t.marks)),1==c?l:0,c==s.childCount?u:-1)))}let f=c==s.childCount;f||(u=-1),this.placed=H(this.placed,e,r.FK.from(d)),this.frontier[e].match=p,f&&u<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let t=0,e=s;t<u;t++){let t=e.lastChild;this.frontier.push({type:t.type,match:t.contentMatchAt(t.childCount)}),e=t.content}this.unplaced=f?0==t?r.Ji.empty:new r.Ji(z(a.content,t-1,1),t-1,u<0?a.openEnd:t-1):new r.Ji(z(a.content,t,c),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let t,e=this.frontier[this.depth];if(!e.type.isTextblock||!$(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return-1;let{depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(t){t:for(let e=Math.min(this.depth,t.depth);e>=0;e--){let{match:n,type:r}=this.frontier[e],o=e<t.depth&&t.end(e+1)==t.pos+(t.depth-(e+1)),i=$(t,e,r,n,o);if(i){for(let n=e-1;n>=0;n--){let{match:e,type:r}=this.frontier[n],o=$(t,n,r,e,!0);if(!o||o.childCount)continue t}return{depth:e,fit:i,move:o?t.doc.resolve(t.after(e+1)):t}}}}close(t){let e=this.findCloseLevel(t);if(!e)return null;for(;this.depth>e.depth;)this.closeFrontierNode();e.fit.childCount&&(this.placed=H(this.placed,e.depth,e.fit)),t=e.move;for(let n=e.depth+1;n<=t.depth;n++){let e=t.node(n),r=e.type.contentMatch.fillBefore(e.content,!0,t.index(n));this.openFrontierNode(e.type,e.attrs,r)}return t}openFrontierNode(t,e=null,n){let o=this.frontier[this.depth];o.match=o.match.matchType(t),this.placed=H(this.placed,this.depth,r.FK.from(t.create(e,n))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(r.FK.empty,!0);t.childCount&&(this.placed=H(this.placed,this.frontier.length,t))}}function z(t,e,n){return 0==e?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(z(t.firstChild.content,e-1,n)))}function H(t,e,n){return 0==e?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(H(t.lastChild.content,e-1,n)))}function P(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function D(t,e,n){if(e<=0)return t;let o=t.content;return e>1&&(o=o.replaceChild(0,D(o.firstChild,e-1,1==o.childCount?n-1:0))),e>0&&(o=t.type.contentMatch.fillBefore(o).append(o),n<=0&&(o=o.append(t.type.contentMatch.matchFragment(o).fillBefore(r.FK.empty,!0)))),t.copy(o)}function $(t,e,n,r,o){let i=t.node(e),a=o?t.indexAfter(e):t.index(e);if(a==i.childCount&&!n.compatibleContent(i.type))return null;let s=r.fillBefore(i.content,!0,a);return s&&!function(t,e,n){for(let r=n;r<e.childCount;r++)if(!t.allowsMarks(e.child(r).marks))return!0;return!1}(n,i.content,a)?s:null}function j(t){return t.spec.defining||t.spec.definingForContent}function F(t,e,n,o,i){if(e<n){let r=t.firstChild;t=t.replaceChild(0,r.copy(F(r.content,e+1,n,o,r)))}if(e>o){let e=i.contentMatchAt(0),n=e.fillBefore(t).append(t);t=n.append(e.matchFragment(n).fillBefore(r.FK.empty,!0))}return t}function U(t,e){let n=[];for(let r=Math.min(t.depth,e.depth);r>=0;r--){let o=t.start(r);if(o<t.pos-(t.depth-r)||e.end(r)>e.pos+(e.depth-r)||t.node(r).type.spec.isolating||e.node(r).type.spec.isolating)break;(o==e.start(r)||r==t.depth&&r==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&r&&e.start(r-1)==o-1)&&n.push(r)}return n}class q extends p{constructor(t,e,n){super(),this.pos=t,this.attr=e,this.value=n}apply(t){let e=t.nodeAt(this.pos);if(!e)return h.fail("No node at attribute step's position");let n=Object.create(null);for(let t in e.attrs)n[t]=e.attrs[t];n[this.attr]=this.value;let o=e.type.create(n,null,e.marks);return h.fromReplace(t,this.pos,this.pos+1,new r.Ji(r.FK.from(o),0,e.isLeaf?0:1))}getMap(){return l.empty}invert(t){return new q(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new q(e.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,e){if("number"!=typeof e.pos||"string"!=typeof e.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new q(e.pos,e.attr,e.value)}}p.jsonID("attr",q);class W extends p{constructor(t,e){super(),this.attr=t,this.value=e}apply(t){let e=Object.create(null);for(let n in t.attrs)e[n]=t.attrs[n];e[this.attr]=this.value;let n=t.type.create(e,t.content,t.marks);return h.ok(n)}getMap(){return l.empty}invert(t){return new W(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,e){if("string"!=typeof e.attr)throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new W(e.attr,e.value)}}p.jsonID("docAttr",W);let V=class extends Error{};V=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},(V.prototype=Object.create(Error.prototype)).constructor=V,V.prototype.name="TransformError";class Y{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new c}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let e=this.maybeStep(t);if(e.failed)throw new V(e.failed);return this}maybeStep(t){let e=t.apply(this.doc);return e.failed||this.addStep(t,e.doc),e}get docChanged(){return this.steps.length>0}changedRange(){let t=1e9,e=-1e9;for(let n=0;n<this.mapping.maps.length;n++){let r=this.mapping.maps[n];n&&(t=r.map(t,1),e=r.map(e,-1)),r.forEach((n,r,o,i)=>{t=Math.min(t,o),e=Math.max(e,i)})}return 1e9==t?null:{from:t,to:e}}addStep(t,e){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=e}replace(t,e=t,n=r.Ji.empty){let o=I(this.doc,t,e,n);return o&&this.step(o),this}replaceWith(t,e,n){return this.replace(t,e,new r.Ji(r.FK.from(n),0,0))}delete(t,e){return this.replace(t,e,r.Ji.empty)}insert(t,e){return this.replaceWith(t,t,e)}replaceRange(t,e,n){return function(t,e,n,o){if(!o.size)return t.deleteRange(e,n);let i=t.doc.resolve(e),a=t.doc.resolve(n);if(N(i,a,o))return t.step(new y(e,n,o));let s=U(i,a);0==s[s.length-1]&&s.pop();let l=-(i.depth+1);s.unshift(l);for(let t=i.depth,e=i.pos-1;t>0;t--,e--){let n=i.node(t).type.spec;if(n.defining||n.definingAsContext||n.isolating)break;s.indexOf(t)>-1?l=t:i.before(t)==e&&s.splice(1,0,-t)}let c=s.indexOf(l),d=[],p=o.openStart;for(let t=o.content,e=0;;e++){let n=t.firstChild;if(d.push(n),e==o.openStart)break;t=n.content}for(let t=p-1;t>=0;t--){let e=d[t],n=j(e.type);if(n&&!e.sameMarkup(i.node(Math.abs(l)-1)))p=t;else if(n||!e.type.isTextblock)break}for(let e=o.openStart;e>=0;e--){let l=(e+p+1)%(o.openStart+1),h=d[l];if(h)for(let e=0;e<s.length;e++){let d=s[(e+c)%s.length],p=!0;d<0&&(p=!1,d=-d);let u=i.node(d-1),f=i.index(d-1);if(u.canReplaceWith(f,f,h.type,h.marks))return t.replace(i.before(d),p?a.after(d):n,new r.Ji(F(o.content,0,o.openStart,l),l,o.openEnd))}}let h=t.steps.length;for(let r=s.length-1;r>=0&&(t.replace(e,n,o),!(t.steps.length>h));r--){let t=s[r];t<0||(e=i.before(t),n=a.after(t))}}(this,t,e,n),this}replaceRangeWith(t,e,n){return function(t,e,n,o){if(!o.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let r=function(t,e,n){let r=t.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),n))return e;if(0==r.parentOffset)for(let t=r.depth-1;t>=0;t--){let e=r.index(t);if(r.node(t).canReplaceWith(e,e,n))return r.before(t+1);if(e>0)return null}if(r.parentOffset==r.parent.content.size)for(let t=r.depth-1;t>=0;t--){let e=r.indexAfter(t);if(r.node(t).canReplaceWith(e,e,n))return r.after(t+1);if(e<r.node(t).childCount)return null}return null}(t.doc,e,o.type);null!=r&&(e=n=r)}t.replaceRange(e,n,new r.Ji(r.FK.from(o),0,0))}(this,t,e,n),this}deleteRange(t,e){return function(t,e,n){let r=t.doc.resolve(e),o=t.doc.resolve(n),i=U(r,o);for(let e=0;e<i.length;e++){let n=i[e],a=e==i.length-1;if(a&&0==n||r.node(n).type.contentMatch.validEnd)return t.delete(r.start(n),o.end(n));if(n>0&&(a||r.node(n-1).canReplace(r.index(n-1),o.indexAfter(n-1))))return t.delete(r.before(n),o.after(n))}for(let i=1;i<=r.depth&&i<=o.depth;i++)if(e-r.start(i)==r.depth-i&&n>r.end(i)&&o.end(i)-n!=o.depth-i&&r.start(i-1)==o.start(i-1)&&r.node(i-1).canReplace(r.index(i-1),o.index(i-1)))return t.delete(r.before(i),n);t.delete(e,n)}(this,t,e),this}lift(t,e){return function(t,e,n){let{$from:o,$to:i,depth:a}=e,s=o.before(a+1),l=i.after(a+1),c=s,d=l,p=r.FK.empty,h=0;for(let t=a,e=!1;t>n;t--)e||o.index(t)>0?(e=!0,p=r.FK.from(o.node(t).copy(p)),h++):c--;let u=r.FK.empty,f=0;for(let t=a,e=!1;t>n;t--)e||i.after(t+1)<i.end(t)?(e=!0,u=r.FK.from(i.node(t).copy(u)),f++):d++;t.step(new w(c,d,s,l,new r.Ji(p.append(u),h,f),p.size-h,!0))}(this,t,e),this}join(t,e=1){return function(t,e,n){let o=null,{linebreakReplacement:i}=t.doc.type.schema,a=t.doc.resolve(e-n),s=a.node().type;if(i&&s.inlineContent){let t="pre"==s.whitespace,e=!!s.contentMatch.matchType(i);t&&!e?o=!1:!t&&e&&(o=!0)}let l=t.steps.length;if(!1===o){let r=t.doc.resolve(e+n);S(t,r.node(),r.before(),l)}s.inlineContent&&x(t,e+n-1,s,a.node().contentMatchAt(a.index()),null==o);let c=t.mapping.slice(l),d=c.map(e-n);if(t.step(new y(d,c.map(e+n,-1),r.Ji.empty,!0)),!0===o){let e=t.doc.resolve(d);E(t,e.node(),e.before(),t.steps.length)}}(this,t,e),this}wrap(t,e){return function(t,e,n){let o=r.FK.empty;for(let t=n.length-1;t>=0;t--){if(o.size){let e=n[t].type.contentMatch.matchFragment(o);if(!e||!e.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}o=r.FK.from(n[t].type.create(n[t].attrs,o))}let i=e.start,a=e.end;t.step(new w(i,a,i,a,new r.Ji(o,0,0),n.length,!0))}(this,t,e),this}setBlockType(t,e=t,n,o=null){return function(t,e,n,o,i){if(!o.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let a=t.steps.length;t.doc.nodesBetween(e,n,(e,n)=>{let s="function"==typeof i?i(e):i;if(e.isTextblock&&!e.hasMarkup(o,s)&&function(t,e,n){let r=t.resolve(e),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}(t.doc,t.mapping.slice(a).map(n),o)){let i=null;if(o.schema.linebreakReplacement){let t="pre"==o.whitespace,e=!!o.contentMatch.matchType(o.schema.linebreakReplacement);t&&!e?i=!1:!t&&e&&(i=!0)}!1===i&&S(t,e,n,a),x(t,t.mapping.slice(a).map(n,1),o,void 0,null===i);let l=t.mapping.slice(a),c=l.map(n,1),d=l.map(n+e.nodeSize,1);return t.step(new w(c,d,c+1,d-1,new r.Ji(r.FK.from(o.create(s,null,e.marks)),0,0),1,!0)),!0===i&&E(t,e,n,a),!1}})}(this,t,e,n,o),this}setNodeMarkup(t,e,n=null,o){return function(t,e,n,o,i){let a=t.doc.nodeAt(e);if(!a)throw new RangeError("No node at given position");n||(n=a.type);let s=n.create(o,null,i||a.marks);if(a.isLeaf)return t.replaceWith(e,e+a.nodeSize,s);if(!n.validContent(a.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new w(e,e+a.nodeSize,e+1,e+a.nodeSize-1,new r.Ji(r.FK.from(s),0,0),1,!0))}(this,t,e,n,o),this}setNodeAttribute(t,e,n){return this.step(new q(t,e,n)),this}setDocAttribute(t,e){return this.step(new W(t,e)),this}addNodeMark(t,e){return this.step(new g(t,e)),this}removeNodeMark(t,e){let n=this.doc.nodeAt(t);if(!n)throw new RangeError("No node at position "+t);if(e instanceof r.CU)e.isInSet(n.marks)&&this.step(new b(t,e));else{let r,o=n.marks,i=[];for(;r=e.isInSet(o);)i.push(new b(t,r)),o=r.removeFromSet(o);for(let t=i.length-1;t>=0;t--)this.step(i[t])}return this}split(t,e=1,n){return function(t,e,n=1,o){let i=t.doc.resolve(e),a=r.FK.empty,s=r.FK.empty;for(let t=i.depth,e=i.depth-n,l=n-1;t>e;t--,l--){a=r.FK.from(i.node(t).copy(a));let e=o&&o[l];s=r.FK.from(e?e.type.create(e.attrs,s):i.node(t).copy(s))}t.step(new y(e,e,new r.Ji(a.append(s),n,n),!0))}(this,t,e,n),this}addMark(t,e,n){return function(t,e,n,r){let o,i,a=[],s=[];t.doc.nodesBetween(e,n,(t,l,c)=>{if(!t.isInline)return;let d=t.marks;if(!r.isInSet(d)&&c.type.allowsMarkType(r.type)){let c=Math.max(l,e),p=Math.min(l+t.nodeSize,n),h=r.addToSet(d);for(let t=0;t<d.length;t++)d[t].isInSet(h)||(o&&o.to==c&&o.mark.eq(d[t])?o.to=p:a.push(o=new m(c,p,d[t])));i&&i.to==c?i.to=p:s.push(i=new f(c,p,r))}}),a.forEach(e=>t.step(e)),s.forEach(e=>t.step(e))}(this,t,e,n),this}removeMark(t,e,n){return function(t,e,n,o){let i=[],a=0;t.doc.nodesBetween(e,n,(t,s)=>{if(!t.isInline)return;a++;let l=null;if(o instanceof r.sX){let e,n=t.marks;for(;e=o.isInSet(n);)(l||(l=[])).push(e),n=e.removeFromSet(n)}else o?o.isInSet(t.marks)&&(l=[o]):l=t.marks;if(l&&l.length){let r=Math.min(s+t.nodeSize,n);for(let t=0;t<l.length;t++){let n,o=l[t];for(let t=0;t<i.length;t++){let e=i[t];e.step==a-1&&o.eq(i[t].style)&&(n=e)}n?(n.to=r,n.step=a):i.push({style:o,from:Math.max(s,e),to:r,step:a})}}}),i.forEach(e=>t.step(new m(e.from,e.to,e.style)))}(this,t,e,n),this}clearIncompatible(t,e,n){return x(this,t,e,n),this}}},73686(t,e,n){"use strict";n.d(e,{Lz:()=>bn,NZ:()=>Fe,zF:()=>We});var r=n(81570),o=n(16090),i=n(11329);const a=function(t){for(var e=0;;e++)if(!(t=t.previousSibling))return e},s=function(t){let e=t.assignedSlot||t.parentNode;return e&&11==e.nodeType?e.host:e};let l=null;const c=function(t,e,n){let r=l||(l=document.createRange());return r.setEnd(t,null==n?t.nodeValue.length:n),r.setStart(t,e||0),r},d=function(t,e,n,r){return n&&(h(t,e,n,r,-1)||h(t,e,n,r,1))},p=/^(img|br|input|textarea|hr)$/i;function h(t,e,n,r,o){for(var i;;){if(t==n&&e==r)return!0;if(e==(o<0?0:u(t))){let n=t.parentNode;if(!n||1!=n.nodeType||f(t)||p.test(t.nodeName)||"false"==t.contentEditable)return!1;e=a(t)+(o<0?0:1),t=n}else{if(1!=t.nodeType)return!1;{let n=t.childNodes[e+(o<0?-1:0)];if(1==n.nodeType&&"false"==n.contentEditable){if(!(null===(i=n.pmViewDesc)||void 0===i?void 0:i.ignoreForSelection))return!1;e+=o}else t=n,e=o<0?u(t):0}}}}function u(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}function f(t){let e;for(let n=t;n&&!(e=n.pmViewDesc);n=n.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const m=function(t){return t.focusNode&&d(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function g(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}const b="undefined"!=typeof navigator?navigator:null,y="undefined"!=typeof document?document:null,w=b&&b.userAgent||"",A=/Edge\/(\d+)/.exec(w),x=/MSIE \d/.exec(w),_=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(w),v=!!(x||_||A),k=x?document.documentMode:_?+_[1]:A?+A[1]:0,C=!v&&/gecko\/(\d+)/i.test(w);C&&(/Firefox\/(\d+)/.exec(w)||[0,0])[1];const E=!v&&/Chrome\/(\d+)/.exec(w),S=!!E,M=E?+E[1]:0,B=!v&&!!b&&/Apple Computer/.test(b.vendor),T=B&&(/Mobile\/\w+/.test(w)||!!b&&b.maxTouchPoints>2),L=T||!!b&&/Mac/.test(b.platform),O=!!b&&/Win/.test(b.platform),I=/Android \d/.test(w),N=!!y&&"webkitFontSmoothing"in y.documentElement.style,R=N?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function z(t){let e=t.defaultView&&t.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function H(t,e){return"number"==typeof t?t:t[e]}function P(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,r=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*r}}function D(t,e,n){let r=t.someProp("scrollThreshold")||0,o=t.someProp("scrollMargin")||5,i=t.dom.ownerDocument;for(let a=n||t.dom;a;){if(1!=a.nodeType){a=s(a);continue}let t=a,n=t==i.body,l=n?z(i):P(t),c=0,d=0;if(e.top<l.top+H(r,"top")?d=-(l.top-e.top+H(o,"top")):e.bottom>l.bottom-H(r,"bottom")&&(d=e.bottom-e.top>l.bottom-l.top?e.top+H(o,"top")-l.top:e.bottom-l.bottom+H(o,"bottom")),e.left<l.left+H(r,"left")?c=-(l.left-e.left+H(o,"left")):e.right>l.right-H(r,"right")&&(c=e.right-l.right+H(o,"right")),c||d)if(n)i.defaultView.scrollBy(c,d);else{let n=t.scrollLeft,r=t.scrollTop;d&&(t.scrollTop+=d),c&&(t.scrollLeft+=c);let o=t.scrollLeft-n,i=t.scrollTop-r;e={left:e.left-o,top:e.top-i,right:e.right-o,bottom:e.bottom-i}}let p=n?"fixed":getComputedStyle(a).position;if(/^(fixed|sticky)$/.test(p))break;a="absolute"==p?a.offsetParent:s(a)}}function $(t){let e=[],n=t.ownerDocument;for(let r=t;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),t!=n);r=s(r));return e}function j(t,e){for(let n=0;n<t.length;n++){let{dom:r,top:o,left:i}=t[n];r.scrollTop!=o+e&&(r.scrollTop=o+e),r.scrollLeft!=i&&(r.scrollLeft=i)}}let F=null;function U(t,e){let n,r,o,i,a=2e8,s=0,l=e.top,d=e.top;for(let p=t.firstChild,h=0;p;p=p.nextSibling,h++){let t;if(1==p.nodeType)t=p.getClientRects();else{if(3!=p.nodeType)continue;t=c(p).getClientRects()}for(let c=0;c<t.length;c++){let u=t[c];if(u.top<=l&&u.bottom>=d){l=Math.max(u.bottom,l),d=Math.min(u.top,d);let t=u.left>e.left?u.left-e.left:u.right<e.left?e.left-u.right:0;if(t<a){n=p,a=t,r=t&&3==n.nodeType?{left:u.right<e.left?u.right:u.left,top:e.top}:e,1==p.nodeType&&t&&(s=h+(e.left>=(u.left+u.right)/2?1:0));continue}}else u.top>e.top&&!o&&u.left<=e.left&&u.right>=e.left&&(o=p,i={left:Math.max(u.left,Math.min(u.right,e.left)),top:u.top});!n&&(e.left>=u.right&&e.top>=u.top||e.left>=u.left&&e.top>=u.bottom)&&(s=h+1)}}return!n&&o&&(n=o,r=i,a=0),n&&3==n.nodeType?function(t,e){let n,r=t.nodeValue.length,o=document.createRange();for(let i=0;i<r;i++){o.setEnd(t,i+1),o.setStart(t,i);let r=X(o,1);if(r.top!=r.bottom&&q(e,r)){n={node:t,offset:i+(e.left>=(r.left+r.right)/2?1:0)};break}}return o.detach(),n||{node:t,offset:0}}(n,r):!n||a&&1==n.nodeType?{node:t,offset:s}:U(n,r)}function q(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function W(t,e,n){let r=t.childNodes.length;if(r&&n.top<n.bottom)for(let o=Math.max(0,Math.min(r-1,Math.floor(r*(e.top-n.top)/(n.bottom-n.top))-2)),i=o;;){let n=t.childNodes[i];if(1==n.nodeType){let t=n.getClientRects();for(let r=0;r<t.length;r++){let o=t[r];if(q(e,o))return W(n,e,o)}}if((i=(i+1)%r)==o)break}return t}function V(t,e){let n,r=t.dom.ownerDocument,o=0,i=function(t,e,n){if(t.caretPositionFromPoint)try{let r=t.caretPositionFromPoint(e,n);if(r)return{node:r.offsetNode,offset:Math.min(u(r.offsetNode),r.offset)}}catch(t){}if(t.caretRangeFromPoint){let r=t.caretRangeFromPoint(e,n);if(r)return{node:r.startContainer,offset:Math.min(u(r.startContainer),r.startOffset)}}}(r,e.left,e.top);i&&({node:n,offset:o}=i);let a,l=(t.root.elementFromPoint?t.root:r).elementFromPoint(e.left,e.top);if(!l||!t.dom.contains(1!=l.nodeType?l.parentNode:l)){let n=t.dom.getBoundingClientRect();if(!q(e,n))return null;if(l=W(t.dom,e,n),!l)return null}if(B)for(let t=l;n&&t;t=s(t))t.draggable&&(n=void 0);if(l=function(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}(l,e),n){if(C&&1==n.nodeType&&(o=Math.min(o,n.childNodes.length),o<n.childNodes.length)){let t,r=n.childNodes[o];"IMG"==r.nodeName&&(t=r.getBoundingClientRect()).right<=e.left&&t.bottom>e.top&&o++}let r;N&&o&&1==n.nodeType&&1==(r=n.childNodes[o-1]).nodeType&&"false"==r.contentEditable&&r.getBoundingClientRect().top>=e.top&&o--,n==t.dom&&o==n.childNodes.length-1&&1==n.lastChild.nodeType&&e.top>n.lastChild.getBoundingClientRect().bottom?a=t.state.doc.content.size:0!=o&&1==n.nodeType&&"BR"==n.childNodes[o-1].nodeName||(a=function(t,e,n,r){let o=-1;for(let n=e,i=!1;n!=t.dom;){let e,a=t.docView.nearestDesc(n,!0);if(!a)return null;if(1==a.dom.nodeType&&(a.node.isBlock&&a.parent||!a.contentDOM)&&((e=a.dom.getBoundingClientRect()).width||e.height)&&(a.node.isBlock&&a.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(a.dom.nodeName)&&(!i&&e.left>r.left||e.top>r.top?o=a.posBefore:(!i&&e.right<r.left||e.bottom<r.top)&&(o=a.posAfter),i=!0),!a.contentDOM&&o<0&&!a.node.isText))return(a.node.isBlock?r.top<(e.top+e.bottom)/2:r.left<(e.left+e.right)/2)?a.posBefore:a.posAfter;n=a.dom.parentNode}return o>-1?o:t.docView.posFromDOM(e,n,-1)}(t,n,o,e))}null==a&&(a=function(t,e,n){let{node:r,offset:o}=U(e,n),i=-1;if(1==r.nodeType&&!r.firstChild){let t=r.getBoundingClientRect();i=t.left!=t.right&&n.left>(t.left+t.right)/2?1:-1}return t.docView.posFromDOM(r,o,i)}(t,l,e));let c=t.docView.nearestDesc(l,!0);return{pos:a,inside:c?c.posAtStart-c.border:-1}}function Y(t){return t.top<t.bottom||t.left<t.right}function X(t,e){let n=t.getClientRects();if(n.length){let t=n[e<0?0:n.length-1];if(Y(t))return t}return Array.prototype.find.call(n,Y)||t.getBoundingClientRect()}const Z=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function K(t,e,n){let{node:r,offset:o,atom:i}=t.docView.domFromPos(e,n<0?-1:1),a=N||C;if(3==r.nodeType){if(!a||!Z.test(r.nodeValue)&&(n<0?o:o!=r.nodeValue.length)){let t=o,e=o,i=n<0?1:-1;return n<0&&!o?(e++,i=-1):n>=0&&o==r.nodeValue.length?(t--,i=1):n<0?t--:e++,J(X(c(r,t,e),i),i<0)}{let t=X(c(r,o,o),n);if(C&&o&&/\s/.test(r.nodeValue[o-1])&&o<r.nodeValue.length){let e=X(c(r,o-1,o-1),-1);if(e.top==t.top){let n=X(c(r,o,o+1),-1);if(n.top!=t.top)return J(n,n.left<e.left)}}return t}}if(!t.state.doc.resolve(e-(i||0)).parent.inlineContent){if(null==i&&o&&(n<0||o==u(r))){let t=r.childNodes[o-1];if(1==t.nodeType)return G(t.getBoundingClientRect(),!1)}if(null==i&&o<u(r)){let t=r.childNodes[o];if(1==t.nodeType)return G(t.getBoundingClientRect(),!0)}return G(r.getBoundingClientRect(),n>=0)}if(null==i&&o&&(n<0||o==u(r))){let t=r.childNodes[o-1],e=3==t.nodeType?c(t,u(t)-(a?0:1)):1!=t.nodeType||"BR"==t.nodeName&&t.nextSibling?null:t;if(e)return J(X(e,1),!1)}if(null==i&&o<u(r)){let t=r.childNodes[o];for(;t.pmViewDesc&&t.pmViewDesc.ignoreForCoords;)t=t.nextSibling;let e=t?3==t.nodeType?c(t,0,a?0:1):1==t.nodeType?t:null:null;if(e)return J(X(e,-1),!0)}return J(X(3==r.nodeType?c(r):r,-n),n>=0)}function J(t,e){if(0==t.width)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function G(t,e){if(0==t.height)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function Q(t,e,n){let r=t.state,o=t.root.activeElement;r!=e&&t.updateState(e),o!=t.dom&&t.focus();try{return n()}finally{r!=e&&t.updateState(r),o!=t.dom&&o&&o.focus()}}const tt=/[\u0590-\u08ac]/;let et=null,nt=null,rt=!1;function ot(t,e,n){return et==e&&nt==n?rt:(et=e,nt=n,rt="up"==n||"down"==n?function(t,e,n){let r=e.selection,o="up"==n?r.$from:r.$to;return Q(t,e,()=>{let{node:e}=t.docView.domFromPos(o.pos,"up"==n?-1:1);for(;;){let n=t.docView.nearestDesc(e,!0);if(!n)break;if(n.node.isBlock){e=n.contentDOM||n.dom;break}e=n.dom.parentNode}let r=K(t,o.pos,1);for(let t=e.firstChild;t;t=t.nextSibling){let e;if(1==t.nodeType)e=t.getClientRects();else{if(3!=t.nodeType)continue;e=c(t,0,t.nodeValue.length).getClientRects()}for(let t=0;t<e.length;t++){let o=e[t];if(o.bottom>o.top+1&&("up"==n?r.top-o.top>2*(o.bottom-r.top):o.bottom-r.bottom>2*(r.bottom-o.top)))return!1}}return!0})}(t,e,n):function(t,e,n){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let o=r.parentOffset,i=!o,a=o==r.parent.content.size,s=t.domSelection();return s?tt.test(r.parent.textContent)&&s.modify?Q(t,e,()=>{let{focusNode:e,focusOffset:o,anchorNode:i,anchorOffset:a}=t.domSelectionRange(),l=s.caretBidiLevel;s.modify("move",n,"character");let c=r.depth?t.docView.domAfterPos(r.before()):t.dom,{focusNode:d,focusOffset:p}=t.domSelectionRange(),h=d&&!c.contains(1==d.nodeType?d:d.parentNode)||e==d&&o==p;try{s.collapse(i,a),e&&(e!=i||o!=a)&&s.extend&&s.extend(e,o)}catch(t){}return null!=l&&(s.caretBidiLevel=l),h}):"left"==n||"backward"==n?i:a:r.pos==r.start()||r.pos==r.end()}(t,e,n))}class it{constructor(t,e,n,r){this.parent=t,this.children=e,this.dom=n,this.contentDOM=r,this.dirty=0,n.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,e,n){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let e=0;e<this.children.length;e++)t+=this.children[e].size;return t}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let t=0;t<this.children.length;t++)this.children[t].destroy()}posBeforeChild(t){for(let e=0,n=this.posAtStart;;e++){let r=this.children[e];if(r==t)return n;n+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(t,e,n){if(this.contentDOM&&this.contentDOM.contains(1==t.nodeType?t:t.parentNode)){if(n<0){let n,r;if(t==this.contentDOM)n=t.childNodes[e-1];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;n=t.previousSibling}for(;n&&(!(r=n.pmViewDesc)||r.parent!=this);)n=n.previousSibling;return n?this.posBeforeChild(r)+r.size:this.posAtStart}{let n,r;if(t==this.contentDOM)n=t.childNodes[e];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;n=t.nextSibling}for(;n&&(!(r=n.pmViewDesc)||r.parent!=this);)n=n.nextSibling;return n?this.posBeforeChild(r):this.posAtEnd}}let r;if(t==this.dom&&this.contentDOM)r=e>a(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=2&t.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==e)for(let e=t;;e=e.parentNode){if(e==this.dom){r=!1;break}if(e.previousSibling)break}if(null==r&&e==t.childNodes.length)for(let e=t;;e=e.parentNode){if(e==this.dom){r=!0;break}if(e.nextSibling)break}}return(null==r?n>0:r)?this.posAtEnd:this.posAtStart}nearestDesc(t,e=!1){for(let n=!0,r=t;r;r=r.parentNode){let o,i=this.getDesc(r);if(i&&(!e||i.node)){if(!n||!(o=i.nodeDOM)||(1==o.nodeType?o.contains(1==t.nodeType?t:t.parentNode):o==t))return i;n=!1}}}getDesc(t){let e=t.pmViewDesc;for(let t=e;t;t=t.parent)if(t==this)return e}posFromDOM(t,e,n){for(let r=t;r;r=r.parentNode){let o=this.getDesc(r);if(o)return o.localPosFromDOM(t,e,n)}return-1}descAt(t){for(let e=0,n=0;e<this.children.length;e++){let r=this.children[e],o=n+r.size;if(n==t&&o!=n){for(;!r.border&&r.children.length;)for(let t=0;t<r.children.length;t++){let e=r.children[t];if(e.size){r=e;break}}return r}if(t<o)return r.descAt(t-n-r.border);n=o}}domFromPos(t,e){if(!this.contentDOM)return{node:this.dom,offset:0,atom:t+1};let n=0,r=0;for(let e=0;n<this.children.length;n++){let o=this.children[n],i=e+o.size;if(i>t||o instanceof ht){r=t-e;break}e=i}if(r)return this.children[n].domFromPos(r-this.children[n].border,e);for(let t;n&&!(t=this.children[n-1]).size&&t instanceof at&&t.side>=0;n--);if(e<=0){let t,r=!0;for(;t=n?this.children[n-1]:null,t&&t.dom.parentNode!=this.contentDOM;n--,r=!1);return t&&e&&r&&!t.border&&!t.domAtom?t.domFromPos(t.size,e):{node:this.contentDOM,offset:t?a(t.dom)+1:0}}{let t,r=!0;for(;t=n<this.children.length?this.children[n]:null,t&&t.dom.parentNode!=this.contentDOM;n++,r=!1);return t&&r&&!t.border&&!t.domAtom?t.domFromPos(0,e):{node:this.contentDOM,offset:t?a(t.dom):this.contentDOM.childNodes.length}}}parseRange(t,e,n=0){if(0==this.children.length)return{node:this.contentDOM,from:t,to:e,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,o=-1;for(let i=n,s=0;;s++){let n=this.children[s],l=i+n.size;if(-1==r&&t<=l){let o=i+n.border;if(t>=o&&e<=l-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(t,e,o);t=i;for(let e=s;e>0;e--){let n=this.children[e-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){r=a(n.dom)+1;break}t-=n.size}-1==r&&(r=0)}if(r>-1&&(l>e||s==this.children.length-1)){e=l;for(let t=s+1;t<this.children.length;t++){let n=this.children[t];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(-1)){o=a(n.dom);break}e+=n.size}-1==o&&(o=this.contentDOM.childNodes.length);break}i=l}return{node:this.contentDOM,from:t,to:e,fromOffset:r,toOffset:o}}emptyChildAt(t){if(this.border||!this.contentDOM||!this.children.length)return!1;let e=this.children[t<0?0:this.children.length-1];return 0==e.size||e.emptyChildAt(t)}domAfterPos(t){let{node:e,offset:n}=this.domFromPos(t,0);if(1!=e.nodeType||n==e.childNodes.length)throw new RangeError("No node after pos "+t);return e.childNodes[n]}setSelection(t,e,n,r=!1){let o=Math.min(t,e),i=Math.max(t,e);for(let a=0,s=0;a<this.children.length;a++){let l=this.children[a],c=s+l.size;if(o>s&&i<c)return l.setSelection(t-s-l.border,e-s-l.border,n,r);s=c}let s=this.domFromPos(t,t?-1:1),l=e==t?s:this.domFromPos(e,e?-1:1),c=n.root.getSelection(),p=n.domSelectionRange(),h=!1;if((C||B)&&t==e){let{node:t,offset:e}=s;if(3==t.nodeType){if(h=!(!e||"\n"!=t.nodeValue[e-1]),h&&e==t.nodeValue.length)for(let e,n=t;n;n=n.parentNode){if(e=n.nextSibling){"BR"==e.nodeName&&(s=l={node:e.parentNode,offset:a(e)+1});break}let t=n.pmViewDesc;if(t&&t.node&&t.node.isBlock)break}}else{let n=t.childNodes[e-1];h=n&&("BR"==n.nodeName||"false"==n.contentEditable)}}if(C&&p.focusNode&&p.focusNode!=l.node&&1==p.focusNode.nodeType){let t=p.focusNode.childNodes[p.focusOffset];t&&"false"==t.contentEditable&&(r=!0)}if(!(r||h&&B)&&d(s.node,s.offset,p.anchorNode,p.anchorOffset)&&d(l.node,l.offset,p.focusNode,p.focusOffset))return;let u=!1;if((c.extend||t==e)&&(!h||!C)){c.collapse(s.node,s.offset);try{t!=e&&c.extend(l.node,l.offset),u=!0}catch(t){}}if(!u){if(t>e){let t=s;s=l,l=t}let n=document.createRange();n.setEnd(l.node,l.offset),n.setStart(s.node,s.offset),c.removeAllRanges(),c.addRange(n)}}ignoreMutation(t){return!this.contentDOM&&"selection"!=t.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,e){for(let n=0,r=0;r<this.children.length;r++){let o=this.children[r],i=n+o.size;if(n==i?t<=i&&e>=n:t<i&&e>n){let r=n+o.border,a=i-o.border;if(t>=r&&e<=a)return this.dirty=t==n||e==i?2:1,void(t!=r||e!=a||!o.contentLost&&o.dom.parentNode==this.contentDOM?o.markDirty(t-r,e-r):o.dirty=3);o.dirty=o.dom!=o.contentDOM||o.dom.parentNode!=this.contentDOM||o.children.length?3:2}n=i}this.dirty=2}markParentsDirty(){let t=1;for(let e=this.parent;e;e=e.parent,t++){let n=1==t?2:1;e.dirty<n&&(e.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(t){return!1}}class at extends it{constructor(t,e,n,r){let o,i=e.type.toDOM;if("function"==typeof i&&(i=i(n,()=>o?o.parent?o.parent.posBeforeChild(o):void 0:r)),!e.type.spec.raw){if(1!=i.nodeType){let t=document.createElement("span");t.appendChild(i),i=t}i.contentEditable="false",i.classList.add("ProseMirror-widget")}super(t,[],i,null),this.widget=e,this.widget=e,o=this}matchesWidget(t){return 0==this.dirty&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let e=this.widget.spec.stopEvent;return!!e&&e(t)}ignoreMutation(t){return"selection"!=t.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class st extends it{constructor(t,e,n,r){super(t,[],e,null),this.textDOM=n,this.text=r}get size(){return this.text.length}localPosFromDOM(t,e){return t!=this.textDOM?this.posAtStart+(e?this.size:0):this.posAtStart+e}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return"characterData"===t.type&&t.target.nodeValue==t.oldValue}}class lt extends it{constructor(t,e,n,r,o){super(t,[],n,r),this.mark=e,this.spec=o}static create(t,e,n,r){let i=r.nodeViews[e.type.name],a=i&&i(e,r,n);return a&&a.dom||(a=o.ZF.renderSpec(document,e.type.spec.toDOM(e,n),null,e.attrs)),new lt(t,e,a.dom,a.contentDOM||a.dom,a)}parseRule(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(t){return 3!=this.dirty&&this.mark.eq(t)}markDirty(t,e){if(super.markDirty(t,e),0!=this.dirty){let t=this.parent;for(;!t.node;)t=t.parent;t.dirty<this.dirty&&(t.dirty=this.dirty),this.dirty=0}}slice(t,e,n){let r=lt.create(this.parent,this.mark,!0,n),o=this.children,i=this.size;e<i&&(o=Ct(o,e,i,n)),t>0&&(o=Ct(o,0,t,n));for(let t=0;t<o.length;t++)o[t].parent=r;return r.children=o,r}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class ct extends it{constructor(t,e,n,r,o,i,a,s,l){super(t,[],o,i),this.node=e,this.outerDeco=n,this.innerDeco=r,this.nodeDOM=a}static create(t,e,n,r,i,a){let s,l=i.nodeViews[e.type.name],c=l&&l(e,i,()=>s?s.parent?s.parent.posBeforeChild(s):void 0:a,n,r),d=c&&c.dom,p=c&&c.contentDOM;if(e.isText)if(d){if(3!=d.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else d=document.createTextNode(e.text);else if(!d){let t=o.ZF.renderSpec(document,e.type.spec.toDOM(e),null,e.attrs);({dom:d,contentDOM:p}=t)}p||e.isText||"BR"==d.nodeName||(d.hasAttribute("contenteditable")||(d.contentEditable="false"),e.type.spec.draggable&&(d.draggable=!0));let h=d;return d=At(d,n,e),c?s=new ut(t,e,n,r,d,p||null,h,c,i,a+1):e.isText?new pt(t,e,n,r,d,h,i):new ct(t,e,n,r,d,p||null,h,i,a+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(t.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let e=this.children.length-1;e>=0;e--){let n=this.children[e];if(this.dom.contains(n.dom.parentNode)){t.contentElement=n.dom.parentNode;break}}t.contentElement||(t.getContent=()=>o.FK.empty)}else t.contentElement=this.contentDOM;else t.getContent=()=>this.node.content;return t}matchesNode(t,e,n){return 0==this.dirty&&t.eq(this.node)&&xt(e,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,e){let n=this.node.inlineContent,r=e,i=t.composing?this.localCompositionInfo(t,e):null,a=i&&i.pos>-1?i:null,s=i&&i.pos<0,l=new vt(this,a&&a.node,t);!function(t,e,n,r){let o=e.locals(t),i=0;if(0==o.length){for(let n=0;n<t.childCount;n++){let a=t.child(n);r(a,o,e.forChild(i,a),n),i+=a.nodeSize}return}let a=0,s=[],l=null;for(let c=0;;){let d,p,h,u;for(;a<o.length&&o[a].to==i;){let t=o[a++];t.widget&&(d?(p||(p=[d])).push(t):d=t)}if(d)if(p){p.sort(kt);for(let t=0;t<p.length;t++)n(p[t],c,!!l)}else n(d,c,!!l);if(l)u=-1,h=l,l=null;else{if(!(c<t.childCount))break;u=c,h=t.child(c++)}for(let t=0;t<s.length;t++)s[t].to<=i&&s.splice(t--,1);for(;a<o.length&&o[a].from<=i&&o[a].to>i;)s.push(o[a++]);let f=i+h.nodeSize;if(h.isText){let t=f;a<o.length&&o[a].from<t&&(t=o[a].from);for(let e=0;e<s.length;e++)s[e].to<t&&(t=s[e].to);t<f&&(l=h.cut(t-i),h=h.cut(0,t-i),f=t,u=-1)}else for(;a<o.length&&o[a].to<f;)a++;r(h,h.isInline&&!h.isLeaf?s.filter(t=>!t.inline):s.slice(),e.forChild(i,h),u),i=f}}(this.node,this.innerDeco,(e,i,a)=>{e.spec.marks?l.syncToMarks(e.spec.marks,n,t,i):e.type.side>=0&&!a&&l.syncToMarks(i==this.node.childCount?o.CU.none:this.node.child(i).marks,n,t,i),l.placeWidget(e,t,r)},(e,o,a,c)=>{let d;l.syncToMarks(e.marks,n,t,c),l.findNodeMatch(e,o,a,c)||s&&t.state.selection.from>r&&t.state.selection.to<r+e.nodeSize&&(d=l.findIndexWithChild(i.node))>-1&&l.updateNodeAt(e,o,a,d,t)||l.updateNextNode(e,o,a,t,c,r)||l.addNode(e,o,a,t,r),r+=e.nodeSize}),l.syncToMarks([],n,t,0),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||2==this.dirty)&&(a&&this.protectLocalComposition(t,a),ft(this.contentDOM,this.children,t),T&&function(t){if("UL"==t.nodeName||"OL"==t.nodeName){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}(this.dom))}localCompositionInfo(t,e){let{from:n,to:o}=t.state.selection;if(!(t.state.selection instanceof r.U3)||n<e||o>e+this.node.content.size)return null;let i=t.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let t=i.nodeValue,r=function(t,e,n,r){for(let o=0,i=0;o<t.childCount&&i<=r;){let a=t.child(o++),s=i;if(i+=a.nodeSize,!a.isText)continue;let l=a.text;for(;o<t.childCount;){let e=t.child(o++);if(i+=e.nodeSize,!e.isText)break;l+=e.text}if(i>=n){if(i>=r&&l.slice(r-e.length-s,r-s)==e)return r-e.length;let t=s<r?l.lastIndexOf(e,r-s-1):-1;if(t>=0&&t+e.length+s>=n)return s+t;if(n==r&&l.length>=r+e.length-s&&l.slice(r-s,r-s+e.length)==e)return r}}return-1}(this.node.content,t,n-e,o-e);return r<0?null:{node:i,pos:r,text:t}}return{node:i,pos:-1,text:""}}protectLocalComposition(t,{node:e,pos:n,text:r}){if(this.getDesc(e))return;let o=e;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let i=new st(this,o,e,r);t.input.compositionNodes.push(i),this.children=Ct(this.children,n,n+r.length,t,i)}update(t,e,n,r){return!(3==this.dirty||!t.sameMarkup(this.node))&&(this.updateInner(t,e,n,r),!0)}updateInner(t,e,n,r){this.updateOuterDeco(e),this.node=t,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=0}updateOuterDeco(t){if(xt(t,this.outerDeco))return;let e=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=yt(this.dom,this.nodeDOM,bt(this.outerDeco,this.node,e),bt(t,this.node,e)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){1==this.nodeDOM.nodeType&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.nodeDOM.draggable=!0))}deselectNode(){1==this.nodeDOM.nodeType&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function dt(t,e,n,r,o){At(r,e,t);let i=new ct(void 0,t,e,n,r,r,r,o,0);return i.contentDOM&&i.updateChildren(o,0),i}class pt extends ct{constructor(t,e,n,r,o,i,a){super(t,e,n,r,o,null,i,a,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,e,n,r){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!t.sameMarkup(this.node))&&(this.updateOuterDeco(e),0==this.dirty&&t.text==this.node.text||t.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=t.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=t,this.dirty=0,!0)}inParent(){let t=this.parent.contentDOM;for(let e=this.nodeDOM;e;e=e.parentNode)if(e==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,e,n){return t==this.nodeDOM?this.posAtStart+Math.min(e,this.node.text.length):super.localPosFromDOM(t,e,n)}ignoreMutation(t){return"characterData"!=t.type&&"selection"!=t.type}slice(t,e,n){let r=this.node.cut(t,e),o=document.createTextNode(r.text);return new pt(this.parent,r,this.outerDeco,this.innerDeco,o,o,n)}markDirty(t,e){super.markDirty(t,e),this.dom==this.nodeDOM||0!=t&&e!=this.nodeDOM.nodeValue.length||(this.dirty=3)}get domAtom(){return!1}isText(t){return this.node.text==t}}class ht extends it{parseRule(){return{ignore:!0}}matchesHack(t){return 0==this.dirty&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class ut extends ct{constructor(t,e,n,r,o,i,a,s,l,c){super(t,e,n,r,o,i,a,l,c),this.spec=s}update(t,e,n,r){if(3==this.dirty)return!1;if(this.spec.update&&(this.node.type==t.type||this.spec.multiType)){let o=this.spec.update(t,e,n);return o&&this.updateInner(t,e,n,r),o}return!(!this.contentDOM&&!t.isLeaf)&&super.update(t,e,n,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,e,n,r){this.spec.setSelection?this.spec.setSelection(t,e,n.root):super.setSelection(t,e,n,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return!!this.spec.stopEvent&&this.spec.stopEvent(t)}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function ft(t,e,n){let r=t.firstChild,o=!1;for(let i=0;i<e.length;i++){let a=e[i],s=a.dom;if(s.parentNode==t){for(;s!=r;)r=_t(r),o=!0;r=r.nextSibling}else o=!0,t.insertBefore(s,r);if(a instanceof lt){let e=r?r.previousSibling:t.lastChild;ft(a.contentDOM,a.children,n),r=e?e.nextSibling:t.firstChild}}for(;r;)r=_t(r),o=!0;o&&n.trackWrites==t&&(n.trackWrites=null)}const mt=function(t){t&&(this.nodeName=t)};mt.prototype=Object.create(null);const gt=[new mt];function bt(t,e,n){if(0==t.length)return gt;let r=n?gt[0]:new mt,o=[r];for(let i=0;i<t.length;i++){let a=t[i].type.attrs;if(a){a.nodeName&&o.push(r=new mt(a.nodeName));for(let t in a){let i=a[t];null!=i&&(n&&1==o.length&&o.push(r=new mt(e.isInline?"span":"div")),"class"==t?r.class=(r.class?r.class+" ":"")+i:"style"==t?r.style=(r.style?r.style+";":"")+i:"nodeName"!=t&&(r[t]=i))}}}return o}function yt(t,e,n,r){if(n==gt&&r==gt)return e;let o=e;for(let e=0;e<r.length;e++){let i=r[e],a=n[e];if(e){let e;a&&a.nodeName==i.nodeName&&o!=t&&(e=o.parentNode)&&e.nodeName.toLowerCase()==i.nodeName||(e=document.createElement(i.nodeName),e.pmIsDeco=!0,e.appendChild(o),a=gt[0]),o=e}wt(o,a||gt[0],i)}return o}function wt(t,e,n){for(let r in e)"class"==r||"style"==r||"nodeName"==r||r in n||t.removeAttribute(r);for(let r in n)"class"!=r&&"style"!=r&&"nodeName"!=r&&n[r]!=e[r]&&t.setAttribute(r,n[r]);if(e.class!=n.class){let r=e.class?e.class.split(" ").filter(Boolean):[],o=n.class?n.class.split(" ").filter(Boolean):[];for(let e=0;e<r.length;e++)-1==o.indexOf(r[e])&&t.classList.remove(r[e]);for(let e=0;e<o.length;e++)-1==r.indexOf(o[e])&&t.classList.add(o[e]);0==t.classList.length&&t.removeAttribute("class")}if(e.style!=n.style){if(e.style){let n,r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g;for(;n=r.exec(e.style);)t.style.removeProperty(n[1])}n.style&&(t.style.cssText+=n.style)}}function At(t,e,n){return yt(t,t,gt,bt(e,n,1!=t.nodeType))}function xt(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].type.eq(e[n].type))return!1;return!0}function _t(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class vt{constructor(t,e,n){this.lock=e,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=t,this.preMatch=function(t,e){let n=e,r=n.children.length,o=t.childCount,i=new Map,a=[];t:for(;o>0;){let s;for(;;)if(r){let t=n.children[r-1];if(!(t instanceof lt)){s=t,r--;break}n=t,r=t.children.length}else{if(n==e)break t;r=n.parent.children.indexOf(n),n=n.parent}let l=s.node;if(l){if(l!=t.child(o-1))break;--o,i.set(s,o),a.push(s)}}return{index:o,matched:i,matches:a.reverse()}}(t.node.content,t)}destroyBetween(t,e){if(t!=e){for(let n=t;n<e;n++)this.top.children[n].destroy();this.top.children.splice(t,e-t),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(t,e,n,r){let o=0,i=this.stack.length>>1,a=Math.min(i,t.length);for(;o<a&&(o==i-1?this.top:this.stack[o+1<<1]).matchesMark(t[o])&&!1!==t[o].type.spec.spanning;)o++;for(;o<i;)this.destroyRest(),this.top.dirty=0,this.index=this.stack.pop(),this.top=this.stack.pop(),i--;for(;i<t.length;){this.stack.push(this.top,this.index+1);let o=-1,a=this.top.children.length;r<this.preMatch.index&&(a=Math.min(this.index+3,a));for(let e=this.index;e<a;e++){let n=this.top.children[e];if(n.matchesMark(t[i])&&!this.isLocked(n.dom)){o=e;break}}if(o>-1)o>this.index&&(this.changed=!0,this.destroyBetween(this.index,o)),this.top=this.top.children[this.index];else{let r=lt.create(this.top,t[i],e,n);this.top.children.splice(this.index,0,r),this.top=r,this.changed=!0}this.index=0,i++}}findNodeMatch(t,e,n,r){let o,i=-1;if(r>=this.preMatch.index&&(o=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&o.matchesNode(t,e,n))i=this.top.children.indexOf(o,this.index);else for(let r=this.index,o=Math.min(this.top.children.length,r+5);r<o;r++){let o=this.top.children[r];if(o.matchesNode(t,e,n)&&!this.preMatch.matched.has(o)){i=r;break}}return!(i<0)&&(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(t,e,n,r,o){let i=this.top.children[r];return 3==i.dirty&&i.dom==i.contentDOM&&(i.dirty=2),!!i.update(t,e,n,o)&&(this.destroyBetween(this.index,r),this.index++,!0)}findIndexWithChild(t){for(;;){let e=t.parentNode;if(!e)return-1;if(e==this.top.contentDOM){let e=t.pmViewDesc;if(e)for(let t=this.index;t<this.top.children.length;t++)if(this.top.children[t]==e)return t;return-1}t=e}}updateNextNode(t,e,n,r,o,i){for(let a=this.index;a<this.top.children.length;a++){let s=this.top.children[a];if(s instanceof ct){let l=this.preMatch.matched.get(s);if(null!=l&&l!=o)return!1;let c,d=s.dom,p=this.isLocked(d)&&!(t.isText&&s.node&&s.node.isText&&s.nodeDOM.nodeValue==t.text&&3!=s.dirty&&xt(e,s.outerDeco));if(!p&&s.update(t,e,n,r))return this.destroyBetween(this.index,a),s.dom!=d&&(this.changed=!0),this.index++,!0;if(!p&&(c=this.recreateWrapper(s,t,e,n,r,i)))return this.destroyBetween(this.index,a),this.top.children[this.index]=c,c.contentDOM&&(c.dirty=2,c.updateChildren(r,i+1),c.dirty=0),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(t,e,n,r,o,i){if(t.dirty||e.isAtom||!t.children.length||!t.node.content.eq(e.content)||!xt(n,t.outerDeco)||!r.eq(t.innerDeco))return null;let a=ct.create(this.top,e,n,r,o,i);if(a.contentDOM){a.children=t.children,t.children=[];for(let t of a.children)t.parent=a}return t.destroy(),a}addNode(t,e,n,r,o){let i=ct.create(this.top,t,e,n,r,o);i.contentDOM&&i.updateChildren(r,o+1),this.top.children.splice(this.index++,0,i),this.changed=!0}placeWidget(t,e,n){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(!r||!r.matchesWidget(t)||t!=r.widget&&r.widget.type.toDOM.parentNode){let r=new at(this.top,t,e,n);this.top.children.splice(this.index++,0,r),this.changed=!0}else this.index++}addTextblockHacks(){let t=this.top.children[this.index-1],e=this.top;for(;t instanceof lt;)e=t,t=e.children[e.children.length-1];(!t||!(t instanceof pt)||/\n$/.test(t.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(t.node.text))&&((B||S)&&t&&"false"==t.dom.contentEditable&&this.addHackNode("IMG",e),this.addHackNode("BR",this.top))}addHackNode(t,e){if(e==this.top&&this.index<e.children.length&&e.children[this.index].matchesHack(t))this.index++;else{let n=document.createElement(t);"IMG"==t&&(n.className="ProseMirror-separator",n.alt=""),"BR"==t&&(n.className="ProseMirror-trailingBreak");let r=new ht(this.top,[],n,null);e!=this.top?e.children.push(r):e.children.splice(this.index++,0,r),this.changed=!0}}isLocked(t){return this.lock&&(t==this.lock||1==t.nodeType&&t.contains(this.lock.parentNode))}}function kt(t,e){return t.type.side-e.type.side}function Ct(t,e,n,r,o){let i=[];for(let a=0,s=0;a<t.length;a++){let l=t[a],c=s,d=s+=l.size;c>=n||d<=e?i.push(l):(c<e&&i.push(l.slice(0,e-c,r)),o&&(i.push(o),o=void 0),d>n&&i.push(l.slice(n-c,l.size,r)))}return i}function Et(t,e=null){let n=t.domSelectionRange(),o=t.state.doc;if(!n.focusNode)return null;let i=t.docView.nearestDesc(n.focusNode),s=i&&0==i.size,l=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(l<0)return null;let c,d,p=o.resolve(l);if(m(n)){for(c=l;i&&!i.node;)i=i.parent;let t=i.node;if(i&&t.isAtom&&r.nh.isSelectable(t)&&i.parent&&(!t.isInline||!function(t,e,n){for(let r=0==e,o=e==u(t);r||o;){if(t==n)return!0;let e=a(t);if(!(t=t.parentNode))return!1;r=r&&0==e,o=o&&e==u(t)}}(n.focusNode,n.focusOffset,i.dom))){let t=i.posBefore;d=new r.nh(l==t?p:o.resolve(t))}}else{if(n instanceof t.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let e=l,r=l;for(let o=0;o<n.rangeCount;o++){let i=n.getRangeAt(o);e=Math.min(e,t.docView.posFromDOM(i.startContainer,i.startOffset,1)),r=Math.max(r,t.docView.posFromDOM(i.endContainer,i.endOffset,-1))}if(e<0)return null;[c,l]=r==t.state.selection.anchor?[r,e]:[e,r],p=o.resolve(l)}else c=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(c<0)return null}let h=o.resolve(c);if(!d){d=Rt(t,h,p,"pointer"==e||t.state.selection.head<p.pos&&!s?1:-1)}return d}function St(t){return t.editable?t.hasFocus():Ht(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function Mt(t,e=!1){let n=t.state.selection;if(It(t,n),St(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&S){let e=t.domSelectionRange(),n=t.domObserver.currentSelection;if(e.anchorNode&&n.anchorNode&&d(e.anchorNode,e.anchorOffset,n.anchorNode,n.anchorOffset))return t.input.mouseDown.delayedSelectionSync=!0,void t.domObserver.setCurSelection()}if(t.domObserver.disconnectSelection(),t.cursorWrapper)!function(t){let e=t.domSelection();if(!e)return;let n=t.cursorWrapper.dom,r="IMG"==n.nodeName;r?e.collapse(n.parentNode,a(n)+1):e.collapse(n,0);!r&&!t.state.selection.visible&&v&&k<=11&&(n.disabled=!0,n.disabled=!1)}(t);else{let o,i,{anchor:a,head:s}=n;!Bt||n instanceof r.U3||(n.$from.parent.inlineContent||(o=Tt(t,n.from)),n.empty||n.$from.parent.inlineContent||(i=Tt(t,n.to))),t.docView.setSelection(a,s,t,e),Bt&&(o&&Ot(o),i&&Ot(i)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&function(t){let e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let n=t.domSelectionRange(),r=n.anchorNode,o=n.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{n.anchorNode==r&&n.anchorOffset==o||(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{St(t)&&!t.state.selection.visible||t.dom.classList.remove("ProseMirror-hideselection")},20))})}(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const Bt=B||S&&M<63;function Tt(t,e){let{node:n,offset:r}=t.docView.domFromPos(e,0),o=r<n.childNodes.length?n.childNodes[r]:null,i=r?n.childNodes[r-1]:null;if(B&&o&&"false"==o.contentEditable)return Lt(o);if(!(o&&"false"!=o.contentEditable||i&&"false"!=i.contentEditable)){if(o)return Lt(o);if(i)return Lt(i)}}function Lt(t){return t.contentEditable="true",B&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function Ot(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function It(t,e){if(e instanceof r.nh){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(Nt(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else Nt(t)}function Nt(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function Rt(t,e,n,o){return t.someProp("createSelectionBetween",r=>r(t,e,n))||r.U3.between(e,n,o)}function zt(t){return!(t.editable&&!t.hasFocus())&&Ht(t)}function Ht(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(3==e.anchorNode.nodeType?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(3==e.focusNode.nodeType?e.focusNode.parentNode:e.focusNode))}catch(t){return!1}}function Pt(t,e){let{$anchor:n,$head:o}=t.selection,i=e>0?n.max(o):n.min(o),a=i.parent.inlineContent?i.depth?t.doc.resolve(e>0?i.after():i.before()):null:i;return a&&r.LN.findFrom(a,e)}function Dt(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function $t(t,e,n){let o=t.state.selection;if(!(o instanceof r.U3)){if(o instanceof r.nh&&o.node.isInline)return Dt(t,new r.U3(e>0?o.$to:o.$from));{let n=Pt(t.state,e);return!!n&&Dt(t,n)}}if(n.indexOf("s")>-1){let{$head:n}=o,i=n.textOffset?null:e<0?n.nodeBefore:n.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let a=t.state.doc.resolve(n.pos+i.nodeSize*(e<0?-1:1));return Dt(t,new r.U3(o.$anchor,a))}if(!o.empty)return!1;if(t.endOfTextblock(e>0?"forward":"backward")){let n=Pt(t.state,e);return!!(n&&n instanceof r.nh)&&Dt(t,n)}if(!(L&&n.indexOf("m")>-1)){let n,i=o.$head,a=i.textOffset?null:e<0?i.nodeBefore:i.nodeAfter;if(!a||a.isText)return!1;let s=e<0?i.pos-a.nodeSize:i.pos;return!!(a.isAtom||(n=t.docView.descAt(s))&&!n.contentDOM)&&(r.nh.isSelectable(a)?Dt(t,new r.nh(e<0?t.state.doc.resolve(i.pos-a.nodeSize):i)):!!N&&Dt(t,new r.U3(t.state.doc.resolve(e<0?s:s+a.nodeSize))))}}function jt(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}function Ft(t,e){let n=t.pmViewDesc;return n&&0==n.size&&(e<0||t.nextSibling||"BR"!=t.nodeName)}function Ut(t,e){return e<0?function(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let o,i,s=!1;C&&1==n.nodeType&&r<jt(n)&&Ft(n.childNodes[r],-1)&&(s=!0);for(;;)if(r>0){if(1!=n.nodeType)break;{let t=n.childNodes[r-1];if(Ft(t,-1))o=n,i=--r;else{if(3!=t.nodeType)break;n=t,r=n.nodeValue.length}}}else{if(qt(n))break;{let e=n.previousSibling;for(;e&&Ft(e,-1);)o=n.parentNode,i=a(e),e=e.previousSibling;if(e)n=e,r=jt(n);else{if(n=n.parentNode,n==t.dom)break;r=0}}}s?Wt(t,n,r):o&&Wt(t,o,i)}(t):function(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let o,i,s=jt(n);for(;;)if(r<s){if(1!=n.nodeType)break;if(!Ft(n.childNodes[r],1))break;o=n,i=++r}else{if(qt(n))break;{let e=n.nextSibling;for(;e&&Ft(e,1);)o=e.parentNode,i=a(e)+1,e=e.nextSibling;if(e)n=e,r=0,s=jt(n);else{if(n=n.parentNode,n==t.dom)break;r=s=0}}}o&&Wt(t,o,i)}(t)}function qt(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function Wt(t,e,n){if(3!=e.nodeType){let t,r;(r=function(t,e){for(;t&&e==t.childNodes.length&&!f(t);)e=a(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){let n=t.childNodes[e];if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;t=n,e=0}}(e,n))?(e=r,n=0):(t=function(t,e){for(;t&&!e&&!f(t);)e=a(t),t=t.parentNode;for(;t&&e;){let n=t.childNodes[e-1];if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;e=(t=n).childNodes.length}}(e,n))&&(e=t,n=t.nodeValue.length)}let r=t.domSelection();if(!r)return;if(m(r)){let t=document.createRange();t.setEnd(e,n),t.setStart(e,n),r.removeAllRanges(),r.addRange(t)}else r.extend&&r.extend(e,n);t.domObserver.setCurSelection();let{state:o}=t;setTimeout(()=>{t.state==o&&Mt(t)},50)}function Vt(t,e){let n=t.state.doc.resolve(e);if(!S&&!O&&n.parent.inlineContent){let r=t.coordsAtPos(e);if(e>n.start()){let n=t.coordsAtPos(e-1),o=(n.top+n.bottom)/2;if(o>r.top&&o<r.bottom&&Math.abs(n.left-r.left)>1)return n.left<r.left?"ltr":"rtl"}if(e<n.end()){let n=t.coordsAtPos(e+1),o=(n.top+n.bottom)/2;if(o>r.top&&o<r.bottom&&Math.abs(n.left-r.left)>1)return n.left>r.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(t.dom).direction?"rtl":"ltr"}function Yt(t,e,n){let o=t.state.selection;if(o instanceof r.U3&&!o.empty||n.indexOf("s")>-1)return!1;if(L&&n.indexOf("m")>-1)return!1;let{$from:i,$to:a}=o;if(!i.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let n=Pt(t.state,e);if(n&&n instanceof r.nh)return Dt(t,n)}if(!i.parent.inlineContent){let n=e<0?i:a,s=o instanceof r.i5?r.LN.near(n,e):r.LN.findFrom(n,e);return!!s&&Dt(t,s)}return!1}function Xt(t,e){if(!(t.state.selection instanceof r.U3))return!0;let{$head:n,$anchor:o,empty:i}=t.state.selection;if(!n.sameParent(o))return!0;if(!i)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let a=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(a&&!a.isText){let r=t.state.tr;return e<0?r.delete(n.pos-a.nodeSize,n.pos):r.delete(n.pos,n.pos+a.nodeSize),t.dispatch(r),!0}return!1}function Zt(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function Kt(t,e){let n=e.keyCode,r=function(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}(e);if(8==n||L&&72==n&&"c"==r)return Xt(t,-1)||Ut(t,-1);if(46==n&&!e.shiftKey||L&&68==n&&"c"==r)return Xt(t,1)||Ut(t,1);if(13==n||27==n)return!0;if(37==n||L&&66==n&&"c"==r){let e=37==n?"ltr"==Vt(t,t.state.selection.from)?-1:1:-1;return $t(t,e,r)||Ut(t,e)}if(39==n||L&&70==n&&"c"==r){let e=39==n?"ltr"==Vt(t,t.state.selection.from)?1:-1:1;return $t(t,e,r)||Ut(t,e)}return 38==n||L&&80==n&&"c"==r?Yt(t,-1,r)||Ut(t,-1):40==n||L&&78==n&&"c"==r?function(t){if(!B||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&1==e.nodeType&&0==n&&e.firstChild&&"false"==e.firstChild.contentEditable){let n=e.firstChild;Zt(t,n,"true"),setTimeout(()=>Zt(t,n,"false"),20)}return!1}(t)||Yt(t,1,r)||Ut(t,1):r==(L?"m":"c")&&(66==n||73==n||89==n||90==n)}function Jt(t,e){t.someProp("transformCopied",n=>{e=n(e,t)});let n=[],{content:r,openStart:i,openEnd:a}=e;for(;i>1&&a>1&&1==r.childCount&&1==r.firstChild.childCount;){i--,a--;let t=r.firstChild;n.push(t.type.name,t.attrs!=t.type.defaultAttrs?t.attrs:null),r=t.content}let s=t.someProp("clipboardSerializer")||o.ZF.fromSchema(t.state.schema),l=se(),c=l.createElement("div");c.appendChild(s.serializeFragment(r,{document:l}));let d,p=c.firstChild,h=0;for(;p&&1==p.nodeType&&(d=ie[p.nodeName.toLowerCase()]);){for(let t=d.length-1;t>=0;t--){let e=l.createElement(d[t]);for(;c.firstChild;)e.appendChild(c.firstChild);c.appendChild(e),h++}p=c.firstChild}return p&&1==p.nodeType&&p.setAttribute("data-pm-slice",`${i} ${a}${h?` -${h}`:""} ${JSON.stringify(n)}`),{dom:c,text:t.someProp("clipboardTextSerializer",n=>n(e,t))||e.content.textBetween(0,e.content.size,"\n\n"),slice:e}}function Gt(t,e,n,r,i){let a,s,l=i.parent.type.spec.code;if(!n&&!e)return null;let c=!!e&&(r||l||!n);if(c){if(t.someProp("transformPastedText",n=>{e=n(e,l||r,t)}),l)return s=new o.Ji(o.FK.from(t.state.schema.text(e.replace(/\r\n?/g,"\n"))),0,0),t.someProp("transformPasted",e=>{s=e(s,t,!0)}),s;let n=t.someProp("clipboardTextParser",n=>n(e,i,r,t));if(n)s=n;else{let n=i.marks(),{schema:r}=t.state,s=o.ZF.fromSchema(r);a=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(t=>{let e=a.appendChild(document.createElement("p"));t&&e.appendChild(s.serializeNode(r.text(t,n)))})}}else t.someProp("transformPastedHTML",e=>{n=e(n,t)}),a=function(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n,r=se().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(t);(n=o&&ie[o[1].toLowerCase()])&&(t=n.map(t=>"<"+t+">").join("")+t+n.map(t=>"</"+t+">").reverse().join(""));if(r.innerHTML=function(t){let e=window.trustedTypes;if(!e)return t;le||(le=e.defaultPolicy||e.createPolicy("ProseMirrorClipboard",{createHTML:t=>t}));return le.createHTML(t)}(t),n)for(let t=0;t<n.length;t++)r=r.querySelector(n[t])||r;return r}(n),N&&function(t){let e=t.querySelectorAll(S?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<e.length;n++){let r=e[n];1==r.childNodes.length&&"ย "==r.textContent&&r.parentNode&&r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),r)}}(a);let d=a&&a.querySelector("[data-pm-slice]"),p=d&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(d.getAttribute("data-pm-slice")||"");if(p&&p[3])for(let t=+p[3];t>0;t--){let t=a.firstChild;for(;t&&1!=t.nodeType;)t=t.nextSibling;if(!t)break;a=t}if(!s){let e=t.someProp("clipboardParser")||t.someProp("domParser")||o.S4.fromSchema(t.state.schema);s=e.parseSlice(a,{preserveWhitespace:!(!c&&!p),context:i,ruleFromNode:t=>"BR"!=t.nodeName||t.nextSibling||!t.parentNode||Qt.test(t.parentNode.nodeName)?null:{ignore:!0}})}if(p)s=function(t,e){if(!t.size)return t;let n,r=t.content.firstChild.type.schema;try{n=JSON.parse(e)}catch(e){return t}let{content:i,openStart:a,openEnd:s}=t;for(let t=n.length-2;t>=0;t-=2){let e=r.nodes[n[t]];if(!e||e.hasRequiredAttrs())break;i=o.FK.from(e.create(n[t+1],i)),a++,s++}return new o.Ji(i,a,s)}(oe(s,+p[1],+p[2]),p[4]);else if(s=o.Ji.maxOpen(function(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let r,i=e.node(n).contentMatchAt(e.index(n)),a=[];if(t.forEach(t=>{if(!a)return;let e,n=i.findWrapping(t.type);if(!n)return a=null;if(e=a.length&&r.length&&ee(n,r,t,a[a.length-1],0))a[a.length-1]=e;else{a.length&&(a[a.length-1]=ne(a[a.length-1],r.length));let e=te(t,n);a.push(e),i=i.matchType(e.type),r=n}}),a)return o.FK.from(a)}return t}(s.content,i),!0),s.openStart||s.openEnd){let t=0,e=0;for(let e=s.content.firstChild;t<s.openStart&&!e.type.spec.isolating;t++,e=e.firstChild);for(let t=s.content.lastChild;e<s.openEnd&&!t.type.spec.isolating;e++,t=t.lastChild);s=oe(s,t,e)}return t.someProp("transformPasted",e=>{s=e(s,t,c)}),s}const Qt=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function te(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,o.FK.from(t));return t}function ee(t,e,n,r,i){if(i<t.length&&i<e.length&&t[i]==e[i]){let a=ee(t,e,n,r.lastChild,i+1);if(a)return r.copy(r.content.replaceChild(r.childCount-1,a));if(r.contentMatchAt(r.childCount).matchType(i==t.length-1?n.type:t[i+1]))return r.copy(r.content.append(o.FK.from(te(n,t,i+1))))}}function ne(t,e){if(0==e)return t;let n=t.content.replaceChild(t.childCount-1,ne(t.lastChild,e-1)),r=t.contentMatchAt(t.childCount).fillBefore(o.FK.empty,!0);return t.copy(n.append(r))}function re(t,e,n,r,i,a){let s=e<0?t.firstChild:t.lastChild,l=s.content;return t.childCount>1&&(a=0),i<r-1&&(l=re(l,e,n,r,i+1,a)),i>=n&&(l=e<0?s.contentMatchAt(0).fillBefore(l,a<=i).append(l):l.append(s.contentMatchAt(s.childCount).fillBefore(o.FK.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(l))}function oe(t,e,n){return e<t.openStart&&(t=new o.Ji(re(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new o.Ji(re(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const ie={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let ae=null;function se(){return ae||(ae=document.implementation.createHTMLDocument("title"))}let le=null;const ce={},de={},pe={touchstart:!0,touchmove:!0};class he{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function ue(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function fe(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=e=>me(t,e))})}function me(t,e){return t.someProp("handleDOMEvents",n=>{let r=n[e.type];return!!r&&(r(t,e)||e.defaultPrevented)})}function ge(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function be(t){return{left:t.clientX,top:t.clientY}}function ye(t,e,n,r,o){if(-1==r)return!1;let i=t.state.doc.resolve(r);for(let r=i.depth+1;r>0;r--)if(t.someProp(e,e=>r>i.depth?e(t,n,i.nodeAfter,i.before(r),o,!0):e(t,n,i.node(r),i.before(r),o,!1)))return!0;return!1}function we(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let r=t.state.tr.setSelection(e);"pointer"==n&&r.setMeta("pointer",!0),t.dispatch(r)}function Ae(t,e,n,o,i){return ye(t,"handleClickOn",e,n,o)||t.someProp("handleClick",n=>n(t,e,o))||(i?function(t,e){if(-1==e)return!1;let n,o,i=t.state.selection;i instanceof r.nh&&(n=i.node);let a=t.state.doc.resolve(e);for(let t=a.depth+1;t>0;t--){let e=t>a.depth?a.nodeAfter:a.node(t);if(r.nh.isSelectable(e)){o=n&&i.$from.depth>0&&t>=i.$from.depth&&a.before(i.$from.depth+1)==i.$from.pos?a.before(i.$from.depth):a.before(t);break}}return null!=o&&(we(t,r.nh.create(t.state.doc,o),"pointer"),!0)}(t,n):function(t,e){if(-1==e)return!1;let n=t.state.doc.resolve(e),o=n.nodeAfter;return!!(o&&o.isAtom&&r.nh.isSelectable(o))&&(we(t,new r.nh(n),"pointer"),!0)}(t,n))}function xe(t,e,n,r){return ye(t,"handleDoubleClickOn",e,n,r)||t.someProp("handleDoubleClick",n=>n(t,e,r))}function _e(t,e,n,o){return ye(t,"handleTripleClickOn",e,n,o)||t.someProp("handleTripleClick",n=>n(t,e,o))||function(t,e,n){if(0!=n.button)return!1;let o=t.state.doc;if(-1==e)return!!o.inlineContent&&(we(t,r.U3.create(o,0,o.content.size),"pointer"),!0);let i=o.resolve(e);for(let e=i.depth+1;e>0;e--){let n=e>i.depth?i.nodeAfter:i.node(e),a=i.before(e);if(n.inlineContent)we(t,r.U3.create(o,a+1,a+1+n.content.size),"pointer");else{if(!r.nh.isSelectable(n))continue;we(t,r.nh.create(o,a),"pointer")}return!0}}(t,n,o)}function ve(t){return Le(t)}de.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=16==n.keyCode||n.shiftKey,!Ee(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!I||!S||13!=n.keyCode))if(229!=n.keyCode&&t.domObserver.forceFlush(),!T||13!=n.keyCode||n.ctrlKey||n.altKey||n.metaKey)t.someProp("handleKeyDown",e=>e(t,n))||Kt(t,n)?n.preventDefault():ue(t,"key");else{let e=Date.now();t.input.lastIOSEnter=e,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==e&&(t.someProp("handleKeyDown",e=>e(t,g(13,"Enter"))),t.input.lastIOSEnter=0)},200)}},de.keyup=(t,e)=>{16==e.keyCode&&(t.input.shiftKey=!1)},de.keypress=(t,e)=>{let n=e;if(Ee(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||L&&n.metaKey)return;if(t.someProp("handleKeyPress",e=>e(t,n)))return void n.preventDefault();let o=t.state.selection;if(!(o instanceof r.U3&&o.$from.sameParent(o.$to))){let e=String.fromCharCode(n.charCode),r=()=>t.state.tr.insertText(e).scrollIntoView();/[\r\n]/.test(e)||t.someProp("handleTextInput",n=>n(t,o.$from.pos,o.$to.pos,e,r))||t.dispatch(r()),n.preventDefault()}};const ke=L?"metaKey":"ctrlKey";ce.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=ve(t),o=Date.now(),i="singleClick";o-t.input.lastClick.time<500&&function(t,e){let n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}(n,t.input.lastClick)&&!n[ke]&&t.input.lastClick.button==n.button&&("singleClick"==t.input.lastClick.type?i="doubleClick":"doubleClick"==t.input.lastClick.type&&(i="tripleClick")),t.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:i,button:n.button};let a=t.posAtCoords(be(n));a&&("singleClick"==i?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new Ce(t,a,n,!!r)):("doubleClick"==i?xe:_e)(t,a.pos,a.inside,n)?n.preventDefault():ue(t,"pointer"))};class Ce{constructor(t,e,n,o){let i,a;if(this.view=t,this.pos=e,this.event=n,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!n[ke],this.allowDefault=n.shiftKey,e.inside>-1)i=t.state.doc.nodeAt(e.inside),a=e.inside;else{let n=t.state.doc.resolve(e.pos);i=n.parent,a=n.depth?n.before():0}const s=o?null:n.target,l=s?t.docView.nearestDesc(s,!0):null;this.target=l&&1==l.nodeDOM.nodeType?l.nodeDOM:null;let{selection:c}=t.state;(0==n.button&&i.type.spec.draggable&&!1!==i.type.spec.selectable||c instanceof r.nh&&c.from<=a&&c.to>a)&&(this.mightDrag={node:i,pos:a,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!C||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),ue(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Mt(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let e=this.pos;this.view.state.doc!=this.startDoc&&(e=this.view.posAtCoords(be(t))),this.updateAllowDefault(t),this.allowDefault||!e?ue(this.view,"pointer"):Ae(this.view,e.pos,e.inside,t,this.selectNode)?t.preventDefault():0==t.button&&(this.flushed||B&&this.mightDrag&&!this.mightDrag.node.isAtom||S&&!this.view.state.selection.visible&&Math.min(Math.abs(e.pos-this.view.state.selection.from),Math.abs(e.pos-this.view.state.selection.to))<=2)?(we(this.view,r.LN.near(this.view.state.doc.resolve(e.pos)),"pointer"),t.preventDefault()):ue(this.view,"pointer")}move(t){this.updateAllowDefault(t),ue(this.view,"pointer"),0==t.buttons&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}function Ee(t,e){return!!t.composing||!!(B&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500)&&(t.input.compositionEndedAt=-2e8,!0)}ce.touchstart=t=>{t.input.lastTouch=Date.now(),ve(t),ue(t,"pointer")},ce.touchmove=t=>{t.input.lastTouch=Date.now(),ue(t,"pointer")},ce.contextmenu=t=>ve(t);const Se=I?5e3:-1;function Me(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>Le(t),e))}function Be(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=function(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function Te(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=function(t,e){for(;;){if(3==t.nodeType&&e)return t;if(1==t.nodeType&&e>0){if("false"==t.contentEditable)return null;e=u(t=t.childNodes[e-1])}else{if(!t.parentNode||f(t))return null;e=a(t),t=t.parentNode}}}(e.focusNode,e.focusOffset),r=function(t,e){for(;;){if(3==t.nodeType&&e<t.nodeValue.length)return t;if(1==t.nodeType&&e<t.childNodes.length){if("false"==t.contentEditable)return null;t=t.childNodes[e],e=0}else{if(!t.parentNode||f(t))return null;e=a(t)+1,t=t.parentNode}}}(e.focusNode,e.focusOffset);if(n&&r&&n!=r){let e=r.pmViewDesc,o=t.domObserver.lastChangedTextNode;if(n==o||r==o)return o;if(!e||!e.isText(r.nodeValue))return r;if(t.input.compositionNode==r){let t=n.pmViewDesc;if(t&&t.isText(n.nodeValue))return r}}return n||r}function Le(t,e=!1){if(!(I&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),Be(t),e||t.docView&&t.docView.dirty){let n=Et(t),r=t.state.selection;return n&&!n.eq(r)?t.dispatch(t.state.tr.setSelection(n)):!t.markCursor&&!e||r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?t.updateState(t.state):t.dispatch(t.state.tr.deleteSelection()),!0}return!1}}de.compositionstart=de.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof r.U3&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(t=>!1===t.type.spec.inclusive)||S&&O&&function(t){let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(!e||1!=e.nodeType||n>=e.childNodes.length)return!1;let r=e.childNodes[n];return 1==r.nodeType&&"false"==r.contentEditable}(t)))t.markCursor=t.state.storedMarks||n.marks(),Le(t,!0),t.markCursor=null;else if(Le(t,!e.selection.empty),C&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let e=t.domSelectionRange();for(let n=e.focusNode,r=e.focusOffset;n&&1==n.nodeType&&0!=r;){let e=r<0?n.lastChild:n.childNodes[r-1];if(!e)break;if(3==e.nodeType){let n=t.domSelection();n&&n.collapse(e,e.nodeValue.length);break}n=e,r=-1}}t.input.composing=!0}Me(t,Se)},de.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionNode=null,t.input.badSafariComposition?t.domObserver.forceFlush():t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,Me(t,20))};const Oe=v&&k<15||T&&R<604;function Ie(t,e,n,r,i){let a=Gt(t,e,n,r,t.state.selection.$from);if(t.someProp("handlePaste",e=>e(t,i,a||o.Ji.empty)))return!0;if(!a)return!1;let s=function(t){return 0==t.openStart&&0==t.openEnd&&1==t.content.childCount?t.content.firstChild:null}(a),l=s?t.state.tr.replaceSelectionWith(s,r):t.state.tr.replaceSelection(a);return t.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function Ne(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}ce.copy=de.cut=(t,e)=>{let n=e,r=t.state.selection,o="cut"==n.type;if(r.empty)return;let i=Oe?null:n.clipboardData,a=r.content(),{dom:s,text:l}=Jt(t,a);i?(n.preventDefault(),i.clearData(),i.setData("text/html",s.innerHTML),i.setData("text/plain",l)):function(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),o=document.createRange();o.selectNodeContents(e),t.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}(t,s),o&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},de.paste=(t,e)=>{let n=e;if(t.composing&&!I)return;let r=Oe?null:n.clipboardData,o=t.input.shiftKey&&45!=t.input.lastKeyCode;r&&Ie(t,Ne(r),r.getData("text/html"),o,n)?n.preventDefault():function(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,r=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let o=t.input.shiftKey&&45!=t.input.lastKeyCode;setTimeout(()=>{t.focus(),r.parentNode&&r.parentNode.removeChild(r),n?Ie(t,r.value,null,o,e):Ie(t,r.textContent,r.innerHTML,o,e)},50)}(t,n)};class Re{constructor(t,e,n){this.slice=t,this.move=e,this.node=n}}const ze=L?"altKey":"ctrlKey";function He(t,e){let n=t.someProp("dragCopies",t=>!t(e));return null!=n?n:!e[ze]}ce.dragstart=(t,e)=>{let n=e,o=t.input.mouseDown;if(o&&o.done(),!n.dataTransfer)return;let i,a=t.state.selection,s=a.empty?null:t.posAtCoords(be(n));if(s&&s.pos>=a.from&&s.pos<=(a instanceof r.nh?a.to-1:a.to));else if(o&&o.mightDrag)i=r.nh.create(t.state.doc,o.mightDrag.pos);else if(n.target&&1==n.target.nodeType){let e=t.docView.nearestDesc(n.target,!0);e&&e.node.type.spec.draggable&&e!=t.docView&&(i=r.nh.create(t.state.doc,e.posBefore))}let l=(i||t.state.selection).content(),{dom:c,text:d,slice:p}=Jt(t,l);(!n.dataTransfer.files.length||!S||M>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Oe?"Text":"text/html",c.innerHTML),n.dataTransfer.effectAllowed="copyMove",Oe||n.dataTransfer.setData("text/plain",d),t.dragging=new Re(p,He(t,n),i)},ce.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)},de.dragover=de.dragenter=(t,e)=>e.preventDefault(),de.drop=(t,e)=>{try{!function(t,e,n){if(!e.dataTransfer)return;let a=t.posAtCoords(be(e));if(!a)return;let s=t.state.doc.resolve(a.pos),l=n&&n.slice;l?t.someProp("transformPasted",e=>{l=e(l,t,!1)}):l=Gt(t,Ne(e.dataTransfer),Oe?null:e.dataTransfer.getData("text/html"),!1,s);let c=!(!n||!He(t,e));if(t.someProp("handleDrop",n=>n(t,e,l||o.Ji.empty,c)))return void e.preventDefault();if(!l)return;e.preventDefault();let d=l?(0,i.Um)(t.state.doc,s.pos,l):s.pos;null==d&&(d=s.pos);let p=t.state.tr;if(c){let{node:t}=n;t?t.replace(p):p.deleteSelection()}let h=p.mapping.map(d),u=0==l.openStart&&0==l.openEnd&&1==l.content.childCount,f=p.doc;u?p.replaceRangeWith(h,h,l.content.firstChild):p.replaceRange(h,h,l);if(p.doc.eq(f))return;let m=p.doc.resolve(h);if(u&&r.nh.isSelectable(l.content.firstChild)&&m.nodeAfter&&m.nodeAfter.sameMarkup(l.content.firstChild))p.setSelection(new r.nh(m));else{let e=p.mapping.map(d);p.mapping.maps[p.mapping.maps.length-1].forEach((t,n,r,o)=>e=o),p.setSelection(Rt(t,m,p.doc.resolve(e)))}t.focus(),t.dispatch(p.setMeta("uiEvent","drop"))}(t,e,t.dragging)}finally{t.dragging=null}},ce.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&Mt(t)},20))},ce.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)},ce.beforeinput=(t,e)=>{if(S&&I&&"deleteContentBackward"==e.inputType){t.domObserver.flushSoon();let{domChangeCount:e}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=e)return;if(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",e=>e(t,g(8,"Backspace"))))return;let{$cursor:n}=t.state.selection;n&&n.pos>0&&t.dispatch(t.state.tr.delete(n.pos-1,n.pos).scrollIntoView())},50)}};for(let t in de)ce[t]=de[t];function Pe(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class De{constructor(t,e){this.toDOM=t,this.spec=e||qe,this.side=this.spec.side||0}map(t,e,n,r){let{pos:o,deleted:i}=t.mapResult(e.from+r,this.side<0?-1:1);return i?null:new Fe(o-n,o-n,this)}valid(){return!0}eq(t){return this==t||t instanceof De&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&Pe(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class $e{constructor(t,e){this.attrs=t,this.spec=e||qe}map(t,e,n,r){let o=t.map(e.from+r,this.spec.inclusiveStart?-1:1)-n,i=t.map(e.to+r,this.spec.inclusiveEnd?1:-1)-n;return o>=i?null:new Fe(o,i,this)}valid(t,e){return e.from<e.to}eq(t){return this==t||t instanceof $e&&Pe(this.attrs,t.attrs)&&Pe(this.spec,t.spec)}static is(t){return t.type instanceof $e}destroy(){}}class je{constructor(t,e){this.attrs=t,this.spec=e||qe}map(t,e,n,r){let o=t.mapResult(e.from+r,1);if(o.deleted)return null;let i=t.mapResult(e.to+r,-1);return i.deleted||i.pos<=o.pos?null:new Fe(o.pos-n,i.pos-n,this)}valid(t,e){let n,{index:r,offset:o}=t.content.findIndex(e.from);return o==e.from&&!(n=t.child(r)).isText&&o+n.nodeSize==e.to}eq(t){return this==t||t instanceof je&&Pe(this.attrs,t.attrs)&&Pe(this.spec,t.spec)}destroy(){}}class Fe{constructor(t,e,n){this.from=t,this.to=e,this.type=n}copy(t,e){return new Fe(t,e,this.type)}eq(t,e=0){return this.type.eq(t.type)&&this.from+e==t.from&&this.to+e==t.to}map(t,e,n){return this.type.map(t,this,e,n)}static widget(t,e,n){return new Fe(t,t,new De(e,n))}static inline(t,e,n,r){return new Fe(t,e,new $e(n,r))}static node(t,e,n,r){return new Fe(t,e,new je(n,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof $e}get widget(){return this.type instanceof De}}const Ue=[],qe={};class We{constructor(t,e){this.local=t.length?t:Ue,this.children=e.length?e:Ue}static create(t,e){return e.length?Je(e,t,0,qe):Ve}find(t,e,n){let r=[];return this.findInner(null==t?0:t,null==e?1e9:e,r,0,n),r}findInner(t,e,n,r,o){for(let i=0;i<this.local.length;i++){let a=this.local[i];a.from<=e&&a.to>=t&&(!o||o(a.spec))&&n.push(a.copy(a.from+r,a.to+r))}for(let i=0;i<this.children.length;i+=3)if(this.children[i]<e&&this.children[i+1]>t){let a=this.children[i]+1;this.children[i+2].findInner(t-a,e-a,n,r+a,o)}}map(t,e,n){return this==Ve||0==t.maps.length?this:this.mapInner(t,e,0,0,n||qe)}mapInner(t,e,n,r,o){let i;for(let a=0;a<this.local.length;a++){let s=this.local[a].map(t,n,r);s&&s.type.valid(e,s)?(i||(i=[])).push(s):o.onRemove&&o.onRemove(this.local[a].spec)}return this.children.length?function(t,e,n,r,o,i,a){let s=t.slice();for(let t=0,e=i;t<n.maps.length;t++){let r=0;n.maps[t].forEach((t,n,o,i)=>{let a=i-o-(n-t);for(let o=0;o<s.length;o+=3){let i=s[o+1];if(i<0||t>i+e-r)continue;let l=s[o]+e-r;n>=l?s[o+1]=t<=l?-2:-1:t>=e&&a&&(s[o]+=a,s[o+1]+=a)}r+=a}),e=n.maps[t].map(e,-1)}let l=!1;for(let e=0;e<s.length;e+=3)if(s[e+1]<0){if(-2==s[e+1]){l=!0,s[e+1]=-1;continue}let c=n.map(t[e]+i),d=c-o;if(d<0||d>=r.content.size){l=!0;continue}let p=n.map(t[e+1]+i,-1)-o,{index:h,offset:u}=r.content.findIndex(d),f=r.maybeChild(h);if(f&&u==d&&u+f.nodeSize==p){let r=s[e+2].mapInner(n,f,c+1,t[e]+i+1,a);r!=Ve?(s[e]=d,s[e+1]=p,s[e+2]=r):(s[e+1]=-2,l=!0)}else l=!0}if(l){let l=function(t,e,n,r,o,i,a){function s(t,e){for(let i=0;i<t.local.length;i++){let s=t.local[i].map(r,o,e);s?n.push(s):a.onRemove&&a.onRemove(t.local[i].spec)}for(let n=0;n<t.children.length;n+=3)s(t.children[n+2],t.children[n]+e+1)}for(let n=0;n<t.length;n+=3)-1==t[n+1]&&s(t[n+2],e[n]+i+1);return n}(s,t,e,n,o,i,a),c=Je(l,r,0,a);e=c.local;for(let t=0;t<s.length;t+=3)s[t+1]<0&&(s.splice(t,3),t-=3);for(let t=0,e=0;t<c.children.length;t+=3){let n=c.children[t];for(;e<s.length&&s[e]<n;)e+=3;s.splice(e,0,c.children[t],c.children[t+1],c.children[t+2])}}return new We(e.sort(Ge),s)}(this.children,i||[],t,e,n,r,o):i?new We(i.sort(Ge),Ue):Ve}add(t,e){return e.length?this==Ve?We.create(t,e):this.addInner(t,e,0):this}addInner(t,e,n){let r,o=0;t.forEach((t,i)=>{let a,s=i+n;if(a=Ze(e,t,s)){for(r||(r=this.children.slice());o<r.length&&r[o]<i;)o+=3;r[o]==i?r[o+2]=r[o+2].addInner(t,a,s+1):r.splice(o,0,i,i+t.nodeSize,Je(a,t,s+1,qe)),o+=3}});let i=Xe(o?Ke(e):e,-n);for(let e=0;e<i.length;e++)i[e].type.valid(t,i[e])||i.splice(e--,1);return new We(i.length?this.local.concat(i).sort(Ge):this.local,r||this.children)}remove(t){return 0==t.length||this==Ve?this:this.removeInner(t,0)}removeInner(t,e){let n=this.children,r=this.local;for(let r=0;r<n.length;r+=3){let o,i=n[r]+e,a=n[r+1]+e;for(let e,n=0;n<t.length;n++)(e=t[n])&&e.from>i&&e.to<a&&(t[n]=null,(o||(o=[])).push(e));if(!o)continue;n==this.children&&(n=this.children.slice());let s=n[r+2].removeInner(o,i+1);s!=Ve?n[r+2]=s:(n.splice(r,3),r-=3)}if(r.length)for(let n,o=0;o<t.length;o++)if(n=t[o])for(let t=0;t<r.length;t++)r[t].eq(n,e)&&(r==this.local&&(r=this.local.slice()),r.splice(t--,1));return n==this.children&&r==this.local?this:r.length||n.length?new We(r,n):Ve}forChild(t,e){if(this==Ve)return this;if(e.isLeaf)return We.empty;let n,r;for(let e=0;e<this.children.length;e+=3)if(this.children[e]>=t){this.children[e]==t&&(n=this.children[e+2]);break}let o=t+1,i=o+e.content.size;for(let t=0;t<this.local.length;t++){let e=this.local[t];if(e.from<i&&e.to>o&&e.type instanceof $e){let t=Math.max(o,e.from)-o,n=Math.min(i,e.to)-o;t<n&&(r||(r=[])).push(e.copy(t,n))}}if(r){let t=new We(r.sort(Ge),Ue);return n?new Ye([t,n]):t}return n||Ve}eq(t){if(this==t)return!0;if(!(t instanceof We)||this.local.length!=t.local.length||this.children.length!=t.children.length)return!1;for(let e=0;e<this.local.length;e++)if(!this.local[e].eq(t.local[e]))return!1;for(let e=0;e<this.children.length;e+=3)if(this.children[e]!=t.children[e]||this.children[e+1]!=t.children[e+1]||!this.children[e+2].eq(t.children[e+2]))return!1;return!0}locals(t){return Qe(this.localsInner(t))}localsInner(t){if(this==Ve)return Ue;if(t.inlineContent||!this.local.some($e.is))return this.local;let e=[];for(let t=0;t<this.local.length;t++)this.local[t].type instanceof $e||e.push(this.local[t]);return e}forEachSet(t){t(this)}}We.empty=new We([],[]),We.removeOverlap=Qe;const Ve=We.empty;class Ye{constructor(t){this.members=t}map(t,e){const n=this.members.map(n=>n.map(t,e,qe));return Ye.from(n)}forChild(t,e){if(e.isLeaf)return We.empty;let n=[];for(let r=0;r<this.members.length;r++){let o=this.members[r].forChild(t,e);o!=Ve&&(o instanceof Ye?n=n.concat(o.members):n.push(o))}return Ye.from(n)}eq(t){if(!(t instanceof Ye)||t.members.length!=this.members.length)return!1;for(let e=0;e<this.members.length;e++)if(!this.members[e].eq(t.members[e]))return!1;return!0}locals(t){let e,n=!0;for(let r=0;r<this.members.length;r++){let o=this.members[r].localsInner(t);if(o.length)if(e){n&&(e=e.slice(),n=!1);for(let t=0;t<o.length;t++)e.push(o[t])}else e=o}return e?Qe(n?e:e.sort(Ge)):Ue}static from(t){switch(t.length){case 0:return Ve;case 1:return t[0];default:return new Ye(t.every(t=>t instanceof We)?t:t.reduce((t,e)=>t.concat(e instanceof We?e:e.members),[]))}}forEachSet(t){for(let e=0;e<this.members.length;e++)this.members[e].forEachSet(t)}}function Xe(t,e){if(!e||!t.length)return t;let n=[];for(let r=0;r<t.length;r++){let o=t[r];n.push(new Fe(o.from+e,o.to+e,o.type))}return n}function Ze(t,e,n){if(e.isLeaf)return null;let r=n+e.nodeSize,o=null;for(let e,i=0;i<t.length;i++)(e=t[i])&&e.from>n&&e.to<r&&((o||(o=[])).push(e),t[i]=null);return o}function Ke(t){let e=[];for(let n=0;n<t.length;n++)null!=t[n]&&e.push(t[n]);return e}function Je(t,e,n,r){let o=[],i=!1;e.forEach((e,a)=>{let s=Ze(t,e,a+n);if(s){i=!0;let t=Je(s,e,n+a+1,r);t!=Ve&&o.push(a,a+e.nodeSize,t)}});let a=Xe(i?Ke(t):t,-n).sort(Ge);for(let t=0;t<a.length;t++)a[t].type.valid(e,a[t])||(r.onRemove&&r.onRemove(a[t].spec),a.splice(t--,1));return a.length||o.length?new We(a,o):Ve}function Ge(t,e){return t.from-e.from||t.to-e.to}function Qe(t){let e=t;for(let n=0;n<e.length-1;n++){let r=e[n];if(r.from!=r.to)for(let o=n+1;o<e.length;o++){let i=e[o];if(i.from!=r.from){i.from<r.to&&(e==t&&(e=t.slice()),e[n]=r.copy(r.from,i.from),tn(e,o,r.copy(i.from,r.to)));break}i.to!=r.to&&(e==t&&(e=t.slice()),e[o]=i.copy(i.from,r.to),tn(e,o+1,i.copy(r.to,i.to)))}}return e}function tn(t,e,n){for(;e<t.length&&Ge(n,t[e])>0;)e++;t.splice(e,0,n)}function en(t){let e=[];return t.someProp("decorations",n=>{let r=n(t.state);r&&r!=Ve&&e.push(r)}),t.cursorWrapper&&e.push(We.create(t.state.doc,[t.cursorWrapper.deco])),Ye.from(e)}const nn={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},rn=v&&k<=11;class on{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class an{constructor(t,e){this.view=t,this.handleDOMChange=e,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new on,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(e=>{for(let t=0;t<e.length;t++)this.queue.push(e[t]);v&&k<=11&&e.some(t=>"childList"==t.type&&t.removedNodes.length||"characterData"==t.type&&t.oldValue.length>t.target.nodeValue.length)?this.flushSoon():B&&t.composing&&e.some(t=>"childList"==t.type&&"TR"==t.target.nodeName)?(t.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),rn&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,nn)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let e=0;e<t.length;e++)this.queue.push(t[e]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(zt(this.view)){if(this.suppressingSelectionUpdates)return Mt(this.view);if(v&&k<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&d(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let e,n=new Set;for(let e=t.focusNode;e;e=s(e))n.add(e);for(let r=t.anchorNode;r;r=s(r))if(n.has(r)){e=r;break}let r=e&&this.view.docView.nearestDesc(e);return r&&r.ignoreMutation({type:"selection",target:3==e.nodeType?e.parentNode:e})?(this.setCurSelection(),!0):void 0}pendingRecords(){if(this.observer)for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let e=this.pendingRecords();e.length&&(this.queue=[]);let n=t.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&zt(t)&&!this.ignoreSelectionChange(n),i=-1,a=-1,s=!1,l=[];if(t.editable)for(let t=0;t<e.length;t++){let n=this.registerMutation(e[t],l);n&&(i=i<0?n.from:Math.min(n.from,i),a=a<0?n.to:Math.max(n.to,a),n.typeOver&&(s=!0))}if(!l.some(t=>"BR"==t.nodeName)||8!=t.input.lastKeyCode&&46!=t.input.lastKeyCode){if(C&&l.length){let e=l.filter(t=>"BR"==t.nodeName);if(2==e.length){let[t,n]=e;t.parentNode&&t.parentNode.parentNode==n.parentNode?n.remove():t.remove()}else{let{focusNode:n}=this.currentSelection;for(let r of e){let e=r.parentNode;!e||"LI"!=e.nodeName||n&&dn(t,n)==e||r.remove()}}}}else for(let t of l)if("BR"==t.nodeName&&t.parentNode){let e=t.nextSibling;for(;e&&1==e.nodeType;){if("false"==e.contentEditable){t.parentNode.removeChild(t);break}e=e.firstChild}}let c=null;i<0&&o&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)<Date.now()-300&&m(n)&&(c=Et(t))&&c.eq(r.LN.near(t.state.doc.resolve(0),1))?(t.input.lastFocus=0,Mt(t),this.currentSelection.set(n),t.scrollToSelection()):(i>-1||o)&&(i>-1&&(t.docView.markDirty(i,a),function(t){if(sn.has(t))return;if(sn.set(t,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)){if(t.requiresGeckoHackNode=C,ln)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),ln=!0}}(t)),t.input.badSafariComposition&&(t.input.badSafariComposition=!1,function(t,e){var n;let{focusNode:r,focusOffset:o}=t.domSelectionRange();for(let i of e)if("TR"==(null===(n=i.parentNode)||void 0===n?void 0:n.nodeName)){let e=i.nextSibling;for(;e&&"TD"!=e.nodeName&&"TH"!=e.nodeName;)e=e.nextSibling;if(e){let n=e;for(;;){let t=n.firstChild;if(!t||1!=t.nodeType||"false"==t.contentEditable||/^(BR|IMG)$/.test(t.nodeName))break;n=t}n.insertBefore(i,n.firstChild),r==i&&t.domSelection().collapse(i,o)}else i.parentNode.removeChild(i)}}(t,l)),this.handleDOMChange(i,a,s,l),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(n)||Mt(t),this.currentSelection.set(n))}registerMutation(t,e){if(e.indexOf(t.target)>-1)return null;let n=this.view.docView.nearestDesc(t.target);if("attributes"==t.type&&(n==this.view.docView||"contenteditable"==t.attributeName||"style"==t.attributeName&&!t.oldValue&&!t.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(t))return null;if("childList"==t.type){for(let n=0;n<t.addedNodes.length;n++){let r=t.addedNodes[n];e.push(r),3==r.nodeType&&(this.lastChangedTextNode=r)}if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(t.target))return{from:n.posBefore,to:n.posAfter};let r=t.previousSibling,o=t.nextSibling;if(v&&k<=11&&t.addedNodes.length)for(let e=0;e<t.addedNodes.length;e++){let{previousSibling:n,nextSibling:i}=t.addedNodes[e];(!n||Array.prototype.indexOf.call(t.addedNodes,n)<0)&&(r=n),(!i||Array.prototype.indexOf.call(t.addedNodes,i)<0)&&(o=i)}let i=r&&r.parentNode==t.target?a(r)+1:0,s=n.localPosFromDOM(t.target,i,-1),l=o&&o.parentNode==t.target?a(o):t.target.childNodes.length;return{from:s,to:n.localPosFromDOM(t.target,l,1)}}return"attributes"==t.type?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:(this.lastChangedTextNode=t.target,{from:n.posAtStart,to:n.posAtEnd,typeOver:t.target.nodeValue==t.oldValue})}}let sn=new WeakMap,ln=!1;function cn(t,e){let n=e.startContainer,r=e.startOffset,o=e.endContainer,i=e.endOffset,a=t.domAtPos(t.state.selection.anchor);return d(a.node,a.offset,o,i)&&([n,r,o,i]=[o,i,n,r]),{anchorNode:n,anchorOffset:r,focusNode:o,focusOffset:i}}function dn(t,e){for(let n=e.parentNode;n&&n!=t.dom;n=n.parentNode){let e=t.docView.nearestDesc(n,!0);if(e&&e.node.isBlock)return n}return null}function pn(t){let e=t.pmViewDesc;if(e)return e.parseRule();if("BR"==t.nodeName&&t.parentNode){if(B&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let t=document.createElement("div");return t.appendChild(document.createElement("li")),{skip:t}}if(t.parentNode.lastChild==t||B&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if("IMG"==t.nodeName&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const hn=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function un(t,e,n,i,a){let s=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let e=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,n=Et(t,e);if(n&&!t.state.selection.eq(n)){if(S&&I&&13===t.input.lastKeyCode&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",e=>e(t,g(13,"Enter"))))return;let r=t.state.tr.setSelection(n);"pointer"==e?r.setMeta("pointer",!0):"key"==e&&r.scrollIntoView(),s&&r.setMeta("composition",s),t.dispatch(r)}return}let l=t.state.doc.resolve(e),c=l.sharedDepth(n);e=l.before(c+1),n=t.state.doc.resolve(n).after(c+1);let d,p,h=t.state.selection,u=function(t,e,n){let r,{node:i,fromOffset:a,toOffset:s,from:l,to:c}=t.docView.parseRange(e,n),d=t.domSelectionRange(),p=d.anchorNode;if(p&&t.dom.contains(1==p.nodeType?p:p.parentNode)&&(r=[{node:p,offset:d.anchorOffset}],m(d)||r.push({node:d.focusNode,offset:d.focusOffset})),S&&8===t.input.lastKeyCode)for(let t=s;t>a;t--){let e=i.childNodes[t-1],n=e.pmViewDesc;if("BR"==e.nodeName&&!n){s=t;break}if(!n||n.size)break}let h=t.state.doc,u=t.someProp("domParser")||o.S4.fromSchema(t.state.schema),f=h.resolve(l),g=null,b=u.parse(i,{topNode:f.parent,topMatch:f.parent.contentMatchAt(f.index()),topOpen:!0,from:a,to:s,preserveWhitespace:"pre"!=f.parent.type.whitespace||"full",findPositions:r,ruleFromNode:pn,context:f});if(r&&null!=r[0].pos){let t=r[0].pos,e=r[1]&&r[1].pos;null==e&&(e=t),g={anchor:t+l,head:e+l}}return{doc:b,sel:g,from:l,to:c}}(t,e,n),f=t.state.doc,b=f.slice(u.from,u.to);8===t.input.lastKeyCode&&Date.now()-100<t.input.lastKeyCodeTime?(d=t.state.selection.to,p="end"):(d=t.state.selection.from,p="start"),t.input.lastKeyCode=null;let y=function(t,e,n,r,o){let i=t.findDiffStart(e,n);if(null==i)return null;let{a,b:s}=t.findDiffEnd(e,n+t.size,n+e.size);if("end"==o){r-=a+Math.max(0,i-Math.min(a,s))-i}if(a<i&&t.size<e.size){let t=r<=i&&r>=a?i-r:0;i-=t,i&&i<e.size&&gn(e.textBetween(i-1,i+1))&&(i+=t?1:-1),s=i+(s-a),a=i}else if(s<i){let e=r<=i&&r>=s?i-r:0;i-=e,i&&i<t.size&&gn(t.textBetween(i-1,i+1))&&(i+=e?1:-1),a=i+(a-s),s=i}return{start:i,endA:a,endB:s}}(b.content,u.doc.content,u.from,d,p);if(y&&t.input.domChangeCount++,(T&&t.input.lastIOSEnter>Date.now()-225||I)&&a.some(t=>1==t.nodeType&&!hn.test(t.nodeName))&&(!y||y.endA>=y.endB)&&t.someProp("handleKeyDown",e=>e(t,g(13,"Enter"))))return void(t.input.lastIOSEnter=0);if(!y){if(!(i&&h instanceof r.U3&&!h.empty&&h.$head.sameParent(h.$anchor))||t.composing||u.sel&&u.sel.anchor!=u.sel.head){if(u.sel){let e=fn(t,t.state.doc,u.sel);if(e&&!e.eq(t.state.selection)){let n=t.state.tr.setSelection(e);s&&n.setMeta("composition",s),t.dispatch(n)}}return}y={start:h.from,endA:h.to,endB:h.to}}t.state.selection.from<t.state.selection.to&&y.start==y.endB&&t.state.selection instanceof r.U3&&(y.start>t.state.selection.from&&y.start<=t.state.selection.from+2&&t.state.selection.from>=u.from?y.start=t.state.selection.from:y.endA<t.state.selection.to&&y.endA>=t.state.selection.to-2&&t.state.selection.to<=u.to&&(y.endB+=t.state.selection.to-y.endA,y.endA=t.state.selection.to)),v&&k<=11&&y.endB==y.start+1&&y.endA==y.start&&y.start>u.from&&" ย "==u.doc.textBetween(y.start-u.from-1,y.start-u.from+1)&&(y.start--,y.endA--,y.endB--);let w=u.doc.resolveNoCache(y.start-u.from),A=u.doc.resolveNoCache(y.endB-u.from),x=f.resolve(y.start),_=w.sameParent(A)&&w.parent.inlineContent&&x.end()>=y.endA;if((T&&t.input.lastIOSEnter>Date.now()-225&&(!_||a.some(t=>"DIV"==t.nodeName||"P"==t.nodeName))||!_&&w.pos<u.doc.content.size&&(!w.sameParent(A)||!w.parent.inlineContent)&&w.pos<A.pos&&!/\S/.test(u.doc.textBetween(w.pos,A.pos,"","")))&&t.someProp("handleKeyDown",e=>e(t,g(13,"Enter"))))return void(t.input.lastIOSEnter=0);if(t.state.selection.anchor>y.start&&function(t,e,n,r,o){if(n-e<=o.pos-r.pos||mn(r,!0,!1)<o.pos)return!1;let i=t.resolve(e);if(!r.parent.isTextblock){let t=i.nodeAfter;return null!=t&&n==e+t.nodeSize}if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let a=t.resolve(mn(i,!0,!0));return!(!a.parent.isTextblock||a.pos>n||mn(a,!0,!1)<n)&&r.parent.content.cut(r.parentOffset).eq(a.parent.content)}(f,y.start,y.endA,w,A)&&t.someProp("handleKeyDown",e=>e(t,g(8,"Backspace"))))return void(I&&S&&t.domObserver.suppressSelectionUpdates());S&&y.endB==y.start&&(t.input.lastChromeDelete=Date.now()),I&&!_&&w.start()!=A.start()&&0==A.parentOffset&&w.depth==A.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==y.endA&&(y.endB-=2,A=u.doc.resolveNoCache(y.endB-u.from),setTimeout(()=>{t.someProp("handleKeyDown",function(e){return e(t,g(13,"Enter"))})},20));let C,E=y.start,M=y.endA,B=e=>{let n=e||t.state.tr.replace(E,M,u.doc.slice(y.start-u.from,y.endB-u.from));if(u.sel){let e=fn(t,n.doc,u.sel);e&&!(S&&t.composing&&e.empty&&(y.start!=y.endB||t.input.lastChromeDelete<Date.now()-100)&&(e.head==E||e.head==n.mapping.map(M)-1)||v&&e.empty&&e.head==E)&&n.setSelection(e)}return s&&n.setMeta("composition",s),n.scrollIntoView()};if(_)if(w.pos==A.pos){v&&k<=11&&0==w.parentOffset&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>Mt(t),20));let e=B(t.state.tr.delete(E,M)),n=f.resolve(y.start).marksAcross(f.resolve(y.endA));n&&e.ensureMarks(n),t.dispatch(e)}else if(y.endA==y.endB&&(C=function(t,e){let n,r,i,a=t.firstChild.marks,s=e.firstChild.marks,l=a,c=s;for(let t=0;t<s.length;t++)l=s[t].removeFromSet(l);for(let t=0;t<a.length;t++)c=a[t].removeFromSet(c);if(1==l.length&&0==c.length)r=l[0],n="add",i=t=>t.mark(r.addToSet(t.marks));else{if(0!=l.length||1!=c.length)return null;r=c[0],n="remove",i=t=>t.mark(r.removeFromSet(t.marks))}let d=[];for(let t=0;t<e.childCount;t++)d.push(i(e.child(t)));if(o.FK.from(d).eq(t))return{mark:r,type:n}}(w.parent.content.cut(w.parentOffset,A.parentOffset),x.parent.content.cut(x.parentOffset,y.endA-x.start())))){let e=B(t.state.tr);"add"==C.type?e.addMark(E,M,C.mark):e.removeMark(E,M,C.mark),t.dispatch(e)}else if(w.parent.child(w.index()).isText&&w.index()==A.index()-(A.textOffset?0:1)){let e=w.parent.textBetween(w.parentOffset,A.parentOffset),n=()=>B(t.state.tr.insertText(e,E,M));t.someProp("handleTextInput",r=>r(t,E,M,e,n))||t.dispatch(n())}else t.dispatch(B());else t.dispatch(B())}function fn(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:Rt(t,e.resolve(n.anchor),e.resolve(n.head))}function mn(t,e,n){let r=t.depth,o=e?t.end():t.pos;for(;r>0&&(e||t.indexAfter(r)==t.node(r).childCount);)r--,o++,e=!1;if(n){let e=t.node(r).maybeChild(t.indexAfter(r));for(;e&&!e.isLeaf;)e=e.firstChild,o++}return o}function gn(t){if(2!=t.length)return!1;let e=t.charCodeAt(0),n=t.charCodeAt(1);return e>=56320&&e<=57343&&n>=55296&&n<=56319}class bn{constructor(t,e){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new he,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=e,this.state=e.state,this.directPlugins=e.plugins||[],this.directPlugins.forEach(_n),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):"function"==typeof t?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=An(this),wn(this),this.nodeViews=xn(this),this.docView=dt(this.state.doc,yn(this),en(this),this.dom,this),this.domObserver=new an(this,(t,e,n,r)=>un(this,t,e,n,r)),this.domObserver.start(),function(t){for(let e in ce){let n=ce[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=e=>{!ge(t,e)||me(t,e)||!t.editable&&e.type in de||n(t,e)},pe[e]?{passive:!0}:void 0)}B&&t.dom.addEventListener("input",()=>null),fe(t)}(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let e in t)this._props[e]=t[e];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&fe(this);let e=this._props;this._props=t,t.plugins&&(t.plugins.forEach(_n),this.directPlugins=t.plugins),this.updateStateInner(t.state,e)}setProps(t){let e={};for(let t in this._props)e[t]=this._props[t];e.state=this.state;for(let n in t)e[n]=t[n];this.update(e)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,e){var n;let r=this.state,o=!1,i=!1;t.storedMarks&&this.composing&&(Be(this),i=!0),this.state=t;let a=r.plugins!=t.plugins||this._props.plugins!=e.plugins;if(a||this._props.plugins!=e.plugins||this._props.nodeViews!=e.nodeViews){let t=xn(this);(function(t,e){let n=0,r=0;for(let r in t){if(t[r]!=e[r])return!0;n++}for(let t in e)r++;return n!=r})(t,this.nodeViews)&&(this.nodeViews=t,o=!0)}(a||e.handleDOMEvents!=this._props.handleDOMEvents)&&fe(this),this.editable=An(this),wn(this);let s=en(this),l=yn(this),c=r.plugins==t.plugins||r.doc.eq(t.doc)?t.scrollToSelection>r.scrollToSelection?"to selection":"preserve":"reset",p=o||!this.docView.matchesNode(t.doc,l,s);!p&&t.selection.eq(r.selection)||(i=!0);let h="preserve"==c&&i&&null==this.dom.style.overflowAnchor&&function(t){let e,n,r=t.dom.getBoundingClientRect(),o=Math.max(0,r.top);for(let i=(r.left+r.right)/2,a=o+1;a<Math.min(innerHeight,r.bottom);a+=5){let r=t.root.elementFromPoint(i,a);if(!r||r==t.dom||!t.dom.contains(r))continue;let s=r.getBoundingClientRect();if(s.top>=o-20){e=r,n=s.top;break}}return{refDOM:e,refTop:n,stack:$(t.dom)}}(this);if(i){this.domObserver.stop();let e=p&&(v||S)&&!this.composing&&!r.selection.empty&&!t.selection.empty&&function(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}(r.selection,t.selection);if(p){let n=S?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=Te(this)),!o&&this.docView.update(t.doc,l,s,this)||(this.docView.updateOuterDeco(l),this.docView.destroy(),this.docView=dt(t.doc,l,s,this.dom,this)),!n||this.trackWrites&&this.dom.contains(this.trackWrites)||(e=!0)}e||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&function(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return d(e.node,e.offset,n.anchorNode,n.anchorOffset)}(this))?Mt(this,e):(It(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),(null===(n=this.dragging)||void 0===n?void 0:n.node)&&!r.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,r),"reset"==c?this.dom.scrollTop=0:"to selection"==c?this.scrollToSelection():h&&function({refDOM:t,refTop:e,stack:n}){let r=t?t.getBoundingClientRect().top:0;j(n,0==r?0:r-e)}(h)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(t&&this.dom.contains(1==t.nodeType?t:t.parentNode))if(this.someProp("handleScrollToSelection",t=>t(this)));else if(this.state.selection instanceof r.nh){let e=this.docView.domAfterPos(this.state.selection.from);1==e.nodeType&&D(this,e.getBoundingClientRect(),t)}else D(this,this.coordsAtPos(this.state.selection.head,1),t);else;}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(t&&t.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let e=0;e<this.pluginViews.length;e++){let n=this.pluginViews[e];n.update&&n.update(this,t)}else{this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let t=0;t<this.directPlugins.length;t++){let e=this.directPlugins[t];e.spec.view&&this.pluginViews.push(e.spec.view(this))}for(let t=0;t<this.state.plugins.length;t++){let e=this.state.plugins[t];e.spec.view&&this.pluginViews.push(e.spec.view(this))}}}updateDraggedNode(t,e){let n=t.node,o=-1;if(n.from<this.state.doc.content.size&&this.state.doc.nodeAt(n.from)==n.node)o=n.from;else{let t=n.from+(this.state.doc.content.size-e.doc.content.size);(t>0&&t<this.state.doc.content.size&&this.state.doc.nodeAt(t))==n.node&&(o=t)}this.dragging=new Re(t.slice,t.move,o<0?void 0:r.nh.create(this.state.doc,o))}someProp(t,e){let n,r=this._props&&this._props[t];if(null!=r&&(n=e?e(r):r))return n;for(let r=0;r<this.directPlugins.length;r++){let o=this.directPlugins[r].props[t];if(null!=o&&(n=e?e(o):o))return n}let o=this.state.plugins;if(o)for(let r=0;r<o.length;r++){let i=o[r].props[t];if(null!=i&&(n=e?e(i):i))return n}}hasFocus(){if(v){let t=this.root.activeElement;if(t==this.dom)return!0;if(!t||!this.dom.contains(t))return!1;for(;t&&this.dom!=t&&this.dom.contains(t);){if("false"==t.contentEditable)return!1;t=t.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&function(t){if(t.setActive)return t.setActive();if(F)return t.focus(F);let e=$(t);t.focus(null==F?{get preventScroll(){return F={preventScroll:!0},!0}}:void 0),F||(F=!1,j(e,0))}(this.dom),Mt(this),this.domObserver.start()}get root(){let t=this._root;if(null==t)for(let t=this.dom.parentNode;t;t=t.parentNode)if(9==t.nodeType||11==t.nodeType&&t.host)return t.getSelection||(Object.getPrototypeOf(t).getSelection=()=>t.ownerDocument.getSelection()),this._root=t;return t||document}updateRoot(){this._root=null}posAtCoords(t){return V(this,t)}coordsAtPos(t,e=1){return K(this,t,e)}domAtPos(t,e=0){return this.docView.domFromPos(t,e)}nodeDOM(t){let e=this.docView.descAt(t);return e?e.nodeDOM:null}posAtDOM(t,e,n=-1){let r=this.docView.posFromDOM(t,e,n);if(null==r)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(t,e){return ot(this,e||this.state,t)}pasteHTML(t,e){return Ie(this,"",t,!1,e||new ClipboardEvent("paste"))}pasteText(t,e){return Ie(this,t,null,!0,e||new ClipboardEvent("paste"))}serializeForClipboard(t){return Jt(this,t)}destroy(){this.docView&&(!function(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],en(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,l=null)}get isDestroyed(){return null==this.docView}dispatchEvent(t){return function(t,e){me(t,e)||!ce[e.type]||!t.editable&&e.type in de||ce[e.type](t,e)}(this,t)}domSelectionRange(){let t=this.domSelection();return t?B&&11===this.root.nodeType&&function(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}(this.dom.ownerDocument)==this.dom&&function(t,e){if(e.getComposedRanges){let n=e.getComposedRanges(t.root)[0];if(n)return cn(t,n)}let n;function r(t){t.preventDefault(),t.stopImmediatePropagation(),n=t.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",r,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",r,!0),n?cn(t,n):null}(this,t)||t:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function yn(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if("function"==typeof n&&(n=n(t.state)),n)for(let t in n)"class"==t?e.class+=" "+n[t]:"style"==t?e.style=(e.style?e.style+";":"")+n[t]:e[t]||"contenteditable"==t||"nodeName"==t||(e[t]=String(n[t]))}),e.translate||(e.translate="no"),[Fe.node(0,t.state.doc.content.size,e)]}function wn(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:Fe.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function An(t){return!t.someProp("editable",e=>!1===e(t.state))}function xn(t){let e=Object.create(null);function n(t){for(let n in t)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=t[n])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function _n(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}bn.prototype.dispatch=function(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))}},61919(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n.d(e,{A:()=>a});var o=/^\s+/,i=/\s+$/;function a(t,e){if(e=e||{},(t=t||"")instanceof a)return t;if(!(this instanceof a))return new a(t,e);var n=function(t){var e={r:0,g:0,b:0},n=1,a=null,s=null,l=null,c=!1,d=!1;"string"==typeof t&&(t=function(t){t=t.replace(o,"").replace(i,"").toLowerCase();var e,n=!1;if(v[t])t=v[t],n=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=z.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=z.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=z.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=z.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=z.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=z.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=z.hex8.exec(t))return{r:M(e[1]),g:M(e[2]),b:M(e[3]),a:O(e[4]),format:n?"name":"hex8"};if(e=z.hex6.exec(t))return{r:M(e[1]),g:M(e[2]),b:M(e[3]),format:n?"name":"hex"};if(e=z.hex4.exec(t))return{r:M(e[1]+""+e[1]),g:M(e[2]+""+e[2]),b:M(e[3]+""+e[3]),a:O(e[4]+""+e[4]),format:n?"name":"hex8"};if(e=z.hex3.exec(t))return{r:M(e[1]+""+e[1]),g:M(e[2]+""+e[2]),b:M(e[3]+""+e[3]),format:n?"name":"hex"};return!1}(t));"object"==r(t)&&(H(t.r)&&H(t.g)&&H(t.b)?(p=t.r,h=t.g,u=t.b,e={r:255*E(p,255),g:255*E(h,255),b:255*E(u,255)},c=!0,d="%"===String(t.r).substr(-1)?"prgb":"rgb"):H(t.h)&&H(t.s)&&H(t.v)?(a=T(t.s),s=T(t.v),e=function(t,e,n){t=6*E(t,360),e=E(e,100),n=E(n,100);var r=Math.floor(t),o=t-r,i=n*(1-e),a=n*(1-o*e),s=n*(1-(1-o)*e),l=r%6,c=[n,a,i,i,s,n][l],d=[s,n,n,a,i,i][l],p=[i,i,s,n,n,a][l];return{r:255*c,g:255*d,b:255*p}}(t.h,a,s),c=!0,d="hsv"):H(t.h)&&H(t.s)&&H(t.l)&&(a=T(t.s),l=T(t.l),e=function(t,e,n){var r,o,i;function a(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=E(t,360),e=E(e,100),n=E(n,100),0===e)r=o=i=n;else{var s=n<.5?n*(1+e):n+e-n*e,l=2*n-s;r=a(l,s,t+1/3),o=a(l,s,t),i=a(l,s,t-1/3)}return{r:255*r,g:255*o,b:255*i}}(t.h,a,l),c=!0,d="hsl"),t.hasOwnProperty("a")&&(n=t.a));var p,h,u;return n=C(n),{ok:c,format:t.format||d,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function s(t,e,n){t=E(t,255),e=E(e,255),n=E(n,255);var r,o,i=Math.max(t,e,n),a=Math.min(t,e,n),s=(i+a)/2;if(i==a)r=o=0;else{var l=i-a;switch(o=s>.5?l/(2-i-a):l/(i+a),i){case t:r=(e-n)/l+(e<n?6:0);break;case e:r=(n-t)/l+2;break;case n:r=(t-e)/l+4}r/=6}return{h:r,s:o,l:s}}function l(t,e,n){t=E(t,255),e=E(e,255),n=E(n,255);var r,o,i=Math.max(t,e,n),a=Math.min(t,e,n),s=i,l=i-a;if(o=0===i?0:l/i,i==a)r=0;else{switch(i){case t:r=(e-n)/l+(e<n?6:0);break;case e:r=(n-t)/l+2;break;case n:r=(t-e)/l+4}r/=6}return{h:r,s:o,v:s}}function c(t,e,n,r){var o=[B(Math.round(t).toString(16)),B(Math.round(e).toString(16)),B(Math.round(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function d(t,e,n,r){return[B(L(r)),B(Math.round(t).toString(16)),B(Math.round(e).toString(16)),B(Math.round(n).toString(16))].join("")}function p(t,e){e=0===e?0:e||10;var n=a(t).toHsl();return n.s-=e/100,n.s=S(n.s),a(n)}function h(t,e){e=0===e?0:e||10;var n=a(t).toHsl();return n.s+=e/100,n.s=S(n.s),a(n)}function u(t){return a(t).desaturate(100)}function f(t,e){e=0===e?0:e||10;var n=a(t).toHsl();return n.l+=e/100,n.l=S(n.l),a(n)}function m(t,e){e=0===e?0:e||10;var n=a(t).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-e/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-e/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-e/100*255))),a(n)}function g(t,e){e=0===e?0:e||10;var n=a(t).toHsl();return n.l-=e/100,n.l=S(n.l),a(n)}function b(t,e){var n=a(t).toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,a(n)}function y(t){var e=a(t).toHsl();return e.h=(e.h+180)%360,a(e)}function w(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var n=a(t).toHsl(),r=[a(t)],o=360/e,i=1;i<e;i++)r.push(a({h:(n.h+i*o)%360,s:n.s,l:n.l}));return r}function A(t){var e=a(t).toHsl(),n=e.h;return[a(t),a({h:(n+72)%360,s:e.s,l:e.l}),a({h:(n+216)%360,s:e.s,l:e.l})]}function x(t,e,n){e=e||6,n=n||30;var r=a(t).toHsl(),o=360/n,i=[a(t)];for(r.h=(r.h-(o*e>>1)+720)%360;--e;)r.h=(r.h+o)%360,i.push(a(r));return i}function _(t,e){e=e||6;for(var n=a(t).toHsv(),r=n.h,o=n.s,i=n.v,s=[],l=1/e;e--;)s.push(a({h:r,s:o,v:i})),i=(i+l)%1;return s}a.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,r=this.toRgb();return t=r.r/255,e=r.g/255,n=r.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=C(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=l(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=l(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=s(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=s(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return c(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,n,r,o){var i=[B(Math.round(t).toString(16)),B(Math.round(e).toString(16)),B(Math.round(n).toString(16)),B(L(r))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*E(this._r,255))+"%",g:Math.round(100*E(this._g,255))+"%",b:Math.round(100*E(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*E(this._r,255))+"%, "+Math.round(100*E(this._g,255))+"%, "+Math.round(100*E(this._b,255))+"%)":"rgba("+Math.round(100*E(this._r,255))+"%, "+Math.round(100*E(this._g,255))+"%, "+Math.round(100*E(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(k[c(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+d(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";if(t){var o=a(t);n="#"+d(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return e||!r||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return a(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(f,arguments)},brighten:function(){return this._applyModification(m,arguments)},darken:function(){return this._applyModification(g,arguments)},desaturate:function(){return this._applyModification(p,arguments)},saturate:function(){return this._applyModification(h,arguments)},greyscale:function(){return this._applyModification(u,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(x,arguments)},complement:function(){return this._applyCombination(y,arguments)},monochromatic:function(){return this._applyCombination(_,arguments)},splitcomplement:function(){return this._applyCombination(A,arguments)},triad:function(){return this._applyCombination(w,[3])},tetrad:function(){return this._applyCombination(w,[4])}},a.fromRatio=function(t,e){if("object"==r(t)){var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]="a"===o?t[o]:T(t[o]));t=n}return a(t,e)},a.equals=function(t,e){return!(!t||!e)&&a(t).toRgbString()==a(e).toRgbString()},a.random=function(){return a.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},a.mix=function(t,e,n){n=0===n?0:n||50;var r=a(t).toRgb(),o=a(e).toRgb(),i=n/100;return a({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},a.readability=function(t,e){var n=a(t),r=a(e);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},a.isReadable=function(t,e,n){var r,o,i=a.readability(t,e);switch(o=!1,(r=function(t){var e,n;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==n&&"large"!==n&&(n="small");return{level:e,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},a.mostReadable=function(t,e,n){var r,o,i,s,l=null,c=0;o=(n=n||{}).includeFallbackColors,i=n.level,s=n.size;for(var d=0;d<e.length;d++)(r=a.readability(t,e[d]))>c&&(c=r,l=a(e[d]));return a.isReadable(t,l,{level:i,size:s})||!o?l:(n.includeFallbackColors=!1,a.mostReadable(t,["#fff","#000"],n))};var v=a.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},k=a.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(v);function C(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function E(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function S(t){return Math.min(1,Math.max(0,t))}function M(t){return parseInt(t,16)}function B(t){return 1==t.length?"0"+t:""+t}function T(t){return t<=1&&(t=100*t+"%"),t}function L(t){return Math.round(255*parseFloat(t)).toString(16)}function O(t){return M(t)/255}var I,N,R,z=(N="[\\s|\\(]+("+(I="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?",R="[\\s|\\(]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?",{CSS_UNIT:new RegExp(I),rgb:new RegExp("rgb"+N),rgba:new RegExp("rgba"+R),hsl:new RegExp("hsl"+N),hsla:new RegExp("hsla"+R),hsv:new RegExp("hsv"+N),hsva:new RegExp("hsva"+R),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function H(t){return!!z.CSS_UNIT.exec(t)}},99438(t){"use strict";t.exports={version:"1.0.35"}},74265(t){"use strict";t.exports=JSON.parse('{"expand_all":"Expand all","collapse_all":"Collapse all","ai_element_empty_connect_claude":"Connect Claude to generate this section","ai_connect_intro":"Build this section with Claude โ no code.\\n1. Add the Creaditor connector to Claude (button below).\\n2. Copy the ready prompt and paste it into Claude.","ai_connect_btn":"Connect with Claude","ai_connect_localhost_note":"You\'re on localhost. Claude on the web can\'t reach your local server โ use Claude Desktop, or expose it with a public tunnel (e.g. ngrok).","ai_connect_url_label":"Connection link (paste in Claude)","ai_connect_prompt_btn":"Copy prompt for Claude","ai_connect_link_copied":"Connection link copied โ paste it in Claude\'s connector settings.","ai_connect_prompt_copied":"Prompt copied โ paste it into a Claude chat.","name":"Name","link":"Link","hi_how_are_u":"Hi, how are you?","secureLink":"https link","tel":"Tel","email":"Email","keep_ratio":"Keep ratio","recommended":"Recommended","opengalleryimage":"Open gallery","email_600":"Email design best practices peg the ideal email newsletter width size at 600 pixels. This number has been the standard for many years.","secure_link":"Secure link","items":"Items","moving_from_mailing_list":"Moving from mailing list","links_with_invalid_url":"Links with invalid url","prompt_editor_title":"Create Your Content","generate_content":"Generate Content","creating_magic":"Creating Magic...","images_without_alt":"Images without alt","sms_body_if_needed":"SMS body if needed","whatsapp_body_if_needed":"WhatsApp message if needed","simply:Scratchcard":"Scratch card","image_in_progress":"Image in progress...","text_micro_copy":"Be creative, write something that will make your customers want to click on the button.","jhon_lennon":"Jhon Lennon","jhon_lennon_qoute":"Life is what happens when you\'re busy making other plans","headingText":"Heading text","title_color":"Title Color","button_color":"Color Button","button_background":"Background","start":"Start","end":"End","duration":"Duration","prefix":"Prefix","suffix":"Suffix","separator":"Separator","count-up":"Count up","pie-chart":"Pie chart","edit_data":"Edit Data","bar-chart":"Barchart","cols_color":"Cols Colors","button_radius":"Radius Button","accessories":"Accessories","elements":"Elements","confirm":"Accept","drag_block":"Drag block","what_the_anchor_name":"What the anchor name?","checkbox_on_right_side":"Checkbox on Right?","drag_to_move_click_to_options":"Drag to move, click to options","contact":"Contact","buttons_without_links":"Buttons without links","images_with_default_src":"Images with default src","errors_to_fix":"Errors to fix","expand_image_for_outlook":"Expand image for Outlook","social":"Social Networks","forward_params":"Forward URL parameters","menu_widget":"Menu widget","powered_by_pexels":"Powered by Pexels","bulletColor":"Bullet Color","makeCircle":"Make Circle","twoImages":"Two Images","component_color":"Component Color","close_scheme_locked":"Close scheme locked","open_scheme_locked":"Open scheme locked","threeImages":"Three Images","threeButtons":"Three Buttons","file":"File","auto":"auto","colors":"Colors","iconColor":"Icon color","slientMode":"Slient Mode","dividerColor":"Divider Color","this_is_empty_iframe_start_add_url_link":"This is empty iframe. Start adding url link","openAsModal":"Open image in modal","autoplay":"Autoplay","showAsImage":"show As Image","playInLoop":"play In Loop","addedToFavorite":"Added to Favorites","removedFromFavorite":"Deleted from favorites","removedSuccess":"Successfully deleted","aToZ":"A-Z","zToA":"Z-A","anchorName":"Anchor Name","inputEmptyError":"Fill in the field","savedSuccess":"Saved successfully","createdSuccessfully":"Done successfully","home":"Home","about":"About","position":"Position","scroll":"Scroll","repeat":"Repeat","choose":"Choose","texts":"Texts","home_page":"Home Page","numOneAsFemale":"One","heading":"Title","bigHeading":"Big Title","readMore":"Read More","quick_add":"Quick Add","click_here_to_add":"Click here to add","mediumHeading":"Medium title","smallHeading":"Small title","icons":"Icons","icons_color_images":"Color images","icons_svg_icons":"SVG icons","icons_search_svg_hint":"Search SVG icons.","icons_search_placeholder":"Search icons (e.g. arrow, user, email)โฆ","icons_no_svg_results":"No SVG icons found for this search. Try arrow, user, email.","icons_type_to_search":"Type a search term to find SVG icons (e.g. arrow, user).","icons_no_local_results":"No icons found matching this search.","icons_error_loading":"Error loading","iconSize":"Icon size","color_them_all":"Color them all","loading":"Loadingโฆ","divider":"Divider","bullets":"Bullets","numbered":"Numbering","ok":"OK","newImage":"New Image","newFolder":"New Folder","folders":"Folders","addLinks":"Add link","edit":"editing","rootelement_editor_top_header":"Page Design","block_width":"Block width","page_background":"Page","bgColor_blocks":"Blocks","rootelement_editor_global_colors_heading":"Global colors","openGalleryImage":"Open gallery","clone_element":"Clone element","what_the_url_address":"What the url address?","videoWithArticle":"Video with article","give_name_to_block":"Give name to block","save_block":"Save block","choose_your_duo_date":"Choose your duo date","what_category":"What category?","iamgeWithArticle":"Image with article","imageWithText":"Image with text","no_responsive":"No responsive","BulletsWithImage":"Bulltes with image","SocialNetwork":"Social networks","height:form_field":"Fields height","box-shadow":"Shadow-Fx","ready_blocks":"Blocks","individual_elements":"Individual Elements","connection_lost":"Connection Lost","add_now":"Add Now","error_transactions_not_completed":"TODO:complete_text","form:manage_fields":"Manage The Form","add_new_field":"Add New Field","border_design":"Border Design","number_color":"Numbers Color","twoArticles":"Two article","the_color_of_cols":"The Color Of Cols","the_radius_of_col":"The Radius Of Cols","twoButtons":"Two buttons","show_colons":"Show Colons","my_fields":"My Fields","no_editor:title":"We will add editor to this element soon as possible.","threeArticles":"Three articles","addons_menu:title":"Extra features to enhance your page. Drag one onto a block or section.","sections_menu:title":"Ready-made page sections. Pick one and customize it to fit your design.","Hero โ split with image":"Hero โ split with image","Features โ 3 icon cards":"Features โ 3 icon cards","Testimonial โ centered quote":"Testimonial โ centered quote","backgrounds_menu:title":"Choose a background and drag it onto a block or section.","blocks_menu:title":"Pre-built blocks with multiple elements. Drag one between your blocks or sections.","elements_menu:title":"Drag an element into the canvas, or drop it as a new block.","imageWithBullets":"Image With bullets","undo":"Cancel","redo":"Restore","wide":"Wide","text:button":"What The Button say?","empty_section_info":"This is empty section, Click here to add block and beatiful background.","videos":"Videos","video":"Video","effects":"Effects","aurora":"Aurora","images":"Images","image":"Image","icon":"Icon","giphy":"GIF","giphy_trending":"Trending","giphy_search_tab":"Search","giphy_search_placeholder":"Search GIFs (e.g. happy, celebrationโฆ)","giphy_random_title":"Random GIF","giphy_no_results":"No GIFs found. Try different keywords.","giphy_type_to_search":"Type a keyword and click Search.","giphy_no_available":"No GIFs available.","weight":"Weight","color":"Color","buttons":"Buttons","button":"Button","general":"General","all":"All","myImages":"My Images","uploadSuccess":"Upload complete","fromOldToNew":"Old to new","fromNewToOld":"New To old","download":"Download","quotes":"A Quote","quotesWithText":"Quote with text","delete":"Deletion","anchor":"Anchor","deleteElement":"Delete element","deleteBlock":"Delete block","preview":"Preview","design":"Design","style":"Style","tabs_hint_title":"Tip: switch between tabs","tabs_hint_body":"Use these tabs to move between Settings, Animations, Interactions and Style โ available for every element, including button links.","got_it":"Got it","alignment":"Alignment","horizontal_align":"Horizontal align","vertical_align":"Vertical align","ai":"AI","changeName":"Rename","upload":"Upload Image","noImagesYet":"No images yet","uploadOrPickImages":"Upload an image or browse free stock.","uploading":"Uploading...","verifying":"Verifying...","completed":"Completed!","timeout":"Upload timeout","add":"Add","addons":"Extras","save":"Save","cellSpace":"Cell spacing","search":"Search","ratioLock":"Ratio lock","videoLink":"Video link","settings":"Settings","counterTitle":"Counter title?","folderName":"Folder name","addFolder":"Add folder","add_block":"Add block","counterColor":"Counter color","chooseBlock":"Drag a block","imageEditTitle":"Photo editing","videoEditTitle":"Edit video","size_options":"Size Options","backgroundColor":"Background","backgrounds":"Backgrounds","no_results":"No results found","contactForError":"Report an error","contactForErrorDesc":"Did you come across something unexpected?\\n Click here to report the error","fetureRequest":"Request for additions","pastePageContent":" Paste email content","titleColor":"Title color","agreeToOverride":"I agree to delete the existing content and replace it with copied content.","overridePageContent":"You have chosen to paste the content of another email into this page. \\n The paste will delete the existing content on the page and paste the copied content in its place.","fetureRequestDesc":"Are you missing any feature? \\n Click here to request tools to be added to the editor","copyPageContent":"Copy the contents of the page to another account","copyPageContentDesc":"Click here to copy the page content to your other account","pasteContent":"Paste content from another account","pasteContentDesc":"Click here to paste copied content","generalText":"Here we will write down some general text about our product. This is some general text area completely free","longText":"Here we will write down some general text about our product. This is some general text area that is completely free, you can write here what you feel like as long as it is relevant content.","textBlock":"Text block","timeCounter":"Time counter","counterBlock":"Counter block","bulletBlock":"Bullets block","singleImage":"Single image","allImages":"All images","bulletWithImageBlock":"Bullet with images","header1block":"Main title","bold":"Bold","underline":"Underline","italic":"Italic","strikeThrough":"Strike through","forecolor":"Forecolor","threeCells":"Three cells","twoCells":"Two cells","backcolor":"Background text","fontFamily":"Font","fontWeight":"Font weight","fontSize":"Font size","direction":"Direction","right":"Right","left":"Left","center":"Center","justify":"Justify","unLink":"Unlink","appendImage":"Add an image","appendVideo":"Add an video","blocks":"Blocks","page":"Page","block":"Block","section":"Section","sections:title":"Sections","sections:count":"sections","sections:categories":"Categories","sections:search_placeholder":"Search sectionsโฆ","sections:search_results":"Search results","sections:add_hint":"Drag to add","sections:no_results":"No sections match your search.","sections:try_different_search":"Try a different search term.","sections_cat:all":"All","sections_cat:hero":"Hero","sections_cat:about":"About","sections_cat:services":"Services","sections_cat:pricing":"Pricing","sections_cat:team":"Team","sections_cat:testimonials":"Testimonials","sections_cat:faq":"FAQ","sections_cat:blog":"Blog & Content","sections_cat:cta":"Call to action","sections_cat:footer":"Footer","sections_cat:blank":"Blank","pageSetting":"Page settings","text":"Text","accordion":"Accordion","clear":"Clear","articleTitle":"Article title","Header1Web":"Title","shortText":"Something important that customers need to know","articleMore":"Show more","emoji":"Emoji","smart_change":"Smart change","writing_settings":"Writing","smart_change_description":"Auto-replaces text shortcuts as you type โ :) becomes ๐, <3 becomes โค๏ธ, --\x3e becomes โ. This applies to every text element in the design.","lineHeight":"Line height","textAlign":"Text align","sendTest":"Send test","article":"Article","Duplicate":"Duplicate","component_selected":"Component selected","component_unselected":"Component unselected","add_section":"Add section","remove_block":"Remove block","duplicate_block":"Duplicate block","BulletsWithArticle":"Bullets With Article","sendTestMail":"Send Test Message","blockMenuInfo":"Click on the tag and click again to set it off *","fontNameWholePage":"Whole Page Font name","AddNewAddress":"Add new Input","send":"Send","emailAddress":"Email Address","DragHere":"Drag here","imageSize":"Image size","alignImage":"Align image","fullWidthOnMobile":"Full width on mobile","altText":"Alt text","gallery":"Gallery","padding":"Padding","size":"Size","coming_soon":"Coming Soon","amp":"AMP","coming_soon_amp":"AMP is coming soon!\\nInteractive, app-like emails โ polls, forms, carousels and live content, right inside the inbox.","width":"Width","height":"Height","unit":"Unit","dateAndTime":"Date and Time","hour":"Hour","minutes":"Minute","alignButton":"Align button","main":"Main","favorites":"Favorites","mediaType":"Media type","filter":"Filter","addEmoji":"Add Emoji","addBackcolor":"Add Backcolor","addForcolor":"Add Forecolor","lastColors":"Recent","colorsInPage":"Page colors","openNewTab":"New window","stayOnSamePage":"Same window","desktopMode":"Desktop mode only","addressWithExample":"Address (Example:Petah Tikva,Sibim 18)","maps":"Maps","map":"Map","layout":"Layout","event":"Event","audio":"Audio","addNew":"Add New","animations":"Animations","urlAddress":"Url Address","can_Open_Gallery_With_Double_Click_On_The_Image":"You can open the gallery by Double click on the Image","uploadFile":"Upload File","FileSelection":"File Selection","yes,Create":"Yes, Create","letterSpacing":"Letter Spacing","spacing":"Spacing","advanced":"Advanced","Select_an_element_to_edit_its_properties":"Select a block, button, or text to edit its properties","what_the_phone_number_to_send_msg_to":"What the phone number to send message to","email_body_if_needed":"Email body if needed","what_the_phone_number":"What the phone number to call to","what_the_email_address":"What the email address to send to","active_on-scroll":"Active on scroll","active_on-hover":"Active on mouse over","drag_or_click":"Drag or click","heading-1":"Heading 1","svg-element":"SVG Element","divider-element":"Divider Element","iframe":"Iframe","html-code":"Html Code","video with text":"Video with text","image with text":"Image with text","quotes-block":"quotes block","animation_deleted":"Animation deleted","animation_added":"Animation added","show_on_desktop":"Show on desktop","show_on_mobile":"Show on mobile","show_on_tablet":"Show on tablet","desktop":"Desktop","tablet":"Tablet","mobile":"Mobile","show_element_on":"Show this element on","view_as":"View as","filter_items":"Filter items","show_on":"Show on","properties":"Properties","ID_with_description":"ID (advance)","on_hover":"On mouse over","on_scroll":"On scroll","menu-widget":"Menu widget","setting_section":"Setting section","setting_block":"Setting block","remove_element":"Remove element","drag_element":"Drag element","max_width":"Max width","open_gallery_icons":"Open gallery icons","number_size":"Number size","large":"Large","medium":"Medium","small":"Small","extra-large":"Extra Large","without_radius":"Without radius","design_custom_list":"Design custom list","display_mode":"Display mode","filter_canvas_helper":"Filter canvas by device","description":"Description","title":"Title","keywords":"Keywords","favicon":"Favicon","cancel":"Cancel","standard":"Standard","publish":"Publish","ready_to_publish":"Ready to publish","lets_set_some_seo":"Let\'s set some SEO","seo_title_label":"Page name for search engines and social networks (SEO)","seo_title_placeholder":"Page name as it will appear in search engines","seo_description_label":"Page description for search engine and social network promotion (SEO)","seo_description_placeholder":"This description will appear below the site title in search engines","seo_keywords_label":"Keywords","seo_keywords_placeholder":"For example: gift,woman,gift for woman","seo_generate_tooltip":"Generate with AI","seo_generate_empty":"Add some content to the page first.","seo_generate_failed":"Couldn\'t generate. Please try again.","published":"Published!","publishedSub":"Your site is live.","view_site":"View site","copy_link":"Copy link","link_copied":"Link copied","search_preview_label":"How your page will look on Google","We_are_building_your_page":"We are building your page","fade_in":"Fade in","fade_in_down":"Fade in down","back_in_down":"Back in down","back_in_right":"Back in right","bounce":"Bounce","tada":"Tada!!","saved_theme":"Saved theme","go_back":"Back","open_colorpicker":"Open colorpicker","colors_that_created_from_image":"Colors that created from image","publish_success":"Publish success","open_the_page":"Open the page","close":"Close","title_size":"Title size","ilustrations":"Ilustrations","svg":"SVG","click_to_refresh":"Click to refresh","error_client_disconnected":"Opps! we are disconnected from the server. Please try again later.","connection_error":"Connection error ๐ฑ ","typography":"Typography","more_colors":"All colors","fit_colors":"Harmony","button_submit_form":"Send","get_started":"Get started","design_form":"Design form","input":"Input","placeholder":"Placeholder","default_value":"Default value","required":"Required","form_behavior":"Form behavior","display_inline":"Inline","display_modal":"Modal (popup)","open_delay_seconds":"Delay (seconds)","modal":"Modal","interactions":"Interactions","presets":"Presets","mark_as_modal":"Show as modal","modal_hidden_on_view":"Won\'t show on the published page โ a button opens it as a popup.","modal_name":"Modal name","modal_name_hint":"To show it, go to a button and pick this modal.","popup":"Popup","popup_settings_in_tab":"Popup name and behavior are in the โPopupโ tab.","popup_trigger_label":"When to show","popup_trigger_button":"On button click","popup_trigger_load":"Automatically on load","popup_trigger_delay":"After a delay","popup_trigger_exit":"When leaving the page","popup_delay_label":"Delay (seconds)","surface_page":"Page","surface_modals":"Modals","surface_popups":"Popups","back_to_page":"Back to page","popups_empty_hint":"No popups yet. Click \\"New popup\\" to create one, then design it in the canvas.","popups_instructions":"Design this popup by dragging elements from โAddโ. To show it, go to a button and choose this popup โ it opens as a popup on your page.","popups_connect_hint":"To open a popup, select a button and choose this popup as its action.","new_modal":"New modal","open_modal":"Open a modal","modal_block":"Which block","modal_none":"None","modal_pick_hint":"Pick a block to open as a popup when this button is clicked.","modal_none_hint":"No modal blocks yet. Mark a block as \\"Show as modal\\" in the block settings.","after_submission":"After submission","stay_at_page":"Stay on page","redirect":"Redirect","form:background":"Field background","hidden":"Hidden","form_settings":"Form settings","hidden_field":"Hidden field","advance_setting":"Advanced settings","label":"Label","radio-group":"Radio group","items_in_radio_group":"Items in radio group","add_item":"Add item","textarea":"Textarea","items_in_menu":"Items in menu","checkbox":"Checkbox","send_form_only_if_checked":"Send form only if checked","select_fields_to_edit":"Select fields to edit","url_parameters":"URL parameters","hidden_form_field_info":"Hidden fields are not visible to users but their values are included in form submissions","required_form_field_info":"Users must fill in this field before submitting the form","url_param":"URL parameter","please_wait_downloading_new_version":"Please wait downloading new version","allow_send_form_only_if_checked":"Allow send form only if checked","field_settings":"Field settings","add_field":"Add field","edit_field":"Edit field","field_type":"Field type","input_type":"Input type","param_name":"Parameter name","field_options":"Options","add_option":"Add option","remove_option":"Remove option","field_change_rejected":"Change was not approved","field_name_required":"Name is required","field_param_required":"Parameter name is required","field_input_type_required":"Input type is required","field_options_required":"Add at least one option","field_value":"Value","toggle":"Toggle","dropdown":"Dropdown","number":"Number","inner_blocks":"Center","automations":"Automations","drag_here":"Drag here","advance_options":"Advance Options","copied":"Copied","duplicate_template_code":"Duplicate Template Code","click_to_copy":"Click To Copy","list-check":"Elements","drag_section":"Swap position with another section","card":"Card","list-settings":"Advanced","icons_list_micro_copy":"If a bullet doesn\'t look serious enough, you can use an icon instead.","typography_micro_copy":"Typography your text with the help of the typography settings.","anchor_name_micro_copy":"Name it now, find it later in the link editor.","anchor_free_position":"Free position on canvas","click_to_remove":"Click to remove","create_anchor":"Need Anchor? click here","image_micro_copy":"Click on the button, or dblClick on the image to add an image(but a beautiful one).","after_form_subscribed":"What we Should do after form subscribed","add_user_from_mailinglist_after_subscribed":"Add to mailing list","remove_user_from_mailinglist_after_subscribed":"Remove from mailing list","available_fields":"My fields","add_urlAddress_from_media_site":"Add url from media site","background_fields":"Background fields","label_color":"Label color","make_it_default_value":"Make it default value","show_success_popup":"Show success popup","user_will_redirect_to":"User will redirect to","where_to_redirect":"Where to redirect?","none":"None","my_form":"My form","search_my_fields":"Search my fields","choose_an_option":"Choose an option","checkbox_checked_as_default":"Checked as default","form":"Form","sync_all_forms":"Sync all forms","send_the_data_to":"Send data to URL","color:label":"Text color","field_background":"Field Background","paragraph":"Paragraph","horizontal_shadow_length":"Horizontal Shadow Length","vertical_shadow_length":"Vertical Shadow Length","blur_radius":"Blur Radius","spread_radius":"Spread Radius","shadow_color":"Shadow color","inset":"Inset","box_shadow:info":"Adds shadow effects around an element\'s frame.","design_for_phone":"Mobile Design","design_for_desktop":"Desktop Design","number_example":"05000000","website_example":"www.example.com","email_example":"example@example.com","link_target":"Link Target","open_in_new_tab":"Open in new tab","open_in_same_tab":"Open in same tab","open_in_parent_frame":"Open in parent frame","open_in_top_frame":"Open in top frame","user_menu":"User Menu","send_mail_on_submitted":"Email notification on submit","send_test_emails":"Send Test Emails","attached_files":"Attached Files","make_newsletter_as_event":"Make Newsletter as Event","add_files":"Add Files","max_files_reached":"Maximum number of files reached","make_event":"Make Event","name_and_subject":"Name & Subject","enter_email_addresses":"Enter email addresses (comma or enter to add)","invalid_email_error":"Please enter a valid email address","no_emails_error":"Please add at least one email address","create_event":"Create Event","start_date_time":"Start Date & Time","end_date_time":"End Date & Time","location":"Location","link_optional":"Link (Optional)","save_event":"Save Event","cancel_event":"Cancel Event","confirm_cancel":"Are you sure you want to cancel?","creating_event":"Creating Event...","event_created":"Event Created!","end_after_start_error":"End date/time must be after start date/time","enter_event_location":"Enter event location","enter_event_link":"Enter event link","logout":"Logout","details":"Details","subject":"Subject","subtitle":"Subtitle","enter_subject":"Enter subject","back":"Back","apply":"Apply","crop":"Crop","crop_image":"Crop image","crop_cors_error":"This image canโt be cropped in the browser because itโs served without CORS headers. Re-upload it through the gallery and try again.","automation_settings":"Automation Settings","what_should_happen":"What should happen?","add_to_mailing_list_question":"Add to mailing list?","remove_from_mailing_list_question":"Remove from mailing list?","select_mailing_lists":"Select mailing lists","selected":"Selected","automation_link_preview":"Automation Link","apply_automation":"Apply Automation","sidebarMenu_page_business":"Page & Business","sidebarMenu_transfer_data":"Transfer data","transferData_title":"Settings","transferData_enter_valid_code":"Please enter a valid code","transferData_no_template_data":"No template data in response.","transferData_invalid_template_data":"Invalid template data.","transferData_template_loaded":"Template loaded.","transferData_failed_load_template":"Failed to load template.","transferData_failed_submit_code":"Failed to submit code.","transferData_unexpected_response":"Unexpected response from server.","transferData_failed_generate_code":"Failed to generate code.","transferData_copied":"Copied!","transferData_copy_failed":"Copy failed","transferData_back_to_options":"Back to options","transferData_share_access_code":"Share access code","transferData_create_code_desc":"Create a new code to share with others.","transferData_set_expiration":"Set expiration time","transferData_expiration_help":"Code will stop working after this time.","transferData_1_hour":"1 hour","transferData_24_hours":"24 hours","transferData_7_days":"7 days","transferData_30_days":"30 days","transferData_custom_expiration_label":"Custom expiration date and time","transferData_copy_to_clipboard":"Copy to clipboard","transferData_copy_code":"Copy code","transferData_generating":"Generatingโฆ","transferData_generate_code":"Generate code","transferData_enter_access_code":"Enter access code","transferData_enter_code_desc":"Use an existing code to open a template.","transferData_paste_or_type_code":"Paste or type code","transferData_access_code_label":"Access code","transferData_submitting":"Submittingโฆ","transferData_submit":"Submit","transferData_create_code_heading":"Create a new code to share","transferData_create_code_card_desc":"Generate a unique access code so others can open and use your design as a template.","transferData_enter_code_heading":"Enter an existing access code","transferData_enter_code_card_desc":"Enter the code you received to access and work with a shared design instantly.","transferData_submit_confirm_title":"Load template?","transferData_submit_confirm_message":"Undo and redo will not work after this action, and the current page content will be overridden. Do you want to continue?","transferData_submit_confirm_continue":"Continue","transferData_submit_confirm_cancel":"Cancel","transferData_paste_json_heading":"Paste template JSON","transferData_paste_json_card_desc":"Paste a full template JSON to replace the entire page content at once.","transferData_paste_json":"Paste JSON","transferData_paste_json_desc":"Paste the full template JSON below. It will replace all current page content.","transferData_paste_json_placeholder":"Paste template JSON here","transferData_load":"Load","transferData_enter_valid_json":"Please paste valid JSON","transferData_invalid_json":"The pasted text is not valid JSON.","top_divider":"Top divider","bottom_divider":"Bottom divider","shape":"Shape","slantLeft":"Slant left","slantRight":"Slant right","vShape":"V-shape","triangle":"Triangle","url":"URL","textColor":"Text color","fullscreen":"Fullscreen","both":"Both","flex-start":"Start","flex-end":"End","top":"Top","bottom":"Bottom","links":"Links","default_color_paragraphs":"Paragraphs","default_color_headings":"Headings","default_background_buttons":"Button fill","default_color_buttons":"Button text","primaryColor":"Primary","primaryContrastColor":"Primary alt","secondaryColor":"Secondary","secondaryContrastColor":"Secondary alt","design_pallete":"My color palette","solid":"Solid","gradient":"Gradient","theme":"Theme","color_palettes":"Palettes","gallery_hint":"Click a color to apply it. Bookmark to save.","gradient_presets":"Presets","gradient_stops":"Stops","add_stop":"Add stop","delete_stop":"Delete","background":"Background","svg_color":"Icon color","add_new_element":"Add new element","borderSize":"Border size","root":"Page","col":"Column","inline-image":"Inline image","link_of_button":"Where does the button lead?","choose_backgroundColor":"Choose background color","copy_to_here":"Copy here","new_item":"New item","click_to_add":"","remove":"Remove","font":"Font","template":"Template","justifyContent":"Horizontal align","alignItems":"Vertical align","foreColor":"Text color","marginBottom":"Bottom margin","icon_gallery":"Icon gallery","maxWidth":"Max width","whatTheBtnSays":"What does the button say?","button_design":"Button design","background:form":"Form background","background:fields":"Fields background","width:form":"Form width","getColorFromImage":"Get colors from image","open_image_editor":"Edit image","font_color":"Font color","icon_color":"Icon color","form:heading":"Let\'s talk, coffee\'s on us!","form:subHeading":"Want to schedule a meeting or just have a question? I\'d love to help! Leave your details and I\'ll get back to you soon","form:placeholder_color":"Placeholder color","borderWidth":"Border width","borderColor":"Border color","shadow":"Shadow","shadow_offset_x":"Horizontal offset","shadow_offset_y":"Vertical offset","shadow_blur":"Blur","shadow_spread":"Spread","padding_top":"Top padding","padding_bottom":"Bottom padding","margin":"Outer margin","spacer":"Spacer","delete_bcakground":"Remove background","edit_background":"Edit background","heading 1":"Heading 1","heading 2":"Heading 2","heading 3":"Heading 3","two images":"Two images","type":"Input type","opacity":"Opacity","backgroundColorAndOpacity":"Background color and opacity","rotate":"Rotate","is_active":"Is active?","where_the_image_link":"Where does the image lead?","is_user_wants_https":"Switch the link to https?","prompt_editor_context":"Consider existing text?","Enter_your_business_name":"Enter your business name","Enter_your_business_type":"Enter your business type","Enter_the_URL_of_the_page":"Enter your page URL","savedLinks":"Saved links","mergeTags":"Merge tags","loadingMore":"Loading more images...","expand_image_for_outlook_description":"Enable to keep the image proportions in Outlook.","prompt_editor_textarea_placeholder":"Describe the image you want to generate","describe_image_prompt_input":"Describe the image you want to generate","image_prompt_editor_description":"We can generate an image based on your description. Click the select button to choose from your gallery, or enter an external image URL.","insert_image":"Select","generate_image":"Generate image","generating":"Working on it...","creating_your_masterpiece":"Creating your image...","he":"Hebrew","en":"English","ar":"Arabic","empty_state":"It\'s quiet here.. shall we start a conversation?","labels":"Labels","add_table":"Add table","newFolderAdded":"Folder added successfully","file_moved_to_new_folder":"File moved to another folder","freeImages":"Free images","choose:":"Choose","searchImages":"Search images","menu":"Menu","delete_and_add":"Add and remove","what_would_u_like_to_link":"What would you like to add?","add_link":"Add link","name_of_nav":"Navigation button name","palletes":"Palettes","savedPalletes":"Saved palettes","savedToMainTab":"Saved to main tab","dashed":"Dashed","sendSms":"Send SMS","sendWhatsapp":"Send WhatsApp","sendEmail":"Send email","add_catchy_subject":"Add a catchy subject","remove_background_movie":"Remove background","remove_background":"Remove background","urlAddressToYoutVimeo":"URL for YouTube or Vimeo","height_in_section":"Height (100 stretches to full screen height)","numbers":"Numbers","titles":"Titles","go_to_edit_mode":"Back to edit mode","titlesStyle":"Titles style","delete_section":"Remove section","numbersStyle":"Numbers style","innerBackgroundColor":"Inner background","radius":"Radius","whereIframeLink":"Where does the iframe point?","whereIsLinkTo":"Where does the link point?","buttonText":"Button text","counterTitle:display":"Show titles","twoCards":"Two cards","threeCards":"Three cards","duo":"Due date","removeBlock":"Remove block","copy":"Copy","save_success":"Saved successfully","need_automations":"Need automation? Click the button. If you can\'t find what you need, we\'d love to hear how we can help.","menu_automations":"Automations menu","saved_successfully":"Action saved successfully","iconDirection":"Icon direction","hasIcon":"Enable icon?","transferData_save_event":"Save event","coming_soon_automations":"Coming soon! We believe you as business owners need an easy life! So we\'re working on an automations menu.","dimensions":"Dimensions","bc_title":"Business context","bc_empty":"No business context yet for this account.","bc_name":"Name","bc_business_name":"Business name","bc_business_type":"Business type","bc_tone":"Tone of voice","bc_tagline":"Tagline","bc_description":"Description","bc_summary":"Summary","bc_industry":"Industry","bc_category":"Category","bc_audience":"Target audience","bc_values":"Values","bc_keywords":"Keywords","bc_products":"Products","bc_services":"Services","bc_website":"Website","bc_domain":"Domain","bc_language":"Language","bc_logo":"Logo","bc_theme":"Brand theme","bc_colors":"Brand colors","bc_primary":"Primary","bc_secondary":"Secondary","bc_accent":"Accent","bc_contacts":"Contacts","bc_socials":"Social links","bc_email":"Email","bc_phone":"Phone","bc_design":"Design style","bc_design_desc":"Design description","bc_image_style":"Image style"}')},53577(t){"use strict";t.exports=JSON.parse('{"expand_all":"ืคืชืืืช ืืืงืืจืืืื","collapse_all":"ืกืืืจืช ืืืงืืจืืืื","gradient_presets":"ืชืื ืืืช ืฆืืข","gradient_stops":"ื ืงืืืืช ืฆืืข","ai_element_empty_connect_claude":"ืืชืืืจื ืโClaude ืืื ืืืฆืืจ ืืช ืืงืืข ืืื","ai_connect_intro":"ืื ื ืืช ืืงืืข ืืื ืขื Claude โ ืืื ืงืื.\\n1. ืืืกืืคื ืืช ืืืืจ Creaditor ืโClaude (ืืืคืชืืจ ืืืื).\\n2. ืืขืชืืงื ืืช ืืืืืขื ืืืืื ื ืืืืืืงื ืืืชื ืโClaude.","ai_connect_btn":"ืืชืืืจื ืโClaude","ai_connect_localhost_note":"ืืชื ืขื localhost. Claude ืืืื ืืจื ื ืื ืืืื ืืืืืข ืืฉืจืช ืืืงืืื โ ืืฉืชืืฉื ืโClaude Desktop, ืื ืืฉืคื ืืช ืืฉืจืช ืืจื ืื ืืจื ืฆืืืืจืืช (ืืืฉื ngrok).","ai_connect_url_label":"ืงืืฉืืจ ืืืืืจ (ืืืืืงื ืโClaude)","ai_connect_prompt_btn":"ืืขืชืงืช ืืืืขื ืโClaude","ai_connect_link_copied":"ืงืืฉืืจ ืืืืืืจ ืืืขืชืง โ ืืืืืงื ืืืชื ืืืืืจืืช ืืืืืจืื ืฉื Claude.","ai_connect_prompt_copied":"ืืืืืขื ืืืขืชืงื โ ืืืืืงื ืืืชื ืืฆืณืื ืฉื Claude.","name":"ืฉื","link":"ืงืืฉืืจ","secureLink":"ืงืืฉืืจ ืืืืืื","tel":"ืืืคืื","email":"ืืืืืื","items":"ืคืจืืืื","confirm":"ืืืฉืืจ","contact":"ืืฆืืจืช ืงืฉืจ","loadingMore":"ืฉืืืฃ ืชืืื ืืช ื ืืกืคืืช...","loading":"ืขืื ืจืืข...","image_in_progress":"ืืชืืื ื ื ืืฆืจืช...","expand_image_for_outlook_description":"ืืื ืฉืืชืืื ื ืชืืฆื ืืชืฉืืืจ ืขื ืคืจืืคืืจืฆืืืช - ืืคืขืืื ืืช ืืฆืณืงืืืงืก ืืื ืืฉืืืจ ืขื ืืืื ืืชืืื ื.","email_600":"ืืคืจืงืืืงืืช ืืืืืืฆืืช ืืขืืฆืื ืืืืืื ืงืืืขืืช ืฉืืืื ืืจืืื ืืืืืืืื ืฉื ื ืืืืืืจ ืืื 600 ืคืืงืกืืื. ืืกืคืจ ืื ืืื ืืกืื ืืจื ืืืฉื ืฉื ืื ืจืืืช.","mergeTags":"ืชืืืืช ืืืืื","simply:Scratchcard":"ืืจืืืก ืืืจืื","is_user_wants_https":"ืืืืืืฃ ืืช ืืงืืฉืืจ ืhttps?","social":"ืจืฉืชืืช ืืืจืชืืืช","prompt_editor_context":"ืืื ืืืชืืืืก ืืืงืกื ืืงืืื?","Enter_your_business_name":"ืืื ืืกื ืืช ืฉื ืืขืกืง ืฉืืื","Enter_your_business_type":"ืืื ืืกื ืืช ืกืื ืืขืกืง ืฉืืื","Enter_the_URL_of_the_page":"ืืื ืืกื ืืช ืืชืืืช ืืืฃ ืฉืืื","secure_link":"ืงืืฉืืจ ืืืืืื","bulletColor":"ืฆืืข ืืืืื","links_with_invalid_url":"ืงืืฉืืจืื ืขื ืืชืืืืช ืื ืชืงืื ืืช","images_without_alt":"ืชืืื ืืช ืืื ืชืืืืจ","savedLinks":"ืงืืฉืืจืื ืฉืืืจืื","sms_body_if_needed":"ืืืฃ ืืืืืขื ืื ื ืืจืฉ","whatsapp_body_if_needed":"ืืืืขืช ืืืืืกืืค ืื ื ืืจืฉ","twoImages":"ืฉืชื ืชืืื ืืช","fourImages":"ืืจืืข ืชืืื ืืช","threeImages":"ืฉืืืฉ ืชืืื ืืช","threeButtons":"ืฉืืืฉื ืืคืชืืจืื","borderSize":"ืขืจืืืช ืืืกืืจืช","file":"ืงืืืฅ","root":"ืืืฃ","col":"ืขืืืื","inline-image":"ืชืืื ื ืคื ืืืืช","link_of_button":"ืืื ืืืคืชืืจ ืืืืื ?","addedToFavorite":"ืืชืืืกืฃ ืืืืขืืคืื","removedFromFavorite":"ื ืืืง ืืืืืขืืคืื","choose_backgroundColor":"ืืืจื ืฆืืข ืจืงืข","removedSuccess":"ื ืืืง ืืืฆืืื","aToZ":"ื-ืช","zToA":"ืช-ื","anchorName":"ืฉื ืืขืืื","inputEmptyError":"ืืฉ ืืืื ืืช ืืฉืื","savedSuccess":"ื ืฉืืจ ืืืฆืืื","createdSuccessfully":"ืืืฆืข ืืืฆืืื","texts":"ืืงืกืืื","numOneAsFemale":"ืืืช","click_here_to_add":"ืืืฆื ืืืืกืคื","heading":"ืืืชืจืช","bigHeading":"ืืืชืจืช ืืืืื","readMore":"ืงืจืื ืขืื","mediumHeading":"ืืืชืจืช ืืื ืื ืืช","smallHeading":"ืืืชืจืช ืงืื ื","icons":"ืืืืงืื ืื","divider":"ืงื ืืคืจืื","bullets":"ืืืืืื","numbered":"ืืกืคืืจ","ok":"ืืืงื","newImage":"ืชืืื ื ืืืฉื","newFolder":"ืชืืงืื ืืืฉื","folders":"ืชืืงืืืช","edit":"ืขืจืืื","article":"ืืืืจ","videoWithArticle":"ืืืืื ืขื ืืืืจ","fit_colors":"ืฆืืขืื ืืชืืืืื","plainSection":"ืืงืืข ืจืืง","iamgeWithArticle":"ืชืืื ื ืขื ืืืืจ","imageWithText":"ืชืืื ื ืขื ืืงืกื","BulletsWithImage":"ืืืืืื ืขื ืชืืื ื","BulletsWithArticle":"ืืืืืื ืขื ืืืืจ","SocialNetwork":"ืจืฉืช ืืืจืชืืช","twoArticles":"ืฉื ื ืืืืจืื","twoButtons":"ืฉื ื ืืคืชืืจืื","threeArticles":"ืฉืืืฉื ืืืืจืื","imageWithBullets":"ืชืืื ื ืขื ืืืืืื","undo":"ืืืืื","redo":"ืืืฆืืข ืืืืฉ","wide":"ืืชืื ืืื ืืืืื","click_to_add":"","videos":"ืกืจืืื ืื","effects":"ืืคืงืืื","aurora":"ืืืืจ","empty_section_info":"ืืื ืืงืืข ืจืืง, ืืืฆื ืืื ืืื ืืืืกืืฃ ืืืืงืื","text:button":"ืื ืืืคืชืืจ ืืืืจ?","video":"ืกืจืืื","images":"ืชืืื ืืช","image":"ืชืืื ื","icon":"ืืืืงืื","giphy":"GIF","giphy_trending":"ืืจื ืื","giphy_search_tab":"ืืืคืืฉ","giphy_search_placeholder":"ืืคืฉ GIF (ืืืฉื ืฉืื, ืืืืืโฆ)","giphy_random_title":"GIF ืืงืจืื","giphy_no_results":"ืื ื ืืฆืื GIF. ื ืกื ืืืืืช ืืคืชื ืืืจืืช.","giphy_type_to_search":"ืืงืื ืืืืช ืืคืชื ืืืืฅ ืืืคืืฉ.","giphy_no_available":"ืืื GIF ืืืื ืื.","weight":"ืขืืื","buttons":"ืืคืชืืจืื","button":"ืืคืชืืจ","general":"ืืืื","all":"ืืื","myImages":"ืืชืืื ืืช ืฉืื","uploadSuccess":"ืืขืืื ืืืฉืืื","fromOldToNew":"ืืืืฉื ืืืืฉ","fromNewToOld":"ืืืืืฉ ืืืฉื","download":"ืืืจืื","quotes":"ืฆืืืื","recommended":"ืืืืืฅ","save_block":"ืฉืืืจืช ืืืืง","what_category":"ืืืืื ืงืืืืจืื?","middle":"ืืืฆืข","give_name_to_block":"ืชื ื ืฉื ืืืืืง","quote":"ืฆืืืื","no_responsive":"ืืืืื ืจืกืคืื ืกืืืืืช","home_page":"ืืฃ ืืืืช","quote | image":"ืฆืืืื | ืชืืื ื","image | quote":"ืชืืื ื | ืฆืืืื","image | card":"ืืจืืืก | ืชืืื ื","card | image":"ืชืืื ื | ืืจืืืก","quotesWithText":"ืฆืืืื ืขื ืืงืกื","delete":"ืืืืงื","anchor":"ืขืืื","drag_section":"ืืืืืคื ืืืงืื ืขื ืืงืืข ืืืจ","drag_block":"ืืืฆื ืืืืืจื ืื ืืจืจื ืืฉื ืืช ืืช ืืืืงืื","remove_block":"ืืกืจืช ืืืืง","duplicate_block":"ืฉืืคืื ืืืืง","deleteElement":"ืืืืงืช ืืืื ื","deleteBlock":"ืืืืงืช ืืืืง","preview":"ืชืฆืืื ืืงืืืื","design":"ืขืืฆืื","style":"ืกืื ืื","tabs_hint_title":"ืืืค: ืืขืืจ ืืื ืืืฉืื ืืืช","tabs_hint_body":"ืืฉืชืืฉื ืืืฉืื ืืืช ืืื ืืขืืืจ ืืื ืืืืจืืช, ืื ืืืฆืืืช, ืืื ืืจืืงืฆืืืช ืืกืื ืื โ ืืืื ืืื ืืืื ื, ืืืื ืงืืฉืืจ ืฉื ืืคืชืืจ.","got_it":"ืืื ืชื","alignment":"ืืืฉืืจ","horizontal_align":"ืืืฉืืจ ืืืคืงื","vertical_align":"ืืืฉืืจ ืื ืื","ai":"AI","changeName":"ืฉืื ืื ืฉื","upload":"ืืขืืืช ืชืืื ื","noImagesYet":"ืืื ืชืืื ืืช ืขืืืื","uploadOrPickImages":"ืืขืื ืชืืื ื ืื ืืืจื ืืชืืื ืืช ืืื ืืืืช.","add":"ืืืกืคื","publish":"ืคืจืกื","addons":"ืชืืกืคืืช","duo":"ืืืขื","position":"ืืืงืื","drag_to_move_click_to_options":"ืืจืืจื ืืืืื, ืืืืฆื ืืืืืจืืช","save":"ืฉืืืจื","repeat":"ืืืืจ","autoplay":"ืืคืขื ืืื","expand_image_for_outlook":"ืืืืืช ืชืืื ื ืืืืืืืืง","errors_to_fix":"ืฉืืืืืช ืืชืืงืื","buttons_without_links":"ืืคืชืืจืื ืืื ืงืืฉืืจ","images_with_default_src":"ืชืืื ืืช ืขื ืืชืืืช ืืืคืืืืืช","urlAddressToYoutVimeo":"ืฉืืจืช ืืชืืืช ืืืืืืื, ืืืืื","add_urlAddress_from_media_site":"ืงืืฉืืจ ืืืฆืื ื","remove_background_movie":"ืืกืจืช ืจืงืข","remove_background":"ืืกืจืช ืจืงืข","playInLoop":"ืืคืขื ืืืืค","height_in_section":"ืืืื, 100 ืืคืจืก ืืื ืืืื ืืืกื ืืืชืื ืืืืฉืืจ","cellSpace":"ืจืืืื ืชื","numbers":"ืืกืคืจืื","titles":"ืืืชืจืืช","go_to_edit_mode":"ืืืจื ืืืฆื ืขืจืืื","auto":"ืืืืืืื","search":"ืืืคืืฉ","showAsImage":"ืืฆื ืืชืืื ื","titlesStyle":"ืขืืฆืื ืืืืชืจืืช","delete_section":"ืืกืจืช ืืงืืข","numbersStyle":"ืขืืฆืื ืืืกืคืจืื","slientMode":"ืืฆื ืืฉืชืง","ratioLock":"ื ืขืืืช ืืืก","choose_your_duo_date":"ืืืจื ืืช ืืืืขื ืืกืืคื","videoLink":"ืงืืฉืืจ ืืกืจืืื","openAsModal":"ืคืชื ืชืืื ื ืืืืื ืฆืฃ","innerBackgroundColor":"ืจืงืข ืคื ืืื","radius":"ืจืืืืก","iconColor":"ืฆืืข ืืืืืงืื ืื","whereIframeLink":"ืืื ืืืืืคืจื ืืืืื?","whereIsLinkTo":"?ืืื ืืงืืฉืืจ ืืืืื","dividerColor":"ืฆืืข ืงื ืืคืจืื","buttonText":"ืืงืกื ืืืคืชืืจ","settings":"ืืืืจืืช","counterTitle":"ืืฆืืช ืืืชืจืืช","foreColor":"ืฆืืข ืืืงืกื","colors":"ืฆืืขืื","marginBottom":"ืจืืืื ืชืืชืื","color":"ืฆืืข","openGalleryImage":" ืืืจืืืช ืชืืื ืืช","icon_gallery":"ืืืจืืืช ืืืืงืื ืื","folderName":"ืฉื ืชืืงืื","addFolder":"ืืืกืคืช ืชืืงืื","newFolderAdded":"ืืชืืงืื ืื ืืกืคื ืืืฆืืื","file_moved_to_new_folder":"ืืงืืืฅ ืืืขืืจ ืืชืืงืื ืืืจืช","add_block":"ืืืกืคืช ืืืืง","counterColor":"ืฆืืข ืืืื ื","chooseBlock":"ืืจืืจ ืืืืง","automations":"ืืืืืืฆืืืช","list-settings":"ืืชืงืื","page_background":"ืจืงืข ืืืฃ","bgColor_blocks":"ืจืงืข ืืืืืงืื","create_anchor":"ืฆืจืืืื ืขืืื? ืืืฆื ืคื","copy":"ืืขืชืง","uploading":"ืื ื ืขืืื ืขื ืื!","verifying":"ืจืืข... ืืื ืืืืงืืช ืงืื ืืช","completed":"ืืื... ืกืืืืชื!","timeout":"ืืืคืก! ืื ืืืื ืื ืงืจื ืคื...","copy_to_here":"ืืขืชืงื ืืืื","addLinks":"ืืืกืคืช ืงืืฉืืจ","keep_ratio":"ืฉืืืจืช ืืืก","list-check":"ืืืื ืืื","powered_by_pexels":"ืื ืืชืืื ืืช ืืืชืจ Pexels","image_micro_copy":"ืืืกืืคื ืชืืื ื(ืืื ืืืช ืืคื) ืืืืืฆื ืขื ืืืคืชืืจ, ืื ืืืืฆื ืืคืืื ืขื ืืชืืื ื","typography_micro_copy":"ืกืื ื ืืืืืง ืืช ืืืืื, ืื ืืืื ืื ืืืื ืืขืฆื ืืช ืืืงืกื","icons_list_micro_copy":"ืืืืื ืืืืื ืื ื ืจืื ืจืฆืื ื ืืืืืื, ืืืืืคื ืืืชื ืขื ืืืืงืื ืืขืืฆื ","anchor_name_micro_copy":"ืชื ื ืืขืืื ืฉื ืขืืฉืื, ืืชืืืื ืืืฆืื ืืืชื ืืขืจืืืช ืืงืืฉืืจืื ืืืจ ืื.","anchor_free_position":"ืืืงืื ืืืคืฉื ืขื ืืงื ืืก","click_to_remove":"ืืืฆื ืืื ืืืกืืจ","imageEditTitle":"ืขืจืืืช ืชืืื ื","generate_content":"ืืฆืืจืช ืชืืื","creating_magic":"ืื ื ืืืฆืจ ืืช ืืชืืื ืฉืืื...","address":"ืืชืืืช","prompt_editor_title":"ืืฆืืจืช ืชืืื","prompt_editor_textarea_placeholder":"ืชืืจื ืืช ืืชืืื ื ืฉืืจืฆืื ืื ืืืืฆืจ","block_width":"ืจืืื ืืืืืงืื","describe_image_prompt_input":"ืชืืจื ืืช ืืชืืื ื ืฉืืจืฆืื ืื ืืืืฆืจ","image_prompt_editor_description":"ืื ืื ื ืืืืืื ืืืืฆืจ ืชืืื ื ืืืชืื ืืชืืืืจ ืฉืชืืชืื ืืื, ืืืืืฆื ืขื ืืคืชืืจ ืืืืืจื ืชืืืื ืืืืืจ ืชืืื ื ืืืืจืืืช ืืชืืื ืืช ืฉืืื, ืื ืืืื ืืก ืืชืืืช ืชืืื ื ืฉื ืชืืื ื ืืืฆืื ืืช","insert_image":"ืืืืจื","generate_image":"ืืฆืืจืช ืชืืื ื","generating":"ืื ื ืขืืื ืขื ืื...","creating_your_masterpiece":"ืื ื ืืืฆืจ ืืช ืืชืืื ื ืฉืื...","he":"ืขืืจืืช","en":"ืื ืืืืช","ar":"ืขืจืืืช","empty_state":"ืฉืงื ืคื.. ืฉื ืชืืื ืฉืืื?","videoEditTitle":"ืขืจืืืช ืกืจืืื","backgroundColor":"ืฆืืข ืจืงืข","labels":"ืืืชืจืืช","add_table":"ืืืกืคืช ืืืื","button_design":"ืขืืฆืื ืืืคืชืืจ","background:form":"ืจืงืข ืืืืคืก","background:fields":"ืจืงืข ืืฉืืืช","width:form":"ืจืืื ืืืืคืก","no_editor:title":"ืขืืืื ืื ืืฆืจื ื ืขืจืืื ืืืืื ื ืืื, ืื ืื ื ืขืืืืื ืขื ืื.","addons_menu:title":" ืชืคืจืื ืืชืืกืคืื, ืื ืืืืง ืืืขื ืืื, ืคื ื ืืชื ืืืฆืื ืชืืกืคืื ืืฉืืจืื ืืชืืื ืฉืืื. ืคืืฆ\'ืจืื ื ืืกืคืื ืืขืื ืืงืจืื. ืื ืชืืื ื ืืชื ืืืจืืจ ืืช ืืืืื ื ืืืืืง ืื ืืงืืข ืืืจืืจื ืืืคืฉืืช ืืื ื ืงืืื ืฉืชืจืฆื..","sections_menu:title":"ืชืคืจืื ืืงืืขืื, ืืฆืืจืช ืืงืืข ืืืจืฉืช ืชืฉืืืช ืื ืจืื ืืฆืจืืื ืฉืื, ืื ืื ื ืขืื ืขืืืืื ืขื ืื, ืื ืชืืื ื ืืชื ืืืฆืืจ ืืงืืข ืจืืง.","Hero โ split with image":"ืืืชืจืช ืจืืฉืืช โ ืคืืฆืื ืขื ืชืืื ื","Features โ 3 icon cards":"ืืชืจืื ืืช โ ืฉืืืฉื ืืจืืืกื ืืืืงืื","Testimonial โ centered quote":"ืืืืฆื โ ืฆืืืื ืืืืจืื","backgrounds_menu:title":"ืชืคืจืื ืจืงืขืื, ืืืจื ืจืงืข, ืืื ืืื ืืคื, ืืืจืจื ืืืชื ืืืืืง ืื ืืงืืข.","blocks_menu:title":"ืชืคืจืื ืืืืงืื, ืคื ื ืืชื ืืืฆืื ืงืืืคืืืฆืืืช ืฉื ืืื ืืืื ืืื ืฉืื ืื, ื ืืชื ืืืจืืจ ืืืชื ืืื ืืืืืงืื ืืฉืื ืื ืืืื ืืืงืืขืื ","elements_menu:title":"ืชืคืจืื ืืืื ืืื, ืืจืจื ืืช ืืืืื ื ืืฆื ืืืื ื, ืืชืงืจืื ืืคืื ื ืืื ืืคืชืื ืืชื ืืืฉ, ืื ืคืฉืื ืืชืืช ืืืืืง ืืืฆืืจืช ืืืืง ืืืฉ","size_options":"ืืืืืช","backgrounds":"ืจืงืขืื","no_results":"ืื ื ืืฆืื ืชืืฆืืืช","contactForError":"ืืืื ืขื ืฉืืืื","contactForErrorDesc":"ื ืชืงืืช ืืืชื ืืืืช ืื ืฆืคืืื? \\n ืืืฅ ืืื ืืืืืื ืขื ืชืงืื","fetureRequest":"ืืงืฉื ืืชืืกืคืืช","pastePageContent":" ืืืืงืช ืชืืื ืืืื","titleColor":"ืฆืืข ืืืชืจืช","agreeToOverride":"ืื ื ืืืฉืจ ืืืืืง ืืช ืืชืืื ืืงืืื ืืืืืืืคื ืืชืืื ืฉืืืขืชืง.","overridePageContent":"ืืืจืช ืืืืืืง ืชืืื ืฉื ืืืื ืืืจ ืืชืื ืืืฃ ืื. \\n ืืืืืงื ืชืืืง ืืช ืืชืืื ืืงืืื ืืืฃ ืืชืืืืง ืืืงืืื ืืช ืืชืืื ืฉืืืขืชืง.","fetureRequestDesc":"ืืกืจ ืื ืคืืฆ\'ืจ ืืืฉืื ? \\n ืืืฅ ืืื ืืืงืฉื ืืืืกืคืช ืืืื ืืขืืจื","copyPageContent":"ืืขืชืงืช ืชืืื ืืืฃ ืืืฉืืื ืืืจ","copyPageContentDesc":"ืืืฆื ืืื ืืื ืืืขืชืืง ืืช ืืชืืื ืืืฃ ืืืฉืืื ืืืจ ืฉืืื ืืืฉืืื","pasteContent":"ืืืืงืช ืชืืื ืืืฉืืื ืืืจ","pasteContentDesc":"ืืืฆื ืืื ืืื ืืืืืืง ืชืืื ืืฃ ืฉืืขืชืงื ืืืฉืืื ืืืจ ืฉืืื ืืืฉืืื","generalText":"ืืื ืื ื ื ืจืฉืื ืืช ืืงืกื ืืืื ืืืฉืื ืขื ืืืืฆืจ ืฉืื ื. ืืื ืืืืจ ืืงืกื ืืืื ืืืฉืื ืืืคืฉื ืืืืจื ","longText":"ืืื ืื ื ื ืจืฉืื ืืช ืืงืกื ืืืื ืืืฉืื ืขื ืืืืฆืจ ืฉืื ื. ืืื ืืืืจ ืืงืกื ืืืื ืืืฉืื ืืืคืฉื ืืืืจื, ืืคืฉืจ ืืจืฉืื ืืื ืื ืฉืืชืืฉืง ืืื ืื ืขืื ืืืืืจ ืืชืืื ืืขื ืืื.","textBlock":"ืืืืง ืืงืกื","component_selected":"ื ืืืจ ืืืืง","component_unselected":"ืืืืง ืื ื ืืืจ","countdown":"ืืื ื ืืื","counterBlock":"ืืืืง ืงืืื ืืจ","bulletBlock":"ืืืืง ืืืืืื","singleImage":"ืชืืื ื ืืืืืช","allImages":"ืื ืืชืืื ืืช","add_section":"ืืืกืคืช ืืงืืข","bulletWithImageBlock":"ืืืืง ืืืืืื ืืฆื ืชืืื ื","header1block":"ืืืชืจืช ืจืืฉืืช","bold":"ืืืืฉื","underline":"ืงื ืชืืชืื","italic":"ืืงืกื ื ืืื","strikeThrough":"ืงื ืืืฆื","saved_links":"ืงืืฉืืจืื ืฉืืืจืื","forecolor":"ืฆืืข ืืงืกื","numberColor":"ืฆืืข ืืืกืคืจืื","threeCells":"ืฉืืืฉื ืชืืื","twoCells":"ืฉื ื ืชืืื","backcolor":"ืจืงืข ืืงืกื","fontFamily":"ืืืคื","fontWeight":"ืืฉืงื ืืคืื ื","back":"ืืืืจ","fontSize":"ืืืื ืืืคื","text_micro_copy":"ืืชืื ืฉ\\"ื ืืื ืืืืฆื ืขื ืจืืื.. ืืืืชื? ืฉืชืคื ืืืชื ื (: ","direction":"ืืืืื","right":"ืืืื","left":"ืฉืืื","scroll":"ืืืืื","new_item":"ืคืจืื ืืืฉ","center":"ืืจืื","top":"ืืืขืื","bottom":"ืืืื","next":"ืฉืื ืืื","twoCards":"ืฉื ื ืืจืืืกืื","threeCards":"ืฉืืืฉื ืืจืืืกืื","justify":"ืืชืืื","remove":"ืืกืจื","unLink":"ืืกืจืช ืงืืฉืืจ","appendImage":"ืืืกืคืช ืชืืื ื","appendVideo":"ืืืกืคืช ืกืจืืื","blocks":"ืืืืงืื","page":"ืืฃ","section":"ืืงืืข","sections:title":"ืืงืืขืื","sections:count":"ืืงืืขืื","sections:categories":"ืงืืืืจืืืช","sections:search_placeholder":"ืืืคืืฉ ืืงืืขโฆ","sections:search_results":"ืชืืฆืืืช ืืืคืืฉ","sections:add_hint":"ืืจืจื ืืืืกืคื","sections:no_results":"ืื ื ืืฆืื ืืงืืขืื ืืชืืืืื ืืืืคืืฉ.","sections:try_different_search":"ื ืกื ืืืืช ืืืคืืฉ ืืืจืช.","sections_cat:all":"ืืื","sections_cat:hero":"ืคืชืื","sections_cat:about":"ืืืืืช","sections_cat:services":"ืฉืืจืืชืื","sections_cat:pricing":"ืืืืจืื","sections_cat:team":"ืฆืืืช","sections_cat:testimonials":"ืืืืฆืืช","sections_cat:faq":"ืฉืืืืช ื ืคืืฆืืช","sections_cat:blog":"ืืืื ืืชืืื","sections_cat:cta":"ืงืจืืื ืืคืขืืื","sections_cat:footer":"ืืืชืจืช ืชืืชืื ื","sections_cat:blank":"ืจืืง","block":"ืืืืง","pageSetting":"ืืืืจืืช ืืืฃ","home":"ืืืช","about":"ืืืืืช","text":"ืืงืกื","accordion":"ืืงืืจืืืื","clear":"ื ืืงืื","articleTitle":"ืืืชืจืช ืืืืจ","quick_add":"ืืืกืคื ืืืืจื","Header1Web":"ืืืชืจืช","shortText":"ืืฉืื ืืฉืื ืฉืขื ืืืงืืืืช ืืืขืช","articleMore":"ืืฆื ืขืื","emoji":"ืืืืืืงืื","smart_change":"ืืืืคื ืืืื","writing_settings":"ืืชืืื","smart_change_description":"ืืืืืฃ ืืืืืืืืช ืงืืฆืืจื ืืงืกื ืชืื ืืื ืืงืืื โ โ:)โ ืืืคื ืโ๐, โ<3โ ืืืคื ืโโค๏ธ, โ--\x3eโ ืืืคื ืโโ. ืืืืืจื ืืื ืขื ืื ืจืืืื ืืืงืกื ืืขืืฆืื.","lineHeight":"ืืืื ืฉืืจื","two images":"ืฉืชื ืชืืื ืืช","heading 1":"ืืืชืจืช ืืืืื","heading 2":"ืืืชืจืช ืืื ืื ืืช","heading 3":"ืืืชืจืช ืงืื ื","textAlign":"ืืืืื ืืงืกื","sendTest":"ืฉืืืืช ืืืืงื","Duplicate":"ืฉืืคืื","DragHere":"ืืจืืจ ืคื","imageSize":"ืืืื ืชืืื ื","alignImage":"ืืืงืื ืชืืื ื","fullWidthOnMobile":"ืจืืื ืืื ืืืืืืื","delete_bcakground":"ืืกืจืช ืจืงืข","edit_background":"ืขืจืืืช ืจืงืข","altText":"ืืงืกื ืืืืืคื","gallery":"ืืืจืืื","padding":"ืจืืืื ืคื ืืื","padding_top":"ืจืืืื ืขืืืื","padding_bottom":"ืจืืืื ืชืืชืื","margin":"ืจืืืื ืืืฆืื ื","size":"ืืืื","coming_soon":"ืืืืข ืืงืจืื","amp":"AMP","coming_soon_amp":"AMP ืืืืข ืืงืจืื!\\nืืืืืืืื ืืื ืืจืืงืืืืืื ืืกืื ืื ืืคืืืงืฆืื โ ืกืงืจืื, ืืคืกืื, ืงืจืืกืืืช ืืชืืื ืื, ืืฉืืจืืช ืืชืื ืชืืืช ืืืืืจ.","spacer":"ืกืคืืืกืจ","borderWidth":"ืืืื ืืืืจืืจ","borderColor":"ืฆืืข ืืืืจืืจ","shadow":"ืฆื","shadow_color":"ืฆืืข ืืฆื","shadow_offset_x":"ืืืกื ืืืคืงื","shadow_offset_y":"ืืืกื ืื ืื","shadow_blur":"ืืฉืืืฉ","shadow_spread":"ืคืืืืจ","default_background_buttons":"ืฆืืข ืจืงืข ืืืคืชืืจืื","default_color_buttons":"ืฆืืข ืืงืกื ืืืคืชืืจืื","background":"ืจืงืข","svg_color":"ืฆืืข ืืกืื","width":"ืจืืื","makeCircle":"ืฉืืืจื ืขื ืืชืืื ื ืืขืืืื","add_now":"ืืืกืคื","card":"ืืจืืืกืื","go_back":"ืืืจื ืืืืจื","add_new_element":"ืืืกืคืช ืืืื ื ืืืฉ","what_the_anchor_name":"ืฉื ืืขืืื","form:manage_fields":"ื ืืืื ืืฉืืืช ืืืืคืก","accessories":"ืชืืกืคืืช","jhon_lennon":"ื\'ืื ืื ืื","jhon_lennon_qoute":"ืืืืื ืื ืื ืฉืงืืจื ืืืื ืฉืืชื ืขืกืืง ืืืชืื ื ืชืืื ืืืช ืืืจืืช","headingText":"ืืงืกื ืืืชืจืช","height":"ืืืื","unit":"ืืืืื","rotate":"ืกืืืื","dateAndTime":"ืชืืจืื ืืฉืขืช ืกืืื","hour":"ืฉืขื","is_active":"ืืื ืคืขืื?","where_the_image_link":"ืืื ืืชืืื ื ืืืืืื?","minutes":"ืืงืืช","alignButton":"ืืืงืื ืืคืชืืจ","favorites":"ืืืขืืคืื","main":"ืจืืฉื","type":"ืกืื ืื","opacity":"ืฉืงืืคืืช","backgroundColorAndOpacity":"ืฆืืข ืจืงืข ืืฉืงืืคืืช","mediaType":"ืกืืื ืืืื","filter":"ืกืื ืื","elements":"ืืืื ืืื","freeImages":"ืชืืื ืืช ืืืื ื","choose:":"ืืืืจื","sendTestMail":"ืฉืืืืช ืืืืขืช ืืืืงื","AddNewAddress":"ืืืกืคืช ืืืื ื ืืกืฃ","searchImages":"ืืืคืืฉ ืชืืื ืืช","send":"ืฉืืืื","fontNameWholePage":"ืคืื ื ืืื ืืืฃ","blockMenuInfo":"ืืืฅ ืขื ืืื ืืชืืืืช ืืืืืจื ืืืืืฆื ื ืืกืคืช ืืืืืื *","menu":"ืชืคืจืื","menu_widget":"ืชืคืจืื","emailAddress":"ืืชืืืช ืืืืื","addEmoji":"ืืืกืคืช ืืืืืืงืื","addBackcolor":"ืืืกืคืช ืฆืืข ืจืงืข","addForcolor":"ืืืกืคืช ืฆืืข ืืงืกื","openNewTab":"ืคืชื ืืืื ืืืฉ","stayOnSamePage":"ืืฉืืจ ืืืืชื ืืืฃ","desktopMode":"ืืฆื ืืคืืคื ืืืื","lastColors":"ืฆืืขืื ืืืจืื ืื","colorsInPage":"ืฆืืขืื ืืืฃ","getColorFromImage":"ืืฆืืช ืฆืืขืื ืืชืืื ื","addressWithExample":"ืืชืืืช (ืืืืื: ืคืชื ืชืงืืื, ืืกืืืื 18)","maps":"ืืคืืช","map":"ืืคื","layout":"ืคืจืืกื","animations":"ืื ืืืฆืืืช","close_scheme_locked":"ื ืขื ืกืืืืช ืฆืืขืื","open_scheme_locked":"ืคืชืืืช ืกืืืืช ืฆืืขืื","event":"ืืืจืืข","audio":"ืฉืืข","addNew":"ืืืกืฃ ืืืฉ","delete_and_add":"ืืืกืคื ืืืกืจื","what_would_u_like_to_link":"ืื ืชืจืฆื ืืืืกืืฃ?","add_link":"ืืืกืคืช ืงืืฉืืจ","name_of_nav":"ืฉื ืืคืชืืจ ืื ืืืื","urlAddress":"ืฉืืจืช ืืชืืืช","can_Open_Gallery_With_Double_Click_On_The_Image":" ืคืชืืืช ืืืืจืืื ืขื ืืื ืืืืฆื ืืคืืื ืขื ืืชืืื ื","uploadFile":"ืืขืืื ืฉื ืงืืืฅ ืืืฉ","FileSelection":"ืืืืจืช ืงืืืฅ","this_is_empty_iframe_start_add_url_link":"ืื ืืืืคืจื ืจืืง, ืืืกืืคื ืงืืฉืืจ ืืืชืืืช ืืื ืืจื ื","yes,Create":"ืื, ืฆืืจ ืชืืงืื","letterSpacing":"ืจืืืื ืืื ืืืืชืืืช","spacing":"ืจืืืืืื","solid":"ืืืื","palletes":"ืคืืืื","savedPalletes":"ืคืืืื ืฉืืืจืื","savedToMainTab":"ืฉืืืจ ืืืฉืื ืืช ืจืืฉืืช","dashed":"ืืงืืงื","advanced":"ืืชืงืื","Select_an_element_to_edit_its_properties":"ืืืจื ืืืื ื ืื ืืืฆื ืขื ืืืกืคื ืืื ืืืชืืื ืืืฆืืจ","maxWidth":"ืจืืื ืืงืกืืืื","whatTheBtnSays":"ืื ืืืคืชืืจ ืืืืจ?","sendSms":"ืฉืืืืช ืกืืก","sendWhatsapp":"ืฉืืืืช ืืืืืกืืค","sendEmail":"ืฉืืืืช ืืืื","what_the_url_address":"ืืื ืฉืืจืช ืืืชืืืช ืฉืชืจืฆื ืืืืกืืฃ?","add_catchy_subject":"ืืืกืืคื ื ืืฉื ืงืืื","what_the_email_address":"ืืื ืืืืื ืืฉืื?","what_the_phone_number":"ืืื ืืกืคืจ ืืืืคืื?","what_the_phone_number_to_send_msg":"ืืื ืืกืคืจ ืืืื ืชืฉืื ืืืืืขื?","email_body_if_needed":"ืชืืื ืืืฃ ืืืืื","active_on-scroll":"ืืคืขื ืืืืืื","active_on-hover":"ืืคืขื ืืืฆื ืจืืืืฃ ืขื ืืขืืืจ","drag_or_click":"ืืจืืจื","heading-1":"ืืืชืจืช ืืืืื","svg-element":"ืืืื ื SVG","divider-element":"ืงื ืืคืจืื","iframe":"ืืืืคืจื","html-code":"ืงืื HTML","video with text":"ืืืืื ืขื ืืงืกื","image with text":"ืชืืื ื ืขื ืืงืกื","quotes-block":"ืืืืง ืฆืืืื","animation_deleted":"ืืื ืืืฆืื ื ืืืงื","animation_added":"ืืื ืืืฆืื ื ืืกืคื","show_on_desktop":"ืืฆื ืืืืฉื ืืืื","show_on_mobile":"ืืฆื ืืืืฉืืจ ื ืืื","show_on_tablet":"ืืฆื ืืืืฉืืจ ืืืืื","desktop":"ืืืฉื","tablet":"ืืืืื","mobile":"ื ืืื","show_element_on":"ืืฆื ืืช ืืจืืื ืืืืฉืืจืื","view_as":"ืืฆื ื","filter_items":"ืกื ื ืคืจืืืื","show_on":"ืืฆื ื","properties":"ืืืคืืื ืื","ID_with_description":"ืืืื (ID)","on_hover":"ืืืฆื ืจืืืืฃ ืขื ืืขืืืจ","on_scroll":"ืืืืืื","menu-widget":"ืชืฆืืืช ืชืคืจืื","setting_section":"ืืืืจืืช ืกืงืฉื","setting_block":"ืืืืจืืช ืืืืง","remove_element":"ืืกืจืช ืืืื ื","drag_element":"ืืจืืจืช ืืืื ื","max_width":"ืจืืื ืืงืกืืืื","open_gallery":"ืคืชืืืช ืืืจืื","open_gallery_icons":"ืืืจืืืช ืืืืงืื ืื","number_size":"ืืืื ืืืกืคืจืื","large":"ืืืื","medium":"ืืื ืื ื","small":"ืงืื","extra-large":"ืืืื ืืืื","without_radius":"ืืื ืจืืืืก","design_custom_list":"ืขืืฆืื ืจืฉืืื ืืืชืืืช ืืืฉืืช","display_mode":"ืืืคื ืืฆืื","filter_canvas_helper":"ืกื ื ืชืฆืืื ืืคื ืืืฉืืจ","left-to-element":"ืฉืืื ืืืืื ื","right-to-element":"ืืืื ืืืืื ื","bottom-to-element":"ืืชืืช ืืืืื ื","top-to-element":"ืืขื ืืืืื ื","open-new-cell-from-right":"ืืืกืคื ืืชื ืืืฉ ืืืืื","open-new-cell-from-left":"ืืืกืคื ืืชื ืืืฉ ืืฉืืื","open-new-block-from-bottom":"ืืืกืคื ืืืืืง ืืืฉ ืืชืืช","open-new-block-from-top":"ืืืกืคื ืืืืืง ืืืฉ ืืขืื","description":"ืชืืืืจ","title":"ืืืชืจืช","keywords":"ืืืืืช ืืคืชื","favicon":"ืกืื ืืืฆื","cancel":"ืืืืื","standard":"ืกืื ืืจืื","ready_to_publish":"ืืืื ืืคืจืกืื","lets_set_some_seo":"ืืืื ื ืืกืืฃ ืืื ืืืืจืืช SEO","seo_title_label":"ืฉื ืืืฃ ืืชืฆืืื ืืื ืืขื ืืืคืืฉ ืืืจืฉืชืืช ืืืจืชืืืช (SEO)","seo_title_placeholder":"ืฉื ืืืฃ ืืคื ืฉืืืคืืข ืืื ืืขื ืืืืคืืฉ","seo_description_label":"ืชืืืืจ ืืืฃ ืืงืืืื ืืื ืืขื ืืืคืืฉ ืืืจืฉืชืืช ืืืจืชืืืช (SEO)","seo_description_placeholder":"ืชืืืืจ ืื ืืืคืืข ืืชืืช ืืืืชืจืช ืืืชืจ ืืื ืืขื ืืืืคืืฉ","seo_keywords_label":"ืืืืืช ืืคืชื (keywords)","seo_keywords_placeholder":"ืืืืืื: gift,woman,gift for woman","seo_generate_tooltip":"ืืฆืืจื ืขื AI","seo_generate_empty":"ืืืกืืคื ืชืืื ืืืฃ ืืคื ื ืืืฆืืจื ืขื AI.","seo_generate_failed":"ืื ืืฆืืื ื ืืืฆืืจ. ื ืกื ืฉืื.","published":"ืคืืจืกื!","publishedSub":"ืืืชืจ ืฉืื ืืืืืืจ.","view_site":"ืฆืคืืื ืืืชืจ","copy_link":"ืืขืชืงืช ืงืืฉืืจ","link_copied":"ืืงืืฉืืจ ืืืขืชืง","search_preview_label":"ืื ืืืฃ ืฉืื ืืืคืืข ืืืืื","We_are_building_your_page":"ืื ืื ื ืืื ืื ืืช ืืขืืื ืฉืื","inner_blocks":"ืืจืื ืืืงืืข","drag_here":"ืืจืจื ืืืื","advance_options":"ืืคืฉืจืืืืช ืืชืงืืืืช","duplicate_template_code":"ืงืื ืืฉืืคืื ืชืื ืืช","copied":"ืืืขืชืง","click_to_copy":"ืืืฆื ืืืขืชืงื","fade_in":"ืืืคืขื ืืืจืืชืืช","fade_in_down":"ืืืคืขื ืืืคื ืืื","back_in_down":"ืื ืืกื ืืืืื","back_in_right":"ืื ืืกื ืืืืื","bounce":"ืงืืคืฆื ื","tada":"ืฉืืงืฉืืง","saved_theme":"ืขืืฆืื ืฉืืืจ","open_colorpicker":"ืืืืจื ืฉื ืฆืืข ืืืฉื","colors_that_created_from_image":"ืฆืืขืื ืฉื ืืฆืจื ืืชืืื ื","publish_success":"ืคืจืกืื ืืืฆืข ืืืฆืืื","open_the_page":"ืคืชืืืช ืืขืืื ืืืฃ ืืืฉ","close":"ืกืืืจื","title_size":"ืืืื ืืืชืจืืช","ilustrations":"ืกืืืื","svg":"ืกืื","click_to_refresh":"ืืืืฆื ืืจืขื ืื ืืืฃ","error_client_disconnected":"ืืืคืก! ืืืืืืจ ืืฉืจืช ื ืืชืง, ืืืฆื ืขื ืจืขื ืื ืืืฃ ืืื ืืืืฉืื ืืขืืื, ืื ืชืืื ืงืืื ื ืืช ืื ืชืื ืื ืืื ืื ื ืขืืืืื ืขื ืคืชืจืื ืืืขืื, ืขืื ืกืืืื ืืืืฉื ืขืืืื ืืื ื","connection_error":"ืืืืืืจ ื ืืชืง ๐ฑ, ืืื ืื ืืืื, ืืชืืื ื ืฉืืจ","typography":"ืืืคืืืจืคืื","more_colors":"ืฆืืขืื ื ืืกืคืื","button_submit_form":"ืฉืืืื","get_started":"ืืชืืืื ืขืืฉืื","design_form":"ืขืืฆืื ืืืคืก","form_settings":"ืืืืจืืช ืืืคืก","input":"ืงืื","send_mail_on_submitted":"ืจืืฆืื ืืงืื ืืืื ืืฉืืงืืืืช ื ืจืฉืืื?","placeholder":"ืืงืกื ืคื ืืื ืฉื ืืงืื(ืืืฆื ืืื ืืงืกื)","default_value":"ืขืจื ืืจืืจืช ืืืื","required":"ืืืื","hidden":"ืืืกืชืจ","hidden_field":"ืฉืื ืืืกืชืจ","advance_setting":"ืืืืจืืช ืืชืงืืืืช","label":"ืืืชืจืช","color:label":"ืฆืืข ืืืงืกื","radio-group":"ืงืืืฆืช ืืืฆื ืื","items_in_radio_group":"ืคืจืืืื ืืงืืืฆืช ืืืฆื ืื","add_item":"ืืืกืคืช ืคืจืื","textarea":"ืืงืกื ืืจืื","items_in_menu":"ืคืจืืืื ืืชืคืจืื","checkbox":"ืชืืืช ืกืืืื","height:form_field":"ืืืื ืืฉืืืช","ready_blocks":"ืืืืงืื ืืืื ืื","box-shadow":"ืืคืงื ืฆื","add_new_field":"ืืืกืคืช ืฉืื ืืืฉ","border_design":"ืขืืฆืื ืืกืืจืช","individual_elements":"ืืืื ืืื ืืืืืื","number_color":"ืฆืืข ืืืกืคืจืื","send_form_only_if_checked":"ืฉืืืืช ืืืคืก ืชืชืืคืฉืจ ืจืง ืื ืืกืืื","select_fields_to_edit":"ืืืฆื ืขื ืืืืื ืืื ืืืืคืก ืืขืจืืื","url_parameters":"ืฉื ืคืจืืืจ ืืฉืืืื","the_color_of_cols":"ืฆืืข ืืงืืขื ืืืกืคืจืื","the_radius_of_col":"ืจืืืืก ืงืืขื ืืืกืคืจืื","hidden_form_field_info":"ืฉืื ืฉืื ืืืคืืข ืืืืืฉืื ืืชืฆืืืช ืืืืคืก, ืืฉืืฉ ืืขืืงืจ ืืงืืืช ืขืจืื REF ื UTM ืื ืคืจืืืจืื ืงืืืขืื ืฉืืขืื ืื ืื ืฉืืืคืืขื ืืืืืืืืช ืืฉืืืช ืฉื ืื ืจืฉื ืืืืคืก ืืกืคืฆืืคื ืืืื ืฉืืื ืืืื ืื ืจืืื ืืืชื.","required_form_field_info":"ืฉืื ืฉืื ืจืฉื ืืืืคืก ืืืื ืืืื/ืืกืื ืืืชื ืขื ืื ืช ืืฉืืื ืืช ืืืืคืก, ืืืคืก ืฉืฉืื ืืืื ืื ืืืื ืื ืื ืืฉืื ืืืงืคืืฅ ืืืืขื ืืืืื ืืืืคืก ืฉืืฉืื ืืื ืืืื","url_param":"ืฉื ืคืจืืืจ ืืฉืืืื","show_colons":"ืืืฆืื ื ืงืืืืชืืื ?","please_wait_downloading_new_version":"ืื ื ืืืชืื ื, ืื ืื ื ืืขืืื ืื ืืจืกื ืืืฉื","my_fields":"ืืฉืืืช ืฉืื","allow_send_form_only_if_checked":"ืืคืฉืจ ืืฉืืื ืืืคืก ืจืง ืื ืืกืืื","field_settings":"ืืืืจืืช ืฉืื","add_field":"ืืืกืคืช ืฉืื","edit_field":"ืขืจืืืช ืฉืื","field_type":"ืกืื ืฉืื","input_type":"ืกืื ืงืื","param_name":"ืฉื ืคืจืืืจ","field_options":"ืืคืฉืจืืืืช","add_option":"ืืืกืคืช ืืคืฉืจืืช","remove_option":"ืืกืจืช ืืคืฉืจืืช","field_change_rejected":"ืืฉืื ืื ืื ืืืฉืจ","field_name_required":"ืืฉ ืืืืื ืฉื","field_param_required":"ืืฉ ืืืืื ืฉื ืคืจืืืจ","field_input_type_required":"ืืฉ ืืืืืจ ืกืื ืงืื","field_options_required":"ืืฉ ืืืืกืืฃ ืืคืืืช ืืคืฉืจืืช ืืืช","field_value":"ืขืจื","toggle":"ืืชื","dropdown":"ืจืฉืืื ื ืคืชืืช","number":"ืืกืคืจ","after_form_subscribed":"ืื ืืขืฉืืช ืืืจื ืฉืืืืคืก ื ืฉืื?","add_user_from_mailinglist_after_subscribed":"ืืืืื ืงืืืฆืืช ืืืืืจ ื ืจืฉืื ืืช ืืืงืื ืฉืื ื?","remove_user_from_mailinglist_after_subscribed":"ืืืืื ืงืืืฆืืช ืืืืืจ ื ืกืืจ ืืช ืืืงืื ืฉืื ื ?","available_fields":"ืืฉืืืช ืฉืื","background_fields":"ืจืงืข ืืฉืืืช","label_color":"ืฆืืข ืืืชืจืช ืขืืืื ื","title_color":"ืฆืืข ืืืืชืจืืช","button_color":"ืฆืืข ืืงืกื ืืืคืชืืจ","start":"ืืชืืื","end":"ืกืืื","duration":"ืืฉื","prefix":"ืืคื ื","suffix":"ืืืจื","separator":"ืืคืจืื","count-up":"ืืกืคืจ ืขื","pie-chart":"ืคืื ื ืชืื ืื","edit_data":"ืขืจืืืช ื ืชืื ืื","default_color":"ืฆืืข ืืจืืจืช ืืืื","border_editor":"ืขืจืืืช ืืกืืจืช","moving_from_mailing_list":"ืืืกืคื ืืืกืจื ืืจืฉืืืช ืืืืืจ","coming_soon_automations":"ืืงืจืื! ืื ืื ื ืืืืื ืื ืฉืืชื ืืืชื ืืืขืื ืืืขืืืช ืขืกืงืื ืฆืจืืืื ืืืื ืงืืื! ืืื ืื ืื ื ืขืืืืื ืขื ืชืคืจืื ืืืืืืฆืืืช ืืื ืฉืชืืืื ืืื ืืช ืืืืฆืข ืคืขืืืืช ืื ืืืื ืฉืืชื ืืฉื ืื.","bar-chart":"ืืืืช ืขืืืืืช","cols_color":"ืฆืืขื ืขืืืืืช","button_background":"ืจืงืข ืืืคืชืืจ","template":"ืชืื ืืช","font":"ืืืคื","button_radius":"ืจืืืืก ืืคืชืืจ","justifyContent":"ืืฉืืจ ืืืคืงื","alignItems":"ืืฉืืจ ืื ืื","design_pallete":"ืคืืืืช ืืฆืืขืื ืฉืื","default_color_paragraphs":"ืฆืืข ืืจืืจืช ืืืื ืืคืืกืงืืช","default_color_headings":"ืฆืืข ืืจืืจืช ืืืื ืืืืชืจืืช","rootelement_editor_top_header":"ืฉืื ืื ืืืคื ืืื ืืืืื ืืื ืืืฃ, ืืื ืืืื ืืื ืืืฉืื ืฉืชืืกืืคื","rootelement_editor_global_colors_heading":"ืฆืืขืื ืืืืืืืื","flex-start":"ืืชืืื","primaryColor":"ืฆืืข ืจืืฉื","primaryContrastColor":"ืฆืืข ืจืืฉื ื ืืื","secondaryColor":"ืฆืืข ืืฉื ื","secondaryContrastColor":"ืฆืืข ืืฉื ื ื ืืื","flex-end":"ืกืืื","make_it_default_value":"ืืคืื ืืขืจื ืืจืืจืช ืืืื","show_success_popup":"ืืฆืืช ืคืืคืืค ืืขืช ืืืฆืืื","forward_params":"ืืืขืืืจ ืคืจืืืจืื?","user_will_redirect_to":"ืืืงืื ืืขืืืจ ืืืฃ ืืื","where_to_redirect":"ืืื ืืืขืืืจ ืืช ืืืงืื?","component_color":"ืฆืืข ืืจืืื","none":"ืืื","my_form":"ืืืืคืก ืฉืื","form:placeholder_color":"ืฆืืข ืืืงืกื ืืคื ืืื","search_my_fields":"ืืืคืืฉ ืืฉืืืช ืฉืื","checkbox_on_right_side":"ืฆ\'ืงืืืงืก ืืืืื?","choose_an_option":"ืืืจื ืืืืช ืืืคืฉืจืืืืช ืืืืืช","checkbox_checked_as_default":"ืชืืืช ืกืืืื ืืกืืื ืช ืืืจืืจืช ืืืื","paragraph":"ืคืืกืงื","form_behavior":"ืืชื ืืืืช ืืืืคืก","display_inline":"ืืฉืืืฅ ืืขืืื","display_modal":"ืคืืคืืค","open_delay_seconds":"ืืฉืืื (ืฉื ืืืช)","modal":"ืคืืคืืค","interactions":"ืืื ืืจืืงืฆืืืช","presets":"ืขืืฆืืืื ืืืื ืื","mark_as_modal":"ืืฆื ืืคืืคืืค","modal_hidden_on_view":"ืื ืืืฆื ืืขืืื ืืืคืืจืกื โ ืืคืชืืจ ืืคืชื ืืืชื ืืคืืคืืค.","modal_name":"ืฉื ืืคืืคืืค","modal_name_hint":"ืืื ืืืฆืื ืืืชื, ืขืืจื ืืืคืชืืจ ืืืืจื ืืช ืืคืืคืืค ืืื.","popup":"ืคืืคืืค","popup_settings_in_tab":"ืฉื ืืคืืคืืค ืืืืชื ืืืืช ื ืืฆืืื ืืืฉืื ืืช \\"ืคืืคืืค\\".","popup_trigger_label":"ืืชื ืืืฆืื","popup_trigger_button":"ืืืืืฆื ืขื ืืคืชืืจ","popup_trigger_load":"ืืืืืืืืช ืืืขืื ื","popup_trigger_delay":"ืืืจื ืืฉืืื","popup_trigger_exit":"ืืืฆืืื ืืืขืืื","popup_delay_label":"ืืฉืืื (ืฉื ืืืช)","surface_page":"ืขืืื","surface_modals":"ืคืืคืืคืื","surface_popups":"ืคืืคืืคืื","hi_how_are_u":"ืืื, ืื ืฉืืืื?","back_to_page":"ืืืจื ืืขืืื","popups_empty_hint":"ืขืืืื ืืื ืคืืคืืคืื. ืืืฆื ืขื \\"ืคืืคืืค ืืืฉ\\" ืืื ืืืฆืืจ ืืื, ืืื ืขืฆืื ืืืชื ืืงื ืืก.","popups_instructions":"ืขืฆืื ืืช ืืคืืคืืค ืขื ืืื ืืจืืจืช ืืืื ืืื ื\\"ืืืกืคื\\". ืืื ืืืฆืื ืืืชื, ืขืืจื ืืืคืชืืจ ืืืืจื ืืช ืืคืืคืืค ืืื โ ืืื ืืืคืชื ืืคืืคืืค ืืขืืื.","popups_connect_hint":"ืืื ืืคืชืื ืคืืคืืค, ืืืจื ืืคืชืืจ ืืืืจื ืืช ืืคืืคืืค ืืื ืืคืขืืื ืฉืื.","new_modal":"ืคืืคืืค ืืืฉ","open_modal":"ืคืชืืืช ืคืืคืืค","modal_block":"ืืืื ืืืืง","modal_none":"ืืื","modal_pick_hint":"ืืืจื ืืืืง ืฉืืืคืชื ืืคืืคืืค ืืืืืฆื ืขื ืืืคืชืืจ.","modal_none_hint":"ืืื ืขืืืื ืืืืงืื ืืกืื ืคืืคืืค. ืกืื ื ืืืืง ื\\"ืืฆื ืืคืืคืืค\\" ืืืืืจืืช ืืืืืง.","after_submission":"ืื ืืงืจื ืืืืจ ืืจืฉืื?","stay_at_page":"ื ืฉืืจืื ืืืฃ","redirect":"ืืืขืืจืื ืืืงืื ืืืจ","field_background":"ืจืงืข ืฉืืืช","form:heading":"ืืืื ื ืืืจ, ืืงืคื ืขืืื ื!","form:subHeading":"ืืงืืืขืช ืคืืืฉื ืื ืจืง ืฉืืื? ืืฉืื ืืกืืืข ืืื! ืืฉืืืจื ืคืจืืื ืืืืืืจ ืืืืื ืืืงืื","form:background":"ืฆืืข ืืจืงืข ืฉื ืฉืืืช","connection_lost":"ืืืืืืจ ืืื","error_transactions_not_completed":"ืืืง ืืืคืขืืืืช ืื ืืืฉืืื, ืืืืืง ืืจืืขืื ืืื ืงืืืื ื ืืช ืืืืืข ืืื ืื ื ืขืืืืื ืขื ืฉืืคืืจ ืืืืืื ืืขืืจื","form":"ืืืคืก","sync_all_forms":"ืกื ืืจื ืืช ืื ืืืคืกืื","send_the_data_to":"ืฆืจืืืื ืืฉืืื ืืช ืื ืชืื ืื ืCRM ?","horizontal_shadow_length":"ืืืงืื ืืืืคืงื ืฉื ืืฆื","vertical_shadow_length":"ืืืงืื ืืื ืื ืฉื ืืฆื","blur_radius":"ืืฉืืืฉ ืืฆื","spread_radius":"ืคืจืืกืช ืืฆื","open_image_editor":"ืขืจืืืช ืชืืื ื","inset":"ืืืงืื ืืืฆืื ื ?","box_shadow:info":"ืืืกืืฃ ืืคืงืืื ืฉื ืฆื ืกืืื ืืกืืจืช ืืจืืื.","choose":"ืืืืจื","design_for_phone":"ืขืืฆืื ืื ืืื","design_for_desktop":"ืขืืฆืื ืืืืฉื","number_example":"05000000","website_example":"www.example.com","email_example":"example@example.com","link_target":"ืืขื ืืงืืฉืืจ","open_in_new_tab":"ืคืชื ืืืื ืืืฉ","open_in_same_tab":"ืคืชื ืืืืชื ืืื","open_in_parent_frame":"ืคืชื ืืืกืืจืช ืืืืจื","open_in_top_frame":"ืคืชื ืืืกืืจืช ืืขืืืื ื","_blank":"ืคืชื ืืืื ืืืฉ","_self":"ืคืชื ืืืืชื ืืื","_parent":"ืคืชื ืืืกืืจืช ืืืืจื","_top":"ืคืชื ืืืกืืจืช ืืขืืืื ื","user_menu":"ืชืคืจืื ืืฉืชืืฉ","send_test_emails":"ืฉืืืืช ืืืืื ืืืืงื","attached_files":"ืงืืฆืื ืืฆืืจืคืื","make_newsletter_as_event":"ืืคืื ื ืืืืืืจ ืืืืจืืข","edit_block":"ืขืจืืืช ืืืืง","add_files":"ืืืกืฃ ืงืืฆืื","max_files_reached":"ืืกืคืจ ืืงืืฆืื ืืืงืกืืืื ืืืฉื","make_event":"ืฆืืจ ืืืจืืข","name_and_subject":"ืฉื ืื ืืฉื","enter_email_addresses":"ืืื ืืชืืืืช ืืืื (ืคืกืืง ืื Enter ืืืืกืคื)","invalid_email_error":"ืื ื ืืื ืืชืืืช ืืืื ืชืงืื ื","no_emails_error":"ืื ื ืืืกืฃ ืืคืืืช ืืชืืืช ืืืื ืืืช","create_event":"ืฆืืจ ืืืจืืข","start_date_time":"ืชืืจืื ืืฉืขืช ืืชืืื","end_date_time":"ืชืืจืื ืืฉืขืช ืกืืื","location":"ืืืงืื","link_optional":"ืงืืฉืืจ (ืืืคืฆืืื ืื)","save_event":"ืฉืืืจืช ืืืจืืข","cancel_event":"ืืืืื","font_color":"ืฆืืข ืืืคื","icon_color":"ืฆืืข ืืืืงืื","icons_color_images":"ืชืืื ืืช ืฆืืข","icons_svg_icons":"ืืืืงืื ื SVG","icons_search_svg_hint":"ืืคืฉื ืืืืงืื ื SVG.","icons_search_placeholder":"ืืคืฉื ืืืืงืื ืื (ืืืฉื arrow, user, email)โฆ","icons_no_svg_results":"ืื ื ืืฆืื ืืืืงืื ื SVG. ื ืกื arrow, user, email.","icons_type_to_search":"ืืงืืืื ืืืืช ืืืคืืฉ ืืืฆืืืช ืืืืงืื ื SVG (ืืืฉื arrow, user).","icons_no_local_results":"ืื ื ืืฆืื ืืืืงืื ืื ืืชืืืืื ืืืืคืืฉ.","icons_error_loading":"ืฉืืืื ืืืขืื ื","color_them_all":"ืฆืืข ืืืืื","confirm_cancel":"ืืื ืืชื ืืืื ืฉืืจืฆืื ื ืืืื?","creating_event":"ืืืฆืจ ืืืจืืข...","event_created":"ืืืืจืืข ื ืืฆืจ!","end_after_start_error":"ืชืืจืื/ืฉืขืช ืืกืืื ืืืื ืืืืืช ืืืจื ืชืืจืื/ืฉืขืช ืืืชืืื","enter_event_location":"ืืื ืืืงืื ืืืืจืืข","enter_event_link":"ืืื ืงืืฉืืจ ืืืืจืืข","logout":"ืืฆืืื ืืืขืืจื","details":"ืคืจืืื","subject":"ื ืืฉื","iconDirection":"ืืืืื ืืืืืงืื","subtitle":"ืืืชืจืช ืืฉื ื","hasIcon":"ืืืคืขืื ืืืืงืื?","enter_subject":"ืื ืืืื ื ืืฉื ืืืืื(subject)?","apply":"ืืื","crop":"ืืืชืื","crop_image":"ืืืชืื ืชืืื ื","crop_cors_error":"ืื ื ืืชื ืืืชืื ืืช ืืชืืื ื ืืืคืืคื ืืืืืื ืฉืืื ืืืืฉืช ืืื ืืืชืจืืช CORS. ืืขืื ืืืชื ืืืืฉ ืืจื ืืืืจืื ืื ืกื ืฉืื.","automation_settings":"ืืืืจืืช ืืืืืืฆืื","what_should_happen":"ืืืืืฆื ืขื ืืงืืฉืืจ, ืื ืื ื ื ืกืืจ ืื ื ืืกืืฃ ืืช ืืืฉืชืืฉ ืืงืืืฆืืช ืืืืืืจ ืืืืืช","add_to_mailing_list_question":"ืืืืกืืฃ","remove_from_mailing_list_question":"ืืืกืืจ","select_mailing_lists":"ืืืจื ืจืฉืืืืช ืชืคืืฆื","saved_successfully":"ืืคืขืืื ื ืฉืืจื ืืืฆืืื","need_automations":"ืฆืจืืืื ืืืืืืฆืื? ืืืฆื ืขื ืืืคืชืืจ. ืืืืื ืืื ืชืืฆืื ืื ืฉืืชื ืฆืจืืืื, ื ืฉืื ืืฉืืืข ืืื ื ืืื ืืขืืืจ .","menu_automations":"ืชืคืจืื ืืืืืืฆืืืช","selected":"ื ืืืจื","automation_link_preview":"ืงืืฉืืจ ืืืืืืฆืื","apply_automation":"ืืื ืืืืืืฆืื","sidebarMenu_page_business":"ืขืืื ืขืกืง","sidebarMenu_transfer_data":"ืืขืืจืช ื ืชืื ืื","transferData_title":"ืืืืจืืช","transferData_enter_valid_code":"ื ื ืืืืื ืงืื ืชืงืื","transferData_no_template_data":"ืืื ื ืชืื ื ืชืื ืืช ืืชืฉืืื.","transferData_invalid_template_data":"ื ืชืื ื ืชืื ืืช ืื ืชืงืื ืื.","transferData_template_loaded":"ืืชืื ืืช ื ืืขื ื.","transferData_failed_load_template":"ืืขืื ืช ืืชืื ืืช ื ืืฉืื.","transferData_failed_submit_code":"ืฉืืืืช ืืงืื ื ืืฉืื.","transferData_unexpected_response":"ืชืืืื ืื ืฆืคืืื ืืืฉืจืช.","transferData_failed_generate_code":"ืืฆืืจืช ืืงืื ื ืืฉืื.","transferData_copied":"ืืืขืชืง!","transferData_copy_failed":"ืืืขืชืงื ื ืืฉืื","transferData_back_to_options":"ืืืจื ืืืคืฉืจืืืืช","transferData_share_access_code":"ืฉืืชืืฃ ืงืื ืืืฉื","transferData_create_code_desc":"ืฆืจื ืงืื ืืืฉ ืืฉืืชืืฃ ืขื ืืืจืื.","transferData_set_expiration":"ืืืืจืช ืืื ืชืคืืื","transferData_expiration_help":"ืืงืื ืืคืกืืง ืืขืืื ืืืืจ ืืืขื ืื.","transferData_1_hour":"ืฉืขื","transferData_24_hours":"24 ืฉืขืืช","transferData_7_days":"7 ืืืื","transferData_30_days":"30 ืืื","transferData_custom_expiration_label":"ืชืืจืื ืืฉืขื ืืืชืืืื ืืชืคืืื","transferData_copy_to_clipboard":"ืืขืชืง ืืืื","transferData_copy_code":"ืืขืชืง ืงืื","transferData_generating":"ืืืืฆืจโฆ","transferData_generate_code":"ืืฆืืจืช ืงืื","transferData_enter_access_code":"ืืื ืช ืงืื ืืืฉื","transferData_enter_code_desc":"ืืฉืชืืฉื ืืงืื ืงืืื ืืื ืืคืชืื ืชืื ืืช.","transferData_paste_or_type_code":"ืืืืืงื ืื ืืงืืืื ืงืื","transferData_access_code_label":"ืงืื ืืืฉื","transferData_submitting":"ืขืื ืจืืข...","transferData_submit":"ืฉืืืื","transferData_create_code_heading":"ืืฆืืจืช ืงืื ืืืฉ ืืฉืืชืืฃ ืืชืื ืืช","transferData_create_code_card_desc":"ืฆืจื ืงืื ืืืฉื ืืืืืื ืืื ืฉืืืจืื ืืืืื ืืคืชืื ืืืืฉืชืืฉ ืืขืืฆืื ืฉืืื ืืชืื ืืช.","transferData_enter_code_heading":"ืืื ืช ืงืื ืืืฉื ืงืืื","transferData_enter_code_card_desc":"ืืืื ื ืืช ืืงืื ืฉืงืืืืชื ืืื ืืืฉืช ืืืขืืื ืขื ืขืืฆืื ืืฉืืชืฃ.","transferData_submit_confirm_title":"ืืืขืื ืชืื ืืช?","transferData_submit_confirm_message":"ืืืืื ืืืืฆืืข ืืืืฉ ืื ืืขืืื ืืืืจ ืคืขืืื ืื, ืืชืืื ืืืฃ ืื ืืืื ืืืืืฃ. ืืืืฉืื?","transferData_submit_confirm_continue":"ืืืฉื","transferData_submit_confirm_cancel":"ืืืืื","transferData_paste_json_heading":"ืืืืงืช JSON ืฉื ืชืื ืืช","transferData_paste_json_card_desc":"ืืืืืงื JSON ืืื ืฉื ืชืื ืืช ืืื ืืืืืืฃ ืืช ืื ืชืืื ืืืฃ ืืืช ืืืช.","transferData_paste_json":"ืืืืงืช JSON","transferData_paste_json_desc":"ืืืืืงื ืืืื ืืช ื-JSON ืืืื ืฉื ืืชืื ืืช. ืืื ืืืืืฃ ืืช ืื ืชืืื ืืืฃ ืื ืืืื.","transferData_paste_json_placeholder":"ืืืืืงื ืืื ืืช ื-JSON ืฉื ืืชืื ืืช","transferData_load":"ืืขืื ื","transferData_enter_valid_json":"ื ื ืืืืืืง JSON ืชืงืื","transferData_invalid_json":"ืืืงืกื ืฉืืืืืง ืืื ื JSON ืชืงืื.","top_divider":"ืืืืฆื ืขืืืื ื","bottom_divider":"ืืืืฆื ืชืืชืื ื","shape":"ืฆืืจื","slantLeft":"ืฉืืคืืข ืฉืืืื","slantRight":"ืฉืืคืืข ืืืื ื","vShape":"ืฆืืจืช V","triangle":"ืืฉืืืฉ","url":"ืืชืืืช URL","textColor":"ืฆืืข ืืงืกื","fullscreen":"ืืกื ืืื","both":"ืฉื ืืื","opengalleryimage":"ืคืชืื ืืช ืืืืจืื","iconSize":"ืืืื ืืืืงืื","clone_element":"ืฉืืคืื ืจืืื","timeCounter":"ืืื ื ืืื","what_the_phone_number_to_send_msg_to":"ืื ืืกืคืจ ืืืืคืื ืืฉืืืืช ืืืืืขื","links":"ืงืืฉืืจืื","bc_title":"ืคืจืืคืื ืืขืกืง","bc_empty":"ืขืืืื ืืื ืคืจืืคืื ืขืกืงื ืืืฉืืื ืืื.","bc_name":"ืฉื","bc_business_name":"ืฉื ืืขืกืง","bc_business_type":"ืกืื ืืขืกืง","bc_tone":"ืืื ืืืืืืจ","bc_tagline":"ืกืืืื","bc_description":"ืชืืืืจ","bc_summary":"ืชืงืฆืืจ","bc_industry":"ืชืืื","bc_category":"ืงืืืืจืื","bc_audience":"ืงืื ืืืขื","bc_values":"ืขืจืืื","bc_keywords":"ืืืืืช ืืคืชื","bc_products":"ืืืฆืจืื","bc_services":"ืฉืืจืืชืื","bc_website":"ืืชืจ","bc_domain":"ืืืืืื","bc_language":"ืฉืคื","bc_logo":"ืืืื","bc_theme":"ืขืจืืช ืืืชื","bc_colors":"ืฆืืขื ืืืชื","bc_primary":"ืฆืืข ืจืืฉื","bc_secondary":"ืฆืืข ืืฉื ื","bc_accent":"ืฆืืข ืืืืฉื","bc_contacts":"ืื ืฉื ืงืฉืจ","bc_socials":"ืจืฉืชืืช ืืืจืชืืืช","bc_email":"ืืืืืื","bc_phone":"ืืืคืื","bc_design":"ืกืื ืื ืขืืฆืื","bc_design_desc":"ืชืืืืจ ืืขืืฆืื","bc_image_style":"ืกืื ืื ืชืืื ืืช"}')},8330(t){"use strict";t.exports={rE:"3.0.78"}}},i={};function a(t){var e=i[t];if(void 0!==e)return e.exports;var n=i[t]={id:t,loaded:!1,exports:{}};return o[t].call(n.exports,n,n.exports,a),n.loaded=!0,n.exports}a.m=o,a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,a.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);a.r(o);var i={};t=t||[null,e({}),e([]),e(e)];for(var s=2&r&&n;("object"==typeof s||"function"==typeof s)&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach(t=>i[t]=()=>n[t]);return i.default=()=>n,a.d(o,i),o},a.d=(t,e)=>{for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.f={},a.e=t=>Promise.all(Object.keys(a.f).reduce((e,n)=>(a.f[n](t,e),e),[])),a.u=t=>t+".creaditor.bundle.js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.hmd=t=>((t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t),a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n={},r="Creaditor:",a.l=(t,e,o,i)=>{if(n[t])n[t].push(e);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var p=c[d];if(p.getAttribute("src")==t||p.getAttribute("data-webpack")==r+o){s=p;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",r+o),s.src=t),n[t]=[e];var h=(e,r)=>{s.onerror=s.onload=null,clearTimeout(u);var o=n[t];if(delete n[t],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach(t=>t(r)),e)return e(r)},u=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),l&&document.head.appendChild(s)}},a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var t;a.g.importScripts&&(t=a.g.location+"");var e=a.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!t||!/^http(s?):/.test(t));)t=n[r--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=t})(),(()=>{a.b="undefined"!=typeof document&&document.baseURI||self.location.href;var t={3057:0};a.f.j=(e,n)=>{var r=a.o(t,e)?t[e]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise((n,o)=>r=t[e]=[n,o]);n.push(r[2]=o);var i=a.p+a.u(e),s=new Error;a.l(i,n=>{if(a.o(t,e)&&(0!==(r=t[e])&&(t[e]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+e+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,r[1](s)}},"chunk-"+e,e)}};var e=(e,n)=>{var r,o,[i,s,l]=n,c=0;if(i.some(e=>0!==t[e])){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);if(l)l(a)}for(e&&e(n);c<i.length;c++)o=i[c],a.o(t,o)&&t[o]&&t[o][0](),t[o]=0},n=("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})(),a.nc=void 0;return(()=>{"use strict";const t={primary:"linear-gradient(319deg, #663dff 0%, #aa00ff 37%, #cc4499 100%)",primaryText:"#fff",bgPrimary:"#d7e4fe",secondary:"#A93C80",topNavbar:"#484554",breadcrumbs:"#424656",resizer:"#d7e4fe",alpha:"rgb(244, 250, 254)",backColor:"#f4f5f7",disabled:"#cdd1db",iconColor:"#586387",fontFamily:"Arial, Helvetica, sans-serif",direction:"rtl",textAlign:"right",justifyContent:"flex-start",rowDirection:"row-reverse"},e=e=>{if(e){const n=e,r=t;for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)){const e=n[t];Object.prototype.hasOwnProperty.call(r,t)&&(r[t]=e)}}const n=`\n #input-iframe--v1,:root {\n --radius: 20px;\n --sm-radius: .25rem;\n --secondary: #0a0a0a;\n --breadcrumbs:${t.breadcrumbs};\n --top-navbar:${t.topNavbar};\n --dark:${t.topNavbar};\n --sidebar-color:${t.primary};\n --sidebar-icon-color:#fff;\n --primary: ${t.primary};\n --primaryText:${t.primaryText};\n --primary-text:${t.primaryText};\n --resizer-color:${t.resizer};\n --alpha:${t.alpha};\n --micro-info-color:#7d7d7d;\n --bgPrimary:${t.bgPrimary};\n --secondary: ${t.secondary};\n --disabled:${t.disabled};\n --icon-color:${t.iconColor};\n --error-color: rgba(165, 16, 16, 0.877);\n --input-border-color: #9EADBD;\n --font-family: ${t.fontFamily};\n --cdtr-font-family: ${t.fontFamily};\n --layout-holder-color: ${t.backColor};\n --justify-content:${t.justifyContent};\n --row-direction:${t.rowDirection};\n --medium-box-shadow: 0 2px 10px 0 rgb(0 6 36 / 20%);\n --section-padding: 10px;\n --add-padding-row:25px 0 25px 0;\n --section-padding-top: 6px;\n --section-padding-bottom: 6px;\n --margin-top:1rem;\n --divider-color: #00000026;\n --focus-shadow: 0 0 0 0.15rem rgb(13 110 253 / 10%);\n --text-align-locale:${t.textAlign};\n --direction-locale:${t.direction};\n --direction:${t.direction};\n --accent: #5B5FC7;\n --icon-muted: #666;\n --section-hover: #f0f0f048;\n --spacing-sm: .1rem;\n --paper-font-subhead_-_font-size:13px;\n --editor-font-size:13px;\n --paper-item-min-height:30px;\n --alert: rgb(235, 48, 48);\n --section-height: 80px;\n --section: #fff;\n --element-border-color: rgba(0, 0, 0, 0.116);\n --editor-input-height: 30px;\n --title-block-height: 50px;\n /* Must be 6-digit hex for consistent CSS parsing. */\n --text-dark-color:#000000;\n }`,r=document.createElement("style");return r.id="theme-provider-vars",r.innerHTML=n,{theme:t,styleTag:r}};var n=a(5441),r=a(72591),o=a.n(r),i=a(88639),s=a.n(i),l=a(88128),c=a.n(l),d=a(30855),p=a.n(d),h=a(93051),u=a.n(h),f=a(53618),m={};m.setAttributes=p(),m.insert=c().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=u();o()(f.A,m);const g=f.A&&f.A.locals?f.A.locals:void 0;var b=a(89575),y=a(5447),w={};w.setAttributes=p(),w.insert=c().bind(null,"head"),w.domAPI=s(),w.insertStyleElement=u();o()(y.A,w);const A=y.A&&y.A.locals?y.A.locals:void 0;var x=a(8330),_=a(29482);console.log("--\x3e Beta version",x.rE,"๐");const v=t=>(0,n.A)("div",{style:t.style,className:(0,_.A)(A.root)},(0,n.A)("cdtr-row",{alignItems:"center"},(0,n.A)("cdtr-col",null,(0,n.A)("cdtr-row",{style:{height:"35px",width:"150px",margin:"auto"},alignItems:"center",justify:"center"},(0,n.A)("span",{style:{fontFamily:"var(--font-family)",fontSize:"13px"}},"Powered by"),(0,n.A)("svg",{className:A.logo,width:"100",height:"34",viewBox:"0 0 152 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,n.A)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.96 6.48749C13.7333 6.48749 15.5 6.99999 17 7.99999C18.381 9.11888 18.4975 9.4202 19.1214 11.0336C19.2293 11.3128 19.3525 11.6312 19.5 12L16.5 13.6125C16.5 11.8125 15.2287 11 13.6703 10.3125C12.6503 9.86249 11.8267 9.71249 10.52 9.71249C9.24 9.71249 8.21333 9.91249 7.44 10.3125C6.69333 10.6875 6.09333 11.1875 5.64 11.8125C5.21333 12.4375 4.88 13.275 4.64 14.325C4.26667 15.95 4.08 18.275 4.08 21.3C4.08 24.325 4.69333 26.6 5.92 28.125C6.28089 28.5737 6.69603 29.0505 7.16591 29.5H1.96534C1.64569 28.9808 1.36391 28.41 1.12 27.7875C0.373332 25.7875 0 23.5625 0 21.1125C0 18.6375 0.199999 16.6125 0.599999 15.0375C0.999999 13.4375 1.61333 11.9875 2.44 10.6875C3.29333 9.3625 4.44 8.33749 5.88 7.61249C7.34667 6.86249 9.04 6.48749 10.96 6.48749ZM2.68031 30.5C2.78393 30.6248 2.8905 30.7457 3 30.8625C3.77333 31.6625 4.82667 32.325 6.16 32.85C7.49333 33.375 9.06667 33.6375 10.88 33.6375C13.5733 33.6375 17.5 32.5 18 31.5V30.5L17.1236 30.5C17.0524 31.7047 13.7937 31.581 12.1668 31.5193C11.8889 31.5087 11.6586 31.5 11.5 31.5C10.3251 31.5 9.29305 31.0914 8.40174 30.5H2.68031ZM22.8797 30.5V33.1875H26.4797V30.5H22.8797ZM37.7715 30.5C39.1799 32.5917 41.4724 33.6375 44.6491 33.6375C46.3821 33.6375 48.2093 32.5077 49.9727 31.4175C50.4886 31.0985 50.999 30.7829 51.5 30.5L48.1897 30.5C47.9175 30.6241 47.5455 30.7818 47 31C44.717 31.9132 43.2679 31.1585 42.272 30.6399C42.1774 30.5906 42.0868 30.5434 42 30.5L37.7715 30.5ZM40.8521 29.5H37.2031C36.4604 27.9434 36.0891 25.9476 36.0891 23.5125C36.0891 20.3125 36.8357 17.775 38.3291 15.9C39.8491 14 42.0891 13.05 45.0491 13.05C47.3424 13.05 49.0357 13.7 50.1291 15C51.0357 16.05 51.5957 17.8125 51.8091 20.2875C51.8393 20.6553 51.8738 20.9181 51.9052 21.1565C51.957 21.5501 52 21.8772 52 22.5L51 23C49 24 40 24 40 24L39.9291 24.15C39.9291 26.4443 40.0799 28.3274 40.8521 29.5ZM50.0767 29.5H50.285L50.2091 29.4375C50.1632 29.459 50.1191 29.4798 50.0767 29.5ZM55.0663 30.5C55.7825 32.5916 57.5693 33.6375 60.4269 33.6375C63.0135 33.6375 65.0402 32.7 66.5069 30.825H66.6269C66.6706 30.948 66.6869 31.1327 66.7054 31.3434C66.7661 32.0325 66.8514 33 68 33C68.951 33 70.3038 32.799 71.2942 32.6519C71.866 32.567 72.317 32.5 72.5 32.5L73 31C71.2357 31.196 70.3302 30.9636 69.8813 30.5H62.8616C62.3984 30.5917 61.9068 30.6375 61.3869 30.6375C60.9108 30.6375 60.4946 30.5917 60.1383 30.5H55.0663ZM58.7645 29.5H54.8182C54.744 29.0529 54.7069 28.5696 54.7069 28.05C54.7069 24.75 57.1869 22.7625 62.1469 22.0875L65.9869 21.5625V19.4625C65.9869 17.1875 64.8802 16.05 62.6669 16.05C61.2535 16.05 59.3469 16.4 56.9469 17.1L55.6669 14.7375C57.9602 13.6125 60.4402 13.05 63.1069 13.05C66.3335 13.05 68.3069 13.95 69.0269 15.75C69.4002 16.675 69.5869 17.9 69.5869 19.425V27.4125C69.5869 27.7069 69.5578 28.0143 69.5289 28.3204C69.4904 28.7271 69.4522 29.1315 69.4826 29.5H65.1695C65.4609 29.2847 65.7333 29.0389 65.9869 28.7625V23.475C62.6669 23.2875 59.7733 24.425 59 25C58.3673 25.4784 58.4377 26.5352 58.5055 27.554C58.5263 27.8663 58.5469 28.1751 58.5469 28.4625C58.5469 28.8639 58.6194 29.2097 58.7645 29.5ZM75.9477 30.5C76.145 30.8458 76.364 31.1542 76.6047 31.425C77.938 32.9 79.7247 33.6375 81.9647 33.6375C84.2047 33.6375 86.4 32.7 88 31L88.5 33.5H91L90.9605 30.5H87.1153C86.8289 30.6362 86.427 30.734 85.7677 30.825C85.6033 30.8477 85.4543 30.8689 85.317 30.8885C84.3954 31.0197 83.9994 31.0761 83 31C82.0531 30.9278 81.4134 30.7549 80.9312 30.5H75.9477ZM79.801 29.5H75.4774C74.8956 27.9934 74.6047 25.9851 74.6047 23.475C74.6047 21.925 74.7914 20.525 75.1647 19.275C75.538 18.025 76.018 17.025 76.6047 16.275C77.1914 15.525 77.8714 14.9 78.6447 14.4C80.0047 13.5 81.5247 13.05 83.2047 13.05C84.8847 13.05 86.258 13.45 87.3247 14.25C87.3514 14.25 87.3914 14.2375 87.4447 14.2125L87.3247 13.2375L87.4447 3.49999L91.2447 -6.67572e-06L90.9247 27.7875L90.9473 29.5H87.7092L87.3247 17.1C86.2847 16.4 85.0314 16.05 83.5647 16.05C82.8447 16.05 82.2314 16.1375 81.7247 16.3125C81.218 16.4625 80.698 16.7625 80.1647 17.2125C79.018 18.1875 78.4447 20.175 78.4447 23.175C78.4447 26.15 78.8047 28.1375 79.5247 29.1375C79.6186 29.2633 79.7095 29.3843 79.801 29.5ZM106.671 30.5C106.821 31.0036 107.003 31.4369 107.216 31.8C107.936 33.025 109.469 33.6375 111.816 33.6375C112.509 33.6375 113.283 33.5125 114.136 33.2625C114.989 33.0125 116.18 32.3 116.5 32V30.5H116.223C115.284 30.7497 113.144 31 112.5 31C111.8 31 111.306 30.802 110.942 30.5H106.671ZM110.219 29.5H106.431C106.234 28.4603 106.136 27.202 106.136 25.725V16.35H102.696L103 14.4L108 8.43749H109.736V13.5H115.456L114.5 16.425L109.736 16.35V25.5C109.736 27.3786 109.897 28.7119 110.219 29.5ZM119.683 30.5C120.217 31.4497 120.988 32.1956 122 32.7375C123.147 33.3375 124.547 33.6375 126.2 33.6375C127.88 33.6375 129.334 33.35 130.56 32.775C131.777 32.2169 132.73 31.4586 133.418 30.5H129.855C129.407 30.8934 127.647 31.425 127 31.425C125.969 31.425 124.668 31.0651 123.903 30.5H119.683ZM123.257 29.5H119.211C118.484 27.7297 118.12 25.6089 118.12 23.1375C118.12 20.4375 118.787 18.1375 120.12 16.2375C120.814 15.2625 121.774 14.4875 123 13.9125C124.254 13.3375 125.707 13.05 127.36 13.05C129.04 13.05 130.44 13.35 131.56 13.95C132.707 14.55 133.547 15.3875 134.08 16.4625C135.014 18.3875 135.48 20.75 135.48 23.55C135.48 25.8266 135.007 27.8099 134.058 29.5H130.366C130.408 29.3841 130.459 29.2633 130.56 29.1375C130.88 28.7125 131.12 28.125 131.28 27.375C131.52 26.25 131.64 25.0375 131.64 23.7375C131.64 22.4375 131.614 21.4875 131.56 20.8875C131.507 20.2625 131.374 19.625 131.16 18.975C130.974 18.325 130.694 17.8 130.32 17.4C129.974 17 129.494 16.675 128.88 16.425C128.267 16.175 127.52 16.05 126.64 16.05C125.787 16.05 125.054 16.2 124.44 16.5C123.827 16.8 123.36 17.1625 123.04 17.5875C122.72 17.9875 122.48 18.5625 122.32 19.3125C122.08 20.4375 121.96 21.65 121.96 22.95C121.96 24.25 121.987 25.2125 122.04 25.8375C122.094 26.4375 122.214 27.0625 122.4 27.7125C122.614 28.3625 122.907 28.8875 123.28 29.2875C123.263 29.3594 123.256 29.4303 123.257 29.5ZM140.497 30.5V33.1875H144.097V30.5H140.497ZM144.097 29.5H140.497V18.9L140.177 13.6875L143.097 13.3125L143.537 17.1H143.697C144.15 15.875 144.83 14.9 145.737 14.175C146.67 13.425 147.764 13.05 149.017 13.05C149.71 13.05 150.23 13.1125 150.577 13.2375C150.95 13.3375 151.257 13.425 151.497 13.5C151.737 13.55 151.884 13.5875 151.937 13.6125L151.297 16.9875C150.497 16.7375 149.537 16.6125 148.417 16.6125C147.324 16.6125 146.324 17.0625 145.417 17.9625C144.537 18.8375 144.097 19.9 144.097 21.15V29.5ZM26.4797 29.5H22.8797V18.9L22.5597 13.6875L25.4797 13.3125L25.9197 17.1H26.0797C26.533 15.875 27.213 14.9 28.1197 14.175C29.053 13.425 30.1464 13.05 31.3997 13.05C32.093 13.05 32.613 13.1125 32.9597 13.2375C33.333 13.3375 33.6397 13.425 33.8797 13.5C34.1197 13.55 34.2664 13.5875 34.3197 13.6125L33.6797 16.9875C32.8797 16.7375 31.9197 16.6125 30.7997 16.6125C29.7064 16.6125 28.7064 17.0625 27.7997 17.9625C26.9197 18.8375 26.4797 19.9 26.4797 21.15V29.5ZM47.5309 17.4397C47.503 17.388 47.4757 17.3373 47.4491 17.2875C47.0224 16.4625 46.0357 16.05 44.4891 16.05C42.9691 16.05 41.8891 16.5375 41.2491 17.5125C40.6091 18.4625 40.2091 19.7875 40.0491 21.4875L48.5 21.1125C48.5 19.237 47.951 18.2188 47.5309 17.4397Z",fill:"black"}),(0,n.A)("path",{d:"M99 12.5H95V29.5H99V12.5Z",fill:"black"}),(0,n.A)("path",{d:"M97 6.5L99 11.4456H95L97 6.5Z",fill:"#5c5ce0"}),(0,n.A)("path",{d:"M99 30.5H95V33.5H99V30.5Z",fill:"#5c5ce0"}),(0,n.A)("path",{d:"M99 12.125H95V13.0625H99V12.125Z",fill:"#5c5ce0"})),(0,n.A)("span",{style:{background:"#5c5ce0"},className:A.dot})))));var k=a(47920),C={};C.setAttributes=p(),C.insert=c().bind(null,"head"),C.domAPI=s(),C.insertStyleElement=u();o()(k.A,C);const E=k.A&&k.A.locals?k.A.locals:void 0;var S=a(59929),M=a(98198);class B extends S.WF{constructor(){super(),this.icon="add",this.width=24,this.height=24}render(){const t=M[this.icon]||"no icon";return S.qy`<svg style="display: block; margin: auto;"
|
|
2460
|
+
</div>`,h),document.body.appendChild(h)}}},49937(t,e,n){"use strict";n.d(e,{A:()=>r});const r=new(n(18396).A)},3832(t,e,n){"use strict";n.d(e,{Ay:()=>C});var r=n(80120),o=n(18057);const i=t=>t instanceof Date,a=t=>null!=t&&"object"==typeof t,s=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),l=t=>a(t)&&(t=>0===Object.keys(t).length)(t),c=(t,e)=>{if(t===e)return{};if(!a(t)||!a(e))return e;const n=Object.keys(t).reduce((t,n)=>(s(e,n)||(t[n]=void 0),t),Object.create(null));return i(t)||i(e)?t.valueOf()==e.valueOf()?{}:e:Object.keys(e).reduce((n,r)=>{if(!s(t,r))return n[r]=e[r],n;const o=c(t[r],e[r]);return!l(o)||i(o)||!l(t[r])&&l(e[r])?(n[r]=o,n):n},n)},d=c;var p=n(49937),h=n(4952),u=n(86319),f=n(36565),m=n(52144),g=n(91937),b=n.n(g),y=n(98352),w=n.n(y);const A=new o.A,x={},_={},v=[],k=t=>{try{let{steps:e,options:n,onEnd:o,force:i,update:a}=t;e=Array.isArray(e)?e:[e],e.forEach(t=>{const{type:e}=t;if(e===r.d.PATCH){const{componentId:e,key:n}=t;let{value:r}=t;const o=b()({componentId:e,key:n}),i=u.M.get("components",e);if(!i)return console.error("component not found",e,t),void console.trace();if(!x[o]){const t=w()(i.props?i.props[n]:void 0);x[o]=t??{}}let a=w()(r);if("style"===n||"iconStyle"===n){if(a&&"object"==typeof a){const t=i.props;a=(0,m.A)(t[n],a),_[o]=a}}else _[o]=w()(a);try{i.props[n]=_[o]}catch(t){console.error("error applying patch",t)}if(void 0!==_[o]){const r=v.findIndex(t=>t.componentId===e&&t.key===n);-1!==r&&v.splice(r,1),v.push({...t,newValue:a})}else delete _[o]}else v.push(t)}),A.run(()=>{for(let t=0;t<v.length;t++){const e=v[t];if("PATCH"!==e.type)continue;const{newValue:n,componentId:r,key:o}=e,s=b()({componentId:r,key:o}),l=x[s];let c;if(e.oldValue=l,delete x[s],c=Array.isArray(n)&&Array.isArray(l)?n.filter(t=>!l.find(e=>e===t)):d(l,n),null!=c&&"object"==typeof c)for(const t of Object.keys(c))void 0===c[t]&&delete c[t];!0!==i&&null!=c&&"object"==typeof c&&Object.keys(c).length;a&&void 0!==_[s]&&f.Ay.silentPatch(f.Ay.getComponent(r),o,_[s]),delete _[s]}if(v.length>0){h.A.create({stack:v,options:n});const t=[...v];"function"==typeof o&&o({stack:t,steps:t})}v.length=0})}catch(e){console.error(e);const n=e instanceof Error?e:new Error(String(e));f.Ay.commands.logError({error_code:"#123!#",info:JSON.stringify({data:n.stack,steps:t.steps,force:t.force,update:t.update}),msg:n.message,s:1,siteId:"",v:void 0})}finally{p.A.dispatch("changed",{})}},C=k},18057(t,e,n){"use strict";n.d(e,{A:()=>r});class r{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300;this.callback=void 0,this.timeout=void 0,this.delay=void 0,this.delay=t,this.run=this.run.bind(this)}run(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300;this.callback=t,"number"==typeof e&&(this.delay=e),clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.callback()},this.delay)}}},21663(t,e,n){"use strict";n.d(e,{A:()=>r});const r=t=>{if(!t||"string"!=typeof t)return!1;const e="$%^$%^";return 0===t.replace(/[^\P{L}a-z][^a-z]*/giu,e).indexOf(e)||(t=(t=t.replace(/[0-9]/g,"")).replace(/\n/g,""),new RegExp(/^[\u0590-\u05FF ,.,!,?,/,*,#,@,&,(,)'-]+$/i).test(t))}},83235(t,e,n){"use strict";n.d(e,{A:()=>o});const r=JSON.parse('["ase","art","bmp","blp","cd5","cit","cpt","cr2","cut","dds","dib","djvu","egt","exif","gif","gpl","grf","icns","ico","iff","jng","jpeg","jpg","jfif","jp2","jps","lbm","max","miff","mng","msp","nef","nitf","ota","pbm","pc1","pc2","pc3","pcf","pcx","pdn","pgm","PI1","PI2","PI3","pict","pct","pnm","pns","ppm","psb","psd","pdd","psp","px","pxm","pxr","qfx","raw","rle","sct","sgi","rgb","int","bw","tga","tiff","tif","vtf","xbm","xcf","xpm","3dv","amf","ai","awg","cgm","cdr","cmx","dxf","e2d","egt","eps","fs","gbr","odg","svg","stl","vrml","x3d","sxd","v2d","vnd","wmf","emf","art","xar","png","webp","jxr","hdp","wdp","cur","ecw","iff","lbm","liff","nrrd","pam","pcx","pgf","sgi","rgb","rgba","bw","int","inta","sid","ras","sun","tga","heic","heif"]');function o(t){const e=(/(?:\.([^.]+))?$/.exec(t.toLowerCase())??[])[1]||"",n=e.includes("&")?e.split("&")[0]:e;return-1!==r.findIndex(t=>t===n)}},40120(t,e,n){"use strict";n.d(e,{VH:()=>l,sw:()=>a});var r=n(69172),o=n(82706),i=n(86319);async function a(t){let{cssRule:e,name:n,id:r,url:o}=t;if(!o){const t=(await l()).find(t=>t.id===r||t.cssRule===e||t.name===n);t&&(o=t.url)}if(!o)return null;if(!document.querySelector(`link[href="${o}"]`)){const t=document.createElement("link");t.href=o,t.rel="stylesheet",t.type="text/css",document.head.appendChild(t)}}let s=null;const l=async()=>{const t=i.M.get("config","editor","configure","editorProps"),e=t?.fonts||[];return"web"===i.M.get("config","channel")&&t?(s||(s=(0,o.Jt)(r.XW.api_url+r.JZ.fonts+"/?limit=999").then(n=>{const r=function(t,e){const n=new Set,r=[];for(const o of[...t,...e]){if(!o)continue;const t=o.id||o.name||o.cssRule;t&&n.has(t)||(t&&n.add(t),r.push(o))}return r}(e,n?.data?.results||[]);return t.fonts=r,r}).catch(t=>(console.error("failed to fetch web fonts",t),e))),s):e}},98829(t,e,n){"use strict";n.d(e,{v:()=>s});var r=n(69172),o=n(86319),i=n(82706),a=n(8330);const s=t=>{const e=o.M.get("config")._id;return t.siteId=e,t.v=a.rE,console.log(t),(0,i.bE)(r.XW.api_url+r.JZ.log,t)}},90090(t,e,n){"use strict";n.d(e,{YE:()=>l,bA:()=>a,bK:()=>c,sU:()=>s});var r=n(69172),o=n(82706),i=n(86319);o.jd;const a=t=>(0,o.bE)(r.XW.api_url_v2+r.JZ.generateCode,t),s=t=>{const e=encodeURIComponent(t);return(0,o.Jt)(r.XW.api_url_v2+r.JZ.submitAccessCode+`/${e}`)},l=t=>{const e=i.M.get("app");return(0,o.F6)(r.XW.api_url+r.JZ.site+`/${e._id}`,t)},c=t=>{const e=i.M.get("app");return(0,o.bE)(r.XW.api_url+r.JZ.site+`/publish/${e._id}`,t)}},80120(t,e,n){"use strict";n.d(e,{d:()=>r});let r=function(t){return t.PATCH="PATCH",t.REMOVE="REMOVE",t.CLONE="CLONE",t.ADD="ADD",t.MOVE="MOVE",t.CREATE="CREATE",t}({})},4952(t,e,n){"use strict";n.d(e,{A:()=>l,q:()=>c});var r=n(81840),o=n(12106),i=n(86319);const a=n(98352),s=t=>{const e=typeof t;return Array.isArray(t)||"object"===e?JSON.parse(JSON.stringify(t)):t};const l=new class{constructor(){this.emitter=void 0,this.state=void 0,this.emitter=new r.A,this.state={past:[],present:null,future:[]}}setHistory(t){const e=t;e&&"object"==typeof e&&Array.isArray(e.past)&&Array.isArray(e.future)&&e.present&&(this.state=e,this.onAnyChange(),this.emitter.dispatch("ON_SNAPSHOT",this.dispatchValue(this.state.present)))}onAnyChange(){i.M.set({history:this.state})}hasRedo(){return this.state.future.length>0||"oldValue"===this.state.present?.currectValue}hasUndo(){return this.state.past.length>0||"newValue"===this.state.present?.currectValue}hasPresent(){return!!this.state.present}undo(){if(!this.hasUndo()&&!this.state.present)return;let t,e;"newValue"===this.state.present.currectValue?(t=this.state.present,e=s(this.state.present),this.state.present.currectValue="oldValue"):(t=this.state.past.pop(),t&&(this.state.future.unshift(this.state.present),this.state.present=t,e=s(this.state.present),this.state.present.currectValue="oldValue")),e&&(this.emitter.dispatch("ON_UNDO",this.dispatchValue(e)),this.onAnyChange())}redo(){if(!this.hasRedo()&&!this.state.present)return;let t,e;"oldValue"===this.state.present.currectValue?(t=this.state.present,e=s(this.state.present),this.state.present.currectValue="newValue"):(t=this.state.future.shift(),t&&(this.state.past.push(this.state.present),this.state.present=t,e=s(this.state.present),this.state.present.currectValue="newValue")),e&&(this.emitter.dispatch("ON_REDO",this.dispatchValue(e)),this.onAnyChange())}create(t){let e=[];this.state.present&&"newValue"===this.state.present.currectValue&&0===this.state.future.length?(this.state.present.currectValue="newValue",this.state.past.push(this.state.present),this.state.present=null):this.state.present&&"oldValue"===this.state.present.currectValue&&this.state.future.length>0&&(this.state.present=null),e=JSON.parse(JSON.stringify(this.state.future)),this.state.future=[];const n=a(t),r={id:(0,o.A)(),stack:n.stack,options:n.options,created_at:Date.now(),currectValue:"newValue",deletedSteps:e};this.state.present=r,this.emitter.dispatch("ON_SNAPSHOT",this.dispatchValue(r)),this.onAnyChange()}dispatchValue(t){return{currectValue:t.currectValue,stack:t.stack,options:t.options,hasUndo:this.hasUndo(),hasRedo:this.hasRedo(),__state:this.state,pastLength:this.state.past.length+1,futureLength:this.state.future.length,deletedSteps:t.deletedSteps}}on(t,e){this.emitter.subscribe(t,e)}off(t,e){this.emitter.unSubscribe(t,e)}},c={ON_UNDO:"ON_UNDO",ON_REDO:"ON_REDO",ON_SNAPSHOT:"ON_SNAPSHOT"}},43214(t,e,n){"use strict";n.d(e,{A:()=>o});var r=n(12106);const o=t=>{const{id:e="style-"+(0,r.A)(),parentNode:n=document.body,isImportant:o=!0,context:i}=t;let a=null;function s(t,e){const n=[];return n.push(t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()),n.push(":"),n.push(e||'""'),n.push(o?" !important;":";"),n.join("")}return e&&(a=document.getElementById(e)),a||(a=document.createElement("style"),a.id=e),a.innerHTML=(t=>{const e=[];for(const n in t)if(Object.hasOwnProperty.call(t,n)){const r=t[n];e.push(n),e.push("{");for(const t in r)if(Object.hasOwnProperty.call(r,t)){const n=s(t,r[t]);e.push(n)}e.push("}")}return e.join("")})(i),n.appendChild(a),e}},29482(t,e,n){"use strict";function r(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];let o=[];return"string"==typeof e?e.split(",").join(" "):(e.forEach(t=>{"string"==typeof t?o.push(t):Array.isArray(t)&&o.push(r(...t))}),o=o.filter(t=>t),o.join(" "))}n.d(e,{A:()=>r})},9334(t,e,n){"use strict";function r(t){return t.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})}n.d(e,{A:()=>r})},93432(t,e,n){"use strict";n.d(e,{FE:()=>u,U2:()=>c,Ux:()=>s});var r=n(86959),o=n(86319),i=n(72505),a=n.n(i);const s=t=>{const e=t,n=t.element.getBoundingClientRect(),r={id:e.id,_id:e.id,type:e.type,props:JSON.parse(JSON.stringify(e.props)),children:e.children,elements:e.elements,width:e.width,height:e.height,renderedHTML:null};return"function"==typeof e.getRenderedHTML&&(r.renderedHTML=e.getRenderedHTML({props:e.props})),n.width&&n.height?(r.width=n.width,r.height=n.height,r):(console.warn("The Editor is must be visible to get the correct width and height of the components"),r)},l=t=>Array.isArray(t)?t.filter(t=>"string"==typeof t||!(!t||"object"!=typeof t||!Array.isArray(t.children))&&(t.children=l(t.children),!0)):[],c=()=>{const t=o.M.get("components"),e=[];return t.forEach(t=>{const n=s(t);if(n&&Array.isArray(n.children)&&(n.children=l(n.children)),n&&Array.isArray(n.elements)&&(n.elements=l(n.elements)),"root"===n.type){const t=o.M.get("config","editor","configure","editorProps","fonts"),e=Array.from(document.querySelectorAll("[data-cdtr-font-name]")).map(t=>t.getAttribute("data-cdtr-font-name")),r=[...new Set(e)],i=[],a={};Array.isArray(t)&&r.forEach(e=>{const n=t.find(t=>t.cssRule===e);n&&!a[e]&&n&&(i.push(n),a[e]=!0)}),n.props.fonts=i}e.push(n)}),e.forEach(t=>{try{JSON.stringify(t)}catch(t){console.error("Error serializing component",t)}}),e};let d=!1,p=[];const h=async()=>{if(0===p.length)return void(d=!1);const{resolve:t,reject:e,components:n,channel:o,device:i}=p[0];try{const e="mobile"===i?"Mozilla/5.0 (Linux; Android 12; SM-S906N Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/80.0.3987.119 Mobile Safari/537.36":void 0;t(("web"===o?await a().post(r.XW.render_build_url,{children:n,userAgent:e}):await a().post(`${r.XW.api_url.replace("v1","v2")}/render/newsletter/build`,{components:n})).data)}catch(t){e(t)}p.shift(),h()},u=async(t,e)=>{const n=c();return new Promise((r,o)=>{p.push({resolve:r,reject:o,components:n,channel:String(t??"newsletter"),device:null!=e?String(e):void 0}),d||(d=!0,h())})}},40156(t,e,n){"use strict";n.d(e,{A:()=>r});const r=(t,e)=>{const n=document.head.querySelector(`script[src='${t}']`);if(n){const t=parseInt(n.dataset.requested??"0")||1;return n.setAttribute("data-requested",String(t+1)),n.getAttribute("data-loaded"),void("function"==typeof e&&e())}const r=document.createElement("script");r.type="text/javascript",r.setAttribute("data-loaded","false"),r.async=!0,r.defer=!0,-1!==t.indexOf("?module")&&(r.type="module"),r.src=t,function(t){t.addEventListener("load",()=>{t.setAttribute("data-loaded","true");const n=parseInt(t.dataset.requested??"0")||0;t.setAttribute("data-requested",String(n+1)),"function"==typeof e&&e()},{once:!0})}(r),r.addEventListener("error",()=>{r.setAttribute("data-error","true")},{once:!0}),document.getElementsByTagName("head")[0].appendChild(r)}},12106(t,e,n){"use strict";var r;n.d(e,{A:()=>p});var o=new Uint8Array(16);function i(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}const a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const s=function(t){return"string"==typeof t&&a.test(t)};for(var l=[],c=0;c<256;++c)l.push((c+256).toString(16).substr(1));const d=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(l[t[e+0]]+l[t[e+1]]+l[t[e+2]]+l[t[e+3]]+"-"+l[t[e+4]]+l[t[e+5]]+"-"+l[t[e+6]]+l[t[e+7]]+"-"+l[t[e+8]]+l[t[e+9]]+"-"+l[t[e+10]]+l[t[e+11]]+l[t[e+12]]+l[t[e+13]]+l[t[e+14]]+l[t[e+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n};const p=function(t,e,n){var r=(t=t||{}).random||(t.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var o=0;o<16;++o)e[n+o]=r[o];return e}return d(r)}},4217(t,e,n){var r;if("object"==typeof globalThis)r=globalThis;else try{r=n(9444)}catch(t){}finally{if(r||"undefined"==typeof window||(r=window),!r)throw new Error("Could not determine global this")}var o=r.WebSocket||r.MozWebSocket,i=n(66409);function a(t,e){return e?new o(t,e):new o(t)}o&&["CONNECTING","OPEN","CLOSING","CLOSED"].forEach(function(t){Object.defineProperty(a,t,{get:function(){return o[t]}})}),t.exports={w3cwebsocket:o?a:null,version:i}},66409(t,e,n){t.exports=n(99438).version},68502(t,e,n){"use strict";var r=n(8120),o=n(36828),i=n(53725),a=n(43409),s=n(18078);t.exports=function(t){return null==t||"object"!=typeof t&&"function"!=typeof t?null:r(t)?"String":o(t)?"Number":i(t)?"Boolean":a(t)?"Symbol":s(t)?"BigInt":void 0}},39334(t,e,n){"use strict";var r=n(98009),o=n(2583),i=n(88341),a=n(82347);t.exports=function(t){if(t&&"object"==typeof t){if(r(t))return"Map";if(o(t))return"Set";if(i(t))return"WeakMap";if(a(t))return"WeakSet"}return!1}},52730(t,e,n){"use strict";var r=n(80705),o=n(14834),i=n(28498),a=n(14607),s=n(69336),l=n(46369),c=a("Object.prototype.toString"),d=n(51913)(),p="undefined"==typeof globalThis?n.g:globalThis,h=o(),u=a("String.prototype.slice"),f=a("Array.prototype.indexOf",!0)||function(t,e){for(var n=0;n<t.length;n+=1)if(t[n]===e)return n;return-1},m={__proto__:null};r(h,d&&s&&l?function(t){var e=new p[t];if(Symbol.toStringTag in e&&l){var n=l(e),r=s(n,Symbol.toStringTag);if(!r&&n){var o=l(n);r=s(o,Symbol.toStringTag)}if(r&&r.get){var a=i(r.get);m["$"+t]=a}}}:function(t){var e=new p[t],n=e.slice||e.set;if(n){var r=i(n);m["$"+t]=r}});t.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!d){var e=u(c(t),8,-1);return f(h,e)>-1?e:"Object"===e&&function(t){var e=!1;return r(m,function(n,r){if(!e)try{n(t),e=u(r,1)}catch(t){}}),e}(t)}return s?function(t){var e=!1;return r(m,function(n,r){if(!e)try{"$"+n(t)===r&&(e=u(r,1))}catch(t){}}),e}(t):null}},77203(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return l.default}});var r=h(n(61738)),o=h(n(97696)),i=h(n(37845)),a=h(n(45782)),s=h(n(95636)),l=h(n(62379)),c=h(n(76777)),d=h(n(12610)),p=h(n(62284));function h(t){return t&&t.__esModule?t:{default:t}}},85707(t,e){"use strict";function n(t){return 14+(t+64>>>9<<4)+1}function r(t,e){const n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function o(t,e,n,o,i,a){return r((s=r(r(e,t),r(o,a)))<<(l=i)|s>>>32-l,n);var s,l}function i(t,e,n,r,i,a,s){return o(e&n|~e&r,t,e,i,a,s)}function a(t,e,n,r,i,a,s){return o(e&r|n&~r,t,e,i,a,s)}function s(t,e,n,r,i,a,s){return o(e^n^r,t,e,i,a,s)}function l(t,e,n,r,i,a,s){return o(n^(e|~r),t,e,i,a,s)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var c=function(t){if("string"==typeof t){const e=unescape(encodeURIComponent(t));t=new Uint8Array(e.length);for(let n=0;n<e.length;++n)t[n]=e.charCodeAt(n)}return function(t){const e=[],n=32*t.length,r="0123456789abcdef";for(let o=0;o<n;o+=8){const n=t[o>>5]>>>o%32&255,i=parseInt(r.charAt(n>>>4&15)+r.charAt(15&n),16);e.push(i)}return e}(function(t,e){t[e>>5]|=128<<e%32,t[n(e)-1]=e;let o=1732584193,c=-271733879,d=-1732584194,p=271733878;for(let e=0;e<t.length;e+=16){const n=o,h=c,u=d,f=p;o=i(o,c,d,p,t[e],7,-680876936),p=i(p,o,c,d,t[e+1],12,-389564586),d=i(d,p,o,c,t[e+2],17,606105819),c=i(c,d,p,o,t[e+3],22,-1044525330),o=i(o,c,d,p,t[e+4],7,-176418897),p=i(p,o,c,d,t[e+5],12,1200080426),d=i(d,p,o,c,t[e+6],17,-1473231341),c=i(c,d,p,o,t[e+7],22,-45705983),o=i(o,c,d,p,t[e+8],7,1770035416),p=i(p,o,c,d,t[e+9],12,-1958414417),d=i(d,p,o,c,t[e+10],17,-42063),c=i(c,d,p,o,t[e+11],22,-1990404162),o=i(o,c,d,p,t[e+12],7,1804603682),p=i(p,o,c,d,t[e+13],12,-40341101),d=i(d,p,o,c,t[e+14],17,-1502002290),c=i(c,d,p,o,t[e+15],22,1236535329),o=a(o,c,d,p,t[e+1],5,-165796510),p=a(p,o,c,d,t[e+6],9,-1069501632),d=a(d,p,o,c,t[e+11],14,643717713),c=a(c,d,p,o,t[e],20,-373897302),o=a(o,c,d,p,t[e+5],5,-701558691),p=a(p,o,c,d,t[e+10],9,38016083),d=a(d,p,o,c,t[e+15],14,-660478335),c=a(c,d,p,o,t[e+4],20,-405537848),o=a(o,c,d,p,t[e+9],5,568446438),p=a(p,o,c,d,t[e+14],9,-1019803690),d=a(d,p,o,c,t[e+3],14,-187363961),c=a(c,d,p,o,t[e+8],20,1163531501),o=a(o,c,d,p,t[e+13],5,-1444681467),p=a(p,o,c,d,t[e+2],9,-51403784),d=a(d,p,o,c,t[e+7],14,1735328473),c=a(c,d,p,o,t[e+12],20,-1926607734),o=s(o,c,d,p,t[e+5],4,-378558),p=s(p,o,c,d,t[e+8],11,-2022574463),d=s(d,p,o,c,t[e+11],16,1839030562),c=s(c,d,p,o,t[e+14],23,-35309556),o=s(o,c,d,p,t[e+1],4,-1530992060),p=s(p,o,c,d,t[e+4],11,1272893353),d=s(d,p,o,c,t[e+7],16,-155497632),c=s(c,d,p,o,t[e+10],23,-1094730640),o=s(o,c,d,p,t[e+13],4,681279174),p=s(p,o,c,d,t[e],11,-358537222),d=s(d,p,o,c,t[e+3],16,-722521979),c=s(c,d,p,o,t[e+6],23,76029189),o=s(o,c,d,p,t[e+9],4,-640364487),p=s(p,o,c,d,t[e+12],11,-421815835),d=s(d,p,o,c,t[e+15],16,530742520),c=s(c,d,p,o,t[e+2],23,-995338651),o=l(o,c,d,p,t[e],6,-198630844),p=l(p,o,c,d,t[e+7],10,1126891415),d=l(d,p,o,c,t[e+14],15,-1416354905),c=l(c,d,p,o,t[e+5],21,-57434055),o=l(o,c,d,p,t[e+12],6,1700485571),p=l(p,o,c,d,t[e+3],10,-1894986606),d=l(d,p,o,c,t[e+10],15,-1051523),c=l(c,d,p,o,t[e+1],21,-2054922799),o=l(o,c,d,p,t[e+8],6,1873313359),p=l(p,o,c,d,t[e+15],10,-30611744),d=l(d,p,o,c,t[e+6],15,-1560198380),c=l(c,d,p,o,t[e+13],21,1309151649),o=l(o,c,d,p,t[e+4],6,-145523070),p=l(p,o,c,d,t[e+11],10,-1120210379),d=l(d,p,o,c,t[e+2],15,718787259),c=l(c,d,p,o,t[e+9],21,-343485551),o=r(o,n),c=r(c,h),d=r(d,u),p=r(p,f)}return[o,c,d,p]}(function(t){if(0===t.length)return[];const e=8*t.length,r=new Uint32Array(n(e));for(let n=0;n<e;n+=8)r[n>>5]|=(255&t[n/8])<<n%32;return r}(t),8*t.length))};e.default=c},53952(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};e.default=n},95636(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default="00000000-0000-0000-0000-000000000000"},62284(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=(r=n(76777))&&r.__esModule?r:{default:r};var i=function(t){if(!(0,o.default)(t))throw TypeError("Invalid UUID");let e;const n=new Uint8Array(16);return n[0]=(e=parseInt(t.slice(0,8),16))>>>24,n[1]=e>>>16&255,n[2]=e>>>8&255,n[3]=255&e,n[4]=(e=parseInt(t.slice(9,13),16))>>>8,n[5]=255&e,n[6]=(e=parseInt(t.slice(14,18),16))>>>8,n[7]=255&e,n[8]=(e=parseInt(t.slice(19,23),16))>>>8,n[9]=255&e,n[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,n[11]=e/4294967296&255,n[12]=e>>>24&255,n[13]=e>>>16&255,n[14]=e>>>8&255,n[15]=255&e,n};e.default=i},92460(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},91190(t,e){"use strict";let n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){if(!n&&(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!n))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(r)};const r=new Uint8Array(16)},1862(t,e){"use strict";function n(t,e,n,r){switch(t){case 0:return e&n^~e&r;case 1:case 3:return e^n^r;case 2:return e&n^e&r^n&r}}function r(t,e){return t<<e|t>>>32-e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function(t){const e=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){const e=unescape(encodeURIComponent(t));t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);const i=t.length/4+2,a=Math.ceil(i/16),s=new Array(a);for(let e=0;e<a;++e){const n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=t[64*e+4*r]<<24|t[64*e+4*r+1]<<16|t[64*e+4*r+2]<<8|t[64*e+4*r+3];s[e]=n}s[a-1][14]=8*(t.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(t.length-1)&4294967295;for(let t=0;t<a;++t){const i=new Uint32Array(80);for(let e=0;e<16;++e)i[e]=s[t][e];for(let t=16;t<80;++t)i[t]=r(i[t-3]^i[t-8]^i[t-14]^i[t-16],1);let a=o[0],l=o[1],c=o[2],d=o[3],p=o[4];for(let t=0;t<80;++t){const o=Math.floor(t/20),s=r(a,5)+n(o,l,c,d)+p+e[o]+i[t]>>>0;p=d,d=c,c=r(l,30)>>>0,l=a,a=s}o[0]=o[0]+a>>>0,o[1]=o[1]+l>>>0,o[2]=o[2]+c>>>0,o[3]=o[3]+d>>>0,o[4]=o[4]+p>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,255&o[0],o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,255&o[1],o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,255&o[2],o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,255&o[3],o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,255&o[4]]};e.default=o},12610(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.unsafeStringify=a;var r,o=(r=n(76777))&&r.__esModule?r:{default:r};const i=[];for(let t=0;t<256;++t)i.push((t+256).toString(16).slice(1));function a(t,e=0){return i[t[e+0]]+i[t[e+1]]+i[t[e+2]]+i[t[e+3]]+"-"+i[t[e+4]]+i[t[e+5]]+"-"+i[t[e+6]]+i[t[e+7]]+"-"+i[t[e+8]]+i[t[e+9]]+"-"+i[t[e+10]]+i[t[e+11]]+i[t[e+12]]+i[t[e+13]]+i[t[e+14]]+i[t[e+15]]}var s=function(t,e=0){const n=a(t,e);if(!(0,o.default)(n))throw TypeError("Stringified UUID is invalid");return n};e.default=s},61738(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=(r=n(91190))&&r.__esModule?r:{default:r},i=n(12610);let a,s,l=0,c=0;var d=function(t,e,n){let r=e&&n||0;const d=e||new Array(16);let p=(t=t||{}).node||a,h=void 0!==t.clockseq?t.clockseq:s;if(null==p||null==h){const e=t.random||(t.rng||o.default)();null==p&&(p=a=[1|e[0],e[1],e[2],e[3],e[4],e[5]]),null==h&&(h=s=16383&(e[6]<<8|e[7]))}let u=void 0!==t.msecs?t.msecs:Date.now(),f=void 0!==t.nsecs?t.nsecs:c+1;const m=u-l+(f-c)/1e4;if(m<0&&void 0===t.clockseq&&(h=h+1&16383),(m<0||u>l)&&void 0===t.nsecs&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=u,c=f,s=h,u+=122192928e5;const g=(1e4*(268435455&u)+f)%4294967296;d[r++]=g>>>24&255,d[r++]=g>>>16&255,d[r++]=g>>>8&255,d[r++]=255&g;const b=u/4294967296*1e4&268435455;d[r++]=b>>>8&255,d[r++]=255&b,d[r++]=b>>>24&15|16,d[r++]=b>>>16&255,d[r++]=h>>>8|128,d[r++]=255&h;for(let t=0;t<6;++t)d[r+t]=p[t];return e||(0,i.unsafeStringify)(d)};e.default=d},97696(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n(42109)),o=i(n(85707));function i(t){return t&&t.__esModule?t:{default:t}}var a=(0,r.default)("v3",48,o.default);e.default=a},42109(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.URL=e.DNS=void 0,e.default=function(t,e,n){function r(t,r,a,s){var l;if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));const e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n));return e}(t)),"string"==typeof r&&(r=(0,i.default)(r)),16!==(null===(l=r)||void 0===l?void 0:l.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+t.length);if(c.set(r),c.set(t,r.length),c=n(c),c[6]=15&c[6]|e,c[8]=63&c[8]|128,a){s=s||0;for(let t=0;t<16;++t)a[s+t]=c[t];return a}return(0,o.unsafeStringify)(c)}try{r.name=t}catch(t){}return r.DNS=a,r.URL=s,r};var r,o=n(12610),i=(r=n(62284))&&r.__esModule?r:{default:r};const a="6ba7b810-9dad-11d1-80b4-00c04fd430c8";e.DNS=a;const s="6ba7b811-9dad-11d1-80b4-00c04fd430c8";e.URL=s},37845(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(n(53952)),o=a(n(91190)),i=n(12610);function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t,e,n){if(r.default.randomUUID&&!e&&!t)return r.default.randomUUID();const a=(t=t||{}).random||(t.rng||o.default)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e){n=n||0;for(let t=0;t<16;++t)e[n+t]=a[t];return e}return(0,i.unsafeStringify)(a)};e.default=s},45782(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n(42109)),o=i(n(1862));function i(t){return t&&t.__esModule?t:{default:t}}var a=(0,r.default)("v5",80,o.default);e.default=a},76777(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=(r=n(92460))&&r.__esModule?r:{default:r};var i=function(t){return"string"==typeof t&&o.default.test(t)};e.default=i},62379(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=(r=n(76777))&&r.__esModule?r:{default:r};var i=function(t){if(!(0,o.default)(t))throw TypeError("Invalid UUID");return parseInt(t.slice(14,15),16)};e.default=i},72505(t,e,n){t.exports=n(18015)},35592(t,e,n){"use strict";var r=n(9516),o=n(7522),i=n(33948),a=n(79106),s=n(99615),l=n(62012),c=n(64202),d=n(47763),p=n(96987),h=n(31928);t.exports=function(t){return new Promise(function(e,n){var u,f=t.data,m=t.headers,g=t.responseType;function b(){t.cancelToken&&t.cancelToken.unsubscribe(u),t.signal&&t.signal.removeEventListener("abort",u)}r.isFormData(f)&&delete m["Content-Type"];var y=new XMLHttpRequest;if(t.auth){var w=t.auth.username||"",A=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";m.Authorization="Basic "+btoa(w+":"+A)}var x=s(t.baseURL,t.url);function _(){if(y){var r="getAllResponseHeaders"in y?l(y.getAllResponseHeaders()):null,i={data:g&&"text"!==g&&"json"!==g?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:r,config:t,request:y};o(function(t){e(t),b()},function(t){n(t),b()},i),y=null}}if(y.open(t.method.toUpperCase(),a(x,t.params,t.paramsSerializer),!0),y.timeout=t.timeout,"onloadend"in y?y.onloadend=_:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(_)},y.onabort=function(){y&&(n(d("Request aborted",t,"ECONNABORTED",y)),y=null)},y.onerror=function(){n(d("Network Error",t,null,y)),y=null},y.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",r=t.transitional||p.transitional;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(d(e,t,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),y=null},r.isStandardBrowserEnv()){var v=(t.withCredentials||c(x))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;v&&(m[t.xsrfHeaderName]=v)}"setRequestHeader"in y&&r.forEach(m,function(t,e){void 0===f&&"content-type"===e.toLowerCase()?delete m[e]:y.setRequestHeader(e,t)}),r.isUndefined(t.withCredentials)||(y.withCredentials=!!t.withCredentials),g&&"json"!==g&&(y.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&y.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(u=function(t){y&&(n(!t||t&&t.type?new h("canceled"):t),y.abort(),y=null)},t.cancelToken&&t.cancelToken.subscribe(u),t.signal&&(t.signal.aborted?u():t.signal.addEventListener("abort",u))),f||(f=null),y.send(f)})}},18015(t,e,n){"use strict";var r=n(9516),o=n(69012),i=n(35155),a=n(85343);var s=function t(e){var n=new i(e),s=o(i.prototype.request,n);return r.extend(s,i.prototype,n),r.extend(s,n),s.create=function(n){return t(a(e,n))},s}(n(96987));s.Axios=i,s.Cancel=n(31928),s.CancelToken=n(3191),s.isCancel=n(93864),s.VERSION=n(49641).version,s.all=function(t){return Promise.all(t)},s.spread=n(17980),s.isAxiosError=n(45019),t.exports=s,t.exports.default=s},31928(t){"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},3191(t,e,n){"use strict";var r=n(31928);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var n=this;this.promise.then(function(t){if(n._listeners){var e,r=n._listeners.length;for(e=0;e<r;e++)n._listeners[e](t);n._listeners=null}}),this.promise.then=function(t){var e,r=new Promise(function(t){n.subscribe(t),e=t}).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t(function(t){n.reason||(n.reason=new r(t),e(n.reason))})}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},o.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},o.source=function(){var t;return{token:new o(function(e){t=e}),cancel:t}},t.exports=o},93864(t){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},35155(t,e,n){"use strict";var r=n(9516),o=n(79106),i=n(83471),a=n(64490),s=n(85343),l=n(34841),c=l.validators;function d(t){this.defaults=t,this.interceptors={request:new i,response:new i}}d.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&l.assertOptions(e,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,n.unshift(e.fulfilled,e.rejected))});var o,i=[];if(this.interceptors.response.forEach(function(t){i.push(t.fulfilled,t.rejected)}),!r){var d=[a,void 0];for(Array.prototype.unshift.apply(d,n),d=d.concat(i),o=Promise.resolve(t);d.length;)o=o.then(d.shift(),d.shift());return o}for(var p=t;n.length;){var h=n.shift(),u=n.shift();try{p=h(p)}catch(t){u(t);break}}try{o=a(p)}catch(t){return Promise.reject(t)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},d.prototype.getUri=function(t){return t=s(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],function(t){d.prototype[t]=function(e,n){return this.request(s(n||{},{method:t,url:e,data:(n||{}).data}))}}),r.forEach(["post","put","patch"],function(t){d.prototype[t]=function(e,n,r){return this.request(s(r||{},{method:t,url:e,data:n}))}}),t.exports=d},83471(t,e,n){"use strict";var r=n(9516);function o(){this.handlers=[]}o.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=o},99615(t,e,n){"use strict";var r=n(29137),o=n(84680);t.exports=function(t,e){return t&&!r(e)?o(t,e):e}},47763(t,e,n){"use strict";var r=n(5449);t.exports=function(t,e,n,o,i){var a=new Error(t);return r(a,e,n,o,i)}},64490(t,e,n){"use strict";var r=n(9516),o=n(82881),i=n(93864),a=n(96987),s=n(31928);function l(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new s("canceled")}t.exports=function(t){return l(t),t.headers=t.headers||{},t.data=o.call(t,t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||a.adapter)(t).then(function(e){return l(t),e.data=o.call(t,e.data,e.headers,t.transformResponse),e},function(e){return i(e)||(l(t),e&&e.response&&(e.response.data=o.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},5449(t){"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t}},85343(t,e,n){"use strict";var r=n(9516);t.exports=function(t,e){e=e||{};var n={};function o(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function i(n){return r.isUndefined(e[n])?r.isUndefined(t[n])?void 0:o(void 0,t[n]):o(t[n],e[n])}function a(t){if(!r.isUndefined(e[t]))return o(void 0,e[t])}function s(n){return r.isUndefined(e[n])?r.isUndefined(t[n])?void 0:o(void 0,t[n]):o(void 0,e[n])}function l(n){return n in e?o(t[n],e[n]):n in t?o(void 0,t[n]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return r.forEach(Object.keys(t).concat(Object.keys(e)),function(t){var e=c[t]||i,o=e(t);r.isUndefined(o)&&e!==l||(n[t]=o)}),n}},7522(t,e,n){"use strict";var r=n(47763);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},82881(t,e,n){"use strict";var r=n(9516),o=n(96987);t.exports=function(t,e,n){var i=this||o;return r.forEach(n,function(n){t=n.call(i,t,e)}),t}},96987(t,e,n){"use strict";var r=n(9516),o=n(7018),i=n(5449),a={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var l,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(l=n(35592)),l),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)||e&&"application/json"===e["Content-Type"]?(s(e,"application/json"),function(t,e,n){if(r.isString(t))try{return(e||JSON.parse)(t),r.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||c.transitional,n=e&&e.silentJSONParsing,o=e&&e.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(a){if("SyntaxError"===t.name)throw i(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],function(t){c.headers[t]={}}),r.forEach(["post","put","patch"],function(t){c.headers[t]=r.merge(a)}),t.exports=c},49641(t){t.exports={version:"0.24.0"}},69012(t){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},79106(t,e,n){"use strict";var r=n(9516);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(r.isURLSearchParams(e))i=e.toString();else{var a=[];r.forEach(e,function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(o(e)+"="+o(t))}))}),i=a.join("&")}if(i){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},84680(t){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},33948(t,e,n){"use strict";var r=n(9516);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,i,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},29137(t){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},45019(t){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},64202(t,e,n){"use strict";var r=n(9516);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},7018(t,e,n){"use strict";var r=n(9516);t.exports=function(t,e){r.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})}},62012(t,e,n){"use strict";var r=n(9516),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,i,a={};return t?(r.forEach(t.split("\n"),function(t){if(i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e){if(a[e]&&o.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}}),a):a}},17980(t){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},34841(t,e,n){"use strict";var r=n(49641).version,o={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){o[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var i={};o.transitional=function(t,e,n){function o(t,e){return"[Axios v"+r+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,r,a){if(!1===t)throw new Error(o(r," has been removed"+(e?" in "+e:"")));return e&&!i[r]&&(i[r]=!0,console.warn(o(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,a)}},t.exports={assertOptions:function(t,e,n){if("object"!=typeof t)throw new TypeError("options must be an object");for(var r=Object.keys(t),o=r.length;o-- >0;){var i=r[o],a=e[i];if(a){var s=t[i],l=void 0===s||a(s,i,t);if(!0!==l)throw new TypeError("option "+i+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},9516(t,e,n){"use strict";var r=n(69012),o=Object.prototype.toString;function i(t){return"[object Array]"===o.call(t)}function a(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function l(t){if("[object Object]"!==o.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function c(t){return"[object Function]"===o.call(t)}function d(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:i,isArrayBuffer:function(t){return"[object ArrayBuffer]"===o.call(t)},isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isPlainObject:l,isUndefined:a,isDate:function(t){return"[object Date]"===o.call(t)},isFile:function(t){return"[object File]"===o.call(t)},isBlob:function(t){return"[object Blob]"===o.call(t)},isFunction:c,isStream:function(t){return s(t)&&c(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:d,merge:function t(){var e={};function n(n,r){l(e[r])&&l(n)?e[r]=t(e[r],n):l(n)?e[r]=t({},n):i(n)?e[r]=n.slice():e[r]=n}for(var r=0,o=arguments.length;r<o;r++)d(arguments[r],n);return e},extend:function(t,e,n){return d(e,function(e,o){t[o]=n&&"function"==typeof e?r(e,n):e}),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},4982(t,e,n){"use strict";var r=n(27368),o=n(79818),i=n(21026),a=n(528),s=n(68989),l=n(77575),c=n(55968),d=n(55387),p=n(56815),h=n(56227),u=n(19543),f=n(52672),m=n(31189),g=n(49228),b=n(68502),y=n(39334),w=n(52730),A=n(27300),x=o("SharedArrayBuffer.prototype.byteLength",!0),_=o("Date.prototype.getTime"),v=Object.getPrototypeOf,k=o("Object.prototype.toString"),C=a("%Set%",!0),E=o("Map.prototype.has",!0),S=o("Map.prototype.get",!0),M=o("Map.prototype.size",!0),B=o("Set.prototype.add",!0),T=o("Set.prototype.delete",!0),L=o("Set.prototype.has",!0),O=o("Set.prototype.size",!0);function I(t,e,n,r){for(var o,i=s(t);(o=i.next())&&!o.done;)if(P(e,o.value,n,r))return T(t,o.value),!0;return!1}function N(t){return void 0===t?null:"object"!=typeof t?"symbol"!=typeof t&&("string"!=typeof t&&"number"!=typeof t||+t==+t):void 0}function R(t,e,n,o,i,a){var s=N(n);if(null!=s)return s;var l=S(e,s),c=r({},i,{strict:!1});return!(void 0===l&&!E(e,s)||!P(o,l,c,a))&&(!E(t,s)&&P(o,l,c,a))}function z(t,e,n){var r=N(n);return null!=r?r:L(e,r)&&!L(t,r)}function H(t,e,n,r,o,i){for(var a,l,c=s(t);(a=c.next())&&!a.done;)if(P(n,l=a.value,o,i)&&P(r,S(e,l),o,i))return T(t,l),!0;return!1}function P(t,e,n,o){var a=n||{};if(a.strict?c(t,e):t===e)return!0;if(b(t)!==b(e))return!1;if(!t||!e||"object"!=typeof t&&"object"!=typeof e)return a.strict?c(t,e):t==e;var l,T=o.has(t),N=o.has(e);if(T&&N){if(o.get(t)===o.get(e))return!0}else l={};return T||o.set(t,l),N||o.set(e,l),function(t,e,n,o){var a,l;if(typeof t!=typeof e)return!1;if(null==t||null==e)return!1;if(k(t)!==k(e))return!1;if(d(t)!==d(e))return!1;var c=p(t),b=p(e);if(c!==b)return!1;var T=t instanceof Error,N=e instanceof Error;if(T!==N)return!1;if((T||N)&&(t.name!==e.name||t.message!==e.message))return!1;var $=f(t),j=f(e);if($!==j)return!1;if(($||j)&&(t.source!==e.source||i(t)!==i(e)))return!1;var F=u(t),U=u(e);if(F!==U)return!1;if((F||U)&&_(t)!==_(e))return!1;if(n.strict&&v&&v(t)!==v(e))return!1;var q=w(t),W=w(e);if(q!==W)return!1;if(q||W){if(t.length!==e.length)return!1;for(a=0;a<t.length;a++)if(t[a]!==e[a])return!1;return!0}var V=D(t),Y=D(e);if(V!==Y)return!1;if(V||Y){if(t.length!==e.length)return!1;for(a=0;a<t.length;a++)if(t[a]!==e[a])return!1;return!0}var X=h(t),Z=h(e);if(X!==Z)return!1;if(X||Z)return A(t)===A(e)&&("function"==typeof Uint8Array&&P(new Uint8Array(t),new Uint8Array(e),n,o));var K=m(t),J=m(e);if(K!==J)return!1;if(K||J)return x(t)===x(e)&&("function"==typeof Uint8Array&&P(new Uint8Array(t),new Uint8Array(e),n,o));if(typeof t!=typeof e)return!1;var G=g(t),Q=g(e);if(G.length!==Q.length)return!1;for(G.sort(),Q.sort(),a=G.length-1;a>=0;a--)if(G[a]!=Q[a])return!1;for(a=G.length-1;a>=0;a--)if(!P(t[l=G[a]],e[l],n,o))return!1;var tt=y(t),et=y(e);if(tt!==et)return!1;if("Set"===tt||"Set"===et)return function(t,e,n,r){if(O(t)!==O(e))return!1;var o,i,a,l=s(t),c=s(e);for(;(o=l.next())&&!o.done;)if(o.value&&"object"==typeof o.value)a||(a=new C),B(a,o.value);else if(!L(e,o.value)){if(n.strict)return!1;if(!z(t,e,o.value))return!1;a||(a=new C),B(a,o.value)}if(a){for(;(i=c.next())&&!i.done;)if(i.value&&"object"==typeof i.value){if(!I(a,i.value,n.strict,r))return!1}else if(!n.strict&&!L(t,i.value)&&!I(a,i.value,n.strict,r))return!1;return 0===O(a)}return!0}(t,e,n,o);if("Map"===tt)return function(t,e,n,o){if(M(t)!==M(e))return!1;var i,a,l,c,d,p,h=s(t),u=s(e);for(;(i=h.next())&&!i.done;)if(c=i.value[0],d=i.value[1],c&&"object"==typeof c)l||(l=new C),B(l,c);else if(void 0===(p=S(e,c))&&!E(e,c)||!P(d,p,n,o)){if(n.strict)return!1;if(!R(t,e,c,d,n,o))return!1;l||(l=new C),B(l,c)}if(l){for(;(a=u.next())&&!a.done;)if(c=a.value[0],p=a.value[1],c&&"object"==typeof c){if(!H(l,t,c,p,n,o))return!1}else if(!(n.strict||t.has(c)&&P(S(t,c),p,n,o)||H(l,t,c,p,r({},n,{strict:!1}),o)))return!1;return 0===O(l)}return!0}(t,e,n,o);return!0}(t,e,a,o)}function D(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length)&&("function"==typeof t.copy&&"function"==typeof t.slice&&(!(t.length>0&&"number"!=typeof t[0])&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))))}t.exports=function(t,e,n){return P(t,e,n,l())}},54224(t,e,n){var r={"./cdtr-aurora-preset":[55379,[5379]],"./cdtr-aurora-preset/":[55379,[5379]],"./cdtr-aurora-preset/index":[55379,[5379]],"./cdtr-aurora-preset/index.js":[55379,[5379]],"./cdtr-background-video":[44475,[5284,4475]],"./cdtr-background-video/":[44475,[5284,4475]],"./cdtr-background-video/index":[44475,[5284,4475]],"./cdtr-background-video/index.js":[44475,[5284,4475]],"./cdtr-glows-preset":[85391,[5391]],"./cdtr-glows-preset/":[85391,[5391]],"./cdtr-glows-preset/index":[85391,[5391]],"./cdtr-glows-preset/index.js":[85391,[5391]],"./cdtr-halo-preset":[40353,[353]],"./cdtr-halo-preset/":[40353,[353]],"./cdtr-halo-preset/index":[40353,[353]],"./cdtr-halo-preset/index.js":[40353,[353]],"./cdtr-images-preset":[68141,[8141]],"./cdtr-images-preset/":[68141,[8141]],"./cdtr-images-preset/index":[68141,[8141]],"./cdtr-images-preset/index.js":[68141,[8141]],"./cdtr-particlesjs":[70211,[211]],"./cdtr-particlesjs/":[70211,[211]],"./cdtr-particlesjs/index":[70211,[211]],"./cdtr-particlesjs/index.js":[70211,[211]]};function o(t){try{if(!n.o(r,t))return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}catch(t){return Promise.reject(t)}var e=r[t],o=e[0];return Promise.all(e[1].map(n.e)).then(()=>n(o))}o.keys=()=>Object.keys(r),o.id=54224,t.exports=o},604(t,e,n){var r={"./cdtr-aurora-preset":[55379,[5379]],"./cdtr-aurora-preset/":[55379,[5379]],"./cdtr-aurora-preset/index":[55379,[5379]],"./cdtr-aurora-preset/index.js":[55379,[5379]],"./cdtr-background-video":[44475,[5284,4475]],"./cdtr-background-video/":[44475,[5284,4475]],"./cdtr-background-video/index":[44475,[5284,4475]],"./cdtr-background-video/index.js":[44475,[5284,4475]],"./cdtr-glows-preset":[85391,[5391]],"./cdtr-glows-preset/":[85391,[5391]],"./cdtr-glows-preset/index":[85391,[5391]],"./cdtr-glows-preset/index.js":[85391,[5391]],"./cdtr-halo-preset":[40353,[353]],"./cdtr-halo-preset/":[40353,[353]],"./cdtr-halo-preset/index":[40353,[353]],"./cdtr-halo-preset/index.js":[40353,[353]],"./cdtr-images-preset":[68141,[8141]],"./cdtr-images-preset/":[68141,[8141]],"./cdtr-images-preset/index":[68141,[8141]],"./cdtr-images-preset/index.js":[68141,[8141]],"./cdtr-particlesjs":[70211,[211]],"./cdtr-particlesjs/":[70211,[211]],"./cdtr-particlesjs/index":[70211,[211]],"./cdtr-particlesjs/index.js":[70211,[211]]};function o(t){try{if(!n.o(r,t))return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}catch(t){return Promise.reject(t)}var e=r[t],o=e[0];return Promise.all(e[1].map(n.e)).then(()=>n(o))}o.keys=()=>Object.keys(r),o.id=604,t.exports=o},50629(t,e,n){var r={"./401":[9250,[9250]],"./401.js":[9250,[9250]],"./404":[77997,[7997]],"./404.js":[77997,[7997]],"./500":[64762,[4762]],"./500.js":[64762,[4762]],"./504":[91334,[1334]],"./504.js":[91334,[1334]]};function o(t){try{if(!n.o(r,t))return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}catch(t){return Promise.reject(t)}var e=r[t],o=e[0];return n.e(e[1][0]).then(()=>n(o))}o.keys=()=>Object.keys(r),o.id=50629,t.exports=o},56489(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg=="},59224(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+"},86973(){},14834(t,e,n){"use strict";var r=n(69501),o="undefined"==typeof globalThis?n.g:globalThis;t.exports=function(){for(var t=[],e=0;e<r.length;e++)"function"==typeof o[r[e]]&&(t[t.length]=r[e]);return t}},47764(t,e,n){"use strict";function r(t,e){return function(){return t.apply(e,arguments)}}const{toString:o}=Object.prototype,{getPrototypeOf:i}=Object,{iterator:a,toStringTag:s}=Symbol,l=(c=Object.create(null),t=>{const e=o.call(t);return c[e]||(c[e]=e.slice(8,-1).toLowerCase())});var c;const d=t=>(t=t.toLowerCase(),e=>l(e)===t),p=t=>e=>typeof e===t,{isArray:h}=Array,u=p("undefined");function f(t){return null!==t&&!u(t)&&null!==t.constructor&&!u(t.constructor)&&b(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const m=d("ArrayBuffer");const g=p("string"),b=p("function"),y=p("number"),w=t=>null!==t&&"object"==typeof t,A=t=>{if("object"!==l(t))return!1;const e=i(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||s in t||a in t)},x=d("Date"),_=d("File"),v=d("Blob"),k=d("FileList");const C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{},E=void 0!==C.FormData?C.FormData:void 0,S=d("URLSearchParams"),[M,B,T,L]=["ReadableStream","Request","Response","Headers"].map(d);function O(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,o;if("object"!=typeof t&&(t=[t]),h(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{if(f(t))return;const o=n?Object.getOwnPropertyNames(t):Object.keys(t),i=o.length;let a;for(r=0;r<i;r++)a=o[r],e.call(null,t[a],a,t)}}function I(t,e){if(f(t))return null;e=e.toLowerCase();const n=Object.keys(t);let r,o=n.length;for(;o-- >0;)if(r=n[o],e===r.toLowerCase())return r;return null}const N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,R=t=>!u(t)&&t!==N;const z=(H="undefined"!=typeof Uint8Array&&i(Uint8Array),t=>H&&t instanceof H);var H;const P=d("HTMLFormElement"),D=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),$=d("RegExp"),j=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};O(n,(n,o)=>{let i;!1!==(i=e(n,o,t))&&(r[o]=i||n)}),Object.defineProperties(t,r)};const F=d("AsyncFunction"),U=(q="function"==typeof setImmediate,W=b(N.postMessage),q?setImmediate:W?(V=`axios@${Math.random()}`,Y=[],N.addEventListener("message",({source:t,data:e})=>{t===N&&e===V&&Y.length&&Y.shift()()},!1),t=>{Y.push(t),N.postMessage(V,"*")}):t=>setTimeout(t));var q,W,V,Y;const X="undefined"!=typeof queueMicrotask?queueMicrotask.bind(N):"undefined"!=typeof process&&process.nextTick||U;var Z={isArray:h,isArrayBuffer:m,isBuffer:f,isFormData:t=>{let e;return t&&(E&&t instanceof E||b(t.append)&&("formdata"===(e=l(t))||"object"===e&&b(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&m(t.buffer),e},isString:g,isNumber:y,isBoolean:t=>!0===t||!1===t,isObject:w,isPlainObject:A,isEmptyObject:t=>{if(!w(t)||f(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(t){return!1}},isReadableStream:M,isRequest:B,isResponse:T,isHeaders:L,isUndefined:u,isDate:x,isFile:_,isReactNativeBlob:t=>!(!t||void 0===t.uri),isReactNative:t=>t&&void 0!==t.getParts,isBlob:v,isRegExp:$,isFunction:b,isStream:t=>w(t)&&b(t.pipe),isURLSearchParams:S,isTypedArray:z,isFileList:k,forEach:O,merge:function t(){const{caseless:e,skipUndefined:n}=R(this)&&this||{},r={},o=(o,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const a=e&&I(r,i)||i;A(r[a])&&A(o)?r[a]=t(r[a],o):A(o)?r[a]=t({},o):h(o)?r[a]=o.slice():n&&u(o)||(r[a]=o)};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&O(arguments[t],o);return r},extend:(t,e,n,{allOwnKeys:o}={})=>(O(e,(e,o)=>{n&&b(e)?Object.defineProperty(t,o,{value:r(e,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,o,{value:e,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let o,a,s;const l={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),a=o.length;a-- >0;)s=o[a],r&&!r(s,t,e)||l[s]||(e[s]=t[s],l[s]=!0);t=!1!==n&&i(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:l,kindOfTest:d,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(h(t))return t;let e=t.length;if(!y(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[a]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:P,hasOwnProperty:D,hasOwnProp:D,reduceDescriptors:j,freezeMethods:t=>{j(t,(e,n)=>{if(b(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];b(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach(t=>{n[t]=!0})};return h(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,n){return e.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:I,global:N,isContextDefined:R,isSpecCompliantForm:function(t){return!!(t&&b(t.append)&&"FormData"===t[s]&&t[a])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(w(t)){if(e.indexOf(t)>=0)return;if(f(t))return t;if(!("toJSON"in t)){e[r]=t;const o=h(t)?[]:{};return O(t,(t,e)=>{const i=n(t,r+1);!u(i)&&(o[e]=i)}),e[r]=void 0,o}}return t};return n(t,0)},isAsyncFn:F,isThenable:t=>t&&(w(t)||b(t))&&b(t.then)&&b(t.catch),setImmediate:U,asap:X,isIterable:t=>null!=t&&b(t[a])};class K extends Error{static from(t,e,n,r,o,i){const a=new K(t.message,e||t.code,n,r,o);return a.cause=t,a.name=t.name,null!=t.status&&null==a.status&&(a.status=t.status),i&&Object.assign(a,i),a}constructor(t,e,n,r,o){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Z.toJSONObject(this.config),code:this.code,status:this.status}}}K.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",K.ERR_BAD_OPTION="ERR_BAD_OPTION",K.ECONNABORTED="ECONNABORTED",K.ETIMEDOUT="ETIMEDOUT",K.ERR_NETWORK="ERR_NETWORK",K.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",K.ERR_DEPRECATED="ERR_DEPRECATED",K.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",K.ERR_BAD_REQUEST="ERR_BAD_REQUEST",K.ERR_CANCELED="ERR_CANCELED",K.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",K.ERR_INVALID_URL="ERR_INVALID_URL";var J=K;function G(t){return Z.isPlainObject(t)||Z.isArray(t)}function Q(t){return Z.endsWith(t,"[]")?t.slice(0,-2):t}function tt(t,e,n){return t?t.concat(e).map(function(t,e){return t=Q(t),!n&&e?"["+t+"]":t}).join(n?".":""):e}const et=Z.toFlatObject(Z,{},null,function(t){return/^is[A-Z]/.test(t)});function nt(t,e,n){if(!Z.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const r=(n=Z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,e){return!Z.isUndefined(e[t])})).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Z.isSpecCompliantForm(e);if(!Z.isFunction(o))throw new TypeError("visitor must be a function");function l(t){if(null===t)return"";if(Z.isDate(t))return t.toISOString();if(Z.isBoolean(t))return t.toString();if(!s&&Z.isBlob(t))throw new J("Blob is not supported. Use a Buffer instead.");return Z.isArrayBuffer(t)||Z.isTypedArray(t)?s&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function c(t,n,o){let s=t;if(Z.isReactNative(e)&&Z.isReactNativeBlob(t))return e.append(tt(o,n,i),l(t)),!1;if(t&&!o&&"object"==typeof t)if(Z.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(Z.isArray(t)&&function(t){return Z.isArray(t)&&!t.some(G)}(t)||(Z.isFileList(t)||Z.endsWith(n,"[]"))&&(s=Z.toArray(t)))return n=Q(n),s.forEach(function(t,r){!Z.isUndefined(t)&&null!==t&&e.append(!0===a?tt([n],r,i):null===a?n:n+"[]",l(t))}),!1;return!!G(t)||(e.append(tt(o,n,i),l(t)),!1)}const d=[],p=Object.assign(et,{defaultVisitor:c,convertValue:l,isVisitable:G});if(!Z.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!Z.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+r.join("."));d.push(n),Z.forEach(n,function(n,i){!0===(!(Z.isUndefined(n)||null===n)&&o.call(e,n,Z.isString(i)?i.trim():i,r,p))&&t(n,r?r.concat(i):[i])}),d.pop()}}(t),e}function rt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function ot(t,e){this._pairs=[],t&&nt(t,this,e)}const it=ot.prototype;function at(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function st(t,e,n){if(!e)return t;const r=n&&n.encode||at,o=Z.isFunction(n)?{serialize:n}:n,i=o&&o.serialize;let a;if(a=i?i(e,o):Z.isURLSearchParams(e)?e.toString():new ot(e,o).toString(r),a){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+a}return t}it.append=function(t,e){this._pairs.push([t,e])},it.toString=function(t){const e=t?function(e){return t.call(this,e,rt)}:rt;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};var lt=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Z.forEach(this.handlers,function(e){null!==e&&t(e)})}},ct={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},dt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ot,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const pt="undefined"!=typeof window&&"undefined"!=typeof document,ht="object"==typeof navigator&&navigator||void 0,ut=pt&&(!ht||["ReactNative","NativeScript","NS"].indexOf(ht.product)<0),ft="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,mt=pt&&window.location.href||"http://localhost";var gt={...Object.freeze({__proto__:null,hasBrowserEnv:pt,hasStandardBrowserWebWorkerEnv:ft,hasStandardBrowserEnv:ut,navigator:ht,origin:mt}),...dt};function bt(t){function e(t,n,r,o){let i=t[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=t.length;if(i=!i&&Z.isArray(r)?r.length:i,s)return Z.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&Z.isObject(r[i])||(r[i]=[]);return e(t,n,r[i],o)&&Z.isArray(r[i])&&(r[i]=function(t){const e={},n=Object.keys(t);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],e[i]=t[i];return e}(r[i])),!a}if(Z.isFormData(t)&&Z.isFunction(t.entries)){const n={};return Z.forEachEntry(t,(t,r)=>{e(function(t){return Z.matchAll(/\w+|\[(\w*)]/g,t).map(t=>"[]"===t[0]?"":t[1]||t[0])}(t),r,n,0)}),n}return null}const yt={transitional:ct,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,o=Z.isObject(t);o&&Z.isHTMLForm(t)&&(t=new FormData(t));if(Z.isFormData(t))return r?JSON.stringify(bt(t)):t;if(Z.isArrayBuffer(t)||Z.isBuffer(t)||Z.isStream(t)||Z.isFile(t)||Z.isBlob(t)||Z.isReadableStream(t))return t;if(Z.isArrayBufferView(t))return t.buffer;if(Z.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return nt(t,new gt.classes.URLSearchParams,{visitor:function(t,e,n,r){return gt.isNode&&Z.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...e})}(t,this.formSerializer).toString();if((i=Z.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return nt(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||r?(e.setContentType("application/json",!1),function(t,e,n){if(Z.isString(t))try{return(e||JSON.parse)(t),Z.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||yt.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(Z.isResponse(t)||Z.isReadableStream(t))return t;if(t&&Z.isString(t)&&(n&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t,this.parseReviver)}catch(t){if(n){if("SyntaxError"===t.name)throw J.from(t,J.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gt.classes.FormData,Blob:gt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Z.forEach(["delete","get","head","post","put","patch"],t=>{yt.headers[t]={}});var wt=yt;const At=Z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const xt=Symbol("internals");function _t(t){return t&&String(t).trim().toLowerCase()}function vt(t){return!1===t||null==t?t:Z.isArray(t)?t.map(vt):String(t)}function kt(t,e,n,r,o){return Z.isFunction(r)?r.call(this,e,n):(o&&(e=n),Z.isString(e)?Z.isString(r)?-1!==e.indexOf(r):Z.isRegExp(r)?r.test(e):void 0:void 0)}class Ct{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function o(t,e,n){const o=_t(e);if(!o)throw new Error("header name must be a non-empty string");const i=Z.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||e]=vt(t))}const i=(t,e)=>Z.forEach(t,(t,n)=>o(t,n,e));if(Z.isPlainObject(t)||t instanceof this.constructor)i(t,e);else if(Z.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))i((t=>{const e={};let n,r,o;return t&&t.split("\n").forEach(function(t){o=t.indexOf(":"),n=t.substring(0,o).trim().toLowerCase(),r=t.substring(o+1).trim(),!n||e[n]&&At[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e})(t),e);else if(Z.isObject(t)&&Z.isIterable(t)){let n,r,o={};for(const e of t){if(!Z.isArray(e))throw TypeError("Object iterator must return a key-value pair");o[r=e[0]]=(n=o[r])?Z.isArray(n)?[...n,e[1]]:[n,e[1]]:e[1]}i(o,e)}else null!=t&&o(e,t,n);return this}get(t,e){if(t=_t(t)){const n=Z.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(Z.isFunction(e))return e.call(this,t,n);if(Z.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=_t(t)){const n=Z.findKey(this,t);return!(!n||void 0===this[n]||e&&!kt(0,this[n],n,e))}return!1}delete(t,e){const n=this;let r=!1;function o(t){if(t=_t(t)){const o=Z.findKey(n,t);!o||e&&!kt(0,n[o],o,e)||(delete n[o],r=!0)}}return Z.isArray(t)?t.forEach(o):o(t),r}clear(t){const e=Object.keys(this);let n=e.length,r=!1;for(;n--;){const o=e[n];t&&!kt(0,this[o],o,t,!0)||(delete this[o],r=!0)}return r}normalize(t){const e=this,n={};return Z.forEach(this,(r,o)=>{const i=Z.findKey(n,o);if(i)return e[i]=vt(r),void delete e[o];const a=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,n)=>e.toUpperCase()+n)}(o):String(o).trim();a!==o&&delete e[o],e[a]=vt(r),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return Z.forEach(this,(n,r)=>{null!=n&&!1!==n&&(e[r]=t&&Z.isArray(n)?n.join(", "):n)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach(t=>n.set(t)),n}static accessor(t){const e=(this[xt]=this[xt]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=_t(t);e[r]||(!function(t,e){const n=Z.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(t,n,o){return this[r].call(this,e,t,n,o)},configurable:!0})})}(n,t),e[r]=!0)}return Z.isArray(t)?t.forEach(r):r(t),this}}Ct.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Z.reduceDescriptors(Ct.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}}),Z.freezeMethods(Ct);var Et=Ct;function St(t,e){const n=this||wt,r=e||n,o=Et.from(r.headers);let i=r.data;return Z.forEach(t,function(t){i=t.call(n,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function Mt(t){return!(!t||!t.__CANCEL__)}var Bt=class extends J{constructor(t,e,n){super(null==t?"canceled":t,J.ERR_CANCELED,e,n),this.name="CanceledError",this.__CANCEL__=!0}};function Tt(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new J("Request failed with status code "+n.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}const Lt=(t,e,n=3)=>{let r=0;const o=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o,i=0,a=0;return e=void 0!==e?e:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let d=a,p=0;for(;d!==i;)p+=n[d++],d%=t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),l-o<e)return;const h=c&&l-c;return h?Math.round(1e3*p/h):void 0}}(50,250);return function(t,e){let n,r,o=0,i=1e3/e;const a=(e,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),t(...e)};return[(...t)=>{const e=Date.now(),s=e-o;s>=i?a(t,e):(n=t,r||(r=setTimeout(()=>{r=null,a(n)},i-s)))},()=>n&&a(n)]}(n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;t({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[e?"download":"upload"]:!0})},n)},Ot=(t,e)=>{const n=null!=t;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},It=t=>(...e)=>Z.asap(()=>t(...e));var Nt=gt.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,gt.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(gt.origin),gt.navigator&&/(msie|trident)/i.test(gt.navigator.userAgent)):()=>!0,Rt=gt.hasStandardBrowserEnv?{write(t,e,n,r,o,i,a){if("undefined"==typeof document)return;const s=[`${t}=${encodeURIComponent(e)}`];Z.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),Z.isString(r)&&s.push(`path=${r}`),Z.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),Z.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(t){if("undefined"==typeof document)return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function zt(t,e,n){let r=!("string"==typeof(o=e)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));var o;return t&&(r||0==n)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const Ht=t=>t instanceof Et?{...t}:t;function Pt(t,e){e=e||{};const n={};function r(t,e,n,r){return Z.isPlainObject(t)&&Z.isPlainObject(e)?Z.merge.call({caseless:r},t,e):Z.isPlainObject(e)?Z.merge({},e):Z.isArray(e)?e.slice():e}function o(t,e,n,o){return Z.isUndefined(e)?Z.isUndefined(t)?void 0:r(void 0,t,0,o):r(t,e,0,o)}function i(t,e){if(!Z.isUndefined(e))return r(void 0,e)}function a(t,e){return Z.isUndefined(e)?Z.isUndefined(t)?void 0:r(void 0,t):r(void 0,e)}function s(n,o,i){return i in e?r(n,o):i in t?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(t,e,n)=>o(Ht(t),Ht(e),0,!0)};return Z.forEach(Object.keys({...t,...e}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const i=Z.hasOwnProp(l,r)?l[r]:o,a=i(t[r],e[r],r);Z.isUndefined(a)&&i!==s||(n[r]=a)}),n}var Dt=t=>{const e=Pt({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=e;if(e.headers=a=Et.from(a),e.url=st(zt(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),Z.isFormData(n))if(gt.hasStandardBrowserEnv||gt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(Z.isFunction(n.getHeaders)){const t=n.getHeaders(),e=["content-type","content-length"];Object.entries(t).forEach(([t,n])=>{e.includes(t.toLowerCase())&&a.set(t,n)})}if(gt.hasStandardBrowserEnv&&(r&&Z.isFunction(r)&&(r=r(e)),r||!1!==r&&Nt(e.url))){const t=o&&i&&Rt.read(i);t&&a.set(o,t)}return e};var $t="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise(function(e,n){const r=Dt(t);let o=r.data;const i=Et.from(r.headers).normalize();let a,s,l,c,d,{responseType:p,onUploadProgress:h,onDownloadProgress:u}=r;function f(){c&&c(),d&&d(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=Et.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Tt(function(t){e(t),f()},function(t){n(t),f()},{data:p&&"text"!==p&&"json"!==p?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:t,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new J("Request aborted",J.ECONNABORTED,t,m)),m=null)},m.onerror=function(e){const r=e&&e.message?e.message:"Network Error",o=new J(r,J.ERR_NETWORK,t,m);o.event=e||null,n(o),m=null},m.ontimeout=function(){let e=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||ct;r.timeoutErrorMessage&&(e=r.timeoutErrorMessage),n(new J(e,o.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,t,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&Z.forEach(i.toJSON(),function(t,e){m.setRequestHeader(e,t)}),Z.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),p&&"json"!==p&&(m.responseType=r.responseType),u&&([l,d]=Lt(u,!0),m.addEventListener("progress",l)),h&&m.upload&&([s,c]=Lt(h),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=e=>{m&&(n(!e||e.type?new Bt(null,t,m):e),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const b=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(r.url);b&&-1===gt.protocols.indexOf(b)?n(new J("Unsupported protocol "+b+":",J.ERR_BAD_REQUEST,t)):m.send(o||null)})};var jt=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let n,r=new AbortController;const o=function(t){if(!n){n=!0,a();const e=t instanceof Error?t:this.reason;r.abort(e instanceof J?e:new Bt(e instanceof Error?e.message:e))}};let i=e&&setTimeout(()=>{i=null,o(new J(`timeout of ${e}ms exceeded`,J.ETIMEDOUT))},e);const a=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach(t=>{t.unsubscribe?t.unsubscribe(o):t.removeEventListener("abort",o)}),t=null)};t.forEach(t=>t.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>Z.asap(a),s}};const Ft=function*(t,e){let n=t.byteLength;if(!e||n<e)return void(yield t);let r,o=0;for(;o<n;)r=o+e,yield t.slice(o,r),o=r},Ut=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const e=t.getReader();try{for(;;){const{done:t,value:n}=await e.read();if(t)break;yield n}}finally{await e.cancel()}},qt=(t,e,n,r)=>{const o=async function*(t,e){for await(const n of Ut(t))yield*Ft(n,e)}(t,e);let i,a=0,s=t=>{i||(i=!0,r&&r(t))};return new ReadableStream({async pull(t){try{const{done:e,value:r}=await o.next();if(e)return s(),void t.close();let i=r.byteLength;if(n){let t=a+=i;n(t)}t.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:t=>(s(t),o.return())},{highWaterMark:2})},{isFunction:Wt}=Z,Vt=(({Request:t,Response:e})=>({Request:t,Response:e}))(Z.global),{ReadableStream:Yt,TextEncoder:Xt}=Z.global,Zt=(t,...e)=>{try{return!!t(...e)}catch(t){return!1}},Kt=t=>{t=Z.merge.call({skipUndefined:!0},Vt,t);const{fetch:e,Request:n,Response:r}=t,o=e?Wt(e):"function"==typeof fetch,i=Wt(n),a=Wt(r);if(!o)return!1;const s=o&&Wt(Yt),l=o&&("function"==typeof Xt?(c=new Xt,t=>c.encode(t)):async t=>new Uint8Array(await new n(t).arrayBuffer()));var c;const d=i&&s&&Zt(()=>{let t=!1;const e=new n(gt.origin,{body:new Yt,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),p=a&&s&&Zt(()=>Z.isReadableStream(new r("").body)),h={stream:p&&(t=>t.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!h[t]&&(h[t]=(e,n)=>{let r=e&&e[t];if(r)return r.call(e);throw new J(`Response type '${t}' is not supported`,J.ERR_NOT_SUPPORT,n)})});const u=async(t,e)=>{const r=Z.toFiniteNumber(t.getContentLength());return null==r?(async t=>{if(null==t)return 0;if(Z.isBlob(t))return t.size;if(Z.isSpecCompliantForm(t)){const e=new n(gt.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return Z.isArrayBufferView(t)||Z.isArrayBuffer(t)?t.byteLength:(Z.isURLSearchParams(t)&&(t+=""),Z.isString(t)?(await l(t)).byteLength:void 0)})(e):r};return async t=>{let{url:o,method:a,data:s,signal:l,cancelToken:c,timeout:f,onDownloadProgress:m,onUploadProgress:g,responseType:b,headers:y,withCredentials:w="same-origin",fetchOptions:A}=Dt(t),x=e||fetch;b=b?(b+"").toLowerCase():"text";let _=jt([l,c&&c.toAbortSignal()],f),v=null;const k=_&&_.unsubscribe&&(()=>{_.unsubscribe()});let C;try{if(g&&d&&"get"!==a&&"head"!==a&&0!==(C=await u(y,s))){let t,e=new n(o,{method:"POST",body:s,duplex:"half"});if(Z.isFormData(s)&&(t=e.headers.get("content-type"))&&y.setContentType(t),e.body){const[t,n]=Ot(C,Lt(It(g)));s=qt(e.body,65536,t,n)}}Z.isString(w)||(w=w?"include":"omit");const e=i&&"credentials"in n.prototype,l={...A,signal:_,method:a.toUpperCase(),headers:y.normalize().toJSON(),body:s,duplex:"half",credentials:e?w:void 0};v=i&&new n(o,l);let c=await(i?x(v,A):x(o,l));const f=p&&("stream"===b||"response"===b);if(p&&(m||f&&k)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=c[e]});const e=Z.toFiniteNumber(c.headers.get("content-length")),[n,o]=m&&Ot(e,Lt(It(m),!0))||[];c=new r(qt(c.body,65536,n,()=>{o&&o(),k&&k()}),t)}b=b||"text";let E=await h[Z.findKey(h,b)||"text"](c,t);return!f&&k&&k(),await new Promise((e,n)=>{Tt(e,n,{data:E,headers:Et.from(c.headers),status:c.status,statusText:c.statusText,config:t,request:v})})}catch(e){if(k&&k(),e&&"TypeError"===e.name&&/Load failed|fetch/i.test(e.message))throw Object.assign(new J("Network Error",J.ERR_NETWORK,t,v,e&&e.response),{cause:e.cause||e});throw J.from(e,e&&e.code,t,v,e&&e.response)}}},Jt=new Map,Gt=t=>{let e=t&&t.env||{};const{fetch:n,Request:r,Response:o}=e,i=[r,o,n];let a,s,l=i.length,c=Jt;for(;l--;)a=i[l],s=c.get(a),void 0===s&&c.set(a,s=l?new Map:Kt(e)),c=s;return s};Gt();const Qt={http:null,xhr:$t,fetch:{get:Gt}};Z.forEach(Qt,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}});const te=t=>`- ${t}`,ee=t=>Z.isFunction(t)||null===t||!1===t;var ne={getAdapter:function(t,e){t=Z.isArray(t)?t:[t];const{length:n}=t;let r,o;const i={};for(let a=0;a<n;a++){let n;if(r=t[a],o=r,!ee(r)&&(o=Qt[(n=String(r)).toLowerCase()],void 0===o))throw new J(`Unknown adapter '${n}'`);if(o&&(Z.isFunction(o)||(o=o.get(e))))break;i[n||"#"+a]=o}if(!o){const t=Object.entries(i).map(([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build"));let e=n?t.length>1?"since :\n"+t.map(te).join("\n"):" "+te(t[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+e,"ERR_NOT_SUPPORT")}return o},adapters:Qt};function re(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Bt(null,t)}function oe(t){re(t),t.headers=Et.from(t.headers),t.data=St.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return ne.getAdapter(t.adapter||wt.adapter,t)(t).then(function(e){return re(t),e.data=St.call(t,t.transformResponse,e),e.headers=Et.from(e.headers),e},function(e){return Mt(e)||(re(t),e&&e.response&&(e.response.data=St.call(t,t.transformResponse,e.response),e.response.headers=Et.from(e.response.headers))),Promise.reject(e)})}const ie="1.13.6",ae={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{ae[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const se={};ae.transitional=function(t,e,n){function r(t,e){return"[Axios v"+ie+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,o,i)=>{if(!1===t)throw new J(r(o," has been removed"+(e?" in "+e:"")),J.ERR_DEPRECATED);return e&&!se[o]&&(se[o]=!0,console.warn(r(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,o,i)}},ae.spelling=function(t){return(e,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};var le={assertOptions:function(t,e,n){if("object"!=typeof t)throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const i=r[o],a=e[i];if(a){const e=t[i],n=void 0===e||a(e,i,t);if(!0!==n)throw new J("option "+i+" must be "+n,J.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new J("Unknown option "+i,J.ERR_BAD_OPTION)}},validators:ae};const ce=le.validators;class de{constructor(t){this.defaults=t||{},this.interceptors={request:new lt,response:new lt}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const n=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?n&&!String(t.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+n):t.stack=n}catch(t){}}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Pt(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:o}=e;void 0!==n&&le.assertOptions(n,{silentJSONParsing:ce.transitional(ce.boolean),forcedJSONParsing:ce.transitional(ce.boolean),clarifyTimeoutError:ce.transitional(ce.boolean),legacyInterceptorReqResOrdering:ce.transitional(ce.boolean)},!1),null!=r&&(Z.isFunction(r)?e.paramsSerializer={serialize:r}:le.assertOptions(r,{encode:ce.function,serialize:ce.function},!0)),void 0!==e.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),le.assertOptions(e,{baseUrl:ce.spelling("baseURL"),withXsrfToken:ce.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=o&&Z.merge(o.common,o[e.method]);o&&Z.forEach(["delete","get","head","post","put","patch","common"],t=>{delete o[t]}),e.headers=Et.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(t){if("function"==typeof t.runWhen&&!1===t.runWhen(e))return;s=s&&t.synchronous;const n=e.transitional||ct;n&&n.legacyInterceptorReqResOrdering?a.unshift(t.fulfilled,t.rejected):a.push(t.fulfilled,t.rejected)});const l=[];let c;this.interceptors.response.forEach(function(t){l.push(t.fulfilled,t.rejected)});let d,p=0;if(!s){const t=[oe.bind(this),void 0];for(t.unshift(...a),t.push(...l),d=t.length,c=Promise.resolve(e);p<d;)c=c.then(t[p++],t[p++]);return c}d=a.length;let h=e;for(;p<d;){const t=a[p++],e=a[p++];try{h=t(h)}catch(t){e.call(this,t);break}}try{c=oe.call(this,h)}catch(t){return Promise.reject(t)}for(p=0,d=l.length;p<d;)c=c.then(l[p++],l[p++]);return c}getUri(t){return st(zt((t=Pt(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls),t.params,t.paramsSerializer)}}Z.forEach(["delete","get","head","options"],function(t){de.prototype[t]=function(e,n){return this.request(Pt(n||{},{method:t,url:e,data:(n||{}).data}))}}),Z.forEach(["post","put","patch"],function(t){function e(e){return function(n,r,o){return this.request(Pt(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}de.prototype[t]=e(),de.prototype[t+"Form"]=e(!0)});var pe=de;class he{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(t){e=t});const n=this;this.promise.then(t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null}),this.promise.then=t=>{let e;const r=new Promise(t=>{n.subscribe(t),e=t}).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t(function(t,r,o){n.reason||(n.reason=new Bt(t,r,o),e(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new he(function(e){t=e}),cancel:t}}}var ue=he;const fe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(fe).forEach(([t,e])=>{fe[e]=t});var me=fe;const ge=function t(e){const n=new pe(e),o=r(pe.prototype.request,n);return Z.extend(o,pe.prototype,n,{allOwnKeys:!0}),Z.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return t(Pt(e,n))},o}(wt);ge.Axios=pe,ge.CanceledError=Bt,ge.CancelToken=ue,ge.isCancel=Mt,ge.VERSION=ie,ge.toFormData=nt,ge.AxiosError=J,ge.Cancel=ge.CanceledError,ge.all=function(t){return Promise.all(t)},ge.spread=function(t){return function(e){return t.apply(null,e)}},ge.isAxiosError=function(t){return Z.isObject(t)&&!0===t.isAxiosError},ge.mergeConfig=Pt,ge.AxiosHeaders=Et,ge.formToJSON=t=>bt(Z.isHTMLForm(t)?new FormData(t):t),ge.getAdapter=ne.getAdapter,ge.HttpStatusCode=me,ge.default=ge,t.exports=ge},68989(t,e,n){"use strict";var r=n(55387),o=n(63693);if(n(53558)()||n(62908)()){var i=Symbol.iterator;t.exports=function(t){return null!=t&&void 0!==t[i]?t[i]():r(t)?Array.prototype[i].call(t):void 0}}else{var a=n(56815),s=n(8120),l=n(528),c=l("%Map%",!0),d=l("%Set%",!0),p=n(79818),h=p("Array.prototype.push"),u=p("String.prototype.charCodeAt"),f=p("String.prototype.slice"),m=function(t){var e=0;return{next:function(){var n,r=e>=t.length;return r||(n=t[e],e+=1),{done:r,value:n}}}},g=function(t,e){if(a(t)||r(t))return m(t);if(s(t)){var n=0;return{next:function(){var e=function(t,e){if(e+1>=t.length)return e+1;var n=u(t,e);if(n<55296||n>56319)return e+1;var r=u(t,e+1);return r<56320||r>57343?e+1:e+2}(t,n),r=f(t,n,e);return n=e,{done:e>t.length,value:r}}}}return e&&void 0!==t["_es6-shim iterator_"]?t["_es6-shim iterator_"]():void 0};if(c||d){var b=n(98009),y=n(2583),w=p("Map.prototype.forEach",!0),A=p("Set.prototype.forEach",!0);if("undefined"==typeof process||!process.versions||!process.versions.node)var x=p("Map.prototype.iterator",!0),_=p("Set.prototype.iterator",!0);var v=p("Map.prototype.@@iterator",!0)||p("Map.prototype._es6-shim iterator_",!0),k=p("Set.prototype.@@iterator",!0)||p("Set.prototype._es6-shim iterator_",!0);t.exports=function(t){return function(t){if(b(t)){if(x)return o(x(t));if(v)return v(t);if(w){var e=[];return w(t,function(t,n){h(e,[n,t])}),m(e)}}if(y(t)){if(_)return o(_(t));if(k)return k(t);if(A){var n=[];return A(t,function(t){h(n,t)}),m(n)}}}(t)||g(t)}}else t.exports=function(t){if(null!=t)return g(t,!0)}}},14523(t){function e(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(n=>{const r=t[n],o=typeof r;"object"!==o&&"function"!==o||Object.isFrozen(r)||e(r)}),t}class n{constructor(t){void 0===t.data&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function o(t,...e){const n=Object.create(null);for(const e in t)n[e]=t[e];return e.forEach(function(t){for(const e in t)n[e]=t[e]}),n}const i=t=>!!t.scope;class a{constructor(t,e){this.buffer="",this.classPrefix=e.classPrefix,t.walk(this)}addText(t){this.buffer+=r(t)}openNode(t){if(!i(t))return;const e=((t,{prefix:e})=>{if(t.startsWith("language:"))return t.replace("language:","language-");if(t.includes(".")){const n=t.split(".");return[`${e}${n.shift()}`,...n.map((t,e)=>`${t}${"_".repeat(e+1)}`)].join(" ")}return`${e}${t}`})(t.scope,{prefix:this.classPrefix});this.span(e)}closeNode(t){i(t)&&(this.buffer+="</span>")}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const s=(t={})=>{const e={children:[]};return Object.assign(e,t),e};class l{constructor(){this.rootNode=s(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const e=s({scope:t});this.add(e),this.stack.push(e)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,e){return"string"==typeof e?t.addText(e):e.children&&(t.openNode(e),e.children.forEach(e=>this._walk(t,e)),t.closeNode(e)),t}static _collapse(t){"string"!=typeof t&&t.children&&(t.children.every(t=>"string"==typeof t)?t.children=[t.children.join("")]:t.children.forEach(t=>{l._collapse(t)}))}}class c extends l{constructor(t){super(),this.options=t}addText(t){""!==t&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,e){const n=t.root;e&&(n.scope=`language:${e}`),this.add(n)}toHTML(){return new a(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function d(t){return t?"string"==typeof t?t:t.source:null}function p(t){return f("(?=",t,")")}function h(t){return f("(?:",t,")*")}function u(t){return f("(?:",t,")?")}function f(...t){return t.map(t=>d(t)).join("")}function m(...t){const e=function(t){const e=t[t.length-1];return"object"==typeof e&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}(t);return"("+(e.capture?"":"?:")+t.map(t=>d(t)).join("|")+")"}function g(t){return new RegExp(t.toString()+"|").exec("").length-1}const b=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function y(t,{joinWith:e}){let n=0;return t.map(t=>{n+=1;const e=n;let r=d(t),o="";for(;r.length>0;){const t=b.exec(r);if(!t){o+=r;break}o+=r.substring(0,t.index),r=r.substring(t.index+t[0].length),"\\"===t[0][0]&&t[1]?o+="\\"+String(Number(t[1])+e):(o+=t[0],"("===t[0]&&n++)}return o}).map(t=>`(${t})`).join(e)}const w="[a-zA-Z]\\w*",A="[a-zA-Z_]\\w*",x="\\b\\d+(\\.\\d+)?",_="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",v="\\b(0b[01]+)",k={begin:"\\\\[\\s\\S]",relevance:0},C={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[k]},E={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[k]},S=function(t,e,n={}){const r=o({scope:"comment",begin:t,end:e,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=m("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:f(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},M=S("//","$"),B=S("/\\*","\\*/"),T=S("#","$"),L={scope:"number",begin:x,relevance:0},O={scope:"number",begin:_,relevance:0},I={scope:"number",begin:v,relevance:0},N={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[k,{begin:/\[/,end:/\]/,relevance:0,contains:[k]}]}]},R={scope:"title",begin:w,relevance:0},z={scope:"title",begin:A,relevance:0},H={begin:"\\.\\s*"+A,relevance:0};var P=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:w,UNDERSCORE_IDENT_RE:A,NUMBER_RE:x,C_NUMBER_RE:_,BINARY_NUMBER_RE:v,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(t={})=>{const e=/^#![ ]*\//;return t.binary&&(t.begin=f(e,/.*\b/,t.binary,/\b.*/)),o({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,e)=>{0!==t.index&&e.ignoreMatch()}},t)},BACKSLASH_ESCAPE:k,APOS_STRING_MODE:C,QUOTE_STRING_MODE:E,PHRASAL_WORDS_MODE:{begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},COMMENT:S,C_LINE_COMMENT_MODE:M,C_BLOCK_COMMENT_MODE:B,HASH_COMMENT_MODE:T,NUMBER_MODE:L,C_NUMBER_MODE:O,BINARY_NUMBER_MODE:I,REGEXP_MODE:N,TITLE_MODE:R,UNDERSCORE_TITLE_MODE:z,METHOD_GUARD:H,END_SAME_AS_BEGIN:function(t){return Object.assign(t,{"on:begin":(t,e)=>{e.data._beginMatch=t[1]},"on:end":(t,e)=>{e.data._beginMatch!==t[1]&&e.ignoreMatch()}})}});function D(t,e){"."===t.input[t.index-1]&&e.ignoreMatch()}function $(t,e){void 0!==t.className&&(t.scope=t.className,delete t.className)}function j(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=D,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,void 0===t.relevance&&(t.relevance=0))}function F(t,e){Array.isArray(t.illegal)&&(t.illegal=m(...t.illegal))}function U(t,e){if(t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function q(t,e){void 0===t.relevance&&(t.relevance=1)}const W=(t,e)=>{if(!t.beforeMatch)return;if(t.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},t);Object.keys(t).forEach(e=>{delete t[e]}),t.keywords=n.keywords,t.begin=f(n.beforeMatch,p(n.begin)),t.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},t.relevance=0,delete n.beforeMatch},V=["of","and","for","in","not","or","if","then","parent","list","value"];function Y(t,e,n="keyword"){const r=Object.create(null);return"string"==typeof t?o(n,t.split(" ")):Array.isArray(t)?o(n,t):Object.keys(t).forEach(function(n){Object.assign(r,Y(t[n],e,n))}),r;function o(t,n){e&&(n=n.map(t=>t.toLowerCase())),n.forEach(function(e){const n=e.split("|");r[n[0]]=[t,X(n[0],n[1])]})}}function X(t,e){return e?Number(e):function(t){return V.includes(t.toLowerCase())}(t)?0:1}const Z={},K=t=>{console.error(t)},J=(t,...e)=>{console.log(`WARN: ${t}`,...e)},G=(t,e)=>{Z[`${t}/${e}`]||(console.log(`Deprecated as of ${t}. ${e}`),Z[`${t}/${e}`]=!0)},Q=new Error;function tt(t,e,{key:n}){let r=0;const o=t[n],i={},a={};for(let t=1;t<=e.length;t++)a[t+r]=o[t],i[t+r]=!0,r+=g(e[t-1]);t[n]=a,t[n]._emit=i,t[n]._multi=!0}function et(t){!function(t){t.scope&&"object"==typeof t.scope&&null!==t.scope&&(t.beginScope=t.scope,delete t.scope)}(t),"string"==typeof t.beginScope&&(t.beginScope={_wrap:t.beginScope}),"string"==typeof t.endScope&&(t.endScope={_wrap:t.endScope}),function(t){if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw K("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Q;if("object"!=typeof t.beginScope||null===t.beginScope)throw K("beginScope must be object"),Q;tt(t,t.begin,{key:"beginScope"}),t.begin=y(t.begin,{joinWith:""})}}(t),function(t){if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw K("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Q;if("object"!=typeof t.endScope||null===t.endScope)throw K("endScope must be object"),Q;tt(t,t.end,{key:"endScope"}),t.end=y(t.end,{joinWith:""})}}(t)}function nt(t){function e(e,n){return new RegExp(d(e),"m"+(t.case_insensitive?"i":"")+(t.unicodeRegex?"u":"")+(n?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(t,e){e.position=this.position++,this.matchIndexes[this.matchAt]=e,this.regexes.push([e,t]),this.matchAt+=g(t)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const t=this.regexes.map(t=>t[1]);this.matcherRe=e(y(t,{joinWith:"|"}),!0),this.lastIndex=0}exec(t){this.matcherRe.lastIndex=this.lastIndex;const e=this.matcherRe.exec(t);if(!e)return null;const n=e.findIndex((t,e)=>e>0&&void 0!==t),r=this.matchIndexes[n];return e.splice(0,n),Object.assign(e,r)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(t){if(this.multiRegexes[t])return this.multiRegexes[t];const e=new n;return this.rules.slice(t).forEach(([t,n])=>e.addRule(t,n)),e.compile(),this.multiRegexes[t]=e,e}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(t,e){this.rules.push([t,e]),"begin"===e.type&&this.count++}exec(t){const e=this.getMatcher(this.regexIndex);e.lastIndex=this.lastIndex;let n=e.exec(t);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const e=this.getMatcher(0);e.lastIndex=this.lastIndex+1,n=e.exec(t)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=o(t.classNameAliases||{}),function n(i,a){const s=i;if(i.isCompiled)return s;[$,U,et,W].forEach(t=>t(i,a)),t.compilerExtensions.forEach(t=>t(i,a)),i.__beforeBegin=null,[j,F,q].forEach(t=>t(i,a)),i.isCompiled=!0;let l=null;return"object"==typeof i.keywords&&i.keywords.$pattern&&(i.keywords=Object.assign({},i.keywords),l=i.keywords.$pattern,delete i.keywords.$pattern),l=l||/\w+/,i.keywords&&(i.keywords=Y(i.keywords,t.case_insensitive)),s.keywordPatternRe=e(l,!0),a&&(i.begin||(i.begin=/\B|\b/),s.beginRe=e(s.begin),i.end||i.endsWithParent||(i.end=/\B|\b/),i.end&&(s.endRe=e(s.end)),s.terminatorEnd=d(s.end)||"",i.endsWithParent&&a.terminatorEnd&&(s.terminatorEnd+=(i.end?"|":"")+a.terminatorEnd)),i.illegal&&(s.illegalRe=e(i.illegal)),i.contains||(i.contains=[]),i.contains=[].concat(...i.contains.map(function(t){return function(t){t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return o(t,{variants:null},e)}));if(t.cachedVariants)return t.cachedVariants;if(rt(t))return o(t,{starts:t.starts?o(t.starts):null});if(Object.isFrozen(t))return o(t);return t}("self"===t?i:t)})),i.contains.forEach(function(t){n(t,s)}),i.starts&&n(i.starts,a),s.matcher=function(t){const e=new r;return t.contains.forEach(t=>e.addRule(t.begin,{rule:t,type:"begin"})),t.terminatorEnd&&e.addRule(t.terminatorEnd,{type:"end"}),t.illegal&&e.addRule(t.illegal,{type:"illegal"}),e}(s),s}(t)}function rt(t){return!!t&&(t.endsWithParent||rt(t.starts))}class ot extends Error{constructor(t,e){super(t),this.name="HTMLInjectionError",this.html=e}}const it=r,at=o,st=Symbol("nomatch"),lt=function(t){const r=Object.create(null),o=Object.create(null),i=[];let a=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",l={disableAutodetect:!0,name:"Plain text",contains:[]};let d={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:c};function g(t){return d.noHighlightRe.test(t)}function b(t,e,n){let r="",o="";"object"==typeof e?(r=t,n=e.ignoreIllegals,o=e.language):(G("10.7.0","highlight(lang, code, ...args) has been deprecated."),G("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),o=t,r=e),void 0===n&&(n=!0);const i={code:r,language:o};E("before:highlight",i);const a=i.result?i.result:y(i.language,i.code,n);return a.code=i.code,E("after:highlight",a),a}function y(t,e,o,i){const l=Object.create(null);function c(t,e){return t.keywords[e]}function p(){if(!S.keywords)return void B.addText(T);let t=0;S.keywordPatternRe.lastIndex=0;let e=S.keywordPatternRe.exec(T),n="";for(;e;){n+=T.substring(t,e.index);const r=k.case_insensitive?e[0].toLowerCase():e[0],o=c(S,r);if(o){const[t,i]=o;if(B.addText(n),n="",l[r]=(l[r]||0)+1,l[r]<=7&&(L+=i),t.startsWith("_"))n+=e[0];else{const n=k.classNameAliases[t]||t;u(e[0],n)}}else n+=e[0];t=S.keywordPatternRe.lastIndex,e=S.keywordPatternRe.exec(T)}n+=T.substring(t),B.addText(n)}function h(){null!=S.subLanguage?function(){if(""===T)return;let t=null;if("string"==typeof S.subLanguage){if(!r[S.subLanguage])return void B.addText(T);t=y(S.subLanguage,T,!0,M[S.subLanguage]),M[S.subLanguage]=t._top}else t=w(T,S.subLanguage.length?S.subLanguage:null);S.relevance>0&&(L+=t.relevance),B.__addSublanguage(t._emitter,t.language)}():p(),T=""}function u(t,e){""!==t&&(B.startScope(e),B.addText(t),B.endScope())}function f(t,e){let n=1;const r=e.length-1;for(;n<=r;){if(!t._emit[n]){n++;continue}const r=k.classNameAliases[t[n]]||t[n],o=e[n];r?u(o,r):(T=o,p(),T=""),n++}}function m(t,e){return t.scope&&"string"==typeof t.scope&&B.openNode(k.classNameAliases[t.scope]||t.scope),t.beginScope&&(t.beginScope._wrap?(u(T,k.classNameAliases[t.beginScope._wrap]||t.beginScope._wrap),T=""):t.beginScope._multi&&(f(t.beginScope,e),T="")),S=Object.create(t,{parent:{value:S}}),S}function g(t,e,r){let o=function(t,e){const n=t&&t.exec(e);return n&&0===n.index}(t.endRe,r);if(o){if(t["on:end"]){const r=new n(t);t["on:end"](e,r),r.isMatchIgnored&&(o=!1)}if(o){for(;t.endsParent&&t.parent;)t=t.parent;return t}}if(t.endsWithParent)return g(t.parent,e,r)}function b(t){return 0===S.matcher.regexIndex?(T+=t[0],1):(N=!0,0)}function A(t){const n=t[0],r=e.substring(t.index),o=g(S,t,r);if(!o)return st;const i=S;S.endScope&&S.endScope._wrap?(h(),u(n,S.endScope._wrap)):S.endScope&&S.endScope._multi?(h(),f(S.endScope,t)):i.skip?T+=n:(i.returnEnd||i.excludeEnd||(T+=n),h(),i.excludeEnd&&(T=n));do{S.scope&&B.closeNode(),S.skip||S.subLanguage||(L+=S.relevance),S=S.parent}while(S!==o.parent);return o.starts&&m(o.starts,t),i.returnEnd?0:n.length}let x={};function _(r,i){const s=i&&i[0];if(T+=r,null==s)return h(),0;if("begin"===x.type&&"end"===i.type&&x.index===i.index&&""===s){if(T+=e.slice(i.index,i.index+1),!a){const e=new Error(`0 width match regex (${t})`);throw e.languageName=t,e.badRule=x.rule,e}return 1}if(x=i,"begin"===i.type)return function(t){const e=t[0],r=t.rule,o=new n(r),i=[r.__beforeBegin,r["on:begin"]];for(const n of i)if(n&&(n(t,o),o.isMatchIgnored))return b(e);return r.skip?T+=e:(r.excludeBegin&&(T+=e),h(),r.returnBegin||r.excludeBegin||(T=e)),m(r,t),r.returnBegin?0:e.length}(i);if("illegal"===i.type&&!o){const t=new Error('Illegal lexeme "'+s+'" for mode "'+(S.scope||"<unnamed>")+'"');throw t.mode=S,t}if("end"===i.type){const t=A(i);if(t!==st)return t}if("illegal"===i.type&&""===s)return 1;if(I>1e5&&I>3*i.index){throw new Error("potential infinite loop, way more iterations than matches")}return T+=s,s.length}const k=v(t);if(!k)throw K(s.replace("{}",t)),new Error('Unknown language: "'+t+'"');const C=nt(k);let E="",S=i||C;const M={},B=new d.__emitter(d);!function(){const t=[];for(let e=S;e!==k;e=e.parent)e.scope&&t.unshift(e.scope);t.forEach(t=>B.openNode(t))}();let T="",L=0,O=0,I=0,N=!1;try{if(k.__emitTokens)k.__emitTokens(e,B);else{for(S.matcher.considerAll();;){I++,N?N=!1:S.matcher.considerAll(),S.matcher.lastIndex=O;const t=S.matcher.exec(e);if(!t)break;const n=_(e.substring(O,t.index),t);O=t.index+n}_(e.substring(O))}return B.finalize(),E=B.toHTML(),{language:t,value:E,relevance:L,illegal:!1,_emitter:B,_top:S}}catch(n){if(n.message&&n.message.includes("Illegal"))return{language:t,value:it(e),illegal:!0,relevance:0,_illegalBy:{message:n.message,index:O,context:e.slice(O-100,O+100),mode:n.mode,resultSoFar:E},_emitter:B};if(a)return{language:t,value:it(e),illegal:!1,relevance:0,errorRaised:n,_emitter:B,_top:S};throw n}}function w(t,e){e=e||d.languages||Object.keys(r);const n=function(t){const e={value:it(t),illegal:!1,relevance:0,_top:l,_emitter:new d.__emitter(d)};return e._emitter.addText(t),e}(t),o=e.filter(v).filter(C).map(e=>y(e,t,!1));o.unshift(n);const i=o.sort((t,e)=>{if(t.relevance!==e.relevance)return e.relevance-t.relevance;if(t.language&&e.language){if(v(t.language).supersetOf===e.language)return 1;if(v(e.language).supersetOf===t.language)return-1}return 0}),[a,s]=i,c=a;return c.secondBest=s,c}function A(t){let e=null;const n=function(t){let e=t.className+" ";e+=t.parentNode?t.parentNode.className:"";const n=d.languageDetectRe.exec(e);if(n){const e=v(n[1]);return e||(J(s.replace("{}",n[1])),J("Falling back to no-highlight mode for this block.",t)),e?n[1]:"no-highlight"}return e.split(/\s+/).find(t=>g(t)||v(t))}(t);if(g(n))return;if(E("before:highlightElement",{el:t,language:n}),t.children.length>0&&(d.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(t)),d.throwUnescapedHTML)){throw new ot("One of your code blocks includes unescaped HTML.",t.innerHTML)}e=t;const r=e.textContent,i=n?b(r,{language:n,ignoreIllegals:!0}):w(r);t.innerHTML=i.value,function(t,e,n){const r=e&&o[e]||n;t.classList.add("hljs"),t.classList.add(`language-${r}`)}(t,n,i.language),t.result={language:i.language,re:i.relevance,relevance:i.relevance},i.secondBest&&(t.secondBest={language:i.secondBest.language,relevance:i.secondBest.relevance}),E("after:highlightElement",{el:t,result:i,text:r})}let x=!1;function _(){if("loading"===document.readyState)return void(x=!0);document.querySelectorAll(d.cssSelector).forEach(A)}function v(t){return t=(t||"").toLowerCase(),r[t]||r[o[t]]}function k(t,{languageName:e}){"string"==typeof t&&(t=[t]),t.forEach(t=>{o[t.toLowerCase()]=e})}function C(t){const e=v(t);return e&&!e.disableAutodetect}function E(t,e){const n=t;i.forEach(function(t){t[n]&&t[n](e)})}"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",function(){x&&_()},!1),Object.assign(t,{highlight:b,highlightAuto:w,highlightAll:_,highlightElement:A,highlightBlock:function(t){return G("10.7.0","highlightBlock will be removed entirely in v12.0"),G("10.7.0","Please use highlightElement now."),A(t)},configure:function(t){d=at(d,t)},initHighlighting:()=>{_(),G("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function(){_(),G("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function(e,n){let o=null;try{o=n(t)}catch(t){if(K("Language definition for '{}' could not be registered.".replace("{}",e)),!a)throw t;K(t),o=l}o.name||(o.name=e),r[e]=o,o.rawDefinition=n.bind(null,t),o.aliases&&k(o.aliases,{languageName:e})},unregisterLanguage:function(t){delete r[t];for(const e of Object.keys(o))o[e]===t&&delete o[e]},listLanguages:function(){return Object.keys(r)},getLanguage:v,registerAliases:k,autoDetection:C,inherit:at,addPlugin:function(t){!function(t){t["before:highlightBlock"]&&!t["before:highlightElement"]&&(t["before:highlightElement"]=e=>{t["before:highlightBlock"](Object.assign({block:e.el},e))}),t["after:highlightBlock"]&&!t["after:highlightElement"]&&(t["after:highlightElement"]=e=>{t["after:highlightBlock"](Object.assign({block:e.el},e))})}(t),i.push(t)},removePlugin:function(t){const e=i.indexOf(t);-1!==e&&i.splice(e,1)}}),t.debugMode=function(){a=!1},t.safeMode=function(){a=!0},t.versionString="11.8.0",t.regex={concat:f,lookahead:p,either:m,optional:u,anyNumberOfTimes:h};for(const t in P)"object"==typeof P[t]&&e(P[t]);return Object.assign(t,P),t},ct=lt({});ct.newInstance=()=>lt({}),t.exports=ct,ct.HighlightJS=ct,ct.default=ct},33714(t){"use strict";var e,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,a={};function s(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}((t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})})(a,{Hooks:()=>mt,Lexer:()=>pt,Marked:()=>gt,Parser:()=>ft,Renderer:()=>ht,TextRenderer:()=>ut,Tokenizer:()=>dt,defaults:()=>l,getDefaults:()=>s,lexer:()=>Et,marked:()=>yt,options:()=>wt,parse:()=>kt,parseInline:()=>vt,parser:()=>Ct,setOptions:()=>At,use:()=>xt,walkTokens:()=>_t}),t.exports=(e=a,((t,e,a,s)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let l of o(e))i.call(t,l)||l===a||n(t,l,{get:()=>e[l],enumerable:!(s=r(e,l))||s.enumerable});return t})(n({},"__esModule",{value:!0}),e));var l={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function c(t){l=t}var d={exec:()=>null};function p(t,e=""){let n="string"==typeof t?t:t.source;const r={replace:(t,e)=>{let o="string"==typeof e?e:e.source;return o=o.replace(h.caret,"$1"),n=n.replace(t,o),r},getRegex:()=>new RegExp(n,e)};return r}var h={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},u=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,f=/(?:[*+-]|\d{1,9}[.)])/,m=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,g=p(m).replace(/bull/g,f).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),b=p(m).replace(/bull/g,f).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),y=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,w=/(?!\s*\])(?:\\.|[^\[\]\\])+/,A=p(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",w).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),x=p(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,f).getRegex(),_="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",v=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,k=p("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",v).replace("tag",_).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),C=p(y).replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_).getRegex(),E={blockquote:p(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",C).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:A,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:u,html:k,lheading:g,list:x,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:C,table:d,text:/^[^\n]+/},S=p("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_).getRegex(),M={...E,lheading:b,table:S,paragraph:p(y).replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",S).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_).getRegex()},B={...E,html:p("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",v).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:d,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:p(y).replace("hr",u).replace("heading"," *#{1,6} *[^\n]").replace("lheading",g).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},T=/^( {2,}|\\)\n(?!\s*$)/,L=/[\p{P}\p{S}]/u,O=/[\s\p{P}\p{S}]/u,I=/[^\s\p{P}\p{S}]/u,N=p(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,O).getRegex(),R=/(?!~)[\p{P}\p{S}]/u,z=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,H=p(z,"u").replace(/punct/g,L).getRegex(),P=p(z,"u").replace(/punct/g,R).getRegex(),D="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",$=p(D,"gu").replace(/notPunctSpace/g,I).replace(/punctSpace/g,O).replace(/punct/g,L).getRegex(),j=p(D,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,R).getRegex(),F=p("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,I).replace(/punctSpace/g,O).replace(/punct/g,L).getRegex(),U=p(/\\(punct)/,"gu").replace(/punct/g,L).getRegex(),q=p(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),W=p(v).replace("(?:--\x3e|$)","--\x3e").getRegex(),V=p("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",W).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Y=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,X=p(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Y).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Z=p(/^!?\[(label)\]\[(ref)\]/).replace("label",Y).replace("ref",w).getRegex(),K=p(/^!?\[(ref)\](?:\[\])?/).replace("ref",w).getRegex(),J={_backpedal:d,anyPunctuation:U,autolink:q,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,br:T,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:d,emStrongLDelim:H,emStrongRDelimAst:$,emStrongRDelimUnd:F,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:X,nolink:K,punctuation:N,reflink:Z,reflinkSearch:p("reflink|nolink(?!\\()","g").replace("reflink",Z).replace("nolink",K).getRegex(),tag:V,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:d},G={...J,link:p(/^!?\[(label)\]\((.*?)\)/).replace("label",Y).getRegex(),reflink:p(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Y).getRegex()},Q={...J,emStrongRDelimAst:j,emStrongLDelim:P,url:p(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},tt={...Q,br:p(T).replace("{2,}","*").getRegex(),text:p(Q.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},et={normal:E,gfm:M,pedantic:B},nt={normal:J,gfm:Q,breaks:tt,pedantic:G},rt={"&":"&","<":"<",">":">",'"':""","'":"'"},ot=t=>rt[t];function it(t,e){if(e){if(h.escapeTest.test(t))return t.replace(h.escapeReplace,ot)}else if(h.escapeTestNoEncode.test(t))return t.replace(h.escapeReplaceNoEncode,ot);return t}function at(t){try{t=encodeURI(t).replace(h.percentDecode,"%")}catch{return null}return t}function st(t,e){const n=t.replace(h.findPipe,(t,e,n)=>{let r=!1,o=e;for(;--o>=0&&"\\"===n[o];)r=!r;return r?"|":" |"}).split(h.splitPipe);let r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(h.slashPipe,"|");return n}function lt(t,e,n){const r=t.length;if(0===r)return"";let o=0;for(;o<r;){const i=t.charAt(r-o-1);if(i!==e||n){if(i===e||!n)break;o++}else o++}return t.slice(0,r-o)}function ct(t,e,n,r,o){const i=e.href,a=e.title||null,s=t[1].replace(o.other.outputLinkReplace,"$1");r.state.inLink=!0;const l={type:"!"===t[0].charAt(0)?"image":"link",raw:n,href:i,title:a,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,l}var dt=class{options;rules;lexer;constructor(t){this.options=t||l}space(t){const e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){const e=this.rules.block.code.exec(t);if(e){const t=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:lt(t,"\n")}}}fences(t){const e=this.rules.block.fences.exec(t);if(e){const t=e[0],n=function(t,e,n){const r=t.match(n.other.indentCodeCompensation);if(null===r)return e;const o=r[1];return e.split("\n").map(t=>{const e=t.match(n.other.beginningSpace);if(null===e)return t;const[r]=e;return r.length>=o.length?t.slice(o.length):t}).join("\n")}(t,e[3]||"",this.rules);return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:n}}}heading(t){const e=this.rules.block.heading.exec(t);if(e){let t=e[2].trim();if(this.rules.other.endingHash.test(t)){const e=lt(t,"#");this.options.pedantic?t=e.trim():e&&!this.rules.other.endingSpaceChar.test(e)||(t=e.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(t){const e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:lt(e[0],"\n")}}blockquote(t){const e=this.rules.block.blockquote.exec(t);if(e){let t=lt(e[0],"\n").split("\n"),n="",r="";const o=[];for(;t.length>0;){let e=!1;const i=[];let a;for(a=0;a<t.length;a++)if(this.rules.other.blockquoteStart.test(t[a]))i.push(t[a]),e=!0;else{if(e)break;i.push(t[a])}t=t.slice(a);const s=i.join("\n"),l=s.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${s}`:s,r=r?`${r}\n${l}`:l;const c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,o,!0),this.lexer.state.top=c,0===t.length)break;const d=o.at(-1);if("code"===d?.type)break;if("blockquote"===d?.type){const e=d,i=e.raw+"\n"+t.join("\n"),a=this.blockquote(i);o[o.length-1]=a,n=n.substring(0,n.length-e.raw.length)+a.raw,r=r.substring(0,r.length-e.text.length)+a.text;break}if("list"===d?.type){const e=d,i=e.raw+"\n"+t.join("\n"),a=this.list(i);o[o.length-1]=a,n=n.substring(0,n.length-d.raw.length)+a.raw,r=r.substring(0,r.length-e.raw.length)+a.raw,t=i.substring(o.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:n,tokens:o,text:r}}}list(t){let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim();const r=n.length>1,o={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");const i=this.rules.other.listItemRegex(n);let a=!1;for(;t;){let n=!1,r="",s="";if(!(e=i.exec(t)))break;if(this.rules.block.hr.test(t))break;r=e[0],t=t.substring(r.length);let l=e[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,t=>" ".repeat(3*t.length)),c=t.split("\n",1)[0],d=!l.trim(),p=0;if(this.options.pedantic?(p=2,s=l.trimStart()):d?p=e[1].length+1:(p=e[2].search(this.rules.other.nonSpaceChar),p=p>4?1:p,s=l.slice(p),p+=e[1].length),d&&this.rules.other.blankLine.test(c)&&(r+=c+"\n",t=t.substring(c.length+1),n=!0),!n){const e=this.rules.other.nextBulletRegex(p),n=this.rules.other.hrRegex(p),o=this.rules.other.fencesBeginRegex(p),i=this.rules.other.headingBeginRegex(p),a=this.rules.other.htmlBeginRegex(p);for(;t;){const h=t.split("\n",1)[0];let u;if(c=h,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),u=c):u=c.replace(this.rules.other.tabCharGlobal," "),o.test(c))break;if(i.test(c))break;if(a.test(c))break;if(e.test(c))break;if(n.test(c))break;if(u.search(this.rules.other.nonSpaceChar)>=p||!c.trim())s+="\n"+u.slice(p);else{if(d)break;if(l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4)break;if(o.test(l))break;if(i.test(l))break;if(n.test(l))break;s+="\n"+c}d||c.trim()||(d=!0),r+=h+"\n",t=t.substring(h.length+1),l=u.slice(p)}}o.loose||(a?o.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(a=!0));let h,u=null;this.options.gfm&&(u=this.rules.other.listIsTask.exec(s),u&&(h="[ ] "!==u[0],s=s.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:r,task:!!u,checked:h,loose:!1,text:s,tokens:[]}),o.raw+=r}const s=o.items.at(-1);if(!s)return;s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd(),o.raw=o.raw.trimEnd();for(let t=0;t<o.items.length;t++)if(this.lexer.state.top=!1,o.items[t].tokens=this.lexer.blockTokens(o.items[t].text,[]),!o.loose){const e=o.items[t].tokens.filter(t=>"space"===t.type),n=e.length>0&&e.some(t=>this.rules.other.anyLine.test(t.raw));o.loose=n}if(o.loose)for(let t=0;t<o.items.length;t++)o.items[t].loose=!0;return o}}html(t){const e=this.rules.block.html.exec(t);if(e){return{type:"html",block:!0,raw:e[0],pre:"pre"===e[1]||"script"===e[1]||"style"===e[1],text:e[0]}}}def(t){const e=this.rules.block.def.exec(t);if(e){const t=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:t,raw:e[0],href:n,title:r}}}table(t){const e=this.rules.block.table.exec(t);if(!e)return;if(!this.rules.other.tableDelimiter.test(e[2]))return;const n=st(e[1]),r=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],i={type:"table",raw:e[0],header:[],align:[],rows:[]};if(n.length===r.length){for(const t of r)this.rules.other.tableAlignRight.test(t)?i.align.push("right"):this.rules.other.tableAlignCenter.test(t)?i.align.push("center"):this.rules.other.tableAlignLeft.test(t)?i.align.push("left"):i.align.push(null);for(let t=0;t<n.length;t++)i.header.push({text:n[t],tokens:this.lexer.inline(n[t]),header:!0,align:i.align[t]});for(const t of o)i.rows.push(st(t,i.header.length).map((t,e)=>({text:t,tokens:this.lexer.inline(t),header:!1,align:i.align[e]})));return i}}lheading(t){const e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){const e=this.rules.block.paragraph.exec(t);if(e){const t="\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(t){const e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){const e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){const e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){const e=this.rules.inline.link.exec(t);if(e){const t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;const e=lt(t.slice(0,-1),"\\");if((t.length-e.length)%2==0)return}else{const t=function(t,e){if(-1===t.indexOf(e[1]))return-1;let n=0;for(let r=0;r<t.length;r++)if("\\"===t[r])r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return n>0?-2:-1}(e[2],"()");if(-2===t)return;if(t>-1){const n=(0===e[0].indexOf("!")?5:4)+e[1].length+t;e[2]=e[2].substring(0,t),e[0]=e[0].substring(0,n).trim(),e[3]=""}}let n=e[2],r="";if(this.options.pedantic){const t=this.rules.other.pedanticHrefTitle.exec(n);t&&(n=t[1],r=t[3])}else r=e[3]?e[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(t)?n.slice(1):n.slice(1,-1)),ct(e,{href:n?n.replace(this.rules.inline.anyPunctuation,"$1"):n,title:r?r.replace(this.rules.inline.anyPunctuation,"$1"):r},e[0],this.lexer,this.rules)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){const t=e[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!t){const t=n[0].charAt(0);return{type:"text",raw:t,text:t}}return ct(n,t,n[0],this.lexer,this.rules)}}emStrong(t,e,n=""){let r=this.rules.inline.emStrongLDelim.exec(t);if(!r)return;if(r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))return;if(!(r[1]||r[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const n=[...r[0]].length-1;let o,i,a=n,s=0;const l="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,e=e.slice(-1*t.length+n);null!=(r=l.exec(e));){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o)continue;if(i=[...o].length,r[3]||r[4]){a+=i;continue}if((r[5]||r[6])&&n%3&&!((n+i)%3)){s+=i;continue}if(a-=i,a>0)continue;i=Math.min(i,i+a+s);const e=[...r[0]][0].length,l=t.slice(0,n+r.index+e+i);if(Math.min(n,i)%2){const t=l.slice(1,-1);return{type:"em",raw:l,text:t,tokens:this.lexer.inlineTokens(t)}}const c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(t){const e=this.rules.inline.code.exec(t);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," ");const n=this.rules.other.nonSpaceChar.test(t),r=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return n&&r&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(t){const e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){const e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){const e=this.rules.inline.autolink.exec(t);if(e){let t,n;return"@"===e[2]?(t=e[1],n="mailto:"+t):(t=e[1],n=t),{type:"link",raw:e[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let t,n;if("@"===e[2])t=e[0],n="mailto:"+t;else{let r;do{r=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??""}while(r!==e[0]);t=e[0],n="www."===e[1]?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(t){const e=this.rules.inline.text.exec(t);if(e){const t=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:t}}}},pt=class t{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||l,this.options.tokenizer=this.options.tokenizer||new dt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const e={other:h,block:et.normal,inline:nt.normal};this.options.pedantic?(e.block=et.pedantic,e.inline=nt.pedantic):this.options.gfm&&(e.block=et.gfm,this.options.breaks?e.inline=nt.breaks:e.inline=nt.gfm),this.tokenizer.rules=e}static get rules(){return{block:et,inline:nt}}static lex(e,n){return new t(n).lex(e)}static lexInline(e,n){return new t(n).inlineTokens(e)}lex(t){t=t.replace(h.carriageReturn,"\n"),this.blockTokens(t,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){const e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,e=[],n=!1){for(this.options.pedantic&&(t=t.replace(h.tabCharGlobal," ").replace(h.spaceLine,""));t;){let r;if(this.options.extensions?.block?.some(n=>!!(r=n.call({lexer:this},t,e))&&(t=t.substring(r.raw.length),e.push(r),!0)))continue;if(r=this.tokenizer.space(t)){t=t.substring(r.raw.length);const n=e.at(-1);1===r.raw.length&&void 0!==n?n.raw+="\n":e.push(r);continue}if(r=this.tokenizer.code(t)){t=t.substring(r.raw.length);const n=e.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.at(-1).src=n.text):e.push(r);continue}if(r=this.tokenizer.fences(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.heading(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.hr(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.blockquote(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.list(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.html(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.def(t)){t=t.substring(r.raw.length);const n=e.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if(r=this.tokenizer.table(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.lheading(t)){t=t.substring(r.raw.length),e.push(r);continue}let o=t;if(this.options.extensions?.startBlock){let e=1/0;const n=t.slice(1);let r;this.options.extensions.startBlock.forEach(t=>{r=t.call({lexer:this},n),"number"==typeof r&&r>=0&&(e=Math.min(e,r))}),e<1/0&&e>=0&&(o=t.substring(0,e+1))}if(this.state.top&&(r=this.tokenizer.paragraph(o))){const i=e.at(-1);n&&"paragraph"===i?.type?(i.raw+="\n"+r.raw,i.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):e.push(r),n=o.length!==t.length,t=t.substring(r.raw.length);continue}if(r=this.tokenizer.text(t)){t=t.substring(r.raw.length);const n=e.at(-1);"text"===n?.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):e.push(r);continue}if(t){const e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw new Error(e)}}return this.state.top=!0,e}inline(t,e=[]){return this.inlineQueue.push({src:t,tokens:e}),e}inlineTokens(t,e=[]){let n=t,r=null;if(this.tokens.links){const t=Object.keys(this.tokens.links);if(t.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(n));)t.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.anyPunctuation.exec(n));)n=n.slice(0,r.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(n));)n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let o=!1,i="";for(;t;){let r;if(o||(i=""),o=!1,this.options.extensions?.inline?.some(n=>!!(r=n.call({lexer:this},t,e))&&(t=t.substring(r.raw.length),e.push(r),!0)))continue;if(r=this.tokenizer.escape(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.tag(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.link(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length);const n=e.at(-1);"text"===r.type&&"text"===n?.type?(n.raw+=r.raw,n.text+=r.text):e.push(r);continue}if(r=this.tokenizer.emStrong(t,n,i)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.codespan(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.br(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.del(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.autolink(t)){t=t.substring(r.raw.length),e.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(t))){t=t.substring(r.raw.length),e.push(r);continue}let a=t;if(this.options.extensions?.startInline){let e=1/0;const n=t.slice(1);let r;this.options.extensions.startInline.forEach(t=>{r=t.call({lexer:this},n),"number"==typeof r&&r>=0&&(e=Math.min(e,r))}),e<1/0&&e>=0&&(a=t.substring(0,e+1))}if(r=this.tokenizer.inlineText(a)){t=t.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(i=r.raw.slice(-1)),o=!0;const n=e.at(-1);"text"===n?.type?(n.raw+=r.raw,n.text+=r.text):e.push(r);continue}if(t){const e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw new Error(e)}}return e}},ht=class{options;parser;constructor(t){this.options=t||l}space(t){return""}code({text:t,lang:e,escaped:n}){const r=(e||"").match(h.notSpaceStart)?.[0],o=t.replace(h.endingNewline,"")+"\n";return r?'<pre><code class="language-'+it(r)+'">'+(n?o:it(o,!0))+"</code></pre>\n":"<pre><code>"+(n?o:it(o,!0))+"</code></pre>\n"}blockquote({tokens:t}){return`<blockquote>\n${this.parser.parse(t)}</blockquote>\n`}html({text:t}){return t}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>\n`}hr(t){return"<hr>\n"}list(t){const e=t.ordered,n=t.start;let r="";for(let e=0;e<t.items.length;e++){const n=t.items[e];r+=this.listitem(n)}const o=e?"ol":"ul";return"<"+o+(e&&1!==n?' start="'+n+'"':"")+">\n"+r+"</"+o+">\n"}listitem(t){let e="";if(t.task){const n=this.checkbox({checked:!!t.checked});t.loose?"paragraph"===t.tokens[0]?.type?(t.tokens[0].text=n+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&"text"===t.tokens[0].tokens[0].type&&(t.tokens[0].tokens[0].text=n+" "+it(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):e+=n+" "}return e+=this.parser.parse(t.tokens,!!t.loose),`<li>${e}</li>\n`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>\n`}table(t){let e="",n="";for(let e=0;e<t.header.length;e++)n+=this.tablecell(t.header[e]);e+=this.tablerow({text:n});let r="";for(let e=0;e<t.rows.length;e++){const o=t.rows[e];n="";for(let t=0;t<o.length;t++)n+=this.tablecell(o[t]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+r+"</table>\n"}tablerow({text:t}){return`<tr>\n${t}</tr>\n`}tablecell(t){const e=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>\n`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${it(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:n}){const r=this.parser.parseInline(n),o=at(t);if(null===o)return r;let i='<a href="'+(t=o)+'"';return e&&(i+=' title="'+it(e)+'"'),i+=">"+r+"</a>",i}image({href:t,title:e,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));const o=at(t);if(null===o)return it(n);let i=`<img src="${t=o}" alt="${n}"`;return e&&(i+=` title="${it(e)}"`),i+=">",i}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:it(t.text)}},ut=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},ft=class t{options;renderer;textRenderer;constructor(t){this.options=t||l,this.options.renderer=this.options.renderer||new ht,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ut}static parse(e,n){return new t(n).parse(e)}static parseInline(e,n){return new t(n).parseInline(e)}parse(t,e=!0){let n="";for(let r=0;r<t.length;r++){const o=t[r];if(this.options.extensions?.renderers?.[o.type]){const t=o,e=this.options.extensions.renderers[t.type].call({parser:this},t);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(t.type)){n+=e||"";continue}}const i=o;switch(i.type){case"space":n+=this.renderer.space(i);continue;case"hr":n+=this.renderer.hr(i);continue;case"heading":n+=this.renderer.heading(i);continue;case"code":n+=this.renderer.code(i);continue;case"table":n+=this.renderer.table(i);continue;case"blockquote":n+=this.renderer.blockquote(i);continue;case"list":n+=this.renderer.list(i);continue;case"html":n+=this.renderer.html(i);continue;case"paragraph":n+=this.renderer.paragraph(i);continue;case"text":{let o=i,a=this.renderer.text(o);for(;r+1<t.length&&"text"===t[r+1].type;)o=t[++r],a+="\n"+this.renderer.text(o);n+=e?this.renderer.paragraph({type:"paragraph",raw:a,text:a,tokens:[{type:"text",raw:a,text:a,escaped:!0}]}):a;continue}default:{const t='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw new Error(t)}}}return n}parseInline(t,e=this.renderer){let n="";for(let r=0;r<t.length;r++){const o=t[r];if(this.options.extensions?.renderers?.[o.type]){const t=this.options.extensions.renderers[o.type].call({parser:this},o);if(!1!==t||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){n+=t||"";continue}}const i=o;switch(i.type){case"escape":case"text":n+=e.text(i);break;case"html":n+=e.html(i);break;case"link":n+=e.link(i);break;case"image":n+=e.image(i);break;case"strong":n+=e.strong(i);break;case"em":n+=e.em(i);break;case"codespan":n+=e.codespan(i);break;case"br":n+=e.br(i);break;case"del":n+=e.del(i);break;default:{const t='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw new Error(t)}}}return n}},mt=class{options;block;constructor(t){this.options=t||l}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?pt.lex:pt.lexInline}provideParser(){return this.block?ft.parse:ft.parseInline}},gt=class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ft;Renderer=ht;TextRenderer=ut;Lexer=pt;Tokenizer=dt;Hooks=mt;constructor(...t){this.use(...t)}walkTokens(t,e){let n=[];for(const r of t)switch(n=n.concat(e.call(this,r)),r.type){case"table":{const t=r;for(const r of t.header)n=n.concat(this.walkTokens(r.tokens,e));for(const r of t.rows)for(const t of r)n=n.concat(this.walkTokens(t.tokens,e));break}case"list":{const t=r;n=n.concat(this.walkTokens(t.items,e));break}default:{const t=r;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(r=>{const o=t[r].flat(1/0);n=n.concat(this.walkTokens(o,e))}):t.tokens&&(n=n.concat(this.walkTokens(t.tokens,e)))}}return n}use(...t){const e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(t=>{const n={...t};if(n.async=this.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach(t=>{if(!t.name)throw new Error("extension name required");if("renderer"in t){const n=e.renderers[t.name];e.renderers[t.name]=n?function(...e){let r=t.renderer.apply(this,e);return!1===r&&(r=n.apply(this,e)),r}:t.renderer}if("tokenizer"in t){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw new Error("extension level must be 'block' or 'inline'");const n=e[t.level];n?n.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)}),n.extensions=e),t.renderer){const e=this.defaults.renderer||new ht(this.defaults);for(const n in t.renderer){if(!(n in e))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;const r=n,o=t.renderer[r],i=e[r];e[r]=(...t)=>{let n=o.apply(e,t);return!1===n&&(n=i.apply(e,t)),n||""}}n.renderer=e}if(t.tokenizer){const e=this.defaults.tokenizer||new dt(this.defaults);for(const n in t.tokenizer){if(!(n in e))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;const r=n,o=t.tokenizer[r],i=e[r];e[r]=(...t)=>{let n=o.apply(e,t);return!1===n&&(n=i.apply(e,t)),n}}n.tokenizer=e}if(t.hooks){const e=this.defaults.hooks||new mt;for(const n in t.hooks){if(!(n in e))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;const r=n,o=t.hooks[r],i=e[r];mt.passThroughHooks.has(n)?e[r]=t=>{if(this.defaults.async)return Promise.resolve(o.call(e,t)).then(t=>i.call(e,t));const n=o.call(e,t);return i.call(e,n)}:e[r]=(...t)=>{let n=o.apply(e,t);return!1===n&&(n=i.apply(e,t)),n}}n.hooks=e}if(t.walkTokens){const e=this.defaults.walkTokens,r=t.walkTokens;n.walkTokens=function(t){let n=[];return n.push(r.call(this,t)),e&&(n=n.concat(e.call(this,t))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return pt.lex(t,e??this.defaults)}parser(t,e){return ft.parse(t,e??this.defaults)}parseMarkdown(t){return(e,n)=>{const r={...n},o={...this.defaults,...r},i=this.onError(!!o.silent,!!o.async);if(!0===this.defaults.async&&!1===r.async)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(null==e)return i(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));o.hooks&&(o.hooks.options=o,o.hooks.block=t);const a=o.hooks?o.hooks.provideLexer():t?pt.lex:pt.lexInline,s=o.hooks?o.hooks.provideParser():t?ft.parse:ft.parseInline;if(o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(e):e).then(t=>a(t,o)).then(t=>o.hooks?o.hooks.processAllTokens(t):t).then(t=>o.walkTokens?Promise.all(this.walkTokens(t,o.walkTokens)).then(()=>t):t).then(t=>s(t,o)).then(t=>o.hooks?o.hooks.postprocess(t):t).catch(i);try{o.hooks&&(e=o.hooks.preprocess(e));let t=a(e,o);o.hooks&&(t=o.hooks.processAllTokens(t)),o.walkTokens&&this.walkTokens(t,o.walkTokens);let n=s(t,o);return o.hooks&&(n=o.hooks.postprocess(n)),n}catch(t){return i(t)}}}onError(t,e){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",t){const t="<p>An error occurred:</p><pre>"+it(n.message+"",!0)+"</pre>";return e?Promise.resolve(t):t}if(e)return Promise.reject(n);throw n}}},bt=new gt;function yt(t,e){return bt.parse(t,e)}yt.options=yt.setOptions=function(t){return bt.setOptions(t),yt.defaults=bt.defaults,c(yt.defaults),yt},yt.getDefaults=s,yt.defaults=l,yt.use=function(...t){return bt.use(...t),yt.defaults=bt.defaults,c(yt.defaults),yt},yt.walkTokens=function(t,e){return bt.walkTokens(t,e)},yt.parseInline=bt.parseInline,yt.Parser=ft,yt.parser=ft.parse,yt.Renderer=ht,yt.TextRenderer=ut,yt.Lexer=pt,yt.lexer=pt.lex,yt.Tokenizer=dt,yt.Hooks=mt,yt.parse=yt;var wt=yt.options,At=yt.setOptions,xt=yt.use,_t=yt.walkTokens,vt=yt.parseInline,kt=yt,Ct=ft.parse,Et=pt.lex},45888(t){t.exports=function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}var e=/^\s+/,n=/\s+$/;function r(t,e){if(e=e||{},(t=t||"")instanceof r)return t;if(!(this instanceof r))return new r(t,e);var n=o(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function o(e){var n={r:0,g:0,b:0},r=1,o=null,a=null,l=null,d=!1,p=!1;return"string"==typeof e&&(e=U(e)),"object"==t(e)&&(F(e.r)&&F(e.g)&&F(e.b)?(n=i(e.r,e.g,e.b),d=!0,p="%"===String(e.r).substr(-1)?"prgb":"rgb"):F(e.h)&&F(e.s)&&F(e.v)?(o=R(e.s),a=R(e.v),n=c(e.h,o,a),d=!0,p="hsv"):F(e.h)&&F(e.s)&&F(e.l)&&(o=R(e.s),l=R(e.l),n=s(e.h,o,l),d=!0,p="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=M(r),{ok:d,format:e.format||p,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:r}}function i(t,e,n){return{r:255*B(t,255),g:255*B(e,255),b:255*B(n,255)}}function a(t,e,n){t=B(t,255),e=B(e,255),n=B(n,255);var r,o,i=Math.max(t,e,n),a=Math.min(t,e,n),s=(i+a)/2;if(i==a)r=o=0;else{var l=i-a;switch(o=s>.5?l/(2-i-a):l/(i+a),i){case t:r=(e-n)/l+(e<n?6:0);break;case e:r=(n-t)/l+2;break;case n:r=(t-e)/l+4}r/=6}return{h:r,s:o,l:s}}function s(t,e,n){var r,o,i;function a(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=B(t,360),e=B(e,100),n=B(n,100),0===e)r=o=i=n;else{var s=n<.5?n*(1+e):n+e-n*e,l=2*n-s;r=a(l,s,t+1/3),o=a(l,s,t),i=a(l,s,t-1/3)}return{r:255*r,g:255*o,b:255*i}}function l(t,e,n){t=B(t,255),e=B(e,255),n=B(n,255);var r,o,i=Math.max(t,e,n),a=Math.min(t,e,n),s=i,l=i-a;if(o=0===i?0:l/i,i==a)r=0;else{switch(i){case t:r=(e-n)/l+(e<n?6:0);break;case e:r=(n-t)/l+2;break;case n:r=(t-e)/l+4}r/=6}return{h:r,s:o,v:s}}function c(t,e,n){t=6*B(t,360),e=B(e,100),n=B(n,100);var r=Math.floor(t),o=t-r,i=n*(1-e),a=n*(1-o*e),s=n*(1-(1-o)*e),l=r%6;return{r:255*[n,a,i,i,s,n][l],g:255*[s,n,n,a,i,i][l],b:255*[i,i,s,n,n,a][l]}}function d(t,e,n,r){var o=[N(Math.round(t).toString(16)),N(Math.round(e).toString(16)),N(Math.round(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function p(t,e,n,r,o){var i=[N(Math.round(t).toString(16)),N(Math.round(e).toString(16)),N(Math.round(n).toString(16)),N(z(r))];return o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function h(t,e,n,r){return[N(z(r)),N(Math.round(t).toString(16)),N(Math.round(e).toString(16)),N(Math.round(n).toString(16))].join("")}function u(t,e){e=0===e?0:e||10;var n=r(t).toHsl();return n.s-=e/100,n.s=T(n.s),r(n)}function f(t,e){e=0===e?0:e||10;var n=r(t).toHsl();return n.s+=e/100,n.s=T(n.s),r(n)}function m(t){return r(t).desaturate(100)}function g(t,e){e=0===e?0:e||10;var n=r(t).toHsl();return n.l+=e/100,n.l=T(n.l),r(n)}function b(t,e){e=0===e?0:e||10;var n=r(t).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-e/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-e/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-e/100*255))),r(n)}function y(t,e){e=0===e?0:e||10;var n=r(t).toHsl();return n.l-=e/100,n.l=T(n.l),r(n)}function w(t,e){var n=r(t).toHsl(),o=(n.h+e)%360;return n.h=o<0?360+o:o,r(n)}function A(t){var e=r(t).toHsl();return e.h=(e.h+180)%360,r(e)}function x(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var n=r(t).toHsl(),o=[r(t)],i=360/e,a=1;a<e;a++)o.push(r({h:(n.h+a*i)%360,s:n.s,l:n.l}));return o}function _(t){var e=r(t).toHsl(),n=e.h;return[r(t),r({h:(n+72)%360,s:e.s,l:e.l}),r({h:(n+216)%360,s:e.s,l:e.l})]}function v(t,e,n){e=e||6,n=n||30;var o=r(t).toHsl(),i=360/n,a=[r(t)];for(o.h=(o.h-(i*e>>1)+720)%360;--e;)o.h=(o.h+i)%360,a.push(r(o));return a}function k(t,e){e=e||6;for(var n=r(t).toHsv(),o=n.h,i=n.s,a=n.v,s=[],l=1/e;e--;)s.push(r({h:o,s:i,v:a})),a=(a+l)%1;return s}r.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,r=this.toRgb();return t=r.r/255,e=r.g/255,n=r.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=M(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=l(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=l(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=a(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=a(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return d(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return p(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*B(this._r,255))+"%",g:Math.round(100*B(this._g,255))+"%",b:Math.round(100*B(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*B(this._r,255))+"%, "+Math.round(100*B(this._g,255))+"%, "+Math.round(100*B(this._b,255))+"%)":"rgba("+Math.round(100*B(this._r,255))+"%, "+Math.round(100*B(this._g,255))+"%, "+Math.round(100*B(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(E[d(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+h(this._r,this._g,this._b,this._a),n=e,o=this._gradientType?"GradientType = 1, ":"";if(t){var i=r(t);n="#"+h(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return e||!r||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return r(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(g,arguments)},brighten:function(){return this._applyModification(b,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(u,arguments)},saturate:function(){return this._applyModification(f,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(w,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(v,arguments)},complement:function(){return this._applyCombination(A,arguments)},monochromatic:function(){return this._applyCombination(k,arguments)},splitcomplement:function(){return this._applyCombination(_,arguments)},triad:function(){return this._applyCombination(x,[3])},tetrad:function(){return this._applyCombination(x,[4])}},r.fromRatio=function(e,n){if("object"==t(e)){var o={};for(var i in e)e.hasOwnProperty(i)&&(o[i]="a"===i?e[i]:R(e[i]));e=o}return r(e,n)},r.equals=function(t,e){return!(!t||!e)&&r(t).toRgbString()==r(e).toRgbString()},r.random=function(){return r.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},r.mix=function(t,e,n){n=0===n?0:n||50;var o=r(t).toRgb(),i=r(e).toRgb(),a=n/100;return r({r:(i.r-o.r)*a+o.r,g:(i.g-o.g)*a+o.g,b:(i.b-o.b)*a+o.b,a:(i.a-o.a)*a+o.a})},r.readability=function(t,e){var n=r(t),o=r(e);return(Math.max(n.getLuminance(),o.getLuminance())+.05)/(Math.min(n.getLuminance(),o.getLuminance())+.05)},r.isReadable=function(t,e,n){var o,i,a=r.readability(t,e);switch(i=!1,(o=q(n)).level+o.size){case"AAsmall":case"AAAlarge":i=a>=4.5;break;case"AAlarge":i=a>=3;break;case"AAAsmall":i=a>=7}return i},r.mostReadable=function(t,e,n){var o,i,a,s,l=null,c=0;i=(n=n||{}).includeFallbackColors,a=n.level,s=n.size;for(var d=0;d<e.length;d++)(o=r.readability(t,e[d]))>c&&(c=o,l=r(e[d]));return r.isReadable(t,l,{level:a,size:s})||!i?l:(n.includeFallbackColors=!1,r.mostReadable(t,["#fff","#000"],n))};var C=r.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},E=r.hexNames=S(C);function S(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function M(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function B(t,e){O(t)&&(t="100%");var n=I(t);return t=Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function T(t){return Math.min(1,Math.max(0,t))}function L(t){return parseInt(t,16)}function O(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)}function I(t){return"string"==typeof t&&-1!=t.indexOf("%")}function N(t){return 1==t.length?"0"+t:""+t}function R(t){return t<=1&&(t=100*t+"%"),t}function z(t){return Math.round(255*parseFloat(t)).toString(16)}function H(t){return L(t)/255}var P,D,$,j=(D="[\\s|\\(]+("+(P="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+P+")[,|\\s]+("+P+")\\s*\\)?",$="[\\s|\\(]+("+P+")[,|\\s]+("+P+")[,|\\s]+("+P+")[,|\\s]+("+P+")\\s*\\)?",{CSS_UNIT:new RegExp(P),rgb:new RegExp("rgb"+D),rgba:new RegExp("rgba"+$),hsl:new RegExp("hsl"+D),hsla:new RegExp("hsla"+$),hsv:new RegExp("hsv"+D),hsva:new RegExp("hsva"+$),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function F(t){return!!j.CSS_UNIT.exec(t)}function U(t){t=t.replace(e,"").replace(n,"").toLowerCase();var r,o=!1;if(C[t])t=C[t],o=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(r=j.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=j.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=j.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=j.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=j.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=j.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=j.hex8.exec(t))?{r:L(r[1]),g:L(r[2]),b:L(r[3]),a:H(r[4]),format:o?"name":"hex8"}:(r=j.hex6.exec(t))?{r:L(r[1]),g:L(r[2]),b:L(r[3]),format:o?"name":"hex"}:(r=j.hex4.exec(t))?{r:L(r[1]+""+r[1]),g:L(r[2]+""+r[2]),b:L(r[3]+""+r[3]),a:H(r[4]+""+r[4]),format:o?"name":"hex8"}:!!(r=j.hex3.exec(t))&&{r:L(r[1]+""+r[1]),g:L(r[2]+""+r[2]),b:L(r[3]+""+r[3]),format:o?"name":"hex"}}function q(t){var e,n;return"AA"!==(e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==e&&(e="AA"),"small"!==(n=(t.size||"small").toLowerCase())&&"large"!==n&&(n="small"),{level:e,size:n}}return r}()},36936(t,e,n){"use strict";function r(t,e,n,r,o){var i={};return Object.keys(r).forEach(function(t){i[t]=r[t]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(n,r){return r(t,e,n)||n},i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer?(Object.defineProperty(t,e,i),null):i}n.d(e,{A:()=>r})},89575(t,e,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(null,arguments)}n.d(e,{A:()=>r})},59088(t,e,n){"use strict";function r(t,e,n,r){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}n.d(e,{A:()=>r})},72803(t,e,n){"use strict";n.d(e,{mN:()=>C,AH:()=>l,W3:()=>_,Ec:()=>v});const r=globalThis,o=r.ShadowRoot&&(void 0===r.ShadyCSS||r.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),a=new WeakMap;class s{constructor(t,e,n){if(this._$cssResult$=!0,n!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(o&&void 0===t){const n=void 0!==e&&1===e.length;n&&(t=a.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&a.set(e,t))}return t}toString(){return this.cssText}}const l=(t,...e)=>{const n=1===t.length?t[0]:e.reduce((e,n,r)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[r+1],t[0]);return new s(n,t,i)},c=(t,e)=>{if(o)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const n of e){const e=document.createElement("style"),o=r.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=n.cssText,t.appendChild(e)}},d=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return(t=>new s("string"==typeof t?t:t+"",void 0,i))(e)})(t):t,{is:p,defineProperty:h,getOwnPropertyDescriptor:u,getOwnPropertyNames:f,getOwnPropertySymbols:m,getPrototypeOf:g}=Object,b=globalThis,y=b.trustedTypes,w=y?y.emptyScript:"",A=b.reactiveElementPolyfillSupport,x=(t,e)=>t,_={toAttribute(t,e){switch(e){case Boolean:t=t?w:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},v=(t,e)=>!p(t,e),k={attribute:!0,type:String,converter:_,reflect:!1,useDefault:!1,hasChanged:v};Symbol.metadata??=Symbol("metadata"),b.litPropertyMetadata??=new WeakMap;class C extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=k){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const n=Symbol(),r=this.getPropertyDescriptor(t,n,e);void 0!==r&&h(this.prototype,t,r)}}static getPropertyDescriptor(t,e,n){const{get:r,set:o}=u(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:r,set(e){const i=r?.call(this);o?.call(this,e),this.requestUpdate(t,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??k}static _$Ei(){if(this.hasOwnProperty(x("elementProperties")))return;const t=g(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(x("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(x("properties"))){const t=this.properties,e=[...f(t),...m(t)];for(const n of e)this.createProperty(n,t[n])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,n]of e)this.elementProperties.set(t,n)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const n=this._$Eu(t,e);void 0!==n&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const t of n)e.unshift(d(t))}else void 0!==t&&e.push(d(t));return e}static _$Eu(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const n of e.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return c(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$ET(t,e){const n=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,n);if(void 0!==r&&!0===n.reflect){const o=(void 0!==n.converter?.toAttribute?n.converter:_).toAttribute(e,n.type);this._$Em=t,null==o?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,e){const n=this.constructor,r=n._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=n.getPropertyOptions(r),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:_;this._$Em=r;const i=o.fromAttribute(e,t.type);this[r]=i??this._$Ej?.get(r)??i,this._$Em=null}}requestUpdate(t,e,n,r=!1,o){if(void 0!==t){const i=this.constructor;if(!1===r&&(o=this[t]),n??=i.getPropertyOptions(t),!((n.hasChanged??v)(o,e)||n.useDefault&&n.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,n))))return;this.C(t,e,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:n,reflect:r,wrapped:o},i){n&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),!0!==o||void 0!==i)||(this._$AL.has(t)||(this.hasUpdated||n||(e=void 0),this._$AL.set(t,e)),!0===r&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,n]of t){const{wrapped:t}=n,r=this[e];!0!==t||this._$AL.has(e)||void 0===r||this.C(e,void 0,n,r)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}}C.elementStyles=[],C.shadowRootOptions={mode:"open"},C[x("elementProperties")]=new Map,C[x("finalized")]=new Map,A?.({ReactiveElement:C}),(b.reactiveElementVersions??=[]).push("2.1.2")},81318(t,e,n){"use strict";n.d(e,{KE:()=>ce,YY:()=>ut,CU:()=>st,bP:()=>me,gk:()=>X,T7:()=>zt,xe:()=>Ht,Nx:()=>Pt,eL:()=>Dt,gu:()=>Ft,FF:()=>qt,iI:()=>j,z6:()=>Rt,hO:()=>Wt,Op:()=>Zt,OX:()=>de,Zc:()=>ge,KV:()=>W,jT:()=>pe,gg:()=>be,Yp:()=>ue,JJ:()=>he,tG:()=>fe});var r=n(81570),o=n(73686),i=n(15939),a=n(16090),s=n(11329);const l=(t,e)=>!t.selection.empty&&(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function c(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const d=(t,e,n)=>{let o=c(t,n);if(!o)return!1;let i=f(o);if(!i){let n=o.blockRange(),r=n&&(0,s.jP)(n);return null!=r&&(e&&e(t.tr.lift(n,r).scrollIntoView()),!0)}let l=i.nodeBefore;if(E(t,i,e,-1))return!0;if(0==o.parent.content.size&&(h(l,"end")||r.nh.isSelectable(l)))for(let n=o.depth;;n--){let c=(0,s.$L)(t.doc,o.before(n),o.after(n),a.Ji.empty);if(c&&c.slice.size<c.to-c.from){if(e){let n=t.tr.step(c);n.setSelection(h(l,"end")?r.LN.findFrom(n.doc.resolve(n.mapping.map(i.pos,-1)),-1):r.nh.create(n.doc,i.pos-l.nodeSize)),e(n.scrollIntoView())}return!0}if(1==n||o.node(n-1).childCount>1)break}return!(!l.isAtom||i.depth!=o.depth-1)&&(e&&e(t.tr.delete(i.pos-l.nodeSize,i.pos).scrollIntoView()),!0)};function p(t,e,n){let o=e.nodeBefore,i=e.pos-1;for(;!o.isTextblock;i--){if(o.type.spec.isolating)return!1;let t=o.lastChild;if(!t)return!1;o=t}let l=e.nodeAfter,c=e.pos+1;for(;!l.isTextblock;c++){if(l.type.spec.isolating)return!1;let t=l.firstChild;if(!t)return!1;l=t}let d=(0,s.$L)(t.doc,i,c,a.Ji.empty);if(!d||d.from!=i||d instanceof s.Ln&&d.slice.size>=c-i)return!1;if(n){let e=t.tr.step(d);e.setSelection(r.U3.create(e.doc,i)),n(e.scrollIntoView())}return!0}function h(t,e,n=!1){for(let r=t;r;r="start"==e?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&1!=r.childCount)return!1}return!1}const u=(t,e,n)=>{let{$head:o,empty:i}=t.selection,a=o;if(!i)return!1;if(o.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):o.parentOffset>0)return!1;a=f(o)}let s=a&&a.nodeBefore;return!(!s||!r.nh.isSelectable(s))&&(e&&e(t.tr.setSelection(r.nh.create(t.doc,a.pos-s.nodeSize)).scrollIntoView()),!0)};function f(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function m(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const g=(t,e,n)=>{let o=m(t,n);if(!o)return!1;let i=y(o);if(!i)return!1;let l=i.nodeAfter;if(E(t,i,e,1))return!0;if(0==o.parent.content.size&&(h(l,"start")||r.nh.isSelectable(l))){let n=(0,s.$L)(t.doc,o.before(),o.after(),a.Ji.empty);if(n&&n.slice.size<n.to-n.from){if(e){let o=t.tr.step(n);o.setSelection(h(l,"start")?r.LN.findFrom(o.doc.resolve(o.mapping.map(i.pos)),1):r.nh.create(o.doc,o.mapping.map(i.pos))),e(o.scrollIntoView())}return!0}}return!(!l.isAtom||i.depth!=o.depth-1)&&(e&&e(t.tr.delete(i.pos,i.pos+l.nodeSize).scrollIntoView()),!0)},b=(t,e,n)=>{let{$head:o,empty:i}=t.selection,a=o;if(!i)return!1;if(o.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):o.parentOffset<o.parent.content.size)return!1;a=y(o)}let s=a&&a.nodeAfter;return!(!s||!r.nh.isSelectable(s))&&(e&&e(t.tr.setSelection(r.nh.create(t.doc,a.pos)).scrollIntoView()),!0)};function y(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){let n=t.node(e);if(t.index(e)+1<n.childCount)return t.doc.resolve(t.after(e+1));if(n.type.spec.isolating)break}return null}const w=(t,e)=>{let{$head:n,$anchor:r}=t.selection;return!(!n.parent.type.spec.code||!n.sameParent(r))&&(e&&e(t.tr.insertText("\n").scrollIntoView()),!0)};function A(t){for(let e=0;e<t.edgeCount;e++){let{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const x=(t,e)=>{let{$head:n,$anchor:o}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(o))return!1;let i=n.node(-1),a=n.indexAfter(-1),s=A(i.contentMatchAt(a));if(!s||!i.canReplaceWith(a,a,s))return!1;if(e){let o=n.after(),i=t.tr.replaceWith(o,o,s.createAndFill());i.setSelection(r.LN.near(i.doc.resolve(o),1)),e(i.scrollIntoView())}return!0},_=(t,e)=>{let n=t.selection,{$from:o,$to:i}=n;if(n instanceof r.i5||o.parent.inlineContent||i.parent.inlineContent)return!1;let a=A(i.parent.contentMatchAt(i.indexAfter()));if(!a||!a.isTextblock)return!1;if(e){let n=(!o.parentOffset&&i.index()<i.parent.childCount?o:i).pos,s=t.tr.insert(n,a.createAndFill());s.setSelection(r.U3.create(s.doc,n+1)),e(s.scrollIntoView())}return!0},v=(t,e)=>{let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let r=n.before();if((0,s.zy)(t.doc,r))return e&&e(t.tr.split(r).scrollIntoView()),!0}let r=n.blockRange(),o=r&&(0,s.jP)(r);return null!=o&&(e&&e(t.tr.lift(r,o).scrollIntoView()),!0)};const k=(t,e)=>{let{$from:n,$to:o}=t.selection;if(t.selection instanceof r.nh&&t.selection.node.isBlock)return!(!n.parentOffset||!(0,s.zy)(t.doc,n.pos)||(e&&e(t.tr.split(n.pos).scrollIntoView()),0));if(!n.depth)return!1;let i,a,l=[],c=!1,d=!1;for(let t=n.depth;;t--){if(n.node(t).isBlock){c=n.end(t)==n.pos+(n.depth-t),d=n.start(t)==n.pos-(n.depth-t),a=A(n.node(t-1).contentMatchAt(n.indexAfter(t-1)));let e=C&&C(o.parent,c,n);l.unshift(e||(c&&a?{type:a}:null)),i=t;break}if(1==t)return!1;l.unshift(null)}let p=t.tr;(t.selection instanceof r.U3||t.selection instanceof r.i5)&&p.deleteSelection();let h=p.mapping.map(n.pos),u=(0,s.zy)(p.doc,h,l.length,l);if(u||(l[0]=a?{type:a}:null,u=(0,s.zy)(p.doc,h,l.length,l)),!u)return!1;if(p.split(h,l.length,l),!c&&d&&n.node(i).type!=a){let t=p.mapping.map(n.before(i)),e=p.doc.resolve(t);a&&n.node(i-1).canReplaceWith(e.index(),e.index()+1,a)&&p.setNodeMarkup(p.mapping.map(n.before(i)),a)}return e&&e(p.scrollIntoView()),!0};var C;function E(t,e,n,o){let i,l,c=e.nodeBefore,d=e.nodeAfter,p=c.type.spec.isolating||d.type.spec.isolating;if(!p&&function(t,e,n){let r=e.nodeBefore,o=e.nodeAfter,i=e.index();return!(!(r&&o&&r.type.compatibleContent(o.type))||(!r.content.size&&e.parent.canReplace(i-1,i)?(n&&n(t.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),0):!e.parent.canReplace(i,i+1)||!o.isTextblock&&!(0,s.n9)(t.doc,e.pos)||(n&&n(t.tr.join(e.pos).scrollIntoView()),0)))}(t,e,n))return!0;let u=!p&&e.parent.canReplace(e.index(),e.index()+1);if(u&&(i=(l=c.contentMatchAt(c.childCount)).findWrapping(d.type))&&l.matchType(i[0]||d.type).validEnd){if(n){let r=e.pos+d.nodeSize,o=a.FK.empty;for(let t=i.length-1;t>=0;t--)o=a.FK.from(i[t].create(null,o));o=a.FK.from(c.copy(o));let l=t.tr.step(new s.Wg(e.pos-1,r,e.pos,r,new a.Ji(o,1,0),i.length,!0)),p=l.doc.resolve(r+2*i.length);p.nodeAfter&&p.nodeAfter.type==c.type&&(0,s.n9)(l.doc,p.pos)&&l.join(p.pos),n(l.scrollIntoView())}return!0}let f=d.type.spec.isolating||o>0&&p?null:r.LN.findFrom(e,1),m=f&&f.$from.blockRange(f.$to),g=m&&(0,s.jP)(m);if(null!=g&&g>=e.depth)return n&&n(t.tr.lift(m,g).scrollIntoView()),!0;if(u&&h(d,"start",!0)&&h(c,"end")){let r=c,o=[];for(;o.push(r),!r.isTextblock;)r=r.lastChild;let i=d,l=1;for(;!i.isTextblock;i=i.firstChild)l++;if(r.canReplace(r.childCount,r.childCount,i.content)){if(n){let r=a.FK.empty;for(let t=o.length-1;t>=0;t--)r=a.FK.from(o[t].copy(r));n(t.tr.step(new s.Wg(e.pos-o.length,e.pos+d.nodeSize,e.pos+l,e.pos+d.nodeSize-l,new a.Ji(r,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function S(t){return function(e,n){let o=e.selection,i=t<0?o.$from:o.$to,a=i.depth;for(;i.node(a).isInline;){if(!a)return!1;a--}return!!i.node(a).isTextblock&&(n&&n(e.tr.setSelection(r.U3.create(e.doc,t<0?i.start(a):i.end(a)))),!0)}}const M=S(-1),B=S(1);function T(t,e=null){return function(n,r){let o=!1;for(let r=0;r<n.selection.ranges.length&&!o;r++){let{$from:{pos:i},$to:{pos:a}}=n.selection.ranges[r];n.doc.nodesBetween(i,a,(r,i)=>{if(o)return!1;if(r.isTextblock&&!r.hasMarkup(t,e))if(r.type==t)o=!0;else{let e=n.doc.resolve(i),r=e.index();o=e.parent.canReplaceWith(r,r+1,t)}})}if(!o)return!1;if(r){let o=n.tr;for(let r=0;r<n.selection.ranges.length;r++){let{$from:{pos:i},$to:{pos:a}}=n.selection.ranges[r];o.setBlockType(i,a,t,e)}r(o.scrollIntoView())}return!0}}function L(...t){return function(e,n,r){for(let o=0;o<t.length;o++)if(t[o](e,n,r))return!0;return!1}}let O=L(l,d,u),I=L(l,g,b);const N={Enter:L(w,_,v,k),"Mod-Enter":x,Backspace:O,"Mod-Backspace":O,"Shift-Backspace":O,Delete:I,"Mod-Delete":I,"Mod-a":(t,e)=>(e&&e(t.tr.setSelection(new r.i5(t.doc))),!0)},R={"Ctrl-h":N.Backspace,"Alt-Backspace":N["Mod-Backspace"],"Ctrl-d":N.Delete,"Ctrl-Alt-Backspace":N["Mod-Delete"],"Alt-Delete":N["Mod-Delete"],"Alt-d":N["Mod-Delete"],"Ctrl-a":M,"Ctrl-e":B};for(let t in N)R[t]=N[t];"undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!("undefined"==typeof os||!os.platform)&&os.platform();function z(t,e=null){return function(n,r){let{$from:o,$to:i}=n.selection,l=o.blockRange(i);if(!l)return!1;let c=r?n.tr:null;return!!function(t,e,n,r=null){let o=!1,i=e,l=e.$from.doc;if(e.depth>=2&&e.$from.node(e.depth-1).type.compatibleContent(n)&&0==e.startIndex){if(0==e.$from.index(e.depth-1))return!1;let t=l.resolve(e.start-2);i=new a.u$(t,t,e.depth),e.endIndex<e.parent.childCount&&(e=new a.u$(e.$from,l.resolve(e.$to.end(e.depth)),e.depth)),o=!0}let c=(0,s.oM)(i,n,r,e);if(!c)return!1;t&&function(t,e,n,r,o){let i=a.FK.empty;for(let t=n.length-1;t>=0;t--)i=a.FK.from(n[t].type.create(n[t].attrs,i));t.step(new s.Wg(e.start-(r?2:0),e.end,e.start,e.end,new a.Ji(i,0,0),n.length,!0));let l=0;for(let t=0;t<n.length;t++)n[t].type==o&&(l=t+1);let c=n.length-l,d=e.start+n.length-(r?2:0),p=e.parent;for(let n=e.startIndex,r=e.endIndex,o=!0;n<r;n++,o=!1)!o&&(0,s.zy)(t.doc,d,c)&&(t.split(d,c),d+=2*c),d+=p.child(n).nodeSize}(t,e,c,o,n);return!0}(c,l,t,e)&&(r&&r(c.scrollIntoView()),!0)}}function H(t){return function(e,n){let{$from:r,$to:o}=e.selection,i=r.blockRange(o,e=>e.childCount>0&&e.firstChild.type==t);return!!i&&(!n||(r.node(i.depth-1).type==t?function(t,e,n,r){let o=t.tr,i=r.end,l=r.$to.end(r.depth);i<l&&(o.step(new s.Wg(i-1,l,i,l,new a.Ji(a.FK.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new a.u$(o.doc.resolve(r.$from.pos),o.doc.resolve(l),r.depth));const c=(0,s.jP)(r);if(null==c)return!1;o.lift(r,c);let d=o.doc.resolve(o.mapping.map(i,-1)-1);(0,s.n9)(o.doc,d.pos)&&d.nodeBefore.type==d.nodeAfter.type&&o.join(d.pos);return e(o.scrollIntoView()),!0}(e,n,t,i):function(t,e,n){let r=t.tr,o=n.parent;for(let t=n.end,e=n.endIndex-1,i=n.startIndex;e>i;e--)t-=o.child(e).nodeSize,r.delete(t-1,t+1);let i=r.doc.resolve(n.start),l=i.nodeAfter;if(r.mapping.map(n.end)!=n.start+i.nodeAfter.nodeSize)return!1;let c=0==n.startIndex,d=n.endIndex==o.childCount,p=i.node(-1),h=i.index(-1);if(!p.canReplace(h+(c?0:1),h+1,l.content.append(d?a.FK.empty:a.FK.from(o))))return!1;let u=i.pos,f=u+l.nodeSize;return r.step(new s.Wg(u-(c?1:0),f+(d?1:0),u+1,f-1,new a.Ji((c?a.FK.empty:a.FK.from(o.copy(a.FK.empty))).append(d?a.FK.empty:a.FK.from(o.copy(a.FK.empty))),c?0:1,d?0:1),c?0:1)),e(r.scrollIntoView()),!0}(e,n,i)))}}function P(t){const{state:e,transaction:n}=t;let{selection:r}=n,{doc:o}=n,{storedMarks:i}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return i},get selection(){return r},get doc(){return o},get tr(){return r=n.selection,o=n.doc,i=n.storedMarks,n}}}class D{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:e,state:n}=this,{view:r}=e,{tr:o}=n,i=this.buildProps(o);return Object.fromEntries(Object.entries(t).map(([t,e])=>[t,(...t)=>{const n=e(...t)(i);return o.getMeta("preventDispatch")||this.hasCustomState||r.dispatch(o),n}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,e=!0){const{rawCommands:n,editor:r,state:o}=this,{view:i}=r,a=[],s=!!t,l=t||o.tr,c={...Object.fromEntries(Object.entries(n).map(([t,n])=>[t,(...t)=>{const r=this.buildProps(l,e),o=n(...t)(r);return a.push(o),c}])),run:()=>(s||!e||l.getMeta("preventDispatch")||this.hasCustomState||i.dispatch(l),a.every(t=>!0===t))};return c}createCan(t){const{rawCommands:e,state:n}=this,r=!1,o=t||n.tr,i=this.buildProps(o,r),a=Object.fromEntries(Object.entries(e).map(([t,e])=>[t,(...t)=>e(...t)({...i,dispatch:void 0})]));return{...a,chain:()=>this.createChain(o,r)}}buildProps(t,e=!0){const{rawCommands:n,editor:r,state:o}=this,{view:i}=r,a={tr:t,editor:r,view:i,state:P({state:o,transaction:t}),dispatch:e?()=>{}:void 0,chain:()=>this.createChain(t,e),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(n).map(([t,e])=>[t,(...t)=>e(...t)(a)]))}};return a}}class ${constructor(){this.callbacks={}}on(t,e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),this}emit(t,...e){const n=this.callbacks[t];return n&&n.forEach(t=>t.apply(this,e)),this}off(t,e){const n=this.callbacks[t];return n&&(e?this.callbacks[t]=n.filter(t=>t!==e):delete this.callbacks[t]),this}once(t,e){const n=(...r)=>{this.off(t,n),e.apply(this,r)};return this.on(t,n)}removeAllListeners(){this.callbacks={}}}function j(t,e,n){if(void 0===t.config[e]&&t.parent)return j(t.parent,e,n);if("function"==typeof t.config[e]){return t.config[e].bind({...n,parent:t.parent?j(t.parent,e,n):null})}return t.config[e]}function F(t){return{baseExtensions:t.filter(t=>"extension"===t.type),nodeExtensions:t.filter(t=>"node"===t.type),markExtensions:t.filter(t=>"mark"===t.type)}}function U(t){const e=[],{nodeExtensions:n,markExtensions:r}=F(t),o=[...n,...r],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach(t=>{const n=j(t,"addGlobalAttributes",{name:t.name,options:t.options,storage:t.storage,extensions:o});if(!n)return;n().forEach(t=>{t.types.forEach(n=>{Object.entries(t.attributes).forEach(([t,r])=>{e.push({type:n,name:t,attribute:{...i,...r}})})})})}),o.forEach(t=>{const n={name:t.name,options:t.options,storage:t.storage},r=j(t,"addAttributes",n);if(!r)return;const o=r();Object.entries(o).forEach(([n,r])=>{const o={...i,...r};"function"==typeof(null==o?void 0:o.default)&&(o.default=o.default()),(null==o?void 0:o.isRequired)&&void 0===(null==o?void 0:o.default)&&delete o.default,e.push({type:t.name,name:n,attribute:o})})}),e}function q(t,e){if("string"==typeof t){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}function W(...t){return t.filter(t=>!!t).reduce((t,e)=>{const n={...t};return Object.entries(e).forEach(([t,e])=>{if(n[t])if("class"===t){const r=e?String(e).split(" "):[],o=n[t]?n[t].split(" "):[],i=r.filter(t=>!o.includes(t));n[t]=[...o,...i].join(" ")}else if("style"===t){const r=e?e.split(";").map(t=>t.trim()).filter(Boolean):[],o=n[t]?n[t].split(";").map(t=>t.trim()).filter(Boolean):[],i=new Map;o.forEach(t=>{const[e,n]=t.split(":").map(t=>t.trim());i.set(e,n)}),r.forEach(t=>{const[e,n]=t.split(":").map(t=>t.trim());i.set(e,n)}),n[t]=Array.from(i.entries()).map(([t,e])=>`${t}: ${e}`).join("; ")}else n[t]=e;else n[t]=e}),n},{})}function V(t,e){return e.filter(e=>e.type===t.type.name).filter(t=>t.attribute.rendered).map(e=>e.attribute.renderHTML?e.attribute.renderHTML(t.attrs)||{}:{[e.name]:t.attrs[e.name]}).reduce((t,e)=>W(t,e),{})}function Y(t){return"function"==typeof t}function X(t,e=void 0,...n){return Y(t)?e?t.bind(e)(...n):t(...n):t}function Z(t,e){return"style"in t?t:{...t,getAttrs:n=>{const r=t.getAttrs?t.getAttrs(n):t.attrs;if(!1===r)return!1;const o=e.reduce((t,e)=>{const r=e.attribute.parseHTML?e.attribute.parseHTML(n):function(t){return"string"!=typeof t?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):"true"===t||"false"!==t&&t}(n.getAttribute(e.name));return null==r?t:{...t,[e.name]:r}},{});return{...r,...o}}}}function K(t){return Object.fromEntries(Object.entries(t).filter(([t,e])=>("attrs"!==t||!function(t={}){return 0===Object.keys(t).length&&t.constructor===Object}(e))&&null!=e))}function J(t,e){var n;const r=U(t),{nodeExtensions:o,markExtensions:i}=F(t),s=null===(n=o.find(t=>j(t,"topNode")))||void 0===n?void 0:n.name,l=Object.fromEntries(o.map(n=>{const o=r.filter(t=>t.type===n.name),i={name:n.name,options:n.options,storage:n.storage,editor:e},a=K({...t.reduce((t,e)=>{const r=j(e,"extendNodeSchema",i);return{...t,...r?r(n):{}}},{}),content:X(j(n,"content",i)),marks:X(j(n,"marks",i)),group:X(j(n,"group",i)),inline:X(j(n,"inline",i)),atom:X(j(n,"atom",i)),selectable:X(j(n,"selectable",i)),draggable:X(j(n,"draggable",i)),code:X(j(n,"code",i)),whitespace:X(j(n,"whitespace",i)),linebreakReplacement:X(j(n,"linebreakReplacement",i)),defining:X(j(n,"defining",i)),isolating:X(j(n,"isolating",i)),attrs:Object.fromEntries(o.map(t=>{var e;return[t.name,{default:null===(e=null==t?void 0:t.attribute)||void 0===e?void 0:e.default}]}))}),s=X(j(n,"parseHTML",i));s&&(a.parseDOM=s.map(t=>Z(t,o)));const l=j(n,"renderHTML",i);l&&(a.toDOM=t=>l({node:t,HTMLAttributes:V(t,o)}));const c=j(n,"renderText",i);return c&&(a.toText=c),[n.name,a]})),c=Object.fromEntries(i.map(n=>{const o=r.filter(t=>t.type===n.name),i={name:n.name,options:n.options,storage:n.storage,editor:e},a=K({...t.reduce((t,e)=>{const r=j(e,"extendMarkSchema",i);return{...t,...r?r(n):{}}},{}),inclusive:X(j(n,"inclusive",i)),excludes:X(j(n,"excludes",i)),group:X(j(n,"group",i)),spanning:X(j(n,"spanning",i)),code:X(j(n,"code",i)),attrs:Object.fromEntries(o.map(t=>{var e;return[t.name,{default:null===(e=null==t?void 0:t.attribute)||void 0===e?void 0:e.default}]}))}),s=X(j(n,"parseHTML",i));s&&(a.parseDOM=s.map(t=>Z(t,o)));const l=j(n,"renderHTML",i);return l&&(a.toDOM=t=>l({mark:t,HTMLAttributes:V(t,o)})),[n.name,a]}));return new a.Sj({topNode:s,nodes:l,marks:c})}function G(t,e){return e.nodes[t]||e.marks[t]||null}function Q(t,e){return Array.isArray(e)?e.some(e=>("string"==typeof e?e:e.name)===t.name):e}function tt(t,e){const n=a.ZF.fromSchema(e).serializeFragment(t),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}function et(t){return"[object RegExp]"===Object.prototype.toString.call(t)}class nt{constructor(t){this.find=t.find,this.handler=t.handler}}function rt(t){var e;const{editor:n,from:r,to:o,text:i,rules:a,plugin:s}=t,{view:l}=n;if(l.composing)return!1;const c=l.state.doc.resolve(r);if(c.parent.type.spec.code||(null===(e=c.nodeBefore||c.nodeAfter)||void 0===e?void 0:e.marks.find(t=>t.type.spec.code)))return!1;let d=!1;const p=((t,e=500)=>{let n="";const r=t.parentOffset;return t.parent.nodesBetween(Math.max(0,r-e),r,(t,e,o,i)=>{var a,s;const l=(null===(s=(a=t.type.spec).toText)||void 0===s?void 0:s.call(a,{node:t,pos:e,parent:o,index:i}))||t.textContent||"%leaf%";n+=t.isAtom&&!t.isText?l:l.slice(0,Math.max(0,r-e))}),n})(c)+i;return a.forEach(t=>{if(d)return;const e=((t,e)=>{if(et(e))return e.exec(t);const n=e(t);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=t,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r})(p,t.find);if(!e)return;const a=l.state.tr,c=P({state:l.state,transaction:a}),h={from:r-(e[0].length-i.length),to:o},{commands:u,chain:f,can:m}=new D({editor:n,state:c});null!==t.handler({state:c,range:h,match:e,commands:u,chain:f,can:m})&&a.steps.length&&(a.setMeta(s,{transform:a,from:r,to:o,text:i}),l.dispatch(a),d=!0)}),d}function ot(t){const{editor:e,rules:n}=t,o=new r.k_({state:{init:()=>null,apply(t,r,i){const s=t.getMeta(o);if(s)return s;const l=t.getMeta("applyInputRules");return!!l&&setTimeout(()=>{let{text:t}=l;"string"==typeof t||(t=tt(a.FK.from(t),i.schema));const{from:r}=l,s=r+t.length;rt({editor:e,from:r,to:s,text:t,rules:n,plugin:o})}),t.selectionSet||t.docChanged?null:r}},props:{handleTextInput:(t,r,i,a)=>rt({editor:e,from:r,to:i,text:a,rules:n,plugin:o}),handleDOMEvents:{compositionend:t=>(setTimeout(()=>{const{$cursor:r}=t.state.selection;r&&rt({editor:e,from:r.pos,to:r.pos,text:"",rules:n,plugin:o})}),!1)},handleKeyDown(t,r){if("Enter"!==r.key)return!1;const{$cursor:i}=t.state.selection;return!!i&&rt({editor:e,from:i.pos,to:i.pos,text:"\n",rules:n,plugin:o})}},isInputRules:!0});return o}function it(t){return"Object"===function(t){return Object.prototype.toString.call(t).slice(8,-1)}(t)&&(t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype)}function at(t,e){const n={...t};return it(t)&&it(e)&&Object.keys(e).forEach(r=>{it(e[r])&&it(t[r])?n[r]=at(t[r],e[r]):n[r]=e[r]}),n}class st{constructor(t={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=X(j(this,"addOptions",{name:this.name}))),this.storage=X(j(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new st(t)}configure(t={}){const e=this.extend({...this.config,addOptions:()=>at(this.options,t)});return e.name=this.name,e.parent=this.parent,e}extend(t={}){const e=new st(t);return e.parent=this,this.child=e,e.name=t.name?t.name:e.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=X(j(e,"addOptions",{name:e.name})),e.storage=X(j(e,"addStorage",{name:e.name,options:e.options})),e}static handleExit({editor:t,mark:e}){const{tr:n}=t.state,r=t.state.selection.$from;if(r.pos===r.end()){const o=r.marks();if(!!!o.find(t=>(null==t?void 0:t.type.name)===e.name))return!1;const i=o.find(t=>(null==t?void 0:t.type.name)===e.name);return i&&n.removeStoredMark(i),n.insertText(" ",r.pos),t.view.dispatch(n),!0}return!1}}class lt{constructor(t){this.find=t.find,this.handler=t.handler}}function ct(t){const{editor:e,state:n,from:r,to:o,rule:i,pasteEvent:a,dropEvent:s}=t,{commands:l,chain:c,can:d}=new D({editor:e,state:n}),p=[];n.doc.nodesBetween(r,o,(t,e)=>{if(!t.isTextblock||t.type.spec.code)return;const h=Math.max(r,e),u=Math.min(o,e+t.content.size);((t,e,n)=>{if(et(e))return[...t.matchAll(e)];const r=e(t,n);return r?r.map(e=>{const n=[e.text];return n.index=e.index,n.input=t,n.data=e.data,e.replaceWith&&(e.text.includes(e.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),n.push(e.replaceWith)),n}):[]})(t.textBetween(h-e,u-e,void 0,"๏ฟผ"),i.find,a).forEach(t=>{if(void 0===t.index)return;const e=h+t.index+1,r=e+t[0].length,o={from:n.tr.mapping.map(e),to:n.tr.mapping.map(r)},u=i.handler({state:n,range:o,match:t,commands:l,chain:c,can:d,pasteEvent:a,dropEvent:s});p.push(u)})});return p.every(t=>null!==t)}let dt=null;function pt(t){const{editor:e,rules:n}=t;let o,i=null,s=!1,l=!1,c="undefined"!=typeof ClipboardEvent?new ClipboardEvent("paste"):null;try{o="undefined"!=typeof DragEvent?new DragEvent("drop"):null}catch{o=null}const d=({state:t,from:n,to:r,rule:i,pasteEvt:a})=>{const s=t.tr,l=P({state:t,transaction:s});if(ct({editor:e,state:l,from:Math.max(n-1,0),to:r.b-1,rule:i,pasteEvent:a,dropEvent:o})&&s.steps.length){try{o="undefined"!=typeof DragEvent?new DragEvent("drop"):null}catch{o=null}return c="undefined"!=typeof ClipboardEvent?new ClipboardEvent("paste"):null,s}};return n.map(t=>new r.k_({view(t){const n=n=>{var r;i=(null===(r=t.dom.parentElement)||void 0===r?void 0:r.contains(n.target))?t.dom.parentElement:null,i&&(dt=e)},r=()=>{dt&&(dt=null)};return window.addEventListener("dragstart",n),window.addEventListener("dragend",r),{destroy(){window.removeEventListener("dragstart",n),window.removeEventListener("dragend",r)}}},props:{handleDOMEvents:{drop:(t,e)=>{if(l=i===t.dom.parentElement,o=e,!l){const t=dt;(null==t?void 0:t.isEditable)&&setTimeout(()=>{const e=t.state.selection;e&&t.commands.deleteRange({from:e.from,to:e.to})},10)}return!1},paste:(t,e)=>{var n;const r=null===(n=e.clipboardData)||void 0===n?void 0:n.getData("text/html");return c=e,s=!!(null==r?void 0:r.includes("data-pm-slice")),!1}}},appendTransaction:(e,n,r)=>{const o=e[0],i="paste"===o.getMeta("uiEvent")&&!s,p="drop"===o.getMeta("uiEvent")&&!l,h=o.getMeta("applyPasteRules"),u=!!h;if(!i&&!p&&!u)return;if(u){let{text:e}=h;"string"==typeof e||(e=tt(a.FK.from(e),r.schema));const{from:n}=h,o=n+e.length,i=(t=>{var e;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return null===(e=n.clipboardData)||void 0===e||e.setData("text/html",t),n})(e);return d({rule:t,state:r,from:n,to:{b:o},pasteEvt:i})}const f=n.doc.content.findDiffStart(r.doc.content),m=n.doc.content.findDiffEnd(r.doc.content);return"number"==typeof f&&m&&f!==m.b?d({rule:t,state:r,from:f,to:m,pasteEvt:c}):void 0}}))}class ht{constructor(t,e){this.splittableMarks=[],this.editor=e,this.extensions=ht.resolve(t),this.schema=J(this.extensions,e),this.setupExtensions()}static resolve(t){const e=ht.sort(ht.flatten(t)),n=function(t){const e=t.filter((e,n)=>t.indexOf(e)!==n);return Array.from(new Set(e))}(e.map(t=>t.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(t=>`'${t}'`).join(", ")}]. This can lead to issues.`),e}static flatten(t){return t.map(t=>{const e=j(t,"addExtensions",{name:t.name,options:t.options,storage:t.storage});return e?[t,...this.flatten(e())]:t}).flat(10)}static sort(t){return t.sort((t,e)=>{const n=j(t,"priority")||100,r=j(e,"priority")||100;return n>r?-1:n<r?1:0})}get commands(){return this.extensions.reduce((t,e)=>{const n=j(e,"addCommands",{name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:G(e.name,this.schema)});return n?{...t,...n()}:t},{})}get plugins(){const{editor:t}=this,e=ht.sort([...this.extensions].reverse()),n=[],r=[],o=e.map(e=>{const o={name:e.name,options:e.options,storage:e.storage,editor:t,type:G(e.name,this.schema)},a=[],s=j(e,"addKeyboardShortcuts",o);let l={};if("mark"===e.type&&j(e,"exitable",o)&&(l.ArrowRight=()=>st.handleExit({editor:t,mark:e})),s){const e=Object.fromEntries(Object.entries(s()).map(([e,n])=>[e,()=>n({editor:t})]));l={...l,...e}}const c=(0,i.w)(l);a.push(c);const d=j(e,"addInputRules",o);Q(e,t.options.enableInputRules)&&d&&n.push(...d());const p=j(e,"addPasteRules",o);Q(e,t.options.enablePasteRules)&&p&&r.push(...p());const h=j(e,"addProseMirrorPlugins",o);if(h){const t=h();a.push(...t)}return a}).flat();return[ot({editor:t,rules:n}),...pt({editor:t,rules:r}),...o]}get attributes(){return U(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:e}=F(this.extensions);return Object.fromEntries(e.filter(t=>!!j(t,"addNodeView")).map(e=>{const n=this.attributes.filter(t=>t.type===e.name),r={name:e.name,options:e.options,storage:e.storage,editor:t,type:q(e.name,this.schema)},o=j(e,"addNodeView",r);if(!o)return[];return[e.name,(r,i,a,s,l)=>{const c=V(r,n);return o()({node:r,view:i,getPos:a,decorations:s,innerDecorations:l,editor:t,extension:e,HTMLAttributes:c})}]}))}setupExtensions(){this.extensions.forEach(t=>{var e;this.editor.extensionStorage[t.name]=t.storage;const n={name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:G(t.name,this.schema)};if("mark"===t.type){(null===(e=X(j(t,"keepOnSplit",n)))||void 0===e||e)&&this.splittableMarks.push(t.name)}const r=j(t,"onBeforeCreate",n),o=j(t,"onCreate",n),i=j(t,"onUpdate",n),a=j(t,"onSelectionUpdate",n),s=j(t,"onTransaction",n),l=j(t,"onFocus",n),c=j(t,"onBlur",n),d=j(t,"onDestroy",n);r&&this.editor.on("beforeCreate",r),o&&this.editor.on("create",o),i&&this.editor.on("update",i),a&&this.editor.on("selectionUpdate",a),s&&this.editor.on("transaction",s),l&&this.editor.on("focus",l),c&&this.editor.on("blur",c),d&&this.editor.on("destroy",d)})}}class ut{constructor(t={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=X(j(this,"addOptions",{name:this.name}))),this.storage=X(j(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new ut(t)}configure(t={}){const e=this.extend({...this.config,addOptions:()=>at(this.options,t)});return e.name=this.name,e.parent=this.parent,e}extend(t={}){const e=new ut({...this.config,...t});return e.parent=this,this.child=e,e.name=t.name?t.name:e.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=X(j(e,"addOptions",{name:e.name})),e.storage=X(j(e,"addStorage",{name:e.name,options:e.options})),e}}function ft(t,e,n){const{from:r,to:o}=e,{blockSeparator:i="\n\n",textSerializers:a={}}=n||{};let s="";return t.nodesBetween(r,o,(t,n,l,c)=>{var d;t.isBlock&&n>r&&(s+=i);const p=null==a?void 0:a[t.type.name];if(p)return l&&(s+=p({node:t,pos:n,parent:l,index:c,range:e})),!1;t.isText&&(s+=null===(d=null==t?void 0:t.text)||void 0===d?void 0:d.slice(Math.max(r,n)-n,o-n))}),s}function mt(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,t])=>t.spec.toText).map(([t,e])=>[t,e.spec.toText]))}const gt=ut.create({name:"clipboardTextSerializer",addOptions:()=>({blockSeparator:void 0}),addProseMirrorPlugins(){return[new r.k_({key:new r.hs("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:r,selection:o}=e,{ranges:i}=o,a=Math.min(...i.map(t=>t.$from.pos)),s=Math.max(...i.map(t=>t.$to.pos)),l=mt(n);return ft(r,{from:a,to:s},{...void 0!==this.options.blockSeparator?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}});function bt(t,e,n={strict:!0}){const r=Object.keys(e);return!r.length||r.every(r=>n.strict?e[r]===t[r]:et(e[r])?e[r].test(t[r]):e[r]===t[r])}function yt(t,e,n={}){return t.find(t=>t.type===e&&bt(Object.fromEntries(Object.keys(n).map(e=>[e,t.attrs[e]])),n))}function wt(t,e,n={}){return!!yt(t,e,n)}function At(t,e,n){var r;if(!t||!e)return;let o=t.parent.childAfter(t.parentOffset);if(o.node&&o.node.marks.some(t=>t.type===e)||(o=t.parent.childBefore(t.parentOffset)),!o.node||!o.node.marks.some(t=>t.type===e))return;n=n||(null===(r=o.node.marks[0])||void 0===r?void 0:r.attrs);if(!yt([...o.node.marks],e,n))return;let i=o.index,a=t.start()+o.offset,s=i+1,l=a+o.node.nodeSize;for(;i>0&&wt([...t.parent.child(i-1).marks],e,n);)i-=1,a-=t.parent.child(i).nodeSize;for(;s<t.parent.childCount&&wt([...t.parent.child(s).marks],e,n);)l+=t.parent.child(s).nodeSize,s+=1;return{from:a,to:l}}function xt(t,e){if("string"==typeof t){if(!e.marks[t])throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);return e.marks[t]}return t}function _t(t){return t instanceof r.U3}function vt(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function kt(t,e=null){if(!e)return null;const n=r.LN.atStart(t),o=r.LN.atEnd(t);if("start"===e||!0===e)return n;if("end"===e)return o;const i=n.from,a=o.to;return"all"===e?r.U3.create(t,vt(0,i,a),vt(t.content.size,i,a)):r.U3.create(t,vt(e,i,a),vt(e,i,a))}function Ct(){return"Android"===navigator.platform||/android/i.test(navigator.userAgent)}function Et(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const St=t=>{const e=t.childNodes;for(let n=e.length-1;n>=0;n-=1){const r=e[n];3===r.nodeType&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?t.removeChild(r):1===r.nodeType&&St(r)}return t};function Mt(t){const e=`<body>${t}</body>`,n=(new window.DOMParser).parseFromString(e,"text/html").body;return St(n)}function Bt(t,e,n){if(t instanceof a.bP||t instanceof a.FK)return t;n={slice:!0,parseOptions:{},...n};const r="string"==typeof t;if("object"==typeof t&&null!==t)try{if(Array.isArray(t)&&t.length>0)return a.FK.fromArray(t.map(t=>e.nodeFromJSON(t)));const r=e.nodeFromJSON(t);return n.errorOnInvalidContent&&r.check(),r}catch(r){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:r});return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",r),Bt("",e,n)}if(r){if(n.errorOnInvalidContent){let r=!1,o="";const i=new a.Sj({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:t=>(r=!0,o="string"==typeof t?t:t.outerHTML,null)}]}})});if(n.slice?a.S4.fromSchema(i).parseSlice(Mt(t),n.parseOptions):a.S4.fromSchema(i).parse(Mt(t),n.parseOptions),n.errorOnInvalidContent&&r)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${o}`)})}const r=a.S4.fromSchema(e);return n.slice?r.parseSlice(Mt(t),n.parseOptions).content:r.parse(Mt(t),n.parseOptions)}return Bt("",e,n)}function Tt(){return"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)}function Lt(t,e,n={}){const{from:r,to:o,empty:i}=t.selection,a=e?q(e,t.schema):null,s=[];t.doc.nodesBetween(r,o,(t,e)=>{if(t.isText)return;const n=Math.max(r,e),i=Math.min(o,e+t.nodeSize);s.push({node:t,from:n,to:i})});const l=o-r,c=s.filter(t=>!a||a.name===t.node.type.name).filter(t=>bt(t.node.attrs,n,{strict:!1}));if(i)return!!c.length;return c.reduce((t,e)=>t+e.to-e.from,0)>=l}function Ot(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function It(t,e){const n="string"==typeof e?[e]:e;return Object.keys(t).reduce((e,r)=>(n.includes(r)||(e[r]=t[r]),e),{})}function Nt(t,e,n={},r={}){return Bt(t,e,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}function Rt(t,e){const n=xt(e,t.schema),{from:r,to:o,empty:i}=t.selection,a=[];i?(t.storedMarks&&a.push(...t.storedMarks),a.push(...t.selection.$head.marks())):t.doc.nodesBetween(r,o,t=>{a.push(...t.marks)});const s=a.find(t=>t.type.name===n.name);return s?{...s.attrs}:{}}function zt(t,e){const n=new s.dL(t);return e.forEach(t=>{t.steps.forEach(t=>{n.step(t)})}),n}function Ht(t,e){const n=[];return t.descendants((t,r)=>{e(t)&&n.push({node:t,pos:r})}),n}function Pt(t,e,n){const r=[];return t.nodesBetween(e.from,e.to,(t,e)=>{n(t)&&r.push({node:t,pos:e})}),r}function Dt(t,e){for(let n=t.depth;n>0;n-=1){const r=t.node(n);if(e(r))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:r}}}function $t(t){return e=>Dt(e.$from,t)}function jt(t,e){return ft(t,{from:0,to:t.content.size},e)}function Ft(t,e){const n=Ot("string"==typeof e?e:e.name,t.schema);return"node"===n?function(t,e){const n=q(e,t.schema),{from:r,to:o}=t.selection,i=[];t.doc.nodesBetween(r,o,t=>{i.push(t)});const a=i.reverse().find(t=>t.type.name===n.name);return a?{...a.attrs}:{}}(t,e):"mark"===n?Rt(t,e):{}}function Ut(t){const e=function(t,e=JSON.stringify){const n={};return t.filter(t=>{const r=e(t);return!Object.prototype.hasOwnProperty.call(n,r)&&(n[r]=!0)})}(t);return 1===e.length?e:e.filter((t,n)=>!e.filter((t,e)=>e!==n).some(e=>t.oldRange.from>=e.oldRange.from&&t.oldRange.to<=e.oldRange.to&&t.newRange.from>=e.newRange.from&&t.newRange.to<=e.newRange.to))}function qt(t){const{mapping:e,steps:n}=t,r=[];return e.maps.forEach((t,o)=>{const i=[];if(t.ranges.length)t.forEach((t,e)=>{i.push({from:t,to:e})});else{const{from:t,to:e}=n[o];if(void 0===t||void 0===e)return;i.push({from:t,to:e})}i.forEach(({from:t,to:n})=>{const i=e.slice(o).map(t,-1),a=e.slice(o).map(n),s=e.invert().map(i,-1),l=e.invert().map(a);r.push({oldRange:{from:s,to:l},newRange:{from:i,to:a}})})}),Ut(r)}function Wt(t,e,n){const r=[];return t===e?n.resolve(t).marks().forEach(e=>{const o=At(n.resolve(t),e.type);o&&r.push({mark:e,...o})}):n.nodesBetween(t,e,(t,e)=>{t&&void 0!==(null==t?void 0:t.nodeSize)&&r.push(...t.marks.map(n=>({from:e,to:e+t.nodeSize,mark:n})))}),r}function Vt(t,e,n){return Object.fromEntries(Object.entries(n).filter(([n])=>{const r=t.find(t=>t.type===e&&t.name===n);return!!r&&r.attribute.keepOnSplit}))}function Yt(t,e,n={}){const{empty:r,ranges:o}=t.selection,i=e?xt(e,t.schema):null;if(r)return!!(t.storedMarks||t.selection.$from.marks()).filter(t=>!i||i.name===t.type.name).find(t=>bt(t.attrs,n,{strict:!1}));let a=0;const s=[];if(o.forEach(({$from:e,$to:n})=>{const r=e.pos,o=n.pos;t.doc.nodesBetween(r,o,(t,e)=>{if(!t.isText&&!t.marks.length)return;const n=Math.max(r,e),i=Math.min(o,e+t.nodeSize);a+=i-n,s.push(...t.marks.map(t=>({mark:t,from:n,to:i})))})}),0===a)return!1;const l=s.filter(t=>!i||i.name===t.mark.type.name).filter(t=>bt(t.mark.attrs,n,{strict:!1})).reduce((t,e)=>t+e.to-e.from,0),c=s.filter(t=>!i||t.mark.type!==i&&t.mark.type.excludes(i)).reduce((t,e)=>t+e.to-e.from,0);return(l>0?l+c:l)>=a}function Xt(t,e){const{nodeExtensions:n}=F(e),r=n.find(e=>e.name===t);if(!r)return!1;const o=X(j(r,"group",{name:r.name,options:r.options,storage:r.storage}));return"string"==typeof o&&o.split(" ").includes("list")}function Zt(t,{checkChildren:e=!0,ignoreWhitespace:n=!1}={}){var r;if(n){if("hardBreak"===t.type.name)return!0;if(t.isText)return/^\s*$/m.test(null!==(r=t.text)&&void 0!==r?r:"")}if(t.isText)return!t.text;if(t.isAtom||t.isLeaf)return!1;if(0===t.content.childCount)return!0;if(e){let r=!0;return t.content.forEach(t=>{!1!==r&&(Zt(t,{ignoreWhitespace:n,checkChildren:e})||(r=!1))}),r}return!1}function Kt(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const r=n.filter(t=>null==e?void 0:e.includes(t.type.name));t.tr.ensureMarks(r)}}const Jt=(t,e)=>{const n=$t(t=>t.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(void 0===r)return!0;const o=t.doc.nodeAt(r);return n.node.type!==(null==o?void 0:o.type)||!(0,s.n9)(t.doc,n.pos)||(t.join(n.pos),!0)},Gt=(t,e)=>{const n=$t(t=>t.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(n.start).after(n.depth);if(void 0===r)return!0;const o=t.doc.nodeAt(r);return n.node.type!==(null==o?void 0:o.type)||!(0,s.n9)(t.doc,r)||(t.join(r),!0)};var Qt=Object.freeze({__proto__:null,blur:()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var n;t.isDestroyed||(e.dom.blur(),null===(n=null===window||void 0===window?void 0:window.getSelection())||void 0===n||n.removeAllRanges())}),!0),clearContent:(t=!1)=>({commands:e})=>e.setContent("",t),clearNodes:()=>({state:t,tr:e,dispatch:n})=>{const{selection:r}=e,{ranges:o}=r;return!n||(o.forEach(({$from:n,$to:r})=>{t.doc.nodesBetween(n.pos,r.pos,(t,n)=>{if(t.type.isText)return;const{doc:r,mapping:o}=e,i=r.resolve(o.map(n)),a=r.resolve(o.map(n+t.nodeSize)),l=i.blockRange(a);if(!l)return;const c=(0,s.jP)(l);if(t.type.isTextblock){const{defaultType:t}=i.parent.contentMatchAt(i.index());e.setNodeMarkup(l.start,t)}(c||0===c)&&e.lift(l,c)})}),!0)},command:t=>e=>t(e),createParagraphNear:()=>({state:t,dispatch:e})=>_(t,e),cut:(t,e)=>({editor:n,tr:o})=>{const{state:i}=n,a=i.doc.slice(t.from,t.to);o.deleteRange(t.from,t.to);const s=o.mapping.map(e);return o.insert(s,a.content),o.setSelection(new r.U3(o.doc.resolve(Math.max(s-1,0)))),!0},deleteCurrentNode:()=>({tr:t,dispatch:e})=>{const{selection:n}=t,r=n.$anchor.node();if(r.content.size>0)return!1;const o=t.selection.$anchor;for(let n=o.depth;n>0;n-=1){if(o.node(n).type===r.type){if(e){const e=o.before(n),r=o.after(n);t.delete(e,r).scrollIntoView()}return!0}}return!1},deleteNode:t=>({tr:e,state:n,dispatch:r})=>{const o=q(t,n.schema),i=e.selection.$anchor;for(let t=i.depth;t>0;t-=1){if(i.node(t).type===o){if(r){const n=i.before(t),r=i.after(t);e.delete(n,r).scrollIntoView()}return!0}}return!1},deleteRange:t=>({tr:e,dispatch:n})=>{const{from:r,to:o}=t;return n&&e.delete(r,o),!0},deleteSelection:()=>({state:t,dispatch:e})=>l(t,e),enter:()=>({commands:t})=>t.keyboardShortcut("Enter"),exitCode:()=>({state:t,dispatch:e})=>x(t,e),extendMarkRange:(t,e={})=>({tr:n,state:o,dispatch:i})=>{const a=xt(t,o.schema),{doc:s,selection:l}=n,{$from:c,from:d,to:p}=l;if(i){const t=At(c,a,e);if(t&&t.from<=d&&t.to>=p){const e=r.U3.create(s,t.from,t.to);n.setSelection(e)}}return!0},first:t=>e=>{const n="function"==typeof t?t(e):t;for(let t=0;t<n.length;t+=1)if(n[t](e))return!0;return!1},focus:(t=null,e={})=>({editor:n,view:r,tr:o,dispatch:i})=>{e={scrollIntoView:!0,...e};const a=()=>{(Et()||Ct())&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),"undefined"==typeof navigator||!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||Et()||Ct()||r.dom.focus({preventScroll:!0}))})};if(r.hasFocus()&&null===t||!1===t)return!0;if(i&&null===t&&!_t(n.state.selection))return a(),!0;const s=kt(o.doc,t)||n.state.selection,l=n.state.selection.eq(s);return i&&(l||o.setSelection(s),l&&o.storedMarks&&o.setStoredMarks(o.storedMarks),a()),!0},forEach:(t,e)=>n=>t.every((t,r)=>e(t,{...n,index:r})),insertContent:(t,e)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),insertContentAt:(t,e,n)=>({tr:o,dispatch:i,editor:l})=>{var c;if(i){let i;const d=t=>{l.emit("contentError",{editor:l,error:t,disableCollaboration:()=>{l.storage.collaboration&&(l.storage.collaboration.isDisabled=!0)}})},p={preserveWhitespace:"full",...(n={parseOptions:l.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n}).parseOptions};if(!n.errorOnInvalidContent&&!l.options.enableContentCheck&&l.options.emitContentError)try{Bt(e,l.schema,{parseOptions:p,errorOnInvalidContent:!0})}catch(t){d(t)}try{i=Bt(e,l.schema,{parseOptions:p,errorOnInvalidContent:null!==(c=n.errorOnInvalidContent)&&void 0!==c?c:l.options.enableContentCheck})}catch(t){return d(t),!1}let{from:h,to:u}="number"==typeof t?{from:t,to:t}:{from:t.from,to:t.to},f=!0,m=!0;if(("type"in i?[i]:i).forEach(t=>{t.check(),f=!!f&&(t.isText&&0===t.marks.length),m=!!m&&t.isBlock}),h===u&&m){const{parent:t}=o.doc.resolve(h);t.isTextblock&&!t.type.spec.code&&!t.childCount&&(h-=1,u+=1)}let g;if(f){if(Array.isArray(e))g=e.map(t=>t.text||"").join("");else if(e instanceof a.FK){let t="";e.forEach(e=>{e.text&&(t+=e.text)}),g=t}else g="object"==typeof e&&e&&e.text?e.text:e;o.insertText(g,h,u)}else g=i,o.replaceWith(h,u,g);n.updateSelection&&function(t,e,n){const o=t.steps.length-1;if(o<e)return;const i=t.steps[o];if(!(i instanceof s.Ln||i instanceof s.Wg))return;const a=t.mapping.maps[o];let l=0;a.forEach((t,e,n,r)=>{0===l&&(l=r)}),t.setSelection(r.LN.near(t.doc.resolve(l),n))}(o,o.steps.length-1,-1),n.applyInputRules&&o.setMeta("applyInputRules",{from:h,text:g}),n.applyPasteRules&&o.setMeta("applyPasteRules",{from:h,text:g})}return!0},joinBackward:()=>({state:t,dispatch:e})=>d(t,e),joinDown:()=>({state:t,dispatch:e})=>((t,e)=>{let n,o=t.selection;if(o instanceof r.nh){if(o.node.isTextblock||!(0,s.n9)(t.doc,o.to))return!1;n=o.to}else if(n=(0,s.N0)(t.doc,o.to,1),null==n)return!1;return e&&e(t.tr.join(n).scrollIntoView()),!0})(t,e),joinForward:()=>({state:t,dispatch:e})=>g(t,e),joinItemBackward:()=>({state:t,dispatch:e,tr:n})=>{try{const r=(0,s.N0)(t.doc,t.selection.$from.pos,-1);return null!=r&&(n.join(r,2),e&&e(n),!0)}catch{return!1}},joinItemForward:()=>({state:t,dispatch:e,tr:n})=>{try{const r=(0,s.N0)(t.doc,t.selection.$from.pos,1);return null!=r&&(n.join(r,2),e&&e(n),!0)}catch{return!1}},joinTextblockBackward:()=>({state:t,dispatch:e})=>((t,e,n)=>{let r=c(t,n);if(!r)return!1;let o=f(r);return!!o&&p(t,o,e)})(t,e),joinTextblockForward:()=>({state:t,dispatch:e})=>((t,e,n)=>{let r=m(t,n);if(!r)return!1;let o=y(r);return!!o&&p(t,o,e)})(t,e),joinUp:()=>({state:t,dispatch:e})=>((t,e)=>{let n,o=t.selection,i=o instanceof r.nh;if(i){if(o.node.isTextblock||!(0,s.n9)(t.doc,o.from))return!1;n=o.from}else if(n=(0,s.N0)(t.doc,o.from,-1),null==n)return!1;if(e){let o=t.tr.join(n);i&&o.setSelection(r.nh.create(o.doc,n-t.doc.resolve(n).nodeBefore.nodeSize)),e(o.scrollIntoView())}return!0})(t,e),keyboardShortcut:t=>({editor:e,view:n,tr:r,dispatch:o})=>{const i=function(t){const e=t.split(/-(?!$)/);let n,r,o,i,a=e[e.length-1];"Space"===a&&(a=" ");for(let t=0;t<e.length-1;t+=1){const a=e[t];if(/^(cmd|meta|m)$/i.test(a))i=!0;else if(/^a(lt)?$/i.test(a))n=!0;else if(/^(c|ctrl|control)$/i.test(a))r=!0;else if(/^s(hift)?$/i.test(a))o=!0;else{if(!/^mod$/i.test(a))throw new Error(`Unrecognized modifier name: ${a}`);Et()||Tt()?i=!0:r=!0}}return n&&(a=`Alt-${a}`),r&&(a=`Ctrl-${a}`),i&&(a=`Meta-${a}`),o&&(a=`Shift-${a}`),a}(t).split(/-(?!$)/),a=i.find(t=>!["Alt","Ctrl","Meta","Shift"].includes(t)),s=new KeyboardEvent("keydown",{key:"Space"===a?" ":a,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),l=e.captureTransaction(()=>{n.someProp("handleKeyDown",t=>t(n,s))});return null==l||l.steps.forEach(t=>{const e=t.map(r.mapping);e&&o&&r.maybeStep(e)}),!0},lift:(t,e={})=>({state:n,dispatch:r})=>!!Lt(n,q(t,n.schema),e)&&((t,e)=>{let{$from:n,$to:r}=t.selection,o=n.blockRange(r),i=o&&(0,s.jP)(o);return null!=i&&(e&&e(t.tr.lift(o,i).scrollIntoView()),!0)})(n,r),liftEmptyBlock:()=>({state:t,dispatch:e})=>v(t,e),liftListItem:t=>({state:e,dispatch:n})=>H(q(t,e.schema))(e,n),newlineInCode:()=>({state:t,dispatch:e})=>w(t,e),resetAttributes:(t,e)=>({tr:n,state:r,dispatch:o})=>{let i=null,a=null;const s=Ot("string"==typeof t?t:t.name,r.schema);return!!s&&("node"===s&&(i=q(t,r.schema)),"mark"===s&&(a=xt(t,r.schema)),o&&n.selection.ranges.forEach(t=>{r.doc.nodesBetween(t.$from.pos,t.$to.pos,(t,r)=>{i&&i===t.type&&n.setNodeMarkup(r,void 0,It(t.attrs,e)),a&&t.marks.length&&t.marks.forEach(o=>{a===o.type&&n.addMark(r,r+t.nodeSize,a.create(It(o.attrs,e)))})})}),!0)},scrollIntoView:()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),selectAll:()=>({tr:t,dispatch:e})=>{if(e){const e=new r.i5(t.doc);t.setSelection(e)}return!0},selectNodeBackward:()=>({state:t,dispatch:e})=>u(t,e),selectNodeForward:()=>({state:t,dispatch:e})=>b(t,e),selectParentNode:()=>({state:t,dispatch:e})=>((t,e)=>{let n,{$from:o,to:i}=t.selection,a=o.sharedDepth(i);return 0!=a&&(n=o.before(a),e&&e(t.tr.setSelection(r.nh.create(t.doc,n))),!0)})(t,e),selectTextblockEnd:()=>({state:t,dispatch:e})=>B(t,e),selectTextblockStart:()=>({state:t,dispatch:e})=>M(t,e),setContent:(t,e=!1,n={},r={})=>({editor:o,tr:i,dispatch:a,commands:s})=>{var l,c;const{doc:d}=i;if("full"!==n.preserveWhitespace){const s=Nt(t,o.schema,n,{errorOnInvalidContent:null!==(l=r.errorOnInvalidContent)&&void 0!==l?l:o.options.enableContentCheck});return a&&i.replaceWith(0,d.content.size,s).setMeta("preventUpdate",!e),!0}return a&&i.setMeta("preventUpdate",!e),s.insertContentAt({from:0,to:d.content.size},t,{parseOptions:n,errorOnInvalidContent:null!==(c=r.errorOnInvalidContent)&&void 0!==c?c:o.options.enableContentCheck})},setMark:(t,e={})=>({tr:n,state:r,dispatch:o})=>{const{selection:i}=n,{empty:a,ranges:s}=i,l=xt(t,r.schema);if(o)if(a){const t=Rt(r,l);n.addStoredMark(l.create({...t,...e}))}else s.forEach(t=>{const o=t.$from.pos,i=t.$to.pos;r.doc.nodesBetween(o,i,(t,r)=>{const a=Math.max(r,o),s=Math.min(r+t.nodeSize,i);t.marks.find(t=>t.type===l)?t.marks.forEach(t=>{l===t.type&&n.addMark(a,s,l.create({...t.attrs,...e}))}):n.addMark(a,s,l.create(e))})});return function(t,e,n){var r;const{selection:o}=e;let i=null;if(_t(o)&&(i=o.$cursor),i){const e=null!==(r=t.storedMarks)&&void 0!==r?r:i.marks();return!!n.isInSet(e)||!e.some(t=>t.type.excludes(n))}const{ranges:a}=o;return a.some(({$from:e,$to:r})=>{let o=0===e.depth&&t.doc.inlineContent&&t.doc.type.allowsMarkType(n);return t.doc.nodesBetween(e.pos,r.pos,(t,e,r)=>{if(o)return!1;if(t.isInline){const e=!r||r.type.allowsMarkType(n),i=!!n.isInSet(t.marks)||!t.marks.some(t=>t.type.excludes(n));o=e&&i}return!o}),o})}(r,n,l)},setMeta:(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),setNode:(t,e={})=>({state:n,dispatch:r,chain:o})=>{const i=q(t,n.schema);let a;return n.selection.$anchor.sameParent(n.selection.$head)&&(a=n.selection.$anchor.parent.attrs),i.isTextblock?o().command(({commands:t})=>!!T(i,{...a,...e})(n)||t.clearNodes()).command(({state:t})=>T(i,{...a,...e})(t,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},setNodeSelection:t=>({tr:e,dispatch:n})=>{if(n){const{doc:n}=e,o=vt(t,0,n.content.size),i=r.nh.create(n,o);e.setSelection(i)}return!0},setTextSelection:t=>({tr:e,dispatch:n})=>{if(n){const{doc:n}=e,{from:o,to:i}="number"==typeof t?{from:t,to:t}:t,a=r.U3.atStart(n).from,s=r.U3.atEnd(n).to,l=vt(o,a,s),c=vt(i,a,s),d=r.U3.create(n,l,c);e.setSelection(d)}return!0},sinkListItem:t=>({state:e,dispatch:n})=>{const r=q(t,e.schema);return(o=r,function(t,e){let{$from:n,$to:r}=t.selection,i=n.blockRange(r,t=>t.childCount>0&&t.firstChild.type==o);if(!i)return!1;let l=i.startIndex;if(0==l)return!1;let c=i.parent,d=c.child(l-1);if(d.type!=o)return!1;if(e){let n=d.lastChild&&d.lastChild.type==c.type,r=a.FK.from(n?o.create():null),l=new a.Ji(a.FK.from(o.create(null,a.FK.from(c.type.create(null,r)))),n?3:1,0),p=i.start,h=i.end;e(t.tr.step(new s.Wg(p-(n?3:1),h,p,h,l,1,!0)).scrollIntoView())}return!0})(e,n);var o},splitBlock:({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:o,editor:i})=>{const{selection:a,doc:l}=e,{$from:c,$to:d}=a,p=Vt(i.extensionManager.attributes,c.node().type.name,c.node().attrs);if(a instanceof r.nh&&a.node.isBlock)return!(!c.parentOffset||!(0,s.zy)(l,c.pos))&&(o&&(t&&Kt(n,i.extensionManager.splittableMarks),e.split(c.pos).scrollIntoView()),!0);if(!c.parent.isBlock)return!1;const h=d.parentOffset===d.parent.content.size,u=0===c.depth?void 0:function(t){for(let e=0;e<t.edgeCount;e+=1){const{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}(c.node(-1).contentMatchAt(c.indexAfter(-1)));let f=h&&u?[{type:u,attrs:p}]:void 0,m=(0,s.zy)(e.doc,e.mapping.map(c.pos),1,f);if(f||m||!(0,s.zy)(e.doc,e.mapping.map(c.pos),1,u?[{type:u}]:void 0)||(m=!0,f=u?[{type:u,attrs:p}]:void 0),o){if(m&&(a instanceof r.U3&&e.deleteSelection(),e.split(e.mapping.map(c.pos),1,f),u&&!h&&!c.parentOffset&&c.parent.type!==u)){const t=e.mapping.map(c.before()),n=e.doc.resolve(t);c.node(-1).canReplaceWith(n.index(),n.index()+1,u)&&e.setNodeMarkup(e.mapping.map(c.before()),u)}t&&Kt(n,i.extensionManager.splittableMarks),e.scrollIntoView()}return m},splitListItem:(t,e={})=>({tr:n,state:o,dispatch:i,editor:l})=>{var c;const d=q(t,o.schema),{$from:p,$to:h}=o.selection,u=o.selection.node;if(u&&u.isBlock||p.depth<2||!p.sameParent(h))return!1;const f=p.node(-1);if(f.type!==d)return!1;const m=l.extensionManager.attributes;if(0===p.parent.content.size&&p.node(-1).childCount===p.indexAfter(-1)){if(2===p.depth||p.node(-3).type!==d||p.index(-2)!==p.node(-2).childCount-1)return!1;if(i){let t=a.FK.empty;const o=p.index(-1)?1:p.index(-2)?2:3;for(let e=p.depth-o;e>=p.depth-3;e-=1)t=a.FK.from(p.node(e).copy(t));const i=p.indexAfter(-1)<p.node(-2).childCount?1:p.indexAfter(-2)<p.node(-3).childCount?2:3,s={...Vt(m,p.node().type.name,p.node().attrs),...e},l=(null===(c=d.contentMatch.defaultType)||void 0===c?void 0:c.createAndFill(s))||void 0;t=t.append(a.FK.from(d.createAndFill(null,l)||void 0));const h=p.before(p.depth-(o-1));n.replace(h,p.after(-i),new a.Ji(t,4-o,0));let u=-1;n.doc.nodesBetween(h,n.doc.content.size,(t,e)=>{if(u>-1)return!1;t.isTextblock&&0===t.content.size&&(u=e+1)}),u>-1&&n.setSelection(r.U3.near(n.doc.resolve(u))),n.scrollIntoView()}return!0}const g=h.pos===p.end()?f.contentMatchAt(0).defaultType:null,b={...Vt(m,f.type.name,f.attrs),...e},y={...Vt(m,p.node().type.name,p.node().attrs),...e};n.delete(p.pos,h.pos);const w=g?[{type:d,attrs:b},{type:g,attrs:y}]:[{type:d,attrs:b}];if(!(0,s.zy)(n.doc,p.pos,2))return!1;if(i){const{selection:t,storedMarks:e}=o,{splittableMarks:r}=l.extensionManager,a=e||t.$to.parentOffset&&t.$from.marks();if(n.split(p.pos,2,w).scrollIntoView(),!a||!i)return!0;const s=a.filter(t=>r.includes(t.type.name));n.ensureMarks(s)}return!0},toggleList:(t,e,n,r={})=>({editor:o,tr:i,state:a,dispatch:s,chain:l,commands:c,can:d})=>{const{extensions:p,splittableMarks:h}=o.extensionManager,u=q(t,a.schema),f=q(e,a.schema),{selection:m,storedMarks:g}=a,{$from:b,$to:y}=m,w=b.blockRange(y),A=g||m.$to.parentOffset&&m.$from.marks();if(!w)return!1;const x=$t(t=>Xt(t.type.name,p))(m);if(w.depth>=1&&x&&w.depth-x.depth<=1){if(x.node.type===u)return c.liftListItem(f);if(Xt(x.node.type.name,p)&&u.validContent(x.node.content)&&s)return l().command(()=>(i.setNodeMarkup(x.pos,u),!0)).command(()=>Jt(i,u)).command(()=>Gt(i,u)).run()}return n&&A&&s?l().command(()=>{const t=d().wrapInList(u,r),e=A.filter(t=>h.includes(t.type.name));return i.ensureMarks(e),!!t||c.clearNodes()}).wrapInList(u,r).command(()=>Jt(i,u)).command(()=>Gt(i,u)).run():l().command(()=>!!d().wrapInList(u,r)||c.clearNodes()).wrapInList(u,r).command(()=>Jt(i,u)).command(()=>Gt(i,u)).run()},toggleMark:(t,e={},n={})=>({state:r,commands:o})=>{const{extendEmptyMarkRange:i=!1}=n,a=xt(t,r.schema);return Yt(r,a,e)?o.unsetMark(a,{extendEmptyMarkRange:i}):o.setMark(a,e)},toggleNode:(t,e,n={})=>({state:r,commands:o})=>{const i=q(t,r.schema),a=q(e,r.schema),s=Lt(r,i,n);let l;return r.selection.$anchor.sameParent(r.selection.$head)&&(l=r.selection.$anchor.parent.attrs),s?o.setNode(a,l):o.setNode(i,{...l,...n})},toggleWrap:(t,e={})=>({state:n,commands:r})=>{const o=q(t,n.schema);return Lt(n,o,e)?r.lift(o):r.wrapIn(o,e)},undoInputRule:()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let r=0;r<n.length;r+=1){const o=n[r];let i;if(o.spec.isInputRules&&(i=o.getState(t))){if(e){const e=t.tr,n=i.transform;for(let t=n.steps.length-1;t>=0;t-=1)e.step(n.steps[t].invert(n.docs[t]));if(i.text){const n=e.doc.resolve(i.from).marks();e.replaceWith(i.from,i.to,t.schema.text(i.text,n))}else e.delete(i.from,i.to)}return!0}}return!1},unsetAllMarks:()=>({tr:t,dispatch:e})=>{const{selection:n}=t,{empty:r,ranges:o}=n;return r||e&&o.forEach(e=>{t.removeMark(e.$from.pos,e.$to.pos)}),!0},unsetMark:(t,e={})=>({tr:n,state:r,dispatch:o})=>{var i;const{extendEmptyMarkRange:a=!1}=e,{selection:s}=n,l=xt(t,r.schema),{$from:c,empty:d,ranges:p}=s;if(!o)return!0;if(d&&a){let{from:t,to:e}=s;const r=null===(i=c.marks().find(t=>t.type===l))||void 0===i?void 0:i.attrs,o=At(c,l,r);o&&(t=o.from,e=o.to),n.removeMark(t,e,l)}else p.forEach(t=>{n.removeMark(t.$from.pos,t.$to.pos,l)});return n.removeStoredMark(l),!0},updateAttributes:(t,e={})=>({tr:n,state:r,dispatch:o})=>{let i=null,a=null;const s=Ot("string"==typeof t?t:t.name,r.schema);return!!s&&("node"===s&&(i=q(t,r.schema)),"mark"===s&&(a=xt(t,r.schema)),o&&n.selection.ranges.forEach(t=>{const o=t.$from.pos,s=t.$to.pos;let l,c,d,p;n.selection.empty?r.doc.nodesBetween(o,s,(t,e)=>{i&&i===t.type&&(d=Math.max(e,o),p=Math.min(e+t.nodeSize,s),l=e,c=t)}):r.doc.nodesBetween(o,s,(t,r)=>{r<o&&i&&i===t.type&&(d=Math.max(r,o),p=Math.min(r+t.nodeSize,s),l=r,c=t),r>=o&&r<=s&&(i&&i===t.type&&n.setNodeMarkup(r,void 0,{...t.attrs,...e}),a&&t.marks.length&&t.marks.forEach(i=>{if(a===i.type){const l=Math.max(r,o),c=Math.min(r+t.nodeSize,s);n.addMark(l,c,a.create({...i.attrs,...e}))}}))}),c&&(void 0!==l&&n.setNodeMarkup(l,void 0,{...c.attrs,...e}),a&&c.marks.length&&c.marks.forEach(t=>{a===t.type&&n.addMark(d,p,a.create({...t.attrs,...e}))}))}),!0)},wrapIn:(t,e={})=>({state:n,dispatch:r})=>function(t,e=null){return function(n,r){let{$from:o,$to:i}=n.selection,a=o.blockRange(i),l=a&&(0,s.oM)(a,t,e);return!!l&&(r&&r(n.tr.wrap(a,l).scrollIntoView()),!0)}}(q(t,n.schema),e)(n,r),wrapInList:(t,e={})=>({state:n,dispatch:r})=>z(q(t,n.schema),e)(n,r)});const te=ut.create({name:"commands",addCommands:()=>({...Qt})}),ee=ut.create({name:"drop",addProseMirrorPlugins(){return[new r.k_({key:new r.hs("tiptapDrop"),props:{handleDrop:(t,e,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:n,moved:r})}}})]}}),ne=ut.create({name:"editable",addProseMirrorPlugins(){return[new r.k_({key:new r.hs("editable"),props:{editable:()=>this.editor.options.editable}})]}}),re=new r.hs("focusEvents"),oe=ut.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new r.k_({key:re,props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0;const r=t.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1},blur:(e,n)=>{t.isFocused=!1;const r=t.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1}}}})]}}),ie=ut.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:t})=>[()=>t.undoInputRule(),()=>t.command(({tr:e})=>{const{selection:n,doc:o}=e,{empty:i,$anchor:a}=n,{pos:s,parent:l}=a,c=a.parent.isTextblock&&s>0?e.doc.resolve(s-1):a,d=c.parent.type.spec.isolating,p=a.pos-a.parentOffset,h=d&&1===c.parent.childCount?p===a.pos:r.LN.atStart(o).from===s;return!(!i||!l.type.isTextblock||l.textContent.length||!h||h&&"paragraph"===a.parent.type.name)&&t.clearNodes()}),()=>t.deleteSelection(),()=>t.joinBackward(),()=>t.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:t})=>[()=>t.deleteSelection(),()=>t.deleteCurrentNode(),()=>t.joinForward(),()=>t.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:t})=>[()=>t.newlineInCode(),()=>t.createParagraphNear(),()=>t.liftEmptyBlock(),()=>t.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},o={...n},i={...n,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return Et()||Tt()?i:o},addProseMirrorPlugins(){return[new r.k_({key:new r.hs("clearDocument"),appendTransaction:(t,e,n)=>{if(t.some(t=>t.getMeta("composition")))return;const o=t.some(t=>t.docChanged)&&!e.doc.eq(n.doc),i=t.some(t=>t.getMeta("preventClearDocument"));if(!o||i)return;const{empty:a,from:s,to:l}=e.selection,c=r.LN.atStart(e.doc).from,d=r.LN.atEnd(e.doc).to;if(a||!(s===c&&l===d))return;if(!Zt(n.doc))return;const p=n.tr,h=P({state:n,transaction:p}),{commands:u}=new D({editor:this.editor,state:h});return u.clearNodes(),p.steps.length?p:void 0}})]}}),ae=ut.create({name:"paste",addProseMirrorPlugins(){return[new r.k_({key:new r.hs("tiptapPaste"),props:{handlePaste:(t,e,n)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:n})}}})]}}),se=ut.create({name:"tabindex",addProseMirrorPlugins(){return[new r.k_({key:new r.hs("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class le{get name(){return this.node.type.name}constructor(t,e,n=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=n,this.resolvedPos=t,this.editor=e,this.currentNode=r}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var t;return null!==(t=this.actualDepth)&&void 0!==t?t:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(t){let e=this.from,n=this.to;if(this.isBlock){if(0===this.content.size)return void console.error(`You canโt set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);e=this.from+1,n=this.to-1}this.editor.commands.insertContentAt({from:e,to:n},t)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(0===this.depth)return null;const t=this.resolvedPos.start(this.resolvedPos.depth-1),e=this.resolvedPos.doc.resolve(t);return new le(e,this.editor)}get before(){let t=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.from-3)),new le(t,this.editor)}get after(){let t=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.to+3)),new le(t,this.editor)}get children(){const t=[];return this.node.content.forEach((e,n)=>{const r=e.isBlock&&!e.isTextblock,o=e.isAtom&&!e.isText,i=this.pos+n+(o?0:1);if(i<0||i>this.resolvedPos.doc.nodeSize-2)return;const a=this.resolvedPos.doc.resolve(i);if(!r&&a.depth<=this.depth)return;const s=new le(a,this.editor,r,r?e:null);r&&(s.actualDepth=this.depth+1),t.push(new le(a,this.editor,r,r?e:null))}),t}get firstChild(){return this.children[0]||null}get lastChild(){const t=this.children;return t[t.length-1]||null}closest(t,e={}){let n=null,r=this.parent;for(;r&&!n;){if(r.node.type.name===t)if(Object.keys(e).length>0){const t=r.node.attrs,n=Object.keys(e);for(let r=0;r<n.length;r+=1){const o=n[r];if(t[o]!==e[o])break}}else n=r;r=r.parent}return n}querySelector(t,e={}){return this.querySelectorAll(t,e,!0)[0]||null}querySelectorAll(t,e={},n=!1){let r=[];if(!this.children||0===this.children.length)return r;const o=Object.keys(e);return this.children.forEach(i=>{if(!(n&&r.length>0)){if(i.node.type.name===t){o.every(t=>e[t]===i.node.attrs[t])&&r.push(i)}n&&r.length>0||(r=r.concat(i.querySelectorAll(t,e,n)))}}),r}setAttribute(t){const{tr:e}=this.editor.state;e.setNodeMarkup(this.from,void 0,{...this.node.attrs,...t}),this.editor.view.dispatch(e)}}class ce extends ${constructor(t={}){super(),this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:t})=>{throw t},onPaste:()=>null,onDrop:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(t),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("contentError",this.options.onContentError),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:t,slice:e,moved:n})=>this.options.onDrop(t,e,n)),this.on("paste",({event:t,slice:e})=>this.options.onPaste(t,e)),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=function(t,e,n){const r=document.querySelector(`style[data-tiptap-style${n?`-${n}`:""}]`);if(null!==r)return r;const o=document.createElement("style");return e&&o.setAttribute("nonce",e),o.setAttribute("data-tiptap-style"+(n?`-${n}`:""),""),o.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(o),o}('.ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n}\n\n.ProseMirror [contenteditable="false"] {\n white-space: normal;\n}\n\n.ProseMirror [contenteditable="false"] [contenteditable="true"] {\n white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n display: inline !important;\n border: none !important;\n margin: 0 !important;\n width: 0 !important;\n height: 0 !important;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n margin: 0;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.tippy-box[data-animation=fade][data-state=hidden] {\n opacity: 0\n}',this.options.injectNonce))}setOptions(t={}){this.options={...this.options,...t},this.view&&this.state&&!this.isDestroyed&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(t,e=!0){this.setOptions({editable:t}),e&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(t,e){const n=Y(e)?e(t,[...this.state.plugins]):[...this.state.plugins,t],r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}unregisterPlugin(t){if(this.isDestroyed)return;const e=this.state.plugins;let n=e;if([].concat(t).forEach(t=>{const e="string"==typeof t?`${t}$`:t.key;n=n.filter(t=>!t.key.startsWith(e))}),e.length===n.length)return;const r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}createExtensionManager(){var t,e;const n=[...this.options.enableCoreExtensions?[ne,gt.configure({blockSeparator:null===(e=null===(t=this.options.coreExtensionOptions)||void 0===t?void 0:t.clipboardTextSerializer)||void 0===e?void 0:e.blockSeparator}),te,oe,ie,se,ee,ae].filter(t=>"object"!=typeof this.options.enableCoreExtensions||!1!==this.options.enableCoreExtensions[t.name]):[],...this.options.extensions].filter(t=>["extension","node","mark"].includes(null==t?void 0:t.type));this.extensionManager=new ht(n,this)}createCommandManager(){this.commandManager=new D({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){var t;let e;try{e=Nt(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(t){if(!(t instanceof Error&&["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(t.message)))throw t;this.emit("contentError",{editor:this,error:t,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(t=>"collaboration"!==t.name),this.createExtensionManager()}}),e=Nt(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const n=kt(e,this.options.autofocus);this.view=new o.Lz(this.options.element,{...this.options.editorProps,attributes:{role:"textbox",...null===(t=this.options.editorProps)||void 0===t?void 0:t.attributes},dispatchTransaction:this.dispatchTransaction.bind(this),state:r.$t.create({doc:e,selection:n||void 0})});const i=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(i),this.createNodeViews(),this.prependClass();this.view.dom.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(t){this.isCapturingTransaction=!0,t(),this.isCapturingTransaction=!1;const e=this.capturedTransaction;return this.capturedTransaction=null,e}dispatchTransaction(t){if(this.view.isDestroyed)return;if(this.isCapturingTransaction)return this.capturedTransaction?void t.steps.forEach(t=>{var e;return null===(e=this.capturedTransaction)||void 0===e?void 0:e.step(t)}):void(this.capturedTransaction=t);const e=this.state.apply(t),n=!this.state.selection.eq(e.selection);this.emit("beforeTransaction",{editor:this,transaction:t,nextState:e}),this.view.updateState(e),this.emit("transaction",{editor:this,transaction:t}),n&&this.emit("selectionUpdate",{editor:this,transaction:t});const r=t.getMeta("focus"),o=t.getMeta("blur");r&&this.emit("focus",{editor:this,event:r.event,transaction:t}),o&&this.emit("blur",{editor:this,event:o.event,transaction:t}),t.docChanged&&!t.getMeta("preventUpdate")&&this.emit("update",{editor:this,transaction:t})}getAttributes(t){return Ft(this.state,t)}isActive(t,e){const n="string"==typeof t?t:null,r="string"==typeof t?e:t;return function(t,e,n={}){if(!e)return Lt(t,null,n)||Yt(t,null,n);const r=Ot(e,t.schema);return"node"===r?Lt(t,e,n):"mark"===r&&Yt(t,e,n)}(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return tt(this.state.doc.content,this.schema)}getText(t){const{blockSeparator:e="\n\n",textSerializers:n={}}=t||{};return jt(this.state.doc,{blockSeparator:e,textSerializers:{...mt(this.schema),...n}})}get isEmpty(){return Zt(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){if(this.emit("destroy"),this.view){const t=this.view.dom;t&&t.editor&&delete t.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var t;return!(null===(t=this.view)||void 0===t?void 0:t.docView)}$node(t,e){var n;return(null===(n=this.$doc)||void 0===n?void 0:n.querySelector(t,e))||null}$nodes(t,e){var n;return(null===(n=this.$doc)||void 0===n?void 0:n.querySelectorAll(t,e))||null}$pos(t){const e=this.state.doc.resolve(t);return new le(e,this)}get $doc(){return this.$pos(0)}}function de(t){return new nt({find:t.find,handler:({state:e,range:n,match:r})=>{const o=X(t.getAttributes,void 0,r);if(!1===o||null===o)return null;const{tr:i}=e,a=r[r.length-1],s=r[0];if(a){const r=s.search(/\S/),l=n.from+s.indexOf(a),c=l+a.length;if(Wt(n.from,n.to,e.doc).filter(e=>e.mark.type.excluded.find(n=>n===t.type&&n!==e.mark.type)).filter(t=>t.to>l).length)return null;c<n.to&&i.delete(c,n.to),l>n.from&&i.delete(n.from+r,l);const d=n.from+r+a.length;i.addMark(n.from+r,d,t.type.create(o||{})),i.removeStoredMark(t.type)}}})}function pe(t){return new nt({find:t.find,handler:({state:e,range:n,match:r})=>{const o=X(t.getAttributes,void 0,r)||{},{tr:i}=e,a=n.from;let s=n.to;const l=t.type.create(o);if(r[1]){let t=a+r[0].lastIndexOf(r[1]);t>s?t=s:s=t+r[1].length;const e=r[0][r[0].length-1];i.insertText(e,a+r[0].length-1),i.replaceWith(t,s,l)}else if(r[0]){const e=t.type.isInline?a:a-1;i.insert(e,t.type.create(o)).delete(i.mapping.map(a),i.mapping.map(s))}i.scrollIntoView()}})}function he(t){return new nt({find:t.find,handler:({state:e,range:n,match:r})=>{const o=e.doc.resolve(n.from),i=X(t.getAttributes,void 0,r)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,i)}})}function ue(t){return new nt({find:t.find,handler:({state:e,range:n,match:r})=>{let o=t.replace,i=n.from;const a=n.to;if(r[1]){const t=r[0].lastIndexOf(r[1]);o+=r[0].slice(t+r[1].length),i+=t;const e=i-a;e>0&&(o=r[0].slice(t-e,t)+o,i=a)}e.tr.insertText(o,i,a)}})}function fe(t){return new nt({find:t.find,handler:({state:e,range:n,match:r,chain:o})=>{const i=X(t.getAttributes,void 0,r)||{},a=e.tr.delete(n.from,n.to),l=a.doc.resolve(n.from).blockRange(),c=l&&(0,s.oM)(l,t.type,i);if(!c)return null;if(a.wrap(l,c),t.keepMarks&&t.editor){const{selection:n,storedMarks:r}=e,{splittableMarks:o}=t.editor.extensionManager,i=r||n.$to.parentOffset&&n.$from.marks();if(i){const t=i.filter(t=>o.includes(t.type.name));a.ensureMarks(t)}}if(t.keepAttributes){const e="bulletList"===t.type.name||"orderedList"===t.type.name?"listItem":"taskList";o().updateAttributes(e,i).run()}const d=a.doc.resolve(n.from-1).nodeBefore;d&&d.type===t.type&&(0,s.n9)(a.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(r,d))&&a.join(n.from-1)}})}class me{constructor(t={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=X(j(this,"addOptions",{name:this.name}))),this.storage=X(j(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new me(t)}configure(t={}){const e=this.extend({...this.config,addOptions:()=>at(this.options,t)});return e.name=this.name,e.parent=this.parent,e}extend(t={}){const e=new me(t);return e.parent=this,this.child=e,e.name=t.name?t.name:e.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=X(j(e,"addOptions",{name:e.name})),e.storage=X(j(e,"addStorage",{name:e.name,options:e.options})),e}}function ge(t){return new lt({find:t.find,handler:({state:e,range:n,match:r,pasteEvent:o})=>{const i=X(t.getAttributes,void 0,r,o);if(!1===i||null===i)return null;const{tr:a}=e,s=r[r.length-1],l=r[0];let c=n.to;if(s){const r=l.search(/\S/),o=n.from+l.indexOf(s),d=o+s.length;if(Wt(n.from,n.to,e.doc).filter(e=>e.mark.type.excluded.find(n=>n===t.type&&n!==e.mark.type)).filter(t=>t.to>o).length)return null;d<n.to&&a.delete(d,n.to),o>n.from&&a.delete(n.from+r,o),c=n.from+r+s.length,a.addMark(n.from+r,c,t.type.create(i||{})),a.removeStoredMark(t.type)}}})}function be(t){return new lt({find:t.find,handler({match:e,chain:n,range:r,pasteEvent:o}){const i=X(t.getAttributes,void 0,e,o),a=X(t.getContent,void 0,i);if(!1===i||null===i)return null;const s={type:t.type.name,attrs:i};a&&(s.content=a),e.input&&n().deleteRange(r).insertContentAt(r.from,s)}})}},1366(t,e,n){"use strict";n.d(e,{A:()=>r});const r=n(81318).bP.create({name:"doc",topNode:!0,content:"block+"})},28396(t,e,n){"use strict";n.d(e,{A:()=>r});const r=n(81318).bP.create({name:"text",group:"inline"})},85194(t,e,n){"use strict";n.d(e,{Ay:()=>o});var r=n(81318);const o=r.YY.create({name:"typography",addOptions:()=>({closeDoubleQuote:"โ",closeSingleQuote:"โ",copyright:"ยฉ",ellipsis:"โฆ",emDash:"โ",laquo:"ยซ",leftArrow:"โ",multiplication:"ร",notEqual:"โ ",oneHalf:"ยฝ",oneQuarter:"ยผ",openDoubleQuote:"โ",openSingleQuote:"โ",plusMinus:"ยฑ",raquo:"ยป",registeredTrademark:"ยฎ",rightArrow:"โ",servicemark:"โ ",superscriptThree:"ยณ",superscriptTwo:"ยฒ",threeQuarters:"ยพ",trademark:"โข"}),addInputRules(){const t=[];var e;return!1!==this.options.emDash&&t.push((e=this.options.emDash,(0,r.Yp)({find:/--$/,replace:null!=e?e:"โ"}))),!1!==this.options.ellipsis&&t.push((t=>(0,r.Yp)({find:/\.\.\.$/,replace:null!=t?t:"โฆ"}))(this.options.ellipsis)),!1!==this.options.openDoubleQuote&&t.push((t=>(0,r.Yp)({find:/(?:^|[\s{[(<'"\u2018\u201C])(")$/,replace:null!=t?t:"โ"}))(this.options.openDoubleQuote)),!1!==this.options.closeDoubleQuote&&t.push((t=>(0,r.Yp)({find:/"$/,replace:null!=t?t:"โ"}))(this.options.closeDoubleQuote)),!1!==this.options.openSingleQuote&&t.push((t=>(0,r.Yp)({find:/(?:^|[\s{[(<'"\u2018\u201C])(')$/,replace:null!=t?t:"โ"}))(this.options.openSingleQuote)),!1!==this.options.closeSingleQuote&&t.push((t=>(0,r.Yp)({find:/'$/,replace:null!=t?t:"โ"}))(this.options.closeSingleQuote)),!1!==this.options.leftArrow&&t.push((t=>(0,r.Yp)({find:/<-$/,replace:null!=t?t:"โ"}))(this.options.leftArrow)),!1!==this.options.rightArrow&&t.push((t=>(0,r.Yp)({find:/->$/,replace:null!=t?t:"โ"}))(this.options.rightArrow)),!1!==this.options.copyright&&t.push((t=>(0,r.Yp)({find:/\(c\)$/,replace:null!=t?t:"ยฉ"}))(this.options.copyright)),!1!==this.options.trademark&&t.push((t=>(0,r.Yp)({find:/\(tm\)$/,replace:null!=t?t:"โข"}))(this.options.trademark)),!1!==this.options.servicemark&&t.push((t=>(0,r.Yp)({find:/\(sm\)$/,replace:null!=t?t:"โ "}))(this.options.servicemark)),!1!==this.options.registeredTrademark&&t.push((t=>(0,r.Yp)({find:/\(r\)$/,replace:null!=t?t:"ยฎ"}))(this.options.registeredTrademark)),!1!==this.options.oneHalf&&t.push((t=>(0,r.Yp)({find:/(?:^|\s)(1\/2)\s$/,replace:null!=t?t:"ยฝ"}))(this.options.oneHalf)),!1!==this.options.plusMinus&&t.push((t=>(0,r.Yp)({find:/\+\/-$/,replace:null!=t?t:"ยฑ"}))(this.options.plusMinus)),!1!==this.options.notEqual&&t.push((t=>(0,r.Yp)({find:/!=$/,replace:null!=t?t:"โ "}))(this.options.notEqual)),!1!==this.options.laquo&&t.push((t=>(0,r.Yp)({find:/<<$/,replace:null!=t?t:"ยซ"}))(this.options.laquo)),!1!==this.options.raquo&&t.push((t=>(0,r.Yp)({find:/>>$/,replace:null!=t?t:"ยป"}))(this.options.raquo)),!1!==this.options.multiplication&&t.push((t=>(0,r.Yp)({find:/\d+\s?([*x])\s?\d+$/,replace:null!=t?t:"ร"}))(this.options.multiplication)),!1!==this.options.superscriptTwo&&t.push((t=>(0,r.Yp)({find:/\^2$/,replace:null!=t?t:"ยฒ"}))(this.options.superscriptTwo)),!1!==this.options.superscriptThree&&t.push((t=>(0,r.Yp)({find:/\^3$/,replace:null!=t?t:"ยณ"}))(this.options.superscriptThree)),!1!==this.options.oneQuarter&&t.push((t=>(0,r.Yp)({find:/(?:^|\s)(1\/4)\s$/,replace:null!=t?t:"ยผ"}))(this.options.oneQuarter)),!1!==this.options.threeQuarters&&t.push((t=>(0,r.Yp)({find:/(?:^|\s)(3\/4)\s$/,replace:null!=t?t:"ยพ"}))(this.options.threeQuarters)),t}})},70367(t,e,n){"use strict";n.d(e,{Dx:()=>l,KO:()=>u,Rt:()=>a,cN:()=>h,lx:()=>c,mY:()=>p});var r=n(80181);const{I:o}=r.ge,i=t=>t,a=t=>void 0===t.strings,s=()=>document.createComment(""),l=(t,e,n)=>{const r=t._$AA.parentNode,a=void 0===e?t._$AB:e._$AA;if(void 0===n){const e=r.insertBefore(s(),a),i=r.insertBefore(s(),a);n=new o(e,i,t,t.options)}else{const e=n._$AB.nextSibling,o=n._$AM,s=o!==t;if(s){let e;n._$AQ?.(t),n._$AM=t,void 0!==n._$AP&&(e=t._$AU)!==o._$AU&&n._$AP(e)}if(e!==a||s){let t=n._$AA;for(;t!==e;){const e=i(t).nextSibling;i(r).insertBefore(t,a),t=e}}}return n},c=(t,e,n=t)=>(t._$AI(e,n),t),d={},p=(t,e=d)=>t._$AH=e,h=t=>t._$AH,u=t=>{t._$AR(),t._$AA.remove()}},16655(t,e,n){"use strict";n.d(e,{OA:()=>r,WL:()=>i,u$:()=>o});const r={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},o=t=>(...e)=>({_$litDirective$:t,values:e});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}},80181(t,e,n){"use strict";n.d(e,{JW:()=>E,XX:()=>q,c0:()=>S,ge:()=>F,qy:()=>C,s6:()=>M});const r=globalThis,o=t=>t,i=r.trustedTypes,a=i?i.createPolicy("lit-html",{createHTML:t=>t}):void 0,s="$lit$",l=`lit$${Math.random().toFixed(9).slice(2)}$`,c="?"+l,d=`<${c}>`,p=document,h=()=>p.createComment(""),u=t=>null===t||"object"!=typeof t&&"function"!=typeof t,f=Array.isArray,m=t=>f(t)||"function"==typeof t?.[Symbol.iterator],g="[ \t\n\f\r]",b=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,y=/-->/g,w=/>/g,A=RegExp(`>|${g}(?:([^\\s"'>=/]+)(${g}*=${g}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),x=/'/g,_=/"/g,v=/^(?:script|style|textarea|title)$/i,k=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),C=k(1),E=k(2),S=(k(3),Symbol.for("lit-noChange")),M=Symbol.for("lit-nothing"),B=new WeakMap,T=p.createTreeWalker(p,129);function L(t,e){if(!f(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==a?a.createHTML(e):e}const O=(t,e)=>{const n=t.length-1,r=[];let o,i=2===e?"<svg>":3===e?"<math>":"",a=b;for(let e=0;e<n;e++){const n=t[e];let c,p,h=-1,u=0;for(;u<n.length&&(a.lastIndex=u,p=a.exec(n),null!==p);)u=a.lastIndex,a===b?"!--"===p[1]?a=y:void 0!==p[1]?a=w:void 0!==p[2]?(v.test(p[2])&&(o=RegExp("</"+p[2],"g")),a=A):void 0!==p[3]&&(a=A):a===A?">"===p[0]?(a=o??b,h=-1):void 0===p[1]?h=-2:(h=a.lastIndex-p[2].length,c=p[1],a=void 0===p[3]?A:'"'===p[3]?_:x):a===_||a===x?a=A:a===y||a===w?a=b:(a=A,o=void 0);const f=a===A&&t[e+1].startsWith("/>")?" ":"";i+=a===b?n+d:h>=0?(r.push(c),n.slice(0,h)+s+n.slice(h)+l+f):n+l+(-2===h?e:f)}return[L(t,i+(t[n]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),r]};class I{constructor({strings:t,_$litType$:e},n){let r;this.parts=[];let o=0,a=0;const d=t.length-1,p=this.parts,[u,f]=O(t,e);if(this.el=I.createElement(u,n),T.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=T.nextNode())&&p.length<d;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(s)){const e=f[a++],n=r.getAttribute(t).split(l),i=/([.?@])?(.*)/.exec(e);p.push({type:1,index:o,name:i[2],strings:n,ctor:"."===i[1]?P:"?"===i[1]?D:"@"===i[1]?$:H}),r.removeAttribute(t)}else t.startsWith(l)&&(p.push({type:6,index:o}),r.removeAttribute(t));if(v.test(r.tagName)){const t=r.textContent.split(l),e=t.length-1;if(e>0){r.textContent=i?i.emptyScript:"";for(let n=0;n<e;n++)r.append(t[n],h()),T.nextNode(),p.push({type:2,index:++o});r.append(t[e],h())}}}else if(8===r.nodeType)if(r.data===c)p.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(l,t+1));)p.push({type:7,index:o}),t+=l.length-1}o++}}static createElement(t,e){const n=p.createElement("template");return n.innerHTML=t,n}}function N(t,e,n=t,r){if(e===S)return e;let o=void 0!==r?n._$Co?.[r]:n._$Cl;const i=u(e)?void 0:e._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(!1),void 0===i?o=void 0:(o=new i(t),o._$AT(t,n,r)),void 0!==r?(n._$Co??=[])[r]=o:n._$Cl=o),void 0!==o&&(e=N(t,o._$AS(t,e.values),o,r)),e}class R{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:n}=this._$AD,r=(t?.creationScope??p).importNode(e,!0);T.currentNode=r;let o=T.nextNode(),i=0,a=0,s=n[0];for(;void 0!==s;){if(i===s.index){let e;2===s.type?e=new z(o,o.nextSibling,this,t):1===s.type?e=new s.ctor(o,s.name,s.strings,this,t):6===s.type&&(e=new j(o,this,t)),this._$AV.push(e),s=n[++a]}i!==s?.index&&(o=T.nextNode(),i++)}return T.currentNode=p,r}p(t){let e=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class z{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,n,r){this.type=2,this._$AH=M,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=N(this,t,e),u(t)?t===M||null==t||""===t?(this._$AH!==M&&this._$AR(),this._$AH=M):t!==this._$AH&&t!==S&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):m(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==M&&u(this._$AH)?this._$AA.nextSibling.data=t:this.T(p.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:n}=t,r="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=I.createElement(L(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new R(r,this),n=t.u(this.options);t.p(e),this.T(n),this._$AH=t}}_$AC(t){let e=B.get(t.strings);return void 0===e&&B.set(t.strings,e=new I(t)),e}k(t){f(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,r=0;for(const o of t)r===e.length?e.push(n=new z(this.O(h()),this.O(h()),this,this.options)):n=e[r],n._$AI(o),r++;r<e.length&&(this._$AR(n&&n._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=o(t).nextSibling;o(t).remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class H{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,n,r,o){this.type=1,this._$AH=M,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=M}_$AI(t,e=this,n,r){const o=this.strings;let i=!1;if(void 0===o)t=N(this,t,e,0),i=!u(t)||t!==this._$AH&&t!==S,i&&(this._$AH=t);else{const r=t;let a,s;for(t=o[0],a=0;a<o.length-1;a++)s=N(this,r[n+a],e,a),s===S&&(s=this._$AH[a]),i||=!u(s)||s!==this._$AH[a],s===M?t=M:t!==M&&(t+=(s??"")+o[a+1]),this._$AH[a]=s}i&&!r&&this.j(t)}j(t){t===M?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class P extends H{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===M?void 0:t}}class D extends H{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==M)}}class $ extends H{constructor(t,e,n,r,o){super(t,e,n,r,o),this.type=5}_$AI(t,e=this){if((t=N(this,t,e,0)??M)===S)return;const n=this._$AH,r=t===M&&n!==M||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==M&&(n===M||r);r&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class j{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){N(this,t)}}const F={M:s,P:l,A:c,C:1,L:O,R,D:m,V:N,I:z,H,N:D,U:$,B:P,F:j},U=r.litHtmlPolyfillSupport;U?.(I,z),(r.litHtmlVersions??=[]).push("3.3.2");const q=(t,e,n)=>{const r=n?.renderBefore??e;let o=r._$litPart$;if(void 0===o){const t=n?.renderBefore??null;r._$litPart$=o=new z(e.insertBefore(h(),t),t,void 0,n??{})}return o._$AI(t),o}},49410(t,e,n){"use strict";n.d(e,{EM:()=>r,MZ:()=>s});const r=t=>(e,n)=>{void 0!==n?n.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var o=n(72803);const i={attribute:!0,type:String,converter:o.W3,reflect:!1,hasChanged:o.Ec},a=(t=i,e,n)=>{const{kind:r,metadata:o}=n;let a=globalThis.litPropertyMetadata.get(o);if(void 0===a&&globalThis.litPropertyMetadata.set(o,a=new Map),"setter"===r&&((t=Object.create(t)).wrapped=!0),a.set(n.name,t),"accessor"===r){const{name:r}=n;return{set(n){const o=e.get.call(this);e.set.call(this,n),this.requestUpdate(r,o,t,!0,n)},init(e){return void 0!==e&&this.C(r,void 0,t,e),e}}}if("setter"===r){const{name:r}=n;return function(n){const o=this[r];e.call(this,n),this.requestUpdate(r,o,t,!0,n)}}throw Error("Unsupported decorator location: "+r)};function s(t){return(e,n)=>"object"==typeof n?a(t,e,n):((t,e,n)=>{const r=e.hasOwnProperty(n);return e.constructor.createProperty(n,t),r?Object.getOwnPropertyDescriptor(e,n):void 0})(t,e,n)}},21421(t,e,n){"use strict";n.d(e,{_:()=>u,K:()=>g});var r=n(80181),o=n(70367),i=n(16655);const a=(t,e)=>{const n=t._$AN;if(void 0===n)return!1;for(const t of n)t._$AO?.(e,!1),a(t,e);return!0},s=t=>{let e,n;do{if(void 0===(e=t._$AM))break;n=e._$AN,n.delete(t),t=e}while(0===n?.size)},l=t=>{for(let e;e=t._$AM;t=e){let n=e._$AN;if(void 0===n)e._$AN=n=new Set;else if(n.has(t))break;n.add(t),p(e)}};function c(t){void 0!==this._$AN?(s(this),this._$AM=t,l(this)):this._$AM=t}function d(t,e=!1,n=0){const r=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(e)if(Array.isArray(r))for(let t=n;t<r.length;t++)a(r[t],!1),s(r[t]);else null!=r&&(a(r,!1),s(r));else a(this,t)}const p=t=>{t.type==i.OA.CHILD&&(t._$AP??=d,t._$AQ??=c)};class h extends i.WL{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,n){super._$AT(t,e,n),l(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(a(this,t),s(this))}setValue(t){if((0,o.Rt)(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const u=()=>new f;class f{}const m=new WeakMap,g=(0,i.u$)(class extends h{render(t){return r.s6}update(t,[e]){const n=e!==this.G;return n&&void 0!==this.G&&this.rt(void 0),(n||this.lt!==this.ct)&&(this.G=e,this.ht=t.options?.host,this.rt(this.ct=t.element)),r.s6}rt(t){if(this.isConnected||(t=void 0),"function"==typeof this.G){const e=this.ht??globalThis;let n=m.get(e);void 0===n&&(n=new WeakMap,m.set(e,n)),void 0!==n.get(this.G)&&this.G.call(this.ht,void 0),n.set(this.G,t),void 0!==t&&this.G.call(this.ht,t)}else this.G.value=t}get lt(){return"function"==typeof this.G?m.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}})},49549(t,e,n){"use strict";n.d(e,{u:()=>s});var r=n(80181),o=n(16655),i=n(70367);const a=(t,e,n)=>{const r=new Map;for(let o=e;o<=n;o++)r.set(t[o],o);return r},s=(0,o.u$)(class extends o.WL{constructor(t){if(super(t),t.type!==o.OA.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,n){let r;void 0===n?n=e:void 0!==e&&(r=e);const o=[],i=[];let a=0;for(const e of t)o[a]=r?r(e,a):a,i[a]=n(e,a),a++;return{values:i,keys:o}}render(t,e,n){return this.dt(t,e,n).values}update(t,[e,n,o]){const s=(0,i.cN)(t),{values:l,keys:c}=this.dt(e,n,o);if(!Array.isArray(s))return this.ut=c,l;const d=this.ut??=[],p=[];let h,u,f=0,m=s.length-1,g=0,b=l.length-1;for(;f<=m&&g<=b;)if(null===s[f])f++;else if(null===s[m])m--;else if(d[f]===c[g])p[g]=(0,i.lx)(s[f],l[g]),f++,g++;else if(d[m]===c[b])p[b]=(0,i.lx)(s[m],l[b]),m--,b--;else if(d[f]===c[b])p[b]=(0,i.lx)(s[f],l[b]),(0,i.Dx)(t,p[b+1],s[f]),f++,b--;else if(d[m]===c[g])p[g]=(0,i.lx)(s[m],l[g]),(0,i.Dx)(t,s[f],s[m]),m--,g++;else if(void 0===h&&(h=a(c,g,b),u=a(d,f,m)),h.has(d[f]))if(h.has(d[m])){const e=u.get(c[g]),n=void 0!==e?s[e]:null;if(null===n){const e=(0,i.Dx)(t,s[f]);(0,i.lx)(e,l[g]),p[g]=e}else p[g]=(0,i.lx)(n,l[g]),(0,i.Dx)(t,s[f],n),s[e]=null;g++}else(0,i.KO)(s[m]),m--;else(0,i.KO)(s[f]),f++;for(;g<=b;){const e=(0,i.Dx)(t,p[b+1]);(0,i.lx)(e,l[g]),p[g++]=e}for(;f<=m;){const t=s[f++];null!==t&&(0,i.KO)(t)}return this.ut=c,(0,i.mY)(t,p),r.c0}})},70980(t,e,n){"use strict";n.d(e,{W:()=>s});var r=n(80181),o=n(16655);const i="important",a=" !"+i,s=(0,o.u$)(class extends o.WL{constructor(t){if(super(t),t.type!==o.OA.ATTRIBUTE||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,n)=>{const r=t[n];return null==r?e:e+`${n=n.includes("-")?n:n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(t,[e]){const{style:n}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const t of this.ft)null==e[t]&&(this.ft.delete(t),t.includes("-")?n.removeProperty(t):n[t]=null);for(const t in e){const r=e[t];if(null!=r){this.ft.add(t);const e="string"==typeof r&&r.endsWith(a);t.includes("-")||e?n.setProperty(t,e?r.slice(0,-11):r,e?i:""):n[t]=r}}return r.c0}})},59929(t,e,n){"use strict";n.d(e,{WF:()=>a,AH:()=>r.AH,qy:()=>o.qy,s6:()=>o.s6,XX:()=>o.XX,JW:()=>o.JW});var r=n(72803),o=n(80181);const i=globalThis;class a extends r.mN{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=(0,o.XX)(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return o.c0}}a._$litElement$=!0,a.finalized=!0,i.litElementHydrateSupport?.({LitElement:a});const s=i.litElementPolyfillSupport;s?.({LitElement:a});(i.litElementVersions??=[]).push("4.2.2")},15939(t,e,n){"use strict";n.d(e,{K:()=>m,w:()=>f});for(var r={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},o={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},i="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),a="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),s=0;s<10;s++)r[48+s]=r[96+s]=String(s);for(s=1;s<=24;s++)r[s+111]="F"+s;for(s=65;s<=90;s++)r[s]=String.fromCharCode(s+32),o[s]=String.fromCharCode(s);for(var l in r)o.hasOwnProperty(l)||(o[l]=r[l]);var c=n(81570);const d="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),p="undefined"!=typeof navigator&&/Win/.test(navigator.platform);function h(t){let e,n,r,o,i=t.split(/-(?!$)/),a=i[i.length-1];"Space"==a&&(a=" ");for(let t=0;t<i.length-1;t++){let a=i[t];if(/^(cmd|meta|m)$/i.test(a))o=!0;else if(/^a(lt)?$/i.test(a))e=!0;else if(/^(c|ctrl|control)$/i.test(a))n=!0;else if(/^s(hift)?$/i.test(a))r=!0;else{if(!/^mod$/i.test(a))throw new Error("Unrecognized modifier name: "+a);d?o=!0:n=!0}}return e&&(a="Alt-"+a),n&&(a="Ctrl-"+a),o&&(a="Meta-"+a),r&&(a="Shift-"+a),a}function u(t,e,n=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n&&e.shiftKey&&(t="Shift-"+t),t}function f(t){return new c.k_({props:{handleKeyDown:m(t)}})}function m(t){let e=function(t){let e=Object.create(null);for(let n in t)e[h(n)]=t[n];return e}(t);return function(t,n){let s,l=function(t){var e=!(i&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||a&&t.shiftKey&&t.key&&1==t.key.length||"Unidentified"==t.key)&&t.key||(t.shiftKey?o:r)[t.keyCode]||t.key||"Unidentified";return"Esc"==e&&(e="Escape"),"Del"==e&&(e="Delete"),"Left"==e&&(e="ArrowLeft"),"Up"==e&&(e="ArrowUp"),"Right"==e&&(e="ArrowRight"),"Down"==e&&(e="ArrowDown"),e}(n),c=e[u(l,n)];if(c&&c(t.state,t.dispatch,t))return!0;if(1==l.length&&" "!=l){if(n.shiftKey){let r=e[u(l,n,!1)];if(r&&r(t.state,t.dispatch,t))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(p&&n.ctrlKey&&n.altKey)&&(s=r[n.keyCode])&&s!=l){let r=e[u(s,n)];if(r&&r(t.state,t.dispatch,t))return!0}}return!1}}},16090(t,e,n){"use strict";function r(t){this.content=t}n.d(e,{S4:()=>G,ZF:()=>lt,FK:()=>s,CU:()=>p,sX:()=>Z,bP:()=>L,u$:()=>B,vI:()=>h,Sj:()=>K,Ji:()=>u}),r.prototype={constructor:r,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return-1==e?void 0:this.content[e+1]},update:function(t,e,n){var o=n&&n!=t?this.remove(n):this,i=o.find(t),a=o.content.slice();return-1==i?a.push(n||t,e):(a[i+1]=e,n&&(a[i]=n)),new r(a)},remove:function(t){var e=this.find(t);if(-1==e)return this;var n=this.content.slice();return n.splice(e,2),new r(n)},addToStart:function(t,e){return new r([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new r(n)},addBefore:function(t,e,n){var o=this.remove(e),i=o.content.slice(),a=o.find(t);return i.splice(-1==a?i.length:a,0,e,n),new r(i)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return(t=r.from(t)).size?new r(t.content.concat(this.subtract(t).content)):this},append:function(t){return(t=r.from(t)).size?new r(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=r.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}},r.from=function(t){if(t instanceof r)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new r(e)};const o=r;function i(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let o=t.child(r),a=e.child(r);if(o!=a){if(!o.sameMarkup(a))return n;if(o.isText&&o.text!=a.text){for(let t=0;o.text[t]==a.text[t];t++)n++;return n}if(o.content.size||a.content.size){let t=i(o.content,a.content,n+1);if(null!=t)return t}n+=o.nodeSize}else n+=o.nodeSize}}function a(t,e,n,r){for(let o=t.childCount,i=e.childCount;;){if(0==o||0==i)return o==i?null:{a:n,b:r};let s=t.child(--o),l=e.child(--i),c=s.nodeSize;if(s!=l){if(!s.sameMarkup(l))return{a:n,b:r};if(s.isText&&s.text!=l.text){let t=0,e=Math.min(s.text.length,l.text.length);for(;t<e&&s.text[s.text.length-t-1]==l.text[l.text.length-t-1];)t++,n--,r--;return{a:n,b:r}}if(s.content.size||l.content.size){let t=a(s.content,l.content,n-1,r-1);if(t)return t}n-=c,r-=c}else n-=c,r-=c}}class s{constructor(t,e){if(this.content=t,this.size=e||0,null==e)for(let e=0;e<t.length;e++)this.size+=t[e].nodeSize}nodesBetween(t,e,n,r=0,o){for(let i=0,a=0;a<e;i++){let s=this.content[i],l=a+s.nodeSize;if(l>t&&!1!==n(s,r+a,o||null,i)&&s.content.size){let o=a+1;s.nodesBetween(Math.max(0,t-o),Math.min(s.content.size,e-o),n,r+o)}a=l}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,e,n,r){let o="",i=!0;return this.nodesBetween(t,e,(a,s)=>{let l=a.isText?a.text.slice(Math.max(t,s)-s,e-s):a.isLeaf?r?"function"==typeof r?r(a):r:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&l||a.isTextblock)&&n&&(i?i=!1:o+=n),o+=l},0),o}append(t){if(!t.size)return this;if(!this.size)return t;let e=this.lastChild,n=t.firstChild,r=this.content.slice(),o=0;for(e.isText&&e.sameMarkup(n)&&(r[r.length-1]=e.withText(e.text+n.text),o=1);o<t.content.length;o++)r.push(t.content[o]);return new s(r,this.size+t.size)}cut(t,e=this.size){if(0==t&&e==this.size)return this;let n=[],r=0;if(e>t)for(let o=0,i=0;i<e;o++){let a=this.content[o],s=i+a.nodeSize;s>t&&((i<t||s>e)&&(a=a.isText?a.cut(Math.max(0,t-i),Math.min(a.text.length,e-i)):a.cut(Math.max(0,t-i-1),Math.min(a.content.size,e-i-1))),n.push(a),r+=a.nodeSize),i=s}return new s(n,r)}cutByIndex(t,e){return t==e?s.empty:0==t&&e==this.content.length?this:new s(this.content.slice(t,e))}replaceChild(t,e){let n=this.content[t];if(n==e)return this;let r=this.content.slice(),o=this.size+e.nodeSize-n.nodeSize;return r[t]=e,new s(r,o)}addToStart(t){return new s([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new s(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let e=0;e<this.content.length;e++)if(!this.content[e].eq(t.content[e]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(t){let e=this.content[t];if(!e)throw new RangeError("Index "+t+" out of range for "+this);return e}maybeChild(t){return this.content[t]||null}forEach(t){for(let e=0,n=0;e<this.content.length;e++){let r=this.content[e];t(r,n,e),n+=r.nodeSize}}findDiffStart(t,e=0){return i(this,t,e)}findDiffEnd(t,e=this.size,n=t.size){return a(this,t,e,n)}findIndex(t){if(0==t)return c(0,t);if(t==this.size)return c(this.content.length,t);if(t>this.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let e=0,n=0;;e++){let r=n+this.child(e).nodeSize;if(r>=t)return r==t?c(e+1,r):c(e,n);n=r}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,e){if(!e)return s.empty;if(!Array.isArray(e))throw new RangeError("Invalid input for Fragment.fromJSON");return new s(e.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return s.empty;let e,n=0;for(let r=0;r<t.length;r++){let o=t[r];n+=o.nodeSize,r&&o.isText&&t[r-1].sameMarkup(o)?(e||(e=t.slice(0,r)),e[e.length-1]=o.withText(e[e.length-1].text+o.text)):e&&e.push(o)}return new s(e||t,n)}static from(t){if(!t)return s.empty;if(t instanceof s)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new s([t],t.nodeSize);throw new RangeError("Can not convert "+t+" to a Fragment"+(t.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}s.empty=new s([],0);const l={index:0,offset:0};function c(t,e){return l.index=t,l.offset=e,l}function d(t,e){if(t===e)return!0;if(!t||"object"!=typeof t||!e||"object"!=typeof e)return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!d(t[n],e[n]))return!1}else{for(let n in t)if(!(n in e)||!d(t[n],e[n]))return!1;for(let n in e)if(!(n in t))return!1}return!0}class p{constructor(t,e){this.type=t,this.attrs=e}addToSet(t){let e,n=!1;for(let r=0;r<t.length;r++){let o=t[r];if(this.eq(o))return t;if(this.type.excludes(o.type))e||(e=t.slice(0,r));else{if(o.type.excludes(this.type))return t;!n&&o.type.rank>this.type.rank&&(e||(e=t.slice(0,r)),e.push(this),n=!0),e&&e.push(o)}}return e||(e=t.slice()),n||e.push(this),e}removeFromSet(t){for(let e=0;e<t.length;e++)if(this.eq(t[e]))return t.slice(0,e).concat(t.slice(e+1));return t}isInSet(t){for(let e=0;e<t.length;e++)if(this.eq(t[e]))return!0;return!1}eq(t){return this==t||this.type==t.type&&d(this.attrs,t.attrs)}toJSON(){let t={type:this.type.name};for(let e in this.attrs){t.attrs=this.attrs;break}return t}static fromJSON(t,e){if(!e)throw new RangeError("Invalid input for Mark.fromJSON");let n=t.marks[e.type];if(!n)throw new RangeError(`There is no mark type ${e.type} in this schema`);let r=n.create(e.attrs);return n.checkAttrs(r.attrs),r}static sameSet(t,e){if(t==e)return!0;if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].eq(e[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&0==t.length)return p.none;if(t instanceof p)return[t];let e=t.slice();return e.sort((t,e)=>t.type.rank-e.type.rank),e}}p.none=[];class h extends Error{}class u{constructor(t,e,n){this.content=t,this.openStart=e,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,e){let n=m(this.content,t+this.openStart,e);return n&&new u(n,this.openStart,this.openEnd)}removeBetween(t,e){return new u(f(this.content,t+this.openStart,e+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,e){if(!e)return u.empty;let n=e.openStart||0,r=e.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw new RangeError("Invalid input for Slice.fromJSON");return new u(s.fromJSON(t,e.content),n,r)}static maxOpen(t,e=!0){let n=0,r=0;for(let r=t.firstChild;r&&!r.isLeaf&&(e||!r.type.spec.isolating);r=r.firstChild)n++;for(let n=t.lastChild;n&&!n.isLeaf&&(e||!n.type.spec.isolating);n=n.lastChild)r++;return new u(t,n,r)}}function f(t,e,n){let{index:r,offset:o}=t.findIndex(e),i=t.maybeChild(r),{index:a,offset:s}=t.findIndex(n);if(o==e||i.isText){if(s!=n&&!t.child(a).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=a)throw new RangeError("Removing non-flat range");return t.replaceChild(r,i.copy(f(i.content,e-o-1,n-o-1)))}function m(t,e,n,r){let{index:o,offset:i}=t.findIndex(e),a=t.maybeChild(o);if(i==e||a.isText)return r&&!r.canReplace(o,o,n)?null:t.cut(0,e).append(n).append(t.cut(e));let s=m(a.content,e-i-1,n,a);return s&&t.replaceChild(o,a.copy(s))}function g(t,e,n){if(n.openStart>t.depth)throw new h("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new h("Inconsistent open depths");return b(t,e,n,0)}function b(t,e,n,r){let o=t.index(r),i=t.node(r);if(o==e.index(r)&&r<t.depth-n.openStart){let a=b(t,e,n,r+1);return i.copy(i.content.replaceChild(o,a))}if(n.content.size){if(n.openStart||n.openEnd||t.depth!=r||e.depth!=r){let{start:o,end:a}=function(t,e){let n=e.depth-t.openStart,r=e.node(n).copy(t.content);for(let t=n-1;t>=0;t--)r=e.node(t).copy(s.from(r));return{start:r.resolveNoCache(t.openStart+n),end:r.resolveNoCache(r.content.size-t.openEnd-n)}}(n,t);return _(i,v(t,o,a,e,r))}{let r=t.parent,o=r.content;return _(r,o.cut(0,t.parentOffset).append(n.content).append(o.cut(e.parentOffset)))}}return _(i,k(t,e,r))}function y(t,e){if(!e.type.compatibleContent(t.type))throw new h("Cannot join "+e.type.name+" onto "+t.type.name)}function w(t,e,n){let r=t.node(n);return y(r,e.node(n)),r}function A(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function x(t,e,n,r){let o=(e||t).node(n),i=0,a=e?e.index(n):o.childCount;t&&(i=t.index(n),t.depth>n?i++:t.textOffset&&(A(t.nodeAfter,r),i++));for(let t=i;t<a;t++)A(o.child(t),r);e&&e.depth==n&&e.textOffset&&A(e.nodeBefore,r)}function _(t,e){return t.type.checkContent(e),t.copy(e)}function v(t,e,n,r,o){let i=t.depth>o&&w(t,e,o+1),a=r.depth>o&&w(n,r,o+1),l=[];return x(null,t,o,l),i&&a&&e.index(o)==n.index(o)?(y(i,a),A(_(i,v(t,e,n,r,o+1)),l)):(i&&A(_(i,k(t,e,o+1)),l),x(e,n,o,l),a&&A(_(a,k(n,r,o+1)),l)),x(r,null,o,l),new s(l)}function k(t,e,n){let r=[];if(x(null,t,n,r),t.depth>n){A(_(w(t,e,n+1),k(t,e,n+1)),r)}return x(e,null,n,r),new s(r)}u.empty=new u(s.empty,0,0);class C{constructor(t,e,n){this.pos=t,this.path=e,this.parentOffset=n,this.depth=e.length/3-1}resolveDepth(t){return null==t?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[3*this.resolveDepth(t)]}index(t){return this.path[3*this.resolveDepth(t)+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t!=this.depth||this.textOffset?1:0)}start(t){return 0==(t=this.resolveDepth(t))?0:this.path[3*t-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(!(t=this.resolveDepth(t)))throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]}after(t){if(!(t=this.resolveDepth(t)))throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]+this.path[3*t].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,e=this.index(this.depth);if(e==t.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=t.child(e);return n?t.child(e).cut(n):r}get nodeBefore(){let t=this.index(this.depth),e=this.pos-this.path[this.path.length-1];return e?this.parent.child(t).cut(0,e):0==t?null:this.parent.child(t-1)}posAtIndex(t,e){e=this.resolveDepth(e);let n=this.path[3*e],r=0==e?0:this.path[3*e-1]+1;for(let e=0;e<t;e++)r+=n.child(e).nodeSize;return r}marks(){let t=this.parent,e=this.index();if(0==t.content.size)return p.none;if(this.textOffset)return t.child(e).marks;let n=t.maybeChild(e-1),r=t.maybeChild(e);if(!n){let t=n;n=r,r=t}let o=n.marks;for(var i=0;i<o.length;i++)!1!==o[i].type.spec.inclusive||r&&o[i].isInSet(r.marks)||(o=o[i--].removeFromSet(o));return o}marksAcross(t){let e=this.parent.maybeChild(this.index());if(!e||!e.isInline)return null;let n=e.marks,r=t.parent.maybeChild(t.index());for(var o=0;o<n.length;o++)!1!==n[o].type.spec.inclusive||r&&n[o].isInSet(r.marks)||(n=n[o--].removeFromSet(n));return n}sharedDepth(t){for(let e=this.depth;e>0;e--)if(this.start(e)<=t&&this.end(e)>=t)return e;return 0}blockRange(t=this,e){if(t.pos<this.pos)return t.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==t.pos?1:0);n>=0;n--)if(t.pos<=this.end(n)&&(!e||e(this.node(n))))return new B(this,t,n);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos<this.pos?t:this}toString(){let t="";for(let e=1;e<=this.depth;e++)t+=(t?"/":"")+this.node(e).type.name+"_"+this.index(e-1);return t+":"+this.parentOffset}static resolve(t,e){if(!(e>=0&&e<=t.content.size))throw new RangeError("Position "+e+" out of range");let n=[],r=0,o=e;for(let e=t;;){let{index:t,offset:i}=e.content.findIndex(o),a=o-i;if(n.push(e,t,r+i),!a)break;if(e=e.child(t),e.isText)break;o=a-1,r+=i+1}return new C(e,n,o)}static resolveCached(t,e){let n=M.get(t);if(n)for(let t=0;t<n.elts.length;t++){let r=n.elts[t];if(r.pos==e)return r}else M.set(t,n=new E);let r=n.elts[n.i]=C.resolve(t,e);return n.i=(n.i+1)%S,r}}class E{constructor(){this.elts=[],this.i=0}}const S=12,M=new WeakMap;class B{constructor(t,e,n){this.$from=t,this.$to=e,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const T=Object.create(null);class L{constructor(t,e,n,r=p.none){this.type=t,this.attrs=e,this.marks=r,this.content=n||s.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(t){return this.content.child(t)}maybeChild(t){return this.content.maybeChild(t)}forEach(t){this.content.forEach(t)}nodesBetween(t,e,n,r=0){this.content.nodesBetween(t,e,n,r,this)}descendants(t){this.nodesBetween(0,this.content.size,t)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(t,e,n,r){return this.content.textBetween(t,e,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(t){return this==t||this.sameMarkup(t)&&this.content.eq(t.content)}sameMarkup(t){return this.hasMarkup(t.type,t.attrs,t.marks)}hasMarkup(t,e,n){return this.type==t&&d(this.attrs,e||t.defaultAttrs||T)&&p.sameSet(this.marks,n||p.none)}copy(t=null){return t==this.content?this:new L(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new L(this.type,this.attrs,this.content,t)}cut(t,e=this.content.size){return 0==t&&e==this.content.size?this:this.copy(this.content.cut(t,e))}slice(t,e=this.content.size,n=!1){if(t==e)return u.empty;let r=this.resolve(t),o=this.resolve(e),i=n?0:r.sharedDepth(e),a=r.start(i),s=r.node(i).content.cut(r.pos-a,o.pos-a);return new u(s,r.depth-i,o.depth-i)}replace(t,e,n){return g(this.resolve(t),this.resolve(e),n)}nodeAt(t){for(let e=this;;){let{index:n,offset:r}=e.content.findIndex(t);if(e=e.maybeChild(n),!e)return null;if(r==t||e.isText)return e;t-=r+1}}childAfter(t){let{index:e,offset:n}=this.content.findIndex(t);return{node:this.content.maybeChild(e),index:e,offset:n}}childBefore(t){if(0==t)return{node:null,index:0,offset:0};let{index:e,offset:n}=this.content.findIndex(t);if(n<t)return{node:this.content.child(e),index:e,offset:n};let r=this.content.child(e-1);return{node:r,index:e-1,offset:n-r.nodeSize}}resolve(t){return C.resolveCached(this,t)}resolveNoCache(t){return C.resolve(this,t)}rangeHasMark(t,e,n){let r=!1;return e>t&&this.nodesBetween(t,e,t=>(n.isInSet(t.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),I(this.marks,t)}contentMatchAt(t){let e=this.type.contentMatch.matchFragment(this.content,0,t);if(!e)throw new Error("Called contentMatchAt on a node with invalid content");return e}canReplace(t,e,n=s.empty,r=0,o=n.childCount){let i=this.contentMatchAt(t).matchFragment(n,r,o),a=i&&i.matchFragment(this.content,e);if(!a||!a.validEnd)return!1;for(let t=r;t<o;t++)if(!this.type.allowsMarks(n.child(t).marks))return!1;return!0}canReplaceWith(t,e,n,r){if(r&&!this.type.allowsMarks(r))return!1;let o=this.contentMatchAt(t).matchType(n),i=o&&o.matchFragment(this.content,e);return!!i&&i.validEnd}canAppend(t){return t.content.size?this.canReplace(this.childCount,this.childCount,t.content):this.type.compatibleContent(t.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let t=p.none;for(let e=0;e<this.marks.length;e++){let n=this.marks[e];n.type.checkAttrs(n.attrs),t=n.addToSet(t)}if(!p.sameSet(t,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let t={type:this.type.name};for(let e in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(t=>t.toJSON())),t}static fromJSON(t,e){if(!e)throw new RangeError("Invalid input for Node.fromJSON");let n;if(e.marks){if(!Array.isArray(e.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=e.marks.map(t.markFromJSON)}if("text"==e.type){if("string"!=typeof e.text)throw new RangeError("Invalid text node in JSON");return t.text(e.text,n)}let r=s.fromJSON(t,e.content),o=t.nodeType(e.type).create(e.attrs,r,n);return o.type.checkAttrs(o.attrs),o}}L.prototype.text=void 0;class O extends L{constructor(t,e,n,r){if(super(t,e,null,r),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):I(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,e){return this.text.slice(t,e)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new O(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new O(this.type,this.attrs,t,this.marks)}cut(t=0,e=this.text.length){return 0==t&&e==this.text.length?this:this.withText(this.text.slice(t,e))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function I(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class N{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,e){let n=new R(t,e);if(null==n.next)return N.empty;let r=z(n);n.next&&n.err("Unexpected trailing text");let o=function(t){let e=Object.create(null);return n(F(t,0));function n(r){let o=[];r.forEach(e=>{t[e].forEach(({term:e,to:n})=>{if(!e)return;let r;for(let t=0;t<o.length;t++)o[t][0]==e&&(r=o[t][1]);F(t,n).forEach(t=>{r||o.push([e,r=[]]),-1==r.indexOf(t)&&r.push(t)})})});let i=e[r.join(",")]=new N(r.indexOf(t.length-1)>-1);for(let t=0;t<o.length;t++){let r=o[t][1].sort(j);i.next.push({type:o[t][0],next:e[r.join(",")]||n(r)})}return i}}(function(t){let e=[[]];return o(i(t,0),n()),e;function n(){return e.push([])-1}function r(t,n,r){let o={term:r,to:n};return e[t].push(o),o}function o(t,e){t.forEach(t=>t.to=e)}function i(t,e){if("choice"==t.type)return t.exprs.reduce((t,n)=>t.concat(i(n,e)),[]);if("seq"!=t.type){if("star"==t.type){let a=n();return r(e,a),o(i(t.expr,a),a),[r(a)]}if("plus"==t.type){let a=n();return o(i(t.expr,e),a),o(i(t.expr,a),a),[r(a)]}if("opt"==t.type)return[r(e)].concat(i(t.expr,e));if("range"==t.type){let a=e;for(let e=0;e<t.min;e++){let e=n();o(i(t.expr,a),e),a=e}if(-1==t.max)o(i(t.expr,a),a);else for(let e=t.min;e<t.max;e++){let e=n();r(a,e),o(i(t.expr,a),e),a=e}return[r(a)]}if("name"==t.type)return[r(e,void 0,t.value)];throw new Error("Unknown expr type")}for(let r=0;;r++){let a=i(t.exprs[r],e);if(r==t.exprs.length-1)return a;o(a,e=n())}}}(r));return function(t,e){for(let n=0,r=[t];n<r.length;n++){let t=r[n],o=!t.validEnd,i=[];for(let e=0;e<t.next.length;e++){let{type:n,next:a}=t.next[e];i.push(n.name),!o||n.isText||n.hasRequiredAttrs()||(o=!1),-1==r.indexOf(a)&&r.push(a)}o&&e.err("Only non-generatable nodes ("+i.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(o,n),o}matchType(t){for(let e=0;e<this.next.length;e++)if(this.next[e].type==t)return this.next[e].next;return null}matchFragment(t,e=0,n=t.childCount){let r=this;for(let o=e;r&&o<n;o++)r=r.matchType(t.child(o).type);return r}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let t=0;t<this.next.length;t++){let{type:e}=this.next[t];if(!e.isText&&!e.hasRequiredAttrs())return e}return null}compatible(t){for(let e=0;e<this.next.length;e++)for(let n=0;n<t.next.length;n++)if(this.next[e].type==t.next[n].type)return!0;return!1}fillBefore(t,e=!1,n=0){let r=[this];return function o(i,a){let l=i.matchFragment(t,n);if(l&&(!e||l.validEnd))return s.from(a.map(t=>t.createAndFill()));for(let t=0;t<i.next.length;t++){let{type:e,next:n}=i.next[t];if(!e.isText&&!e.hasRequiredAttrs()&&-1==r.indexOf(n)){r.push(n);let t=o(n,a.concat(e));if(t)return t}}return null}(this,[])}findWrapping(t){for(let e=0;e<this.wrapCache.length;e+=2)if(this.wrapCache[e]==t)return this.wrapCache[e+1];let e=this.computeWrapping(t);return this.wrapCache.push(t,e),e}computeWrapping(t){let e=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),o=r.match;if(o.matchType(t)){let t=[];for(let e=r;e.type;e=e.via)t.push(e.type);return t.reverse()}for(let t=0;t<o.next.length;t++){let{type:i,next:a}=o.next[t];i.isLeaf||i.hasRequiredAttrs()||i.name in e||r.type&&!a.validEnd||(n.push({match:i.contentMatch,type:i,via:r}),e[i.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(t){if(t>=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];return function e(n){t.push(n);for(let r=0;r<n.next.length;r++)-1==t.indexOf(n.next[r].next)&&e(n.next[r].next)}(this),t.map((e,n)=>{let r=n+(e.validEnd?"*":" ")+" ";for(let n=0;n<e.next.length;n++)r+=(n?", ":"")+e.next[n].type.name+"->"+t.indexOf(e.next[n].next);return r}).join("\n")}}N.empty=new N(!0);class R{constructor(t,e){this.string=t,this.nodeTypes=e,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function z(t){let e=[];do{e.push(H(t))}while(t.eat("|"));return 1==e.length?e[0]:{type:"choice",exprs:e}}function H(t){let e=[];do{e.push(P(t))}while(t.next&&")"!=t.next&&"|"!=t.next);return 1==e.length?e[0]:{type:"seq",exprs:e}}function P(t){let e=function(t){if(t.eat("(")){let e=z(t);return t.eat(")")||t.err("Missing closing paren"),e}if(!/\W/.test(t.next)){let e=function(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let o=[];for(let t in n){let r=n[t];r.isInGroup(e)&&o.push(r)}0==o.length&&t.err("No node type or group '"+e+"' found");return o}(t,t.next).map(e=>(null==t.inline?t.inline=e.isInline:t.inline!=e.isInline&&t.err("Mixing inline and block content"),{type:"name",value:e}));return t.pos++,1==e.length?e[0]:{type:"choice",exprs:e}}t.err("Unexpected token '"+t.next+"'")}(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else{if(!t.eat("{"))break;e=$(t,e)}return e}function D(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function $(t,e){let n=D(t),r=n;return t.eat(",")&&(r="}"!=t.next?D(t):-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function j(t,e){return e-t}function F(t,e){let n=[];return function e(r){let o=t[r];if(1==o.length&&!o[0].term)return e(o[0].to);n.push(r);for(let t=0;t<o.length;t++){let{term:r,to:i}=o[t];r||-1!=n.indexOf(i)||e(i)}}(e),n.sort(j)}function U(t){let e=Object.create(null);for(let n in t){let r=t[n];if(!r.hasDefault)return null;e[n]=r.default}return e}function q(t,e){let n=Object.create(null);for(let r in t){let o=e&&e[r];if(void 0===o){let e=t[r];if(!e.hasDefault)throw new RangeError("No value supplied for attribute "+r);o=e.default}n[r]=o}return n}function W(t,e,n,r){for(let r in e)if(!(r in t))throw new RangeError(`Unsupported attribute ${r} for ${n} of type ${r}`);for(let n in t){let r=t[n];r.validate&&r.validate(e[n])}}function V(t,e){let n=Object.create(null);if(e)for(let r in e)n[r]=new X(t,r,e[r]);return n}class Y{constructor(t,e,n){this.name=t,this.schema=e,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=V(t,n.attrs),this.defaultAttrs=U(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==t),this.isText="text"==t}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==N.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(t){return this.groups.indexOf(t)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let t in this.attrs)if(this.attrs[t].isRequired)return!0;return!1}compatibleContent(t){return this==t||this.contentMatch.compatible(t.contentMatch)}computeAttrs(t){return!t&&this.defaultAttrs?this.defaultAttrs:q(this.attrs,t)}create(t=null,e,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new L(this,this.computeAttrs(t),s.from(e),p.setFrom(n))}createChecked(t=null,e,n){return e=s.from(e),this.checkContent(e),new L(this,this.computeAttrs(t),e,p.setFrom(n))}createAndFill(t=null,e,n){if(t=this.computeAttrs(t),(e=s.from(e)).size){let t=this.contentMatch.fillBefore(e);if(!t)return null;e=t.append(e)}let r=this.contentMatch.matchFragment(e),o=r&&r.fillBefore(s.empty,!0);return o?new L(this,t,e.append(o),p.setFrom(n)):null}validContent(t){let e=this.contentMatch.matchFragment(t);if(!e||!e.validEnd)return!1;for(let e=0;e<t.childCount;e++)if(!this.allowsMarks(t.child(e).marks))return!1;return!0}checkContent(t){if(!this.validContent(t))throw new RangeError(`Invalid content for node ${this.name}: ${t.toString().slice(0,50)}`)}checkAttrs(t){W(this.attrs,t,"node",this.name)}allowsMarkType(t){return null==this.markSet||this.markSet.indexOf(t)>-1}allowsMarks(t){if(null==this.markSet)return!0;for(let e=0;e<t.length;e++)if(!this.allowsMarkType(t[e].type))return!1;return!0}allowedMarks(t){if(null==this.markSet)return t;let e;for(let n=0;n<t.length;n++)this.allowsMarkType(t[n].type)?e&&e.push(t[n]):e||(e=t.slice(0,n));return e?e.length?e:p.none:t}static compile(t,e){let n=Object.create(null);t.forEach((t,r)=>n[t]=new Y(t,e,r));let r=e.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let t in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}}class X{constructor(t,e,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,"default"),this.default=n.default,this.validate="string"==typeof n.validate?function(t,e,n){let r=n.split("|");return n=>{let o=null===n?"null":typeof n;if(r.indexOf(o)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${t}, got ${o}`)}}(t,e,n.validate):n.validate}get isRequired(){return!this.hasDefault}}class Z{constructor(t,e,n,r){this.name=t,this.rank=e,this.schema=n,this.spec=r,this.attrs=V(t,r.attrs),this.excluded=null;let o=U(this.attrs);this.instance=o?new p(this,o):null}create(t=null){return!t&&this.instance?this.instance:new p(this,q(this.attrs,t))}static compile(t,e){let n=Object.create(null),r=0;return t.forEach((t,o)=>n[t]=new Z(t,r++,e,o)),n}removeFromSet(t){for(var e=0;e<t.length;e++)t[e].type==this&&(t=t.slice(0,e).concat(t.slice(e+1)),e--);return t}isInSet(t){for(let e=0;e<t.length;e++)if(t[e].type==this)return t[e]}checkAttrs(t){W(this.attrs,t,"mark",this.name)}excludes(t){return this.excluded.indexOf(t)>-1}}class K{constructor(t){this.linebreakReplacement=null,this.cached=Object.create(null);let e=this.spec={};for(let n in t)e[n]=t[n];e.nodes=o.from(t.nodes),e.marks=o.from(t.marks||{}),this.nodes=Y.compile(this.spec.nodes,this),this.marks=Z.compile(this.spec.marks,this);let n=Object.create(null);for(let t in this.nodes){if(t in this.marks)throw new RangeError(t+" can not be both a node and a mark");let e=this.nodes[t],r=e.spec.content||"",o=e.spec.marks;if(e.contentMatch=n[r]||(n[r]=N.parse(r,this.nodes)),e.inlineContent=e.contentMatch.inlineContent,e.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!e.isInline||!e.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=e}e.markSet="_"==o?null:o?J(this,o.split(" ")):""!=o&&e.inlineContent?null:[]}for(let t in this.marks){let e=this.marks[t],n=e.spec.excludes;e.excluded=null==n?[e]:""==n?[]:J(this,n.split(" "))}this.nodeFromJSON=t=>L.fromJSON(this,t),this.markFromJSON=t=>p.fromJSON(this,t),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,e=null,n,r){if("string"==typeof t)t=this.nodeType(t);else{if(!(t instanceof Y))throw new RangeError("Invalid node type: "+t);if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}return t.createChecked(e,n,r)}text(t,e){let n=this.nodes.text;return new O(n,n.defaultAttrs,t,p.setFrom(e))}mark(t,e){return"string"==typeof t&&(t=this.marks[t]),t.create(e)}nodeType(t){let e=this.nodes[t];if(!e)throw new RangeError("Unknown node type: "+t);return e}}function J(t,e){let n=[];for(let r=0;r<e.length;r++){let o=e[r],i=t.marks[o],a=i;if(i)n.push(i);else for(let e in t.marks){let r=t.marks[e];("_"==o||r.spec.group&&r.spec.group.split(" ").indexOf(o)>-1)&&n.push(a=r)}if(!a)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}class G{constructor(t,e){this.schema=t,this.rules=e,this.tags=[],this.styles=[];let n=this.matchedStyles=[];e.forEach(t=>{if(function(t){return null!=t.tag}(t))this.tags.push(t);else if(function(t){return null!=t.style}(t)){let e=/[^=]*/.exec(t.style)[0];n.indexOf(e)<0&&n.push(e),this.styles.push(t)}}),this.normalizeLists=!this.tags.some(e=>{if(!/^(ul|ol)\b/.test(e.tag)||!e.node)return!1;let n=t.nodes[e.node];return n.contentMatch.matchType(n)})}parse(t,e={}){let n=new ot(this,e,!1);return n.addAll(t,p.none,e.from,e.to),n.finish()}parseSlice(t,e={}){let n=new ot(this,e,!0);return n.addAll(t,p.none,e.from,e.to),u.maxOpen(n.finish())}matchTag(t,e,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let n=this.tags[r];if(it(t,n.tag)&&(void 0===n.namespace||t.namespaceURI==n.namespace)&&(!n.context||e.matchesContext(n.context))){if(n.getAttrs){let e=n.getAttrs(t);if(!1===e)continue;n.attrs=e||void 0}return n}}}matchStyle(t,e,n,r){for(let o=r?this.styles.indexOf(r)+1:0;o<this.styles.length;o++){let r=this.styles[o],i=r.style;if(!(0!=i.indexOf(t)||r.context&&!n.matchesContext(r.context)||i.length>t.length&&(61!=i.charCodeAt(t.length)||i.slice(t.length+1)!=e))){if(r.getAttrs){let t=r.getAttrs(e);if(!1===t)continue;r.attrs=t||void 0}return r}}}static schemaRules(t){let e=[];function n(t){let n=null==t.priority?50:t.priority,r=0;for(;r<e.length;r++){let t=e[r];if((null==t.priority?50:t.priority)<n)break}e.splice(r,0,t)}for(let e in t.marks){let r=t.marks[e].spec.parseDOM;r&&r.forEach(t=>{n(t=at(t)),t.mark||t.ignore||t.clearMark||(t.mark=e)})}for(let e in t.nodes){let r=t.nodes[e].spec.parseDOM;r&&r.forEach(t=>{n(t=at(t)),t.node||t.ignore||t.mark||(t.node=e)})}return e}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new G(t,G.schemaRules(t)))}}const Q={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},tt={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},et={ol:!0,ul:!0};function nt(t,e,n){return null!=e?(e?1:0)|("full"===e?2:0):t&&"pre"==t.whitespace?3:-5&n}class rt{constructor(t,e,n,r,o,i){this.type=t,this.attrs=e,this.marks=n,this.solid=r,this.options=i,this.content=[],this.activeMarks=p.none,this.match=o||(4&i?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let e=this.type.contentMatch.fillBefore(s.from(t));if(!e){let e,n=this.type.contentMatch;return(e=n.findWrapping(t.type))?(this.match=n,e):null}this.match=this.type.contentMatch.matchFragment(e)}return this.match.findWrapping(t.type)}finish(t){if(!(1&this.options)){let t,e=this.content[this.content.length-1];if(e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))){let n=e;e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length))}}let e=s.from(this.content);return!t&&this.match&&(e=e.append(this.match.fillBefore(s.empty,!0))),this.type?this.type.create(this.attrs,e,this.marks):e}inlineContext(t){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:t.parentNode&&!Q.hasOwnProperty(t.parentNode.nodeName.toLowerCase())}}class ot{constructor(t,e,n){this.parser=t,this.options=e,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r,o=e.topNode,i=nt(null,e.preserveWhitespace,0)|(n?4:0);r=o?new rt(o.type,o.attrs,p.none,!0,e.topMatch||o.type.contentMatch,i):new rt(n?null:t.schema.topNodeType,null,p.none,!0,null,i),this.nodes=[r],this.find=e.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(t,e){3==t.nodeType?this.addTextNode(t,e):1==t.nodeType&&this.addElement(t,e)}addTextNode(t,e){let n=t.nodeValue,r=this.top,o=2&r.options?"full":this.localPreserveWS||(1&r.options)>0,{schema:i}=this.parser;if("full"===o||r.inlineContext(t)||/[^ \t\r\n\u000c]/.test(n)){if(o)if("full"===o)n=n.replace(/\r\n?/g,"\n");else if(i.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(i.linebreakReplacement.create())){let t=n.split(/\r?\n|\r/);for(let n=0;n<t.length;n++)n&&this.insertNode(i.linebreakReplacement.create(),e,!0),t[n]&&this.insertNode(i.text(t[n]),e,!/\S/.test(t[n]));n=""}else n=n.replace(/\r?\n|\r/g," ");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let e=r.content[r.content.length-1],o=t.previousSibling;(!e||o&&"BR"==o.nodeName||e.isText&&/[ \t\r\n\u000c]$/.test(e.text))&&(n=n.slice(1))}n&&this.insertNode(i.text(n),e,!/\S/.test(n)),this.findInText(t)}else this.findInside(t)}addElement(t,e,n){let r=this.localPreserveWS,o=this.top;("PRE"==t.tagName||/pre/.test(t.style&&t.style.whiteSpace))&&(this.localPreserveWS=!0);let i,a=t.nodeName.toLowerCase();et.hasOwnProperty(a)&&this.parser.normalizeLists&&function(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let t=1==e.nodeType?e.nodeName.toLowerCase():null;t&&et.hasOwnProperty(t)&&n?(n.appendChild(e),e=n):"li"==t?n=e:t&&(n=null)}}(t);let s=this.options.ruleFromNode&&this.options.ruleFromNode(t)||(i=this.parser.matchTag(t,this,n));t:if(s?s.ignore:tt.hasOwnProperty(a))this.findInside(t),this.ignoreFallback(t,e);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(t=s.skip);let n,r=this.needsBlock;if(Q.hasOwnProperty(a))o.content.length&&o.content[0].isInline&&this.open&&(this.open--,o=this.top),n=!0,o.type||(this.needsBlock=!0);else if(!t.firstChild){this.leafFallback(t,e);break t}let i=s&&s.skip?e:this.readStyles(t,e);i&&this.addAll(t,i),n&&this.sync(o),this.needsBlock=r}else{let n=this.readStyles(t,e);n&&this.addElementByRule(t,s,n,!1===s.consuming?i:void 0)}this.localPreserveWS=r}leafFallback(t,e){"BR"==t.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode("\n"),e)}ignoreFallback(t,e){"BR"!=t.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),e,!0)}readStyles(t,e){let n=t.style;if(n&&n.length)for(let t=0;t<this.parser.matchedStyles.length;t++){let r=this.parser.matchedStyles[t],o=n.getPropertyValue(r);if(o)for(let t;;){let n=this.parser.matchStyle(r,o,this,t);if(!n)break;if(n.ignore)return null;if(e=n.clearMark?e.filter(t=>!n.clearMark(t)):e.concat(this.parser.schema.marks[n.mark].create(n.attrs)),!1!==n.consuming)break;t=n}}return e}addElementByRule(t,e,n,r){let o,i;if(e.node)if(i=this.parser.schema.nodes[e.node],i.isLeaf)this.insertNode(i.create(e.attrs),n,"BR"==t.nodeName)||this.leafFallback(t,n);else{let t=this.enter(i,e.attrs||null,n,e.preserveWhitespace);t&&(o=!0,n=t)}else{let t=this.parser.schema.marks[e.mark];n=n.concat(t.create(e.attrs))}let a=this.top;if(i&&i.isLeaf)this.findInside(t);else if(r)this.addElement(t,n,r);else if(e.getContent)this.findInside(t),e.getContent(t,this.parser.schema).forEach(t=>this.insertNode(t,n,!1));else{let r=t;"string"==typeof e.contentElement?r=t.querySelector(e.contentElement):"function"==typeof e.contentElement?r=e.contentElement(t):e.contentElement&&(r=e.contentElement),this.findAround(t,r,!0),this.addAll(r,n),this.findAround(t,r,!1)}o&&this.sync(a)&&this.open--}addAll(t,e,n,r){let o=n||0;for(let i=n?t.childNodes[n]:t.firstChild,a=null==r?null:t.childNodes[r];i!=a;i=i.nextSibling,++o)this.findAtPoint(t,o),this.addDOM(i,e);this.findAtPoint(t,o)}findPlace(t,e,n){let r,o;for(let e=this.open,i=0;e>=0;e--){let a=this.nodes[e],s=a.findWrapping(t);if(s&&(!r||r.length>s.length+i)&&(r=s,o=a,!s.length))break;if(a.solid){if(n)break;i+=2}}if(!r)return null;this.sync(o);for(let t=0;t<r.length;t++)e=this.enterInner(r[t],null,e,!1);return e}insertNode(t,e,n){if(t.isInline&&this.needsBlock&&!this.top.type){let t=this.textblockFromContext();t&&(e=this.enterInner(t,null,e))}let r=this.findPlace(t,e,n);if(r){this.closeExtra();let e=this.top;e.match&&(e.match=e.match.matchType(t.type));let n=p.none;for(let o of r.concat(t.marks))(e.type?e.type.allowsMarkType(o.type):st(o.type,t.type))&&(n=o.addToSet(n));return e.content.push(t.mark(n)),!0}return!1}enter(t,e,n,r){let o=this.findPlace(t.create(e),n,!1);return o&&(o=this.enterInner(t,e,n,!0,r)),o}enterInner(t,e,n,r=!1,o){this.closeExtra();let i=this.top;i.match=i.match&&i.match.matchType(t);let a=nt(t,o,i.options);4&i.options&&0==i.content.length&&(a|=4);let s=p.none;return n=n.filter(e=>!(i.type?i.type.allowsMarkType(e.type):st(e.type,t))||(s=e.addToSet(s),!1)),this.nodes.push(new rt(t,e,s,r,null,a)),this.open++,n}closeExtra(t=!1){let e=this.nodes.length-1;if(e>this.open){for(;e>this.open;e--)this.nodes[e-1].content.push(this.nodes[e].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!(!this.isOpen&&!this.options.topOpen))}sync(t){for(let e=this.open;e>=0;e--){if(this.nodes[e]==t)return this.open=e,!0;this.localPreserveWS&&(this.nodes[e].options|=1)}return!1}get currentPos(){this.closeExtra();let t=0;for(let e=this.open;e>=0;e--){let n=this.nodes[e].content;for(let e=n.length-1;e>=0;e--)t+=n[e].nodeSize;e&&t++}return t}findAtPoint(t,e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==t&&this.find[n].offset==e&&(this.find[n].pos=this.currentPos)}findInside(t){if(this.find)for(let e=0;e<this.find.length;e++)null==this.find[e].pos&&1==t.nodeType&&t.contains(this.find[e].node)&&(this.find[e].pos=this.currentPos)}findAround(t,e,n){if(t!=e&&this.find)for(let r=0;r<this.find.length;r++)if(null==this.find[r].pos&&1==t.nodeType&&t.contains(this.find[r].node)){e.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}}findInText(t){if(this.find)for(let e=0;e<this.find.length;e++)this.find[e].node==t&&(this.find[e].pos=this.currentPos-(t.nodeValue.length-this.find[e].offset))}matchesContext(t){if(t.indexOf("|")>-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let e=t.split("/"),n=this.options.context,r=!(this.isOpen||n&&n.parent.type!=this.nodes[0].type),o=-(n?n.depth+1:0)+(r?0:1),i=(t,a)=>{for(;t>=0;t--){let s=e[t];if(""==s){if(t==e.length-1||0==t)continue;for(;a>=o;a--)if(i(t-1,a))return!0;return!1}{let t=a>0||0==a&&r?this.nodes[a].type:n&&a>=o?n.node(a-o).type:null;if(!t||t.name!=s&&!t.isInGroup(s))return!1;a--}}return!0};return i(e.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let e=t.depth;e>=0;e--){let n=t.node(e).contentMatchAt(t.indexAfter(e)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let t in this.parser.schema.nodes){let e=this.parser.schema.nodes[t];if(e.isTextblock&&e.defaultAttrs)return e}}}function it(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function at(t){let e={};for(let n in t)e[n]=t[n];return e}function st(t,e){let n=e.schema.nodes;for(let r in n){let o=n[r];if(!o.allowsMarkType(t))continue;let i=[],a=t=>{i.push(t);for(let n=0;n<t.edgeCount;n++){let{type:r,next:o}=t.edge(n);if(r==e)return!0;if(i.indexOf(o)<0&&a(o))return!0}};if(a(o.contentMatch))return!0}}class lt{constructor(t,e){this.nodes=t,this.marks=e}serializeFragment(t,e={},n){n||(n=dt(e).createDocumentFragment());let r=n,o=[];return t.forEach(t=>{if(o.length||t.marks.length){let n=0,i=0;for(;n<o.length&&i<t.marks.length;){let e=t.marks[i];if(this.marks[e.type.name]){if(!e.eq(o[n][0])||!1===e.type.spec.spanning)break;n++,i++}else i++}for(;n<o.length;)r=o.pop()[1];for(;i<t.marks.length;){let n=t.marks[i++],a=this.serializeMark(n,t.isInline,e);a&&(o.push([n,r]),r.appendChild(a.dom),r=a.contentDOM||a.dom)}}r.appendChild(this.serializeNodeInner(t,e))}),n}serializeNodeInner(t,e){let{dom:n,contentDOM:r}=ut(dt(e),this.nodes[t.type.name](t),null,t.attrs);if(r){if(t.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(t.content,e,r)}return n}serializeNode(t,e={}){let n=this.serializeNodeInner(t,e);for(let r=t.marks.length-1;r>=0;r--){let o=this.serializeMark(t.marks[r],t.isInline,e);o&&((o.contentDOM||o.dom).appendChild(n),n=o.dom)}return n}serializeMark(t,e,n={}){let r=this.marks[t.type.name];return r&&ut(dt(n),r(t,e),null,t.attrs)}static renderSpec(t,e,n=null,r){return ut(t,e,n,r)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new lt(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let e=ct(t.nodes);return e.text||(e.text=t=>t.text),e}static marksFromSchema(t){return ct(t.marks)}}function ct(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function dt(t){return t.document||window.document}const pt=new WeakMap;function ht(t){let e=pt.get(t);return void 0===e&&pt.set(t,e=function(t){let e=null;function n(t){if(t&&"object"==typeof t)if(Array.isArray(t))if("string"==typeof t[0])e||(e=[]),e.push(t);else for(let e=0;e<t.length;e++)n(t[e]);else for(let e in t)n(t[e])}return n(t),e}(t)),e}function ut(t,e,n,r){if("string"==typeof e)return{dom:t.createTextNode(e)};if(null!=e.nodeType)return{dom:e};if(e.dom&&null!=e.dom.nodeType)return e;let o,i=e[0];if("string"!=typeof i)throw new RangeError("Invalid array passed to renderSpec");if(r&&(o=ht(r))&&o.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let a,s=i.indexOf(" ");s>0&&(n=i.slice(0,s),i=i.slice(s+1));let l=n?t.createElementNS(n,i):t.createElement(i),c=e[1],d=1;if(c&&"object"==typeof c&&null==c.nodeType&&!Array.isArray(c)){d=2;for(let t in c)if(null!=c[t]){let e=t.indexOf(" ");e>0?l.setAttributeNS(t.slice(0,e),t.slice(e+1),c[t]):"style"==t&&l.style?l.style.cssText=c[t]:l.setAttribute(t,c[t])}}for(let o=d;o<e.length;o++){let i=e[o];if(0===i){if(o<e.length-1||o>d)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}{let{dom:e,contentDOM:o}=ut(t,i,n,r);if(l.appendChild(e),o){if(a)throw new RangeError("Multiple content holes");a=o}}}return{dom:l,contentDOM:a}}},81570(t,e,n){"use strict";n.d(e,{$t:()=>v,LN:()=>a,U3:()=>d,hs:()=>M,i5:()=>f,k_:()=>C,nh:()=>h,yn:()=>s});var r=n(16090),o=n(11329);const i=Object.create(null);class a{constructor(t,e,n){this.$anchor=t,this.$head=e,this.ranges=n||[new s(t.min(e),t.max(e))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let e=0;e<t.length;e++)if(t[e].$from.pos!=t[e].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(t,e=r.Ji.empty){let n=e.content.lastChild,o=null;for(let t=0;t<e.openEnd;t++)o=n,n=n.lastChild;let i=t.steps.length,a=this.ranges;for(let s=0;s<a.length;s++){let{$from:l,$to:c}=a[s],d=t.mapping.slice(i);t.replaceRange(d.map(l.pos),d.map(c.pos),s?r.Ji.empty:e),0==s&&b(t,i,(n?n.isInline:o&&o.isTextblock)?-1:1)}}replaceWith(t,e){let n=t.steps.length,r=this.ranges;for(let o=0;o<r.length;o++){let{$from:i,$to:a}=r[o],s=t.mapping.slice(n),l=s.map(i.pos),c=s.map(a.pos);o?t.deleteRange(l,c):(t.replaceRangeWith(l,c,e),b(t,n,e.isInline?-1:1))}}static findFrom(t,e,n=!1){let r=t.parent.inlineContent?new d(t):g(t.node(0),t.parent,t.pos,t.index(),e,n);if(r)return r;for(let r=t.depth-1;r>=0;r--){let o=e<0?g(t.node(0),t.node(r),t.before(r+1),t.index(r),e,n):g(t.node(0),t.node(r),t.after(r+1),t.index(r)+1,e,n);if(o)return o}return null}static near(t,e=1){return this.findFrom(t,e)||this.findFrom(t,-e)||new f(t.node(0))}static atStart(t){return g(t,t,0,0,1)||new f(t)}static atEnd(t){return g(t,t,t.content.size,t.childCount,-1)||new f(t)}static fromJSON(t,e){if(!e||!e.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=i[e.type];if(!n)throw new RangeError(`No selection type ${e.type} defined`);return n.fromJSON(t,e)}static jsonID(t,e){if(t in i)throw new RangeError("Duplicate use of selection JSON ID "+t);return i[t]=e,e.prototype.jsonID=t,e}getBookmark(){return d.between(this.$anchor,this.$head).getBookmark()}}a.prototype.visible=!0;class s{constructor(t,e){this.$from=t,this.$to=e}}let l=!1;function c(t){l||t.parent.inlineContent||(l=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class d extends a{constructor(t,e=t){c(t),c(e),super(t,e)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,e){let n=t.resolve(e.map(this.head));if(!n.parent.inlineContent)return a.near(n);let r=t.resolve(e.map(this.anchor));return new d(r.parent.inlineContent?r:n,n)}replace(t,e=r.Ji.empty){if(super.replace(t,e),e==r.Ji.empty){let e=this.$from.marksAcross(this.$to);e&&t.ensureMarks(e)}}eq(t){return t instanceof d&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new p(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,e){if("number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new d(t.resolve(e.anchor),t.resolve(e.head))}static create(t,e,n=e){let r=t.resolve(e);return new this(r,n==e?r:t.resolve(n))}static between(t,e,n){let r=t.pos-e.pos;if(n&&!r||(n=r>=0?1:-1),!e.parent.inlineContent){let t=a.findFrom(e,n,!0)||a.findFrom(e,-n,!0);if(!t)return a.near(e,n);e=t.$head}return t.parent.inlineContent||(0==r||(t=(a.findFrom(t,-n,!0)||a.findFrom(t,n,!0)).$anchor).pos<e.pos!=r<0)&&(t=e),new d(t,e)}}a.jsonID("text",d);class p{constructor(t,e){this.anchor=t,this.head=e}map(t){return new p(t.map(this.anchor),t.map(this.head))}resolve(t){return d.between(t.resolve(this.anchor),t.resolve(this.head))}}class h extends a{constructor(t){let e=t.nodeAfter,n=t.node(0).resolve(t.pos+e.nodeSize);super(t,n),this.node=e}map(t,e){let{deleted:n,pos:r}=e.mapResult(this.anchor),o=t.resolve(r);return n?a.near(o):new h(o)}content(){return new r.Ji(r.FK.from(this.node),0,0)}eq(t){return t instanceof h&&t.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new u(this.anchor)}static fromJSON(t,e){if("number"!=typeof e.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new h(t.resolve(e.anchor))}static create(t,e){return new h(t.resolve(e))}static isSelectable(t){return!t.isText&&!1!==t.type.spec.selectable}}h.prototype.visible=!1,a.jsonID("node",h);class u{constructor(t){this.anchor=t}map(t){let{deleted:e,pos:n}=t.mapResult(this.anchor);return e?new p(n,n):new u(n)}resolve(t){let e=t.resolve(this.anchor),n=e.nodeAfter;return n&&h.isSelectable(n)?new h(e):a.near(e)}}class f extends a{constructor(t){super(t.resolve(0),t.resolve(t.content.size))}replace(t,e=r.Ji.empty){if(e==r.Ji.empty){t.delete(0,t.doc.content.size);let e=a.atStart(t.doc);e.eq(t.selection)||t.setSelection(e)}else super.replace(t,e)}toJSON(){return{type:"all"}}static fromJSON(t){return new f(t)}map(t){return new f(t)}eq(t){return t instanceof f}getBookmark(){return m}}a.jsonID("all",f);const m={map(){return this},resolve:t=>new f(t)};function g(t,e,n,r,o,i=!1){if(e.inlineContent)return d.create(t,n);for(let a=r-(o>0?0:1);o>0?a<e.childCount:a>=0;a+=o){let r=e.child(a);if(r.isAtom){if(!i&&h.isSelectable(r))return h.create(t,n-(o<0?r.nodeSize:0))}else{let e=g(t,r,n+o,o<0?r.childCount:0,o,i);if(e)return e}n+=r.nodeSize*o}return null}function b(t,e,n){let r=t.steps.length-1;if(r<e)return;let i,s=t.steps[r];(s instanceof o.Ln||s instanceof o.Wg)&&(t.mapping.maps[r].forEach((t,e,n,r)=>{null==i&&(i=r)}),t.setSelection(a.near(t.doc.resolve(i),n)))}class y extends o.dL{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(t){if(t.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=t,this.curSelectionFor=this.steps.length,this.updated=-3&this.updated|1,this.storedMarks=null,this}get selectionSet(){return(1&this.updated)>0}setStoredMarks(t){return this.storedMarks=t,this.updated|=2,this}ensureMarks(t){return r.CU.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(t,e){super.addStep(t,e),this.updated=-3&this.updated,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,e=!0){let n=this.selection;return e&&(t=t.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||r.CU.none))),n.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,e,n){let r=this.doc.type.schema;if(null==e)return t?this.replaceSelectionWith(r.text(t),!0):this.deleteSelection();{if(null==n&&(n=e),!t)return this.deleteRange(e,n);let o=this.storedMarks;if(!o){let t=this.doc.resolve(e);o=n==e?t.marks():t.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(e,n,r.text(t,o)),this.selection.empty||this.selection.to!=e+t.length||this.setSelection(a.near(this.selection.$to)),this}}setMeta(t,e){return this.meta["string"==typeof t?t:t.key]=e,this}getMeta(t){return this.meta["string"==typeof t?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function w(t,e){return e&&t?t.bind(e):t}class A{constructor(t,e,n){this.name=t,this.init=w(e.init,n),this.apply=w(e.apply,n)}}const x=[new A("doc",{init:t=>t.doc||t.schema.topNodeType.createAndFill(),apply:t=>t.doc}),new A("selection",{init:(t,e)=>t.selection||a.atStart(e.doc),apply:t=>t.selection}),new A("storedMarks",{init:t=>t.storedMarks||null,apply:(t,e,n,r)=>r.selection.$cursor?t.storedMarks:null}),new A("scrollToSelection",{init:()=>0,apply:(t,e)=>t.scrolledIntoView?e+1:e})];class _{constructor(t,e){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=x.slice(),e&&e.forEach(t=>{if(this.pluginsByKey[t.key])throw new RangeError("Adding different instances of a keyed plugin ("+t.key+")");this.plugins.push(t),this.pluginsByKey[t.key]=t,t.spec.state&&this.fields.push(new A(t.key,t.spec.state,t))})}}class v{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,e=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=e){let e=this.config.plugins[n];if(e.spec.filterTransaction&&!e.spec.filterTransaction.call(e,t,this))return!1}return!0}applyTransaction(t){if(!this.filterTransaction(t))return{state:this,transactions:[]};let e=[t],n=this.applyInner(t),r=null;for(;;){let o=!1;for(let i=0;i<this.config.plugins.length;i++){let a=this.config.plugins[i];if(a.spec.appendTransaction){let s=r?r[i].n:0,l=r?r[i].state:this,c=s<e.length&&a.spec.appendTransaction.call(a,s?e.slice(s):e,l,n);if(c&&n.filterTransaction(c,i)){if(c.setMeta("appendedTransaction",t),!r){r=[];for(let t=0;t<this.config.plugins.length;t++)r.push(t<i?{state:n,n:e.length}:{state:this,n:0})}e.push(c),n=n.applyInner(c),o=!0}r&&(r[i]={state:n,n:e.length})}}if(!o)return{state:n,transactions:e}}}applyInner(t){if(!t.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let e=new v(this.config),n=this.config.fields;for(let r=0;r<n.length;r++){let o=n[r];e[o.name]=o.apply(t,this[o.name],this,e)}return e}get tr(){return new y(this)}static create(t){let e=new _(t.doc?t.doc.type.schema:t.schema,t.plugins),n=new v(e);for(let r=0;r<e.fields.length;r++)n[e.fields[r].name]=e.fields[r].init(t,n);return n}reconfigure(t){let e=new _(this.schema,t.plugins),n=e.fields,r=new v(e);for(let e=0;e<n.length;e++){let o=n[e].name;r[o]=this.hasOwnProperty(o)?this[o]:n[e].init(t,r)}return r}toJSON(t){let e={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(e.storedMarks=this.storedMarks.map(t=>t.toJSON())),t&&"object"==typeof t)for(let n in t){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=t[n],o=r.spec.state;o&&o.toJSON&&(e[n]=o.toJSON.call(r,this[r.key]))}return e}static fromJSON(t,e,n){if(!e)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let o=new _(t.schema,t.plugins),i=new v(o);return o.fields.forEach(o=>{if("doc"==o.name)i.doc=r.bP.fromJSON(t.schema,e.doc);else if("selection"==o.name)i.selection=a.fromJSON(i.doc,e.selection);else if("storedMarks"==o.name)e.storedMarks&&(i.storedMarks=e.storedMarks.map(t.schema.markFromJSON));else{if(n)for(let r in n){let a=n[r],s=a.spec.state;if(a.key==o.name&&s&&s.fromJSON&&Object.prototype.hasOwnProperty.call(e,r))return void(i[o.name]=s.fromJSON.call(a,t,e[r],i))}i[o.name]=o.init(t,i)}}),i}}function k(t,e,n){for(let r in t){let o=t[r];o instanceof Function?o=o.bind(e):"handleDOMEvents"==r&&(o=k(o,e,{})),n[r]=o}return n}class C{constructor(t){this.spec=t,this.props={},t.props&&k(t.props,this,this.props),this.key=t.key?t.key.key:S("plugin")}getState(t){return t[this.key]}}const E=Object.create(null);function S(t){return t in E?t+"$"+ ++E[t]:(E[t]=0,t+"$")}class M{constructor(t="key"){this.key=S(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}},11329(t,e,n){"use strict";n.d(e,{$L:()=>I,Ln:()=>y,N0:()=>L,Um:()=>O,Wg:()=>w,dL:()=>Y,jP:()=>v,n9:()=>B,oM:()=>k,zy:()=>M});var r=n(16090);const o=Math.pow(2,16);function i(t,e){return t+e*o}function a(t){return 65535&t}class s{constructor(t,e,n){this.pos=t,this.delInfo=e,this.recover=n}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class l{constructor(t,e=!1){if(this.ranges=t,this.inverted=e,!t.length&&l.empty)return l.empty}recover(t){let e=0,n=a(t);if(!this.inverted)for(let t=0;t<n;t++)e+=this.ranges[3*t+2]-this.ranges[3*t+1];return this.ranges[3*n]+e+function(t){return(t-(65535&t))/o}(t)}mapResult(t,e=1){return this._map(t,e,!1)}map(t,e=1){return this._map(t,e,!0)}_map(t,e,n){let r=0,o=this.inverted?2:1,a=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let c=this.ranges[l]-(this.inverted?r:0);if(c>t)break;let d=this.ranges[l+o],p=this.ranges[l+a],h=c+d;if(t<=h){let o=c+r+((d?t==c?-1:t==h?1:e:e)<0?0:p);if(n)return o;let a=t==(e<0?c:h)?null:i(l/3,t-c),u=t==c?2:t==h?1:4;return(e<0?t!=c:t!=h)&&(u|=8),new s(o,u,a)}r+=p-d}return n?t+r:new s(t+r,0,null)}touches(t,e){let n=0,r=a(e),o=this.inverted?2:1,i=this.inverted?1:2;for(let e=0;e<this.ranges.length;e+=3){let a=this.ranges[e]-(this.inverted?n:0);if(a>t)break;let s=this.ranges[e+o];if(t<=a+s&&e==3*r)return!0;n+=this.ranges[e+i]-s}return!1}forEach(t){let e=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,o=0;r<this.ranges.length;r+=3){let i=this.ranges[r],a=i-(this.inverted?o:0),s=i+(this.inverted?0:o),l=this.ranges[r+e],c=this.ranges[r+n];t(a,a+l,s,s+c),o+=c-l}}invert(){return new l(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(t){return 0==t?l.empty:new l(t<0?[0,-t,0]:[0,0,t])}}l.empty=new l([]);class c{constructor(t,e,n=0,r=(t?t.length:0)){this.mirror=e,this.from=n,this.to=r,this._maps=t||[],this.ownData=!(t||e)}get maps(){return this._maps}slice(t=0,e=this.maps.length){return new c(this._maps,this.mirror,t,e)}appendMap(t,e){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(t),null!=e&&this.setMirror(this._maps.length-1,e)}appendMapping(t){for(let e=0,n=this._maps.length;e<t._maps.length;e++){let r=t.getMirror(e);this.appendMap(t._maps[e],null!=r&&r<e?n+r:void 0)}}getMirror(t){if(this.mirror)for(let e=0;e<this.mirror.length;e++)if(this.mirror[e]==t)return this.mirror[e+(e%2?-1:1)]}setMirror(t,e){this.mirror||(this.mirror=[]),this.mirror.push(t,e)}appendMappingInverted(t){for(let e=t.maps.length-1,n=this._maps.length+t._maps.length;e>=0;e--){let r=t.getMirror(e);this.appendMap(t._maps[e].invert(),null!=r&&r>e?n-r-1:void 0)}}invert(){let t=new c;return t.appendMappingInverted(this),t}map(t,e=1){if(this.mirror)return this._map(t,e,!0);for(let n=this.from;n<this.to;n++)t=this._maps[n].map(t,e);return t}mapResult(t,e=1){return this._map(t,e,!1)}_map(t,e,n){let r=0;for(let n=this.from;n<this.to;n++){let o=this._maps[n].mapResult(t,e);if(null!=o.recover){let e=this.getMirror(n);if(null!=e&&e>n&&e<this.to){n=e,t=this._maps[e].recover(o.recover);continue}}r|=o.delInfo,t=o.pos}return n?t:new s(t,r,null)}}const d=Object.create(null);class p{getMap(){return l.empty}merge(t){return null}static fromJSON(t,e){if(!e||!e.stepType)throw new RangeError("Invalid input for Step.fromJSON");let n=d[e.stepType];if(!n)throw new RangeError(`No step type ${e.stepType} defined`);return n.fromJSON(t,e)}static jsonID(t,e){if(t in d)throw new RangeError("Duplicate use of step JSON ID "+t);return d[t]=e,e.prototype.jsonID=t,e}}class h{constructor(t,e){this.doc=t,this.failed=e}static ok(t){return new h(t,null)}static fail(t){return new h(null,t)}static fromReplace(t,e,n,o){try{return h.ok(t.replace(e,n,o))}catch(t){if(t instanceof r.vI)return h.fail(t.message);throw t}}}function u(t,e,n){let o=[];for(let r=0;r<t.childCount;r++){let i=t.child(r);i.content.size&&(i=i.copy(u(i.content,e,i))),i.isInline&&(i=e(i,n,r)),o.push(i)}return r.FK.fromArray(o)}class f extends p{constructor(t,e,n){super(),this.from=t,this.to=e,this.mark=n}apply(t){let e=t.slice(this.from,this.to),n=t.resolve(this.from),o=n.node(n.sharedDepth(this.to)),i=new r.Ji(u(e.content,(t,e)=>t.isAtom&&e.type.allowsMarkType(this.mark.type)?t.mark(this.mark.addToSet(t.marks)):t,o),e.openStart,e.openEnd);return h.fromReplace(t,this.from,this.to,i)}invert(){return new m(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),n=t.mapResult(this.to,-1);return e.deleted&&n.deleted||e.pos>=n.pos?null:new f(e.pos,n.pos,this.mark)}merge(t){return t instanceof f&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new f(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new f(e.from,e.to,t.markFromJSON(e.mark))}}p.jsonID("addMark",f);class m extends p{constructor(t,e,n){super(),this.from=t,this.to=e,this.mark=n}apply(t){let e=t.slice(this.from,this.to),n=new r.Ji(u(e.content,t=>t.mark(this.mark.removeFromSet(t.marks)),t),e.openStart,e.openEnd);return h.fromReplace(t,this.from,this.to,n)}invert(){return new f(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),n=t.mapResult(this.to,-1);return e.deleted&&n.deleted||e.pos>=n.pos?null:new m(e.pos,n.pos,this.mark)}merge(t){return t instanceof m&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new m(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new m(e.from,e.to,t.markFromJSON(e.mark))}}p.jsonID("removeMark",m);class g extends p{constructor(t,e){super(),this.pos=t,this.mark=e}apply(t){let e=t.nodeAt(this.pos);if(!e)return h.fail("No node at mark step's position");let n=e.type.create(e.attrs,null,this.mark.addToSet(e.marks));return h.fromReplace(t,this.pos,this.pos+1,new r.Ji(r.FK.from(n),0,e.isLeaf?0:1))}invert(t){let e=t.nodeAt(this.pos);if(e){let t=this.mark.addToSet(e.marks);if(t.length==e.marks.length){for(let n=0;n<e.marks.length;n++)if(!e.marks[n].isInSet(t))return new g(this.pos,e.marks[n]);return new g(this.pos,this.mark)}}return new b(this.pos,this.mark)}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new g(e.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new g(e.pos,t.markFromJSON(e.mark))}}p.jsonID("addNodeMark",g);class b extends p{constructor(t,e){super(),this.pos=t,this.mark=e}apply(t){let e=t.nodeAt(this.pos);if(!e)return h.fail("No node at mark step's position");let n=e.type.create(e.attrs,null,this.mark.removeFromSet(e.marks));return h.fromReplace(t,this.pos,this.pos+1,new r.Ji(r.FK.from(n),0,e.isLeaf?0:1))}invert(t){let e=t.nodeAt(this.pos);return e&&this.mark.isInSet(e.marks)?new g(this.pos,this.mark):this}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new b(e.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new b(e.pos,t.markFromJSON(e.mark))}}p.jsonID("removeNodeMark",b);class y extends p{constructor(t,e,n,r=!1){super(),this.from=t,this.to=e,this.slice=n,this.structure=r}apply(t){return this.structure&&A(t,this.from,this.to)?h.fail("Structure replace would overwrite content"):h.fromReplace(t,this.from,this.to,this.slice)}getMap(){return new l([this.from,this.to-this.from,this.slice.size])}invert(t){return new y(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let e=t.mapResult(this.from,1),n=t.mapResult(this.to,-1);return e.deletedAcross&&n.deletedAcross?null:new y(e.pos,Math.max(e.pos,n.pos),this.slice,this.structure)}merge(t){if(!(t instanceof y)||t.structure||this.structure)return null;if(this.from+this.slice.size!=t.from||this.slice.openEnd||t.slice.openStart){if(t.to!=this.from||this.slice.openStart||t.slice.openEnd)return null;{let e=this.slice.size+t.slice.size==0?r.Ji.empty:new r.Ji(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new y(t.from,this.to,e,this.structure)}}{let e=this.slice.size+t.slice.size==0?r.Ji.empty:new r.Ji(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new y(this.from,this.to+(t.to-t.from),e,this.structure)}}toJSON(){let t={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new y(e.from,e.to,r.Ji.fromJSON(t,e.slice),!!e.structure)}}p.jsonID("replace",y);class w extends p{constructor(t,e,n,r,o,i,a=!1){super(),this.from=t,this.to=e,this.gapFrom=n,this.gapTo=r,this.slice=o,this.insert=i,this.structure=a}apply(t){if(this.structure&&(A(t,this.from,this.gapFrom)||A(t,this.gapTo,this.to)))return h.fail("Structure gap-replace would overwrite content");let e=t.slice(this.gapFrom,this.gapTo);if(e.openStart||e.openEnd)return h.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,e.content);return n?h.fromReplace(t,this.from,this.to,n):h.fail("Content does not fit in gap")}getMap(){return new l([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let e=this.gapTo-this.gapFrom;return new w(this.from,this.from+this.slice.size+e,this.from+this.insert,this.from+this.insert+e,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let e=t.mapResult(this.from,1),n=t.mapResult(this.to,-1),r=this.from==this.gapFrom?e.pos:t.map(this.gapFrom,-1),o=this.to==this.gapTo?n.pos:t.map(this.gapTo,1);return e.deletedAcross&&n.deletedAcross||r<e.pos||o>n.pos?null:new w(e.pos,n.pos,r,o,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to||"number"!=typeof e.gapFrom||"number"!=typeof e.gapTo||"number"!=typeof e.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new w(e.from,e.to,e.gapFrom,e.gapTo,r.Ji.fromJSON(t,e.slice),e.insert,!!e.structure)}}function A(t,e,n){let r=t.resolve(e),o=n-e,i=r.depth;for(;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0){let t=r.node(i).maybeChild(r.indexAfter(i));for(;o>0;){if(!t||t.isLeaf)return!0;t=t.firstChild,o--}}return!1}function x(t,e,n,o=n.contentMatch,i=!0){let a=t.doc.nodeAt(e),s=[],l=e+1;for(let e=0;e<a.childCount;e++){let c=a.child(e),d=l+c.nodeSize,p=o.matchType(c.type);if(p){o=p;for(let e=0;e<c.marks.length;e++)n.allowsMarkType(c.marks[e].type)||t.step(new m(l,d,c.marks[e]));if(i&&c.isText&&"pre"!=n.whitespace){let t,e,o=/\r?\n|\r/g;for(;t=o.exec(c.text);)e||(e=new r.Ji(r.FK.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),s.push(new y(l+t.index,l+t.index+t[0].length,e))}}else s.push(new y(l,d,r.Ji.empty));l=d}if(!o.validEnd){let e=o.fillBefore(r.FK.empty,!0);t.replace(l,l,new r.Ji(e,0,0))}for(let e=s.length-1;e>=0;e--)t.step(s[e])}function _(t,e,n){return(0==e||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function v(t){let e=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let n=t.depth,r=0,o=0;;--n){let i=t.$from.node(n),a=t.$from.index(n)+r,s=t.$to.indexAfter(n)-o;if(n<t.depth&&i.canReplace(a,s,e))return n;if(0==n||i.type.spec.isolating||!_(i,a,s))break;a&&(r=1),s<i.childCount&&(o=1)}return null}function k(t,e,n=null,r=t){let o=function(t,e){let{parent:n,startIndex:r,endIndex:o}=t,i=n.contentMatchAt(r).findWrapping(e);if(!i)return null;let a=i.length?i[0]:e;return n.canReplaceWith(r,o,a)?i:null}(t,e),i=o&&function(t,e){let{parent:n,startIndex:r,endIndex:o}=t,i=n.child(r),a=e.contentMatch.findWrapping(i.type);if(!a)return null;let s=(a.length?a[a.length-1]:e).contentMatch;for(let t=r;s&&t<o;t++)s=s.matchType(n.child(t).type);return s&&s.validEnd?a:null}(r,e);return i?o.map(C).concat({type:e,attrs:n}).concat(i.map(C)):null}function C(t){return{type:t,attrs:null}}function E(t,e,n,r){e.forEach((o,i)=>{if(o.isText){let a,s=/\r?\n|\r/g;for(;a=s.exec(o.text);){let o=t.mapping.slice(r).map(n+1+i+a.index);t.replaceWith(o,o+1,e.type.schema.linebreakReplacement.create())}}})}function S(t,e,n,r){e.forEach((o,i)=>{if(o.type==o.type.schema.linebreakReplacement){let o=t.mapping.slice(r).map(n+1+i);t.replaceWith(o,o+1,e.type.schema.text("\n"))}})}function M(t,e,n=1,r){let o=t.resolve(e),i=o.depth-n,a=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!a.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let t=o.depth-1,e=n-2;t>i;t--,e--){let n=o.node(t),i=o.index(t);if(n.type.spec.isolating)return!1;let a=n.content.cutByIndex(i,n.childCount),s=r&&r[e+1];s&&(a=a.replaceChild(0,s.type.create(s.attrs)));let l=r&&r[e]||n;if(!n.canReplace(i+1,n.childCount)||!l.type.validContent(a))return!1}let s=o.indexAfter(i),l=r&&r[0];return o.node(i).canReplaceWith(s,s,l?l.type:o.node(i+1).type)}function B(t,e){let n=t.resolve(e),r=n.index();return T(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function T(t,e){return!(!t||!e||t.isLeaf||!function(t,e){e.content.size||t.type.compatibleContent(e.type);let n=t.contentMatchAt(t.childCount),{linebreakReplacement:r}=t.type.schema;for(let o=0;o<e.childCount;o++){let i=e.child(o),a=i.type==r?t.type.schema.nodes.text:i.type;if(n=n.matchType(a),!n)return!1;if(!t.type.allowsMarks(i.marks))return!1}return n.validEnd}(t,e))}function L(t,e,n=-1){let r=t.resolve(e);for(let t=r.depth;;t--){let o,i,a=r.index(t);if(t==r.depth?(o=r.nodeBefore,i=r.nodeAfter):n>0?(o=r.node(t+1),a++,i=r.node(t).maybeChild(a)):(o=r.node(t).maybeChild(a-1),i=r.node(t+1)),o&&!o.isTextblock&&T(o,i)&&r.node(t).canReplace(a,a+1))return e;if(0==t)break;e=n<0?r.before(t):r.after(t)}}function O(t,e,n){let r=t.resolve(e);if(!n.content.size)return e;let o=n.content;for(let t=0;t<n.openStart;t++)o=o.firstChild.content;for(let t=1;t<=(0==n.openStart&&n.size?2:1);t++)for(let e=r.depth;e>=0;e--){let n=e==r.depth?0:r.pos<=(r.start(e+1)+r.end(e+1))/2?-1:1,i=r.index(e)+(n>0?1:0),a=r.node(e),s=!1;if(1==t)s=a.canReplace(i,i,o);else{let t=a.contentMatchAt(i).findWrapping(o.firstChild.type);s=t&&a.canReplaceWith(i,i,t[0])}if(s)return 0==n?r.pos:n<0?r.before(e+1):r.after(e+1)}return null}function I(t,e,n=e,o=r.Ji.empty){if(e==n&&!o.size)return null;let i=t.resolve(e),a=t.resolve(n);return N(i,a,o)?new y(e,n,o):new R(i,a,o).fit()}function N(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}p.jsonID("replaceAround",w);class R{constructor(t,e,n){this.$from=t,this.$to=e,this.unplaced=n,this.frontier=[],this.placed=r.FK.empty;for(let e=0;e<=t.depth;e++){let n=t.node(e);this.frontier.push({type:n.type,match:n.contentMatchAt(t.indexAfter(e))})}for(let e=t.depth;e>0;e--)this.placed=r.FK.from(t.node(e).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let t=this.findFittable();t?this.placeNodes(t):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),e=this.placed.size-this.depth-this.$from.depth,n=this.$from,o=this.close(t<0?this.$to:n.doc.resolve(t));if(!o)return null;let i=this.placed,a=n.depth,s=o.depth;for(;a&&s&&1==i.childCount;)i=i.firstChild.content,a--,s--;let l=new r.Ji(i,a,s);return t>-1?new w(n.pos,t,this.$to.pos,this.$to.end(),l,e):l.size||n.pos!=this.$to.pos?new y(n.pos,o.pos,l):null}findFittable(){let t=this.unplaced.openStart;for(let e=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<t;n++){let o=e.firstChild;if(e.childCount>1&&(r=0),o.type.spec.isolating&&r<=n){t=n;break}e=o.content}for(let e=1;e<=2;e++)for(let n=1==e?t:this.unplaced.openStart;n>=0;n--){let t,o=null;n?(o=P(this.unplaced.content,n-1).firstChild,t=o.content):t=this.unplaced.content;let i=t.firstChild;for(let t=this.depth;t>=0;t--){let a,{type:s,match:l}=this.frontier[t],c=null;if(1==e&&(i?l.matchType(i.type)||(c=l.fillBefore(r.FK.from(i),!1)):o&&s.compatibleContent(o.type)))return{sliceDepth:n,frontierDepth:t,parent:o,inject:c};if(2==e&&i&&(a=l.findWrapping(i.type)))return{sliceDepth:n,frontierDepth:t,parent:o,wrap:a};if(o&&l.matchType(o.type))break}}}openMore(){let{content:t,openStart:e,openEnd:n}=this.unplaced,o=P(t,e);return!(!o.childCount||o.firstChild.isLeaf)&&(this.unplaced=new r.Ji(t,e+1,Math.max(n,o.size+e>=t.size-n?e+1:0)),!0)}dropNode(){let{content:t,openStart:e,openEnd:n}=this.unplaced,o=P(t,e);if(o.childCount<=1&&e>0){let i=t.size-e<=e+o.size;this.unplaced=new r.Ji(z(t,e-1,1),e-1,i?e-1:n)}else this.unplaced=new r.Ji(z(t,e,1),e,n)}placeNodes({sliceDepth:t,frontierDepth:e,parent:n,inject:o,wrap:i}){for(;this.depth>e;)this.closeFrontierNode();if(i)for(let t=0;t<i.length;t++)this.openFrontierNode(i[t]);let a=this.unplaced,s=n?n.content:a.content,l=a.openStart-t,c=0,d=[],{match:p,type:h}=this.frontier[e];if(o){for(let t=0;t<o.childCount;t++)d.push(o.child(t));p=p.matchFragment(o)}let u=s.size+t-(a.content.size-a.openEnd);for(;c<s.childCount;){let t=s.child(c),e=p.matchType(t.type);if(!e)break;c++,(c>1||0==l||t.content.size)&&(p=e,d.push(D(t.mark(h.allowedMarks(t.marks)),1==c?l:0,c==s.childCount?u:-1)))}let f=c==s.childCount;f||(u=-1),this.placed=H(this.placed,e,r.FK.from(d)),this.frontier[e].match=p,f&&u<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let t=0,e=s;t<u;t++){let t=e.lastChild;this.frontier.push({type:t.type,match:t.contentMatchAt(t.childCount)}),e=t.content}this.unplaced=f?0==t?r.Ji.empty:new r.Ji(z(a.content,t-1,1),t-1,u<0?a.openEnd:t-1):new r.Ji(z(a.content,t,c),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let t,e=this.frontier[this.depth];if(!e.type.isTextblock||!$(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return-1;let{depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(t){t:for(let e=Math.min(this.depth,t.depth);e>=0;e--){let{match:n,type:r}=this.frontier[e],o=e<t.depth&&t.end(e+1)==t.pos+(t.depth-(e+1)),i=$(t,e,r,n,o);if(i){for(let n=e-1;n>=0;n--){let{match:e,type:r}=this.frontier[n],o=$(t,n,r,e,!0);if(!o||o.childCount)continue t}return{depth:e,fit:i,move:o?t.doc.resolve(t.after(e+1)):t}}}}close(t){let e=this.findCloseLevel(t);if(!e)return null;for(;this.depth>e.depth;)this.closeFrontierNode();e.fit.childCount&&(this.placed=H(this.placed,e.depth,e.fit)),t=e.move;for(let n=e.depth+1;n<=t.depth;n++){let e=t.node(n),r=e.type.contentMatch.fillBefore(e.content,!0,t.index(n));this.openFrontierNode(e.type,e.attrs,r)}return t}openFrontierNode(t,e=null,n){let o=this.frontier[this.depth];o.match=o.match.matchType(t),this.placed=H(this.placed,this.depth,r.FK.from(t.create(e,n))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(r.FK.empty,!0);t.childCount&&(this.placed=H(this.placed,this.frontier.length,t))}}function z(t,e,n){return 0==e?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(z(t.firstChild.content,e-1,n)))}function H(t,e,n){return 0==e?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(H(t.lastChild.content,e-1,n)))}function P(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function D(t,e,n){if(e<=0)return t;let o=t.content;return e>1&&(o=o.replaceChild(0,D(o.firstChild,e-1,1==o.childCount?n-1:0))),e>0&&(o=t.type.contentMatch.fillBefore(o).append(o),n<=0&&(o=o.append(t.type.contentMatch.matchFragment(o).fillBefore(r.FK.empty,!0)))),t.copy(o)}function $(t,e,n,r,o){let i=t.node(e),a=o?t.indexAfter(e):t.index(e);if(a==i.childCount&&!n.compatibleContent(i.type))return null;let s=r.fillBefore(i.content,!0,a);return s&&!function(t,e,n){for(let r=n;r<e.childCount;r++)if(!t.allowsMarks(e.child(r).marks))return!0;return!1}(n,i.content,a)?s:null}function j(t){return t.spec.defining||t.spec.definingForContent}function F(t,e,n,o,i){if(e<n){let r=t.firstChild;t=t.replaceChild(0,r.copy(F(r.content,e+1,n,o,r)))}if(e>o){let e=i.contentMatchAt(0),n=e.fillBefore(t).append(t);t=n.append(e.matchFragment(n).fillBefore(r.FK.empty,!0))}return t}function U(t,e){let n=[];for(let r=Math.min(t.depth,e.depth);r>=0;r--){let o=t.start(r);if(o<t.pos-(t.depth-r)||e.end(r)>e.pos+(e.depth-r)||t.node(r).type.spec.isolating||e.node(r).type.spec.isolating)break;(o==e.start(r)||r==t.depth&&r==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&r&&e.start(r-1)==o-1)&&n.push(r)}return n}class q extends p{constructor(t,e,n){super(),this.pos=t,this.attr=e,this.value=n}apply(t){let e=t.nodeAt(this.pos);if(!e)return h.fail("No node at attribute step's position");let n=Object.create(null);for(let t in e.attrs)n[t]=e.attrs[t];n[this.attr]=this.value;let o=e.type.create(n,null,e.marks);return h.fromReplace(t,this.pos,this.pos+1,new r.Ji(r.FK.from(o),0,e.isLeaf?0:1))}getMap(){return l.empty}invert(t){return new q(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new q(e.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,e){if("number"!=typeof e.pos||"string"!=typeof e.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new q(e.pos,e.attr,e.value)}}p.jsonID("attr",q);class W extends p{constructor(t,e){super(),this.attr=t,this.value=e}apply(t){let e=Object.create(null);for(let n in t.attrs)e[n]=t.attrs[n];e[this.attr]=this.value;let n=t.type.create(e,t.content,t.marks);return h.ok(n)}getMap(){return l.empty}invert(t){return new W(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,e){if("string"!=typeof e.attr)throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new W(e.attr,e.value)}}p.jsonID("docAttr",W);let V=class extends Error{};V=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},(V.prototype=Object.create(Error.prototype)).constructor=V,V.prototype.name="TransformError";class Y{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new c}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let e=this.maybeStep(t);if(e.failed)throw new V(e.failed);return this}maybeStep(t){let e=t.apply(this.doc);return e.failed||this.addStep(t,e.doc),e}get docChanged(){return this.steps.length>0}changedRange(){let t=1e9,e=-1e9;for(let n=0;n<this.mapping.maps.length;n++){let r=this.mapping.maps[n];n&&(t=r.map(t,1),e=r.map(e,-1)),r.forEach((n,r,o,i)=>{t=Math.min(t,o),e=Math.max(e,i)})}return 1e9==t?null:{from:t,to:e}}addStep(t,e){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=e}replace(t,e=t,n=r.Ji.empty){let o=I(this.doc,t,e,n);return o&&this.step(o),this}replaceWith(t,e,n){return this.replace(t,e,new r.Ji(r.FK.from(n),0,0))}delete(t,e){return this.replace(t,e,r.Ji.empty)}insert(t,e){return this.replaceWith(t,t,e)}replaceRange(t,e,n){return function(t,e,n,o){if(!o.size)return t.deleteRange(e,n);let i=t.doc.resolve(e),a=t.doc.resolve(n);if(N(i,a,o))return t.step(new y(e,n,o));let s=U(i,a);0==s[s.length-1]&&s.pop();let l=-(i.depth+1);s.unshift(l);for(let t=i.depth,e=i.pos-1;t>0;t--,e--){let n=i.node(t).type.spec;if(n.defining||n.definingAsContext||n.isolating)break;s.indexOf(t)>-1?l=t:i.before(t)==e&&s.splice(1,0,-t)}let c=s.indexOf(l),d=[],p=o.openStart;for(let t=o.content,e=0;;e++){let n=t.firstChild;if(d.push(n),e==o.openStart)break;t=n.content}for(let t=p-1;t>=0;t--){let e=d[t],n=j(e.type);if(n&&!e.sameMarkup(i.node(Math.abs(l)-1)))p=t;else if(n||!e.type.isTextblock)break}for(let e=o.openStart;e>=0;e--){let l=(e+p+1)%(o.openStart+1),h=d[l];if(h)for(let e=0;e<s.length;e++){let d=s[(e+c)%s.length],p=!0;d<0&&(p=!1,d=-d);let u=i.node(d-1),f=i.index(d-1);if(u.canReplaceWith(f,f,h.type,h.marks))return t.replace(i.before(d),p?a.after(d):n,new r.Ji(F(o.content,0,o.openStart,l),l,o.openEnd))}}let h=t.steps.length;for(let r=s.length-1;r>=0&&(t.replace(e,n,o),!(t.steps.length>h));r--){let t=s[r];t<0||(e=i.before(t),n=a.after(t))}}(this,t,e,n),this}replaceRangeWith(t,e,n){return function(t,e,n,o){if(!o.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let r=function(t,e,n){let r=t.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),n))return e;if(0==r.parentOffset)for(let t=r.depth-1;t>=0;t--){let e=r.index(t);if(r.node(t).canReplaceWith(e,e,n))return r.before(t+1);if(e>0)return null}if(r.parentOffset==r.parent.content.size)for(let t=r.depth-1;t>=0;t--){let e=r.indexAfter(t);if(r.node(t).canReplaceWith(e,e,n))return r.after(t+1);if(e<r.node(t).childCount)return null}return null}(t.doc,e,o.type);null!=r&&(e=n=r)}t.replaceRange(e,n,new r.Ji(r.FK.from(o),0,0))}(this,t,e,n),this}deleteRange(t,e){return function(t,e,n){let r=t.doc.resolve(e),o=t.doc.resolve(n),i=U(r,o);for(let e=0;e<i.length;e++){let n=i[e],a=e==i.length-1;if(a&&0==n||r.node(n).type.contentMatch.validEnd)return t.delete(r.start(n),o.end(n));if(n>0&&(a||r.node(n-1).canReplace(r.index(n-1),o.indexAfter(n-1))))return t.delete(r.before(n),o.after(n))}for(let i=1;i<=r.depth&&i<=o.depth;i++)if(e-r.start(i)==r.depth-i&&n>r.end(i)&&o.end(i)-n!=o.depth-i&&r.start(i-1)==o.start(i-1)&&r.node(i-1).canReplace(r.index(i-1),o.index(i-1)))return t.delete(r.before(i),n);t.delete(e,n)}(this,t,e),this}lift(t,e){return function(t,e,n){let{$from:o,$to:i,depth:a}=e,s=o.before(a+1),l=i.after(a+1),c=s,d=l,p=r.FK.empty,h=0;for(let t=a,e=!1;t>n;t--)e||o.index(t)>0?(e=!0,p=r.FK.from(o.node(t).copy(p)),h++):c--;let u=r.FK.empty,f=0;for(let t=a,e=!1;t>n;t--)e||i.after(t+1)<i.end(t)?(e=!0,u=r.FK.from(i.node(t).copy(u)),f++):d++;t.step(new w(c,d,s,l,new r.Ji(p.append(u),h,f),p.size-h,!0))}(this,t,e),this}join(t,e=1){return function(t,e,n){let o=null,{linebreakReplacement:i}=t.doc.type.schema,a=t.doc.resolve(e-n),s=a.node().type;if(i&&s.inlineContent){let t="pre"==s.whitespace,e=!!s.contentMatch.matchType(i);t&&!e?o=!1:!t&&e&&(o=!0)}let l=t.steps.length;if(!1===o){let r=t.doc.resolve(e+n);S(t,r.node(),r.before(),l)}s.inlineContent&&x(t,e+n-1,s,a.node().contentMatchAt(a.index()),null==o);let c=t.mapping.slice(l),d=c.map(e-n);if(t.step(new y(d,c.map(e+n,-1),r.Ji.empty,!0)),!0===o){let e=t.doc.resolve(d);E(t,e.node(),e.before(),t.steps.length)}}(this,t,e),this}wrap(t,e){return function(t,e,n){let o=r.FK.empty;for(let t=n.length-1;t>=0;t--){if(o.size){let e=n[t].type.contentMatch.matchFragment(o);if(!e||!e.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}o=r.FK.from(n[t].type.create(n[t].attrs,o))}let i=e.start,a=e.end;t.step(new w(i,a,i,a,new r.Ji(o,0,0),n.length,!0))}(this,t,e),this}setBlockType(t,e=t,n,o=null){return function(t,e,n,o,i){if(!o.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let a=t.steps.length;t.doc.nodesBetween(e,n,(e,n)=>{let s="function"==typeof i?i(e):i;if(e.isTextblock&&!e.hasMarkup(o,s)&&function(t,e,n){let r=t.resolve(e),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}(t.doc,t.mapping.slice(a).map(n),o)){let i=null;if(o.schema.linebreakReplacement){let t="pre"==o.whitespace,e=!!o.contentMatch.matchType(o.schema.linebreakReplacement);t&&!e?i=!1:!t&&e&&(i=!0)}!1===i&&S(t,e,n,a),x(t,t.mapping.slice(a).map(n,1),o,void 0,null===i);let l=t.mapping.slice(a),c=l.map(n,1),d=l.map(n+e.nodeSize,1);return t.step(new w(c,d,c+1,d-1,new r.Ji(r.FK.from(o.create(s,null,e.marks)),0,0),1,!0)),!0===i&&E(t,e,n,a),!1}})}(this,t,e,n,o),this}setNodeMarkup(t,e,n=null,o){return function(t,e,n,o,i){let a=t.doc.nodeAt(e);if(!a)throw new RangeError("No node at given position");n||(n=a.type);let s=n.create(o,null,i||a.marks);if(a.isLeaf)return t.replaceWith(e,e+a.nodeSize,s);if(!n.validContent(a.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new w(e,e+a.nodeSize,e+1,e+a.nodeSize-1,new r.Ji(r.FK.from(s),0,0),1,!0))}(this,t,e,n,o),this}setNodeAttribute(t,e,n){return this.step(new q(t,e,n)),this}setDocAttribute(t,e){return this.step(new W(t,e)),this}addNodeMark(t,e){return this.step(new g(t,e)),this}removeNodeMark(t,e){let n=this.doc.nodeAt(t);if(!n)throw new RangeError("No node at position "+t);if(e instanceof r.CU)e.isInSet(n.marks)&&this.step(new b(t,e));else{let r,o=n.marks,i=[];for(;r=e.isInSet(o);)i.push(new b(t,r)),o=r.removeFromSet(o);for(let t=i.length-1;t>=0;t--)this.step(i[t])}return this}split(t,e=1,n){return function(t,e,n=1,o){let i=t.doc.resolve(e),a=r.FK.empty,s=r.FK.empty;for(let t=i.depth,e=i.depth-n,l=n-1;t>e;t--,l--){a=r.FK.from(i.node(t).copy(a));let e=o&&o[l];s=r.FK.from(e?e.type.create(e.attrs,s):i.node(t).copy(s))}t.step(new y(e,e,new r.Ji(a.append(s),n,n),!0))}(this,t,e,n),this}addMark(t,e,n){return function(t,e,n,r){let o,i,a=[],s=[];t.doc.nodesBetween(e,n,(t,l,c)=>{if(!t.isInline)return;let d=t.marks;if(!r.isInSet(d)&&c.type.allowsMarkType(r.type)){let c=Math.max(l,e),p=Math.min(l+t.nodeSize,n),h=r.addToSet(d);for(let t=0;t<d.length;t++)d[t].isInSet(h)||(o&&o.to==c&&o.mark.eq(d[t])?o.to=p:a.push(o=new m(c,p,d[t])));i&&i.to==c?i.to=p:s.push(i=new f(c,p,r))}}),a.forEach(e=>t.step(e)),s.forEach(e=>t.step(e))}(this,t,e,n),this}removeMark(t,e,n){return function(t,e,n,o){let i=[],a=0;t.doc.nodesBetween(e,n,(t,s)=>{if(!t.isInline)return;a++;let l=null;if(o instanceof r.sX){let e,n=t.marks;for(;e=o.isInSet(n);)(l||(l=[])).push(e),n=e.removeFromSet(n)}else o?o.isInSet(t.marks)&&(l=[o]):l=t.marks;if(l&&l.length){let r=Math.min(s+t.nodeSize,n);for(let t=0;t<l.length;t++){let n,o=l[t];for(let t=0;t<i.length;t++){let e=i[t];e.step==a-1&&o.eq(i[t].style)&&(n=e)}n?(n.to=r,n.step=a):i.push({style:o,from:Math.max(s,e),to:r,step:a})}}}),i.forEach(e=>t.step(new m(e.from,e.to,e.style)))}(this,t,e,n),this}clearIncompatible(t,e,n){return x(this,t,e,n),this}}},73686(t,e,n){"use strict";n.d(e,{Lz:()=>bn,NZ:()=>Fe,zF:()=>We});var r=n(81570),o=n(16090),i=n(11329);const a=function(t){for(var e=0;;e++)if(!(t=t.previousSibling))return e},s=function(t){let e=t.assignedSlot||t.parentNode;return e&&11==e.nodeType?e.host:e};let l=null;const c=function(t,e,n){let r=l||(l=document.createRange());return r.setEnd(t,null==n?t.nodeValue.length:n),r.setStart(t,e||0),r},d=function(t,e,n,r){return n&&(h(t,e,n,r,-1)||h(t,e,n,r,1))},p=/^(img|br|input|textarea|hr)$/i;function h(t,e,n,r,o){for(var i;;){if(t==n&&e==r)return!0;if(e==(o<0?0:u(t))){let n=t.parentNode;if(!n||1!=n.nodeType||f(t)||p.test(t.nodeName)||"false"==t.contentEditable)return!1;e=a(t)+(o<0?0:1),t=n}else{if(1!=t.nodeType)return!1;{let n=t.childNodes[e+(o<0?-1:0)];if(1==n.nodeType&&"false"==n.contentEditable){if(!(null===(i=n.pmViewDesc)||void 0===i?void 0:i.ignoreForSelection))return!1;e+=o}else t=n,e=o<0?u(t):0}}}}function u(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}function f(t){let e;for(let n=t;n&&!(e=n.pmViewDesc);n=n.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const m=function(t){return t.focusNode&&d(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function g(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}const b="undefined"!=typeof navigator?navigator:null,y="undefined"!=typeof document?document:null,w=b&&b.userAgent||"",A=/Edge\/(\d+)/.exec(w),x=/MSIE \d/.exec(w),_=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(w),v=!!(x||_||A),k=x?document.documentMode:_?+_[1]:A?+A[1]:0,C=!v&&/gecko\/(\d+)/i.test(w);C&&(/Firefox\/(\d+)/.exec(w)||[0,0])[1];const E=!v&&/Chrome\/(\d+)/.exec(w),S=!!E,M=E?+E[1]:0,B=!v&&!!b&&/Apple Computer/.test(b.vendor),T=B&&(/Mobile\/\w+/.test(w)||!!b&&b.maxTouchPoints>2),L=T||!!b&&/Mac/.test(b.platform),O=!!b&&/Win/.test(b.platform),I=/Android \d/.test(w),N=!!y&&"webkitFontSmoothing"in y.documentElement.style,R=N?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function z(t){let e=t.defaultView&&t.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function H(t,e){return"number"==typeof t?t:t[e]}function P(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,r=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*r}}function D(t,e,n){let r=t.someProp("scrollThreshold")||0,o=t.someProp("scrollMargin")||5,i=t.dom.ownerDocument;for(let a=n||t.dom;a;){if(1!=a.nodeType){a=s(a);continue}let t=a,n=t==i.body,l=n?z(i):P(t),c=0,d=0;if(e.top<l.top+H(r,"top")?d=-(l.top-e.top+H(o,"top")):e.bottom>l.bottom-H(r,"bottom")&&(d=e.bottom-e.top>l.bottom-l.top?e.top+H(o,"top")-l.top:e.bottom-l.bottom+H(o,"bottom")),e.left<l.left+H(r,"left")?c=-(l.left-e.left+H(o,"left")):e.right>l.right-H(r,"right")&&(c=e.right-l.right+H(o,"right")),c||d)if(n)i.defaultView.scrollBy(c,d);else{let n=t.scrollLeft,r=t.scrollTop;d&&(t.scrollTop+=d),c&&(t.scrollLeft+=c);let o=t.scrollLeft-n,i=t.scrollTop-r;e={left:e.left-o,top:e.top-i,right:e.right-o,bottom:e.bottom-i}}let p=n?"fixed":getComputedStyle(a).position;if(/^(fixed|sticky)$/.test(p))break;a="absolute"==p?a.offsetParent:s(a)}}function $(t){let e=[],n=t.ownerDocument;for(let r=t;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),t!=n);r=s(r));return e}function j(t,e){for(let n=0;n<t.length;n++){let{dom:r,top:o,left:i}=t[n];r.scrollTop!=o+e&&(r.scrollTop=o+e),r.scrollLeft!=i&&(r.scrollLeft=i)}}let F=null;function U(t,e){let n,r,o,i,a=2e8,s=0,l=e.top,d=e.top;for(let p=t.firstChild,h=0;p;p=p.nextSibling,h++){let t;if(1==p.nodeType)t=p.getClientRects();else{if(3!=p.nodeType)continue;t=c(p).getClientRects()}for(let c=0;c<t.length;c++){let u=t[c];if(u.top<=l&&u.bottom>=d){l=Math.max(u.bottom,l),d=Math.min(u.top,d);let t=u.left>e.left?u.left-e.left:u.right<e.left?e.left-u.right:0;if(t<a){n=p,a=t,r=t&&3==n.nodeType?{left:u.right<e.left?u.right:u.left,top:e.top}:e,1==p.nodeType&&t&&(s=h+(e.left>=(u.left+u.right)/2?1:0));continue}}else u.top>e.top&&!o&&u.left<=e.left&&u.right>=e.left&&(o=p,i={left:Math.max(u.left,Math.min(u.right,e.left)),top:u.top});!n&&(e.left>=u.right&&e.top>=u.top||e.left>=u.left&&e.top>=u.bottom)&&(s=h+1)}}return!n&&o&&(n=o,r=i,a=0),n&&3==n.nodeType?function(t,e){let n,r=t.nodeValue.length,o=document.createRange();for(let i=0;i<r;i++){o.setEnd(t,i+1),o.setStart(t,i);let r=X(o,1);if(r.top!=r.bottom&&q(e,r)){n={node:t,offset:i+(e.left>=(r.left+r.right)/2?1:0)};break}}return o.detach(),n||{node:t,offset:0}}(n,r):!n||a&&1==n.nodeType?{node:t,offset:s}:U(n,r)}function q(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function W(t,e,n){let r=t.childNodes.length;if(r&&n.top<n.bottom)for(let o=Math.max(0,Math.min(r-1,Math.floor(r*(e.top-n.top)/(n.bottom-n.top))-2)),i=o;;){let n=t.childNodes[i];if(1==n.nodeType){let t=n.getClientRects();for(let r=0;r<t.length;r++){let o=t[r];if(q(e,o))return W(n,e,o)}}if((i=(i+1)%r)==o)break}return t}function V(t,e){let n,r=t.dom.ownerDocument,o=0,i=function(t,e,n){if(t.caretPositionFromPoint)try{let r=t.caretPositionFromPoint(e,n);if(r)return{node:r.offsetNode,offset:Math.min(u(r.offsetNode),r.offset)}}catch(t){}if(t.caretRangeFromPoint){let r=t.caretRangeFromPoint(e,n);if(r)return{node:r.startContainer,offset:Math.min(u(r.startContainer),r.startOffset)}}}(r,e.left,e.top);i&&({node:n,offset:o}=i);let a,l=(t.root.elementFromPoint?t.root:r).elementFromPoint(e.left,e.top);if(!l||!t.dom.contains(1!=l.nodeType?l.parentNode:l)){let n=t.dom.getBoundingClientRect();if(!q(e,n))return null;if(l=W(t.dom,e,n),!l)return null}if(B)for(let t=l;n&&t;t=s(t))t.draggable&&(n=void 0);if(l=function(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}(l,e),n){if(C&&1==n.nodeType&&(o=Math.min(o,n.childNodes.length),o<n.childNodes.length)){let t,r=n.childNodes[o];"IMG"==r.nodeName&&(t=r.getBoundingClientRect()).right<=e.left&&t.bottom>e.top&&o++}let r;N&&o&&1==n.nodeType&&1==(r=n.childNodes[o-1]).nodeType&&"false"==r.contentEditable&&r.getBoundingClientRect().top>=e.top&&o--,n==t.dom&&o==n.childNodes.length-1&&1==n.lastChild.nodeType&&e.top>n.lastChild.getBoundingClientRect().bottom?a=t.state.doc.content.size:0!=o&&1==n.nodeType&&"BR"==n.childNodes[o-1].nodeName||(a=function(t,e,n,r){let o=-1;for(let n=e,i=!1;n!=t.dom;){let e,a=t.docView.nearestDesc(n,!0);if(!a)return null;if(1==a.dom.nodeType&&(a.node.isBlock&&a.parent||!a.contentDOM)&&((e=a.dom.getBoundingClientRect()).width||e.height)&&(a.node.isBlock&&a.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(a.dom.nodeName)&&(!i&&e.left>r.left||e.top>r.top?o=a.posBefore:(!i&&e.right<r.left||e.bottom<r.top)&&(o=a.posAfter),i=!0),!a.contentDOM&&o<0&&!a.node.isText))return(a.node.isBlock?r.top<(e.top+e.bottom)/2:r.left<(e.left+e.right)/2)?a.posBefore:a.posAfter;n=a.dom.parentNode}return o>-1?o:t.docView.posFromDOM(e,n,-1)}(t,n,o,e))}null==a&&(a=function(t,e,n){let{node:r,offset:o}=U(e,n),i=-1;if(1==r.nodeType&&!r.firstChild){let t=r.getBoundingClientRect();i=t.left!=t.right&&n.left>(t.left+t.right)/2?1:-1}return t.docView.posFromDOM(r,o,i)}(t,l,e));let c=t.docView.nearestDesc(l,!0);return{pos:a,inside:c?c.posAtStart-c.border:-1}}function Y(t){return t.top<t.bottom||t.left<t.right}function X(t,e){let n=t.getClientRects();if(n.length){let t=n[e<0?0:n.length-1];if(Y(t))return t}return Array.prototype.find.call(n,Y)||t.getBoundingClientRect()}const Z=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function K(t,e,n){let{node:r,offset:o,atom:i}=t.docView.domFromPos(e,n<0?-1:1),a=N||C;if(3==r.nodeType){if(!a||!Z.test(r.nodeValue)&&(n<0?o:o!=r.nodeValue.length)){let t=o,e=o,i=n<0?1:-1;return n<0&&!o?(e++,i=-1):n>=0&&o==r.nodeValue.length?(t--,i=1):n<0?t--:e++,J(X(c(r,t,e),i),i<0)}{let t=X(c(r,o,o),n);if(C&&o&&/\s/.test(r.nodeValue[o-1])&&o<r.nodeValue.length){let e=X(c(r,o-1,o-1),-1);if(e.top==t.top){let n=X(c(r,o,o+1),-1);if(n.top!=t.top)return J(n,n.left<e.left)}}return t}}if(!t.state.doc.resolve(e-(i||0)).parent.inlineContent){if(null==i&&o&&(n<0||o==u(r))){let t=r.childNodes[o-1];if(1==t.nodeType)return G(t.getBoundingClientRect(),!1)}if(null==i&&o<u(r)){let t=r.childNodes[o];if(1==t.nodeType)return G(t.getBoundingClientRect(),!0)}return G(r.getBoundingClientRect(),n>=0)}if(null==i&&o&&(n<0||o==u(r))){let t=r.childNodes[o-1],e=3==t.nodeType?c(t,u(t)-(a?0:1)):1!=t.nodeType||"BR"==t.nodeName&&t.nextSibling?null:t;if(e)return J(X(e,1),!1)}if(null==i&&o<u(r)){let t=r.childNodes[o];for(;t.pmViewDesc&&t.pmViewDesc.ignoreForCoords;)t=t.nextSibling;let e=t?3==t.nodeType?c(t,0,a?0:1):1==t.nodeType?t:null:null;if(e)return J(X(e,-1),!0)}return J(X(3==r.nodeType?c(r):r,-n),n>=0)}function J(t,e){if(0==t.width)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function G(t,e){if(0==t.height)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function Q(t,e,n){let r=t.state,o=t.root.activeElement;r!=e&&t.updateState(e),o!=t.dom&&t.focus();try{return n()}finally{r!=e&&t.updateState(r),o!=t.dom&&o&&o.focus()}}const tt=/[\u0590-\u08ac]/;let et=null,nt=null,rt=!1;function ot(t,e,n){return et==e&&nt==n?rt:(et=e,nt=n,rt="up"==n||"down"==n?function(t,e,n){let r=e.selection,o="up"==n?r.$from:r.$to;return Q(t,e,()=>{let{node:e}=t.docView.domFromPos(o.pos,"up"==n?-1:1);for(;;){let n=t.docView.nearestDesc(e,!0);if(!n)break;if(n.node.isBlock){e=n.contentDOM||n.dom;break}e=n.dom.parentNode}let r=K(t,o.pos,1);for(let t=e.firstChild;t;t=t.nextSibling){let e;if(1==t.nodeType)e=t.getClientRects();else{if(3!=t.nodeType)continue;e=c(t,0,t.nodeValue.length).getClientRects()}for(let t=0;t<e.length;t++){let o=e[t];if(o.bottom>o.top+1&&("up"==n?r.top-o.top>2*(o.bottom-r.top):o.bottom-r.bottom>2*(r.bottom-o.top)))return!1}}return!0})}(t,e,n):function(t,e,n){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let o=r.parentOffset,i=!o,a=o==r.parent.content.size,s=t.domSelection();return s?tt.test(r.parent.textContent)&&s.modify?Q(t,e,()=>{let{focusNode:e,focusOffset:o,anchorNode:i,anchorOffset:a}=t.domSelectionRange(),l=s.caretBidiLevel;s.modify("move",n,"character");let c=r.depth?t.docView.domAfterPos(r.before()):t.dom,{focusNode:d,focusOffset:p}=t.domSelectionRange(),h=d&&!c.contains(1==d.nodeType?d:d.parentNode)||e==d&&o==p;try{s.collapse(i,a),e&&(e!=i||o!=a)&&s.extend&&s.extend(e,o)}catch(t){}return null!=l&&(s.caretBidiLevel=l),h}):"left"==n||"backward"==n?i:a:r.pos==r.start()||r.pos==r.end()}(t,e,n))}class it{constructor(t,e,n,r){this.parent=t,this.children=e,this.dom=n,this.contentDOM=r,this.dirty=0,n.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,e,n){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let e=0;e<this.children.length;e++)t+=this.children[e].size;return t}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let t=0;t<this.children.length;t++)this.children[t].destroy()}posBeforeChild(t){for(let e=0,n=this.posAtStart;;e++){let r=this.children[e];if(r==t)return n;n+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(t,e,n){if(this.contentDOM&&this.contentDOM.contains(1==t.nodeType?t:t.parentNode)){if(n<0){let n,r;if(t==this.contentDOM)n=t.childNodes[e-1];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;n=t.previousSibling}for(;n&&(!(r=n.pmViewDesc)||r.parent!=this);)n=n.previousSibling;return n?this.posBeforeChild(r)+r.size:this.posAtStart}{let n,r;if(t==this.contentDOM)n=t.childNodes[e];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;n=t.nextSibling}for(;n&&(!(r=n.pmViewDesc)||r.parent!=this);)n=n.nextSibling;return n?this.posBeforeChild(r):this.posAtEnd}}let r;if(t==this.dom&&this.contentDOM)r=e>a(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=2&t.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==e)for(let e=t;;e=e.parentNode){if(e==this.dom){r=!1;break}if(e.previousSibling)break}if(null==r&&e==t.childNodes.length)for(let e=t;;e=e.parentNode){if(e==this.dom){r=!0;break}if(e.nextSibling)break}}return(null==r?n>0:r)?this.posAtEnd:this.posAtStart}nearestDesc(t,e=!1){for(let n=!0,r=t;r;r=r.parentNode){let o,i=this.getDesc(r);if(i&&(!e||i.node)){if(!n||!(o=i.nodeDOM)||(1==o.nodeType?o.contains(1==t.nodeType?t:t.parentNode):o==t))return i;n=!1}}}getDesc(t){let e=t.pmViewDesc;for(let t=e;t;t=t.parent)if(t==this)return e}posFromDOM(t,e,n){for(let r=t;r;r=r.parentNode){let o=this.getDesc(r);if(o)return o.localPosFromDOM(t,e,n)}return-1}descAt(t){for(let e=0,n=0;e<this.children.length;e++){let r=this.children[e],o=n+r.size;if(n==t&&o!=n){for(;!r.border&&r.children.length;)for(let t=0;t<r.children.length;t++){let e=r.children[t];if(e.size){r=e;break}}return r}if(t<o)return r.descAt(t-n-r.border);n=o}}domFromPos(t,e){if(!this.contentDOM)return{node:this.dom,offset:0,atom:t+1};let n=0,r=0;for(let e=0;n<this.children.length;n++){let o=this.children[n],i=e+o.size;if(i>t||o instanceof ht){r=t-e;break}e=i}if(r)return this.children[n].domFromPos(r-this.children[n].border,e);for(let t;n&&!(t=this.children[n-1]).size&&t instanceof at&&t.side>=0;n--);if(e<=0){let t,r=!0;for(;t=n?this.children[n-1]:null,t&&t.dom.parentNode!=this.contentDOM;n--,r=!1);return t&&e&&r&&!t.border&&!t.domAtom?t.domFromPos(t.size,e):{node:this.contentDOM,offset:t?a(t.dom)+1:0}}{let t,r=!0;for(;t=n<this.children.length?this.children[n]:null,t&&t.dom.parentNode!=this.contentDOM;n++,r=!1);return t&&r&&!t.border&&!t.domAtom?t.domFromPos(0,e):{node:this.contentDOM,offset:t?a(t.dom):this.contentDOM.childNodes.length}}}parseRange(t,e,n=0){if(0==this.children.length)return{node:this.contentDOM,from:t,to:e,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,o=-1;for(let i=n,s=0;;s++){let n=this.children[s],l=i+n.size;if(-1==r&&t<=l){let o=i+n.border;if(t>=o&&e<=l-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(t,e,o);t=i;for(let e=s;e>0;e--){let n=this.children[e-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){r=a(n.dom)+1;break}t-=n.size}-1==r&&(r=0)}if(r>-1&&(l>e||s==this.children.length-1)){e=l;for(let t=s+1;t<this.children.length;t++){let n=this.children[t];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(-1)){o=a(n.dom);break}e+=n.size}-1==o&&(o=this.contentDOM.childNodes.length);break}i=l}return{node:this.contentDOM,from:t,to:e,fromOffset:r,toOffset:o}}emptyChildAt(t){if(this.border||!this.contentDOM||!this.children.length)return!1;let e=this.children[t<0?0:this.children.length-1];return 0==e.size||e.emptyChildAt(t)}domAfterPos(t){let{node:e,offset:n}=this.domFromPos(t,0);if(1!=e.nodeType||n==e.childNodes.length)throw new RangeError("No node after pos "+t);return e.childNodes[n]}setSelection(t,e,n,r=!1){let o=Math.min(t,e),i=Math.max(t,e);for(let a=0,s=0;a<this.children.length;a++){let l=this.children[a],c=s+l.size;if(o>s&&i<c)return l.setSelection(t-s-l.border,e-s-l.border,n,r);s=c}let s=this.domFromPos(t,t?-1:1),l=e==t?s:this.domFromPos(e,e?-1:1),c=n.root.getSelection(),p=n.domSelectionRange(),h=!1;if((C||B)&&t==e){let{node:t,offset:e}=s;if(3==t.nodeType){if(h=!(!e||"\n"!=t.nodeValue[e-1]),h&&e==t.nodeValue.length)for(let e,n=t;n;n=n.parentNode){if(e=n.nextSibling){"BR"==e.nodeName&&(s=l={node:e.parentNode,offset:a(e)+1});break}let t=n.pmViewDesc;if(t&&t.node&&t.node.isBlock)break}}else{let n=t.childNodes[e-1];h=n&&("BR"==n.nodeName||"false"==n.contentEditable)}}if(C&&p.focusNode&&p.focusNode!=l.node&&1==p.focusNode.nodeType){let t=p.focusNode.childNodes[p.focusOffset];t&&"false"==t.contentEditable&&(r=!0)}if(!(r||h&&B)&&d(s.node,s.offset,p.anchorNode,p.anchorOffset)&&d(l.node,l.offset,p.focusNode,p.focusOffset))return;let u=!1;if((c.extend||t==e)&&(!h||!C)){c.collapse(s.node,s.offset);try{t!=e&&c.extend(l.node,l.offset),u=!0}catch(t){}}if(!u){if(t>e){let t=s;s=l,l=t}let n=document.createRange();n.setEnd(l.node,l.offset),n.setStart(s.node,s.offset),c.removeAllRanges(),c.addRange(n)}}ignoreMutation(t){return!this.contentDOM&&"selection"!=t.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,e){for(let n=0,r=0;r<this.children.length;r++){let o=this.children[r],i=n+o.size;if(n==i?t<=i&&e>=n:t<i&&e>n){let r=n+o.border,a=i-o.border;if(t>=r&&e<=a)return this.dirty=t==n||e==i?2:1,void(t!=r||e!=a||!o.contentLost&&o.dom.parentNode==this.contentDOM?o.markDirty(t-r,e-r):o.dirty=3);o.dirty=o.dom!=o.contentDOM||o.dom.parentNode!=this.contentDOM||o.children.length?3:2}n=i}this.dirty=2}markParentsDirty(){let t=1;for(let e=this.parent;e;e=e.parent,t++){let n=1==t?2:1;e.dirty<n&&(e.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(t){return!1}}class at extends it{constructor(t,e,n,r){let o,i=e.type.toDOM;if("function"==typeof i&&(i=i(n,()=>o?o.parent?o.parent.posBeforeChild(o):void 0:r)),!e.type.spec.raw){if(1!=i.nodeType){let t=document.createElement("span");t.appendChild(i),i=t}i.contentEditable="false",i.classList.add("ProseMirror-widget")}super(t,[],i,null),this.widget=e,this.widget=e,o=this}matchesWidget(t){return 0==this.dirty&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let e=this.widget.spec.stopEvent;return!!e&&e(t)}ignoreMutation(t){return"selection"!=t.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class st extends it{constructor(t,e,n,r){super(t,[],e,null),this.textDOM=n,this.text=r}get size(){return this.text.length}localPosFromDOM(t,e){return t!=this.textDOM?this.posAtStart+(e?this.size:0):this.posAtStart+e}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return"characterData"===t.type&&t.target.nodeValue==t.oldValue}}class lt extends it{constructor(t,e,n,r,o){super(t,[],n,r),this.mark=e,this.spec=o}static create(t,e,n,r){let i=r.nodeViews[e.type.name],a=i&&i(e,r,n);return a&&a.dom||(a=o.ZF.renderSpec(document,e.type.spec.toDOM(e,n),null,e.attrs)),new lt(t,e,a.dom,a.contentDOM||a.dom,a)}parseRule(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(t){return 3!=this.dirty&&this.mark.eq(t)}markDirty(t,e){if(super.markDirty(t,e),0!=this.dirty){let t=this.parent;for(;!t.node;)t=t.parent;t.dirty<this.dirty&&(t.dirty=this.dirty),this.dirty=0}}slice(t,e,n){let r=lt.create(this.parent,this.mark,!0,n),o=this.children,i=this.size;e<i&&(o=Ct(o,e,i,n)),t>0&&(o=Ct(o,0,t,n));for(let t=0;t<o.length;t++)o[t].parent=r;return r.children=o,r}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class ct extends it{constructor(t,e,n,r,o,i,a,s,l){super(t,[],o,i),this.node=e,this.outerDeco=n,this.innerDeco=r,this.nodeDOM=a}static create(t,e,n,r,i,a){let s,l=i.nodeViews[e.type.name],c=l&&l(e,i,()=>s?s.parent?s.parent.posBeforeChild(s):void 0:a,n,r),d=c&&c.dom,p=c&&c.contentDOM;if(e.isText)if(d){if(3!=d.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else d=document.createTextNode(e.text);else if(!d){let t=o.ZF.renderSpec(document,e.type.spec.toDOM(e),null,e.attrs);({dom:d,contentDOM:p}=t)}p||e.isText||"BR"==d.nodeName||(d.hasAttribute("contenteditable")||(d.contentEditable="false"),e.type.spec.draggable&&(d.draggable=!0));let h=d;return d=At(d,n,e),c?s=new ut(t,e,n,r,d,p||null,h,c,i,a+1):e.isText?new pt(t,e,n,r,d,h,i):new ct(t,e,n,r,d,p||null,h,i,a+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(t.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let e=this.children.length-1;e>=0;e--){let n=this.children[e];if(this.dom.contains(n.dom.parentNode)){t.contentElement=n.dom.parentNode;break}}t.contentElement||(t.getContent=()=>o.FK.empty)}else t.contentElement=this.contentDOM;else t.getContent=()=>this.node.content;return t}matchesNode(t,e,n){return 0==this.dirty&&t.eq(this.node)&&xt(e,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,e){let n=this.node.inlineContent,r=e,i=t.composing?this.localCompositionInfo(t,e):null,a=i&&i.pos>-1?i:null,s=i&&i.pos<0,l=new vt(this,a&&a.node,t);!function(t,e,n,r){let o=e.locals(t),i=0;if(0==o.length){for(let n=0;n<t.childCount;n++){let a=t.child(n);r(a,o,e.forChild(i,a),n),i+=a.nodeSize}return}let a=0,s=[],l=null;for(let c=0;;){let d,p,h,u;for(;a<o.length&&o[a].to==i;){let t=o[a++];t.widget&&(d?(p||(p=[d])).push(t):d=t)}if(d)if(p){p.sort(kt);for(let t=0;t<p.length;t++)n(p[t],c,!!l)}else n(d,c,!!l);if(l)u=-1,h=l,l=null;else{if(!(c<t.childCount))break;u=c,h=t.child(c++)}for(let t=0;t<s.length;t++)s[t].to<=i&&s.splice(t--,1);for(;a<o.length&&o[a].from<=i&&o[a].to>i;)s.push(o[a++]);let f=i+h.nodeSize;if(h.isText){let t=f;a<o.length&&o[a].from<t&&(t=o[a].from);for(let e=0;e<s.length;e++)s[e].to<t&&(t=s[e].to);t<f&&(l=h.cut(t-i),h=h.cut(0,t-i),f=t,u=-1)}else for(;a<o.length&&o[a].to<f;)a++;r(h,h.isInline&&!h.isLeaf?s.filter(t=>!t.inline):s.slice(),e.forChild(i,h),u),i=f}}(this.node,this.innerDeco,(e,i,a)=>{e.spec.marks?l.syncToMarks(e.spec.marks,n,t,i):e.type.side>=0&&!a&&l.syncToMarks(i==this.node.childCount?o.CU.none:this.node.child(i).marks,n,t,i),l.placeWidget(e,t,r)},(e,o,a,c)=>{let d;l.syncToMarks(e.marks,n,t,c),l.findNodeMatch(e,o,a,c)||s&&t.state.selection.from>r&&t.state.selection.to<r+e.nodeSize&&(d=l.findIndexWithChild(i.node))>-1&&l.updateNodeAt(e,o,a,d,t)||l.updateNextNode(e,o,a,t,c,r)||l.addNode(e,o,a,t,r),r+=e.nodeSize}),l.syncToMarks([],n,t,0),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||2==this.dirty)&&(a&&this.protectLocalComposition(t,a),ft(this.contentDOM,this.children,t),T&&function(t){if("UL"==t.nodeName||"OL"==t.nodeName){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}(this.dom))}localCompositionInfo(t,e){let{from:n,to:o}=t.state.selection;if(!(t.state.selection instanceof r.U3)||n<e||o>e+this.node.content.size)return null;let i=t.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let t=i.nodeValue,r=function(t,e,n,r){for(let o=0,i=0;o<t.childCount&&i<=r;){let a=t.child(o++),s=i;if(i+=a.nodeSize,!a.isText)continue;let l=a.text;for(;o<t.childCount;){let e=t.child(o++);if(i+=e.nodeSize,!e.isText)break;l+=e.text}if(i>=n){if(i>=r&&l.slice(r-e.length-s,r-s)==e)return r-e.length;let t=s<r?l.lastIndexOf(e,r-s-1):-1;if(t>=0&&t+e.length+s>=n)return s+t;if(n==r&&l.length>=r+e.length-s&&l.slice(r-s,r-s+e.length)==e)return r}}return-1}(this.node.content,t,n-e,o-e);return r<0?null:{node:i,pos:r,text:t}}return{node:i,pos:-1,text:""}}protectLocalComposition(t,{node:e,pos:n,text:r}){if(this.getDesc(e))return;let o=e;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let i=new st(this,o,e,r);t.input.compositionNodes.push(i),this.children=Ct(this.children,n,n+r.length,t,i)}update(t,e,n,r){return!(3==this.dirty||!t.sameMarkup(this.node))&&(this.updateInner(t,e,n,r),!0)}updateInner(t,e,n,r){this.updateOuterDeco(e),this.node=t,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=0}updateOuterDeco(t){if(xt(t,this.outerDeco))return;let e=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=yt(this.dom,this.nodeDOM,bt(this.outerDeco,this.node,e),bt(t,this.node,e)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){1==this.nodeDOM.nodeType&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.nodeDOM.draggable=!0))}deselectNode(){1==this.nodeDOM.nodeType&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function dt(t,e,n,r,o){At(r,e,t);let i=new ct(void 0,t,e,n,r,r,r,o,0);return i.contentDOM&&i.updateChildren(o,0),i}class pt extends ct{constructor(t,e,n,r,o,i,a){super(t,e,n,r,o,null,i,a,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,e,n,r){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!t.sameMarkup(this.node))&&(this.updateOuterDeco(e),0==this.dirty&&t.text==this.node.text||t.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=t.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=t,this.dirty=0,!0)}inParent(){let t=this.parent.contentDOM;for(let e=this.nodeDOM;e;e=e.parentNode)if(e==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,e,n){return t==this.nodeDOM?this.posAtStart+Math.min(e,this.node.text.length):super.localPosFromDOM(t,e,n)}ignoreMutation(t){return"characterData"!=t.type&&"selection"!=t.type}slice(t,e,n){let r=this.node.cut(t,e),o=document.createTextNode(r.text);return new pt(this.parent,r,this.outerDeco,this.innerDeco,o,o,n)}markDirty(t,e){super.markDirty(t,e),this.dom==this.nodeDOM||0!=t&&e!=this.nodeDOM.nodeValue.length||(this.dirty=3)}get domAtom(){return!1}isText(t){return this.node.text==t}}class ht extends it{parseRule(){return{ignore:!0}}matchesHack(t){return 0==this.dirty&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class ut extends ct{constructor(t,e,n,r,o,i,a,s,l,c){super(t,e,n,r,o,i,a,l,c),this.spec=s}update(t,e,n,r){if(3==this.dirty)return!1;if(this.spec.update&&(this.node.type==t.type||this.spec.multiType)){let o=this.spec.update(t,e,n);return o&&this.updateInner(t,e,n,r),o}return!(!this.contentDOM&&!t.isLeaf)&&super.update(t,e,n,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,e,n,r){this.spec.setSelection?this.spec.setSelection(t,e,n.root):super.setSelection(t,e,n,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return!!this.spec.stopEvent&&this.spec.stopEvent(t)}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function ft(t,e,n){let r=t.firstChild,o=!1;for(let i=0;i<e.length;i++){let a=e[i],s=a.dom;if(s.parentNode==t){for(;s!=r;)r=_t(r),o=!0;r=r.nextSibling}else o=!0,t.insertBefore(s,r);if(a instanceof lt){let e=r?r.previousSibling:t.lastChild;ft(a.contentDOM,a.children,n),r=e?e.nextSibling:t.firstChild}}for(;r;)r=_t(r),o=!0;o&&n.trackWrites==t&&(n.trackWrites=null)}const mt=function(t){t&&(this.nodeName=t)};mt.prototype=Object.create(null);const gt=[new mt];function bt(t,e,n){if(0==t.length)return gt;let r=n?gt[0]:new mt,o=[r];for(let i=0;i<t.length;i++){let a=t[i].type.attrs;if(a){a.nodeName&&o.push(r=new mt(a.nodeName));for(let t in a){let i=a[t];null!=i&&(n&&1==o.length&&o.push(r=new mt(e.isInline?"span":"div")),"class"==t?r.class=(r.class?r.class+" ":"")+i:"style"==t?r.style=(r.style?r.style+";":"")+i:"nodeName"!=t&&(r[t]=i))}}}return o}function yt(t,e,n,r){if(n==gt&&r==gt)return e;let o=e;for(let e=0;e<r.length;e++){let i=r[e],a=n[e];if(e){let e;a&&a.nodeName==i.nodeName&&o!=t&&(e=o.parentNode)&&e.nodeName.toLowerCase()==i.nodeName||(e=document.createElement(i.nodeName),e.pmIsDeco=!0,e.appendChild(o),a=gt[0]),o=e}wt(o,a||gt[0],i)}return o}function wt(t,e,n){for(let r in e)"class"==r||"style"==r||"nodeName"==r||r in n||t.removeAttribute(r);for(let r in n)"class"!=r&&"style"!=r&&"nodeName"!=r&&n[r]!=e[r]&&t.setAttribute(r,n[r]);if(e.class!=n.class){let r=e.class?e.class.split(" ").filter(Boolean):[],o=n.class?n.class.split(" ").filter(Boolean):[];for(let e=0;e<r.length;e++)-1==o.indexOf(r[e])&&t.classList.remove(r[e]);for(let e=0;e<o.length;e++)-1==r.indexOf(o[e])&&t.classList.add(o[e]);0==t.classList.length&&t.removeAttribute("class")}if(e.style!=n.style){if(e.style){let n,r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g;for(;n=r.exec(e.style);)t.style.removeProperty(n[1])}n.style&&(t.style.cssText+=n.style)}}function At(t,e,n){return yt(t,t,gt,bt(e,n,1!=t.nodeType))}function xt(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].type.eq(e[n].type))return!1;return!0}function _t(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class vt{constructor(t,e,n){this.lock=e,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=t,this.preMatch=function(t,e){let n=e,r=n.children.length,o=t.childCount,i=new Map,a=[];t:for(;o>0;){let s;for(;;)if(r){let t=n.children[r-1];if(!(t instanceof lt)){s=t,r--;break}n=t,r=t.children.length}else{if(n==e)break t;r=n.parent.children.indexOf(n),n=n.parent}let l=s.node;if(l){if(l!=t.child(o-1))break;--o,i.set(s,o),a.push(s)}}return{index:o,matched:i,matches:a.reverse()}}(t.node.content,t)}destroyBetween(t,e){if(t!=e){for(let n=t;n<e;n++)this.top.children[n].destroy();this.top.children.splice(t,e-t),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(t,e,n,r){let o=0,i=this.stack.length>>1,a=Math.min(i,t.length);for(;o<a&&(o==i-1?this.top:this.stack[o+1<<1]).matchesMark(t[o])&&!1!==t[o].type.spec.spanning;)o++;for(;o<i;)this.destroyRest(),this.top.dirty=0,this.index=this.stack.pop(),this.top=this.stack.pop(),i--;for(;i<t.length;){this.stack.push(this.top,this.index+1);let o=-1,a=this.top.children.length;r<this.preMatch.index&&(a=Math.min(this.index+3,a));for(let e=this.index;e<a;e++){let n=this.top.children[e];if(n.matchesMark(t[i])&&!this.isLocked(n.dom)){o=e;break}}if(o>-1)o>this.index&&(this.changed=!0,this.destroyBetween(this.index,o)),this.top=this.top.children[this.index];else{let r=lt.create(this.top,t[i],e,n);this.top.children.splice(this.index,0,r),this.top=r,this.changed=!0}this.index=0,i++}}findNodeMatch(t,e,n,r){let o,i=-1;if(r>=this.preMatch.index&&(o=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&o.matchesNode(t,e,n))i=this.top.children.indexOf(o,this.index);else for(let r=this.index,o=Math.min(this.top.children.length,r+5);r<o;r++){let o=this.top.children[r];if(o.matchesNode(t,e,n)&&!this.preMatch.matched.has(o)){i=r;break}}return!(i<0)&&(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(t,e,n,r,o){let i=this.top.children[r];return 3==i.dirty&&i.dom==i.contentDOM&&(i.dirty=2),!!i.update(t,e,n,o)&&(this.destroyBetween(this.index,r),this.index++,!0)}findIndexWithChild(t){for(;;){let e=t.parentNode;if(!e)return-1;if(e==this.top.contentDOM){let e=t.pmViewDesc;if(e)for(let t=this.index;t<this.top.children.length;t++)if(this.top.children[t]==e)return t;return-1}t=e}}updateNextNode(t,e,n,r,o,i){for(let a=this.index;a<this.top.children.length;a++){let s=this.top.children[a];if(s instanceof ct){let l=this.preMatch.matched.get(s);if(null!=l&&l!=o)return!1;let c,d=s.dom,p=this.isLocked(d)&&!(t.isText&&s.node&&s.node.isText&&s.nodeDOM.nodeValue==t.text&&3!=s.dirty&&xt(e,s.outerDeco));if(!p&&s.update(t,e,n,r))return this.destroyBetween(this.index,a),s.dom!=d&&(this.changed=!0),this.index++,!0;if(!p&&(c=this.recreateWrapper(s,t,e,n,r,i)))return this.destroyBetween(this.index,a),this.top.children[this.index]=c,c.contentDOM&&(c.dirty=2,c.updateChildren(r,i+1),c.dirty=0),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(t,e,n,r,o,i){if(t.dirty||e.isAtom||!t.children.length||!t.node.content.eq(e.content)||!xt(n,t.outerDeco)||!r.eq(t.innerDeco))return null;let a=ct.create(this.top,e,n,r,o,i);if(a.contentDOM){a.children=t.children,t.children=[];for(let t of a.children)t.parent=a}return t.destroy(),a}addNode(t,e,n,r,o){let i=ct.create(this.top,t,e,n,r,o);i.contentDOM&&i.updateChildren(r,o+1),this.top.children.splice(this.index++,0,i),this.changed=!0}placeWidget(t,e,n){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(!r||!r.matchesWidget(t)||t!=r.widget&&r.widget.type.toDOM.parentNode){let r=new at(this.top,t,e,n);this.top.children.splice(this.index++,0,r),this.changed=!0}else this.index++}addTextblockHacks(){let t=this.top.children[this.index-1],e=this.top;for(;t instanceof lt;)e=t,t=e.children[e.children.length-1];(!t||!(t instanceof pt)||/\n$/.test(t.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(t.node.text))&&((B||S)&&t&&"false"==t.dom.contentEditable&&this.addHackNode("IMG",e),this.addHackNode("BR",this.top))}addHackNode(t,e){if(e==this.top&&this.index<e.children.length&&e.children[this.index].matchesHack(t))this.index++;else{let n=document.createElement(t);"IMG"==t&&(n.className="ProseMirror-separator",n.alt=""),"BR"==t&&(n.className="ProseMirror-trailingBreak");let r=new ht(this.top,[],n,null);e!=this.top?e.children.push(r):e.children.splice(this.index++,0,r),this.changed=!0}}isLocked(t){return this.lock&&(t==this.lock||1==t.nodeType&&t.contains(this.lock.parentNode))}}function kt(t,e){return t.type.side-e.type.side}function Ct(t,e,n,r,o){let i=[];for(let a=0,s=0;a<t.length;a++){let l=t[a],c=s,d=s+=l.size;c>=n||d<=e?i.push(l):(c<e&&i.push(l.slice(0,e-c,r)),o&&(i.push(o),o=void 0),d>n&&i.push(l.slice(n-c,l.size,r)))}return i}function Et(t,e=null){let n=t.domSelectionRange(),o=t.state.doc;if(!n.focusNode)return null;let i=t.docView.nearestDesc(n.focusNode),s=i&&0==i.size,l=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(l<0)return null;let c,d,p=o.resolve(l);if(m(n)){for(c=l;i&&!i.node;)i=i.parent;let t=i.node;if(i&&t.isAtom&&r.nh.isSelectable(t)&&i.parent&&(!t.isInline||!function(t,e,n){for(let r=0==e,o=e==u(t);r||o;){if(t==n)return!0;let e=a(t);if(!(t=t.parentNode))return!1;r=r&&0==e,o=o&&e==u(t)}}(n.focusNode,n.focusOffset,i.dom))){let t=i.posBefore;d=new r.nh(l==t?p:o.resolve(t))}}else{if(n instanceof t.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let e=l,r=l;for(let o=0;o<n.rangeCount;o++){let i=n.getRangeAt(o);e=Math.min(e,t.docView.posFromDOM(i.startContainer,i.startOffset,1)),r=Math.max(r,t.docView.posFromDOM(i.endContainer,i.endOffset,-1))}if(e<0)return null;[c,l]=r==t.state.selection.anchor?[r,e]:[e,r],p=o.resolve(l)}else c=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(c<0)return null}let h=o.resolve(c);if(!d){d=Rt(t,h,p,"pointer"==e||t.state.selection.head<p.pos&&!s?1:-1)}return d}function St(t){return t.editable?t.hasFocus():Ht(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function Mt(t,e=!1){let n=t.state.selection;if(It(t,n),St(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&S){let e=t.domSelectionRange(),n=t.domObserver.currentSelection;if(e.anchorNode&&n.anchorNode&&d(e.anchorNode,e.anchorOffset,n.anchorNode,n.anchorOffset))return t.input.mouseDown.delayedSelectionSync=!0,void t.domObserver.setCurSelection()}if(t.domObserver.disconnectSelection(),t.cursorWrapper)!function(t){let e=t.domSelection();if(!e)return;let n=t.cursorWrapper.dom,r="IMG"==n.nodeName;r?e.collapse(n.parentNode,a(n)+1):e.collapse(n,0);!r&&!t.state.selection.visible&&v&&k<=11&&(n.disabled=!0,n.disabled=!1)}(t);else{let o,i,{anchor:a,head:s}=n;!Bt||n instanceof r.U3||(n.$from.parent.inlineContent||(o=Tt(t,n.from)),n.empty||n.$from.parent.inlineContent||(i=Tt(t,n.to))),t.docView.setSelection(a,s,t,e),Bt&&(o&&Ot(o),i&&Ot(i)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&function(t){let e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let n=t.domSelectionRange(),r=n.anchorNode,o=n.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{n.anchorNode==r&&n.anchorOffset==o||(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{St(t)&&!t.state.selection.visible||t.dom.classList.remove("ProseMirror-hideselection")},20))})}(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const Bt=B||S&&M<63;function Tt(t,e){let{node:n,offset:r}=t.docView.domFromPos(e,0),o=r<n.childNodes.length?n.childNodes[r]:null,i=r?n.childNodes[r-1]:null;if(B&&o&&"false"==o.contentEditable)return Lt(o);if(!(o&&"false"!=o.contentEditable||i&&"false"!=i.contentEditable)){if(o)return Lt(o);if(i)return Lt(i)}}function Lt(t){return t.contentEditable="true",B&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function Ot(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function It(t,e){if(e instanceof r.nh){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(Nt(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else Nt(t)}function Nt(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function Rt(t,e,n,o){return t.someProp("createSelectionBetween",r=>r(t,e,n))||r.U3.between(e,n,o)}function zt(t){return!(t.editable&&!t.hasFocus())&&Ht(t)}function Ht(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(3==e.anchorNode.nodeType?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(3==e.focusNode.nodeType?e.focusNode.parentNode:e.focusNode))}catch(t){return!1}}function Pt(t,e){let{$anchor:n,$head:o}=t.selection,i=e>0?n.max(o):n.min(o),a=i.parent.inlineContent?i.depth?t.doc.resolve(e>0?i.after():i.before()):null:i;return a&&r.LN.findFrom(a,e)}function Dt(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function $t(t,e,n){let o=t.state.selection;if(!(o instanceof r.U3)){if(o instanceof r.nh&&o.node.isInline)return Dt(t,new r.U3(e>0?o.$to:o.$from));{let n=Pt(t.state,e);return!!n&&Dt(t,n)}}if(n.indexOf("s")>-1){let{$head:n}=o,i=n.textOffset?null:e<0?n.nodeBefore:n.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let a=t.state.doc.resolve(n.pos+i.nodeSize*(e<0?-1:1));return Dt(t,new r.U3(o.$anchor,a))}if(!o.empty)return!1;if(t.endOfTextblock(e>0?"forward":"backward")){let n=Pt(t.state,e);return!!(n&&n instanceof r.nh)&&Dt(t,n)}if(!(L&&n.indexOf("m")>-1)){let n,i=o.$head,a=i.textOffset?null:e<0?i.nodeBefore:i.nodeAfter;if(!a||a.isText)return!1;let s=e<0?i.pos-a.nodeSize:i.pos;return!!(a.isAtom||(n=t.docView.descAt(s))&&!n.contentDOM)&&(r.nh.isSelectable(a)?Dt(t,new r.nh(e<0?t.state.doc.resolve(i.pos-a.nodeSize):i)):!!N&&Dt(t,new r.U3(t.state.doc.resolve(e<0?s:s+a.nodeSize))))}}function jt(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}function Ft(t,e){let n=t.pmViewDesc;return n&&0==n.size&&(e<0||t.nextSibling||"BR"!=t.nodeName)}function Ut(t,e){return e<0?function(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let o,i,s=!1;C&&1==n.nodeType&&r<jt(n)&&Ft(n.childNodes[r],-1)&&(s=!0);for(;;)if(r>0){if(1!=n.nodeType)break;{let t=n.childNodes[r-1];if(Ft(t,-1))o=n,i=--r;else{if(3!=t.nodeType)break;n=t,r=n.nodeValue.length}}}else{if(qt(n))break;{let e=n.previousSibling;for(;e&&Ft(e,-1);)o=n.parentNode,i=a(e),e=e.previousSibling;if(e)n=e,r=jt(n);else{if(n=n.parentNode,n==t.dom)break;r=0}}}s?Wt(t,n,r):o&&Wt(t,o,i)}(t):function(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let o,i,s=jt(n);for(;;)if(r<s){if(1!=n.nodeType)break;if(!Ft(n.childNodes[r],1))break;o=n,i=++r}else{if(qt(n))break;{let e=n.nextSibling;for(;e&&Ft(e,1);)o=e.parentNode,i=a(e)+1,e=e.nextSibling;if(e)n=e,r=0,s=jt(n);else{if(n=n.parentNode,n==t.dom)break;r=s=0}}}o&&Wt(t,o,i)}(t)}function qt(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function Wt(t,e,n){if(3!=e.nodeType){let t,r;(r=function(t,e){for(;t&&e==t.childNodes.length&&!f(t);)e=a(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){let n=t.childNodes[e];if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;t=n,e=0}}(e,n))?(e=r,n=0):(t=function(t,e){for(;t&&!e&&!f(t);)e=a(t),t=t.parentNode;for(;t&&e;){let n=t.childNodes[e-1];if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;e=(t=n).childNodes.length}}(e,n))&&(e=t,n=t.nodeValue.length)}let r=t.domSelection();if(!r)return;if(m(r)){let t=document.createRange();t.setEnd(e,n),t.setStart(e,n),r.removeAllRanges(),r.addRange(t)}else r.extend&&r.extend(e,n);t.domObserver.setCurSelection();let{state:o}=t;setTimeout(()=>{t.state==o&&Mt(t)},50)}function Vt(t,e){let n=t.state.doc.resolve(e);if(!S&&!O&&n.parent.inlineContent){let r=t.coordsAtPos(e);if(e>n.start()){let n=t.coordsAtPos(e-1),o=(n.top+n.bottom)/2;if(o>r.top&&o<r.bottom&&Math.abs(n.left-r.left)>1)return n.left<r.left?"ltr":"rtl"}if(e<n.end()){let n=t.coordsAtPos(e+1),o=(n.top+n.bottom)/2;if(o>r.top&&o<r.bottom&&Math.abs(n.left-r.left)>1)return n.left>r.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(t.dom).direction?"rtl":"ltr"}function Yt(t,e,n){let o=t.state.selection;if(o instanceof r.U3&&!o.empty||n.indexOf("s")>-1)return!1;if(L&&n.indexOf("m")>-1)return!1;let{$from:i,$to:a}=o;if(!i.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let n=Pt(t.state,e);if(n&&n instanceof r.nh)return Dt(t,n)}if(!i.parent.inlineContent){let n=e<0?i:a,s=o instanceof r.i5?r.LN.near(n,e):r.LN.findFrom(n,e);return!!s&&Dt(t,s)}return!1}function Xt(t,e){if(!(t.state.selection instanceof r.U3))return!0;let{$head:n,$anchor:o,empty:i}=t.state.selection;if(!n.sameParent(o))return!0;if(!i)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let a=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(a&&!a.isText){let r=t.state.tr;return e<0?r.delete(n.pos-a.nodeSize,n.pos):r.delete(n.pos,n.pos+a.nodeSize),t.dispatch(r),!0}return!1}function Zt(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function Kt(t,e){let n=e.keyCode,r=function(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}(e);if(8==n||L&&72==n&&"c"==r)return Xt(t,-1)||Ut(t,-1);if(46==n&&!e.shiftKey||L&&68==n&&"c"==r)return Xt(t,1)||Ut(t,1);if(13==n||27==n)return!0;if(37==n||L&&66==n&&"c"==r){let e=37==n?"ltr"==Vt(t,t.state.selection.from)?-1:1:-1;return $t(t,e,r)||Ut(t,e)}if(39==n||L&&70==n&&"c"==r){let e=39==n?"ltr"==Vt(t,t.state.selection.from)?1:-1:1;return $t(t,e,r)||Ut(t,e)}return 38==n||L&&80==n&&"c"==r?Yt(t,-1,r)||Ut(t,-1):40==n||L&&78==n&&"c"==r?function(t){if(!B||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&1==e.nodeType&&0==n&&e.firstChild&&"false"==e.firstChild.contentEditable){let n=e.firstChild;Zt(t,n,"true"),setTimeout(()=>Zt(t,n,"false"),20)}return!1}(t)||Yt(t,1,r)||Ut(t,1):r==(L?"m":"c")&&(66==n||73==n||89==n||90==n)}function Jt(t,e){t.someProp("transformCopied",n=>{e=n(e,t)});let n=[],{content:r,openStart:i,openEnd:a}=e;for(;i>1&&a>1&&1==r.childCount&&1==r.firstChild.childCount;){i--,a--;let t=r.firstChild;n.push(t.type.name,t.attrs!=t.type.defaultAttrs?t.attrs:null),r=t.content}let s=t.someProp("clipboardSerializer")||o.ZF.fromSchema(t.state.schema),l=se(),c=l.createElement("div");c.appendChild(s.serializeFragment(r,{document:l}));let d,p=c.firstChild,h=0;for(;p&&1==p.nodeType&&(d=ie[p.nodeName.toLowerCase()]);){for(let t=d.length-1;t>=0;t--){let e=l.createElement(d[t]);for(;c.firstChild;)e.appendChild(c.firstChild);c.appendChild(e),h++}p=c.firstChild}return p&&1==p.nodeType&&p.setAttribute("data-pm-slice",`${i} ${a}${h?` -${h}`:""} ${JSON.stringify(n)}`),{dom:c,text:t.someProp("clipboardTextSerializer",n=>n(e,t))||e.content.textBetween(0,e.content.size,"\n\n"),slice:e}}function Gt(t,e,n,r,i){let a,s,l=i.parent.type.spec.code;if(!n&&!e)return null;let c=!!e&&(r||l||!n);if(c){if(t.someProp("transformPastedText",n=>{e=n(e,l||r,t)}),l)return s=new o.Ji(o.FK.from(t.state.schema.text(e.replace(/\r\n?/g,"\n"))),0,0),t.someProp("transformPasted",e=>{s=e(s,t,!0)}),s;let n=t.someProp("clipboardTextParser",n=>n(e,i,r,t));if(n)s=n;else{let n=i.marks(),{schema:r}=t.state,s=o.ZF.fromSchema(r);a=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(t=>{let e=a.appendChild(document.createElement("p"));t&&e.appendChild(s.serializeNode(r.text(t,n)))})}}else t.someProp("transformPastedHTML",e=>{n=e(n,t)}),a=function(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n,r=se().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(t);(n=o&&ie[o[1].toLowerCase()])&&(t=n.map(t=>"<"+t+">").join("")+t+n.map(t=>"</"+t+">").reverse().join(""));if(r.innerHTML=function(t){let e=window.trustedTypes;if(!e)return t;le||(le=e.defaultPolicy||e.createPolicy("ProseMirrorClipboard",{createHTML:t=>t}));return le.createHTML(t)}(t),n)for(let t=0;t<n.length;t++)r=r.querySelector(n[t])||r;return r}(n),N&&function(t){let e=t.querySelectorAll(S?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<e.length;n++){let r=e[n];1==r.childNodes.length&&"ย "==r.textContent&&r.parentNode&&r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),r)}}(a);let d=a&&a.querySelector("[data-pm-slice]"),p=d&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(d.getAttribute("data-pm-slice")||"");if(p&&p[3])for(let t=+p[3];t>0;t--){let t=a.firstChild;for(;t&&1!=t.nodeType;)t=t.nextSibling;if(!t)break;a=t}if(!s){let e=t.someProp("clipboardParser")||t.someProp("domParser")||o.S4.fromSchema(t.state.schema);s=e.parseSlice(a,{preserveWhitespace:!(!c&&!p),context:i,ruleFromNode:t=>"BR"!=t.nodeName||t.nextSibling||!t.parentNode||Qt.test(t.parentNode.nodeName)?null:{ignore:!0}})}if(p)s=function(t,e){if(!t.size)return t;let n,r=t.content.firstChild.type.schema;try{n=JSON.parse(e)}catch(e){return t}let{content:i,openStart:a,openEnd:s}=t;for(let t=n.length-2;t>=0;t-=2){let e=r.nodes[n[t]];if(!e||e.hasRequiredAttrs())break;i=o.FK.from(e.create(n[t+1],i)),a++,s++}return new o.Ji(i,a,s)}(oe(s,+p[1],+p[2]),p[4]);else if(s=o.Ji.maxOpen(function(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let r,i=e.node(n).contentMatchAt(e.index(n)),a=[];if(t.forEach(t=>{if(!a)return;let e,n=i.findWrapping(t.type);if(!n)return a=null;if(e=a.length&&r.length&&ee(n,r,t,a[a.length-1],0))a[a.length-1]=e;else{a.length&&(a[a.length-1]=ne(a[a.length-1],r.length));let e=te(t,n);a.push(e),i=i.matchType(e.type),r=n}}),a)return o.FK.from(a)}return t}(s.content,i),!0),s.openStart||s.openEnd){let t=0,e=0;for(let e=s.content.firstChild;t<s.openStart&&!e.type.spec.isolating;t++,e=e.firstChild);for(let t=s.content.lastChild;e<s.openEnd&&!t.type.spec.isolating;e++,t=t.lastChild);s=oe(s,t,e)}return t.someProp("transformPasted",e=>{s=e(s,t,c)}),s}const Qt=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function te(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,o.FK.from(t));return t}function ee(t,e,n,r,i){if(i<t.length&&i<e.length&&t[i]==e[i]){let a=ee(t,e,n,r.lastChild,i+1);if(a)return r.copy(r.content.replaceChild(r.childCount-1,a));if(r.contentMatchAt(r.childCount).matchType(i==t.length-1?n.type:t[i+1]))return r.copy(r.content.append(o.FK.from(te(n,t,i+1))))}}function ne(t,e){if(0==e)return t;let n=t.content.replaceChild(t.childCount-1,ne(t.lastChild,e-1)),r=t.contentMatchAt(t.childCount).fillBefore(o.FK.empty,!0);return t.copy(n.append(r))}function re(t,e,n,r,i,a){let s=e<0?t.firstChild:t.lastChild,l=s.content;return t.childCount>1&&(a=0),i<r-1&&(l=re(l,e,n,r,i+1,a)),i>=n&&(l=e<0?s.contentMatchAt(0).fillBefore(l,a<=i).append(l):l.append(s.contentMatchAt(s.childCount).fillBefore(o.FK.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(l))}function oe(t,e,n){return e<t.openStart&&(t=new o.Ji(re(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new o.Ji(re(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const ie={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let ae=null;function se(){return ae||(ae=document.implementation.createHTMLDocument("title"))}let le=null;const ce={},de={},pe={touchstart:!0,touchmove:!0};class he{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function ue(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function fe(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=e=>me(t,e))})}function me(t,e){return t.someProp("handleDOMEvents",n=>{let r=n[e.type];return!!r&&(r(t,e)||e.defaultPrevented)})}function ge(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function be(t){return{left:t.clientX,top:t.clientY}}function ye(t,e,n,r,o){if(-1==r)return!1;let i=t.state.doc.resolve(r);for(let r=i.depth+1;r>0;r--)if(t.someProp(e,e=>r>i.depth?e(t,n,i.nodeAfter,i.before(r),o,!0):e(t,n,i.node(r),i.before(r),o,!1)))return!0;return!1}function we(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let r=t.state.tr.setSelection(e);"pointer"==n&&r.setMeta("pointer",!0),t.dispatch(r)}function Ae(t,e,n,o,i){return ye(t,"handleClickOn",e,n,o)||t.someProp("handleClick",n=>n(t,e,o))||(i?function(t,e){if(-1==e)return!1;let n,o,i=t.state.selection;i instanceof r.nh&&(n=i.node);let a=t.state.doc.resolve(e);for(let t=a.depth+1;t>0;t--){let e=t>a.depth?a.nodeAfter:a.node(t);if(r.nh.isSelectable(e)){o=n&&i.$from.depth>0&&t>=i.$from.depth&&a.before(i.$from.depth+1)==i.$from.pos?a.before(i.$from.depth):a.before(t);break}}return null!=o&&(we(t,r.nh.create(t.state.doc,o),"pointer"),!0)}(t,n):function(t,e){if(-1==e)return!1;let n=t.state.doc.resolve(e),o=n.nodeAfter;return!!(o&&o.isAtom&&r.nh.isSelectable(o))&&(we(t,new r.nh(n),"pointer"),!0)}(t,n))}function xe(t,e,n,r){return ye(t,"handleDoubleClickOn",e,n,r)||t.someProp("handleDoubleClick",n=>n(t,e,r))}function _e(t,e,n,o){return ye(t,"handleTripleClickOn",e,n,o)||t.someProp("handleTripleClick",n=>n(t,e,o))||function(t,e,n){if(0!=n.button)return!1;let o=t.state.doc;if(-1==e)return!!o.inlineContent&&(we(t,r.U3.create(o,0,o.content.size),"pointer"),!0);let i=o.resolve(e);for(let e=i.depth+1;e>0;e--){let n=e>i.depth?i.nodeAfter:i.node(e),a=i.before(e);if(n.inlineContent)we(t,r.U3.create(o,a+1,a+1+n.content.size),"pointer");else{if(!r.nh.isSelectable(n))continue;we(t,r.nh.create(o,a),"pointer")}return!0}}(t,n,o)}function ve(t){return Le(t)}de.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=16==n.keyCode||n.shiftKey,!Ee(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!I||!S||13!=n.keyCode))if(229!=n.keyCode&&t.domObserver.forceFlush(),!T||13!=n.keyCode||n.ctrlKey||n.altKey||n.metaKey)t.someProp("handleKeyDown",e=>e(t,n))||Kt(t,n)?n.preventDefault():ue(t,"key");else{let e=Date.now();t.input.lastIOSEnter=e,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==e&&(t.someProp("handleKeyDown",e=>e(t,g(13,"Enter"))),t.input.lastIOSEnter=0)},200)}},de.keyup=(t,e)=>{16==e.keyCode&&(t.input.shiftKey=!1)},de.keypress=(t,e)=>{let n=e;if(Ee(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||L&&n.metaKey)return;if(t.someProp("handleKeyPress",e=>e(t,n)))return void n.preventDefault();let o=t.state.selection;if(!(o instanceof r.U3&&o.$from.sameParent(o.$to))){let e=String.fromCharCode(n.charCode),r=()=>t.state.tr.insertText(e).scrollIntoView();/[\r\n]/.test(e)||t.someProp("handleTextInput",n=>n(t,o.$from.pos,o.$to.pos,e,r))||t.dispatch(r()),n.preventDefault()}};const ke=L?"metaKey":"ctrlKey";ce.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=ve(t),o=Date.now(),i="singleClick";o-t.input.lastClick.time<500&&function(t,e){let n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}(n,t.input.lastClick)&&!n[ke]&&t.input.lastClick.button==n.button&&("singleClick"==t.input.lastClick.type?i="doubleClick":"doubleClick"==t.input.lastClick.type&&(i="tripleClick")),t.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:i,button:n.button};let a=t.posAtCoords(be(n));a&&("singleClick"==i?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new Ce(t,a,n,!!r)):("doubleClick"==i?xe:_e)(t,a.pos,a.inside,n)?n.preventDefault():ue(t,"pointer"))};class Ce{constructor(t,e,n,o){let i,a;if(this.view=t,this.pos=e,this.event=n,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!n[ke],this.allowDefault=n.shiftKey,e.inside>-1)i=t.state.doc.nodeAt(e.inside),a=e.inside;else{let n=t.state.doc.resolve(e.pos);i=n.parent,a=n.depth?n.before():0}const s=o?null:n.target,l=s?t.docView.nearestDesc(s,!0):null;this.target=l&&1==l.nodeDOM.nodeType?l.nodeDOM:null;let{selection:c}=t.state;(0==n.button&&i.type.spec.draggable&&!1!==i.type.spec.selectable||c instanceof r.nh&&c.from<=a&&c.to>a)&&(this.mightDrag={node:i,pos:a,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!C||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),ue(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Mt(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let e=this.pos;this.view.state.doc!=this.startDoc&&(e=this.view.posAtCoords(be(t))),this.updateAllowDefault(t),this.allowDefault||!e?ue(this.view,"pointer"):Ae(this.view,e.pos,e.inside,t,this.selectNode)?t.preventDefault():0==t.button&&(this.flushed||B&&this.mightDrag&&!this.mightDrag.node.isAtom||S&&!this.view.state.selection.visible&&Math.min(Math.abs(e.pos-this.view.state.selection.from),Math.abs(e.pos-this.view.state.selection.to))<=2)?(we(this.view,r.LN.near(this.view.state.doc.resolve(e.pos)),"pointer"),t.preventDefault()):ue(this.view,"pointer")}move(t){this.updateAllowDefault(t),ue(this.view,"pointer"),0==t.buttons&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}function Ee(t,e){return!!t.composing||!!(B&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500)&&(t.input.compositionEndedAt=-2e8,!0)}ce.touchstart=t=>{t.input.lastTouch=Date.now(),ve(t),ue(t,"pointer")},ce.touchmove=t=>{t.input.lastTouch=Date.now(),ue(t,"pointer")},ce.contextmenu=t=>ve(t);const Se=I?5e3:-1;function Me(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>Le(t),e))}function Be(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=function(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function Te(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=function(t,e){for(;;){if(3==t.nodeType&&e)return t;if(1==t.nodeType&&e>0){if("false"==t.contentEditable)return null;e=u(t=t.childNodes[e-1])}else{if(!t.parentNode||f(t))return null;e=a(t),t=t.parentNode}}}(e.focusNode,e.focusOffset),r=function(t,e){for(;;){if(3==t.nodeType&&e<t.nodeValue.length)return t;if(1==t.nodeType&&e<t.childNodes.length){if("false"==t.contentEditable)return null;t=t.childNodes[e],e=0}else{if(!t.parentNode||f(t))return null;e=a(t)+1,t=t.parentNode}}}(e.focusNode,e.focusOffset);if(n&&r&&n!=r){let e=r.pmViewDesc,o=t.domObserver.lastChangedTextNode;if(n==o||r==o)return o;if(!e||!e.isText(r.nodeValue))return r;if(t.input.compositionNode==r){let t=n.pmViewDesc;if(t&&t.isText(n.nodeValue))return r}}return n||r}function Le(t,e=!1){if(!(I&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),Be(t),e||t.docView&&t.docView.dirty){let n=Et(t),r=t.state.selection;return n&&!n.eq(r)?t.dispatch(t.state.tr.setSelection(n)):!t.markCursor&&!e||r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?t.updateState(t.state):t.dispatch(t.state.tr.deleteSelection()),!0}return!1}}de.compositionstart=de.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof r.U3&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(t=>!1===t.type.spec.inclusive)||S&&O&&function(t){let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(!e||1!=e.nodeType||n>=e.childNodes.length)return!1;let r=e.childNodes[n];return 1==r.nodeType&&"false"==r.contentEditable}(t)))t.markCursor=t.state.storedMarks||n.marks(),Le(t,!0),t.markCursor=null;else if(Le(t,!e.selection.empty),C&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let e=t.domSelectionRange();for(let n=e.focusNode,r=e.focusOffset;n&&1==n.nodeType&&0!=r;){let e=r<0?n.lastChild:n.childNodes[r-1];if(!e)break;if(3==e.nodeType){let n=t.domSelection();n&&n.collapse(e,e.nodeValue.length);break}n=e,r=-1}}t.input.composing=!0}Me(t,Se)},de.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionNode=null,t.input.badSafariComposition?t.domObserver.forceFlush():t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,Me(t,20))};const Oe=v&&k<15||T&&R<604;function Ie(t,e,n,r,i){let a=Gt(t,e,n,r,t.state.selection.$from);if(t.someProp("handlePaste",e=>e(t,i,a||o.Ji.empty)))return!0;if(!a)return!1;let s=function(t){return 0==t.openStart&&0==t.openEnd&&1==t.content.childCount?t.content.firstChild:null}(a),l=s?t.state.tr.replaceSelectionWith(s,r):t.state.tr.replaceSelection(a);return t.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function Ne(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}ce.copy=de.cut=(t,e)=>{let n=e,r=t.state.selection,o="cut"==n.type;if(r.empty)return;let i=Oe?null:n.clipboardData,a=r.content(),{dom:s,text:l}=Jt(t,a);i?(n.preventDefault(),i.clearData(),i.setData("text/html",s.innerHTML),i.setData("text/plain",l)):function(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),o=document.createRange();o.selectNodeContents(e),t.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}(t,s),o&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},de.paste=(t,e)=>{let n=e;if(t.composing&&!I)return;let r=Oe?null:n.clipboardData,o=t.input.shiftKey&&45!=t.input.lastKeyCode;r&&Ie(t,Ne(r),r.getData("text/html"),o,n)?n.preventDefault():function(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,r=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let o=t.input.shiftKey&&45!=t.input.lastKeyCode;setTimeout(()=>{t.focus(),r.parentNode&&r.parentNode.removeChild(r),n?Ie(t,r.value,null,o,e):Ie(t,r.textContent,r.innerHTML,o,e)},50)}(t,n)};class Re{constructor(t,e,n){this.slice=t,this.move=e,this.node=n}}const ze=L?"altKey":"ctrlKey";function He(t,e){let n=t.someProp("dragCopies",t=>!t(e));return null!=n?n:!e[ze]}ce.dragstart=(t,e)=>{let n=e,o=t.input.mouseDown;if(o&&o.done(),!n.dataTransfer)return;let i,a=t.state.selection,s=a.empty?null:t.posAtCoords(be(n));if(s&&s.pos>=a.from&&s.pos<=(a instanceof r.nh?a.to-1:a.to));else if(o&&o.mightDrag)i=r.nh.create(t.state.doc,o.mightDrag.pos);else if(n.target&&1==n.target.nodeType){let e=t.docView.nearestDesc(n.target,!0);e&&e.node.type.spec.draggable&&e!=t.docView&&(i=r.nh.create(t.state.doc,e.posBefore))}let l=(i||t.state.selection).content(),{dom:c,text:d,slice:p}=Jt(t,l);(!n.dataTransfer.files.length||!S||M>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Oe?"Text":"text/html",c.innerHTML),n.dataTransfer.effectAllowed="copyMove",Oe||n.dataTransfer.setData("text/plain",d),t.dragging=new Re(p,He(t,n),i)},ce.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)},de.dragover=de.dragenter=(t,e)=>e.preventDefault(),de.drop=(t,e)=>{try{!function(t,e,n){if(!e.dataTransfer)return;let a=t.posAtCoords(be(e));if(!a)return;let s=t.state.doc.resolve(a.pos),l=n&&n.slice;l?t.someProp("transformPasted",e=>{l=e(l,t,!1)}):l=Gt(t,Ne(e.dataTransfer),Oe?null:e.dataTransfer.getData("text/html"),!1,s);let c=!(!n||!He(t,e));if(t.someProp("handleDrop",n=>n(t,e,l||o.Ji.empty,c)))return void e.preventDefault();if(!l)return;e.preventDefault();let d=l?(0,i.Um)(t.state.doc,s.pos,l):s.pos;null==d&&(d=s.pos);let p=t.state.tr;if(c){let{node:t}=n;t?t.replace(p):p.deleteSelection()}let h=p.mapping.map(d),u=0==l.openStart&&0==l.openEnd&&1==l.content.childCount,f=p.doc;u?p.replaceRangeWith(h,h,l.content.firstChild):p.replaceRange(h,h,l);if(p.doc.eq(f))return;let m=p.doc.resolve(h);if(u&&r.nh.isSelectable(l.content.firstChild)&&m.nodeAfter&&m.nodeAfter.sameMarkup(l.content.firstChild))p.setSelection(new r.nh(m));else{let e=p.mapping.map(d);p.mapping.maps[p.mapping.maps.length-1].forEach((t,n,r,o)=>e=o),p.setSelection(Rt(t,m,p.doc.resolve(e)))}t.focus(),t.dispatch(p.setMeta("uiEvent","drop"))}(t,e,t.dragging)}finally{t.dragging=null}},ce.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&Mt(t)},20))},ce.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)},ce.beforeinput=(t,e)=>{if(S&&I&&"deleteContentBackward"==e.inputType){t.domObserver.flushSoon();let{domChangeCount:e}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=e)return;if(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",e=>e(t,g(8,"Backspace"))))return;let{$cursor:n}=t.state.selection;n&&n.pos>0&&t.dispatch(t.state.tr.delete(n.pos-1,n.pos).scrollIntoView())},50)}};for(let t in de)ce[t]=de[t];function Pe(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class De{constructor(t,e){this.toDOM=t,this.spec=e||qe,this.side=this.spec.side||0}map(t,e,n,r){let{pos:o,deleted:i}=t.mapResult(e.from+r,this.side<0?-1:1);return i?null:new Fe(o-n,o-n,this)}valid(){return!0}eq(t){return this==t||t instanceof De&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&Pe(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class $e{constructor(t,e){this.attrs=t,this.spec=e||qe}map(t,e,n,r){let o=t.map(e.from+r,this.spec.inclusiveStart?-1:1)-n,i=t.map(e.to+r,this.spec.inclusiveEnd?1:-1)-n;return o>=i?null:new Fe(o,i,this)}valid(t,e){return e.from<e.to}eq(t){return this==t||t instanceof $e&&Pe(this.attrs,t.attrs)&&Pe(this.spec,t.spec)}static is(t){return t.type instanceof $e}destroy(){}}class je{constructor(t,e){this.attrs=t,this.spec=e||qe}map(t,e,n,r){let o=t.mapResult(e.from+r,1);if(o.deleted)return null;let i=t.mapResult(e.to+r,-1);return i.deleted||i.pos<=o.pos?null:new Fe(o.pos-n,i.pos-n,this)}valid(t,e){let n,{index:r,offset:o}=t.content.findIndex(e.from);return o==e.from&&!(n=t.child(r)).isText&&o+n.nodeSize==e.to}eq(t){return this==t||t instanceof je&&Pe(this.attrs,t.attrs)&&Pe(this.spec,t.spec)}destroy(){}}class Fe{constructor(t,e,n){this.from=t,this.to=e,this.type=n}copy(t,e){return new Fe(t,e,this.type)}eq(t,e=0){return this.type.eq(t.type)&&this.from+e==t.from&&this.to+e==t.to}map(t,e,n){return this.type.map(t,this,e,n)}static widget(t,e,n){return new Fe(t,t,new De(e,n))}static inline(t,e,n,r){return new Fe(t,e,new $e(n,r))}static node(t,e,n,r){return new Fe(t,e,new je(n,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof $e}get widget(){return this.type instanceof De}}const Ue=[],qe={};class We{constructor(t,e){this.local=t.length?t:Ue,this.children=e.length?e:Ue}static create(t,e){return e.length?Je(e,t,0,qe):Ve}find(t,e,n){let r=[];return this.findInner(null==t?0:t,null==e?1e9:e,r,0,n),r}findInner(t,e,n,r,o){for(let i=0;i<this.local.length;i++){let a=this.local[i];a.from<=e&&a.to>=t&&(!o||o(a.spec))&&n.push(a.copy(a.from+r,a.to+r))}for(let i=0;i<this.children.length;i+=3)if(this.children[i]<e&&this.children[i+1]>t){let a=this.children[i]+1;this.children[i+2].findInner(t-a,e-a,n,r+a,o)}}map(t,e,n){return this==Ve||0==t.maps.length?this:this.mapInner(t,e,0,0,n||qe)}mapInner(t,e,n,r,o){let i;for(let a=0;a<this.local.length;a++){let s=this.local[a].map(t,n,r);s&&s.type.valid(e,s)?(i||(i=[])).push(s):o.onRemove&&o.onRemove(this.local[a].spec)}return this.children.length?function(t,e,n,r,o,i,a){let s=t.slice();for(let t=0,e=i;t<n.maps.length;t++){let r=0;n.maps[t].forEach((t,n,o,i)=>{let a=i-o-(n-t);for(let o=0;o<s.length;o+=3){let i=s[o+1];if(i<0||t>i+e-r)continue;let l=s[o]+e-r;n>=l?s[o+1]=t<=l?-2:-1:t>=e&&a&&(s[o]+=a,s[o+1]+=a)}r+=a}),e=n.maps[t].map(e,-1)}let l=!1;for(let e=0;e<s.length;e+=3)if(s[e+1]<0){if(-2==s[e+1]){l=!0,s[e+1]=-1;continue}let c=n.map(t[e]+i),d=c-o;if(d<0||d>=r.content.size){l=!0;continue}let p=n.map(t[e+1]+i,-1)-o,{index:h,offset:u}=r.content.findIndex(d),f=r.maybeChild(h);if(f&&u==d&&u+f.nodeSize==p){let r=s[e+2].mapInner(n,f,c+1,t[e]+i+1,a);r!=Ve?(s[e]=d,s[e+1]=p,s[e+2]=r):(s[e+1]=-2,l=!0)}else l=!0}if(l){let l=function(t,e,n,r,o,i,a){function s(t,e){for(let i=0;i<t.local.length;i++){let s=t.local[i].map(r,o,e);s?n.push(s):a.onRemove&&a.onRemove(t.local[i].spec)}for(let n=0;n<t.children.length;n+=3)s(t.children[n+2],t.children[n]+e+1)}for(let n=0;n<t.length;n+=3)-1==t[n+1]&&s(t[n+2],e[n]+i+1);return n}(s,t,e,n,o,i,a),c=Je(l,r,0,a);e=c.local;for(let t=0;t<s.length;t+=3)s[t+1]<0&&(s.splice(t,3),t-=3);for(let t=0,e=0;t<c.children.length;t+=3){let n=c.children[t];for(;e<s.length&&s[e]<n;)e+=3;s.splice(e,0,c.children[t],c.children[t+1],c.children[t+2])}}return new We(e.sort(Ge),s)}(this.children,i||[],t,e,n,r,o):i?new We(i.sort(Ge),Ue):Ve}add(t,e){return e.length?this==Ve?We.create(t,e):this.addInner(t,e,0):this}addInner(t,e,n){let r,o=0;t.forEach((t,i)=>{let a,s=i+n;if(a=Ze(e,t,s)){for(r||(r=this.children.slice());o<r.length&&r[o]<i;)o+=3;r[o]==i?r[o+2]=r[o+2].addInner(t,a,s+1):r.splice(o,0,i,i+t.nodeSize,Je(a,t,s+1,qe)),o+=3}});let i=Xe(o?Ke(e):e,-n);for(let e=0;e<i.length;e++)i[e].type.valid(t,i[e])||i.splice(e--,1);return new We(i.length?this.local.concat(i).sort(Ge):this.local,r||this.children)}remove(t){return 0==t.length||this==Ve?this:this.removeInner(t,0)}removeInner(t,e){let n=this.children,r=this.local;for(let r=0;r<n.length;r+=3){let o,i=n[r]+e,a=n[r+1]+e;for(let e,n=0;n<t.length;n++)(e=t[n])&&e.from>i&&e.to<a&&(t[n]=null,(o||(o=[])).push(e));if(!o)continue;n==this.children&&(n=this.children.slice());let s=n[r+2].removeInner(o,i+1);s!=Ve?n[r+2]=s:(n.splice(r,3),r-=3)}if(r.length)for(let n,o=0;o<t.length;o++)if(n=t[o])for(let t=0;t<r.length;t++)r[t].eq(n,e)&&(r==this.local&&(r=this.local.slice()),r.splice(t--,1));return n==this.children&&r==this.local?this:r.length||n.length?new We(r,n):Ve}forChild(t,e){if(this==Ve)return this;if(e.isLeaf)return We.empty;let n,r;for(let e=0;e<this.children.length;e+=3)if(this.children[e]>=t){this.children[e]==t&&(n=this.children[e+2]);break}let o=t+1,i=o+e.content.size;for(let t=0;t<this.local.length;t++){let e=this.local[t];if(e.from<i&&e.to>o&&e.type instanceof $e){let t=Math.max(o,e.from)-o,n=Math.min(i,e.to)-o;t<n&&(r||(r=[])).push(e.copy(t,n))}}if(r){let t=new We(r.sort(Ge),Ue);return n?new Ye([t,n]):t}return n||Ve}eq(t){if(this==t)return!0;if(!(t instanceof We)||this.local.length!=t.local.length||this.children.length!=t.children.length)return!1;for(let e=0;e<this.local.length;e++)if(!this.local[e].eq(t.local[e]))return!1;for(let e=0;e<this.children.length;e+=3)if(this.children[e]!=t.children[e]||this.children[e+1]!=t.children[e+1]||!this.children[e+2].eq(t.children[e+2]))return!1;return!0}locals(t){return Qe(this.localsInner(t))}localsInner(t){if(this==Ve)return Ue;if(t.inlineContent||!this.local.some($e.is))return this.local;let e=[];for(let t=0;t<this.local.length;t++)this.local[t].type instanceof $e||e.push(this.local[t]);return e}forEachSet(t){t(this)}}We.empty=new We([],[]),We.removeOverlap=Qe;const Ve=We.empty;class Ye{constructor(t){this.members=t}map(t,e){const n=this.members.map(n=>n.map(t,e,qe));return Ye.from(n)}forChild(t,e){if(e.isLeaf)return We.empty;let n=[];for(let r=0;r<this.members.length;r++){let o=this.members[r].forChild(t,e);o!=Ve&&(o instanceof Ye?n=n.concat(o.members):n.push(o))}return Ye.from(n)}eq(t){if(!(t instanceof Ye)||t.members.length!=this.members.length)return!1;for(let e=0;e<this.members.length;e++)if(!this.members[e].eq(t.members[e]))return!1;return!0}locals(t){let e,n=!0;for(let r=0;r<this.members.length;r++){let o=this.members[r].localsInner(t);if(o.length)if(e){n&&(e=e.slice(),n=!1);for(let t=0;t<o.length;t++)e.push(o[t])}else e=o}return e?Qe(n?e:e.sort(Ge)):Ue}static from(t){switch(t.length){case 0:return Ve;case 1:return t[0];default:return new Ye(t.every(t=>t instanceof We)?t:t.reduce((t,e)=>t.concat(e instanceof We?e:e.members),[]))}}forEachSet(t){for(let e=0;e<this.members.length;e++)this.members[e].forEachSet(t)}}function Xe(t,e){if(!e||!t.length)return t;let n=[];for(let r=0;r<t.length;r++){let o=t[r];n.push(new Fe(o.from+e,o.to+e,o.type))}return n}function Ze(t,e,n){if(e.isLeaf)return null;let r=n+e.nodeSize,o=null;for(let e,i=0;i<t.length;i++)(e=t[i])&&e.from>n&&e.to<r&&((o||(o=[])).push(e),t[i]=null);return o}function Ke(t){let e=[];for(let n=0;n<t.length;n++)null!=t[n]&&e.push(t[n]);return e}function Je(t,e,n,r){let o=[],i=!1;e.forEach((e,a)=>{let s=Ze(t,e,a+n);if(s){i=!0;let t=Je(s,e,n+a+1,r);t!=Ve&&o.push(a,a+e.nodeSize,t)}});let a=Xe(i?Ke(t):t,-n).sort(Ge);for(let t=0;t<a.length;t++)a[t].type.valid(e,a[t])||(r.onRemove&&r.onRemove(a[t].spec),a.splice(t--,1));return a.length||o.length?new We(a,o):Ve}function Ge(t,e){return t.from-e.from||t.to-e.to}function Qe(t){let e=t;for(let n=0;n<e.length-1;n++){let r=e[n];if(r.from!=r.to)for(let o=n+1;o<e.length;o++){let i=e[o];if(i.from!=r.from){i.from<r.to&&(e==t&&(e=t.slice()),e[n]=r.copy(r.from,i.from),tn(e,o,r.copy(i.from,r.to)));break}i.to!=r.to&&(e==t&&(e=t.slice()),e[o]=i.copy(i.from,r.to),tn(e,o+1,i.copy(r.to,i.to)))}}return e}function tn(t,e,n){for(;e<t.length&&Ge(n,t[e])>0;)e++;t.splice(e,0,n)}function en(t){let e=[];return t.someProp("decorations",n=>{let r=n(t.state);r&&r!=Ve&&e.push(r)}),t.cursorWrapper&&e.push(We.create(t.state.doc,[t.cursorWrapper.deco])),Ye.from(e)}const nn={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},rn=v&&k<=11;class on{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class an{constructor(t,e){this.view=t,this.handleDOMChange=e,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new on,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(e=>{for(let t=0;t<e.length;t++)this.queue.push(e[t]);v&&k<=11&&e.some(t=>"childList"==t.type&&t.removedNodes.length||"characterData"==t.type&&t.oldValue.length>t.target.nodeValue.length)?this.flushSoon():B&&t.composing&&e.some(t=>"childList"==t.type&&"TR"==t.target.nodeName)?(t.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),rn&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,nn)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let e=0;e<t.length;e++)this.queue.push(t[e]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(zt(this.view)){if(this.suppressingSelectionUpdates)return Mt(this.view);if(v&&k<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&d(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let e,n=new Set;for(let e=t.focusNode;e;e=s(e))n.add(e);for(let r=t.anchorNode;r;r=s(r))if(n.has(r)){e=r;break}let r=e&&this.view.docView.nearestDesc(e);return r&&r.ignoreMutation({type:"selection",target:3==e.nodeType?e.parentNode:e})?(this.setCurSelection(),!0):void 0}pendingRecords(){if(this.observer)for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let e=this.pendingRecords();e.length&&(this.queue=[]);let n=t.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&zt(t)&&!this.ignoreSelectionChange(n),i=-1,a=-1,s=!1,l=[];if(t.editable)for(let t=0;t<e.length;t++){let n=this.registerMutation(e[t],l);n&&(i=i<0?n.from:Math.min(n.from,i),a=a<0?n.to:Math.max(n.to,a),n.typeOver&&(s=!0))}if(!l.some(t=>"BR"==t.nodeName)||8!=t.input.lastKeyCode&&46!=t.input.lastKeyCode){if(C&&l.length){let e=l.filter(t=>"BR"==t.nodeName);if(2==e.length){let[t,n]=e;t.parentNode&&t.parentNode.parentNode==n.parentNode?n.remove():t.remove()}else{let{focusNode:n}=this.currentSelection;for(let r of e){let e=r.parentNode;!e||"LI"!=e.nodeName||n&&dn(t,n)==e||r.remove()}}}}else for(let t of l)if("BR"==t.nodeName&&t.parentNode){let e=t.nextSibling;for(;e&&1==e.nodeType;){if("false"==e.contentEditable){t.parentNode.removeChild(t);break}e=e.firstChild}}let c=null;i<0&&o&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)<Date.now()-300&&m(n)&&(c=Et(t))&&c.eq(r.LN.near(t.state.doc.resolve(0),1))?(t.input.lastFocus=0,Mt(t),this.currentSelection.set(n),t.scrollToSelection()):(i>-1||o)&&(i>-1&&(t.docView.markDirty(i,a),function(t){if(sn.has(t))return;if(sn.set(t,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)){if(t.requiresGeckoHackNode=C,ln)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),ln=!0}}(t)),t.input.badSafariComposition&&(t.input.badSafariComposition=!1,function(t,e){var n;let{focusNode:r,focusOffset:o}=t.domSelectionRange();for(let i of e)if("TR"==(null===(n=i.parentNode)||void 0===n?void 0:n.nodeName)){let e=i.nextSibling;for(;e&&"TD"!=e.nodeName&&"TH"!=e.nodeName;)e=e.nextSibling;if(e){let n=e;for(;;){let t=n.firstChild;if(!t||1!=t.nodeType||"false"==t.contentEditable||/^(BR|IMG)$/.test(t.nodeName))break;n=t}n.insertBefore(i,n.firstChild),r==i&&t.domSelection().collapse(i,o)}else i.parentNode.removeChild(i)}}(t,l)),this.handleDOMChange(i,a,s,l),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(n)||Mt(t),this.currentSelection.set(n))}registerMutation(t,e){if(e.indexOf(t.target)>-1)return null;let n=this.view.docView.nearestDesc(t.target);if("attributes"==t.type&&(n==this.view.docView||"contenteditable"==t.attributeName||"style"==t.attributeName&&!t.oldValue&&!t.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(t))return null;if("childList"==t.type){for(let n=0;n<t.addedNodes.length;n++){let r=t.addedNodes[n];e.push(r),3==r.nodeType&&(this.lastChangedTextNode=r)}if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(t.target))return{from:n.posBefore,to:n.posAfter};let r=t.previousSibling,o=t.nextSibling;if(v&&k<=11&&t.addedNodes.length)for(let e=0;e<t.addedNodes.length;e++){let{previousSibling:n,nextSibling:i}=t.addedNodes[e];(!n||Array.prototype.indexOf.call(t.addedNodes,n)<0)&&(r=n),(!i||Array.prototype.indexOf.call(t.addedNodes,i)<0)&&(o=i)}let i=r&&r.parentNode==t.target?a(r)+1:0,s=n.localPosFromDOM(t.target,i,-1),l=o&&o.parentNode==t.target?a(o):t.target.childNodes.length;return{from:s,to:n.localPosFromDOM(t.target,l,1)}}return"attributes"==t.type?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:(this.lastChangedTextNode=t.target,{from:n.posAtStart,to:n.posAtEnd,typeOver:t.target.nodeValue==t.oldValue})}}let sn=new WeakMap,ln=!1;function cn(t,e){let n=e.startContainer,r=e.startOffset,o=e.endContainer,i=e.endOffset,a=t.domAtPos(t.state.selection.anchor);return d(a.node,a.offset,o,i)&&([n,r,o,i]=[o,i,n,r]),{anchorNode:n,anchorOffset:r,focusNode:o,focusOffset:i}}function dn(t,e){for(let n=e.parentNode;n&&n!=t.dom;n=n.parentNode){let e=t.docView.nearestDesc(n,!0);if(e&&e.node.isBlock)return n}return null}function pn(t){let e=t.pmViewDesc;if(e)return e.parseRule();if("BR"==t.nodeName&&t.parentNode){if(B&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let t=document.createElement("div");return t.appendChild(document.createElement("li")),{skip:t}}if(t.parentNode.lastChild==t||B&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if("IMG"==t.nodeName&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const hn=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function un(t,e,n,i,a){let s=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let e=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,n=Et(t,e);if(n&&!t.state.selection.eq(n)){if(S&&I&&13===t.input.lastKeyCode&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",e=>e(t,g(13,"Enter"))))return;let r=t.state.tr.setSelection(n);"pointer"==e?r.setMeta("pointer",!0):"key"==e&&r.scrollIntoView(),s&&r.setMeta("composition",s),t.dispatch(r)}return}let l=t.state.doc.resolve(e),c=l.sharedDepth(n);e=l.before(c+1),n=t.state.doc.resolve(n).after(c+1);let d,p,h=t.state.selection,u=function(t,e,n){let r,{node:i,fromOffset:a,toOffset:s,from:l,to:c}=t.docView.parseRange(e,n),d=t.domSelectionRange(),p=d.anchorNode;if(p&&t.dom.contains(1==p.nodeType?p:p.parentNode)&&(r=[{node:p,offset:d.anchorOffset}],m(d)||r.push({node:d.focusNode,offset:d.focusOffset})),S&&8===t.input.lastKeyCode)for(let t=s;t>a;t--){let e=i.childNodes[t-1],n=e.pmViewDesc;if("BR"==e.nodeName&&!n){s=t;break}if(!n||n.size)break}let h=t.state.doc,u=t.someProp("domParser")||o.S4.fromSchema(t.state.schema),f=h.resolve(l),g=null,b=u.parse(i,{topNode:f.parent,topMatch:f.parent.contentMatchAt(f.index()),topOpen:!0,from:a,to:s,preserveWhitespace:"pre"!=f.parent.type.whitespace||"full",findPositions:r,ruleFromNode:pn,context:f});if(r&&null!=r[0].pos){let t=r[0].pos,e=r[1]&&r[1].pos;null==e&&(e=t),g={anchor:t+l,head:e+l}}return{doc:b,sel:g,from:l,to:c}}(t,e,n),f=t.state.doc,b=f.slice(u.from,u.to);8===t.input.lastKeyCode&&Date.now()-100<t.input.lastKeyCodeTime?(d=t.state.selection.to,p="end"):(d=t.state.selection.from,p="start"),t.input.lastKeyCode=null;let y=function(t,e,n,r,o){let i=t.findDiffStart(e,n);if(null==i)return null;let{a,b:s}=t.findDiffEnd(e,n+t.size,n+e.size);if("end"==o){r-=a+Math.max(0,i-Math.min(a,s))-i}if(a<i&&t.size<e.size){let t=r<=i&&r>=a?i-r:0;i-=t,i&&i<e.size&&gn(e.textBetween(i-1,i+1))&&(i+=t?1:-1),s=i+(s-a),a=i}else if(s<i){let e=r<=i&&r>=s?i-r:0;i-=e,i&&i<t.size&&gn(t.textBetween(i-1,i+1))&&(i+=e?1:-1),a=i+(a-s),s=i}return{start:i,endA:a,endB:s}}(b.content,u.doc.content,u.from,d,p);if(y&&t.input.domChangeCount++,(T&&t.input.lastIOSEnter>Date.now()-225||I)&&a.some(t=>1==t.nodeType&&!hn.test(t.nodeName))&&(!y||y.endA>=y.endB)&&t.someProp("handleKeyDown",e=>e(t,g(13,"Enter"))))return void(t.input.lastIOSEnter=0);if(!y){if(!(i&&h instanceof r.U3&&!h.empty&&h.$head.sameParent(h.$anchor))||t.composing||u.sel&&u.sel.anchor!=u.sel.head){if(u.sel){let e=fn(t,t.state.doc,u.sel);if(e&&!e.eq(t.state.selection)){let n=t.state.tr.setSelection(e);s&&n.setMeta("composition",s),t.dispatch(n)}}return}y={start:h.from,endA:h.to,endB:h.to}}t.state.selection.from<t.state.selection.to&&y.start==y.endB&&t.state.selection instanceof r.U3&&(y.start>t.state.selection.from&&y.start<=t.state.selection.from+2&&t.state.selection.from>=u.from?y.start=t.state.selection.from:y.endA<t.state.selection.to&&y.endA>=t.state.selection.to-2&&t.state.selection.to<=u.to&&(y.endB+=t.state.selection.to-y.endA,y.endA=t.state.selection.to)),v&&k<=11&&y.endB==y.start+1&&y.endA==y.start&&y.start>u.from&&" ย "==u.doc.textBetween(y.start-u.from-1,y.start-u.from+1)&&(y.start--,y.endA--,y.endB--);let w=u.doc.resolveNoCache(y.start-u.from),A=u.doc.resolveNoCache(y.endB-u.from),x=f.resolve(y.start),_=w.sameParent(A)&&w.parent.inlineContent&&x.end()>=y.endA;if((T&&t.input.lastIOSEnter>Date.now()-225&&(!_||a.some(t=>"DIV"==t.nodeName||"P"==t.nodeName))||!_&&w.pos<u.doc.content.size&&(!w.sameParent(A)||!w.parent.inlineContent)&&w.pos<A.pos&&!/\S/.test(u.doc.textBetween(w.pos,A.pos,"","")))&&t.someProp("handleKeyDown",e=>e(t,g(13,"Enter"))))return void(t.input.lastIOSEnter=0);if(t.state.selection.anchor>y.start&&function(t,e,n,r,o){if(n-e<=o.pos-r.pos||mn(r,!0,!1)<o.pos)return!1;let i=t.resolve(e);if(!r.parent.isTextblock){let t=i.nodeAfter;return null!=t&&n==e+t.nodeSize}if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let a=t.resolve(mn(i,!0,!0));return!(!a.parent.isTextblock||a.pos>n||mn(a,!0,!1)<n)&&r.parent.content.cut(r.parentOffset).eq(a.parent.content)}(f,y.start,y.endA,w,A)&&t.someProp("handleKeyDown",e=>e(t,g(8,"Backspace"))))return void(I&&S&&t.domObserver.suppressSelectionUpdates());S&&y.endB==y.start&&(t.input.lastChromeDelete=Date.now()),I&&!_&&w.start()!=A.start()&&0==A.parentOffset&&w.depth==A.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==y.endA&&(y.endB-=2,A=u.doc.resolveNoCache(y.endB-u.from),setTimeout(()=>{t.someProp("handleKeyDown",function(e){return e(t,g(13,"Enter"))})},20));let C,E=y.start,M=y.endA,B=e=>{let n=e||t.state.tr.replace(E,M,u.doc.slice(y.start-u.from,y.endB-u.from));if(u.sel){let e=fn(t,n.doc,u.sel);e&&!(S&&t.composing&&e.empty&&(y.start!=y.endB||t.input.lastChromeDelete<Date.now()-100)&&(e.head==E||e.head==n.mapping.map(M)-1)||v&&e.empty&&e.head==E)&&n.setSelection(e)}return s&&n.setMeta("composition",s),n.scrollIntoView()};if(_)if(w.pos==A.pos){v&&k<=11&&0==w.parentOffset&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>Mt(t),20));let e=B(t.state.tr.delete(E,M)),n=f.resolve(y.start).marksAcross(f.resolve(y.endA));n&&e.ensureMarks(n),t.dispatch(e)}else if(y.endA==y.endB&&(C=function(t,e){let n,r,i,a=t.firstChild.marks,s=e.firstChild.marks,l=a,c=s;for(let t=0;t<s.length;t++)l=s[t].removeFromSet(l);for(let t=0;t<a.length;t++)c=a[t].removeFromSet(c);if(1==l.length&&0==c.length)r=l[0],n="add",i=t=>t.mark(r.addToSet(t.marks));else{if(0!=l.length||1!=c.length)return null;r=c[0],n="remove",i=t=>t.mark(r.removeFromSet(t.marks))}let d=[];for(let t=0;t<e.childCount;t++)d.push(i(e.child(t)));if(o.FK.from(d).eq(t))return{mark:r,type:n}}(w.parent.content.cut(w.parentOffset,A.parentOffset),x.parent.content.cut(x.parentOffset,y.endA-x.start())))){let e=B(t.state.tr);"add"==C.type?e.addMark(E,M,C.mark):e.removeMark(E,M,C.mark),t.dispatch(e)}else if(w.parent.child(w.index()).isText&&w.index()==A.index()-(A.textOffset?0:1)){let e=w.parent.textBetween(w.parentOffset,A.parentOffset),n=()=>B(t.state.tr.insertText(e,E,M));t.someProp("handleTextInput",r=>r(t,E,M,e,n))||t.dispatch(n())}else t.dispatch(B());else t.dispatch(B())}function fn(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:Rt(t,e.resolve(n.anchor),e.resolve(n.head))}function mn(t,e,n){let r=t.depth,o=e?t.end():t.pos;for(;r>0&&(e||t.indexAfter(r)==t.node(r).childCount);)r--,o++,e=!1;if(n){let e=t.node(r).maybeChild(t.indexAfter(r));for(;e&&!e.isLeaf;)e=e.firstChild,o++}return o}function gn(t){if(2!=t.length)return!1;let e=t.charCodeAt(0),n=t.charCodeAt(1);return e>=56320&&e<=57343&&n>=55296&&n<=56319}class bn{constructor(t,e){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new he,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=e,this.state=e.state,this.directPlugins=e.plugins||[],this.directPlugins.forEach(_n),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):"function"==typeof t?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=An(this),wn(this),this.nodeViews=xn(this),this.docView=dt(this.state.doc,yn(this),en(this),this.dom,this),this.domObserver=new an(this,(t,e,n,r)=>un(this,t,e,n,r)),this.domObserver.start(),function(t){for(let e in ce){let n=ce[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=e=>{!ge(t,e)||me(t,e)||!t.editable&&e.type in de||n(t,e)},pe[e]?{passive:!0}:void 0)}B&&t.dom.addEventListener("input",()=>null),fe(t)}(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let e in t)this._props[e]=t[e];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&fe(this);let e=this._props;this._props=t,t.plugins&&(t.plugins.forEach(_n),this.directPlugins=t.plugins),this.updateStateInner(t.state,e)}setProps(t){let e={};for(let t in this._props)e[t]=this._props[t];e.state=this.state;for(let n in t)e[n]=t[n];this.update(e)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,e){var n;let r=this.state,o=!1,i=!1;t.storedMarks&&this.composing&&(Be(this),i=!0),this.state=t;let a=r.plugins!=t.plugins||this._props.plugins!=e.plugins;if(a||this._props.plugins!=e.plugins||this._props.nodeViews!=e.nodeViews){let t=xn(this);(function(t,e){let n=0,r=0;for(let r in t){if(t[r]!=e[r])return!0;n++}for(let t in e)r++;return n!=r})(t,this.nodeViews)&&(this.nodeViews=t,o=!0)}(a||e.handleDOMEvents!=this._props.handleDOMEvents)&&fe(this),this.editable=An(this),wn(this);let s=en(this),l=yn(this),c=r.plugins==t.plugins||r.doc.eq(t.doc)?t.scrollToSelection>r.scrollToSelection?"to selection":"preserve":"reset",p=o||!this.docView.matchesNode(t.doc,l,s);!p&&t.selection.eq(r.selection)||(i=!0);let h="preserve"==c&&i&&null==this.dom.style.overflowAnchor&&function(t){let e,n,r=t.dom.getBoundingClientRect(),o=Math.max(0,r.top);for(let i=(r.left+r.right)/2,a=o+1;a<Math.min(innerHeight,r.bottom);a+=5){let r=t.root.elementFromPoint(i,a);if(!r||r==t.dom||!t.dom.contains(r))continue;let s=r.getBoundingClientRect();if(s.top>=o-20){e=r,n=s.top;break}}return{refDOM:e,refTop:n,stack:$(t.dom)}}(this);if(i){this.domObserver.stop();let e=p&&(v||S)&&!this.composing&&!r.selection.empty&&!t.selection.empty&&function(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}(r.selection,t.selection);if(p){let n=S?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=Te(this)),!o&&this.docView.update(t.doc,l,s,this)||(this.docView.updateOuterDeco(l),this.docView.destroy(),this.docView=dt(t.doc,l,s,this.dom,this)),!n||this.trackWrites&&this.dom.contains(this.trackWrites)||(e=!0)}e||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&function(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return d(e.node,e.offset,n.anchorNode,n.anchorOffset)}(this))?Mt(this,e):(It(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),(null===(n=this.dragging)||void 0===n?void 0:n.node)&&!r.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,r),"reset"==c?this.dom.scrollTop=0:"to selection"==c?this.scrollToSelection():h&&function({refDOM:t,refTop:e,stack:n}){let r=t?t.getBoundingClientRect().top:0;j(n,0==r?0:r-e)}(h)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(t&&this.dom.contains(1==t.nodeType?t:t.parentNode))if(this.someProp("handleScrollToSelection",t=>t(this)));else if(this.state.selection instanceof r.nh){let e=this.docView.domAfterPos(this.state.selection.from);1==e.nodeType&&D(this,e.getBoundingClientRect(),t)}else D(this,this.coordsAtPos(this.state.selection.head,1),t);else;}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(t&&t.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let e=0;e<this.pluginViews.length;e++){let n=this.pluginViews[e];n.update&&n.update(this,t)}else{this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let t=0;t<this.directPlugins.length;t++){let e=this.directPlugins[t];e.spec.view&&this.pluginViews.push(e.spec.view(this))}for(let t=0;t<this.state.plugins.length;t++){let e=this.state.plugins[t];e.spec.view&&this.pluginViews.push(e.spec.view(this))}}}updateDraggedNode(t,e){let n=t.node,o=-1;if(n.from<this.state.doc.content.size&&this.state.doc.nodeAt(n.from)==n.node)o=n.from;else{let t=n.from+(this.state.doc.content.size-e.doc.content.size);(t>0&&t<this.state.doc.content.size&&this.state.doc.nodeAt(t))==n.node&&(o=t)}this.dragging=new Re(t.slice,t.move,o<0?void 0:r.nh.create(this.state.doc,o))}someProp(t,e){let n,r=this._props&&this._props[t];if(null!=r&&(n=e?e(r):r))return n;for(let r=0;r<this.directPlugins.length;r++){let o=this.directPlugins[r].props[t];if(null!=o&&(n=e?e(o):o))return n}let o=this.state.plugins;if(o)for(let r=0;r<o.length;r++){let i=o[r].props[t];if(null!=i&&(n=e?e(i):i))return n}}hasFocus(){if(v){let t=this.root.activeElement;if(t==this.dom)return!0;if(!t||!this.dom.contains(t))return!1;for(;t&&this.dom!=t&&this.dom.contains(t);){if("false"==t.contentEditable)return!1;t=t.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&function(t){if(t.setActive)return t.setActive();if(F)return t.focus(F);let e=$(t);t.focus(null==F?{get preventScroll(){return F={preventScroll:!0},!0}}:void 0),F||(F=!1,j(e,0))}(this.dom),Mt(this),this.domObserver.start()}get root(){let t=this._root;if(null==t)for(let t=this.dom.parentNode;t;t=t.parentNode)if(9==t.nodeType||11==t.nodeType&&t.host)return t.getSelection||(Object.getPrototypeOf(t).getSelection=()=>t.ownerDocument.getSelection()),this._root=t;return t||document}updateRoot(){this._root=null}posAtCoords(t){return V(this,t)}coordsAtPos(t,e=1){return K(this,t,e)}domAtPos(t,e=0){return this.docView.domFromPos(t,e)}nodeDOM(t){let e=this.docView.descAt(t);return e?e.nodeDOM:null}posAtDOM(t,e,n=-1){let r=this.docView.posFromDOM(t,e,n);if(null==r)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(t,e){return ot(this,e||this.state,t)}pasteHTML(t,e){return Ie(this,"",t,!1,e||new ClipboardEvent("paste"))}pasteText(t,e){return Ie(this,t,null,!0,e||new ClipboardEvent("paste"))}serializeForClipboard(t){return Jt(this,t)}destroy(){this.docView&&(!function(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],en(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,l=null)}get isDestroyed(){return null==this.docView}dispatchEvent(t){return function(t,e){me(t,e)||!ce[e.type]||!t.editable&&e.type in de||ce[e.type](t,e)}(this,t)}domSelectionRange(){let t=this.domSelection();return t?B&&11===this.root.nodeType&&function(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}(this.dom.ownerDocument)==this.dom&&function(t,e){if(e.getComposedRanges){let n=e.getComposedRanges(t.root)[0];if(n)return cn(t,n)}let n;function r(t){t.preventDefault(),t.stopImmediatePropagation(),n=t.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",r,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",r,!0),n?cn(t,n):null}(this,t)||t:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function yn(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if("function"==typeof n&&(n=n(t.state)),n)for(let t in n)"class"==t?e.class+=" "+n[t]:"style"==t?e.style=(e.style?e.style+";":"")+n[t]:e[t]||"contenteditable"==t||"nodeName"==t||(e[t]=String(n[t]))}),e.translate||(e.translate="no"),[Fe.node(0,t.state.doc.content.size,e)]}function wn(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:Fe.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function An(t){return!t.someProp("editable",e=>!1===e(t.state))}function xn(t){let e=Object.create(null);function n(t){for(let n in t)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=t[n])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function _n(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}bn.prototype.dispatch=function(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))}},61919(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n.d(e,{A:()=>a});var o=/^\s+/,i=/\s+$/;function a(t,e){if(e=e||{},(t=t||"")instanceof a)return t;if(!(this instanceof a))return new a(t,e);var n=function(t){var e={r:0,g:0,b:0},n=1,a=null,s=null,l=null,c=!1,d=!1;"string"==typeof t&&(t=function(t){t=t.replace(o,"").replace(i,"").toLowerCase();var e,n=!1;if(v[t])t=v[t],n=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=z.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=z.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=z.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=z.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=z.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=z.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=z.hex8.exec(t))return{r:M(e[1]),g:M(e[2]),b:M(e[3]),a:O(e[4]),format:n?"name":"hex8"};if(e=z.hex6.exec(t))return{r:M(e[1]),g:M(e[2]),b:M(e[3]),format:n?"name":"hex"};if(e=z.hex4.exec(t))return{r:M(e[1]+""+e[1]),g:M(e[2]+""+e[2]),b:M(e[3]+""+e[3]),a:O(e[4]+""+e[4]),format:n?"name":"hex8"};if(e=z.hex3.exec(t))return{r:M(e[1]+""+e[1]),g:M(e[2]+""+e[2]),b:M(e[3]+""+e[3]),format:n?"name":"hex"};return!1}(t));"object"==r(t)&&(H(t.r)&&H(t.g)&&H(t.b)?(p=t.r,h=t.g,u=t.b,e={r:255*E(p,255),g:255*E(h,255),b:255*E(u,255)},c=!0,d="%"===String(t.r).substr(-1)?"prgb":"rgb"):H(t.h)&&H(t.s)&&H(t.v)?(a=T(t.s),s=T(t.v),e=function(t,e,n){t=6*E(t,360),e=E(e,100),n=E(n,100);var r=Math.floor(t),o=t-r,i=n*(1-e),a=n*(1-o*e),s=n*(1-(1-o)*e),l=r%6,c=[n,a,i,i,s,n][l],d=[s,n,n,a,i,i][l],p=[i,i,s,n,n,a][l];return{r:255*c,g:255*d,b:255*p}}(t.h,a,s),c=!0,d="hsv"):H(t.h)&&H(t.s)&&H(t.l)&&(a=T(t.s),l=T(t.l),e=function(t,e,n){var r,o,i;function a(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=E(t,360),e=E(e,100),n=E(n,100),0===e)r=o=i=n;else{var s=n<.5?n*(1+e):n+e-n*e,l=2*n-s;r=a(l,s,t+1/3),o=a(l,s,t),i=a(l,s,t-1/3)}return{r:255*r,g:255*o,b:255*i}}(t.h,a,l),c=!0,d="hsl"),t.hasOwnProperty("a")&&(n=t.a));var p,h,u;return n=C(n),{ok:c,format:t.format||d,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function s(t,e,n){t=E(t,255),e=E(e,255),n=E(n,255);var r,o,i=Math.max(t,e,n),a=Math.min(t,e,n),s=(i+a)/2;if(i==a)r=o=0;else{var l=i-a;switch(o=s>.5?l/(2-i-a):l/(i+a),i){case t:r=(e-n)/l+(e<n?6:0);break;case e:r=(n-t)/l+2;break;case n:r=(t-e)/l+4}r/=6}return{h:r,s:o,l:s}}function l(t,e,n){t=E(t,255),e=E(e,255),n=E(n,255);var r,o,i=Math.max(t,e,n),a=Math.min(t,e,n),s=i,l=i-a;if(o=0===i?0:l/i,i==a)r=0;else{switch(i){case t:r=(e-n)/l+(e<n?6:0);break;case e:r=(n-t)/l+2;break;case n:r=(t-e)/l+4}r/=6}return{h:r,s:o,v:s}}function c(t,e,n,r){var o=[B(Math.round(t).toString(16)),B(Math.round(e).toString(16)),B(Math.round(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function d(t,e,n,r){return[B(L(r)),B(Math.round(t).toString(16)),B(Math.round(e).toString(16)),B(Math.round(n).toString(16))].join("")}function p(t,e){e=0===e?0:e||10;var n=a(t).toHsl();return n.s-=e/100,n.s=S(n.s),a(n)}function h(t,e){e=0===e?0:e||10;var n=a(t).toHsl();return n.s+=e/100,n.s=S(n.s),a(n)}function u(t){return a(t).desaturate(100)}function f(t,e){e=0===e?0:e||10;var n=a(t).toHsl();return n.l+=e/100,n.l=S(n.l),a(n)}function m(t,e){e=0===e?0:e||10;var n=a(t).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-e/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-e/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-e/100*255))),a(n)}function g(t,e){e=0===e?0:e||10;var n=a(t).toHsl();return n.l-=e/100,n.l=S(n.l),a(n)}function b(t,e){var n=a(t).toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,a(n)}function y(t){var e=a(t).toHsl();return e.h=(e.h+180)%360,a(e)}function w(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var n=a(t).toHsl(),r=[a(t)],o=360/e,i=1;i<e;i++)r.push(a({h:(n.h+i*o)%360,s:n.s,l:n.l}));return r}function A(t){var e=a(t).toHsl(),n=e.h;return[a(t),a({h:(n+72)%360,s:e.s,l:e.l}),a({h:(n+216)%360,s:e.s,l:e.l})]}function x(t,e,n){e=e||6,n=n||30;var r=a(t).toHsl(),o=360/n,i=[a(t)];for(r.h=(r.h-(o*e>>1)+720)%360;--e;)r.h=(r.h+o)%360,i.push(a(r));return i}function _(t,e){e=e||6;for(var n=a(t).toHsv(),r=n.h,o=n.s,i=n.v,s=[],l=1/e;e--;)s.push(a({h:r,s:o,v:i})),i=(i+l)%1;return s}a.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,r=this.toRgb();return t=r.r/255,e=r.g/255,n=r.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=C(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=l(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=l(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=s(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=s(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return c(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,n,r,o){var i=[B(Math.round(t).toString(16)),B(Math.round(e).toString(16)),B(Math.round(n).toString(16)),B(L(r))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*E(this._r,255))+"%",g:Math.round(100*E(this._g,255))+"%",b:Math.round(100*E(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*E(this._r,255))+"%, "+Math.round(100*E(this._g,255))+"%, "+Math.round(100*E(this._b,255))+"%)":"rgba("+Math.round(100*E(this._r,255))+"%, "+Math.round(100*E(this._g,255))+"%, "+Math.round(100*E(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(k[c(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+d(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";if(t){var o=a(t);n="#"+d(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return e||!r||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return a(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(f,arguments)},brighten:function(){return this._applyModification(m,arguments)},darken:function(){return this._applyModification(g,arguments)},desaturate:function(){return this._applyModification(p,arguments)},saturate:function(){return this._applyModification(h,arguments)},greyscale:function(){return this._applyModification(u,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(x,arguments)},complement:function(){return this._applyCombination(y,arguments)},monochromatic:function(){return this._applyCombination(_,arguments)},splitcomplement:function(){return this._applyCombination(A,arguments)},triad:function(){return this._applyCombination(w,[3])},tetrad:function(){return this._applyCombination(w,[4])}},a.fromRatio=function(t,e){if("object"==r(t)){var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]="a"===o?t[o]:T(t[o]));t=n}return a(t,e)},a.equals=function(t,e){return!(!t||!e)&&a(t).toRgbString()==a(e).toRgbString()},a.random=function(){return a.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},a.mix=function(t,e,n){n=0===n?0:n||50;var r=a(t).toRgb(),o=a(e).toRgb(),i=n/100;return a({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},a.readability=function(t,e){var n=a(t),r=a(e);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},a.isReadable=function(t,e,n){var r,o,i=a.readability(t,e);switch(o=!1,(r=function(t){var e,n;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==n&&"large"!==n&&(n="small");return{level:e,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},a.mostReadable=function(t,e,n){var r,o,i,s,l=null,c=0;o=(n=n||{}).includeFallbackColors,i=n.level,s=n.size;for(var d=0;d<e.length;d++)(r=a.readability(t,e[d]))>c&&(c=r,l=a(e[d]));return a.isReadable(t,l,{level:i,size:s})||!o?l:(n.includeFallbackColors=!1,a.mostReadable(t,["#fff","#000"],n))};var v=a.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},k=a.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(v);function C(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function E(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function S(t){return Math.min(1,Math.max(0,t))}function M(t){return parseInt(t,16)}function B(t){return 1==t.length?"0"+t:""+t}function T(t){return t<=1&&(t=100*t+"%"),t}function L(t){return Math.round(255*parseFloat(t)).toString(16)}function O(t){return M(t)/255}var I,N,R,z=(N="[\\s|\\(]+("+(I="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?",R="[\\s|\\(]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?",{CSS_UNIT:new RegExp(I),rgb:new RegExp("rgb"+N),rgba:new RegExp("rgba"+R),hsl:new RegExp("hsl"+N),hsla:new RegExp("hsla"+R),hsv:new RegExp("hsv"+N),hsva:new RegExp("hsva"+R),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function H(t){return!!z.CSS_UNIT.exec(t)}},99438(t){"use strict";t.exports={version:"1.0.35"}},74265(t){"use strict";t.exports=JSON.parse('{"expand_all":"Expand all","collapse_all":"Collapse all","ai_element_empty_connect_claude":"Connect Claude to generate this section","ai_connect_intro":"Build this section with Claude โ no code.\\n1. Add the Creaditor connector to Claude (button below).\\n2. Copy the ready prompt and paste it into Claude.","ai_connect_btn":"Connect with Claude","ai_connect_localhost_note":"You\'re on localhost. Claude on the web can\'t reach your local server โ use Claude Desktop, or expose it with a public tunnel (e.g. ngrok).","ai_connect_url_label":"Connection link (paste in Claude)","ai_connect_prompt_btn":"Copy prompt for Claude","ai_connect_link_copied":"Connection link copied โ paste it in Claude\'s connector settings.","ai_connect_prompt_copied":"Prompt copied โ paste it into a Claude chat.","name":"Name","link":"Link","hi_how_are_u":"Hi, how are you?","secureLink":"https link","tel":"Tel","email":"Email","keep_ratio":"Keep ratio","recommended":"Recommended","opengalleryimage":"Open gallery","email_600":"Email design best practices peg the ideal email newsletter width size at 600 pixels. This number has been the standard for many years.","secure_link":"Secure link","items":"Items","moving_from_mailing_list":"Moving from mailing list","links_with_invalid_url":"Links with invalid url","prompt_editor_title":"Create Your Content","generate_content":"Generate Content","creating_magic":"Creating Magic...","images_without_alt":"Images without alt","sms_body_if_needed":"SMS body if needed","whatsapp_body_if_needed":"WhatsApp message if needed","simply:Scratchcard":"Scratch card","image_in_progress":"Image in progress...","text_micro_copy":"Be creative, write something that will make your customers want to click on the button.","jhon_lennon":"Jhon Lennon","jhon_lennon_qoute":"Life is what happens when you\'re busy making other plans","headingText":"Heading text","title_color":"Title Color","button_color":"Color Button","button_background":"Background","start":"Start","end":"End","duration":"Duration","prefix":"Prefix","suffix":"Suffix","separator":"Separator","count-up":"Count up","pie-chart":"Pie chart","edit_data":"Edit Data","bar-chart":"Barchart","cols_color":"Cols Colors","button_radius":"Radius Button","accessories":"Accessories","elements":"Elements","confirm":"Accept","drag_block":"Drag block","what_the_anchor_name":"What the anchor name?","checkbox_on_right_side":"Checkbox on Right?","drag_to_move_click_to_options":"Drag to move, click to options","contact":"Contact","buttons_without_links":"Buttons without links","images_with_default_src":"Images with default src","errors_to_fix":"Errors to fix","expand_image_for_outlook":"Expand image for Outlook","social":"Social Networks","forward_params":"Forward URL parameters","menu_widget":"Menu widget","powered_by_pexels":"Powered by Pexels","bulletColor":"Bullet Color","makeCircle":"Make Circle","twoImages":"Two Images","component_color":"Component Color","close_scheme_locked":"Close scheme locked","open_scheme_locked":"Open scheme locked","threeImages":"Three Images","threeButtons":"Three Buttons","file":"File","auto":"auto","colors":"Colors","iconColor":"Icon color","slientMode":"Slient Mode","dividerColor":"Divider Color","this_is_empty_iframe_start_add_url_link":"This is empty iframe. Start adding url link","openAsModal":"Open image in modal","autoplay":"Autoplay","showAsImage":"show As Image","playInLoop":"play In Loop","addedToFavorite":"Added to Favorites","removedFromFavorite":"Deleted from favorites","removedSuccess":"Successfully deleted","aToZ":"A-Z","zToA":"Z-A","anchorName":"Anchor Name","inputEmptyError":"Fill in the field","savedSuccess":"Saved successfully","createdSuccessfully":"Done successfully","home":"Home","about":"About","position":"Position","scroll":"Scroll","repeat":"Repeat","choose":"Choose","texts":"Texts","home_page":"Home Page","numOneAsFemale":"One","heading":"Title","bigHeading":"Big Title","readMore":"Read More","quick_add":"Quick Add","click_here_to_add":"Click here to add","mediumHeading":"Medium title","smallHeading":"Small title","icons":"Icons","icons_color_images":"Color images","icons_svg_icons":"SVG icons","icons_search_svg_hint":"Search SVG icons.","icons_search_placeholder":"Search icons (e.g. arrow, user, email)โฆ","icons_no_svg_results":"No SVG icons found for this search. Try arrow, user, email.","icons_type_to_search":"Type a search term to find SVG icons (e.g. arrow, user).","icons_no_local_results":"No icons found matching this search.","icons_error_loading":"Error loading","iconSize":"Icon size","color_them_all":"Color them all","loading":"Loadingโฆ","divider":"Divider","bullets":"Bullets","numbered":"Numbering","ok":"OK","newImage":"New Image","newFolder":"New Folder","folders":"Folders","addLinks":"Add link","edit":"editing","rootelement_editor_top_header":"Page Design","block_width":"Block width","page_background":"Page","bgColor_blocks":"Blocks","rootelement_editor_global_colors_heading":"Global colors","openGalleryImage":"Open gallery","clone_element":"Clone element","what_the_url_address":"What the url address?","videoWithArticle":"Video with article","give_name_to_block":"Give name to block","save_block":"Save block","choose_your_duo_date":"Choose your duo date","what_category":"What category?","iamgeWithArticle":"Image with article","imageWithText":"Image with text","no_responsive":"No responsive","BulletsWithImage":"Bulltes with image","SocialNetwork":"Social networks","height:form_field":"Fields height","box-shadow":"Shadow-Fx","ready_blocks":"Blocks","individual_elements":"Individual Elements","connection_lost":"Connection Lost","add_now":"Add Now","error_transactions_not_completed":"TODO:complete_text","form:manage_fields":"Manage The Form","add_new_field":"Add New Field","border_design":"Border Design","number_color":"Numbers Color","twoArticles":"Two article","the_color_of_cols":"The Color Of Cols","the_radius_of_col":"The Radius Of Cols","twoButtons":"Two buttons","show_colons":"Show Colons","my_fields":"My Fields","no_editor:title":"We will add editor to this element soon as possible.","threeArticles":"Three articles","addons_menu:title":"Extra features to enhance your page. Drag one onto a block or section.","sections_menu:title":"Ready-made page sections. Pick one and customize it to fit your design.","Hero โ split with image":"Hero โ split with image","Features โ 3 icon cards":"Features โ 3 icon cards","Testimonial โ centered quote":"Testimonial โ centered quote","backgrounds_menu:title":"Choose a background and drag it onto a block or section.","blocks_menu:title":"Pre-built blocks with multiple elements. Drag one between your blocks or sections.","elements_menu:title":"Drag an element into the canvas, or drop it as a new block.","imageWithBullets":"Image With bullets","undo":"Cancel","redo":"Restore","wide":"Wide","text:button":"What The Button say?","empty_section_info":"This is empty section, Click here to add block and beatiful background.","videos":"Videos","video":"Video","effects":"Effects","aurora":"Aurora","images":"Images","image":"Image","icon":"Icon","giphy":"GIF","giphy_trending":"Trending","giphy_search_tab":"Search","giphy_search_placeholder":"Search GIFs (e.g. happy, celebrationโฆ)","giphy_random_title":"Random GIF","giphy_no_results":"No GIFs found. Try different keywords.","giphy_type_to_search":"Type a keyword and click Search.","giphy_no_available":"No GIFs available.","weight":"Weight","color":"Color","buttons":"Buttons","button":"Button","general":"General","all":"All","myImages":"My Images","uploadSuccess":"Upload complete","fromOldToNew":"Old to new","fromNewToOld":"New To old","download":"Download","quotes":"A Quote","quotesWithText":"Quote with text","delete":"Deletion","anchor":"Anchor","deleteElement":"Delete element","deleteBlock":"Delete block","preview":"Preview","design":"Design","style":"Style","tabs_hint_title":"Tip: switch between tabs","tabs_hint_body":"Use these tabs to move between Settings, Animations, Interactions and Style โ available for every element, including button links.","got_it":"Got it","alignment":"Alignment","horizontal_align":"Horizontal align","vertical_align":"Vertical align","ai":"AI","changeName":"Rename","upload":"Upload Image","noImagesYet":"No images yet","uploadOrPickImages":"Upload an image or browse free stock.","uploading":"Uploading...","verifying":"Verifying...","completed":"Completed!","timeout":"Upload timeout","add":"Add","addons":"Extras","save":"Save","cellSpace":"Cell spacing","search":"Search","ratioLock":"Ratio lock","videoLink":"Video link","settings":"Settings","counterTitle":"Counter title?","folderName":"Folder name","addFolder":"Add folder","add_block":"Add block","counterColor":"Counter color","chooseBlock":"Drag a block","imageEditTitle":"Photo editing","videoEditTitle":"Edit video","size_options":"Size Options","backgroundColor":"Background","backgrounds":"Backgrounds","no_results":"No results found","contactForError":"Report an error","contactForErrorDesc":"Did you come across something unexpected?\\n Click here to report the error","fetureRequest":"Request for additions","pastePageContent":" Paste email content","titleColor":"Title color","agreeToOverride":"I agree to delete the existing content and replace it with copied content.","overridePageContent":"You have chosen to paste the content of another email into this page. \\n The paste will delete the existing content on the page and paste the copied content in its place.","fetureRequestDesc":"Are you missing any feature? \\n Click here to request tools to be added to the editor","copyPageContent":"Copy the contents of the page to another account","copyPageContentDesc":"Click here to copy the page content to your other account","pasteContent":"Paste content from another account","pasteContentDesc":"Click here to paste copied content","generalText":"Here we will write down some general text about our product. This is some general text area completely free","longText":"Here we will write down some general text about our product. This is some general text area that is completely free, you can write here what you feel like as long as it is relevant content.","textBlock":"Text block","timeCounter":"Time counter","counterBlock":"Counter block","bulletBlock":"Bullets block","singleImage":"Single image","allImages":"All images","bulletWithImageBlock":"Bullet with images","header1block":"Main title","bold":"Bold","underline":"Underline","italic":"Italic","strikeThrough":"Strike through","forecolor":"Forecolor","threeCells":"Three cells","twoCells":"Two cells","backcolor":"Background text","fontFamily":"Font","fontWeight":"Font weight","fontSize":"Font size","direction":"Direction","right":"Right","left":"Left","center":"Center","justify":"Justify","unLink":"Unlink","appendImage":"Add an image","appendVideo":"Add an video","blocks":"Blocks","page":"Page","block":"Block","section":"Section","sections:title":"Sections","sections:count":"sections","sections:categories":"Categories","sections:search_placeholder":"Search sectionsโฆ","sections:search_results":"Search results","sections:add_hint":"Drag to add","sections:no_results":"No sections match your search.","sections:try_different_search":"Try a different search term.","sections_cat:all":"All","sections_cat:hero":"Hero","sections_cat:about":"About","sections_cat:services":"Services","sections_cat:pricing":"Pricing","sections_cat:team":"Team","sections_cat:testimonials":"Testimonials","sections_cat:faq":"FAQ","sections_cat:blog":"Blog & Content","sections_cat:cta":"Call to action","sections_cat:footer":"Footer","sections_cat:blank":"Blank","pageSetting":"Page settings","text":"Text","accordion":"Accordion","clear":"Clear","articleTitle":"Article title","Header1Web":"Title","shortText":"Something important that customers need to know","articleMore":"Show more","emoji":"Emoji","smart_change":"Smart change","writing_settings":"Writing","smart_change_description":"Auto-replaces text shortcuts as you type โ :) becomes ๐, <3 becomes โค๏ธ, --\x3e becomes โ. This applies to every text element in the design.","lineHeight":"Line height","textAlign":"Text align","sendTest":"Send test","article":"Article","Duplicate":"Duplicate","component_selected":"Component selected","component_unselected":"Component unselected","add_section":"Add section","remove_block":"Remove block","duplicate_block":"Duplicate block","BulletsWithArticle":"Bullets With Article","sendTestMail":"Send Test Message","blockMenuInfo":"Click on the tag and click again to set it off *","fontNameWholePage":"Whole Page Font name","AddNewAddress":"Add new Input","send":"Send","emailAddress":"Email Address","DragHere":"Drag here","imageSize":"Image size","alignImage":"Align image","fullWidthOnMobile":"Full width on mobile","altText":"Alt text","gallery":"Gallery","padding":"Padding","size":"Size","coming_soon":"Coming Soon","amp":"AMP","coming_soon_amp":"AMP is coming soon!\\nInteractive, app-like emails โ polls, forms, carousels and live content, right inside the inbox.","width":"Width","height":"Height","unit":"Unit","dateAndTime":"Date and Time","hour":"Hour","minutes":"Minute","alignButton":"Align button","main":"Main","favorites":"Favorites","mediaType":"Media type","filter":"Filter","addEmoji":"Add Emoji","addBackcolor":"Add Backcolor","addForcolor":"Add Forecolor","lastColors":"Recent","colorsInPage":"Page colors","openNewTab":"New window","stayOnSamePage":"Same window","desktopMode":"Desktop mode only","addressWithExample":"Address (Example:Petah Tikva,Sibim 18)","maps":"Maps","map":"Map","layout":"Layout","event":"Event","audio":"Audio","addNew":"Add New","animations":"Animations","urlAddress":"Url Address","can_Open_Gallery_With_Double_Click_On_The_Image":"You can open the gallery by Double click on the Image","uploadFile":"Upload File","FileSelection":"File Selection","yes,Create":"Yes, Create","letterSpacing":"Letter Spacing","spacing":"Spacing","advanced":"Advanced","Select_an_element_to_edit_its_properties":"Select a block, button, or text to edit its properties","what_the_phone_number_to_send_msg_to":"What the phone number to send message to","email_body_if_needed":"Email body if needed","what_the_phone_number":"What the phone number to call to","what_the_email_address":"What the email address to send to","active_on-scroll":"Active on scroll","active_on-hover":"Active on mouse over","drag_or_click":"Drag or click","heading-1":"Heading 1","svg-element":"SVG Element","divider-element":"Divider Element","iframe":"Iframe","html-code":"Html Code","video with text":"Video with text","image with text":"Image with text","quotes-block":"quotes block","animation_deleted":"Animation deleted","animation_added":"Animation added","show_on_desktop":"Show on desktop","show_on_mobile":"Show on mobile","show_on_tablet":"Show on tablet","desktop":"Desktop","tablet":"Tablet","mobile":"Mobile","show_element_on":"Show this element on","view_as":"View as","filter_items":"Filter items","show_on":"Show on","properties":"Properties","ID_with_description":"ID (advance)","on_hover":"On mouse over","on_scroll":"On scroll","menu-widget":"Menu widget","setting_section":"Setting section","setting_block":"Setting block","remove_element":"Remove element","drag_element":"Drag element","max_width":"Max width","open_gallery_icons":"Open gallery icons","number_size":"Number size","large":"Large","medium":"Medium","small":"Small","extra-large":"Extra Large","without_radius":"Without radius","design_custom_list":"Design custom list","display_mode":"Display mode","filter_canvas_helper":"Filter canvas by device","description":"Description","title":"Title","keywords":"Keywords","favicon":"Favicon","cancel":"Cancel","standard":"Standard","publish":"Publish","ready_to_publish":"Ready to publish","lets_set_some_seo":"Let\'s set some SEO","seo_title_label":"Page name for search engines and social networks (SEO)","seo_title_placeholder":"Page name as it will appear in search engines","seo_description_label":"Page description for search engine and social network promotion (SEO)","seo_description_placeholder":"This description will appear below the site title in search engines","seo_keywords_label":"Keywords","seo_keywords_placeholder":"For example: gift,woman,gift for woman","seo_generate_tooltip":"Generate with AI","seo_generate_empty":"Add some content to the page first.","seo_generate_failed":"Couldn\'t generate. Please try again.","published":"Published!","publishedSub":"Your site is live.","view_site":"View site","copy_link":"Copy link","link_copied":"Link copied","search_preview_label":"How your page will look on Google","We_are_building_your_page":"We are building your page","fade_in":"Fade in","fade_in_down":"Fade in down","back_in_down":"Back in down","back_in_right":"Back in right","bounce":"Bounce","tada":"Tada!!","saved_theme":"Saved theme","go_back":"Back","open_colorpicker":"Open colorpicker","colors_that_created_from_image":"Colors that created from image","publish_success":"Publish success","open_the_page":"Open the page","close":"Close","title_size":"Title size","ilustrations":"Ilustrations","svg":"SVG","click_to_refresh":"Click to refresh","error_client_disconnected":"Opps! we are disconnected from the server. Please try again later.","connection_error":"Connection error ๐ฑ ","typography":"Typography","more_colors":"All colors","fit_colors":"Harmony","button_submit_form":"Send","get_started":"Get started","design_form":"Design form","input":"Input","placeholder":"Placeholder","default_value":"Default value","required":"Required","form_behavior":"Form behavior","display_inline":"Inline","display_modal":"Modal (popup)","open_delay_seconds":"Delay (seconds)","modal":"Modal","interactions":"Interactions","presets":"Presets","mark_as_modal":"Show as modal","modal_hidden_on_view":"Won\'t show on the published page โ a button opens it as a popup.","modal_name":"Modal name","modal_name_hint":"To show it, go to a button and pick this modal.","popup":"Popup","popup_settings_in_tab":"Popup name and behavior are in the โPopupโ tab.","popup_trigger_label":"When to show","popup_trigger_button":"On button click","popup_trigger_load":"Automatically on load","popup_trigger_delay":"After a delay","popup_trigger_exit":"When leaving the page","popup_delay_label":"Delay (seconds)","surface_page":"Page","surface_modals":"Modals","surface_popups":"Popups","back_to_page":"Back to page","popups_empty_hint":"No popups yet. Click \\"New popup\\" to create one, then design it in the canvas.","popups_instructions":"Design this popup by dragging elements from โAddโ. To show it, go to a button and choose this popup โ it opens as a popup on your page.","popups_connect_hint":"To open a popup, select a button and choose this popup as its action.","new_modal":"New modal","open_modal":"Open a modal","modal_block":"Which block","modal_none":"None","modal_pick_hint":"Pick a block to open as a popup when this button is clicked.","modal_none_hint":"No modal blocks yet. Mark a block as \\"Show as modal\\" in the block settings.","after_submission":"After submission","stay_at_page":"Stay on page","redirect":"Redirect","form:background":"Field background","hidden":"Hidden","form_settings":"Form settings","hidden_field":"Hidden field","advance_setting":"Advanced settings","label":"Label","radio-group":"Radio group","items_in_radio_group":"Items in radio group","add_item":"Add item","textarea":"Textarea","items_in_menu":"Items in menu","checkbox":"Checkbox","send_form_only_if_checked":"Send form only if checked","select_fields_to_edit":"Select fields to edit","url_parameters":"URL parameters","hidden_form_field_info":"Hidden fields are not visible to users but their values are included in form submissions","required_form_field_info":"Users must fill in this field before submitting the form","url_param":"URL parameter","please_wait_downloading_new_version":"Please wait downloading new version","allow_send_form_only_if_checked":"Allow send form only if checked","field_settings":"Field settings","add_field":"Add field","edit_field":"Edit field","field_type":"Field type","input_type":"Input type","param_name":"Parameter name","param_name_hint":"The key used to identify this field when the form is submitted. A unique name is generated automatically โ edit it if you need a specific one.","field_options":"Options","add_option":"Add option","remove_option":"Remove option","field_change_rejected":"Change was not approved","field_name_required":"Name is required","field_param_required":"Parameter name is required","field_input_type_required":"Input type is required","field_options_required":"Add at least one option","field_value":"Value","toggle":"Toggle","dropdown":"Dropdown","number":"Number","inner_blocks":"Center","automations":"Automations","drag_here":"Drag here","advance_options":"Advance Options","copied":"Copied","duplicate_template_code":"Duplicate Template Code","click_to_copy":"Click To Copy","list-check":"Elements","drag_section":"Swap position with another section","card":"Card","list-settings":"Advanced","icons_list_micro_copy":"If a bullet doesn\'t look serious enough, you can use an icon instead.","typography_micro_copy":"Typography your text with the help of the typography settings.","anchor_name_micro_copy":"Name it now, find it later in the link editor.","anchor_free_position":"Free position on canvas","click_to_remove":"Click to remove","create_anchor":"Need Anchor? click here","image_micro_copy":"Click on the button, or dblClick on the image to add an image(but a beautiful one).","after_form_subscribed":"What we Should do after form subscribed","add_user_from_mailinglist_after_subscribed":"Add to mailing list","remove_user_from_mailinglist_after_subscribed":"Remove from mailing list","available_fields":"My fields","add_urlAddress_from_media_site":"Add url from media site","background_fields":"Background fields","label_color":"Label color","make_it_default_value":"Make it default value","show_success_popup":"Show success popup","user_will_redirect_to":"User will redirect to","where_to_redirect":"Where to redirect?","none":"None","my_form":"My form","search_my_fields":"Search my fields","choose_an_option":"Choose an option","checkbox_checked_as_default":"Checked as default","form":"Form","sync_all_forms":"Sync all forms","send_the_data_to":"Send data to URL","color:label":"Text color","field_background":"Field Background","paragraph":"Paragraph","horizontal_shadow_length":"Horizontal Shadow Length","vertical_shadow_length":"Vertical Shadow Length","blur_radius":"Blur Radius","spread_radius":"Spread Radius","shadow_color":"Shadow color","inset":"Inset","box_shadow:info":"Adds shadow effects around an element\'s frame.","design_for_phone":"Mobile Design","design_for_desktop":"Desktop Design","number_example":"05000000","website_example":"www.example.com","email_example":"example@example.com","link_target":"Link Target","open_in_new_tab":"Open in new tab","open_in_same_tab":"Open in same tab","open_in_parent_frame":"Open in parent frame","open_in_top_frame":"Open in top frame","user_menu":"User Menu","send_mail_on_submitted":"Email notification on submit","send_test_emails":"Send Test Emails","attached_files":"Attached Files","make_newsletter_as_event":"Make Newsletter as Event","add_files":"Add Files","max_files_reached":"Maximum number of files reached","make_event":"Make Event","name_and_subject":"Name & Subject","enter_email_addresses":"Enter email addresses (comma or enter to add)","invalid_email_error":"Please enter a valid email address","no_emails_error":"Please add at least one email address","create_event":"Create Event","start_date_time":"Start Date & Time","end_date_time":"End Date & Time","location":"Location","link_optional":"Link (Optional)","save_event":"Save Event","cancel_event":"Cancel Event","confirm_cancel":"Are you sure you want to cancel?","creating_event":"Creating Event...","event_created":"Event Created!","end_after_start_error":"End date/time must be after start date/time","enter_event_location":"Enter event location","enter_event_link":"Enter event link","logout":"Logout","details":"Details","subject":"Subject","subtitle":"Subtitle","enter_subject":"Enter subject","back":"Back","apply":"Apply","crop":"Crop","crop_image":"Crop image","crop_cors_error":"This image canโt be cropped in the browser because itโs served without CORS headers. Re-upload it through the gallery and try again.","automation_settings":"Automation Settings","what_should_happen":"What should happen?","add_to_mailing_list_question":"Add to mailing list?","remove_from_mailing_list_question":"Remove from mailing list?","select_mailing_lists":"Select mailing lists","selected":"Selected","automation_link_preview":"Automation Link","apply_automation":"Apply Automation","sidebarMenu_page_business":"Page & Business","sidebarMenu_transfer_data":"Transfer data","transferData_title":"Settings","transferData_enter_valid_code":"Please enter a valid code","transferData_no_template_data":"No template data in response.","transferData_invalid_template_data":"Invalid template data.","transferData_template_loaded":"Template loaded.","transferData_failed_load_template":"Failed to load template.","transferData_failed_submit_code":"Failed to submit code.","transferData_unexpected_response":"Unexpected response from server.","transferData_failed_generate_code":"Failed to generate code.","transferData_copied":"Copied!","transferData_copy_failed":"Copy failed","transferData_back_to_options":"Back to options","transferData_share_access_code":"Share access code","transferData_create_code_desc":"Create a new code to share with others.","transferData_set_expiration":"Set expiration time","transferData_expiration_help":"Code will stop working after this time.","transferData_1_hour":"1 hour","transferData_24_hours":"24 hours","transferData_7_days":"7 days","transferData_30_days":"30 days","transferData_custom_expiration_label":"Custom expiration date and time","transferData_copy_to_clipboard":"Copy to clipboard","transferData_copy_code":"Copy code","transferData_generating":"Generatingโฆ","transferData_generate_code":"Generate code","transferData_enter_access_code":"Enter access code","transferData_enter_code_desc":"Use an existing code to open a template.","transferData_paste_or_type_code":"Paste or type code","transferData_access_code_label":"Access code","transferData_submitting":"Submittingโฆ","transferData_submit":"Submit","transferData_create_code_heading":"Create a new code to share","transferData_create_code_card_desc":"Generate a unique access code so others can open and use your design as a template.","transferData_enter_code_heading":"Enter an existing access code","transferData_enter_code_card_desc":"Enter the code you received to access and work with a shared design instantly.","transferData_submit_confirm_title":"Load template?","transferData_submit_confirm_message":"Undo and redo will not work after this action, and the current page content will be overridden. Do you want to continue?","transferData_submit_confirm_continue":"Continue","transferData_submit_confirm_cancel":"Cancel","transferData_paste_json_heading":"Paste template JSON","transferData_paste_json_card_desc":"Paste a full template JSON to replace the entire page content at once.","transferData_paste_json":"Paste JSON","transferData_paste_json_desc":"Paste the full template JSON below. It will replace all current page content.","transferData_paste_json_placeholder":"Paste template JSON here","transferData_load":"Load","transferData_enter_valid_json":"Please paste valid JSON","transferData_invalid_json":"The pasted text is not valid JSON.","top_divider":"Top divider","bottom_divider":"Bottom divider","shape":"Shape","slantLeft":"Slant left","slantRight":"Slant right","vShape":"V-shape","triangle":"Triangle","url":"URL","textColor":"Text color","fullscreen":"Fullscreen","both":"Both","flex-start":"Start","flex-end":"End","top":"Top","bottom":"Bottom","links":"Links","default_color_paragraphs":"Paragraphs","default_color_headings":"Headings","default_background_buttons":"Button fill","default_color_buttons":"Button text","primaryColor":"Primary","primaryContrastColor":"Primary alt","secondaryColor":"Secondary","secondaryContrastColor":"Secondary alt","design_pallete":"My color palette","solid":"Solid","gradient":"Gradient","theme":"Theme","color_palettes":"Palettes","gallery_hint":"Click a color to apply it. Bookmark to save.","gradient_presets":"Presets","gradient_stops":"Stops","add_stop":"Add stop","delete_stop":"Delete","background":"Background","svg_color":"Icon color","add_new_element":"Add new element","borderSize":"Border size","root":"Page","col":"Column","inline-image":"Inline image","link_of_button":"Where does the button lead?","choose_backgroundColor":"Choose background color","copy_to_here":"Copy here","new_item":"New item","click_to_add":"","remove":"Remove","font":"Font","template":"Template","justifyContent":"Horizontal align","alignItems":"Vertical align","foreColor":"Text color","marginBottom":"Bottom margin","icon_gallery":"Icon gallery","maxWidth":"Max width","whatTheBtnSays":"What does the button say?","button_design":"Button design","background:form":"Form background","background:fields":"Fields background","width:form":"Form width","getColorFromImage":"Get colors from image","open_image_editor":"Edit image","font_color":"Font color","icon_color":"Icon color","form:heading":"Let\'s talk, coffee\'s on us!","form:subHeading":"Want to schedule a meeting or just have a question? I\'d love to help! Leave your details and I\'ll get back to you soon","form:placeholder_color":"Placeholder color","borderWidth":"Border width","borderColor":"Border color","shadow":"Shadow","shadow_offset_x":"Horizontal offset","shadow_offset_y":"Vertical offset","shadow_blur":"Blur","shadow_spread":"Spread","padding_top":"Top padding","padding_bottom":"Bottom padding","margin":"Outer margin","spacer":"Spacer","delete_bcakground":"Remove background","edit_background":"Edit background","heading 1":"Heading 1","heading 2":"Heading 2","heading 3":"Heading 3","two images":"Two images","type":"Input type","opacity":"Opacity","backgroundColorAndOpacity":"Background color and opacity","rotate":"Rotate","is_active":"Is active?","where_the_image_link":"Where does the image lead?","is_user_wants_https":"Switch the link to https?","prompt_editor_context":"Consider existing text?","Enter_your_business_name":"Enter your business name","Enter_your_business_type":"Enter your business type","Enter_the_URL_of_the_page":"Enter your page URL","savedLinks":"Saved links","mergeTags":"Merge tags","loadingMore":"Loading more images...","expand_image_for_outlook_description":"Enable to keep the image proportions in Outlook.","prompt_editor_textarea_placeholder":"Describe the image you want to generate","describe_image_prompt_input":"Describe the image you want to generate","image_prompt_editor_description":"We can generate an image based on your description. Click the select button to choose from your gallery, or enter an external image URL.","insert_image":"Select","generate_image":"Generate image","generating":"Working on it...","creating_your_masterpiece":"Creating your image...","he":"Hebrew","en":"English","ar":"Arabic","empty_state":"It\'s quiet here.. shall we start a conversation?","labels":"Labels","add_table":"Add table","newFolderAdded":"Folder added successfully","file_moved_to_new_folder":"File moved to another folder","freeImages":"Free images","choose:":"Choose","searchImages":"Search images","menu":"Menu","delete_and_add":"Add and remove","what_would_u_like_to_link":"What would you like to add?","add_link":"Add link","name_of_nav":"Navigation button name","palletes":"Palettes","savedPalletes":"Saved palettes","savedToMainTab":"Saved to main tab","dashed":"Dashed","sendSms":"Send SMS","sendWhatsapp":"Send WhatsApp","sendEmail":"Send email","add_catchy_subject":"Add a catchy subject","remove_background_movie":"Remove background","remove_background":"Remove background","urlAddressToYoutVimeo":"URL for YouTube or Vimeo","height_in_section":"Height (100 stretches to full screen height)","numbers":"Numbers","titles":"Titles","go_to_edit_mode":"Back to edit mode","titlesStyle":"Titles style","delete_section":"Remove section","numbersStyle":"Numbers style","innerBackgroundColor":"Inner background","radius":"Radius","whereIframeLink":"Where does the iframe point?","whereIsLinkTo":"Where does the link point?","buttonText":"Button text","counterTitle:display":"Show titles","twoCards":"Two cards","threeCards":"Three cards","duo":"Due date","removeBlock":"Remove block","copy":"Copy","save_success":"Saved successfully","need_automations":"Need automation? Click the button. If you can\'t find what you need, we\'d love to hear how we can help.","menu_automations":"Automations menu","saved_successfully":"Action saved successfully","iconDirection":"Icon direction","hasIcon":"Enable icon?","transferData_save_event":"Save event","coming_soon_automations":"Coming soon! We believe you as business owners need an easy life! So we\'re working on an automations menu.","dimensions":"Dimensions","bc_title":"Business context","bc_empty":"No business context yet for this account.","bc_name":"Name","bc_business_name":"Business name","bc_business_type":"Business type","bc_tone":"Tone of voice","bc_tagline":"Tagline","bc_description":"Description","bc_summary":"Summary","bc_industry":"Industry","bc_category":"Category","bc_audience":"Target audience","bc_values":"Values","bc_keywords":"Keywords","bc_products":"Products","bc_services":"Services","bc_website":"Website","bc_domain":"Domain","bc_language":"Language","bc_logo":"Logo","bc_theme":"Brand theme","bc_colors":"Brand colors","bc_primary":"Primary","bc_secondary":"Secondary","bc_accent":"Accent","bc_contacts":"Contacts","bc_socials":"Social links","bc_email":"Email","bc_phone":"Phone","bc_design":"Design style","bc_design_desc":"Design description","bc_image_style":"Image style"}')},53577(t){"use strict";t.exports=JSON.parse('{"expand_all":"ืคืชืืืช ืืืงืืจืืืื","collapse_all":"ืกืืืจืช ืืืงืืจืืืื","gradient_presets":"ืชืื ืืืช ืฆืืข","gradient_stops":"ื ืงืืืืช ืฆืืข","ai_element_empty_connect_claude":"ืืชืืืจื ืโClaude ืืื ืืืฆืืจ ืืช ืืงืืข ืืื","ai_connect_intro":"ืื ื ืืช ืืงืืข ืืื ืขื Claude โ ืืื ืงืื.\\n1. ืืืกืืคื ืืช ืืืืจ Creaditor ืโClaude (ืืืคืชืืจ ืืืื).\\n2. ืืขืชืืงื ืืช ืืืืืขื ืืืืื ื ืืืืืืงื ืืืชื ืโClaude.","ai_connect_btn":"ืืชืืืจื ืโClaude","ai_connect_localhost_note":"ืืชื ืขื localhost. Claude ืืืื ืืจื ื ืื ืืืื ืืืืืข ืืฉืจืช ืืืงืืื โ ืืฉืชืืฉื ืโClaude Desktop, ืื ืืฉืคื ืืช ืืฉืจืช ืืจื ืื ืืจื ืฆืืืืจืืช (ืืืฉื ngrok).","ai_connect_url_label":"ืงืืฉืืจ ืืืืืจ (ืืืืืงื ืโClaude)","ai_connect_prompt_btn":"ืืขืชืงืช ืืืืขื ืโClaude","ai_connect_link_copied":"ืงืืฉืืจ ืืืืืืจ ืืืขืชืง โ ืืืืืงื ืืืชื ืืืืืจืืช ืืืืืจืื ืฉื Claude.","ai_connect_prompt_copied":"ืืืืืขื ืืืขืชืงื โ ืืืืืงื ืืืชื ืืฆืณืื ืฉื Claude.","name":"ืฉื","link":"ืงืืฉืืจ","secureLink":"ืงืืฉืืจ ืืืืืื","tel":"ืืืคืื","email":"ืืืืืื","items":"ืคืจืืืื","confirm":"ืืืฉืืจ","contact":"ืืฆืืจืช ืงืฉืจ","loadingMore":"ืฉืืืฃ ืชืืื ืืช ื ืืกืคืืช...","loading":"ืขืื ืจืืข...","image_in_progress":"ืืชืืื ื ื ืืฆืจืช...","expand_image_for_outlook_description":"ืืื ืฉืืชืืื ื ืชืืฆื ืืชืฉืืืจ ืขื ืคืจืืคืืจืฆืืืช - ืืคืขืืื ืืช ืืฆืณืงืืืงืก ืืื ืืฉืืืจ ืขื ืืืื ืืชืืื ื.","email_600":"ืืคืจืงืืืงืืช ืืืืืืฆืืช ืืขืืฆืื ืืืืืื ืงืืืขืืช ืฉืืืื ืืจืืื ืืืืืืืื ืฉื ื ืืืืืืจ ืืื 600 ืคืืงืกืืื. ืืกืคืจ ืื ืืื ืืกืื ืืจื ืืืฉื ืฉื ืื ืจืืืช.","mergeTags":"ืชืืืืช ืืืืื","simply:Scratchcard":"ืืจืืืก ืืืจืื","is_user_wants_https":"ืืืืืืฃ ืืช ืืงืืฉืืจ ืhttps?","social":"ืจืฉืชืืช ืืืจืชืืืช","prompt_editor_context":"ืืื ืืืชืืืืก ืืืงืกื ืืงืืื?","Enter_your_business_name":"ืืื ืืกื ืืช ืฉื ืืขืกืง ืฉืืื","Enter_your_business_type":"ืืื ืืกื ืืช ืกืื ืืขืกืง ืฉืืื","Enter_the_URL_of_the_page":"ืืื ืืกื ืืช ืืชืืืช ืืืฃ ืฉืืื","secure_link":"ืงืืฉืืจ ืืืืืื","bulletColor":"ืฆืืข ืืืืื","links_with_invalid_url":"ืงืืฉืืจืื ืขื ืืชืืืืช ืื ืชืงืื ืืช","images_without_alt":"ืชืืื ืืช ืืื ืชืืืืจ","savedLinks":"ืงืืฉืืจืื ืฉืืืจืื","sms_body_if_needed":"ืืืฃ ืืืืืขื ืื ื ืืจืฉ","whatsapp_body_if_needed":"ืืืืขืช ืืืืืกืืค ืื ื ืืจืฉ","twoImages":"ืฉืชื ืชืืื ืืช","fourImages":"ืืจืืข ืชืืื ืืช","threeImages":"ืฉืืืฉ ืชืืื ืืช","threeButtons":"ืฉืืืฉื ืืคืชืืจืื","borderSize":"ืขืจืืืช ืืืกืืจืช","file":"ืงืืืฅ","root":"ืืืฃ","col":"ืขืืืื","inline-image":"ืชืืื ื ืคื ืืืืช","link_of_button":"ืืื ืืืคืชืืจ ืืืืื ?","addedToFavorite":"ืืชืืืกืฃ ืืืืขืืคืื","removedFromFavorite":"ื ืืืง ืืืืืขืืคืื","choose_backgroundColor":"ืืืจื ืฆืืข ืจืงืข","removedSuccess":"ื ืืืง ืืืฆืืื","aToZ":"ื-ืช","zToA":"ืช-ื","anchorName":"ืฉื ืืขืืื","inputEmptyError":"ืืฉ ืืืื ืืช ืืฉืื","savedSuccess":"ื ืฉืืจ ืืืฆืืื","createdSuccessfully":"ืืืฆืข ืืืฆืืื","texts":"ืืงืกืืื","numOneAsFemale":"ืืืช","click_here_to_add":"ืืืฆื ืืืืกืคื","heading":"ืืืชืจืช","bigHeading":"ืืืชืจืช ืืืืื","readMore":"ืงืจืื ืขืื","mediumHeading":"ืืืชืจืช ืืื ืื ืืช","smallHeading":"ืืืชืจืช ืงืื ื","icons":"ืืืืงืื ืื","divider":"ืงื ืืคืจืื","bullets":"ืืืืืื","numbered":"ืืกืคืืจ","ok":"ืืืงื","newImage":"ืชืืื ื ืืืฉื","newFolder":"ืชืืงืื ืืืฉื","folders":"ืชืืงืืืช","edit":"ืขืจืืื","article":"ืืืืจ","videoWithArticle":"ืืืืื ืขื ืืืืจ","fit_colors":"ืฆืืขืื ืืชืืืืื","plainSection":"ืืงืืข ืจืืง","iamgeWithArticle":"ืชืืื ื ืขื ืืืืจ","imageWithText":"ืชืืื ื ืขื ืืงืกื","BulletsWithImage":"ืืืืืื ืขื ืชืืื ื","BulletsWithArticle":"ืืืืืื ืขื ืืืืจ","SocialNetwork":"ืจืฉืช ืืืจืชืืช","twoArticles":"ืฉื ื ืืืืจืื","twoButtons":"ืฉื ื ืืคืชืืจืื","threeArticles":"ืฉืืืฉื ืืืืจืื","imageWithBullets":"ืชืืื ื ืขื ืืืืืื","undo":"ืืืืื","redo":"ืืืฆืืข ืืืืฉ","wide":"ืืชืื ืืื ืืืืื","click_to_add":"","videos":"ืกืจืืื ืื","effects":"ืืคืงืืื","aurora":"ืืืืจ","empty_section_info":"ืืื ืืงืืข ืจืืง, ืืืฆื ืืื ืืื ืืืืกืืฃ ืืืืงืื","text:button":"ืื ืืืคืชืืจ ืืืืจ?","video":"ืกืจืืื","images":"ืชืืื ืืช","image":"ืชืืื ื","icon":"ืืืืงืื","giphy":"GIF","giphy_trending":"ืืจื ืื","giphy_search_tab":"ืืืคืืฉ","giphy_search_placeholder":"ืืคืฉ GIF (ืืืฉื ืฉืื, ืืืืืโฆ)","giphy_random_title":"GIF ืืงืจืื","giphy_no_results":"ืื ื ืืฆืื GIF. ื ืกื ืืืืืช ืืคืชื ืืืจืืช.","giphy_type_to_search":"ืืงืื ืืืืช ืืคืชื ืืืืฅ ืืืคืืฉ.","giphy_no_available":"ืืื GIF ืืืื ืื.","weight":"ืขืืื","buttons":"ืืคืชืืจืื","button":"ืืคืชืืจ","general":"ืืืื","all":"ืืื","myImages":"ืืชืืื ืืช ืฉืื","uploadSuccess":"ืืขืืื ืืืฉืืื","fromOldToNew":"ืืืืฉื ืืืืฉ","fromNewToOld":"ืืืืืฉ ืืืฉื","download":"ืืืจืื","quotes":"ืฆืืืื","recommended":"ืืืืืฅ","save_block":"ืฉืืืจืช ืืืืง","what_category":"ืืืืื ืงืืืืจืื?","middle":"ืืืฆืข","give_name_to_block":"ืชื ื ืฉื ืืืืืง","quote":"ืฆืืืื","no_responsive":"ืืืืื ืจืกืคืื ืกืืืืืช","home_page":"ืืฃ ืืืืช","quote | image":"ืฆืืืื | ืชืืื ื","image | quote":"ืชืืื ื | ืฆืืืื","image | card":"ืืจืืืก | ืชืืื ื","card | image":"ืชืืื ื | ืืจืืืก","quotesWithText":"ืฆืืืื ืขื ืืงืกื","delete":"ืืืืงื","anchor":"ืขืืื","drag_section":"ืืืืืคื ืืืงืื ืขื ืืงืืข ืืืจ","drag_block":"ืืืฆื ืืืืืจื ืื ืืจืจื ืืฉื ืืช ืืช ืืืืงืื","remove_block":"ืืกืจืช ืืืืง","duplicate_block":"ืฉืืคืื ืืืืง","deleteElement":"ืืืืงืช ืืืื ื","deleteBlock":"ืืืืงืช ืืืืง","preview":"ืชืฆืืื ืืงืืืื","design":"ืขืืฆืื","style":"ืกืื ืื","tabs_hint_title":"ืืืค: ืืขืืจ ืืื ืืืฉืื ืืืช","tabs_hint_body":"ืืฉืชืืฉื ืืืฉืื ืืืช ืืื ืืขืืืจ ืืื ืืืืจืืช, ืื ืืืฆืืืช, ืืื ืืจืืงืฆืืืช ืืกืื ืื โ ืืืื ืืื ืืืื ื, ืืืื ืงืืฉืืจ ืฉื ืืคืชืืจ.","got_it":"ืืื ืชื","alignment":"ืืืฉืืจ","horizontal_align":"ืืืฉืืจ ืืืคืงื","vertical_align":"ืืืฉืืจ ืื ืื","ai":"AI","changeName":"ืฉืื ืื ืฉื","upload":"ืืขืืืช ืชืืื ื","noImagesYet":"ืืื ืชืืื ืืช ืขืืืื","uploadOrPickImages":"ืืขืื ืชืืื ื ืื ืืืจื ืืชืืื ืืช ืืื ืืืืช.","add":"ืืืกืคื","publish":"ืคืจืกื","addons":"ืชืืกืคืืช","duo":"ืืืขื","position":"ืืืงืื","drag_to_move_click_to_options":"ืืจืืจื ืืืืื, ืืืืฆื ืืืืืจืืช","save":"ืฉืืืจื","repeat":"ืืืืจ","autoplay":"ืืคืขื ืืื","expand_image_for_outlook":"ืืืืืช ืชืืื ื ืืืืืืืืง","errors_to_fix":"ืฉืืืืืช ืืชืืงืื","buttons_without_links":"ืืคืชืืจืื ืืื ืงืืฉืืจ","images_with_default_src":"ืชืืื ืืช ืขื ืืชืืืช ืืืคืืืืืช","urlAddressToYoutVimeo":"ืฉืืจืช ืืชืืืช ืืืืืืื, ืืืืื","add_urlAddress_from_media_site":"ืงืืฉืืจ ืืืฆืื ื","remove_background_movie":"ืืกืจืช ืจืงืข","remove_background":"ืืกืจืช ืจืงืข","playInLoop":"ืืคืขื ืืืืค","height_in_section":"ืืืื, 100 ืืคืจืก ืืื ืืืื ืืืกื ืืืชืื ืืืืฉืืจ","cellSpace":"ืจืืืื ืชื","numbers":"ืืกืคืจืื","titles":"ืืืชืจืืช","go_to_edit_mode":"ืืืจื ืืืฆื ืขืจืืื","auto":"ืืืืืืื","search":"ืืืคืืฉ","showAsImage":"ืืฆื ืืชืืื ื","titlesStyle":"ืขืืฆืื ืืืืชืจืืช","delete_section":"ืืกืจืช ืืงืืข","numbersStyle":"ืขืืฆืื ืืืกืคืจืื","slientMode":"ืืฆื ืืฉืชืง","ratioLock":"ื ืขืืืช ืืืก","choose_your_duo_date":"ืืืจื ืืช ืืืืขื ืืกืืคื","videoLink":"ืงืืฉืืจ ืืกืจืืื","openAsModal":"ืคืชื ืชืืื ื ืืืืื ืฆืฃ","innerBackgroundColor":"ืจืงืข ืคื ืืื","radius":"ืจืืืืก","iconColor":"ืฆืืข ืืืืืงืื ืื","whereIframeLink":"ืืื ืืืืืคืจื ืืืืื?","whereIsLinkTo":"?ืืื ืืงืืฉืืจ ืืืืื","dividerColor":"ืฆืืข ืงื ืืคืจืื","buttonText":"ืืงืกื ืืืคืชืืจ","settings":"ืืืืจืืช","counterTitle":"ืืฆืืช ืืืชืจืืช","foreColor":"ืฆืืข ืืืงืกื","colors":"ืฆืืขืื","marginBottom":"ืจืืืื ืชืืชืื","color":"ืฆืืข","openGalleryImage":" ืืืจืืืช ืชืืื ืืช","icon_gallery":"ืืืจืืืช ืืืืงืื ืื","folderName":"ืฉื ืชืืงืื","addFolder":"ืืืกืคืช ืชืืงืื","newFolderAdded":"ืืชืืงืื ืื ืืกืคื ืืืฆืืื","file_moved_to_new_folder":"ืืงืืืฅ ืืืขืืจ ืืชืืงืื ืืืจืช","add_block":"ืืืกืคืช ืืืืง","counterColor":"ืฆืืข ืืืื ื","chooseBlock":"ืืจืืจ ืืืืง","automations":"ืืืืืืฆืืืช","list-settings":"ืืชืงืื","page_background":"ืจืงืข ืืืฃ","bgColor_blocks":"ืจืงืข ืืืืืงืื","create_anchor":"ืฆืจืืืื ืขืืื? ืืืฆื ืคื","copy":"ืืขืชืง","uploading":"ืื ื ืขืืื ืขื ืื!","verifying":"ืจืืข... ืืื ืืืืงืืช ืงืื ืืช","completed":"ืืื... ืกืืืืชื!","timeout":"ืืืคืก! ืื ืืืื ืื ืงืจื ืคื...","copy_to_here":"ืืขืชืงื ืืืื","addLinks":"ืืืกืคืช ืงืืฉืืจ","keep_ratio":"ืฉืืืจืช ืืืก","list-check":"ืืืื ืืื","powered_by_pexels":"ืื ืืชืืื ืืช ืืืชืจ Pexels","image_micro_copy":"ืืืกืืคื ืชืืื ื(ืืื ืืืช ืืคื) ืืืืืฆื ืขื ืืืคืชืืจ, ืื ืืืืฆื ืืคืืื ืขื ืืชืืื ื","typography_micro_copy":"ืกืื ื ืืืืืง ืืช ืืืืื, ืื ืืืื ืื ืืืื ืืขืฆื ืืช ืืืงืกื","icons_list_micro_copy":"ืืืืื ืืืืื ืื ื ืจืื ืจืฆืื ื ืืืืืื, ืืืืืคื ืืืชื ืขื ืืืืงืื ืืขืืฆื ","anchor_name_micro_copy":"ืชื ื ืืขืืื ืฉื ืขืืฉืื, ืืชืืืื ืืืฆืื ืืืชื ืืขืจืืืช ืืงืืฉืืจืื ืืืจ ืื.","anchor_free_position":"ืืืงืื ืืืคืฉื ืขื ืืงื ืืก","click_to_remove":"ืืืฆื ืืื ืืืกืืจ","imageEditTitle":"ืขืจืืืช ืชืืื ื","generate_content":"ืืฆืืจืช ืชืืื","creating_magic":"ืื ื ืืืฆืจ ืืช ืืชืืื ืฉืืื...","address":"ืืชืืืช","prompt_editor_title":"ืืฆืืจืช ืชืืื","prompt_editor_textarea_placeholder":"ืชืืจื ืืช ืืชืืื ื ืฉืืจืฆืื ืื ืืืืฆืจ","block_width":"ืจืืื ืืืืืงืื","describe_image_prompt_input":"ืชืืจื ืืช ืืชืืื ื ืฉืืจืฆืื ืื ืืืืฆืจ","image_prompt_editor_description":"ืื ืื ื ืืืืืื ืืืืฆืจ ืชืืื ื ืืืชืื ืืชืืืืจ ืฉืชืืชืื ืืื, ืืืืืฆื ืขื ืืคืชืืจ ืืืืืจื ืชืืืื ืืืืืจ ืชืืื ื ืืืืจืืืช ืืชืืื ืืช ืฉืืื, ืื ืืืื ืืก ืืชืืืช ืชืืื ื ืฉื ืชืืื ื ืืืฆืื ืืช","insert_image":"ืืืืจื","generate_image":"ืืฆืืจืช ืชืืื ื","generating":"ืื ื ืขืืื ืขื ืื...","creating_your_masterpiece":"ืื ื ืืืฆืจ ืืช ืืชืืื ื ืฉืื...","he":"ืขืืจืืช","en":"ืื ืืืืช","ar":"ืขืจืืืช","empty_state":"ืฉืงื ืคื.. ืฉื ืชืืื ืฉืืื?","videoEditTitle":"ืขืจืืืช ืกืจืืื","backgroundColor":"ืฆืืข ืจืงืข","labels":"ืืืชืจืืช","add_table":"ืืืกืคืช ืืืื","button_design":"ืขืืฆืื ืืืคืชืืจ","background:form":"ืจืงืข ืืืืคืก","background:fields":"ืจืงืข ืืฉืืืช","width:form":"ืจืืื ืืืืคืก","no_editor:title":"ืขืืืื ืื ืืฆืจื ื ืขืจืืื ืืืืื ื ืืื, ืื ืื ื ืขืืืืื ืขื ืื.","addons_menu:title":" ืชืคืจืื ืืชืืกืคืื, ืื ืืืืง ืืืขื ืืื, ืคื ื ืืชื ืืืฆืื ืชืืกืคืื ืืฉืืจืื ืืชืืื ืฉืืื. ืคืืฆ\'ืจืื ื ืืกืคืื ืืขืื ืืงืจืื. ืื ืชืืื ื ืืชื ืืืจืืจ ืืช ืืืืื ื ืืืืืง ืื ืืงืืข ืืืจืืจื ืืืคืฉืืช ืืื ื ืงืืื ืฉืชืจืฆื..","sections_menu:title":"ืชืคืจืื ืืงืืขืื, ืืฆืืจืช ืืงืืข ืืืจืฉืช ืชืฉืืืช ืื ืจืื ืืฆืจืืื ืฉืื, ืื ืื ื ืขืื ืขืืืืื ืขื ืื, ืื ืชืืื ื ืืชื ืืืฆืืจ ืืงืืข ืจืืง.","Hero โ split with image":"ืืืชืจืช ืจืืฉืืช โ ืคืืฆืื ืขื ืชืืื ื","Features โ 3 icon cards":"ืืชืจืื ืืช โ ืฉืืืฉื ืืจืืืกื ืืืืงืื","Testimonial โ centered quote":"ืืืืฆื โ ืฆืืืื ืืืืจืื","backgrounds_menu:title":"ืชืคืจืื ืจืงืขืื, ืืืจื ืจืงืข, ืืื ืืื ืืคื, ืืืจืจื ืืืชื ืืืืืง ืื ืืงืืข.","blocks_menu:title":"ืชืคืจืื ืืืืงืื, ืคื ื ืืชื ืืืฆืื ืงืืืคืืืฆืืืช ืฉื ืืื ืืืื ืืื ืฉืื ืื, ื ืืชื ืืืจืืจ ืืืชื ืืื ืืืืืงืื ืืฉืื ืื ืืืื ืืืงืืขืื ","elements_menu:title":"ืชืคืจืื ืืืื ืืื, ืืจืจื ืืช ืืืืื ื ืืฆื ืืืื ื, ืืชืงืจืื ืืคืื ื ืืื ืืคืชืื ืืชื ืืืฉ, ืื ืคืฉืื ืืชืืช ืืืืืง ืืืฆืืจืช ืืืืง ืืืฉ","size_options":"ืืืืืช","backgrounds":"ืจืงืขืื","no_results":"ืื ื ืืฆืื ืชืืฆืืืช","contactForError":"ืืืื ืขื ืฉืืืื","contactForErrorDesc":"ื ืชืงืืช ืืืชื ืืืืช ืื ืฆืคืืื? \\n ืืืฅ ืืื ืืืืืื ืขื ืชืงืื","fetureRequest":"ืืงืฉื ืืชืืกืคืืช","pastePageContent":" ืืืืงืช ืชืืื ืืืื","titleColor":"ืฆืืข ืืืชืจืช","agreeToOverride":"ืื ื ืืืฉืจ ืืืืืง ืืช ืืชืืื ืืงืืื ืืืืืืืคื ืืชืืื ืฉืืืขืชืง.","overridePageContent":"ืืืจืช ืืืืืืง ืชืืื ืฉื ืืืื ืืืจ ืืชืื ืืืฃ ืื. \\n ืืืืืงื ืชืืืง ืืช ืืชืืื ืืงืืื ืืืฃ ืืชืืืืง ืืืงืืื ืืช ืืชืืื ืฉืืืขืชืง.","fetureRequestDesc":"ืืกืจ ืื ืคืืฆ\'ืจ ืืืฉืื ? \\n ืืืฅ ืืื ืืืงืฉื ืืืืกืคืช ืืืื ืืขืืจื","copyPageContent":"ืืขืชืงืช ืชืืื ืืืฃ ืืืฉืืื ืืืจ","copyPageContentDesc":"ืืืฆื ืืื ืืื ืืืขืชืืง ืืช ืืชืืื ืืืฃ ืืืฉืืื ืืืจ ืฉืืื ืืืฉืืื","pasteContent":"ืืืืงืช ืชืืื ืืืฉืืื ืืืจ","pasteContentDesc":"ืืืฆื ืืื ืืื ืืืืืืง ืชืืื ืืฃ ืฉืืขืชืงื ืืืฉืืื ืืืจ ืฉืืื ืืืฉืืื","generalText":"ืืื ืื ื ื ืจืฉืื ืืช ืืงืกื ืืืื ืืืฉืื ืขื ืืืืฆืจ ืฉืื ื. ืืื ืืืืจ ืืงืกื ืืืื ืืืฉืื ืืืคืฉื ืืืืจื ","longText":"ืืื ืื ื ื ืจืฉืื ืืช ืืงืกื ืืืื ืืืฉืื ืขื ืืืืฆืจ ืฉืื ื. ืืื ืืืืจ ืืงืกื ืืืื ืืืฉืื ืืืคืฉื ืืืืจื, ืืคืฉืจ ืืจืฉืื ืืื ืื ืฉืืชืืฉืง ืืื ืื ืขืื ืืืืืจ ืืชืืื ืืขื ืืื.","textBlock":"ืืืืง ืืงืกื","component_selected":"ื ืืืจ ืืืืง","component_unselected":"ืืืืง ืื ื ืืืจ","countdown":"ืืื ื ืืื","counterBlock":"ืืืืง ืงืืื ืืจ","bulletBlock":"ืืืืง ืืืืืื","singleImage":"ืชืืื ื ืืืืืช","allImages":"ืื ืืชืืื ืืช","add_section":"ืืืกืคืช ืืงืืข","bulletWithImageBlock":"ืืืืง ืืืืืื ืืฆื ืชืืื ื","header1block":"ืืืชืจืช ืจืืฉืืช","bold":"ืืืืฉื","underline":"ืงื ืชืืชืื","italic":"ืืงืกื ื ืืื","strikeThrough":"ืงื ืืืฆื","saved_links":"ืงืืฉืืจืื ืฉืืืจืื","forecolor":"ืฆืืข ืืงืกื","numberColor":"ืฆืืข ืืืกืคืจืื","threeCells":"ืฉืืืฉื ืชืืื","twoCells":"ืฉื ื ืชืืื","backcolor":"ืจืงืข ืืงืกื","fontFamily":"ืืืคื","fontWeight":"ืืฉืงื ืืคืื ื","back":"ืืืืจ","fontSize":"ืืืื ืืืคื","text_micro_copy":"ืืชืื ืฉ\\"ื ืืื ืืืืฆื ืขื ืจืืื.. ืืืืชื? ืฉืชืคื ืืืชื ื (: ","direction":"ืืืืื","right":"ืืืื","left":"ืฉืืื","scroll":"ืืืืื","new_item":"ืคืจืื ืืืฉ","center":"ืืจืื","top":"ืืืขืื","bottom":"ืืืื","next":"ืฉืื ืืื","twoCards":"ืฉื ื ืืจืืืกืื","threeCards":"ืฉืืืฉื ืืจืืืกืื","justify":"ืืชืืื","remove":"ืืกืจื","unLink":"ืืกืจืช ืงืืฉืืจ","appendImage":"ืืืกืคืช ืชืืื ื","appendVideo":"ืืืกืคืช ืกืจืืื","blocks":"ืืืืงืื","page":"ืืฃ","section":"ืืงืืข","sections:title":"ืืงืืขืื","sections:count":"ืืงืืขืื","sections:categories":"ืงืืืืจืืืช","sections:search_placeholder":"ืืืคืืฉ ืืงืืขโฆ","sections:search_results":"ืชืืฆืืืช ืืืคืืฉ","sections:add_hint":"ืืจืจื ืืืืกืคื","sections:no_results":"ืื ื ืืฆืื ืืงืืขืื ืืชืืืืื ืืืืคืืฉ.","sections:try_different_search":"ื ืกื ืืืืช ืืืคืืฉ ืืืจืช.","sections_cat:all":"ืืื","sections_cat:hero":"ืคืชืื","sections_cat:about":"ืืืืืช","sections_cat:services":"ืฉืืจืืชืื","sections_cat:pricing":"ืืืืจืื","sections_cat:team":"ืฆืืืช","sections_cat:testimonials":"ืืืืฆืืช","sections_cat:faq":"ืฉืืืืช ื ืคืืฆืืช","sections_cat:blog":"ืืืื ืืชืืื","sections_cat:cta":"ืงืจืืื ืืคืขืืื","sections_cat:footer":"ืืืชืจืช ืชืืชืื ื","sections_cat:blank":"ืจืืง","block":"ืืืืง","pageSetting":"ืืืืจืืช ืืืฃ","home":"ืืืช","about":"ืืืืืช","text":"ืืงืกื","accordion":"ืืงืืจืืืื","clear":"ื ืืงืื","articleTitle":"ืืืชืจืช ืืืืจ","quick_add":"ืืืกืคื ืืืืจื","Header1Web":"ืืืชืจืช","shortText":"ืืฉืื ืืฉืื ืฉืขื ืืืงืืืืช ืืืขืช","articleMore":"ืืฆื ืขืื","emoji":"ืืืืืืงืื","smart_change":"ืืืืคื ืืืื","writing_settings":"ืืชืืื","smart_change_description":"ืืืืืฃ ืืืืืืืืช ืงืืฆืืจื ืืงืกื ืชืื ืืื ืืงืืื โ โ:)โ ืืืคื ืโ๐, โ<3โ ืืืคื ืโโค๏ธ, โ--\x3eโ ืืืคื ืโโ. ืืืืืจื ืืื ืขื ืื ืจืืืื ืืืงืกื ืืขืืฆืื.","lineHeight":"ืืืื ืฉืืจื","two images":"ืฉืชื ืชืืื ืืช","heading 1":"ืืืชืจืช ืืืืื","heading 2":"ืืืชืจืช ืืื ืื ืืช","heading 3":"ืืืชืจืช ืงืื ื","textAlign":"ืืืืื ืืงืกื","sendTest":"ืฉืืืืช ืืืืงื","Duplicate":"ืฉืืคืื","DragHere":"ืืจืืจ ืคื","imageSize":"ืืืื ืชืืื ื","alignImage":"ืืืงืื ืชืืื ื","fullWidthOnMobile":"ืจืืื ืืื ืืืืืืื","delete_bcakground":"ืืกืจืช ืจืงืข","edit_background":"ืขืจืืืช ืจืงืข","altText":"ืืงืกื ืืืืืคื","gallery":"ืืืจืืื","padding":"ืจืืืื ืคื ืืื","padding_top":"ืจืืืื ืขืืืื","padding_bottom":"ืจืืืื ืชืืชืื","margin":"ืจืืืื ืืืฆืื ื","size":"ืืืื","coming_soon":"ืืืืข ืืงืจืื","amp":"AMP","coming_soon_amp":"AMP ืืืืข ืืงืจืื!\\nืืืืืืืื ืืื ืืจืืงืืืืืื ืืกืื ืื ืืคืืืงืฆืื โ ืกืงืจืื, ืืคืกืื, ืงืจืืกืืืช ืืชืืื ืื, ืืฉืืจืืช ืืชืื ืชืืืช ืืืืืจ.","spacer":"ืกืคืืืกืจ","borderWidth":"ืืืื ืืืืจืืจ","borderColor":"ืฆืืข ืืืืจืืจ","shadow":"ืฆื","shadow_color":"ืฆืืข ืืฆื","shadow_offset_x":"ืืืกื ืืืคืงื","shadow_offset_y":"ืืืกื ืื ืื","shadow_blur":"ืืฉืืืฉ","shadow_spread":"ืคืืืืจ","default_background_buttons":"ืฆืืข ืจืงืข ืืืคืชืืจืื","default_color_buttons":"ืฆืืข ืืงืกื ืืืคืชืืจืื","background":"ืจืงืข","svg_color":"ืฆืืข ืืกืื","width":"ืจืืื","makeCircle":"ืฉืืืจื ืขื ืืชืืื ื ืืขืืืื","add_now":"ืืืกืคื","card":"ืืจืืืกืื","go_back":"ืืืจื ืืืืจื","add_new_element":"ืืืกืคืช ืืืื ื ืืืฉ","what_the_anchor_name":"ืฉื ืืขืืื","form:manage_fields":"ื ืืืื ืืฉืืืช ืืืืคืก","accessories":"ืชืืกืคืืช","jhon_lennon":"ื\'ืื ืื ืื","jhon_lennon_qoute":"ืืืืื ืื ืื ืฉืงืืจื ืืืื ืฉืืชื ืขืกืืง ืืืชืื ื ืชืืื ืืืช ืืืจืืช","headingText":"ืืงืกื ืืืชืจืช","height":"ืืืื","unit":"ืืืืื","rotate":"ืกืืืื","dateAndTime":"ืชืืจืื ืืฉืขืช ืกืืื","hour":"ืฉืขื","is_active":"ืืื ืคืขืื?","where_the_image_link":"ืืื ืืชืืื ื ืืืืืื?","minutes":"ืืงืืช","alignButton":"ืืืงืื ืืคืชืืจ","favorites":"ืืืขืืคืื","main":"ืจืืฉื","type":"ืกืื ืื","opacity":"ืฉืงืืคืืช","backgroundColorAndOpacity":"ืฆืืข ืจืงืข ืืฉืงืืคืืช","mediaType":"ืกืืื ืืืื","filter":"ืกืื ืื","elements":"ืืืื ืืื","freeImages":"ืชืืื ืืช ืืืื ื","choose:":"ืืืืจื","sendTestMail":"ืฉืืืืช ืืืืขืช ืืืืงื","AddNewAddress":"ืืืกืคืช ืืืื ื ืืกืฃ","searchImages":"ืืืคืืฉ ืชืืื ืืช","send":"ืฉืืืื","fontNameWholePage":"ืคืื ื ืืื ืืืฃ","blockMenuInfo":"ืืืฅ ืขื ืืื ืืชืืืืช ืืืืืจื ืืืืืฆื ื ืืกืคืช ืืืืืื *","menu":"ืชืคืจืื","menu_widget":"ืชืคืจืื","emailAddress":"ืืชืืืช ืืืืื","addEmoji":"ืืืกืคืช ืืืืืืงืื","addBackcolor":"ืืืกืคืช ืฆืืข ืจืงืข","addForcolor":"ืืืกืคืช ืฆืืข ืืงืกื","openNewTab":"ืคืชื ืืืื ืืืฉ","stayOnSamePage":"ืืฉืืจ ืืืืชื ืืืฃ","desktopMode":"ืืฆื ืืคืืคื ืืืื","lastColors":"ืฆืืขืื ืืืจืื ืื","colorsInPage":"ืฆืืขืื ืืืฃ","getColorFromImage":"ืืฆืืช ืฆืืขืื ืืชืืื ื","addressWithExample":"ืืชืืืช (ืืืืื: ืคืชื ืชืงืืื, ืืกืืืื 18)","maps":"ืืคืืช","map":"ืืคื","layout":"ืคืจืืกื","animations":"ืื ืืืฆืืืช","close_scheme_locked":"ื ืขื ืกืืืืช ืฆืืขืื","open_scheme_locked":"ืคืชืืืช ืกืืืืช ืฆืืขืื","event":"ืืืจืืข","audio":"ืฉืืข","addNew":"ืืืกืฃ ืืืฉ","delete_and_add":"ืืืกืคื ืืืกืจื","what_would_u_like_to_link":"ืื ืชืจืฆื ืืืืกืืฃ?","add_link":"ืืืกืคืช ืงืืฉืืจ","name_of_nav":"ืฉื ืืคืชืืจ ืื ืืืื","urlAddress":"ืฉืืจืช ืืชืืืช","can_Open_Gallery_With_Double_Click_On_The_Image":" ืคืชืืืช ืืืืจืืื ืขื ืืื ืืืืฆื ืืคืืื ืขื ืืชืืื ื","uploadFile":"ืืขืืื ืฉื ืงืืืฅ ืืืฉ","FileSelection":"ืืืืจืช ืงืืืฅ","this_is_empty_iframe_start_add_url_link":"ืื ืืืืคืจื ืจืืง, ืืืกืืคื ืงืืฉืืจ ืืืชืืืช ืืื ืืจื ื","yes,Create":"ืื, ืฆืืจ ืชืืงืื","letterSpacing":"ืจืืืื ืืื ืืืืชืืืช","spacing":"ืจืืืืืื","solid":"ืืืื","palletes":"ืคืืืื","savedPalletes":"ืคืืืื ืฉืืืจืื","savedToMainTab":"ืฉืืืจ ืืืฉืื ืืช ืจืืฉืืช","dashed":"ืืงืืงื","advanced":"ืืชืงืื","Select_an_element_to_edit_its_properties":"ืืืจื ืืืื ื ืื ืืืฆื ืขื ืืืกืคื ืืื ืืืชืืื ืืืฆืืจ","maxWidth":"ืจืืื ืืงืกืืืื","whatTheBtnSays":"ืื ืืืคืชืืจ ืืืืจ?","sendSms":"ืฉืืืืช ืกืืก","sendWhatsapp":"ืฉืืืืช ืืืืืกืืค","sendEmail":"ืฉืืืืช ืืืื","what_the_url_address":"ืืื ืฉืืจืช ืืืชืืืช ืฉืชืจืฆื ืืืืกืืฃ?","add_catchy_subject":"ืืืกืืคื ื ืืฉื ืงืืื","what_the_email_address":"ืืื ืืืืื ืืฉืื?","what_the_phone_number":"ืืื ืืกืคืจ ืืืืคืื?","what_the_phone_number_to_send_msg":"ืืื ืืกืคืจ ืืืื ืชืฉืื ืืืืืขื?","email_body_if_needed":"ืชืืื ืืืฃ ืืืืื","active_on-scroll":"ืืคืขื ืืืืืื","active_on-hover":"ืืคืขื ืืืฆื ืจืืืืฃ ืขื ืืขืืืจ","drag_or_click":"ืืจืืจื","heading-1":"ืืืชืจืช ืืืืื","svg-element":"ืืืื ื SVG","divider-element":"ืงื ืืคืจืื","iframe":"ืืืืคืจื","html-code":"ืงืื HTML","video with text":"ืืืืื ืขื ืืงืกื","image with text":"ืชืืื ื ืขื ืืงืกื","quotes-block":"ืืืืง ืฆืืืื","animation_deleted":"ืืื ืืืฆืื ื ืืืงื","animation_added":"ืืื ืืืฆืื ื ืืกืคื","show_on_desktop":"ืืฆื ืืืืฉื ืืืื","show_on_mobile":"ืืฆื ืืืืฉืืจ ื ืืื","show_on_tablet":"ืืฆื ืืืืฉืืจ ืืืืื","desktop":"ืืืฉื","tablet":"ืืืืื","mobile":"ื ืืื","show_element_on":"ืืฆื ืืช ืืจืืื ืืืืฉืืจืื","view_as":"ืืฆื ื","filter_items":"ืกื ื ืคืจืืืื","show_on":"ืืฆื ื","properties":"ืืืคืืื ืื","ID_with_description":"ืืืื (ID)","on_hover":"ืืืฆื ืจืืืืฃ ืขื ืืขืืืจ","on_scroll":"ืืืืืื","menu-widget":"ืชืฆืืืช ืชืคืจืื","setting_section":"ืืืืจืืช ืกืงืฉื","setting_block":"ืืืืจืืช ืืืืง","remove_element":"ืืกืจืช ืืืื ื","drag_element":"ืืจืืจืช ืืืื ื","max_width":"ืจืืื ืืงืกืืืื","open_gallery":"ืคืชืืืช ืืืจืื","open_gallery_icons":"ืืืจืืืช ืืืืงืื ืื","number_size":"ืืืื ืืืกืคืจืื","large":"ืืืื","medium":"ืืื ืื ื","small":"ืงืื","extra-large":"ืืืื ืืืื","without_radius":"ืืื ืจืืืืก","design_custom_list":"ืขืืฆืื ืจืฉืืื ืืืชืืืช ืืืฉืืช","display_mode":"ืืืคื ืืฆืื","filter_canvas_helper":"ืกื ื ืชืฆืืื ืืคื ืืืฉืืจ","left-to-element":"ืฉืืื ืืืืื ื","right-to-element":"ืืืื ืืืืื ื","bottom-to-element":"ืืชืืช ืืืืื ื","top-to-element":"ืืขื ืืืืื ื","open-new-cell-from-right":"ืืืกืคื ืืชื ืืืฉ ืืืืื","open-new-cell-from-left":"ืืืกืคื ืืชื ืืืฉ ืืฉืืื","open-new-block-from-bottom":"ืืืกืคื ืืืืืง ืืืฉ ืืชืืช","open-new-block-from-top":"ืืืกืคื ืืืืืง ืืืฉ ืืขืื","description":"ืชืืืืจ","title":"ืืืชืจืช","keywords":"ืืืืืช ืืคืชื","favicon":"ืกืื ืืืฆื","cancel":"ืืืืื","standard":"ืกืื ืืจืื","ready_to_publish":"ืืืื ืืคืจืกืื","lets_set_some_seo":"ืืืื ื ืืกืืฃ ืืื ืืืืจืืช SEO","seo_title_label":"ืฉื ืืืฃ ืืชืฆืืื ืืื ืืขื ืืืคืืฉ ืืืจืฉืชืืช ืืืจืชืืืช (SEO)","seo_title_placeholder":"ืฉื ืืืฃ ืืคื ืฉืืืคืืข ืืื ืืขื ืืืืคืืฉ","seo_description_label":"ืชืืืืจ ืืืฃ ืืงืืืื ืืื ืืขื ืืืคืืฉ ืืืจืฉืชืืช ืืืจืชืืืช (SEO)","seo_description_placeholder":"ืชืืืืจ ืื ืืืคืืข ืืชืืช ืืืืชืจืช ืืืชืจ ืืื ืืขื ืืืืคืืฉ","seo_keywords_label":"ืืืืืช ืืคืชื (keywords)","seo_keywords_placeholder":"ืืืืืื: gift,woman,gift for woman","seo_generate_tooltip":"ืืฆืืจื ืขื AI","seo_generate_empty":"ืืืกืืคื ืชืืื ืืืฃ ืืคื ื ืืืฆืืจื ืขื AI.","seo_generate_failed":"ืื ืืฆืืื ื ืืืฆืืจ. ื ืกื ืฉืื.","published":"ืคืืจืกื!","publishedSub":"ืืืชืจ ืฉืื ืืืืืืจ.","view_site":"ืฆืคืืื ืืืชืจ","copy_link":"ืืขืชืงืช ืงืืฉืืจ","link_copied":"ืืงืืฉืืจ ืืืขืชืง","search_preview_label":"ืื ืืืฃ ืฉืื ืืืคืืข ืืืืื","We_are_building_your_page":"ืื ืื ื ืืื ืื ืืช ืืขืืื ืฉืื","inner_blocks":"ืืจืื ืืืงืืข","drag_here":"ืืจืจื ืืืื","advance_options":"ืืคืฉืจืืืืช ืืชืงืืืืช","duplicate_template_code":"ืงืื ืืฉืืคืื ืชืื ืืช","copied":"ืืืขืชืง","click_to_copy":"ืืืฆื ืืืขืชืงื","fade_in":"ืืืคืขื ืืืจืืชืืช","fade_in_down":"ืืืคืขื ืืืคื ืืื","back_in_down":"ืื ืืกื ืืืืื","back_in_right":"ืื ืืกื ืืืืื","bounce":"ืงืืคืฆื ื","tada":"ืฉืืงืฉืืง","saved_theme":"ืขืืฆืื ืฉืืืจ","open_colorpicker":"ืืืืจื ืฉื ืฆืืข ืืืฉื","colors_that_created_from_image":"ืฆืืขืื ืฉื ืืฆืจื ืืชืืื ื","publish_success":"ืคืจืกืื ืืืฆืข ืืืฆืืื","open_the_page":"ืคืชืืืช ืืขืืื ืืืฃ ืืืฉ","close":"ืกืืืจื","title_size":"ืืืื ืืืชืจืืช","ilustrations":"ืกืืืื","svg":"ืกืื","click_to_refresh":"ืืืืฆื ืืจืขื ืื ืืืฃ","error_client_disconnected":"ืืืคืก! ืืืืืืจ ืืฉืจืช ื ืืชืง, ืืืฆื ืขื ืจืขื ืื ืืืฃ ืืื ืืืืฉืื ืืขืืื, ืื ืชืืื ืงืืื ื ืืช ืื ืชืื ืื ืืื ืื ื ืขืืืืื ืขื ืคืชืจืื ืืืขืื, ืขืื ืกืืืื ืืืืฉื ืขืืืื ืืื ื","connection_error":"ืืืืืืจ ื ืืชืง ๐ฑ, ืืื ืื ืืืื, ืืชืืื ื ืฉืืจ","typography":"ืืืคืืืจืคืื","more_colors":"ืฆืืขืื ื ืืกืคืื","button_submit_form":"ืฉืืืื","get_started":"ืืชืืืื ืขืืฉืื","design_form":"ืขืืฆืื ืืืคืก","form_settings":"ืืืืจืืช ืืืคืก","input":"ืงืื","send_mail_on_submitted":"ืจืืฆืื ืืงืื ืืืื ืืฉืืงืืืืช ื ืจืฉืืื?","placeholder":"ืืงืกื ืคื ืืื ืฉื ืืงืื(ืืืฆื ืืื ืืงืกื)","default_value":"ืขืจื ืืจืืจืช ืืืื","required":"ืืืื","hidden":"ืืืกืชืจ","hidden_field":"ืฉืื ืืืกืชืจ","advance_setting":"ืืืืจืืช ืืชืงืืืืช","label":"ืืืชืจืช","color:label":"ืฆืืข ืืืงืกื","radio-group":"ืงืืืฆืช ืืืฆื ืื","items_in_radio_group":"ืคืจืืืื ืืงืืืฆืช ืืืฆื ืื","add_item":"ืืืกืคืช ืคืจืื","textarea":"ืืงืกื ืืจืื","items_in_menu":"ืคืจืืืื ืืชืคืจืื","checkbox":"ืชืืืช ืกืืืื","height:form_field":"ืืืื ืืฉืืืช","ready_blocks":"ืืืืงืื ืืืื ืื","box-shadow":"ืืคืงื ืฆื","add_new_field":"ืืืกืคืช ืฉืื ืืืฉ","border_design":"ืขืืฆืื ืืกืืจืช","individual_elements":"ืืืื ืืื ืืืืืื","number_color":"ืฆืืข ืืืกืคืจืื","send_form_only_if_checked":"ืฉืืืืช ืืืคืก ืชืชืืคืฉืจ ืจืง ืื ืืกืืื","select_fields_to_edit":"ืืืฆื ืขื ืืืืื ืืื ืืืืคืก ืืขืจืืื","url_parameters":"ืฉื ืคืจืืืจ ืืฉืืืื","the_color_of_cols":"ืฆืืข ืืงืืขื ืืืกืคืจืื","the_radius_of_col":"ืจืืืืก ืงืืขื ืืืกืคืจืื","hidden_form_field_info":"ืฉืื ืฉืื ืืืคืืข ืืืืืฉืื ืืชืฆืืืช ืืืืคืก, ืืฉืืฉ ืืขืืงืจ ืืงืืืช ืขืจืื REF ื UTM ืื ืคืจืืืจืื ืงืืืขืื ืฉืืขืื ืื ืื ืฉืืืคืืขื ืืืืืืืืช ืืฉืืืช ืฉื ืื ืจืฉื ืืืืคืก ืืกืคืฆืืคื ืืืื ืฉืืื ืืืื ืื ืจืืื ืืืชื.","required_form_field_info":"ืฉืื ืฉืื ืจืฉื ืืืืคืก ืืืื ืืืื/ืืกืื ืืืชื ืขื ืื ืช ืืฉืืื ืืช ืืืืคืก, ืืืคืก ืฉืฉืื ืืืื ืื ืืืื ืื ืื ืืฉืื ืืืงืคืืฅ ืืืืขื ืืืืื ืืืืคืก ืฉืืฉืื ืืื ืืืื","url_param":"ืฉื ืคืจืืืจ ืืฉืืืื","show_colons":"ืืืฆืื ื ืงืืืืชืืื ?","please_wait_downloading_new_version":"ืื ื ืืืชืื ื, ืื ืื ื ืืขืืื ืื ืืจืกื ืืืฉื","my_fields":"ืืฉืืืช ืฉืื","allow_send_form_only_if_checked":"ืืคืฉืจ ืืฉืืื ืืืคืก ืจืง ืื ืืกืืื","field_settings":"ืืืืจืืช ืฉืื","add_field":"ืืืกืคืช ืฉืื","edit_field":"ืขืจืืืช ืฉืื","field_type":"ืกืื ืฉืื","input_type":"ืกืื ืงืื","param_name":"ืฉื ืคืจืืืจ","param_name_hint":"ืืืคืชื ืฉืืืื ืืช ืืฉืื ืืื ืืขืช ืฉืืืืช ืืืืคืก. ื ืืฆืจ ืขืืืจื ืฉื ืืืืืื ืืืืืืืืช โ ื ืืชื ืืขืจืื ืืืชื ืื ืืจืืฉ ืฉื ืืกืืื.","field_options":"ืืคืฉืจืืืืช","add_option":"ืืืกืคืช ืืคืฉืจืืช","remove_option":"ืืกืจืช ืืคืฉืจืืช","field_change_rejected":"ืืฉืื ืื ืื ืืืฉืจ","field_name_required":"ืืฉ ืืืืื ืฉื","field_param_required":"ืืฉ ืืืืื ืฉื ืคืจืืืจ","field_input_type_required":"ืืฉ ืืืืืจ ืกืื ืงืื","field_options_required":"ืืฉ ืืืืกืืฃ ืืคืืืช ืืคืฉืจืืช ืืืช","field_value":"ืขืจื","toggle":"ืืชื","dropdown":"ืจืฉืืื ื ืคืชืืช","number":"ืืกืคืจ","after_form_subscribed":"ืื ืืขืฉืืช ืืืจื ืฉืืืืคืก ื ืฉืื?","add_user_from_mailinglist_after_subscribed":"ืืืืื ืงืืืฆืืช ืืืืืจ ื ืจืฉืื ืืช ืืืงืื ืฉืื ื?","remove_user_from_mailinglist_after_subscribed":"ืืืืื ืงืืืฆืืช ืืืืืจ ื ืกืืจ ืืช ืืืงืื ืฉืื ื ?","available_fields":"ืืฉืืืช ืฉืื","background_fields":"ืจืงืข ืืฉืืืช","label_color":"ืฆืืข ืืืชืจืช ืขืืืื ื","title_color":"ืฆืืข ืืืืชืจืืช","button_color":"ืฆืืข ืืงืกื ืืืคืชืืจ","start":"ืืชืืื","end":"ืกืืื","duration":"ืืฉื","prefix":"ืืคื ื","suffix":"ืืืจื","separator":"ืืคืจืื","count-up":"ืืกืคืจ ืขื","pie-chart":"ืคืื ื ืชืื ืื","edit_data":"ืขืจืืืช ื ืชืื ืื","default_color":"ืฆืืข ืืจืืจืช ืืืื","border_editor":"ืขืจืืืช ืืกืืจืช","moving_from_mailing_list":"ืืืกืคื ืืืกืจื ืืจืฉืืืช ืืืืืจ","coming_soon_automations":"ืืงืจืื! ืื ืื ื ืืืืื ืื ืฉืืชื ืืืชื ืืืขืื ืืืขืืืช ืขืกืงืื ืฆืจืืืื ืืืื ืงืืื! ืืื ืื ืื ื ืขืืืืื ืขื ืชืคืจืื ืืืืืืฆืืืช ืืื ืฉืชืืืื ืืื ืืช ืืืืฆืข ืคืขืืืืช ืื ืืืื ืฉืืชื ืืฉื ืื.","bar-chart":"ืืืืช ืขืืืืืช","cols_color":"ืฆืืขื ืขืืืืืช","button_background":"ืจืงืข ืืืคืชืืจ","template":"ืชืื ืืช","font":"ืืืคื","button_radius":"ืจืืืืก ืืคืชืืจ","justifyContent":"ืืฉืืจ ืืืคืงื","alignItems":"ืืฉืืจ ืื ืื","design_pallete":"ืคืืืืช ืืฆืืขืื ืฉืื","default_color_paragraphs":"ืฆืืข ืืจืืจืช ืืืื ืืคืืกืงืืช","default_color_headings":"ืฆืืข ืืจืืจืช ืืืื ืืืืชืจืืช","rootelement_editor_top_header":"ืฉืื ืื ืืืคื ืืื ืืืืื ืืื ืืืฃ, ืืื ืืืื ืืื ืืืฉืื ืฉืชืืกืืคื","rootelement_editor_global_colors_heading":"ืฆืืขืื ืืืืืืืื","flex-start":"ืืชืืื","primaryColor":"ืฆืืข ืจืืฉื","primaryContrastColor":"ืฆืืข ืจืืฉื ื ืืื","secondaryColor":"ืฆืืข ืืฉื ื","secondaryContrastColor":"ืฆืืข ืืฉื ื ื ืืื","flex-end":"ืกืืื","make_it_default_value":"ืืคืื ืืขืจื ืืจืืจืช ืืืื","show_success_popup":"ืืฆืืช ืคืืคืืค ืืขืช ืืืฆืืื","forward_params":"ืืืขืืืจ ืคืจืืืจืื?","user_will_redirect_to":"ืืืงืื ืืขืืืจ ืืืฃ ืืื","where_to_redirect":"ืืื ืืืขืืืจ ืืช ืืืงืื?","component_color":"ืฆืืข ืืจืืื","none":"ืืื","my_form":"ืืืืคืก ืฉืื","form:placeholder_color":"ืฆืืข ืืืงืกื ืืคื ืืื","search_my_fields":"ืืืคืืฉ ืืฉืืืช ืฉืื","checkbox_on_right_side":"ืฆ\'ืงืืืงืก ืืืืื?","choose_an_option":"ืืืจื ืืืืช ืืืคืฉืจืืืืช ืืืืืช","checkbox_checked_as_default":"ืชืืืช ืกืืืื ืืกืืื ืช ืืืจืืจืช ืืืื","paragraph":"ืคืืกืงื","form_behavior":"ืืชื ืืืืช ืืืืคืก","display_inline":"ืืฉืืืฅ ืืขืืื","display_modal":"ืคืืคืืค","open_delay_seconds":"ืืฉืืื (ืฉื ืืืช)","modal":"ืคืืคืืค","interactions":"ืืื ืืจืืงืฆืืืช","presets":"ืขืืฆืืืื ืืืื ืื","mark_as_modal":"ืืฆื ืืคืืคืืค","modal_hidden_on_view":"ืื ืืืฆื ืืขืืื ืืืคืืจืกื โ ืืคืชืืจ ืืคืชื ืืืชื ืืคืืคืืค.","modal_name":"ืฉื ืืคืืคืืค","modal_name_hint":"ืืื ืืืฆืื ืืืชื, ืขืืจื ืืืคืชืืจ ืืืืจื ืืช ืืคืืคืืค ืืื.","popup":"ืคืืคืืค","popup_settings_in_tab":"ืฉื ืืคืืคืืค ืืืืชื ืืืืช ื ืืฆืืื ืืืฉืื ืืช \\"ืคืืคืืค\\".","popup_trigger_label":"ืืชื ืืืฆืื","popup_trigger_button":"ืืืืืฆื ืขื ืืคืชืืจ","popup_trigger_load":"ืืืืืืืืช ืืืขืื ื","popup_trigger_delay":"ืืืจื ืืฉืืื","popup_trigger_exit":"ืืืฆืืื ืืืขืืื","popup_delay_label":"ืืฉืืื (ืฉื ืืืช)","surface_page":"ืขืืื","surface_modals":"ืคืืคืืคืื","surface_popups":"ืคืืคืืคืื","hi_how_are_u":"ืืื, ืื ืฉืืืื?","back_to_page":"ืืืจื ืืขืืื","popups_empty_hint":"ืขืืืื ืืื ืคืืคืืคืื. ืืืฆื ืขื \\"ืคืืคืืค ืืืฉ\\" ืืื ืืืฆืืจ ืืื, ืืื ืขืฆืื ืืืชื ืืงื ืืก.","popups_instructions":"ืขืฆืื ืืช ืืคืืคืืค ืขื ืืื ืืจืืจืช ืืืื ืืื ื\\"ืืืกืคื\\". ืืื ืืืฆืื ืืืชื, ืขืืจื ืืืคืชืืจ ืืืืจื ืืช ืืคืืคืืค ืืื โ ืืื ืืืคืชื ืืคืืคืืค ืืขืืื.","popups_connect_hint":"ืืื ืืคืชืื ืคืืคืืค, ืืืจื ืืคืชืืจ ืืืืจื ืืช ืืคืืคืืค ืืื ืืคืขืืื ืฉืื.","new_modal":"ืคืืคืืค ืืืฉ","open_modal":"ืคืชืืืช ืคืืคืืค","modal_block":"ืืืื ืืืืง","modal_none":"ืืื","modal_pick_hint":"ืืืจื ืืืืง ืฉืืืคืชื ืืคืืคืืค ืืืืืฆื ืขื ืืืคืชืืจ.","modal_none_hint":"ืืื ืขืืืื ืืืืงืื ืืกืื ืคืืคืืค. ืกืื ื ืืืืง ื\\"ืืฆื ืืคืืคืืค\\" ืืืืืจืืช ืืืืืง.","after_submission":"ืื ืืงืจื ืืืืจ ืืจืฉืื?","stay_at_page":"ื ืฉืืจืื ืืืฃ","redirect":"ืืืขืืจืื ืืืงืื ืืืจ","field_background":"ืจืงืข ืฉืืืช","form:heading":"ืืืื ื ืืืจ, ืืงืคื ืขืืื ื!","form:subHeading":"ืืงืืืขืช ืคืืืฉื ืื ืจืง ืฉืืื? ืืฉืื ืืกืืืข ืืื! ืืฉืืืจื ืคืจืืื ืืืืืืจ ืืืืื ืืืงืื","form:background":"ืฆืืข ืืจืงืข ืฉื ืฉืืืช","connection_lost":"ืืืืืืจ ืืื","error_transactions_not_completed":"ืืืง ืืืคืขืืืืช ืื ืืืฉืืื, ืืืืืง ืืจืืขืื ืืื ืงืืืื ื ืืช ืืืืืข ืืื ืื ื ืขืืืืื ืขื ืฉืืคืืจ ืืืืืื ืืขืืจื","form":"ืืืคืก","sync_all_forms":"ืกื ืืจื ืืช ืื ืืืคืกืื","send_the_data_to":"ืฆืจืืืื ืืฉืืื ืืช ืื ืชืื ืื ืCRM ?","horizontal_shadow_length":"ืืืงืื ืืืืคืงื ืฉื ืืฆื","vertical_shadow_length":"ืืืงืื ืืื ืื ืฉื ืืฆื","blur_radius":"ืืฉืืืฉ ืืฆื","spread_radius":"ืคืจืืกืช ืืฆื","open_image_editor":"ืขืจืืืช ืชืืื ื","inset":"ืืืงืื ืืืฆืื ื ?","box_shadow:info":"ืืืกืืฃ ืืคืงืืื ืฉื ืฆื ืกืืื ืืกืืจืช ืืจืืื.","choose":"ืืืืจื","design_for_phone":"ืขืืฆืื ืื ืืื","design_for_desktop":"ืขืืฆืื ืืืืฉื","number_example":"05000000","website_example":"www.example.com","email_example":"example@example.com","link_target":"ืืขื ืืงืืฉืืจ","open_in_new_tab":"ืคืชื ืืืื ืืืฉ","open_in_same_tab":"ืคืชื ืืืืชื ืืื","open_in_parent_frame":"ืคืชื ืืืกืืจืช ืืืืจื","open_in_top_frame":"ืคืชื ืืืกืืจืช ืืขืืืื ื","_blank":"ืคืชื ืืืื ืืืฉ","_self":"ืคืชื ืืืืชื ืืื","_parent":"ืคืชื ืืืกืืจืช ืืืืจื","_top":"ืคืชื ืืืกืืจืช ืืขืืืื ื","user_menu":"ืชืคืจืื ืืฉืชืืฉ","send_test_emails":"ืฉืืืืช ืืืืื ืืืืงื","attached_files":"ืงืืฆืื ืืฆืืจืคืื","make_newsletter_as_event":"ืืคืื ื ืืืืืืจ ืืืืจืืข","edit_block":"ืขืจืืืช ืืืืง","add_files":"ืืืกืฃ ืงืืฆืื","max_files_reached":"ืืกืคืจ ืืงืืฆืื ืืืงืกืืืื ืืืฉื","make_event":"ืฆืืจ ืืืจืืข","name_and_subject":"ืฉื ืื ืืฉื","enter_email_addresses":"ืืื ืืชืืืืช ืืืื (ืคืกืืง ืื Enter ืืืืกืคื)","invalid_email_error":"ืื ื ืืื ืืชืืืช ืืืื ืชืงืื ื","no_emails_error":"ืื ื ืืืกืฃ ืืคืืืช ืืชืืืช ืืืื ืืืช","create_event":"ืฆืืจ ืืืจืืข","start_date_time":"ืชืืจืื ืืฉืขืช ืืชืืื","end_date_time":"ืชืืจืื ืืฉืขืช ืกืืื","location":"ืืืงืื","link_optional":"ืงืืฉืืจ (ืืืคืฆืืื ืื)","save_event":"ืฉืืืจืช ืืืจืืข","cancel_event":"ืืืืื","font_color":"ืฆืืข ืืืคื","icon_color":"ืฆืืข ืืืืงืื","icons_color_images":"ืชืืื ืืช ืฆืืข","icons_svg_icons":"ืืืืงืื ื SVG","icons_search_svg_hint":"ืืคืฉื ืืืืงืื ื SVG.","icons_search_placeholder":"ืืคืฉื ืืืืงืื ืื (ืืืฉื arrow, user, email)โฆ","icons_no_svg_results":"ืื ื ืืฆืื ืืืืงืื ื SVG. ื ืกื arrow, user, email.","icons_type_to_search":"ืืงืืืื ืืืืช ืืืคืืฉ ืืืฆืืืช ืืืืงืื ื SVG (ืืืฉื arrow, user).","icons_no_local_results":"ืื ื ืืฆืื ืืืืงืื ืื ืืชืืืืื ืืืืคืืฉ.","icons_error_loading":"ืฉืืืื ืืืขืื ื","color_them_all":"ืฆืืข ืืืืื","confirm_cancel":"ืืื ืืชื ืืืื ืฉืืจืฆืื ื ืืืื?","creating_event":"ืืืฆืจ ืืืจืืข...","event_created":"ืืืืจืืข ื ืืฆืจ!","end_after_start_error":"ืชืืจืื/ืฉืขืช ืืกืืื ืืืื ืืืืืช ืืืจื ืชืืจืื/ืฉืขืช ืืืชืืื","enter_event_location":"ืืื ืืืงืื ืืืืจืืข","enter_event_link":"ืืื ืงืืฉืืจ ืืืืจืืข","logout":"ืืฆืืื ืืืขืืจื","details":"ืคืจืืื","subject":"ื ืืฉื","iconDirection":"ืืืืื ืืืืืงืื","subtitle":"ืืืชืจืช ืืฉื ื","hasIcon":"ืืืคืขืื ืืืืงืื?","enter_subject":"ืื ืืืื ื ืืฉื ืืืืื(subject)?","apply":"ืืื","crop":"ืืืชืื","crop_image":"ืืืชืื ืชืืื ื","crop_cors_error":"ืื ื ืืชื ืืืชืื ืืช ืืชืืื ื ืืืคืืคื ืืืืืื ืฉืืื ืืืืฉืช ืืื ืืืชืจืืช CORS. ืืขืื ืืืชื ืืืืฉ ืืจื ืืืืจืื ืื ืกื ืฉืื.","automation_settings":"ืืืืจืืช ืืืืืืฆืื","what_should_happen":"ืืืืืฆื ืขื ืืงืืฉืืจ, ืื ืื ื ื ืกืืจ ืื ื ืืกืืฃ ืืช ืืืฉืชืืฉ ืืงืืืฆืืช ืืืืืืจ ืืืืืช","add_to_mailing_list_question":"ืืืืกืืฃ","remove_from_mailing_list_question":"ืืืกืืจ","select_mailing_lists":"ืืืจื ืจืฉืืืืช ืชืคืืฆื","saved_successfully":"ืืคืขืืื ื ืฉืืจื ืืืฆืืื","need_automations":"ืฆืจืืืื ืืืืืืฆืื? ืืืฆื ืขื ืืืคืชืืจ. ืืืืื ืืื ืชืืฆืื ืื ืฉืืชื ืฆืจืืืื, ื ืฉืื ืืฉืืืข ืืื ื ืืื ืืขืืืจ .","menu_automations":"ืชืคืจืื ืืืืืืฆืืืช","selected":"ื ืืืจื","automation_link_preview":"ืงืืฉืืจ ืืืืืืฆืื","apply_automation":"ืืื ืืืืืืฆืื","sidebarMenu_page_business":"ืขืืื ืขืกืง","sidebarMenu_transfer_data":"ืืขืืจืช ื ืชืื ืื","transferData_title":"ืืืืจืืช","transferData_enter_valid_code":"ื ื ืืืืื ืงืื ืชืงืื","transferData_no_template_data":"ืืื ื ืชืื ื ืชืื ืืช ืืชืฉืืื.","transferData_invalid_template_data":"ื ืชืื ื ืชืื ืืช ืื ืชืงืื ืื.","transferData_template_loaded":"ืืชืื ืืช ื ืืขื ื.","transferData_failed_load_template":"ืืขืื ืช ืืชืื ืืช ื ืืฉืื.","transferData_failed_submit_code":"ืฉืืืืช ืืงืื ื ืืฉืื.","transferData_unexpected_response":"ืชืืืื ืื ืฆืคืืื ืืืฉืจืช.","transferData_failed_generate_code":"ืืฆืืจืช ืืงืื ื ืืฉืื.","transferData_copied":"ืืืขืชืง!","transferData_copy_failed":"ืืืขืชืงื ื ืืฉืื","transferData_back_to_options":"ืืืจื ืืืคืฉืจืืืืช","transferData_share_access_code":"ืฉืืชืืฃ ืงืื ืืืฉื","transferData_create_code_desc":"ืฆืจื ืงืื ืืืฉ ืืฉืืชืืฃ ืขื ืืืจืื.","transferData_set_expiration":"ืืืืจืช ืืื ืชืคืืื","transferData_expiration_help":"ืืงืื ืืคืกืืง ืืขืืื ืืืืจ ืืืขื ืื.","transferData_1_hour":"ืฉืขื","transferData_24_hours":"24 ืฉืขืืช","transferData_7_days":"7 ืืืื","transferData_30_days":"30 ืืื","transferData_custom_expiration_label":"ืชืืจืื ืืฉืขื ืืืชืืืื ืืชืคืืื","transferData_copy_to_clipboard":"ืืขืชืง ืืืื","transferData_copy_code":"ืืขืชืง ืงืื","transferData_generating":"ืืืืฆืจโฆ","transferData_generate_code":"ืืฆืืจืช ืงืื","transferData_enter_access_code":"ืืื ืช ืงืื ืืืฉื","transferData_enter_code_desc":"ืืฉืชืืฉื ืืงืื ืงืืื ืืื ืืคืชืื ืชืื ืืช.","transferData_paste_or_type_code":"ืืืืืงื ืื ืืงืืืื ืงืื","transferData_access_code_label":"ืงืื ืืืฉื","transferData_submitting":"ืขืื ืจืืข...","transferData_submit":"ืฉืืืื","transferData_create_code_heading":"ืืฆืืจืช ืงืื ืืืฉ ืืฉืืชืืฃ ืืชืื ืืช","transferData_create_code_card_desc":"ืฆืจื ืงืื ืืืฉื ืืืืืื ืืื ืฉืืืจืื ืืืืื ืืคืชืื ืืืืฉืชืืฉ ืืขืืฆืื ืฉืืื ืืชืื ืืช.","transferData_enter_code_heading":"ืืื ืช ืงืื ืืืฉื ืงืืื","transferData_enter_code_card_desc":"ืืืื ื ืืช ืืงืื ืฉืงืืืืชื ืืื ืืืฉืช ืืืขืืื ืขื ืขืืฆืื ืืฉืืชืฃ.","transferData_submit_confirm_title":"ืืืขืื ืชืื ืืช?","transferData_submit_confirm_message":"ืืืืื ืืืืฆืืข ืืืืฉ ืื ืืขืืื ืืืืจ ืคืขืืื ืื, ืืชืืื ืืืฃ ืื ืืืื ืืืืืฃ. ืืืืฉืื?","transferData_submit_confirm_continue":"ืืืฉื","transferData_submit_confirm_cancel":"ืืืืื","transferData_paste_json_heading":"ืืืืงืช JSON ืฉื ืชืื ืืช","transferData_paste_json_card_desc":"ืืืืืงื JSON ืืื ืฉื ืชืื ืืช ืืื ืืืืืืฃ ืืช ืื ืชืืื ืืืฃ ืืืช ืืืช.","transferData_paste_json":"ืืืืงืช JSON","transferData_paste_json_desc":"ืืืืืงื ืืืื ืืช ื-JSON ืืืื ืฉื ืืชืื ืืช. ืืื ืืืืืฃ ืืช ืื ืชืืื ืืืฃ ืื ืืืื.","transferData_paste_json_placeholder":"ืืืืืงื ืืื ืืช ื-JSON ืฉื ืืชืื ืืช","transferData_load":"ืืขืื ื","transferData_enter_valid_json":"ื ื ืืืืืืง JSON ืชืงืื","transferData_invalid_json":"ืืืงืกื ืฉืืืืืง ืืื ื JSON ืชืงืื.","top_divider":"ืืืืฆื ืขืืืื ื","bottom_divider":"ืืืืฆื ืชืืชืื ื","shape":"ืฆืืจื","slantLeft":"ืฉืืคืืข ืฉืืืื","slantRight":"ืฉืืคืืข ืืืื ื","vShape":"ืฆืืจืช V","triangle":"ืืฉืืืฉ","url":"ืืชืืืช URL","textColor":"ืฆืืข ืืงืกื","fullscreen":"ืืกื ืืื","both":"ืฉื ืืื","opengalleryimage":"ืคืชืื ืืช ืืืืจืื","iconSize":"ืืืื ืืืืงืื","clone_element":"ืฉืืคืื ืจืืื","timeCounter":"ืืื ื ืืื","what_the_phone_number_to_send_msg_to":"ืื ืืกืคืจ ืืืืคืื ืืฉืืืืช ืืืืืขื","links":"ืงืืฉืืจืื","bc_title":"ืคืจืืคืื ืืขืกืง","bc_empty":"ืขืืืื ืืื ืคืจืืคืื ืขืกืงื ืืืฉืืื ืืื.","bc_name":"ืฉื","bc_business_name":"ืฉื ืืขืกืง","bc_business_type":"ืกืื ืืขืกืง","bc_tone":"ืืื ืืืืืืจ","bc_tagline":"ืกืืืื","bc_description":"ืชืืืืจ","bc_summary":"ืชืงืฆืืจ","bc_industry":"ืชืืื","bc_category":"ืงืืืืจืื","bc_audience":"ืงืื ืืืขื","bc_values":"ืขืจืืื","bc_keywords":"ืืืืืช ืืคืชื","bc_products":"ืืืฆืจืื","bc_services":"ืฉืืจืืชืื","bc_website":"ืืชืจ","bc_domain":"ืืืืืื","bc_language":"ืฉืคื","bc_logo":"ืืืื","bc_theme":"ืขืจืืช ืืืชื","bc_colors":"ืฆืืขื ืืืชื","bc_primary":"ืฆืืข ืจืืฉื","bc_secondary":"ืฆืืข ืืฉื ื","bc_accent":"ืฆืืข ืืืืฉื","bc_contacts":"ืื ืฉื ืงืฉืจ","bc_socials":"ืจืฉืชืืช ืืืจืชืืืช","bc_email":"ืืืืืื","bc_phone":"ืืืคืื","bc_design":"ืกืื ืื ืขืืฆืื","bc_design_desc":"ืชืืืืจ ืืขืืฆืื","bc_image_style":"ืกืื ืื ืชืืื ืืช"}')},8330(t){"use strict";t.exports={rE:"3.0.78"}}},i={};function a(t){var e=i[t];if(void 0!==e)return e.exports;var n=i[t]={id:t,loaded:!1,exports:{}};return o[t].call(n.exports,n,n.exports,a),n.loaded=!0,n.exports}a.m=o,a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,a.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);a.r(o);var i={};t=t||[null,e({}),e([]),e(e)];for(var s=2&r&&n;("object"==typeof s||"function"==typeof s)&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach(t=>i[t]=()=>n[t]);return i.default=()=>n,a.d(o,i),o},a.d=(t,e)=>{for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.f={},a.e=t=>Promise.all(Object.keys(a.f).reduce((e,n)=>(a.f[n](t,e),e),[])),a.u=t=>t+".creaditor.bundle.js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.hmd=t=>((t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t),a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n={},r="Creaditor:",a.l=(t,e,o,i)=>{if(n[t])n[t].push(e);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var p=c[d];if(p.getAttribute("src")==t||p.getAttribute("data-webpack")==r+o){s=p;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",r+o),s.src=t),n[t]=[e];var h=(e,r)=>{s.onerror=s.onload=null,clearTimeout(u);var o=n[t];if(delete n[t],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach(t=>t(r)),e)return e(r)},u=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),l&&document.head.appendChild(s)}},a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var t;a.g.importScripts&&(t=a.g.location+"");var e=a.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!t||!/^http(s?):/.test(t));)t=n[r--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=t})(),(()=>{a.b="undefined"!=typeof document&&document.baseURI||self.location.href;var t={3057:0};a.f.j=(e,n)=>{var r=a.o(t,e)?t[e]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise((n,o)=>r=t[e]=[n,o]);n.push(r[2]=o);var i=a.p+a.u(e),s=new Error;a.l(i,n=>{if(a.o(t,e)&&(0!==(r=t[e])&&(t[e]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+e+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,r[1](s)}},"chunk-"+e,e)}};var e=(e,n)=>{var r,o,[i,s,l]=n,c=0;if(i.some(e=>0!==t[e])){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);if(l)l(a)}for(e&&e(n);c<i.length;c++)o=i[c],a.o(t,o)&&t[o]&&t[o][0](),t[o]=0},n=("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})(),a.nc=void 0;return(()=>{"use strict";const t={primary:"linear-gradient(319deg, #663dff 0%, #aa00ff 37%, #cc4499 100%)",primaryText:"#fff",bgPrimary:"#d7e4fe",secondary:"#A93C80",topNavbar:"#484554",breadcrumbs:"#424656",resizer:"#d7e4fe",alpha:"rgb(244, 250, 254)",backColor:"#f4f5f7",disabled:"#cdd1db",iconColor:"#586387",fontFamily:"Arial, Helvetica, sans-serif",direction:"rtl",textAlign:"right",justifyContent:"flex-start",rowDirection:"row-reverse"},e=e=>{if(e){const n=e,r=t;for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)){const e=n[t];Object.prototype.hasOwnProperty.call(r,t)&&(r[t]=e)}}const n=`\n #input-iframe--v1,:root {\n --radius: 20px;\n --sm-radius: .25rem;\n --secondary: #0a0a0a;\n --breadcrumbs:${t.breadcrumbs};\n --top-navbar:${t.topNavbar};\n --dark:${t.topNavbar};\n --sidebar-color:${t.primary};\n --sidebar-icon-color:#fff;\n --primary: ${t.primary};\n --primaryText:${t.primaryText};\n --primary-text:${t.primaryText};\n --resizer-color:${t.resizer};\n --alpha:${t.alpha};\n --micro-info-color:#7d7d7d;\n --bgPrimary:${t.bgPrimary};\n --secondary: ${t.secondary};\n --disabled:${t.disabled};\n --icon-color:${t.iconColor};\n --error-color: rgba(165, 16, 16, 0.877);\n --input-border-color: #9EADBD;\n --font-family: ${t.fontFamily};\n --cdtr-font-family: ${t.fontFamily};\n --layout-holder-color: ${t.backColor};\n --justify-content:${t.justifyContent};\n --row-direction:${t.rowDirection};\n --medium-box-shadow: 0 2px 10px 0 rgb(0 6 36 / 20%);\n --section-padding: 10px;\n --add-padding-row:25px 0 25px 0;\n --section-padding-top: 6px;\n --section-padding-bottom: 6px;\n --margin-top:1rem;\n --divider-color: #00000026;\n --focus-shadow: 0 0 0 0.15rem rgb(13 110 253 / 10%);\n --text-align-locale:${t.textAlign};\n --direction-locale:${t.direction};\n --direction:${t.direction};\n --accent: #5B5FC7;\n --icon-muted: #666;\n --section-hover: #f0f0f048;\n --spacing-sm: .1rem;\n --paper-font-subhead_-_font-size:13px;\n --editor-font-size:13px;\n --paper-item-min-height:30px;\n --alert: rgb(235, 48, 48);\n --section-height: 80px;\n --section: #fff;\n --element-border-color: rgba(0, 0, 0, 0.116);\n --editor-input-height: 30px;\n --title-block-height: 50px;\n /* Must be 6-digit hex for consistent CSS parsing. */\n --text-dark-color:#000000;\n }`,r=document.createElement("style");return r.id="theme-provider-vars",r.innerHTML=n,{theme:t,styleTag:r}};var n=a(5441),r=a(72591),o=a.n(r),i=a(88639),s=a.n(i),l=a(88128),c=a.n(l),d=a(30855),p=a.n(d),h=a(93051),u=a.n(h),f=a(53618),m={};m.setAttributes=p(),m.insert=c().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=u();o()(f.A,m);const g=f.A&&f.A.locals?f.A.locals:void 0;var b=a(89575),y=a(5447),w={};w.setAttributes=p(),w.insert=c().bind(null,"head"),w.domAPI=s(),w.insertStyleElement=u();o()(y.A,w);const A=y.A&&y.A.locals?y.A.locals:void 0;var x=a(8330),_=a(29482);console.log("--\x3e Beta version",x.rE,"๐");const v=t=>(0,n.A)("div",{style:t.style,className:(0,_.A)(A.root)},(0,n.A)("cdtr-row",{alignItems:"center"},(0,n.A)("cdtr-col",null,(0,n.A)("cdtr-row",{style:{height:"35px",width:"150px",margin:"auto"},alignItems:"center",justify:"center"},(0,n.A)("span",{style:{fontFamily:"var(--font-family)",fontSize:"13px"}},"Powered by"),(0,n.A)("svg",{className:A.logo,width:"100",height:"34",viewBox:"0 0 152 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,n.A)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.96 6.48749C13.7333 6.48749 15.5 6.99999 17 7.99999C18.381 9.11888 18.4975 9.4202 19.1214 11.0336C19.2293 11.3128 19.3525 11.6312 19.5 12L16.5 13.6125C16.5 11.8125 15.2287 11 13.6703 10.3125C12.6503 9.86249 11.8267 9.71249 10.52 9.71249C9.24 9.71249 8.21333 9.91249 7.44 10.3125C6.69333 10.6875 6.09333 11.1875 5.64 11.8125C5.21333 12.4375 4.88 13.275 4.64 14.325C4.26667 15.95 4.08 18.275 4.08 21.3C4.08 24.325 4.69333 26.6 5.92 28.125C6.28089 28.5737 6.69603 29.0505 7.16591 29.5H1.96534C1.64569 28.9808 1.36391 28.41 1.12 27.7875C0.373332 25.7875 0 23.5625 0 21.1125C0 18.6375 0.199999 16.6125 0.599999 15.0375C0.999999 13.4375 1.61333 11.9875 2.44 10.6875C3.29333 9.3625 4.44 8.33749 5.88 7.61249C7.34667 6.86249 9.04 6.48749 10.96 6.48749ZM2.68031 30.5C2.78393 30.6248 2.8905 30.7457 3 30.8625C3.77333 31.6625 4.82667 32.325 6.16 32.85C7.49333 33.375 9.06667 33.6375 10.88 33.6375C13.5733 33.6375 17.5 32.5 18 31.5V30.5L17.1236 30.5C17.0524 31.7047 13.7937 31.581 12.1668 31.5193C11.8889 31.5087 11.6586 31.5 11.5 31.5C10.3251 31.5 9.29305 31.0914 8.40174 30.5H2.68031ZM22.8797 30.5V33.1875H26.4797V30.5H22.8797ZM37.7715 30.5C39.1799 32.5917 41.4724 33.6375 44.6491 33.6375C46.3821 33.6375 48.2093 32.5077 49.9727 31.4175C50.4886 31.0985 50.999 30.7829 51.5 30.5L48.1897 30.5C47.9175 30.6241 47.5455 30.7818 47 31C44.717 31.9132 43.2679 31.1585 42.272 30.6399C42.1774 30.5906 42.0868 30.5434 42 30.5L37.7715 30.5ZM40.8521 29.5H37.2031C36.4604 27.9434 36.0891 25.9476 36.0891 23.5125C36.0891 20.3125 36.8357 17.775 38.3291 15.9C39.8491 14 42.0891 13.05 45.0491 13.05C47.3424 13.05 49.0357 13.7 50.1291 15C51.0357 16.05 51.5957 17.8125 51.8091 20.2875C51.8393 20.6553 51.8738 20.9181 51.9052 21.1565C51.957 21.5501 52 21.8772 52 22.5L51 23C49 24 40 24 40 24L39.9291 24.15C39.9291 26.4443 40.0799 28.3274 40.8521 29.5ZM50.0767 29.5H50.285L50.2091 29.4375C50.1632 29.459 50.1191 29.4798 50.0767 29.5ZM55.0663 30.5C55.7825 32.5916 57.5693 33.6375 60.4269 33.6375C63.0135 33.6375 65.0402 32.7 66.5069 30.825H66.6269C66.6706 30.948 66.6869 31.1327 66.7054 31.3434C66.7661 32.0325 66.8514 33 68 33C68.951 33 70.3038 32.799 71.2942 32.6519C71.866 32.567 72.317 32.5 72.5 32.5L73 31C71.2357 31.196 70.3302 30.9636 69.8813 30.5H62.8616C62.3984 30.5917 61.9068 30.6375 61.3869 30.6375C60.9108 30.6375 60.4946 30.5917 60.1383 30.5H55.0663ZM58.7645 29.5H54.8182C54.744 29.0529 54.7069 28.5696 54.7069 28.05C54.7069 24.75 57.1869 22.7625 62.1469 22.0875L65.9869 21.5625V19.4625C65.9869 17.1875 64.8802 16.05 62.6669 16.05C61.2535 16.05 59.3469 16.4 56.9469 17.1L55.6669 14.7375C57.9602 13.6125 60.4402 13.05 63.1069 13.05C66.3335 13.05 68.3069 13.95 69.0269 15.75C69.4002 16.675 69.5869 17.9 69.5869 19.425V27.4125C69.5869 27.7069 69.5578 28.0143 69.5289 28.3204C69.4904 28.7271 69.4522 29.1315 69.4826 29.5H65.1695C65.4609 29.2847 65.7333 29.0389 65.9869 28.7625V23.475C62.6669 23.2875 59.7733 24.425 59 25C58.3673 25.4784 58.4377 26.5352 58.5055 27.554C58.5263 27.8663 58.5469 28.1751 58.5469 28.4625C58.5469 28.8639 58.6194 29.2097 58.7645 29.5ZM75.9477 30.5C76.145 30.8458 76.364 31.1542 76.6047 31.425C77.938 32.9 79.7247 33.6375 81.9647 33.6375C84.2047 33.6375 86.4 32.7 88 31L88.5 33.5H91L90.9605 30.5H87.1153C86.8289 30.6362 86.427 30.734 85.7677 30.825C85.6033 30.8477 85.4543 30.8689 85.317 30.8885C84.3954 31.0197 83.9994 31.0761 83 31C82.0531 30.9278 81.4134 30.7549 80.9312 30.5H75.9477ZM79.801 29.5H75.4774C74.8956 27.9934 74.6047 25.9851 74.6047 23.475C74.6047 21.925 74.7914 20.525 75.1647 19.275C75.538 18.025 76.018 17.025 76.6047 16.275C77.1914 15.525 77.8714 14.9 78.6447 14.4C80.0047 13.5 81.5247 13.05 83.2047 13.05C84.8847 13.05 86.258 13.45 87.3247 14.25C87.3514 14.25 87.3914 14.2375 87.4447 14.2125L87.3247 13.2375L87.4447 3.49999L91.2447 -6.67572e-06L90.9247 27.7875L90.9473 29.5H87.7092L87.3247 17.1C86.2847 16.4 85.0314 16.05 83.5647 16.05C82.8447 16.05 82.2314 16.1375 81.7247 16.3125C81.218 16.4625 80.698 16.7625 80.1647 17.2125C79.018 18.1875 78.4447 20.175 78.4447 23.175C78.4447 26.15 78.8047 28.1375 79.5247 29.1375C79.6186 29.2633 79.7095 29.3843 79.801 29.5ZM106.671 30.5C106.821 31.0036 107.003 31.4369 107.216 31.8C107.936 33.025 109.469 33.6375 111.816 33.6375C112.509 33.6375 113.283 33.5125 114.136 33.2625C114.989 33.0125 116.18 32.3 116.5 32V30.5H116.223C115.284 30.7497 113.144 31 112.5 31C111.8 31 111.306 30.802 110.942 30.5H106.671ZM110.219 29.5H106.431C106.234 28.4603 106.136 27.202 106.136 25.725V16.35H102.696L103 14.4L108 8.43749H109.736V13.5H115.456L114.5 16.425L109.736 16.35V25.5C109.736 27.3786 109.897 28.7119 110.219 29.5ZM119.683 30.5C120.217 31.4497 120.988 32.1956 122 32.7375C123.147 33.3375 124.547 33.6375 126.2 33.6375C127.88 33.6375 129.334 33.35 130.56 32.775C131.777 32.2169 132.73 31.4586 133.418 30.5H129.855C129.407 30.8934 127.647 31.425 127 31.425C125.969 31.425 124.668 31.0651 123.903 30.5H119.683ZM123.257 29.5H119.211C118.484 27.7297 118.12 25.6089 118.12 23.1375C118.12 20.4375 118.787 18.1375 120.12 16.2375C120.814 15.2625 121.774 14.4875 123 13.9125C124.254 13.3375 125.707 13.05 127.36 13.05C129.04 13.05 130.44 13.35 131.56 13.95C132.707 14.55 133.547 15.3875 134.08 16.4625C135.014 18.3875 135.48 20.75 135.48 23.55C135.48 25.8266 135.007 27.8099 134.058 29.5H130.366C130.408 29.3841 130.459 29.2633 130.56 29.1375C130.88 28.7125 131.12 28.125 131.28 27.375C131.52 26.25 131.64 25.0375 131.64 23.7375C131.64 22.4375 131.614 21.4875 131.56 20.8875C131.507 20.2625 131.374 19.625 131.16 18.975C130.974 18.325 130.694 17.8 130.32 17.4C129.974 17 129.494 16.675 128.88 16.425C128.267 16.175 127.52 16.05 126.64 16.05C125.787 16.05 125.054 16.2 124.44 16.5C123.827 16.8 123.36 17.1625 123.04 17.5875C122.72 17.9875 122.48 18.5625 122.32 19.3125C122.08 20.4375 121.96 21.65 121.96 22.95C121.96 24.25 121.987 25.2125 122.04 25.8375C122.094 26.4375 122.214 27.0625 122.4 27.7125C122.614 28.3625 122.907 28.8875 123.28 29.2875C123.263 29.3594 123.256 29.4303 123.257 29.5ZM140.497 30.5V33.1875H144.097V30.5H140.497ZM144.097 29.5H140.497V18.9L140.177 13.6875L143.097 13.3125L143.537 17.1H143.697C144.15 15.875 144.83 14.9 145.737 14.175C146.67 13.425 147.764 13.05 149.017 13.05C149.71 13.05 150.23 13.1125 150.577 13.2375C150.95 13.3375 151.257 13.425 151.497 13.5C151.737 13.55 151.884 13.5875 151.937 13.6125L151.297 16.9875C150.497 16.7375 149.537 16.6125 148.417 16.6125C147.324 16.6125 146.324 17.0625 145.417 17.9625C144.537 18.8375 144.097 19.9 144.097 21.15V29.5ZM26.4797 29.5H22.8797V18.9L22.5597 13.6875L25.4797 13.3125L25.9197 17.1H26.0797C26.533 15.875 27.213 14.9 28.1197 14.175C29.053 13.425 30.1464 13.05 31.3997 13.05C32.093 13.05 32.613 13.1125 32.9597 13.2375C33.333 13.3375 33.6397 13.425 33.8797 13.5C34.1197 13.55 34.2664 13.5875 34.3197 13.6125L33.6797 16.9875C32.8797 16.7375 31.9197 16.6125 30.7997 16.6125C29.7064 16.6125 28.7064 17.0625 27.7997 17.9625C26.9197 18.8375 26.4797 19.9 26.4797 21.15V29.5ZM47.5309 17.4397C47.503 17.388 47.4757 17.3373 47.4491 17.2875C47.0224 16.4625 46.0357 16.05 44.4891 16.05C42.9691 16.05 41.8891 16.5375 41.2491 17.5125C40.6091 18.4625 40.2091 19.7875 40.0491 21.4875L48.5 21.1125C48.5 19.237 47.951 18.2188 47.5309 17.4397Z",fill:"black"}),(0,n.A)("path",{d:"M99 12.5H95V29.5H99V12.5Z",fill:"black"}),(0,n.A)("path",{d:"M97 6.5L99 11.4456H95L97 6.5Z",fill:"#5c5ce0"}),(0,n.A)("path",{d:"M99 30.5H95V33.5H99V30.5Z",fill:"#5c5ce0"}),(0,n.A)("path",{d:"M99 12.125H95V13.0625H99V12.125Z",fill:"#5c5ce0"})),(0,n.A)("span",{style:{background:"#5c5ce0"},className:A.dot})))));var k=a(47920),C={};C.setAttributes=p(),C.insert=c().bind(null,"head"),C.domAPI=s(),C.insertStyleElement=u();o()(k.A,C);const E=k.A&&k.A.locals?k.A.locals:void 0;var S=a(59929),M=a(98198);class B extends S.WF{constructor(){super(),this.icon="add",this.width=24,this.height=24}render(){const t=M[this.icon]||"no icon";return S.qy`<svg style="display: block; margin: auto;"
|
|
2448
2461
|
width="${this.width}"
|
|
2449
2462
|
height="${this.height}"
|
|
2450
2463
|
xmlns="http://www.w3.org/2000/svg"
|