@creaditor/web-starterkit 1.0.69 → 1.0.70

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.
@@ -2767,7 +2767,7 @@
2767
2767
  </paper-button>
2768
2768
  </cdtr-row>
2769
2769
  </form>
2770
- </div>`,h),document.body.appendChild(h)}}},26198(t,e,n){"use strict";n.d(e,{$:()=>w,$4:()=>P,$7:()=>c,$e:()=>f,AT:()=>A,Bj:()=>H,DP:()=>z,DX:()=>m,Dj:()=>b,KD:()=>F,Ke:()=>s,R9:()=>S,Sj:()=>i,Ut:()=>q,WP:()=>k,am:()=>h,ap:()=>_,c1:()=>I,cP:()=>L,dN:()=>O,ft:()=>p,n6:()=>v,n_:()=>y,o6:()=>T,oD:()=>C,pZ:()=>d,pi:()=>x,su:()=>u,vF:()=>N,vQ:()=>M,yS:()=>B,yZ:()=>g,zZ:()=>E});var r=n(43180),o=n(58423);const i="editChatDrawerOpen",a="sidebarTransferDataPanelOpen",s="sidebarMcpPanelOpen";function l(){r.M.set({[i]:!0})}function c(){r.M.set({[i]:!1})}function d(){E()||o.A.dispatch("toggle-side-menu",{opened:!0})}function p(){o.A.dispatch("toggle-side-menu",{opened:!1})}function h(){d(),r.M.set({[a]:!0})}function u(){r.M.set({[a]:!1})}function f(){d(),r.M.set({[s]:!0})}function m(){r.M.set({[s]:!1})}const g="sidebarHtmlImportPanelOpen";function b(){d(),r.M.set({[g]:!0})}function y(){r.M.set({[g]:!1})}const A="sidebarPastePageOpen";function w(){d(),r.M.set({[A]:!0})}function x(){r.M.set({[A]:!1})}const v="aiEditorMode",k="sidebarAiEditorPanelOpen";function C(){d(),r.M.set({[k]:!0})}function _(){r.M.set({[k]:!1})}function E(){return r.M.get(v)||!1}function S(t){r.M.set({[v]:t})}function M(t){o.A.dispatch("toggle-side-menu",{opened:!t}),t&&l()}const B="aiDoc",T="ai-doc",L="aiManualTarget",I="aiFormTarget",O="editChatDrawerHidden";function N(){o.A.dispatch("toggle-side-menu",{opened:!0})}const H="cdtr-ai-form-lock";function z(t,e,n){r.M.get(L)&&(r.M.set({[L]:null}),window.dispatchEvent(new Event(H))),r.M.set({[I]:{key:t,tab:e,pick:n,at:Date.now()}}),N()}function P(){E()&&o.A.dispatch("toggle-side-menu",{opened:!1})}let D=!1,R=!1,j=null;function F(t){if(t!==j){if(j=t,"kit"===t)return r.M.get(i)||(l(),D=!0),p(),void(R=!0);D&&(c(),D=!1),R&&(d(),R=!1)}}function q(t){F(t?"kit":void 0)}},53415(t,e,n){"use strict";n.d(e,{D:()=>o,l:()=>i});var r=n(43180);const o=()=>{const t=r.M.get("components");if(!t||"object"!=typeof t)return[];const e=[];for(const n of Object.values(t)){const t=n;t&&"object"==typeof t&&"string"==typeof t.id&&"string"==typeof t.type&&e.push({id:t.id,type:t.type,props:t.props||{},children:Array.isArray(t.children)?t.children:[],elements:Array.isArray(t.elements)?t.elements:[]})}return e},i=()=>r.M.get("config","channel")||"newsletter"},58423(t,e,n){"use strict";n.d(e,{A:()=>r});const r=new(n(38941).A)},2972(t,e,n){"use strict";n.d(e,{Ay:()=>_});var r=n(94490),o=n(44551);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(58423),h=n(45070),u=n(43180),f=n(28795),m=n(69893),g=n(91937),b=n.n(g),y=n(98352),A=n.n(y);const w=new o.A,x={},v={},k=[],C=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(!Object.prototype.hasOwnProperty.call(x,o)){const t=i.props;x[o]=t?A()(t[n]):void 0}let a=A()(r);if("style"!==n&&"iconStyle"!==n||t.replace)v[o]=A()(a);else if(a&&"object"==typeof a){const t=i.props;a=(0,m.A)(t[n],a),v[o]=a}try{i.props[n]=v[o]}catch(t){console.error("error applying patch",t)}if(void 0!==v[o]){const r=k.findIndex(t=>t.componentId===e&&t.key===n);-1!==r&&k.splice(r,1),k.push({...t,newValue:a})}else delete v[o]}else k.push(t)}),w.run(()=>{for(let t=0;t<k.length;t++){const e=k[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!==v[s]&&f.Ay.silentPatch(f.Ay.getComponent(r),o,v[s]),delete v[s]}if(k.length>0){h.A.create({stack:k,options:n});const t=[...k];"function"==typeof o&&o({stack:t,steps:t})}k.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},44551(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)}}},51129(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))}},43641(t,e,n){"use strict";n.d(e,{A:()=>o});const r=JSON.parse('["3g2","3gp","aaf","asf","avchd","avi","drc","flv","m2v","m3u8","m4p","m4v","mkv","mng","mov","mp2","mp4","mpe","mpeg","mpg","mpv","mxf","nsv","ogg","ogv","qt","rm","rmvb","roq","svi","vob","webm","wmv","yuv"]');function o(t){const e=(/(?:\.([^.]+))?$/.exec(t.toLowerCase())??[])[1]??"";return-1!==r.findIndex(t=>t===e)}},85645(t,e,n){"use strict";function r(t){if(t){if(t.match(/^(?:https?:\/\/)?(?:m\.|www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/))return!0}return!1}n.d(e,{A:()=>r})},66642(t,e,n){"use strict";n.d(e,{VH:()=>l,sw:()=>a});var r=n(12586),o=n(89531),i=n(43180);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}},53951(t,e,n){"use strict";n.d(e,{v:()=>s});var r=n(12586),o=n(43180),i=n(89531),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)}},13548(t,e,n){"use strict";n.d(e,{WX:()=>l,YE:()=>c,bA:()=>a,bK:()=>d,sU:()=>s});var r=n(12586),o=n(89531),i=n(43180);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=>(0,o.yJ)(r.XW.api_url+r.JZ.site+"/template",{components:t}),c=t=>{const e=i.M.get("app");return(0,o.F6)(r.XW.api_url+r.JZ.site+`/${e._id}`,t)},d=t=>{const e=i.M.get("app");return(0,o.bE)(r.XW.api_url+r.JZ.site+`/publish/${e._id}`,t)}},94490(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}({})},45070(t,e,n){"use strict";n.d(e,{A:()=>l,q:()=>c});var r=n(50746),o=n(12106),i=n(43180);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)))}reset(){this.state={past:[],present:null,future:[]},this.onAnyChange(),this.emitter.dispatch("ON_SNAPSHOT",{hasUndo:!1,hasRedo:!1,pastLength:0,futureLength:0})}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"}},7728(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}},52296(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})},29452(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})},70580(t,e,n){"use strict";n.d(e,{p:()=>o});var r=n(43180);function o(t){if("web"===r.M.get("config","channel"))return t();const e=function(){const t=r.M.get("components");if(!t||"object"!=typeof t)return null;for(const e of Object.values(t)){const t=e;if(t&&"object"==typeof t&&"root"===t.type)return t.element instanceof HTMLElement?t.element:null}return null}();if(!e)return t();const n=document.getElementById(i),o=!!n&&n.disabled,a=e.style.minWidth;try{n&&(n.disabled=!0);const r=function(t){let e=0;return t.querySelectorAll(".block-component").forEach(t=>{if(t.parentElement?.closest(".col-component"))return;const n=parseFloat(t.style.width);if(!t.style.width.endsWith("px")||!Number.isFinite(n))return;const r=t.getBoundingClientRect().width;0!==r&&(e=Math.max(e,n-r))}),e>.5?e:0}(e);return r>0&&(e.style.minWidth=`${Math.ceil(e.getBoundingClientRect().width+r)}px`),t()}finally{e.style.minWidth=a,n&&(n.disabled=o)}}const i="page-max-width"},44222(t,e,n){"use strict";n.d(e,{FE:()=>b,U2:()=>p,Ux:()=>c});var r=n(66082),o=n(43180),i=n(72505),a=n.n(i),s=n(70580);const l=(t,e,n)=>{try{return JSON.parse(JSON.stringify(t??{}))}catch(r){console.error(`[toJSON] props for component ${e} (${n}) are not JSON-serializable (likely a DOM node / circular ref stored in props) — sanitizing so the element is not lost.`,r,t);const o=new WeakSet,i=t=>{if(null===t||"object"!=typeof t)return t;if("undefined"!=typeof Node&&t instanceof Node)return;if(o.has(t))return;if(o.add(t),Array.isArray(t))return t.map(i);const e={};for(const n of Object.keys(t)){const r=i(t[n]);void 0!==r&&(e[n]=r)}return e};return i(t??{})??{}}},c=t=>{const e=t;if(!e||"object"!=typeof e||!e.element||"function"!=typeof e.element.getBoundingClientRect)return null;const n=t.element.getBoundingClientRect(),r={id:e.id,_id:e.id,type:e.type,props:l(e.props,e.id,e.type),children:e.children,elements:Array.isArray(e.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)},d=t=>Array.isArray(t)?t.filter(t=>"string"==typeof t||!(!t||"object"!=typeof t||!Array.isArray(t.children))&&(t.children=d(t.children),!0)):[],p=()=>(0,s.p)(h),h=()=>{const t=o.M.get("components"),e=[];t.forEach(t=>{let n;try{n=c(t)}catch(e){return void console.error("[toJSON] composeToJson threw for a component — skipping it so the rest of the document is still saved.",e,t)}if(n){if(n&&Array.isArray(n.children)&&(n.children=d(n.children)),n&&Array.isArray(n.elements)&&(n.elements=d(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)}});const n=new Set(e.map(t=>t.id));e.forEach(t=>{[].concat(Array.isArray(t.children)?t.children:[],Array.isArray(t.elements)?t.elements:[]).forEach(e=>{"string"!=typeof e||n.has(e)||console.error(`[toJSON] ORPHAN: ${t.type} ${t.id} references child/element "${e}" which is NOT in the saved document — it will disappear on reload.`)})});const r=new Map(e.map(t=>[t.id,t])),i=new Set,a=t=>{if("string"!=typeof t||i.has(t))return;i.add(t);const e=r.get(t);e&&[].concat(Array.isArray(e.children)?e.children:[],Array.isArray(e.elements)?e.elements:[]).forEach(t=>a("string"==typeof t?t:t?.id))},s=e.find(t=>"root"===t.type);a(s?.id);const l=new Set;return i.forEach(t=>{const e=r.get(t)?.props;e&&(e.anchor?.name&&l.add(String(e.anchor.name)),"anchor"===r.get(t)?.type&&e.name&&l.add(String(e.name)),e.element_ID&&l.add(String(e.element_ID)))}),e.forEach(t=>{if(!i.has(t.id))return;const e=t.props?.onClick?.link?.href;if("string"!=typeof e||!e.startsWith("#")||e.length<2)return;let n=e.slice(1);try{n=decodeURIComponent(n)}catch{}l.has(n)||console.error(`[toJSON] DEAD ANCHOR LINK: ${t.type} ${t.id} links to "${e}", but no component on the page carries that anchor — clicking it will do nothing. On the page: ${Array.from(l).join(", ")||"(no anchors at all)"}. Re-attach the anchor to a block that is still on the page, or re-point the link.`)}),e},u=()=>{const t=o.M.get("app"),e="string"==typeof t?.language?t.language:"",n=o.M.get("language");return e||("string"==typeof n?n:"")||void 0};let f=!1,m=[];const g=async()=>{if(0===m.length)return void(f=!1);const{resolve:t,reject:e,components:n,channel:o,device:i}=m[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,language:u()}):await a().post(`${r.XW.api_url.replace("v1","v2")}/render/newsletter/build`,{components:n})).data)}catch(t){e(t)}m.shift(),g()},b=async(t,e)=>{const n=p();return new Promise((r,o)=>{m.push({resolve:r,reject:o,components:n,channel:String(t??"newsletter"),device:null!=e?String(e):void 0}),f||(f=!0,g())})}},30114(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(65790),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 A=t.auth.username||"",w=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";m.Authorization="Basic "+btoa(A+":"+w)}var x=s(t.baseURL,t.url);function v(){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=v:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(v)},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 k=(t.withCredentials||c(x))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;k&&(m[t.xsrfHeaderName]=k)}"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),A=n(52730),w=n(27300),x=o("SharedArrayBuffer.prototype.byteLength",!0),v=o("Date.prototype.getTime"),k=Object.getPrototypeOf,C=o("Object.prototype.toString"),_=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),I=o("Set.prototype.size",!0);function O(t,e,n,r){for(var o,i=s(t);(o=i.next())&&!o.done;)if(D(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 H(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)||!D(o,l,c,a))&&(!E(t,s)&&D(o,l,c,a))}function z(t,e,n){var r=N(n);return null!=r?r:L(e,r)&&!L(t,r)}function P(t,e,n,r,o,i){for(var a,l,c=s(t);(a=c.next())&&!a.done;)if(D(n,l=a.value,o,i)&&D(r,S(e,l),o,i))return T(t,l),!0;return!1}function D(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(C(t)!==C(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 j=f(t),F=f(e);if(j!==F)return!1;if((j||F)&&(t.source!==e.source||i(t)!==i(e)))return!1;var q=u(t),U=u(e);if(q!==U)return!1;if((q||U)&&v(t)!==v(e))return!1;if(n.strict&&k&&k(t)!==k(e))return!1;var W=A(t),V=A(e);if(W!==V)return!1;if(W||V){if(t.length!==e.length)return!1;for(a=0;a<t.length;a++)if(t[a]!==e[a])return!1;return!0}var Y=R(t),G=R(e);if(Y!==G)return!1;if(Y||G){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 w(t)===w(e)&&("function"==typeof Uint8Array&&D(new Uint8Array(t),new Uint8Array(e),n,o));var Q=m(t),K=m(e);if(Q!==K)return!1;if(Q||K)return x(t)===x(e)&&("function"==typeof Uint8Array&&D(new Uint8Array(t),new Uint8Array(e),n,o));if(typeof t!=typeof e)return!1;var J=g(t),$=g(e);if(J.length!==$.length)return!1;for(J.sort(),$.sort(),a=J.length-1;a>=0;a--)if(J[a]!=$[a])return!1;for(a=J.length-1;a>=0;a--)if(!D(t[l=J[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(I(t)!==I(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 _),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 _),B(a,o.value)}if(a){for(;(i=c.next())&&!i.done;)if(i.value&&"object"==typeof i.value){if(!O(a,i.value,n.strict,r))return!1}else if(!n.strict&&!L(t,i.value)&&!O(a,i.value,n.strict,r))return!1;return 0===I(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 _),B(l,c);else if(void 0===(p=S(e,c))&&!E(e,c)||!D(d,p,n,o)){if(n.strict)return!1;if(!H(t,e,c,d,n,o))return!1;l||(l=new _),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(!P(l,t,c,p,n,o))return!1}else if(!(n.strict||t.has(c)&&D(S(t,c),p,n,o)||P(l,t,c,p,r({},n,{strict:!1}),o)))return!1;return 0===I(l)}return!0}(t,e,n,o);return!0}(t,e,a,o)}function R(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 D(t,e,n,l())}},54224(t,e,n){var r={"./cdtr-aurora-preset":[58960,[8960]],"./cdtr-aurora-preset/":[58960,[8960]],"./cdtr-aurora-preset/index":[58960,[8960]],"./cdtr-aurora-preset/index.js":[58960,[8960]],"./cdtr-background-video":[55150,[5284,5150]],"./cdtr-background-video/":[55150,[5284,5150]],"./cdtr-background-video/index":[55150,[5284,5150]],"./cdtr-background-video/index.js":[55150,[5284,5150]],"./cdtr-glows-preset":[60370,[370]],"./cdtr-glows-preset/":[60370,[370]],"./cdtr-glows-preset/index":[60370,[370]],"./cdtr-glows-preset/index.js":[60370,[370]],"./cdtr-halo-preset":[2346,[2346]],"./cdtr-halo-preset/":[2346,[2346]],"./cdtr-halo-preset/index":[2346,[2346]],"./cdtr-halo-preset/index.js":[2346,[2346]],"./cdtr-images-preset":[40566,[566]],"./cdtr-images-preset/":[40566,[566]],"./cdtr-images-preset/index":[40566,[566]],"./cdtr-images-preset/index.js":[40566,[566]],"./cdtr-particlesjs":[51292,[1292]],"./cdtr-particlesjs/":[51292,[1292]],"./cdtr-particlesjs/index":[51292,[1292]],"./cdtr-particlesjs/index.js":[51292,[1292]]};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":[58960,[8960]],"./cdtr-aurora-preset/":[58960,[8960]],"./cdtr-aurora-preset/index":[58960,[8960]],"./cdtr-aurora-preset/index.js":[58960,[8960]],"./cdtr-background-video":[55150,[5284,5150]],"./cdtr-background-video/":[55150,[5284,5150]],"./cdtr-background-video/index":[55150,[5284,5150]],"./cdtr-background-video/index.js":[55150,[5284,5150]],"./cdtr-glows-preset":[60370,[370]],"./cdtr-glows-preset/":[60370,[370]],"./cdtr-glows-preset/index":[60370,[370]],"./cdtr-glows-preset/index.js":[60370,[370]],"./cdtr-halo-preset":[2346,[2346]],"./cdtr-halo-preset/":[2346,[2346]],"./cdtr-halo-preset/index":[2346,[2346]],"./cdtr-halo-preset/index.js":[2346,[2346]],"./cdtr-images-preset":[40566,[566]],"./cdtr-images-preset/":[40566,[566]],"./cdtr-images-preset/index":[40566,[566]],"./cdtr-images-preset/index.js":[40566,[566]],"./cdtr-particlesjs":[51292,[1292]],"./cdtr-particlesjs/":[51292,[1292]],"./cdtr-particlesjs/index":[51292,[1292]],"./cdtr-particlesjs/index.js":[51292,[1292]]};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":[95189,[5189]],"./401.js":[95189,[5189]],"./404":[19082,[9082]],"./404.js":[19082,[9082]],"./500":[6077,[6077]],"./500.js":[6077,[6077]],"./504":[5473,[5473]],"./504.js":[5473,[5473]]};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+"},92833(){},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"),A=t=>null!==t&&"object"==typeof t,w=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"),v=d("File"),k=d("Blob"),C=d("FileList");const _="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{},E=void 0!==_.FormData?_.FormData:void 0,S=d("URLSearchParams"),[M,B,T,L]=["ReadableStream","Request","Response","Headers"].map(d);function I(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 O(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,H=t=>!u(t)&&t!==N;const z=(P="undefined"!=typeof Uint8Array&&i(Uint8Array),t=>P&&t instanceof P);var P;const D=d("HTMLFormElement"),R=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),j=d("RegExp"),F=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};I(n,(n,o)=>{let i;!1!==(i=e(n,o,t))&&(r[o]=i||n)}),Object.defineProperties(t,r)};const q=d("AsyncFunction"),U=(W="function"==typeof setImmediate,V=b(N.postMessage),W?setImmediate:V?(Y=`axios@${Math.random()}`,G=[],N.addEventListener("message",({source:t,data:e})=>{t===N&&e===Y&&G.length&&G.shift()()},!1),t=>{G.push(t),N.postMessage(Y,"*")}):t=>setTimeout(t));var W,V,Y,G;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:A,isPlainObject:w,isEmptyObject:t=>{if(!A(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:v,isReactNativeBlob:t=>!(!t||void 0===t.uri),isReactNative:t=>t&&void 0!==t.getParts,isBlob:k,isRegExp:j,isFunction:b,isStream:t=>A(t)&&b(t.pipe),isURLSearchParams:S,isTypedArray:z,isFileList:C,forEach:I,merge:function t(){const{caseless:e,skipUndefined:n}=H(this)&&this||{},r={},o=(o,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const a=e&&O(r,i)||i;w(r[a])&&w(o)?r[a]=t(r[a],o):w(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]&&I(arguments[t],o);return r},extend:(t,e,n,{allOwnKeys:o}={})=>(I(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:D,hasOwnProperty:R,hasOwnProp:R,reduceDescriptors:F,freezeMethods:t=>{F(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:O,global:N,isContextDefined:H,isSpecCompliantForm:function(t){return!!(t&&b(t.append)&&"FormData"===t[s]&&t[a])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(A(t)){if(e.indexOf(t)>=0)return;if(f(t))return t;if(!("toJSON"in t)){e[r]=t;const o=h(t)?[]:{};return I(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:q,isThenable:t=>t&&(A(t)||b(t))&&b(t.then)&&b(t.catch),setImmediate:U,asap:X,isIterable:t=>null!=t&&b(t[a])};class Q extends Error{static from(t,e,n,r,o,i){const a=new Q(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}}}Q.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Q.ERR_BAD_OPTION="ERR_BAD_OPTION",Q.ECONNABORTED="ECONNABORTED",Q.ETIMEDOUT="ETIMEDOUT",Q.ERR_NETWORK="ERR_NETWORK",Q.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Q.ERR_DEPRECATED="ERR_DEPRECATED",Q.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Q.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Q.ERR_CANCELED="ERR_CANCELED",Q.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Q.ERR_INVALID_URL="ERR_INVALID_URL";var K=Q;function J(t){return Z.isPlainObject(t)||Z.isArray(t)}function $(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=$(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 K("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(J)}(t)||(Z.isFileList(t)||Z.endsWith(n,"[]"))&&(s=Z.toArray(t)))return n=$(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!!J(t)||(e.append(tt(o,n,i),l(t)),!1)}const d=[],p=Object.assign(et,{defaultVisitor:c,convertValue:l,isVisitable:J});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 K.from(t,K.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 At=yt;const wt=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 vt(t){return t&&String(t).trim().toLowerCase()}function kt(t){return!1===t||null==t?t:Z.isArray(t)?t.map(kt):String(t)}function Ct(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 _t{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function o(t,e,n){const o=vt(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]=kt(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]&&wt[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=vt(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=vt(t)){const n=Z.findKey(this,t);return!(!n||void 0===this[n]||e&&!Ct(0,this[n],n,e))}return!1}delete(t,e){const n=this;let r=!1;function o(t){if(t=vt(t)){const o=Z.findKey(n,t);!o||e&&!Ct(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&&!Ct(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]=kt(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]=kt(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=vt(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}}_t.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Z.reduceDescriptors(_t.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}}),Z.freezeMethods(_t);var Et=_t;function St(t,e){const n=this||At,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 K{constructor(t,e,n){super(null==t?"canceled":t,K.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 K("Request failed with status code "+n.status,[K.ERR_BAD_REQUEST,K.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)},It=(t,e)=>{const n=null!=t;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Ot=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,Ht=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 Pt=t=>t instanceof Et?{...t}:t;function Dt(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(Pt(t),Pt(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 Rt=t=>{const e=Dt({},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&&Ht.read(i);t&&a.set(o,t)}return e};var jt="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise(function(e,n){const r=Rt(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 K("Request aborted",K.ECONNABORTED,t,m)),m=null)},m.onerror=function(e){const r=e&&e.message?e.message:"Network Error",o=new K(r,K.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 K(e,o.clarifyTimeoutError?K.ETIMEDOUT:K.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 K("Unsupported protocol "+b+":",K.ERR_BAD_REQUEST,t)):m.send(o||null)})};var Ft=(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 K?e:new Bt(e instanceof Error?e.message:e))}};let i=e&&setTimeout(()=>{i=null,o(new K(`timeout of ${e}ms exceeded`,K.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 qt=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()}},Wt=(t,e,n,r)=>{const o=async function*(t,e){for await(const n of Ut(t))yield*qt(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:Vt}=Z,Yt=(({Request:t,Response:e})=>({Request:t,Response:e}))(Z.global),{ReadableStream:Gt,TextEncoder:Xt}=Z.global,Zt=(t,...e)=>{try{return!!t(...e)}catch(t){return!1}},Qt=t=>{t=Z.merge.call({skipUndefined:!0},Yt,t);const{fetch:e,Request:n,Response:r}=t,o=e?Vt(e):"function"==typeof fetch,i=Vt(n),a=Vt(r);if(!o)return!1;const s=o&&Vt(Gt),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 Gt,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 K(`Response type '${t}' is not supported`,K.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:A="same-origin",fetchOptions:w}=Rt(t),x=e||fetch;b=b?(b+"").toLowerCase():"text";let v=Ft([l,c&&c.toAbortSignal()],f),k=null;const C=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let _;try{if(g&&d&&"get"!==a&&"head"!==a&&0!==(_=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]=It(_,Lt(Ot(g)));s=Wt(e.body,65536,t,n)}}Z.isString(A)||(A=A?"include":"omit");const e=i&&"credentials"in n.prototype,l={...w,signal:v,method:a.toUpperCase(),headers:y.normalize().toJSON(),body:s,duplex:"half",credentials:e?A:void 0};k=i&&new n(o,l);let c=await(i?x(k,w):x(o,l));const f=p&&("stream"===b||"response"===b);if(p&&(m||f&&C)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=c[e]});const e=Z.toFiniteNumber(c.headers.get("content-length")),[n,o]=m&&It(e,Lt(Ot(m),!0))||[];c=new r(Wt(c.body,65536,n,()=>{o&&o(),C&&C()}),t)}b=b||"text";let E=await h[Z.findKey(h,b)||"text"](c,t);return!f&&C&&C(),await new Promise((e,n)=>{Tt(e,n,{data:E,headers:Et.from(c.headers),status:c.status,statusText:c.statusText,config:t,request:k})})}catch(e){if(C&&C(),e&&"TypeError"===e.name&&/Load failed|fetch/i.test(e.message))throw Object.assign(new K("Network Error",K.ERR_NETWORK,t,k,e&&e.response),{cause:e.cause||e});throw K.from(e,e&&e.code,t,k,e&&e.response)}}},Kt=new Map,Jt=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=Kt;for(;l--;)a=i[l],s=c.get(a),void 0===s&&c.set(a,s=l?new Map:Qt(e)),c=s;return s};Jt();const $t={http:null,xhr:jt,fetch:{get:Jt}};Z.forEach($t,(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=$t[(n=String(r)).toLowerCase()],void 0===o))throw new K(`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 K("There is no suitable adapter to dispatch the request "+e,"ERR_NOT_SUPPORT")}return o},adapters:$t};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||At.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 K(r(o," has been removed"+(e?" in "+e:"")),K.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 K("options must be an object",K.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 K("option "+i+" must be "+n,K.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new K("Unknown option "+i,K.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=Dt(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=Dt(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(Dt(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(Dt(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(Dt(e,n))},o}(At);ge.Axios=pe,ge.CanceledError=Bt,ge.CancelToken=ue,ge.isCancel=Mt,ge.VERSION=ie,ge.toFormData=nt,ge.AxiosError=K,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=Dt,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),A=p("Map.prototype.forEach",!0),w=p("Set.prototype.forEach",!0);if("undefined"==typeof process||!process.versions||!process.versions.node)var x=p("Map.prototype.iterator",!0),v=p("Set.prototype.iterator",!0);var k=p("Map.prototype.@@iterator",!0)||p("Map.prototype._es6-shim iterator_",!0),C=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(k)return k(t);if(A){var e=[];return A(t,function(t,n){h(e,[n,t])}),m(e)}}if(y(t)){if(v)return o(v(t));if(C)return C(t);if(w){var n=[];return w(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,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}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 A="[a-zA-Z]\\w*",w="[a-zA-Z_]\\w*",x="\\b\\d+(\\.\\d+)?",v="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",k="\\b(0b[01]+)",C={begin:"\\\\[\\s\\S]",relevance:0},_={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[C]},E={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[C]},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},I={scope:"number",begin:v,relevance:0},O={scope:"number",begin:k,relevance:0},N={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[C,{begin:/\[/,end:/\]/,relevance:0,contains:[C]}]}]},H={scope:"title",begin:A,relevance:0},z={scope:"title",begin:w,relevance:0},P={begin:"\\.\\s*"+w,relevance:0};var D=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:A,UNDERSCORE_IDENT_RE:w,NUMBER_RE:x,C_NUMBER_RE:v,BINARY_NUMBER_RE:k,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:C,APOS_STRING_MODE:_,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:I,BINARY_NUMBER_MODE:O,REGEXP_MODE:N,TITLE_MODE:H,UNDERSCORE_TITLE_MODE:z,METHOD_GUARD:P,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 R(t,e){"."===t.input[t.index-1]&&e.ignoreMatch()}function j(t,e){void 0!==t.className&&(t.scope=t.className,delete t.className)}function F(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=R,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,void 0===t.relevance&&(t.relevance=0))}function q(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 W(t,e){void 0===t.relevance&&(t.relevance=1)}const V=(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},Y=["of","and","for","in","not","or","if","then","parent","list","value"];function G(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,G(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 Y.includes(t.toLowerCase())}(t)?0:1}const Z={},Q=t=>{console.error(t)},K=(t,...e)=>{console.log(`WARN: ${t}`,...e)},J=(t,e)=>{Z[`${t}/${e}`]||(console.log(`Deprecated as of ${t}. ${e}`),Z[`${t}/${e}`]=!0)},$=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 Q("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),$;if("object"!=typeof t.beginScope||null===t.beginScope)throw Q("beginScope must be object"),$;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 Q("skip, excludeEnd, returnEnd not compatible with endScope: {}"),$;if("object"!=typeof t.endScope||null===t.endScope)throw Q("endScope must be object"),$;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;[j,U,et,V].forEach(t=>t(i,a)),t.compilerExtensions.forEach(t=>t(i,a)),i.__beforeBegin=null,[F,q,W].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=G(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):(J("10.7.0","highlight(lang, code, ...args) has been deprecated."),J("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=C.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=C.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=A(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=C.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(C.classNameAliases[t.scope]||t.scope),t.beginScope&&(t.beginScope._wrap?(u(T,C.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 w(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 v(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=w(i);if(t!==st)return t}if("illegal"===i.type&&""===s)return 1;if(O>1e5&&O>3*i.index){throw new Error("potential infinite loop, way more iterations than matches")}return T+=s,s.length}const C=k(t);if(!C)throw Q(s.replace("{}",t)),new Error('Unknown language: "'+t+'"');const _=nt(C);let E="",S=i||_;const M={},B=new d.__emitter(d);!function(){const t=[];for(let e=S;e!==C;e=e.parent)e.scope&&t.unshift(e.scope);t.forEach(t=>B.openNode(t))}();let T="",L=0,I=0,O=0,N=!1;try{if(C.__emitTokens)C.__emitTokens(e,B);else{for(S.matcher.considerAll();;){O++,N?N=!1:S.matcher.considerAll(),S.matcher.lastIndex=I;const t=S.matcher.exec(e);if(!t)break;const n=v(e.substring(I,t.index),t);I=t.index+n}v(e.substring(I))}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:I,context:e.slice(I-100,I+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 A(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(k).filter(_).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(k(t.language).supersetOf===e.language)return 1;if(k(e.language).supersetOf===t.language)return-1}return 0}),[a,s]=i,c=a;return c.secondBest=s,c}function w(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=k(n[1]);return e||(K(s.replace("{}",n[1])),K("Falling back to no-highlight mode for this block.",t)),e?n[1]:"no-highlight"}return e.split(/\s+/).find(t=>g(t)||k(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}):A(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 v(){if("loading"===document.readyState)return void(x=!0);document.querySelectorAll(d.cssSelector).forEach(w)}function k(t){return t=(t||"").toLowerCase(),r[t]||r[o[t]]}function C(t,{languageName:e}){"string"==typeof t&&(t=[t]),t.forEach(t=>{o[t.toLowerCase()]=e})}function _(t){const e=k(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&&v()},!1),Object.assign(t,{highlight:b,highlightAuto:A,highlightAll:v,highlightElement:w,highlightBlock:function(t){return J("10.7.0","highlightBlock will be removed entirely in v12.0"),J("10.7.0","Please use highlightElement now."),w(t)},configure:function(t){d=at(d,t)},initHighlighting:()=>{v(),J("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function(){v(),J("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function(e,n){let o=null;try{o=n(t)}catch(t){if(Q("Language definition for '{}' could not be registered.".replace("{}",e)),!a)throw t;Q(t),o=l}o.name||(o.name=e),r[e]=o,o.rawDefinition=n.bind(null,t),o.aliases&&C(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:k,registerAliases:C,autoDetection:_,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 D)"object"==typeof D[t]&&e(D[t]);return Object.assign(t,D),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:()=>At,parse:()=>Ct,parseInline:()=>kt,parser:()=>_t,setOptions:()=>wt,use:()=>xt,walkTokens:()=>vt}),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]+)*)/,A=/(?!\s*\])(?:\\.|[^\[\]\\])+/,w=p(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",A).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),x=p(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,f).getRegex(),v="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",k=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,C=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",k).replace("tag",v).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),_=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",v).getRegex(),E={blockquote:p(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",_).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:w,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:C,lheading:g,list:x,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:_,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",v).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",v).getRegex()},B={...E,html:p("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",k).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,I=/[\s\p{P}\p{S}]/u,O=/[^\s\p{P}\p{S}]/u,N=p(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,I).getRegex(),H=/(?!~)[\p{P}\p{S}]/u,z=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,P=p(z,"u").replace(/punct/g,L).getRegex(),D=p(z,"u").replace(/punct/g,H).getRegex(),R="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",j=p(R,"gu").replace(/notPunctSpace/g,O).replace(/punctSpace/g,I).replace(/punct/g,L).getRegex(),F=p(R,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,H).getRegex(),q=p("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,O).replace(/punctSpace/g,I).replace(/punct/g,L).getRegex(),U=p(/\\(punct)/,"gu").replace(/punct/g,L).getRegex(),W=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(),V=p(k).replace("(?:--\x3e|$)","--\x3e").getRegex(),Y=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",V).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),G=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,X=p(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",G).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Z=p(/^!?\[(label)\]\[(ref)\]/).replace("label",G).replace("ref",A).getRegex(),Q=p(/^!?\[(ref)\](?:\[\])?/).replace("ref",A).getRegex(),K={_backpedal:d,anyPunctuation:U,autolink:W,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,br:T,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:d,emStrongLDelim:P,emStrongRDelimAst:j,emStrongRDelimUnd:q,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:X,nolink:Q,punctuation:N,reflink:Z,reflinkSearch:p("reflink|nolink(?!\\()","g").replace("reflink",Z).replace("nolink",Q).getRegex(),tag:Y,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:d},J={...K,link:p(/^!?\[(label)\]\((.*?)\)/).replace("label",G).getRegex(),reflink:p(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",G).getRegex()},$={...K,emStrongRDelimAst:F,emStrongLDelim:D,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={...$,br:p(T).replace("{2,}","*").getRegex(),text:p($.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},et={normal:E,gfm:M,pedantic:B},nt={normal:K,gfm:$,breaks:tt,pedantic:J},rt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},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 At=yt.options,wt=yt.setOptions,xt=yt.use,vt=yt.walkTokens,kt=yt.parseInline,Ct=yt,_t=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)&&(q(e.r)&&q(e.g)&&q(e.b)?(n=i(e.r,e.g,e.b),d=!0,p="%"===String(e.r).substr(-1)?"prgb":"rgb"):q(e.h)&&q(e.s)&&q(e.v)?(o=H(e.s),a=H(e.v),n=c(e.h,o,a),d=!0,p="hsv"):q(e.h)&&q(e.s)&&q(e.l)&&(o=H(e.s),l=H(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 A(t,e){var n=r(t).toHsl(),o=(n.h+e)%360;return n.h=o<0?360+o:o,r(n)}function w(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 v(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 k(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 C(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(A,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(k,arguments)},complement:function(){return this._applyCombination(w,arguments)},monochromatic:function(){return this._applyCombination(C,arguments)},splitcomplement:function(){return this._applyCombination(v,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]:H(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=W(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 _=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(_);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){I(t)&&(t="100%");var n=O(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 I(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)}function O(t){return"string"==typeof t&&-1!=t.indexOf("%")}function N(t){return 1==t.length?"0"+t:""+t}function H(t){return t<=1&&(t=100*t+"%"),t}function z(t){return Math.round(255*parseFloat(t)).toString(16)}function P(t){return L(t)/255}var D,R,j,F=(R="[\\s|\\(]+("+(D="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",j="[\\s|\\(]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",{CSS_UNIT:new RegExp(D),rgb:new RegExp("rgb"+R),rgba:new RegExp("rgba"+j),hsl:new RegExp("hsl"+R),hsla:new RegExp("hsla"+j),hsv:new RegExp("hsv"+R),hsva:new RegExp("hsva"+j),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 q(t){return!!F.CSS_UNIT.exec(t)}function U(t){t=t.replace(e,"").replace(n,"").toLowerCase();var r,o=!1;if(_[t])t=_[t],o=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(r=F.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=F.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=F.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=F.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=F.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=F.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=F.hex8.exec(t))?{r:L(r[1]),g:L(r[2]),b:L(r[3]),a:P(r[4]),format:o?"name":"hex8"}:(r=F.hex6.exec(t))?{r:L(r[1]),g:L(r[2]),b:L(r[3]),format:o?"name":"hex"}:(r=F.hex4.exec(t))?{r:L(r[1]+""+r[1]),g:L(r[2]+""+r[2]),b:L(r[3]+""+r[3]),a:P(r[4]+""+r[4]),format:o?"name":"hex8"}:!!(r=F.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 W(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:()=>_,AH:()=>l,W3:()=>v,Ec:()=>k});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,A=y?y.emptyScript:"",w=b.reactiveElementPolyfillSupport,x=(t,e)=>t,v={toAttribute(t,e){switch(e){case Boolean:t=t?A: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}},k=(t,e)=>!p(t,e),C={attribute:!0,type:String,converter:v,reflect:!1,useDefault:!1,hasChanged:k};Symbol.metadata??=Symbol("metadata"),b.litPropertyMetadata??=new WeakMap;class _ 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=C){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)??C}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:v).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:v;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??k)(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){}}_.elementStyles=[],_.shadowRootOptions={mode:"open"},_[x("elementProperties")]=new Map,_[x("finalized")]=new Map,w?.({ReactiveElement:_}),(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:()=>Pt,Nx:()=>Dt,eL:()=>Rt,gu:()=>qt,FF:()=>Wt,iI:()=>F,z6:()=>Ht,hO:()=>Vt,Op:()=>Zt,OX:()=>de,Zc:()=>ge,KV:()=>V,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 A=(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 w(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=w(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},v=(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=w(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},k=(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 C=(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=w(n.node(t-1).contentMatchAt(n.indexAfter(t-1)));let e=_&&_(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 _;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 I=L(l,d,u),O=L(l,g,b);const N={Enter:L(A,v,k,C),"Mod-Enter":x,Backspace:I,"Mod-Backspace":I,"Shift-Backspace":I,Delete:O,"Mod-Delete":O,"Mod-a":(t,e)=>(e&&e(t.tr.setSelection(new r.i5(t.doc))),!0)},H={"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)H[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 P(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 D(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 R{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:D({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 j{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 F(t,e,n){if(void 0===t.config[e]&&t.parent)return F(t.parent,e,n);if("function"==typeof t.config[e]){return t.config[e].bind({...n,parent:t.parent?F(t.parent,e,n):null})}return t.config[e]}function q(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}=q(t),o=[...n,...r],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach(t=>{const n=F(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=F(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 W(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 V(...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 Y(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)=>V(t,e),{})}function G(t){return"function"==typeof t}function X(t,e=void 0,...n){return G(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 Q(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 K(t,e){var n;const r=U(t),{nodeExtensions:o,markExtensions:i}=q(t),s=null===(n=o.find(t=>F(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=Q({...t.reduce((t,e)=>{const r=F(e,"extendNodeSchema",i);return{...t,...r?r(n):{}}},{}),content:X(F(n,"content",i)),marks:X(F(n,"marks",i)),group:X(F(n,"group",i)),inline:X(F(n,"inline",i)),atom:X(F(n,"atom",i)),selectable:X(F(n,"selectable",i)),draggable:X(F(n,"draggable",i)),code:X(F(n,"code",i)),whitespace:X(F(n,"whitespace",i)),linebreakReplacement:X(F(n,"linebreakReplacement",i)),defining:X(F(n,"defining",i)),isolating:X(F(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(F(n,"parseHTML",i));s&&(a.parseDOM=s.map(t=>Z(t,o)));const l=F(n,"renderHTML",i);l&&(a.toDOM=t=>l({node:t,HTMLAttributes:Y(t,o)}));const c=F(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=Q({...t.reduce((t,e)=>{const r=F(e,"extendMarkSchema",i);return{...t,...r?r(n):{}}},{}),inclusive:X(F(n,"inclusive",i)),excludes:X(F(n,"excludes",i)),group:X(F(n,"group",i)),spanning:X(F(n,"spanning",i)),code:X(F(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(F(n,"parseHTML",i));s&&(a.parseDOM=s.map(t=>Z(t,o)));const l=F(n,"renderHTML",i);return l&&(a.toDOM=t=>l({mark:t,HTMLAttributes:Y(t,o)})),[n.name,a]}));return new a.Sj({topNode:s,nodes:l,marks:c})}function J(t,e){return e.nodes[t]||e.marks[t]||null}function $(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=D({state:l.state,transaction:a}),h={from:r-(e[0].length-i.length),to:o},{commands:u,chain:f,can:m}=new R({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(F(this,"addOptions",{name:this.name}))),this.storage=X(F(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(F(e,"addOptions",{name:e.name})),e.storage=X(F(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 R({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=D({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=K(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=F(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=F(t,"priority")||100,r=F(e,"priority")||100;return n>r?-1:n<r?1:0})}get commands(){return this.extensions.reduce((t,e)=>{const n=F(e,"addCommands",{name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:J(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:J(e.name,this.schema)},a=[],s=F(e,"addKeyboardShortcuts",o);let l={};if("mark"===e.type&&F(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=F(e,"addInputRules",o);$(e,t.options.enableInputRules)&&d&&n.push(...d());const p=F(e,"addPasteRules",o);$(e,t.options.enablePasteRules)&&p&&r.push(...p());const h=F(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}=q(this.extensions);return Object.fromEntries(e.filter(t=>!!F(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:W(e.name,this.schema)},o=F(e,"addNodeView",r);if(!o)return[];return[e.name,(r,i,a,s,l)=>{const c=Y(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:J(t.name,this.schema)};if("mark"===t.type){(null===(e=X(F(t,"keepOnSplit",n)))||void 0===e||e)&&this.splittableMarks.push(t.name)}const r=F(t,"onBeforeCreate",n),o=F(t,"onCreate",n),i=F(t,"onUpdate",n),a=F(t,"onSelectionUpdate",n),s=F(t,"onTransaction",n),l=F(t,"onFocus",n),c=F(t,"onBlur",n),d=F(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(F(this,"addOptions",{name:this.name}))),this.storage=X(F(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(F(e,"addOptions",{name:e.name})),e.storage=X(F(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 At(t,e,n={}){return!!yt(t,e,n)}function wt(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&&At([...t.parent.child(i-1).marks],e,n);)i-=1,a-=t.parent.child(i).nodeSize;for(;s<t.parent.childCount&&At([...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 vt(t){return t instanceof r.U3}function kt(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function Ct(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,kt(0,i,a),kt(t.content.size,i,a)):r.U3.create(t,kt(e,i,a),kt(e,i,a))}function _t(){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?W(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 It(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function Ot(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 Ht(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 Pt(t,e){const n=[];return t.descendants((t,r)=>{e(t)&&n.push({node:t,pos:r})}),n}function Dt(t,e,n){const r=[];return t.nodesBetween(e.from,e.to,(t,e)=>{n(t)&&r.push({node:t,pos:e})}),r}function Rt(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 jt(t){return e=>Rt(e.$from,t)}function Ft(t,e){return ft(t,{from:0,to:t.content.size},e)}function qt(t,e){const n=It("string"==typeof e?e:e.name,t.schema);return"node"===n?function(t,e){const n=W(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?Ht(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 Wt(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 Vt(t,e,n){const r=[];return t===e?n.resolve(t).marks().forEach(e=>{const o=wt(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 Yt(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 Gt(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}=q(e),r=n.find(e=>e.name===t);if(!r)return!1;const o=X(F(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 Qt(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 Kt=(t,e)=>{const n=jt(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)},Jt=(t,e)=>{const n=jt(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 $t=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})=>v(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=W(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=wt(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()||_t())&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),"undefined"==typeof navigator||!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||Et()||_t()||r.dom.focus({preventScroll:!0}))})};if(r.hasFocus()&&null===t||!1===t)return!0;if(i&&null===t&&!vt(n.state.selection))return a(),!0;const s=Ct(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,W(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})=>k(t,e),liftListItem:t=>({state:e,dispatch:n})=>P(W(t,e.schema))(e,n),newlineInCode:()=>({state:t,dispatch:e})=>A(t,e),resetAttributes:(t,e)=>({tr:n,state:r,dispatch:o})=>{let i=null,a=null;const s=It("string"==typeof t?t:t.name,r.schema);return!!s&&("node"===s&&(i=W(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,Ot(t.attrs,e)),a&&t.marks.length&&t.marks.forEach(o=>{a===o.type&&n.addMark(r,r+t.nodeSize,a.create(Ot(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=Ht(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(vt(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=W(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=kt(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=kt(o,a,s),c=kt(i,a,s),d=r.U3.create(n,l,c);e.setSelection(d)}return!0},sinkListItem:t=>({state:e,dispatch:n})=>{const r=W(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=Yt(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&&Qt(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&&Qt(n,i.extensionManager.splittableMarks),e.scrollIntoView()}return m},splitListItem:(t,e={})=>({tr:n,state:o,dispatch:i,editor:l})=>{var c;const d=W(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={...Yt(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={...Yt(m,f.type.name,f.attrs),...e},y={...Yt(m,p.node().type.name,p.node().attrs),...e};n.delete(p.pos,h.pos);const A=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,A).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=W(t,a.schema),f=W(e,a.schema),{selection:m,storedMarks:g}=a,{$from:b,$to:y}=m,A=b.blockRange(y),w=g||m.$to.parentOffset&&m.$from.marks();if(!A)return!1;const x=jt(t=>Xt(t.type.name,p))(m);if(A.depth>=1&&x&&A.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(()=>Kt(i,u)).command(()=>Jt(i,u)).run()}return n&&w&&s?l().command(()=>{const t=d().wrapInList(u,r),e=w.filter(t=>h.includes(t.type.name));return i.ensureMarks(e),!!t||c.clearNodes()}).wrapInList(u,r).command(()=>Kt(i,u)).command(()=>Jt(i,u)).run():l().command(()=>!!d().wrapInList(u,r)||c.clearNodes()).wrapInList(u,r).command(()=>Kt(i,u)).command(()=>Jt(i,u)).run()},toggleMark:(t,e={},n={})=>({state:r,commands:o})=>{const{extendEmptyMarkRange:i=!1}=n,a=xt(t,r.schema);return Gt(r,a,e)?o.unsetMark(a,{extendEmptyMarkRange:i}):o.setMark(a,e)},toggleNode:(t,e,n={})=>({state:r,commands:o})=>{const i=W(t,r.schema),a=W(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=W(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=wt(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=It("string"==typeof t?t:t.name,r.schema);return!!s&&("node"===s&&(i=W(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)}}(W(t,n.schema),e)(n,r),wrapInList:(t,e={})=>({state:n,dispatch:r})=>z(W(t,n.schema),e)(n,r)});const te=ut.create({name:"commands",addCommands:()=>({...$t})}),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=D({state:n,transaction:p}),{commands:u}=new R({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 j{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=G(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 R({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=Ct(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 qt(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)||Gt(t,null,n);const r=It(e,t.schema);return"node"===r?Lt(t,e,n):"mark"===r&&Gt(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 Ft(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(Vt(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(F(this,"addOptions",{name:this.name}))),this.storage=X(F(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(F(e,"addOptions",{name:e.name})),e.storage=X(F(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(Vt(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}})},90541(t,e,n){"use strict";function r(t){if("string"!=typeof t)return null;const e=t.trim().match(/^(-?\d+(?:\.\d+)?)px$/);return e?Number(e[1]):null}function o(t){if(!t)return 0;const e=null!=t.padding?function(t){const e=String(t).trim().split(/\s+/).map(t=>"0"===t?0:r(t)??0),[n=0,o=n,i=n,a=o]=e;return{t:n,r:o,b:i,l:a}}(t.padding):{r:0,l:0};return(null!=t.paddingLeft?r(String(t.paddingLeft))??0:e.l)+(null!=t.paddingRight?r(String(t.paddingRight))??0:e.r)}function i(t){if("string"!=typeof t)return null;const e=t.trim().toLowerCase();let n=e.match(/^#([0-9a-f]{3})$/);return n?n[1].split("").map(t=>parseInt(t+t,16)):(n=e.match(/^#([0-9a-f]{6})$/),n?[0,2,4].map(t=>parseInt(n[1].slice(t,t+2),16)):(n=e.match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+)\s*)?\)$/),n?null!=n[4]&&Number(n[4])<1?null:[n[1],n[2],n[3]].map(Number):null))}function a(t){let[e,n,r]=t;const o=[e,n,r].map(t=>{const e=t/255;return e<=.03928?e/12.92:((e+.055)/1.055)**2.4});return.2126*o[0]+.7152*o[1]+.0722*o[2]}function s(t,e){const n=Array.isArray(t)?t:i(t),r=Array.isArray(e)?e:i(e);if(!n||!r)return null;const o=a(n),s=a(r);return(Math.max(o,s)+.05)/(Math.min(o,s)+.05)}n.d(e,{kG:()=>_,JT:()=>k});const l=t=>Array.isArray(t)?t.filter(t=>"string"==typeof t):[];function c(t){const e=new Map;for(const n of Array.isArray(t)?t:[])n&&"string"==typeof n.id&&"string"==typeof n.type&&e.set(n.id,{...n,props:n.props&&"object"==typeof n.props?n.props:{}});const n=[...e.values()].find(t=>"root"===t.type)||null,i=new Map,a=new Map,s=n?[n.id]:[];for(;s.length;){const t=s.shift();if(a.has(t))continue;const n=e.get(t);a.set(t,n);for(const r of[...l(n.children),...l(n.elements)])e.has(r)&&!a.has(r)&&(i.set(r,t),s.push(r))}e.clear();for(const[t,n]of a)e.set(t,n);const c=t=>e.get(i.get(t))||null,d=t=>{const n=e.get(t);return n?[...l(n.children),...l(n.elements)].map(t=>e.get(t)).filter(Boolean):[]},p=t=>{const e=[],n=new Set;for(let r=c(t);r&&!n.has(r.id);r=c(r.id))n.add(r.id),e.push(r);return e},h=t=>t.props.style&&"object"==typeof t.props.style?t.props.style:{},u=t=>{const n=(t=>[e.get(t),...p(t)].filter(Boolean).filter(t=>"block"===t.type).pop()||null)(t);return n&&r(h(n).width)||600},f=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const i=e.get(t);if(!i||n>50)return null;const a=o(h(i));if("block"===i.type)return(r(h(i).width)||u(t))-a;const s=c(t),l=s?f(s.id,n+1):null;if(null==l)return null;if("col"===i.type){const t=s?d(s.id).filter(t=>"col"===t.type):[i],e=Number(i.props.lg);return(t.length>1&&Number.isInteger(e)&&e>0&&e<=12?l*e/12:l)-a}if("card"===i.type){const t=h(i).width,e=r(t),n="string"==typeof t&&/%$/.test(t.trim())?parseFloat(t):null,o=e??(null!=n?l*n/100:l);return Math.min(o,l)-a}return l};return{byId:e,root:n,parentOf:c,kids:d,ancestors:p,style:h,desktopWidth:u,containerWidth:t=>{const e=c(t);return e?f(e.id):null}}}const d=[],p=new Set(["image","button","card","video","table"]),h=(t,e)=>({key:`preflight_${t}`,params:e}),u=(t,e,n)=>({label:`preflight_fix_${t}`,patches:[{id:e.id,key:"style",value:{...e.props.style||{},...n}}]}),f=t=>{const e=t.props.lg;return null==e||""===e||0===Number(e)?null:Number(e)},m=t=>{let e=0;for(const n of t){if(e+n>12){if(12!==e)return!1;e=0}e+=n}return!0};d.push({id:"col-grid",group:"mobile",severity:"error",channels:["newsletter"],check(t){const e=[];for(const n of t.byId.values()){if("block"!==n.type)continue;const r=t.kids(n.id).filter(t=>"col"===t.type);if(r.length<2)continue;const o=r.map(f).filter(t=>null!==t),i=o.some(t=>!Number.isInteger(t)||t<0||t>12),a=o.reduce((t,e)=>t+e,0);if(!i&&(a<=12||m(o)))continue;const s=r.filter(t=>null!==f(t)&&12!==f(t));if(!s.length)continue;const l=Math.floor(12/s.length);e.push({elementId:n.id,message:h("col-grid",{total:a}),fix:{label:"preflight_fix_col-grid",patches:s.map((t,e)=>({id:t.id,key:"lg",value:0===e?l+(12-l*s.length):l}))}})}return e}}),d.push({id:"wider-than-container",group:"mobile",severity:"error",channels:["newsletter"],check(t){const e=[];for(const n of t.byId.values()){if(!p.has(n.type))continue;const o=t.style(n);if("100%"===o.maxWidth)continue;const i=r(o.width),a=t.containerWidth(n.id);null==i||null==a||i<=Math.ceil(a)||e.push({elementId:n.id,message:h("wider-than-container",{width:i,room:Math.floor(a)}),fix:u("wider-than-container",n,{width:"100%",maxWidth:"100%"})})}return e}}),d.push({id:"fixed-without-max",group:"mobile",severity:"error",channels:["newsletter"],check(t){const e=[];for(const n of t.byId.values()){if(!p.has(n.type))continue;const o=t.style(n),i=r(o.width);if(null==i||i<=320||"100%"===o.maxWidth)continue;const a=t.containerWidth(n.id);null!=a&&i>Math.ceil(a)||e.push({elementId:n.id,message:h("fixed-without-max",{width:i}),fix:u("fixed-without-max",n,{maxWidth:"100%"})})}return e}}),d.push({id:"block-too-wide",group:"look",severity:"warning",channels:["newsletter"],check(t){const e=[];for(const n of t.byId.values()){if("block"!==n.type||t.ancestors(n.id).some(t=>"col"===t.type))continue;const o=r(t.style(n).width);null==o||o<=640||e.push({elementId:n.id,message:h("block-too-wide",{width:o}),fix:u("block-too-wide",n,{width:"600px",maxWidth:"100%"})})}return e}}),d.push({id:"cramped-columns",group:"mobile",severity:"error",channels:["newsletter"],check(t){const e=[];for(const n of t.byId.values()){if("block"!==n.type||!n.props.noResponsive)continue;const r=t.kids(n.id).filter(t=>"col"===t.type);if(r.length<2)continue;const o=320-(t.desktopWidth(n.id)-(t.containerWidth(r[0].id)??0)),i=Math.min(...r.map(t=>(f(t)||12/r.length)/12*o));i>=100||e.push({elementId:n.id,message:h("cramped-columns",{width:Math.floor(i)}),fix:{label:"preflight_fix_cramped-columns",patches:[{id:n.id,key:"noResponsive",value:!1}]}})}return e}});const g=(t,e,n)=>{const r=[];for(const o of t.byId.values()){if(o.type!==e)continue;const t=n(o);t&&r.push(t)}return r};d.push({id:"button-no-link",group:"missing",severity:"error",channels:"all",check:t=>g(t,"button",t=>t.props.onClick?.link?.href||t.props.modalBlockId?null:{elementId:t.id,message:{key:"preflight_button-no-link"}})}),d.push({id:"placeholder-image",group:"missing",severity:"error",channels:"all",check:t=>g(t,"image",t=>"string"==typeof t.props.src&&t.props.src.includes("/placeholder")?{elementId:t.id,message:{key:"preflight_placeholder-image"}}:null)}),d.push({id:"social-no-url",group:"missing",severity:"error",channels:"all",check:t=>g(t,"social",t=>{const e=(Array.isArray(t.props.items)?t.props.items:[]).map((t,e)=>t&&t.url?null:e).filter(t=>null!==t);return e.length?{elementId:t.id,message:{key:"preflight_social-no-url",params:{items:e}}}:null})});const b=new Set(["card","block","section","root"]),y=["unoccupied","natural light","modern and clean","stock photo","4k","photorealistic","empty room"],A=/[֐-׿؀-ۿ]/;function w(t,e){for(const n of t.ancestors(e)){if(!b.has(n.type))continue;const e=n.props.background;if(e&&e.properties&&e.properties.src)return{photo:!0};const r=t.style(n),o=i(r.backgroundColor)?r.backgroundColor:r.background,a=i(o);if(a)return{color:a,raw:o}}return null}function x(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!t||"object"!=typeof t)return n;if("text"===t.type&&"string"==typeof t.text){const r=(t.marks||[]).find(t=>"textStyle"===t.type),o=r&&r.attrs&&r.attrs.color||e;/[\p{L}\p{N}]/u.test(t.text)&&n.push(o)}for(const r of t.content||[])x(r,e,n);return n}d.push({id:"low-contrast",group:"look",severity:"warning",channels:"all",check(t){const e=[];for(const n of t.byId.values()){if("text"!==n.type)continue;const r=w(t,n.id);if(!r||r.photo)continue;const o=n.props.text&&n.props.text.childNodes;let i=null;for(const e of x(o,t.style(n).color)){const t=s(e,r.color);null!=t&&(null==i||t<i.ratio)&&(i={ratio:t,color:e})}i&&i.ratio<3&&e.push({elementId:n.id,message:{key:"preflight_low-contrast",params:{ratio:i.ratio.toFixed(1),color:i.color,background:r.raw}}})}return e}}),d.push({id:"ai-leftover-alt",group:"look",severity:"warning",channels:"all",check(t){const e=[...t.byId.values()].some(t=>"text"===t.type&&A.test(JSON.stringify(t.props.text||""))),n=[];for(const r of t.byId.values()){if("image"!==r.type||"string"!=typeof r.props.alt)continue;const t=r.props.alt.toLowerCase(),o=y.some(e=>t.includes(e)),i=t.length>80&&o,a=e&&o&&/[a-z]{4,}.*[a-z]{4,}.*[a-z]{4,}/.test(t);(i||a)&&n.push({elementId:r.id,message:{key:"preflight_ai-leftover-alt"},fix:{label:"preflight_fix_ai-leftover-alt",patches:[{id:r.id,key:"alt",value:""}]}})}return n}});d.push({id:"gmail-clip",group:"missing",severity:"error",channels:["newsletter"],check(t){const e=t.htmlBytes;if("number"!=typeof e||e<=92160)return[];const n=Math.round(e/1024);return e>104448?[{elementId:t.root.id,message:{key:"preflight_gmail-clip",params:{kb:n}}}]:[{elementId:t.root.id,severity:"warning",group:"look",message:{key:"preflight_gmail-clip-near",params:{kb:n}}}]}});const v=(t,e)=>"all"===t.channels||Array.isArray(t.channels)&&t.channels.includes(e);function k(t){let e,{channel:n="newsletter",htmlBytes:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{e=c(t)}catch(t){return console.warn("[doc-checks] could not read the document",t),[]}if(!e.root)return[];e.htmlBytes=r;const o=[];for(const t of d)if(v(t,n))try{for(const n of t.check(e)||[])o.push({ruleId:t.id,severity:t.severity,group:t.group,...n})}catch(e){console.warn(`[doc-checks] rule ${t.id} failed and was skipped`,e)}return o.sort((t,e)=>t.severity===e.severity?0:"error"===t.severity?-1:1)}const C=[{id:"mobile",blocking:!0},{id:"missing",blocking:!0},{id:"look",blocking:!1}];function _(t){return C.map(e=>{const n=[],r=new Map;for(const o of t){if((o.group||"look")!==e.id)continue;const t=`${o.ruleId}|${JSON.stringify(o.message&&o.message.params?o.message.params:{})}`;let i=r.get(t);i||(i={...o,count:0,elementIds:[],fix:o.fix?{label:o.fix.label,patches:[]}:void 0},r.set(t,i),n.push(i)),i.count+=1,i.elementIds.push(o.elementId),i.fix&&o.fix&&i.fix.patches.push(...o.fix.patches)}return{...e,items:n}}).filter(t=>t.items.length)}},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:()=>W,c0:()=>S,ge:()=>q,qy:()=>_,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,A=/>/g,w=RegExp(`>|${g}(?:([^\\s"'>=/]+)(${g}*=${g}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),x=/'/g,v=/"/g,k=/^(?:script|style|textarea|title)$/i,C=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),_=C(1),E=C(2),S=(C(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 I=(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=A:void 0!==p[2]?(k.test(p[2])&&(o=RegExp("</"+p[2],"g")),a=w):void 0!==p[3]&&(a=w):a===w?">"===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]?w:'"'===p[3]?v:x):a===v||a===x?a=w:a===y||a===A?a=b:(a=w,o=void 0);const f=a===w&&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 O{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]=I(t,e);if(this.el=O.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]?D:"?"===i[1]?R:"@"===i[1]?j:P}),r.removeAttribute(t)}else t.startsWith(l)&&(p.push({type:6,index:o}),r.removeAttribute(t));if(k.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 H{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 F(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=O.createElement(L(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new H(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 O(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 P{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 D extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===M?void 0:t}}class R extends P{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==M)}}class j extends P{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 F{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 q={M:s,P:l,A:c,C:1,L:I,R:H,D:m,V:N,I:z,H:P,N:R,U:j,B:D,F},U=r.litHtmlPolyfillSupport;U?.(O,z),(r.litHtmlVersions??=[]).push("3.3.2");const W=(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:()=>J,ZF:()=>lt,FK:()=>s,CU:()=>p,sX:()=>Z,bP:()=>L,u$:()=>B,vI:()=>h,Sj:()=>Q,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 v(i,k(t,o,a,e,r))}{let r=t.parent,o=r.content;return v(r,o.cut(0,t.parentOffset).append(n.content).append(o.cut(e.parentOffset)))}}return v(i,C(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 A(t,e,n){let r=t.node(n);return y(r,e.node(n)),r}function w(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&&(w(t.nodeAfter,r),i++));for(let t=i;t<a;t++)w(o.child(t),r);e&&e.depth==n&&e.textOffset&&w(e.nodeBefore,r)}function v(t,e){return t.type.checkContent(e),t.copy(e)}function k(t,e,n,r,o){let i=t.depth>o&&A(t,e,o+1),a=r.depth>o&&A(n,r,o+1),l=[];return x(null,t,o,l),i&&a&&e.index(o)==n.index(o)?(y(i,a),w(v(i,k(t,e,n,r,o+1)),l)):(i&&w(v(i,C(t,e,o+1)),l),x(e,n,o,l),a&&w(v(a,C(n,r,o+1)),l)),x(r,null,o,l),new s(l)}function C(t,e,n){let r=[];if(x(null,t,n,r),t.depth>n){w(v(A(t,e,n+1),C(t,e,n+1)),r)}return x(e,null,n,r),new s(r)}u.empty=new u(s.empty,0,0);class _{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 _(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]=_.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 _.resolveCached(this,t)}resolveNoCache(t){return _.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()+")"),O(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 I 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):O(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 I(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new I(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 O(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 H(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(q(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]);q(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(F);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 H{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(P(t))}while(t.eat("|"));return 1==e.length?e[0]:{type:"choice",exprs:e}}function P(t){let e=[];do{e.push(D(t))}while(t.next&&")"!=t.next&&"|"!=t.next);return 1==e.length?e[0]:{type:"seq",exprs:e}}function D(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=j(t,e)}return e}function R(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function j(t,e){let n=R(t),r=n;return t.eat(",")&&(r="}"!=t.next?R(t):-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function F(t,e){return e-t}function q(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(F)}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 W(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 V(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 Y(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 G{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=Y(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:W(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){V(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 G(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=Y(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,W(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){V(this.attrs,t,"mark",this.name)}excludes(t){return this.excluded.indexOf(t)>-1}}class Q{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=G.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?K(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?[]:K(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 G))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 I(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 K(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 J{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 J(t,J.schemaRules(t)))}}const $={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&&!$.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($.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:()=>k,LN:()=>a,U3:()=>d,hs:()=>M,i5:()=>f,k_:()=>_,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 A(t,e){return e&&t?t.bind(e):t}class w{constructor(t,e,n){this.name=t,this.init=A(e.init,n),this.apply=A(e.apply,n)}}const x=[new w("doc",{init:t=>t.doc||t.schema.topNodeType.createAndFill(),apply:t=>t.doc}),new w("selection",{init:(t,e)=>t.selection||a.atStart(e.doc),apply:t=>t.selection}),new w("storedMarks",{init:t=>t.storedMarks||null,apply:(t,e,n,r)=>r.selection.$cursor?t.storedMarks:null}),new w("scrollToSelection",{init:()=>0,apply:(t,e)=>t.scrolledIntoView?e+1:e})];class v{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 w(t.key,t.spec.state,t))})}}class k{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 k(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 v(t.doc?t.doc.type.schema:t.schema,t.plugins),n=new k(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 v(this.schema,t.plugins),n=e.fields,r=new k(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 v(t.schema,t.plugins),i=new k(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 C(t,e,n){for(let r in t){let o=t[r];o instanceof Function?o=o.bind(e):"handleDOMEvents"==r&&(o=C(o,e,{})),n[r]=o}return n}class _{constructor(t){this.spec=t,this.props={},t.props&&C(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:()=>O,Ln:()=>y,N0:()=>L,Um:()=>I,Wg:()=>A,dL:()=>G,jP:()=>k,n9:()=>B,oM:()=>C,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&&w(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 A 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&&(w(t,this.from,this.gapFrom)||w(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 A(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 A(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 A(e.from,e.to,e.gapFrom,e.gapTo,r.Ji.fromJSON(t,e.slice),e.insert,!!e.structure)}}function w(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 v(t,e,n){return(0==e||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function k(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||!v(i,a,s))break;a&&(r=1),s<i.childCount&&(o=1)}return null}function C(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(_).concat({type:e,attrs:n}).concat(i.map(_)):null}function _(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 I(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 O(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 H(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",A);class H{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 A(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=D(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=D(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=D(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(R(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=P(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||!j(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=j(t,e,r,n,o);if(i){for(let n=e-1;n>=0;n--){let{match:e,type:r}=this.frontier[n],o=j(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=P(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=P(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=P(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 P(t,e,n){return 0==e?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(P(t.lastChild.content,e-1,n)))}function D(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function R(t,e,n){if(e<=0)return t;let o=t.content;return e>1&&(o=o.replaceChild(0,R(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 j(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 F(t){return t.spec.defining||t.spec.definingForContent}function q(t,e,n,o,i){if(e<n){let r=t.firstChild;t=t.replaceChild(0,r.copy(q(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 W 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 W(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 W(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 W(e.pos,e.attr,e.value)}}p.jsonID("attr",W);class V 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 V(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 V(e.attr,e.value)}}p.jsonID("docAttr",V);let Y=class extends Error{};Y=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},(Y.prototype=Object.create(Error.prototype)).constructor=Y,Y.prototype.name="TransformError";class G{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 Y(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=O(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=F(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(q(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 A(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 A(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 A(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 A(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 W(t,e,n)),this}setDocAttribute(t,e){return this.step(new V(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:()=>qe,zF:()=>Ve});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,A=b&&b.userAgent||"",w=/Edge\/(\d+)/.exec(A),x=/MSIE \d/.exec(A),v=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(A),k=!!(x||v||w),C=x?document.documentMode:v?+v[1]:w?+w[1]:0,_=!k&&/gecko\/(\d+)/i.test(A);_&&(/Firefox\/(\d+)/.exec(A)||[0,0])[1];const E=!k&&/Chrome\/(\d+)/.exec(A),S=!!E,M=E?+E[1]:0,B=!k&&!!b&&/Apple Computer/.test(b.vendor),T=B&&(/Mobile\/\w+/.test(A)||!!b&&b.maxTouchPoints>2),L=T||!!b&&/Mac/.test(b.platform),I=!!b&&/Win/.test(b.platform),O=/Android \d/.test(A),N=!!y&&"webkitFontSmoothing"in y.documentElement.style,H=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 P(t,e){return"number"==typeof t?t:t[e]}function D(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 R(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):D(t),c=0,d=0;if(e.top<l.top+P(r,"top")?d=-(l.top-e.top+P(o,"top")):e.bottom>l.bottom-P(r,"bottom")&&(d=e.bottom-e.top>l.bottom-l.top?e.top+P(o,"top")-l.top:e.bottom-l.bottom+P(o,"bottom")),e.left<l.left+P(r,"left")?c=-(l.left-e.left+P(o,"left")):e.right>l.right-P(r,"right")&&(c=e.right-l.right+P(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 j(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 F(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 q=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&&W(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 W(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function V(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(W(e,o))return V(n,e,o)}}if((i=(i+1)%r)==o)break}return t}function Y(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(!W(e,n))return null;if(l=V(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(_&&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 G(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(G(t))return t}return Array.prototype.find.call(n,G)||t.getBoundingClientRect()}const Z=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Q(t,e,n){let{node:r,offset:o,atom:i}=t.docView.domFromPos(e,n<0?-1:1),a=N||_;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++,K(X(c(r,t,e),i),i<0)}{let t=X(c(r,o,o),n);if(_&&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 K(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 J(t.getBoundingClientRect(),!1)}if(null==i&&o<u(r)){let t=r.childNodes[o];if(1==t.nodeType)return J(t.getBoundingClientRect(),!0)}return J(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 K(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 K(X(e,-1),!0)}return K(X(3==r.nodeType?c(r):r,-n),n>=0)}function K(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 J(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 $(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 $(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=Q(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?$(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((_||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(_&&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.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=_t(o,e,i,n)),t>0&&(o=_t(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=wt(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 kt(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(Ct);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=_t(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){wt(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=vt(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=vt(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}At(o,a||gt[0],i)}return o}function At(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 wt(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 vt(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class kt{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 Ct(t,e){return t.type.side-e.type.side}function _t(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=Ht(t,h,p,"pointer"==e||t.state.selection.head<p.pos&&!s?1:-1)}return d}function St(t){return t.editable?t.hasFocus():Pt(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function Mt(t,e=!1){let n=t.state.selection;if(Ot(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&&k&&C<=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&&It(o),i&&It(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 It(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function Ot(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 Ht(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())&&Pt(t)}function Pt(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 Dt(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 Rt(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function jt(t,e,n){let o=t.state.selection;if(!(o instanceof r.U3)){if(o instanceof r.nh&&o.node.isInline)return Rt(t,new r.U3(e>0?o.$to:o.$from));{let n=Dt(t.state,e);return!!n&&Rt(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 Rt(t,new r.U3(o.$anchor,a))}if(!o.empty)return!1;if(t.endOfTextblock(e>0?"forward":"backward")){let n=Dt(t.state,e);return!!(n&&n instanceof r.nh)&&Rt(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)?Rt(t,new r.nh(e<0?t.state.doc.resolve(i.pos-a.nodeSize):i)):!!N&&Rt(t,new r.U3(t.state.doc.resolve(e<0?s:s+a.nodeSize))))}}function Ft(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}function qt(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;_&&1==n.nodeType&&r<Ft(n)&&qt(n.childNodes[r],-1)&&(s=!0);for(;;)if(r>0){if(1!=n.nodeType)break;{let t=n.childNodes[r-1];if(qt(t,-1))o=n,i=--r;else{if(3!=t.nodeType)break;n=t,r=n.nodeValue.length}}}else{if(Wt(n))break;{let e=n.previousSibling;for(;e&&qt(e,-1);)o=n.parentNode,i=a(e),e=e.previousSibling;if(e)n=e,r=Ft(n);else{if(n=n.parentNode,n==t.dom)break;r=0}}}s?Vt(t,n,r):o&&Vt(t,o,i)}(t):function(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let o,i,s=Ft(n);for(;;)if(r<s){if(1!=n.nodeType)break;if(!qt(n.childNodes[r],1))break;o=n,i=++r}else{if(Wt(n))break;{let e=n.nextSibling;for(;e&&qt(e,1);)o=e.parentNode,i=a(e)+1,e=e.nextSibling;if(e)n=e,r=0,s=Ft(n);else{if(n=n.parentNode,n==t.dom)break;r=s=0}}}o&&Vt(t,o,i)}(t)}function Wt(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function Vt(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 Yt(t,e){let n=t.state.doc.resolve(e);if(!S&&!I&&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 Gt(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=Dt(t.state,e);if(n&&n instanceof r.nh)return Rt(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&&Rt(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 Qt(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"==Yt(t,t.state.selection.from)?-1:1:-1;return jt(t,e,r)||Ut(t,e)}if(39==n||L&&70==n&&"c"==r){let e=39==n?"ltr"==Yt(t,t.state.selection.from)?1:-1:1;return jt(t,e,r)||Ut(t,e)}return 38==n||L&&80==n&&"c"==r?Gt(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)||Gt(t,1,r)||Ut(t,1):r==(L?"m":"c")&&(66==n||73==n||89==n||90==n)}function Kt(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 Jt(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||$t.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 $t=/^(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 Ae(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 we(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&&(Ae(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))&&(Ae(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 ve(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&&(Ae(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)Ae(t,r.U3.create(o,a+1,a+1+n.content.size),"pointer");else{if(!r.nh.isSelectable(n))continue;Ae(t,r.nh.create(o,a),"pointer")}return!0}}(t,n,o)}function ke(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(),!O||!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))||Qt(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 Ce=L?"metaKey":"ctrlKey";ce.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=ke(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[Ce]&&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 _e(t,a,n,!!r)):("doubleClick"==i?xe:ve)(t,a.pos,a.inside,n)?n.preventDefault():ue(t,"pointer"))};class _e{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[Ce],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||!_||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"):we(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)?(Ae(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(),ke(t),ue(t,"pointer")},ce.touchmove=t=>{t.input.lastTouch=Date.now(),ue(t,"pointer")},ce.contextmenu=t=>ke(t);const Se=O?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(!(O&&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&&I&&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),_&&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 Ie=k&&C<15||T&&H<604;function Oe(t,e,n,r,i){let a=Jt(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=Ie?null:n.clipboardData,a=r.content(),{dom:s,text:l}=Kt(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&&!O)return;let r=Ie?null:n.clipboardData,o=t.input.shiftKey&&45!=t.input.lastKeyCode;r&&Oe(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?Oe(t,r.value,null,o,e):Oe(t,r.textContent,r.innerHTML,o,e)},50)}(t,n)};class He{constructor(t,e,n){this.slice=t,this.move=e,this.node=n}}const ze=L?"altKey":"ctrlKey";function Pe(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}=Kt(t,l);(!n.dataTransfer.files.length||!S||M>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Ie?"Text":"text/html",c.innerHTML),n.dataTransfer.effectAllowed="copyMove",Ie||n.dataTransfer.setData("text/plain",d),t.dragging=new He(p,Pe(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=Jt(t,Ne(e.dataTransfer),Ie?null:e.dataTransfer.getData("text/html"),!1,s);let c=!(!n||!Pe(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(Ht(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&&O&&"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 De(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 Re{constructor(t,e){this.toDOM=t,this.spec=e||We,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 qe(o-n,o-n,this)}valid(){return!0}eq(t){return this==t||t instanceof Re&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&De(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class je{constructor(t,e){this.attrs=t,this.spec=e||We}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 qe(o,i,this)}valid(t,e){return e.from<e.to}eq(t){return this==t||t instanceof je&&De(this.attrs,t.attrs)&&De(this.spec,t.spec)}static is(t){return t.type instanceof je}destroy(){}}class Fe{constructor(t,e){this.attrs=t,this.spec=e||We}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 qe(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 Fe&&De(this.attrs,t.attrs)&&De(this.spec,t.spec)}destroy(){}}class qe{constructor(t,e,n){this.from=t,this.to=e,this.type=n}copy(t,e){return new qe(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 qe(t,t,new Re(e,n))}static inline(t,e,n,r){return new qe(t,e,new je(n,r))}static node(t,e,n,r){return new qe(t,e,new Fe(n,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof je}get widget(){return this.type instanceof Re}}const Ue=[],We={};class Ve{constructor(t,e){this.local=t.length?t:Ue,this.children=e.length?e:Ue}static create(t,e){return e.length?Ke(e,t,0,We):Ye}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==Ye||0==t.maps.length?this:this.mapInner(t,e,0,0,n||We)}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!=Ye?(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=Ke(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 Ve(e.sort(Je),s)}(this.children,i||[],t,e,n,r,o):i?new Ve(i.sort(Je),Ue):Ye}add(t,e){return e.length?this==Ye?Ve.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,Ke(a,t,s+1,We)),o+=3}});let i=Xe(o?Qe(e):e,-n);for(let e=0;e<i.length;e++)i[e].type.valid(t,i[e])||i.splice(e--,1);return new Ve(i.length?this.local.concat(i).sort(Je):this.local,r||this.children)}remove(t){return 0==t.length||this==Ye?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!=Ye?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 Ve(r,n):Ye}forChild(t,e){if(this==Ye)return this;if(e.isLeaf)return Ve.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 je){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 Ve(r.sort(Je),Ue);return n?new Ge([t,n]):t}return n||Ye}eq(t){if(this==t)return!0;if(!(t instanceof Ve)||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 $e(this.localsInner(t))}localsInner(t){if(this==Ye)return Ue;if(t.inlineContent||!this.local.some(je.is))return this.local;let e=[];for(let t=0;t<this.local.length;t++)this.local[t].type instanceof je||e.push(this.local[t]);return e}forEachSet(t){t(this)}}Ve.empty=new Ve([],[]),Ve.removeOverlap=$e;const Ye=Ve.empty;class Ge{constructor(t){this.members=t}map(t,e){const n=this.members.map(n=>n.map(t,e,We));return Ge.from(n)}forChild(t,e){if(e.isLeaf)return Ve.empty;let n=[];for(let r=0;r<this.members.length;r++){let o=this.members[r].forChild(t,e);o!=Ye&&(o instanceof Ge?n=n.concat(o.members):n.push(o))}return Ge.from(n)}eq(t){if(!(t instanceof Ge)||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?$e(n?e:e.sort(Je)):Ue}static from(t){switch(t.length){case 0:return Ye;case 1:return t[0];default:return new Ge(t.every(t=>t instanceof Ve)?t:t.reduce((t,e)=>t.concat(e instanceof Ve?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 qe(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 Qe(t){let e=[];for(let n=0;n<t.length;n++)null!=t[n]&&e.push(t[n]);return e}function Ke(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=Ke(s,e,n+a+1,r);t!=Ye&&o.push(a,a+e.nodeSize,t)}});let a=Xe(i?Qe(t):t,-n).sort(Je);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 Ve(a,o):Ye}function Je(t,e){return t.from-e.from||t.to-e.to}function $e(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&&Je(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!=Ye&&e.push(r)}),t.cursorWrapper&&e.push(Ve.create(t.state.doc,[t.cursorWrapper.deco])),Ge.from(e)}const nn={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},rn=k&&C<=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]);k&&C<=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(k&&C<=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(_&&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=_,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(k&&C<=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&&O&&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||O)&&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)),k&&C<=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 A=u.doc.resolveNoCache(y.start-u.from),w=u.doc.resolveNoCache(y.endB-u.from),x=f.resolve(y.start),v=A.sameParent(w)&&A.parent.inlineContent&&x.end()>=y.endA;if((T&&t.input.lastIOSEnter>Date.now()-225&&(!v||a.some(t=>"DIV"==t.nodeName||"P"==t.nodeName))||!v&&A.pos<u.doc.content.size&&(!A.sameParent(w)||!A.parent.inlineContent)&&A.pos<w.pos&&!/\S/.test(u.doc.textBetween(A.pos,w.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,A,w)&&t.someProp("handleKeyDown",e=>e(t,g(8,"Backspace"))))return void(O&&S&&t.domObserver.suppressSelectionUpdates());S&&y.endB==y.start&&(t.input.lastChromeDelete=Date.now()),O&&!v&&A.start()!=w.start()&&0==w.parentOffset&&A.depth==w.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==y.endA&&(y.endB-=2,w=u.doc.resolveNoCache(y.endB-u.from),setTimeout(()=>{t.someProp("handleKeyDown",function(e){return e(t,g(13,"Enter"))})},20));let _,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)||k&&e.empty&&e.head==E)&&n.setSelection(e)}return s&&n.setMeta("composition",s),n.scrollIntoView()};if(v)if(A.pos==w.pos){k&&C<=11&&0==A.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&&(_=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}}(A.parent.content.cut(A.parentOffset,w.parentOffset),x.parent.content.cut(x.parentOffset,y.endA-x.start())))){let e=B(t.state.tr);"add"==_.type?e.addMark(E,M,_.mark):e.removeMark(E,M,_.mark),t.dispatch(e)}else if(A.parent.child(A.index()).isText&&A.index()==w.index()-(w.textOffset?0:1)){let e=A.parent.textBetween(A.parentOffset,w.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:Ht(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(vn),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=wn(this),An(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(vn),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=wn(this),An(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:j(t.dom)}}(this);if(i){this.domObserver.stop();let e=p&&(k||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):(Ot(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;F(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&&R(this,e.getBoundingClientRect(),t)}else R(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 He(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(k){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(q)return t.focus(q);let e=j(t);t.focus(null==q?{get preventScroll(){return q={preventScroll:!0},!0}}:void 0),q||(q=!1,F(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 Y(this,t)}coordsAtPos(t,e=1){return Q(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 Oe(this,"",t,!1,e||new ClipboardEvent("paste"))}pasteText(t,e){return Oe(this,t,null,!0,e||new ClipboardEvent("paste"))}serializeForClipboard(t){return Kt(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"),[qe.node(0,t.state.doc.content.size,e)]}function An(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:qe.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function wn(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 vn(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(k[t])t=k[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:I(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:I(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)&&(P(t.r)&&P(t.g)&&P(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"):P(t.h)&&P(t.s)&&P(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"):P(t.h)&&P(t.s)&&P(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=_(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 A(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 w(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 v(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=_(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)&&(C[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(v,arguments)},splitcomplement:function(){return this._applyCombination(w,arguments)},triad:function(){return this._applyCombination(A,[3])},tetrad:function(){return this._applyCombination(A,[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 k=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"},C=a.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(k);function _(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 I(t){return M(t)/255}var O,N,H,z=(N="[\\s|\\(]+("+(O="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+O+")[,|\\s]+("+O+")\\s*\\)?",H="[\\s|\\(]+("+O+")[,|\\s]+("+O+")[,|\\s]+("+O+")[,|\\s]+("+O+")\\s*\\)?",{CSS_UNIT:new RegExp(O),rgb:new RegExp("rgb"+N),rgba:new RegExp("rgba"+H),hsl:new RegExp("hsl"+N),hsla:new RegExp("hsla"+H),hsv:new RegExp("hsv"+N),hsva:new RegExp("hsva"+H),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 P(t){return!!z.CSS_UNIT.exec(t)}},46040(t){"use strict";t.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},93141(t){"use strict";t.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}')},20297(t){"use strict";t.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}')},57299(t){"use strict";t.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')},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","mcp_connect_intro":"Build your page by chatting with an AI assistant. Pick the one you use.","mcp_connect_claude_intro":"Add the Creaditor connector to Claude, then paste the ready prompt into a chat.","mcp_connect_btn":"Connect with Claude","mcp_connect_localhost_note":"This editor is running on your own machine, so an AI on the web can\'t reach it. Use Claude Desktop, or ask your developer to open it up (ngrok).","mcp_connect_url_label":"Connection link","mcp_connect_copy_link_btn":"Copy connection link","mcp_connect_prompt_heading":"Copy a starting prompt","mcp_connect_prompt_desc":"Pick what you want done, then paste it into a new chat.","mcp_prompt_page_label":"Build the whole page","mcp_prompt_page_body":"Start with get_site_context to learn my business and brand, then get_tree to see the page as it is. Build a complete, modern, responsive landing page using add_section, add_element and style_component, and find_image for imagery.\\n\\nAsk me what the page should be about before you start.","mcp_prompt_section_label":"Add one section","mcp_prompt_section_body":"Read the page first with get_tree so you match what is already there. Then add ONE new section with build_section and style it with style_component so it fits the existing design. Do not change or remove anything else.\\n\\nAsk me which section I want and where it should go.","mcp_prompt_restyle_label":"Restyle what is there","mcp_prompt_restyle_body":"Read the page with get_tree and get_site_context, then improve only the LOOK using style_component: colours, backgrounds, spacing, corners and shadows. Do not add, remove or reword anything. Tell me what you changed.","mcp_connect_back":"All assistants","mcp_connect_manual_step1":"Copy the connection link below.","mcp_connect_manual_step2":"In your AI assistant, open its connector settings and add it.","mcp_connect_manual_step3":"Copy the ready prompt and paste it into a new chat.","mcp_connect_link_copied":"Connection link copied. Paste it in Claude\'s connector settings.","mcp_connect_link_copied_plain":"Connection link copied.","mcp_connect_prompt_copied":"Prompt copied. Paste it into a new chat.","mcp_client_claude_heading":"Claude","mcp_client_claude_desc":"Connect in one click. No password needed.","mcp_client_chatgpt_heading":"ChatGPT","mcp_client_chatgpt_desc":"Add it in ChatGPT settings. Takes a minute.","mcp_chatgpt_step1":"In ChatGPT, open Settings, then Apps, then Advanced, and turn on Developer mode.","mcp_chatgpt_step2":"Still in Settings, open Connectors (called Plugins in newer versions) and click Create.","mcp_chatgpt_step3":"Paste the connection link below as the server URL, name it Creaditor, add a short description, and choose OAuth.","mcp_chatgpt_step4":"Copy the ready prompt and paste it into a new chat.","mcp_chatgpt_note":"Developer mode needs a paid ChatGPT plan and works on the web app.","mcp_client_other_heading":"Another AI assistant","mcp_client_other_desc":"Copy the connection link and add it yourself.","name":"Name","inner_name":"Inner 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","menu_items":"Menu items","add_icon":"Add icon","address":"Address","new_icon":"New icon","icon_style":"Icon style","website":"Website","phone":"Phone","moving_from_mailing_list":"Moving from mailing list","unsubscribe":"Unsubscribe link","unsubscribe_explain":"This link will unsubscribe the recipient from all your mailing lists. The unsubscribe page is generated automatically for each recipient when the email is sent.","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":"Section","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":"Web 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.","elements_menu:search_placeholder":"Search elements…","elements_menu:no_results":"No elements match your search.","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","quiz":"Quiz","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:problem":"Problem","sections_cat:solution":"Solution","sections_cat:about":"About","sections_cat:services":"Services","sections_cat:pricing":"Pricing","sections_cat:guarantee":"Guarantee","sections_cat:team":"Team","sections_cat:testimonials":"Testimonials","sections_cat:offer":"Offer & Bonuses","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.","smart_change_undo_delete":"Press Delete to undo","smart_change_undo_backspace":"Press Backspace to undo","smart_change_turn_off":"Turn off","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","brand_colors":"Brand colors","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":"Phone number","what_the_phone_number_to_send_msg":"Phone number","what_the_file_name":"File name","what_the_email_address":"Email address","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","video_timing":"Video timing","show_after_watching":"Show after watching","of_the_video":"of the video","show_after_hint":"Students see this once they\'ve watched this much. Skipping ahead doesn\'t count.","shows_at":"Shows at","reverse_order_on_desktop":"Reverse column order on desktop","reverse_order_on_mobile":"Reverse column order on mobile","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","publishing_your_site":"Publishing your site…","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","which_menu_item":"Which item?","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.","duplicate_popup":"Duplicate popup","copy_suffix":"copy","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","saving":"Saving...","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","drag_anchor_to_canvas":"Drag an anchor to a block","drag_anchor_hint":"Drop it on the block this link should jump to. Nothing is added to your design — the block just gets a marker you can click to rename or remove.","attach_anchor_to_block":"Attach anchor here","drop_anchor_on_a_block":"Drop on a block","anchor_link_to":"Jumps to this anchor — click to go there","anchor_link_missing":"This anchor no longer exists — the link goes nowhere","select_anchor":"Select an anchor","no_anchors_yet":"No anchors yet","anchor_help_title":"Now link something to it","anchor_help_step_1":"Select a button, text or image.","anchor_help_step_2":"Open its link settings and pick \\"Anchor\\".","anchor_help_step_3":"Choose this name:","anchor_help_got_it":"Got it","anchor_placement":"Where the jump lands","anchor_placement_start":"Top","anchor_placement_center":"Middle","anchor_placement_end":"Bottom","anchor_placement_form":"Form","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","sidebarMenu_mcp_connection":"MCP connection","sidebarMenu_import_html":"Import HTML","htmlImport_title":"Import HTML","htmlImport_desc":"Bring a newsletter that lives somewhere else: it becomes regular content you can edit.","htmlImport_paste_card_heading":"Paste HTML code","htmlImport_paste_card_desc":"Copy the newsletter HTML and paste it here.","htmlImport_url_card_heading":"Import from a URL","htmlImport_url_card_desc":"Paste a link to a published newsletter or page.","htmlImport_dest_title":"Where should it go?","htmlImport_error_empty_html":"Paste the HTML code first","htmlImport_error_empty_url":"Enter the page URL first","htmlImport_done_appended":"The imported sections were added below your existing content.","htmlImport_done_replaced":"Your newsletter now holds the imported content.","htmlImport_warnings_title":"Adjustments made during import","htmlImport_import_another":"Import another","htmlImport_done_cta":"Done","htmlImport_mode_append":"Add below existing content","htmlImport_mode_replace":"Replace all content","htmlImport_submit":"Import","htmlImport_loading":"Importing...","htmlImport_loaded":"Import complete","htmlImport_error_generic":"Import failed. Check the code or URL and try again.","htmlImport_error_network":"Could not reach the import service. Check that it is running and allowed for this address.","htmlImport_replace_confirm_title":"Replace all content?","htmlImport_replace_confirm_message":"The current newsletter content will be replaced by the import. This cannot be undone.","htmlImport_replace_confirm_cta":"Replace","sidebarMenu_coming_soon":"Coming soon","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","reset_styling":"Reset styling","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","bullets list":"Bullets list","bulletItem1":"First advantage of your product","bulletItem2":"Another advantage worth highlighting","bulletItem3":"A third reason to choose you","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","link_automations_title":"Special links","automation_desc_mailing_list":"Add or remove whoever clicks from your mailing lists.","automation_desc_unsubscribe":"Readers who click are unsubscribed from your list.","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","memory":"Memory","mem_title":"Assistant memory","mem_intro":"What the assistant remembers about you. Edit or delete any line.","mem_group_business":"About the business (all pages)","mem_group_page":"About this page","mem_source_ai":"From chat","mem_source_user":"Added by you","mem_edit":"Edit","mem_delete":"Delete","mem_save":"Save","mem_cancel":"Cancel","mem_empty_group":"Nothing yet. The assistant saves lasting facts as you chat.","mem_too_long":"Up to {limit} characters.","mem_error":"Could not load the memory.","mem_retry":"Try again","mem_no_token":"Sign in to see what the assistant remembers.","mem_action_failed":"That did not work. Try again.","email_compatibility":"Email compatibility","layout_behavior":"Layout & behavior","text_ai_title":"Edit with AI","text_ai_placeholder":"Tell me how to change this text…","text_ai_send":"Send","text_ai_thinking":"Working…","text_ai_keep_length":"Keep length","text_ai_scope_selection":"Selection","text_ai_scope_element":"Whole text","text_ai_error":"Something went wrong. Please try again.","text_ai_empty":"Ask me to improve, shorten, or rewrite this text.","text_ai_action_improve":"Improve","text_ai_action_shorten":"Shorten","text_ai_action_lengthen":"Lengthen","text_ai_action_grammar":"Fix grammar","text_ai_action_tone":"Warmer tone","text_ai_prompt_improve":"Improve this text — make it clearer and more compelling. Keep the meaning.","text_ai_prompt_shorten":"Make this shorter and more concise, without losing the key point.","text_ai_prompt_lengthen":"Expand this with a little more detail and flow.","text_ai_prompt_grammar":"Fix any spelling and grammar mistakes. Keep the wording and meaning.","text_ai_prompt_tone":"Make the tone warmer and friendlier.","playback":"Playback","showControls":"Show controls","playInline":"Play inline on mobile","volume":"Volume","autoplayMutedInfo":"Browsers only allow autoplay when the video is muted.","on_the_video":"On the video","moment_button":"Button","add_button":"+ Button","at_time":"At","button_text":"Button text","moments_hint":"Shows over the video at its time.","needs_text":"Needs text","needs_link":"Needs a link","moment_question":"Question","add_question":"+ Question","answers_pick_right":"Answers (pick the right one)","right_answer":"Right answer","answer":"Answer","add_answer":"+ Answer","needs_question":"Needs a question","needs_answers":"Needs 2 answers","needs_right_answer":"Pick the right answer","ask-ai":"Ask your AI","content":"Content","engines":"AI engines","ask_ai_prompt":"Prompt","ask_ai_placeholders_hint":"Use {{pageTitle}}, {{pageUrl}}, {{pageDescription}} and {{businessName}}: they are filled in automatically when the visitor clicks.","ask_ai_prompt_too_long":"This prompt is long. Some AI engines cut off very long links, so consider shortening it.","ask_ai_engines":"Which engines to show","ask_ai_variant":"Shape","ask_ai_variant_dot":"Circle","ask_ai_variant_pill":"Pill with name","ask_ai_variant_plain":"Icon only","ask_ai_leading_text":"Text before the icons","ask_ai_brand_colors":"Use each engine\'s brand colors","ask_ai_default_prompt":"I\'m considering {{pageTitle}} from {{businessName}} and I want to work out whether it\'s really right for me.\\nPlease check it against what\'s already published online, and against what you already know about me from our previous conversations.\\n\\nLink to the page: {{pageUrl}}\\n\\nGive me a concise, balanced answer covering: who it suits, who it suits less, and what\'s worth knowing before deciding.\\nPrefer independent sources over marketing copy. If you\'re missing one essential detail to judge the fit, ask me a single short question and nothing more.","ask_ai_external_notice":"Heads up: these icons send the visitor off your site. Clicking one opens a conversation on the AI\'s own site, in a new tab, with your prompt already filled in.","text_before":"Text before","text_after":"Text after","edit_link":"Edit link","fit":"Fit","cover":"Cover","contain":"Contain","focus":"Focal point","no_repeat":"No repeat","repeat_x":"Repeat across","repeat_y":"Repeat down","scroll_behavior":"Scrolling","normal_scroll":"Normal","parallax":"Parallax","parallax_mobile_hint":"Parallax is ignored on iOS and can stutter on Android — mobile falls back to Normal.","blur":"Blur","brightness":"Brightness","imageUrl":"Image link","image_url_not_a_file":"This does not look like a direct link to an image file (.jpg, .png, .webp…). If the background stays blank, open the image itself and copy its own link.","background_email_hint":"Fit, focal point and repeat are written into the email as inline CSS and work in Apple Mail, iOS and Gmail. Outlook for Windows always fills the area and ignores them.","preflight_title":"AI tests","preflight_checking":"Checking your email…","preflight_found_breaking":"Found {count} problems that would break the email in inboxes","preflight_fixing_breaking":"Fixing them for you…","preflight_fixed_breaking":"Fixed {count} problems","preflight_auto_fixed":"We fixed {count} problems that would have broken the email in inboxes. Undo reverts them.","preflight_ai_note":"Mistakes happen to everyone. This is the time to fix them.","preflight_analyzing":"Analyzing your email…","preflight_only_inbox":"Only shows in the inbox","preflight_only_phone":"Only shows on phones","preflight_only_shows_hint":"Looks fine in the editor, but this is how recipients will see it.","preflight_show":"Show me","preflight_back":"Back to editing","preflight_continue":"Great, let\'s go!","preflight_continue_anyway":"Continue anyway","preflight_col-grid":"The columns in this row are not set up right, so readers will see them broken.","preflight_fix_col-grid":"Fix it","preflight_wider-than-container":"This item is wider than the space it has, so on a phone it will run off the screen.","preflight_fix_wider-than-container":"Fix it","preflight_fixed-without-max":"This item has a fixed width, so on a phone it will run off the screen.","preflight_fix_fixed-without-max":"Fix it","preflight_block-too-wide":"This row is too wide for some mail apps, so readers will have to scroll sideways.","preflight_fix_block-too-wide":"Fix it","preflight_cramped-columns":"On a phone the columns in this row will be too narrow to read.","preflight_fix_cramped-columns":"Fix it","preflight_button-no-link":"This button has no link, so clicking it goes nowhere.","preflight_placeholder-image":"This is still a sample image. Replace it with your own.","preflight_social-no-url":"Some social icons have no link.","preflight_gmail-clip":"This email is too long for Gmail: Gmail shows only the top part, so readers will not see the end, including the unsubscribe link. Shorten it or split it into two emails.","preflight_gmail-clip-near":"This email is close to the longest Gmail shows in full. If you add more, it may get cut.","preflight_low-contrast":"This text is hard to read: its color is too close to the background.","preflight_ai-leftover-alt":"The image\'s hidden description (for screen readers) looks like text left over from the AI.","preflight_fix_ai-leftover-alt":"Fix it","preflight_group_mobile":"Breaks on mobile","preflight_group_missing":"Missing or broken","preflight_group_look":"Worth a look","preflight_fix_group":"Fix all ({count})","preflight_fixing":"Fixing…","preflight_fixed_count":"Fixed {count} ✓","preflight_fix_and_continue":"Fix all and continue","preflight_all_good":"No problems found. Your email is ready.","preflight_must_fix":"{count} must be fixed","preflight_nothing_must_fix":"Nothing must be fixed","sidebarMenu_ai_editor":"AI Editor","sidebarMenu_beta":"Beta","aiEditor_title":"AI Editor (Beta)","aiEditor_intro":"Build the whole page by describing it. The page is one HTML document, layout, styling and SEO included, and the AI writes and changes it for you.","aiEditor_notice_heading":"For now, editing is AI-only","aiEditor_notice_body":"In this mode you cannot click into the page and edit it by hand. You point at a part of the page and ask the AI to change it.","aiEditor_notice_soon":"Manual editing in AI Editor mode is on the way.","aiEditor_state_on":"AI Editor is on.","aiEditor_turn_on":"Got it, turn on AI Editor","aiEditor_turn_off":"Turn off AI Editor","kit_role_heading":"Heading","kit_role_text":"Text","kit_role_image":"Image","kit_role_link":"Link","kit_role_button":"Button","kit_role_list":"List","kit_role_listItem":"List item","kit_role_icon":"Icon","kit_role_group":"Group","kit_role_section":"Section","kit_tab_design":"Design","kit_tab_advanced":"Advanced","kit_empty_title":"Imported block","kit_empty_hint":"Click any text on the page to edit it. Click an image to replace it.","kit_edit_hint":"Type straight on the page. Select words for bold, links and colour.","kit_image_source":"Image address","kit_image_alt":"Description for screen readers","kit_link_url":"Goes to","kit_link_hint":"Click the words on the page to change them.","kit_text_color":"Colour","kit_text_size":"Size","kit_text_weight":"Weight","kit_text_align":"Alignment","kit_background":"Background","kit_padding":"Space inside","kit_margin":"Space outside","kit_radius":"Corner rounding","kit_border":"Border","kit_group_text":"Text","kit_group_box":"Box","kit_duplicate":"Duplicate","kit_delete":"Delete","kit_move_up":"Move up","kit_move_down":"Move down","kit_select_parent":"Select what contains this","kit_classes":"CSS classes","kit_classes_hint":"Advanced. Changing these can restyle the block.","kit_edits_none":"No changes yet.","kit_edits_some":"changes saved. The original design is kept, so nothing you write is lost if this block is restyled.","kit_tab_block":"Block","kit_pick_hint":"Move over the block and click any part of it. The canvas shows what you are pointing at.","kit_ask_hint":"Tell the AI what to change about this part. For example: make it shorter, change the colour, replace the image.","kit_ask_ai":"Ask AI to change this","kit_open_chat":"Open AI chat","kit_clear_selection":"Clear selection","kit_menu_name":"any HTML","kit_menu_sendmsg_header":"sendmsg header","kit_menu_sendmsg_hero":"sendmsg hero","kit_scaled_to_fit":"Shown at","kit_scaled_suffix":"to fit the page width. It will publish at full size.","pastePage_title":"Paste a page","pastePage_intro":"Paste the HTML of a whole page and it opens exactly as it was designed. Scripts are removed; everything else is kept.","pastePage_html_label":"Page HTML","pastePage_html_placeholder":"Paste everything, starting at <!doctype html>","pastePage_url_label":"Where is this page from? (optional)","pastePage_url_hint":"Most pages point at their images and stylesheets with relative links. Give the address you copied it from and those keep working.","pastePage_submit":"Open in AI Editor","pastePage_mode_hint":"This opens AI Editor mode, where you change the page by asking rather than by hand.","pastePage_error_empty":"Paste the HTML of a page first.","pastePage_file_button":"Or choose an .html file","pastePage_error_not_html":"That file is not an HTML page. Choose a .html file.","pastePage_error_too_big":"That file is too big to open (the limit is 5 MB).","pastePage_error_read":"The file could not be read. Try again, or paste its HTML.","wordpress-posts":"WordPress posts","wordpress":"WordPress","video_paste_link":"Paste a video link","video_link_sources":"YouTube, Vimeo or an MP4 file"}')},53577(t){"use strict";t.exports=JSON.parse('{"expand_all":"פתיחת האקורדיון","collapse_all":"סגירת האקורדיון","gradient_presets":"תבניות צבע","gradient_stops":"נקודות צבע","mcp_connect_intro":"בנו את העמוד שלכם בשיחה עם עוזר AI. בחרו את זה שאתם משתמשים בו.","mcp_connect_claude_intro":"הוסיפו את מחבר Creaditor ל‑Claude, ואז הדביקו את ההודעה המוכנה בצ׳אט.","mcp_connect_btn":"התחברות ל‑Claude","mcp_connect_localhost_note":"העורך רץ על המחשב שלכם, ולכן AI באינטרנט לא יכול להגיע אליו. השתמשו ב‑Claude Desktop, או בקשו מהמפתח שלכם לחשוף אותו (ngrok).","mcp_connect_url_label":"קישור החיבור","mcp_connect_copy_link_btn":"העתקת קישור החיבור","mcp_connect_prompt_heading":"העתיקו הודעת פתיחה","mcp_connect_prompt_desc":"בחרו מה אתם רוצים שייעשה, והדביקו בצ׳אט חדש.","mcp_prompt_page_label":"לבנות את כל העמוד","mcp_prompt_page_body":"התחילו ב‑get_site_context כדי להכיר את העסק והמותג שלי, ואז get_tree כדי לראות את העמוד כפי שהוא. בנו עמוד נחיתה שלם, מודרני ורספונסיבי בעזרת add_section, add_element ו‑style_component, ו‑find_image לתמונות.\\n\\nשאלו אותי במה העמוד עוסק לפני שאתם מתחילים.","mcp_prompt_section_label":"להוסיף סקשן אחד","mcp_prompt_section_body":"קראו קודם את העמוד עם get_tree כדי להתאים למה שכבר קיים. אחר כך הוסיפו סקשן אחד בלבד עם build_section ועצבו אותו עם style_component כך שישתלב בעיצוב הקיים. אל תשנו ואל תמחקו שום דבר אחר.\\n\\nשאלו אותי איזה סקשן אני רוצה ואיפה הוא צריך להיות.","mcp_prompt_restyle_label":"לשפר את העיצוב הקיים","mcp_prompt_restyle_body":"קראו את העמוד עם get_tree ו‑get_site_context, ושפרו רק את המראה בעזרת style_component: צבעים, רקעים, מרווחים, פינות וצללים. אל תוסיפו, אל תמחקו ואל תנסחו מחדש שום דבר. ספרו לי מה שיניתם.","mcp_connect_back":"כל העוזרים","mcp_connect_manual_step1":"העתיקו את קישור החיבור שלמטה.","mcp_connect_manual_step2":"בעוזר ה‑AI שלכם, פתחו את הגדרות המחברים והוסיפו אותו.","mcp_connect_manual_step3":"העתיקו את ההודעה המוכנה והדביקו אותה בצ׳אט חדש.","mcp_connect_link_copied":"קישור החיבור הועתק. הדביקו אותו בהגדרות המחברים של Claude.","mcp_connect_link_copied_plain":"קישור החיבור הועתק.","mcp_connect_prompt_copied":"ההודעה הועתקה. הדביקו אותה בצ׳אט חדש.","mcp_client_claude_heading":"Claude","mcp_client_claude_desc":"התחברות בלחיצה אחת. בלי סיסמה.","mcp_client_chatgpt_heading":"ChatGPT","mcp_client_chatgpt_desc":"הוסיפו אותו בהגדרות ChatGPT. לוקח דקה.","mcp_chatgpt_step1":"ב‑ChatGPT, פתחו הגדרות, ואז Apps, ואז Advanced, והפעילו את מצב המפתח (Developer mode).","mcp_chatgpt_step2":"באותן הגדרות, פתחו Connectors (נקרא Plugins בגרסאות חדשות) ולחצו Create.","mcp_chatgpt_step3":"הדביקו את קישור החיבור שלמטה ככתובת השרת, תנו לו את השם Creaditor, הוסיפו תיאור קצר ובחרו OAuth.","mcp_chatgpt_step4":"העתיקו את ההודעה המוכנה והדביקו אותה בצ׳אט חדש.","mcp_chatgpt_note":"מצב המפתח דורש מנוי ChatGPT בתשלום ופועל באפליקציית הווב.","mcp_client_other_heading":"עוזר AI אחר","mcp_client_other_desc":"העתיקו את קישור החיבור והוסיפו אותו בעצמכם.","name":"שם","link":"קישור","inner_name":"שם פנימי","secureLink":"קישור מאובטח","tel":"טלפון","email":"אימייל","items":"פריטים","menu_items":"פריטי התפריט","add_icon":"הוספת אייקון","new_icon":"אייקון חדש","icon_style":"סגנון האייקון","website":"אתר","phone":"טלפון","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":"סרטון","quiz":"בוחן","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":"צבעים","theme":"צבעי מותג","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":"צריכים עוגן? לחצו פה","drag_anchor_to_canvas":"גררו עוגן לבלוק","drag_anchor_hint":"שחררו על הבלוק שאליו הקישור אמור לקפוץ. שום דבר לא נוסף לעיצוב — הבלוק פשוט מקבל סימון שאפשר ללחוץ עליו כדי לשנות שם או להסיר.","attach_anchor_to_block":"חברו עוגן כאן","drop_anchor_on_a_block":"שחררו על בלוק","anchor_link_to":"קופץ לעוגן הזה — לחצו כדי לעבור אליו","anchor_link_missing":"העוגן הזה כבר לא קיים — הקישור לא מוביל לשום מקום","select_anchor":"בחרו עוגן","no_anchors_yet":"אין עדיין עוגנים","anchor_help_title":"עכשיו חברו אליו קישור","anchor_help_step_1":"בחרו כפתור, טקסט או תמונה.","anchor_help_step_2":"פתחו את הגדרות הקישור ובחרו \\"עוגן\\".","anchor_help_step_3":"בחרו את השם הזה:","anchor_help_got_it":"הבנתי","anchor_placement":"היכן הקפיצה נעצרת","anchor_placement_start":"למעלה","anchor_placement_center":"באמצע","anchor_placement_end":"למטה","anchor_placement_form":"טופס","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":"תפריט אלמנטים, גררו את האלמנט לצד אלמנט, התקרבו לפינה כדי לפתוח כתא חדש, או פשוט מתחת הבלוק ליצירת בלוק חדש","elements_menu:search_placeholder":"חיפוש אלמנט…","elements_menu:no_results":"לא נמצאו אלמנטים התואמים לחיפוש.","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":"הוספת תמונה","dimensions":"מידות","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:problem":"הבעיה","sections_cat:solution":"הפתרון","sections_cat:about":"אודות","sections_cat:services":"שירותים","sections_cat:pricing":"מחירון","sections_cat:guarantee":"אחריות","sections_cat:team":"צוות","sections_cat:testimonials":"המלצות","sections_cat:offer":"ההצעה ובונוסים","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‎ הופך ל‑←. ההגדרה חלה על כל רכיבי הטקסט בעיצוב.","smart_change_undo_delete":"לביטול הקישו Delete","smart_change_undo_backspace":"לביטול הקישו Backspace","smart_change_turn_off":"כיבוי","lineHeight":"גובה שורה","two images":"שתי תמונות","heading 1":"כותרת גדולה","heading 2":"כותרת בינונית","heading 3":"כותרת קטנה","bullets list":"רשימת בולטים","bulletItem1":"היתרון הראשון של המוצר שלכם","bulletItem2":"יתרון נוסף שכדאי להדגיש","bulletItem3":"סיבה שלישית לבחור בכם","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":"צבעים אחרונים","brand_colors":"צבעי המותג","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":"רוחב מקסימלי","reset_styling":"איפוס עיצוב","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":"הצג את הרכיב במכשירים","video_timing":"תזמון לפי הסרטון","show_after_watching":"להציג אחרי צפייה של","of_the_video":"מהסרטון","show_after_hint":"התלמידים יראו את זה אחרי שצפו בחלק הזה. דילוג קדימה לא נחשב.","shows_at":"מופיע אחרי","reverse_order_on_desktop":"סדר עמודות הפוך במחשב","reverse_order_on_mobile":"סדר עמודות הפוך במובייל","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","publishing_your_site":"מפרסמים את האתר…","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":"עריכת שדה","saving":"שומר...","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":"הוספה והסרה מרשימת דיוור","unsubscribe":"קישור הסרה מרשימת תפוצה","unsubscribe_explain":"קישור זה יסיר את הנמען מכל רשימות התפוצה שלכם. עמוד ההסרה נוצר אוטומטית עבור כל נמען בעת שליחת המייל.","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":"אינטראקציות","which_menu_item":"איזה פריט?","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":"כדי לפתוח פופאפ, בחרו כפתור ובחרו את הפופאפ הזה כפעולה שלו.","duplicate_popup":"שכפול פופאפ","copy_suffix":"עותק","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":"תפריט אוטומציות","link_automations_title":"קישורים מיוחדים","automation_desc_mailing_list":"מי שלוחץ יתווסף או יוסר מרשימות הדיוור שלכם.","automation_desc_unsubscribe":"מי שלוחץ יוסר מרשימת התפוצה שלכם.","selected":"נבחרו","automation_link_preview":"קישור אוטומציה","apply_automation":"החל אוטומציה","sidebarMenu_page_business":"Business AI","sidebarMenu_transfer_data":"העברת נתונים","sidebarMenu_mcp_connection":"חיבור MCP","sidebarMenu_import_html":"ייבוא HTML","htmlImport_title":"ייבוא HTML","htmlImport_desc":"יש לכם ניוזלטר שקיים במקום אחר? מייבאים אותו לכאן והוא הופך לתוכן רגיל שאפשר לערוך.","htmlImport_paste_card_heading":"הדבקת קוד HTML","htmlImport_paste_card_desc":"העתיקו את קוד הניוזלטר והדביקו אותו כאן.","htmlImport_url_card_heading":"ייבוא מכתובת דף","htmlImport_url_card_desc":"הדביקו קישור לניוזלטר או לדף שפורסם ברשת.","htmlImport_dest_title":"לאן ייכנס התוכן?","htmlImport_error_empty_html":"קודם מדביקים את קוד ה-HTML","htmlImport_error_empty_url":"קודם מזינים את כתובת הדף","htmlImport_done_appended":"האזורים המיובאים נוספו מתחת לתוכן הקיים.","htmlImport_done_replaced":"הניוזלטר מכיל עכשיו את התוכן המיובא.","htmlImport_warnings_title":"התאמות שבוצעו בייבוא","htmlImport_import_another":"ייבוא נוסף","htmlImport_done_cta":"סיום","htmlImport_mode_append":"הוספה מתחת לתוכן הקיים","htmlImport_mode_replace":"החלפת כל התוכן","htmlImport_submit":"ייבוא","htmlImport_loading":"מייבאים...","htmlImport_loaded":"הייבוא הושלם","htmlImport_error_generic":"הייבוא נכשל. בדקו את הקוד או הכתובת ונסו שוב.","htmlImport_error_network":"לא הצלחנו להתחבר לשירות הייבוא. בדקו שהשירות פעיל ושהכתובת הזאת מורשית.","htmlImport_replace_confirm_title":"להחליף את כל התוכן?","htmlImport_replace_confirm_message":"התוכן הנוכחי של הניוזלטר יוחלף בתוכן המיובא. אי אפשר לבטל את הפעולה.","htmlImport_replace_confirm_cta":"החלפה","sidebarMenu_coming_soon":"בקרוב","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":"סגנון תמונות","memory":"זיכרון","mem_title":"זיכרון העוזר","mem_intro":"מה שהעוזר זוכר עליכם. אפשר לערוך או למחוק כל שורה.","mem_group_business":"על העסק (כל הדפים)","mem_group_page":"על הדף הזה","mem_source_ai":"מהצ׳אט","mem_source_user":"נוסף על ידכם","mem_edit":"עריכה","mem_delete":"מחיקה","mem_save":"שמירה","mem_cancel":"ביטול","mem_empty_group":"העוזר עוד לא זכר כאן כלום. הוא שומר דברים חשובים בזמן השיחה.","mem_too_long":"עד {limit} תווים.","mem_error":"לא הצלחנו לטעון את הזיכרון.","mem_retry":"נסו שוב","mem_no_token":"צריך להתחבר כדי לראות מה העוזר זוכר.","mem_action_failed":"הפעולה לא הצליחה. נסו שוב.","email_compatibility":"תאימות לאימייל","layout_behavior":"פריסה והתנהגות","text_ai_title":"עריכה עם AI","text_ai_placeholder":"כתבו לי איך לשנות את הטקסט…","text_ai_send":"שליחה","text_ai_thinking":"עובד…","text_ai_keep_length":"שמור על האורך","text_ai_scope_selection":"קטע מסומן","text_ai_scope_element":"כל הטקסט","text_ai_error":"משהו השתבש. נסו שוב.","text_ai_empty":"בקשו ממני לשפר, לקצר או לנסח מחדש את הטקסט.","text_ai_action_improve":"שיפור","text_ai_action_shorten":"קיצור","text_ai_action_lengthen":"הרחבה","text_ai_action_grammar":"תיקון שגיאות","text_ai_action_tone":"טון חם יותר","text_ai_prompt_improve":"שפר את הטקסט הזה — שיהיה ברור ומשכנע יותר, בלי לשנות את המשמעות.","text_ai_prompt_shorten":"קצר את הטקסט הזה ותהפוך אותו לתמציתי יותר, בלי לאבד את העיקר.","text_ai_prompt_lengthen":"הרחב את הטקסט הזה עם עוד קצת פירוט וזרימה.","text_ai_prompt_grammar":"תקן שגיאות כתיב ודקדוק. שמור על הניסוח והמשמעות.","text_ai_prompt_tone":"הפוך את הטון לחם וידידותי יותר.","playback":"נגינה","showControls":"הצג פקדי נגן","playInline":"נגן בתוך העמוד במובייל","volume":"עוצמת קול","autoplayMutedInfo":"דפדפנים מאפשרים הפעלה אוטומטית רק כשהסרטון מושתק.","on_the_video":"על הסרטון","moment_button":"כפתור","add_button":"+ כפתור","at_time":"בזמן","button_text":"טקסט הכפתור","moments_hint":"מופיע על הסרטון בזמן שלו.","needs_text":"חסר טקסט","needs_link":"חסר קישור","moment_question":"שאלה","add_question":"+ שאלה","answers_pick_right":"תשובות (סמנו את הנכונה)","right_answer":"התשובה הנכונה","answer":"תשובה","add_answer":"+ תשובה","needs_question":"חסרה שאלה","needs_answers":"חסרות 2 תשובות","needs_right_answer":"סמנו תשובה נכונה","ask-ai":"שאלו את ה-AI שלכם","content":"תוכן","engines":"מנועי AI","ask_ai_prompt":"הפרומפט","ask_ai_placeholders_hint":"אפשר להשתמש ב-{{pageTitle}}, {{pageUrl}}, {{pageDescription}} ו-{{businessName}}: הם יתמלאו אוטומטית כשהמבקר ילחץ.","ask_ai_prompt_too_long":"הפרומפט ארוך. חלק ממנועי ה-AI חותכים קישורים ארוכים מאוד, אז כדאי לקצר.","ask_ai_engines":"אילו מנועים להציג","ask_ai_variant":"צורה","ask_ai_variant_dot":"עיגול","ask_ai_variant_pill":"כפתור עם שם","ask_ai_variant_plain":"אייקון בלבד","ask_ai_leading_text":"טקסט לפני האייקונים","ask_ai_brand_colors":"בצבעי המותג של כל מנוע","ask_ai_default_prompt":"אני מתלבט לגבי {{pageTitle}} של {{businessName}} ורוצה להבין אם זה באמת מתאים לי.\\nאשמח שתעזור לי לבדוק את זה לפי המידע שכבר קיים ברשת, וגם לפי מה שאתה כבר יודע עליי משיחות קודמות.\\n\\nקישור לעמוד: {{pageUrl}}\\n\\nתן לי תשובה תמציתית ומאוזנת שתכלול: למי זה מתאים, למי פחות, ומה כדאי לדעת מראש לפני שמחליטים.\\nהעדף מקורות עצמאיים על פני חומר שיווקי. אם חסר לך פרט מהותי כדי להעריך את ההתאמה, שאל אותי שאלה קצרה אחת בלבד, ואל תמשיך מעבר לכך.","ask_ai_external_notice":"לתשומת לבכם: האייקונים מוציאים את המבקר מהאתר. לחיצה פותחת שיחה באתר ה-AI עצמו, בלשונית חדשה, עם הפרומפט שכתבתם כבר בפנים.","text_before":"טקסט לפני","text_after":"טקסט אחרי","edit_link":"עריכת קישור","fit":"התאמה","cover":"מילוי","contain":"הכלה","focus":"נקודת מיקוד","no_repeat":"ללא חזרה","repeat_x":"חזרה לרוחב","repeat_y":"חזרה לגובה","scroll_behavior":"גלילה","normal_scroll":"רגילה","parallax":"פרלקס","parallax_mobile_hint":"פרלקס לא נתמך ב-iOS ועלול לקפוץ באנדרואיד. במובייל התצוגה תחזור לגלילה רגילה.","blur":"טשטוש","brightness":"בהירות","imageUrl":"קישור לתמונה","image_url_not_a_file":"הקישור הזה לא נראה כמו קישור ישיר לקובץ תמונה (‎.jpg,‏ ‎.png,‏ ‎.webp‎). אם הרקע נשאר ריק, פתחו את התמונה עצמה והעתיקו את הקישור שלה.","background_email_hint":"התאמה, נקודת מיקוד וחזרה נכתבות למייל כ-CSS ועובדות ב-Apple Mail, ב-iOS ובג\'ימייל. אאוטלוק ל-Windows תמיד ממלא את השטח ומתעלם מהן.","preflight_title":"בדיקות AI","preflight_checking":"בודקים את המייל…","preflight_found_breaking":"מצאנו {count} בעיות שישברו את המייל בתיבות הדואר","preflight_fixing_breaking":"מתקנים אותן בשבילכם…","preflight_fixed_breaking":"תיקנו {count} בעיות","preflight_auto_fixed":"תיקנו לבד {count} בעיות שהיו שוברות את המייל בתיבות הדואר. אפשר לבטל עם \\"בטל\\".","preflight_ai_note":"טעויות קורות לכולם, זה הזמן לתקן אותן.","preflight_analyzing":"מנתחים את המייל…","preflight_only_inbox":"רואים רק בתיבת הדואר","preflight_only_phone":"רואים רק בטלפון","preflight_only_shows_hint":"בעורך זה נראה תקין, אבל כך הנמענים יראו את זה.","preflight_show":"הראה לי","preflight_back":"חזרה לעריכה","preflight_continue":"מעולה, ממשיכים!","preflight_continue_anyway":"להמשיך בכל מקרה","preflight_col-grid":"העמודות בשורה הזו לא מסודרות נכון, ולכן הן ייראו שבורות אצל הנמענים.","preflight_fix_col-grid":"תקן לי","preflight_wider-than-container":"הפריט הזה רחב מהמקום שיש לו, ולכן בטלפון הוא יחרוג מהמסך.","preflight_fix_wider-than-container":"תקן לי","preflight_fixed-without-max":"הפריט הזה ברוחב קבוע, ולכן בטלפון הוא יחרוג מהמסך.","preflight_fix_fixed-without-max":"תקן לי","preflight_block-too-wide":"השורה הזו רחבה מדי לחלק מתוכנות הדואר, והנמענים יצטרכו לגלול הצידה.","preflight_fix_block-too-wide":"תקן לי","preflight_cramped-columns":"בטלפון העמודות בשורה הזו יהיו צרות מדי לקריאה.","preflight_fix_cramped-columns":"תקן לי","preflight_button-no-link":"לכפתור הזה אין קישור, ולחיצה עליו לא תוביל לשום מקום.","preflight_placeholder-image":"זו עדיין תמונת דוגמה. כדאי להחליף אותה בתמונה שלכם.","preflight_social-no-url":"לחלק מאייקוני הרשתות החברתיות אין קישור.","preflight_gmail-clip":"המייל ארוך מדי לג\'ימייל: ג\'ימייל יציג רק את החלק העליון, והנמענים לא יראו את הסוף, כולל קישור ההסרה. כדאי לקצר אותו או לפצל לשני מיילים.","preflight_gmail-clip-near":"המייל קרוב לאורך המקסימלי שג\'ימייל מציג במלואו. אם תוסיפו עוד תוכן, הוא עלול להיחתך.","preflight_low-contrast":"קשה לקרוא את הטקסט הזה: הצבע שלו קרוב מדי לצבע הרקע.","preflight_ai-leftover-alt":"התיאור הנסתר של התמונה (למי שמשתמש בקורא מסך) נראה כמו טקסט שנשאר מה-AI.","preflight_fix_ai-leftover-alt":"תקן לי","preflight_group_mobile":"נשבר במובייל","preflight_group_missing":"חסר או שבור","preflight_group_look":"כדאי לבדוק","preflight_fix_group":"תקן הכל ({count})","preflight_fixing":"מתקן…","preflight_fixed_count":"תוקנו {count} ✓","preflight_fix_and_continue":"תקן הכל והמשך","preflight_all_good":"לא מצאנו בעיות. המייל מוכן.","preflight_must_fix":"{count} חייבים תיקון","preflight_nothing_must_fix":"אין מה שחייב תיקון","sidebarMenu_ai_editor":"עורך AI","sidebarMenu_beta":"בטא","aiEditor_title":"עורך AI (בטא)","aiEditor_intro":"בונים את כל העמוד על ידי תיאור שלו. העמוד הוא מסמך HTML אחד, כולל פריסה, עיצוב ו-SEO, וה-AI כותב ומשנה אותו בשבילך.","aiEditor_notice_heading":"כרגע העריכה היא ב-AI בלבד","aiEditor_notice_body":"במצב הזה אי אפשר ללחוץ על העמוד ולערוך אותו ידנית. מצביעים על חלק בעמוד ומבקשים מה-AI לשנות אותו.","aiEditor_notice_soon":"עריכה ידנית במצב עורך AI בדרך.","aiEditor_state_on":"עורך AI פועל.","aiEditor_turn_on":"הבנתי, הפעל עורך AI","aiEditor_turn_off":"כבה עורך AI","kit_role_heading":"כותרת","kit_role_text":"טקסט","kit_role_image":"תמונה","kit_role_link":"קישור","kit_role_button":"כפתור","kit_role_list":"רשימה","kit_role_listItem":"פריט ברשימה","kit_role_icon":"אייקון","kit_role_group":"קבוצה","kit_role_section":"מקטע","kit_tab_design":"עיצוב","kit_tab_advanced":"מתקדם","kit_empty_title":"בלוק מיובא","kit_empty_hint":"לחצו על טקסט כלשהו בעמוד כדי לערוך אותו. לחצו על תמונה כדי להחליף אותה.","kit_edit_hint":"אפשר להקליד ישירות על העמוד. סמנו מילים להדגשה, לקישור ולצבע.","kit_image_source":"כתובת התמונה","kit_image_alt":"תיאור לקוראי מסך","kit_link_url":"מוביל אל","kit_link_hint":"לחצו על המילים בעמוד כדי לשנות אותן.","kit_text_color":"צבע","kit_text_size":"גודל","kit_text_weight":"עובי","kit_text_align":"יישור","kit_background":"רקע","kit_padding":"ריווח פנימי","kit_margin":"ריווח חיצוני","kit_radius":"עיגול פינות","kit_border":"מסגרת","kit_group_text":"טקסט","kit_group_box":"תיבה","kit_duplicate":"שכפול","kit_delete":"מחיקה","kit_move_up":"הזזה למעלה","kit_move_down":"הזזה למטה","kit_select_parent":"בחירת מה שמכיל את זה","kit_classes":"מחלקות CSS","kit_classes_hint":"מתקדם. שינוי כאן עשוי לשנות את עיצוב הבלוק.","kit_edits_none":"עדיין אין שינויים.","kit_edits_some":"שינויים נשמרו. העיצוב המקורי נשמר, כך ששום דבר שכתבתם לא יאבד אם הבלוק יעוצב מחדש.","kit_tab_block":"בלוק","kit_pick_hint":"העבירו את העכבר על הבלוק ולחצו על כל חלק שתרצו. הקנבס מראה על מה אתם מצביעים.","kit_ask_hint":"כתבו ל-AI מה לשנות בחלק הזה. לדוגמה: לקצר את הטקסט, להחליף צבע, להחליף תמונה.","kit_ask_ai":"בקשו מה-AI לשנות","kit_open_chat":"פתיחת צ\'אט AI","kit_clear_selection":"ביטול הבחירה","kit_menu_name":"HTML חופשי","kit_menu_sendmsg_header":"הדר של sendmsg","kit_menu_sendmsg_hero":"הירו של sendmsg","kit_scaled_to_fit":"מוצג בגודל","kit_scaled_suffix":"כדי להתאים לרוחב העמוד. בפרסום יופיע בגודל מלא.","pastePage_title":"הדבקת עמוד","pastePage_intro":"הדביקו את ה-HTML של עמוד שלם והוא ייפתח בדיוק כפי שעוצב. סקריפטים מוסרים, כל השאר נשמר.","pastePage_html_label":"ה-HTML של העמוד","pastePage_html_placeholder":"הדביקו הכל, החל מ-<!doctype html>","pastePage_url_label":"מאיפה העמוד הזה? (רשות)","pastePage_url_hint":"רוב העמודים מפנים לתמונות ולגיליונות הסגנון שלהם בקישורים יחסיים. הזינו את הכתובת שממנה העתקתם והם ימשיכו לעבוד.","pastePage_submit":"פתחו בעורך AI","pastePage_mode_hint":"פעולה זו מפעילה את מצב עורך AI, שבו משנים את העמוד בבקשה ולא ביד.","pastePage_error_empty":"הדביקו קודם את ה-HTML של העמוד.","pastePage_file_button":"או לבחור קובץ HTML","pastePage_error_not_html":"הקובץ הזה אינו דף HTML. בחרו קובץ HTML.","pastePage_error_too_big":"הקובץ גדול מדי לפתיחה (עד 5MB).","pastePage_error_read":"לא הצלחנו לקרוא את הקובץ. נסו שוב, או הדביקו את ה-HTML שלו.","wordpress-posts":"פוסטים מוורדפרס","wordpress":"וורדפרס","video_paste_link":"הדביקו קישור לסרטון","video_link_sources":"YouTube, Vimeo או קובץ MP4"}')},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(91009),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(78865),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(42608),A={};A.setAttributes=p(),A.insert=c().bind(null,"head"),A.domAPI=s(),A.insertStyleElement=u();o()(y.A,A);const w=y.A&&y.A.locals?y.A.locals:void 0;var x=a(8330),v=a(52296);console.log("--\x3e Beta version",x.rE,"🚀");const k=t=>(0,n.A)("div",{style:t.style,className:(0,v.A)(w.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-sans)",fontSize:"13px"}},"Powered by"),(0,n.A)("svg",{className:w.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:w.dot})))));var C=a(25725),_={};_.setAttributes=p(),_.insert=c().bind(null,"head"),_.domAPI=s(),_.insertStyleElement=u();o()(C.A,_);const E=C.A&&C.A.locals?C.A.locals:void 0;var S=a(59929),M=a(49858);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;"
2770
+ </div>`,h),document.body.appendChild(h)}}},26198(t,e,n){"use strict";n.d(e,{$:()=>w,$4:()=>P,$7:()=>c,$e:()=>f,AT:()=>A,Bj:()=>H,DP:()=>z,DX:()=>m,Dj:()=>b,KD:()=>F,Ke:()=>s,R9:()=>S,Sj:()=>i,Ut:()=>q,WP:()=>k,am:()=>h,ap:()=>_,c1:()=>I,cP:()=>L,dN:()=>O,ft:()=>p,n6:()=>v,n_:()=>y,o6:()=>T,oD:()=>C,pZ:()=>d,pi:()=>x,su:()=>u,vF:()=>N,vQ:()=>M,yS:()=>B,yZ:()=>g,zZ:()=>E});var r=n(43180),o=n(58423);const i="editChatDrawerOpen",a="sidebarTransferDataPanelOpen",s="sidebarMcpPanelOpen";function l(){r.M.set({[i]:!0})}function c(){r.M.set({[i]:!1})}function d(){E()||o.A.dispatch("toggle-side-menu",{opened:!0})}function p(){o.A.dispatch("toggle-side-menu",{opened:!1})}function h(){d(),r.M.set({[a]:!0})}function u(){r.M.set({[a]:!1})}function f(){d(),r.M.set({[s]:!0})}function m(){r.M.set({[s]:!1})}const g="sidebarHtmlImportPanelOpen";function b(){d(),r.M.set({[g]:!0})}function y(){r.M.set({[g]:!1})}const A="sidebarPastePageOpen";function w(){d(),r.M.set({[A]:!0})}function x(){r.M.set({[A]:!1})}const v="aiEditorMode",k="sidebarAiEditorPanelOpen";function C(){d(),r.M.set({[k]:!0})}function _(){r.M.set({[k]:!1})}function E(){return r.M.get(v)||!1}function S(t){r.M.set({[v]:t})}function M(t){o.A.dispatch("toggle-side-menu",{opened:!t}),t&&l()}const B="aiDoc",T="ai-doc",L="aiManualTarget",I="aiFormTarget",O="editChatDrawerHidden";function N(){o.A.dispatch("toggle-side-menu",{opened:!0})}const H="cdtr-ai-form-lock";function z(t,e,n){r.M.get(L)&&(r.M.set({[L]:null}),window.dispatchEvent(new Event(H))),r.M.set({[I]:{key:t,tab:e,pick:n,at:Date.now()}}),N()}function P(){E()&&o.A.dispatch("toggle-side-menu",{opened:!1})}let D=!1,R=!1,j=null;function F(t){if(t!==j){if(j=t,"kit"===t)return r.M.get(i)||(l(),D=!0),p(),void(R=!0);D&&(c(),D=!1),R&&(d(),R=!1)}}function q(t){F(t?"kit":void 0)}},53415(t,e,n){"use strict";n.d(e,{D:()=>o,l:()=>i});var r=n(43180);const o=()=>{const t=r.M.get("components");if(!t||"object"!=typeof t)return[];const e=[];for(const n of Object.values(t)){const t=n;t&&"object"==typeof t&&"string"==typeof t.id&&"string"==typeof t.type&&e.push({id:t.id,type:t.type,props:t.props||{},children:Array.isArray(t.children)?t.children:[],elements:Array.isArray(t.elements)?t.elements:[]})}return e},i=()=>r.M.get("config","channel")||"newsletter"},58423(t,e,n){"use strict";n.d(e,{A:()=>r});const r=new(n(38941).A)},2972(t,e,n){"use strict";n.d(e,{Ay:()=>_});var r=n(94490),o=n(44551);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(58423),h=n(45070),u=n(43180),f=n(28795),m=n(69893),g=n(91937),b=n.n(g),y=n(98352),A=n.n(y);const w=new o.A,x={},v={},k=[],C=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(!Object.prototype.hasOwnProperty.call(x,o)){const t=i.props;x[o]=t?A()(t[n]):void 0}let a=A()(r);if("style"!==n&&"iconStyle"!==n||t.replace)v[o]=A()(a);else if(a&&"object"==typeof a){const t=i.props;a=(0,m.A)(t[n],a),v[o]=a}try{i.props[n]=v[o]}catch(t){console.error("error applying patch",t)}if(void 0!==v[o]){const r=k.findIndex(t=>t.componentId===e&&t.key===n);-1!==r&&k.splice(r,1),k.push({...t,newValue:a})}else delete v[o]}else k.push(t)}),w.run(()=>{for(let t=0;t<k.length;t++){const e=k[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!==v[s]&&f.Ay.silentPatch(f.Ay.getComponent(r),o,v[s]),delete v[s]}if(k.length>0){h.A.create({stack:k,options:n});const t=[...k];"function"==typeof o&&o({stack:t,steps:t})}k.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},44551(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)}}},51129(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))}},43641(t,e,n){"use strict";n.d(e,{A:()=>o});const r=JSON.parse('["3g2","3gp","aaf","asf","avchd","avi","drc","flv","m2v","m3u8","m4p","m4v","mkv","mng","mov","mp2","mp4","mpe","mpeg","mpg","mpv","mxf","nsv","ogg","ogv","qt","rm","rmvb","roq","svi","vob","webm","wmv","yuv"]');function o(t){const e=(/(?:\.([^.]+))?$/.exec(t.toLowerCase())??[])[1]??"";return-1!==r.findIndex(t=>t===e)}},85645(t,e,n){"use strict";function r(t){if(t){if(t.match(/^(?:https?:\/\/)?(?:m\.|www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/))return!0}return!1}n.d(e,{A:()=>r})},66642(t,e,n){"use strict";n.d(e,{VH:()=>l,sw:()=>a});var r=n(12586),o=n(89531),i=n(43180);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}},53951(t,e,n){"use strict";n.d(e,{v:()=>s});var r=n(12586),o=n(43180),i=n(89531),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)}},13548(t,e,n){"use strict";n.d(e,{WX:()=>l,YE:()=>c,bA:()=>a,bK:()=>d,sU:()=>s});var r=n(12586),o=n(89531),i=n(43180);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=>(0,o.yJ)(r.XW.api_url+r.JZ.site+"/template",{components:t}),c=t=>{const e=i.M.get("app");return(0,o.F6)(r.XW.api_url+r.JZ.site+`/${e._id}`,t)},d=t=>{const e=i.M.get("app");return(0,o.bE)(r.XW.api_url+r.JZ.site+`/publish/${e._id}`,t)}},94490(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}({})},45070(t,e,n){"use strict";n.d(e,{A:()=>l,q:()=>c});var r=n(50746),o=n(12106),i=n(43180);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)))}reset(){this.state={past:[],present:null,future:[]},this.onAnyChange(),this.emitter.dispatch("ON_SNAPSHOT",{hasUndo:!1,hasRedo:!1,pastLength:0,futureLength:0})}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"}},7728(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}},52296(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})},29452(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})},70580(t,e,n){"use strict";n.d(e,{p:()=>o});var r=n(43180);function o(t){if("web"===r.M.get("config","channel"))return t();const e=function(){const t=r.M.get("components");if(!t||"object"!=typeof t)return null;for(const e of Object.values(t)){const t=e;if(t&&"object"==typeof t&&"root"===t.type)return t.element instanceof HTMLElement?t.element:null}return null}();if(!e)return t();const n=document.getElementById(i),o=!!n&&n.disabled,a=e.style.minWidth;try{n&&(n.disabled=!0);const r=function(t){let e=0;return t.querySelectorAll(".block-component").forEach(t=>{if(t.parentElement?.closest(".col-component"))return;const n=parseFloat(t.style.width);if(!t.style.width.endsWith("px")||!Number.isFinite(n))return;const r=t.getBoundingClientRect().width;0!==r&&(e=Math.max(e,n-r))}),e>.5?e:0}(e);return r>0&&(e.style.minWidth=`${Math.ceil(e.getBoundingClientRect().width+r)}px`),t()}finally{e.style.minWidth=a,n&&(n.disabled=o)}}const i="page-max-width"},44222(t,e,n){"use strict";n.d(e,{FE:()=>A,U2:()=>u,Ux:()=>p});var r=n(66082),o=n(43180),i=n(72505),a=n.n(i),s=n(70580);const l=(t,e,n)=>{try{return JSON.parse(JSON.stringify(t??{}))}catch(r){console.error(`[toJSON] props for component ${e} (${n}) are not JSON-serializable (likely a DOM node / circular ref stored in props) — sanitizing so the element is not lost.`,r,t);const o=new WeakSet,i=t=>{if(null===t||"object"!=typeof t)return t;if("undefined"!=typeof Node&&t instanceof Node)return;if(o.has(t))return;if(o.add(t),Array.isArray(t))return t.map(i);const e={};for(const n of Object.keys(t)){const r=i(t[n]);void 0!==r&&(e[n]=r)}return e};return i(t??{})??{}}},c=t=>!!t&&"object"==typeof t&&"string"==typeof t.id&&"string"==typeof t.type,d=t=>{let e=null;if("function"==typeof t.getRenderedHTML)try{e=t.getRenderedHTML({props:t.props})}catch(e){console.error(`[toJSON] getRenderedHTML threw for ${t.type} ${t.id} — saving it without renderedHTML.`,e)}return{id:t.id,_id:t.id,type:t.type,props:l(t.props,t.id,t.type),children:Array.isArray(t.children)?t.children:[],elements:Array.isArray(t.elements)?t.elements:[],width:t.width,height:t.height,renderedHTML:e}},p=t=>{const e=t;if(!c(e))return null;if(!e.element||"function"!=typeof e.element.getBoundingClientRect)return d(e);const n=t.element.getBoundingClientRect(),r={id:e.id,_id:e.id,type:e.type,props:l(e.props,e.id,e.type),children:e.children,elements:Array.isArray(e.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)},h=t=>Array.isArray(t)?t.filter(t=>"string"==typeof t||!(!t||"object"!=typeof t||!Array.isArray(t.children))&&(t.children=h(t.children),!0)):[],u=()=>(0,s.p)(f),f=()=>{const t=o.M.get("components"),e=[];t.forEach(t=>{let n;try{n=p(t)}catch(e){if(!c(t))return;console.error(`[toJSON] composeToJson threw for ${t.type} ${t.id} — saving it from its store data instead.`,e,t);try{n=d(t)}catch(e){return void console.error(`[toJSON] could not serialize ${t.type} ${t.id} at all — skipping it so the rest of the document is still saved.`,e,t)}}if(n){if(n&&Array.isArray(n.children)&&(n.children=h(n.children)),n&&Array.isArray(n.elements)&&(n.elements=h(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)}});const n=new Set(e.map(t=>t.id));e.forEach(t=>{["children","elements"].forEach(e=>{const r=t[e];Array.isArray(r)&&(t[e]=r.filter(r=>!("string"==typeof r&&!n.has(r))||(console.error(`[toJSON] ORPHAN: ${t.type} ${t.id} references ${e} "${r}" which is NOT in the saved document — dropping the reference.`),!1)))})});const r=new Map(e.map(t=>[t.id,t])),i=new Set,a=t=>{if("string"!=typeof t||i.has(t))return;i.add(t);const e=r.get(t);e&&[].concat(Array.isArray(e.children)?e.children:[],Array.isArray(e.elements)?e.elements:[]).forEach(t=>a("string"==typeof t?t:t?.id))},s=e.find(t=>"root"===t.type);a(s?.id);const l=new Set;return i.forEach(t=>{const e=r.get(t)?.props;e&&(e.anchor?.name&&l.add(String(e.anchor.name)),"anchor"===r.get(t)?.type&&e.name&&l.add(String(e.name)),e.element_ID&&l.add(String(e.element_ID)))}),e.forEach(t=>{if(!i.has(t.id))return;const e=t.props?.onClick?.link?.href;if("string"!=typeof e||!e.startsWith("#")||e.length<2)return;let n=e.slice(1);try{n=decodeURIComponent(n)}catch{}l.has(n)||console.error(`[toJSON] DEAD ANCHOR LINK: ${t.type} ${t.id} links to "${e}", but no component on the page carries that anchor — clicking it will do nothing. On the page: ${Array.from(l).join(", ")||"(no anchors at all)"}. Re-attach the anchor to a block that is still on the page, or re-point the link.`)}),e},m=()=>{const t=o.M.get("app"),e="string"==typeof t?.language?t.language:"",n=o.M.get("language");return e||("string"==typeof n?n:"")||void 0};let g=!1,b=[];const y=async()=>{if(0===b.length)return void(g=!1);const{resolve:t,reject:e,components:n,channel:o,device:i}=b[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,language:m()}):await a().post(`${r.XW.api_url.replace("v1","v2")}/render/newsletter/build`,{components:n})).data)}catch(t){e(t)}b.shift(),y()},A=async(t,e)=>{const n=u();return new Promise((r,o)=>{b.push({resolve:r,reject:o,components:n,channel:String(t??"newsletter"),device:null!=e?String(e):void 0}),g||(g=!0,y())})}},30114(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(65790),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 A=t.auth.username||"",w=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";m.Authorization="Basic "+btoa(A+":"+w)}var x=s(t.baseURL,t.url);function v(){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=v:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(v)},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 k=(t.withCredentials||c(x))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;k&&(m[t.xsrfHeaderName]=k)}"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),A=n(52730),w=n(27300),x=o("SharedArrayBuffer.prototype.byteLength",!0),v=o("Date.prototype.getTime"),k=Object.getPrototypeOf,C=o("Object.prototype.toString"),_=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),I=o("Set.prototype.size",!0);function O(t,e,n,r){for(var o,i=s(t);(o=i.next())&&!o.done;)if(D(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 H(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)||!D(o,l,c,a))&&(!E(t,s)&&D(o,l,c,a))}function z(t,e,n){var r=N(n);return null!=r?r:L(e,r)&&!L(t,r)}function P(t,e,n,r,o,i){for(var a,l,c=s(t);(a=c.next())&&!a.done;)if(D(n,l=a.value,o,i)&&D(r,S(e,l),o,i))return T(t,l),!0;return!1}function D(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(C(t)!==C(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 j=f(t),F=f(e);if(j!==F)return!1;if((j||F)&&(t.source!==e.source||i(t)!==i(e)))return!1;var q=u(t),U=u(e);if(q!==U)return!1;if((q||U)&&v(t)!==v(e))return!1;if(n.strict&&k&&k(t)!==k(e))return!1;var W=A(t),V=A(e);if(W!==V)return!1;if(W||V){if(t.length!==e.length)return!1;for(a=0;a<t.length;a++)if(t[a]!==e[a])return!1;return!0}var Y=R(t),G=R(e);if(Y!==G)return!1;if(Y||G){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 w(t)===w(e)&&("function"==typeof Uint8Array&&D(new Uint8Array(t),new Uint8Array(e),n,o));var Q=m(t),K=m(e);if(Q!==K)return!1;if(Q||K)return x(t)===x(e)&&("function"==typeof Uint8Array&&D(new Uint8Array(t),new Uint8Array(e),n,o));if(typeof t!=typeof e)return!1;var J=g(t),$=g(e);if(J.length!==$.length)return!1;for(J.sort(),$.sort(),a=J.length-1;a>=0;a--)if(J[a]!=$[a])return!1;for(a=J.length-1;a>=0;a--)if(!D(t[l=J[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(I(t)!==I(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 _),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 _),B(a,o.value)}if(a){for(;(i=c.next())&&!i.done;)if(i.value&&"object"==typeof i.value){if(!O(a,i.value,n.strict,r))return!1}else if(!n.strict&&!L(t,i.value)&&!O(a,i.value,n.strict,r))return!1;return 0===I(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 _),B(l,c);else if(void 0===(p=S(e,c))&&!E(e,c)||!D(d,p,n,o)){if(n.strict)return!1;if(!H(t,e,c,d,n,o))return!1;l||(l=new _),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(!P(l,t,c,p,n,o))return!1}else if(!(n.strict||t.has(c)&&D(S(t,c),p,n,o)||P(l,t,c,p,r({},n,{strict:!1}),o)))return!1;return 0===I(l)}return!0}(t,e,n,o);return!0}(t,e,a,o)}function R(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 D(t,e,n,l())}},54224(t,e,n){var r={"./cdtr-aurora-preset":[58960,[8960]],"./cdtr-aurora-preset/":[58960,[8960]],"./cdtr-aurora-preset/index":[58960,[8960]],"./cdtr-aurora-preset/index.js":[58960,[8960]],"./cdtr-background-video":[55150,[5284,5150]],"./cdtr-background-video/":[55150,[5284,5150]],"./cdtr-background-video/index":[55150,[5284,5150]],"./cdtr-background-video/index.js":[55150,[5284,5150]],"./cdtr-glows-preset":[60370,[370]],"./cdtr-glows-preset/":[60370,[370]],"./cdtr-glows-preset/index":[60370,[370]],"./cdtr-glows-preset/index.js":[60370,[370]],"./cdtr-halo-preset":[2346,[2346]],"./cdtr-halo-preset/":[2346,[2346]],"./cdtr-halo-preset/index":[2346,[2346]],"./cdtr-halo-preset/index.js":[2346,[2346]],"./cdtr-images-preset":[40566,[566]],"./cdtr-images-preset/":[40566,[566]],"./cdtr-images-preset/index":[40566,[566]],"./cdtr-images-preset/index.js":[40566,[566]],"./cdtr-particlesjs":[51292,[1292]],"./cdtr-particlesjs/":[51292,[1292]],"./cdtr-particlesjs/index":[51292,[1292]],"./cdtr-particlesjs/index.js":[51292,[1292]]};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":[58960,[8960]],"./cdtr-aurora-preset/":[58960,[8960]],"./cdtr-aurora-preset/index":[58960,[8960]],"./cdtr-aurora-preset/index.js":[58960,[8960]],"./cdtr-background-video":[55150,[5284,5150]],"./cdtr-background-video/":[55150,[5284,5150]],"./cdtr-background-video/index":[55150,[5284,5150]],"./cdtr-background-video/index.js":[55150,[5284,5150]],"./cdtr-glows-preset":[60370,[370]],"./cdtr-glows-preset/":[60370,[370]],"./cdtr-glows-preset/index":[60370,[370]],"./cdtr-glows-preset/index.js":[60370,[370]],"./cdtr-halo-preset":[2346,[2346]],"./cdtr-halo-preset/":[2346,[2346]],"./cdtr-halo-preset/index":[2346,[2346]],"./cdtr-halo-preset/index.js":[2346,[2346]],"./cdtr-images-preset":[40566,[566]],"./cdtr-images-preset/":[40566,[566]],"./cdtr-images-preset/index":[40566,[566]],"./cdtr-images-preset/index.js":[40566,[566]],"./cdtr-particlesjs":[51292,[1292]],"./cdtr-particlesjs/":[51292,[1292]],"./cdtr-particlesjs/index":[51292,[1292]],"./cdtr-particlesjs/index.js":[51292,[1292]]};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":[95189,[5189]],"./401.js":[95189,[5189]],"./404":[19082,[9082]],"./404.js":[19082,[9082]],"./500":[6077,[6077]],"./500.js":[6077,[6077]],"./504":[5473,[5473]],"./504.js":[5473,[5473]]};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+"},92833(){},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"),A=t=>null!==t&&"object"==typeof t,w=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"),v=d("File"),k=d("Blob"),C=d("FileList");const _="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{},E=void 0!==_.FormData?_.FormData:void 0,S=d("URLSearchParams"),[M,B,T,L]=["ReadableStream","Request","Response","Headers"].map(d);function I(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 O(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,H=t=>!u(t)&&t!==N;const z=(P="undefined"!=typeof Uint8Array&&i(Uint8Array),t=>P&&t instanceof P);var P;const D=d("HTMLFormElement"),R=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),j=d("RegExp"),F=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};I(n,(n,o)=>{let i;!1!==(i=e(n,o,t))&&(r[o]=i||n)}),Object.defineProperties(t,r)};const q=d("AsyncFunction"),U=(W="function"==typeof setImmediate,V=b(N.postMessage),W?setImmediate:V?(Y=`axios@${Math.random()}`,G=[],N.addEventListener("message",({source:t,data:e})=>{t===N&&e===Y&&G.length&&G.shift()()},!1),t=>{G.push(t),N.postMessage(Y,"*")}):t=>setTimeout(t));var W,V,Y,G;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:A,isPlainObject:w,isEmptyObject:t=>{if(!A(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:v,isReactNativeBlob:t=>!(!t||void 0===t.uri),isReactNative:t=>t&&void 0!==t.getParts,isBlob:k,isRegExp:j,isFunction:b,isStream:t=>A(t)&&b(t.pipe),isURLSearchParams:S,isTypedArray:z,isFileList:C,forEach:I,merge:function t(){const{caseless:e,skipUndefined:n}=H(this)&&this||{},r={},o=(o,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const a=e&&O(r,i)||i;w(r[a])&&w(o)?r[a]=t(r[a],o):w(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]&&I(arguments[t],o);return r},extend:(t,e,n,{allOwnKeys:o}={})=>(I(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:D,hasOwnProperty:R,hasOwnProp:R,reduceDescriptors:F,freezeMethods:t=>{F(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:O,global:N,isContextDefined:H,isSpecCompliantForm:function(t){return!!(t&&b(t.append)&&"FormData"===t[s]&&t[a])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(A(t)){if(e.indexOf(t)>=0)return;if(f(t))return t;if(!("toJSON"in t)){e[r]=t;const o=h(t)?[]:{};return I(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:q,isThenable:t=>t&&(A(t)||b(t))&&b(t.then)&&b(t.catch),setImmediate:U,asap:X,isIterable:t=>null!=t&&b(t[a])};class Q extends Error{static from(t,e,n,r,o,i){const a=new Q(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}}}Q.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Q.ERR_BAD_OPTION="ERR_BAD_OPTION",Q.ECONNABORTED="ECONNABORTED",Q.ETIMEDOUT="ETIMEDOUT",Q.ERR_NETWORK="ERR_NETWORK",Q.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Q.ERR_DEPRECATED="ERR_DEPRECATED",Q.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Q.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Q.ERR_CANCELED="ERR_CANCELED",Q.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Q.ERR_INVALID_URL="ERR_INVALID_URL";var K=Q;function J(t){return Z.isPlainObject(t)||Z.isArray(t)}function $(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=$(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 K("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(J)}(t)||(Z.isFileList(t)||Z.endsWith(n,"[]"))&&(s=Z.toArray(t)))return n=$(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!!J(t)||(e.append(tt(o,n,i),l(t)),!1)}const d=[],p=Object.assign(et,{defaultVisitor:c,convertValue:l,isVisitable:J});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 K.from(t,K.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 At=yt;const wt=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 vt(t){return t&&String(t).trim().toLowerCase()}function kt(t){return!1===t||null==t?t:Z.isArray(t)?t.map(kt):String(t)}function Ct(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 _t{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function o(t,e,n){const o=vt(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]=kt(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]&&wt[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=vt(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=vt(t)){const n=Z.findKey(this,t);return!(!n||void 0===this[n]||e&&!Ct(0,this[n],n,e))}return!1}delete(t,e){const n=this;let r=!1;function o(t){if(t=vt(t)){const o=Z.findKey(n,t);!o||e&&!Ct(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&&!Ct(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]=kt(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]=kt(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=vt(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}}_t.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Z.reduceDescriptors(_t.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}}),Z.freezeMethods(_t);var Et=_t;function St(t,e){const n=this||At,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 K{constructor(t,e,n){super(null==t?"canceled":t,K.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 K("Request failed with status code "+n.status,[K.ERR_BAD_REQUEST,K.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)},It=(t,e)=>{const n=null!=t;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Ot=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,Ht=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 Pt=t=>t instanceof Et?{...t}:t;function Dt(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(Pt(t),Pt(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 Rt=t=>{const e=Dt({},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&&Ht.read(i);t&&a.set(o,t)}return e};var jt="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise(function(e,n){const r=Rt(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 K("Request aborted",K.ECONNABORTED,t,m)),m=null)},m.onerror=function(e){const r=e&&e.message?e.message:"Network Error",o=new K(r,K.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 K(e,o.clarifyTimeoutError?K.ETIMEDOUT:K.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 K("Unsupported protocol "+b+":",K.ERR_BAD_REQUEST,t)):m.send(o||null)})};var Ft=(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 K?e:new Bt(e instanceof Error?e.message:e))}};let i=e&&setTimeout(()=>{i=null,o(new K(`timeout of ${e}ms exceeded`,K.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 qt=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()}},Wt=(t,e,n,r)=>{const o=async function*(t,e){for await(const n of Ut(t))yield*qt(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:Vt}=Z,Yt=(({Request:t,Response:e})=>({Request:t,Response:e}))(Z.global),{ReadableStream:Gt,TextEncoder:Xt}=Z.global,Zt=(t,...e)=>{try{return!!t(...e)}catch(t){return!1}},Qt=t=>{t=Z.merge.call({skipUndefined:!0},Yt,t);const{fetch:e,Request:n,Response:r}=t,o=e?Vt(e):"function"==typeof fetch,i=Vt(n),a=Vt(r);if(!o)return!1;const s=o&&Vt(Gt),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 Gt,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 K(`Response type '${t}' is not supported`,K.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:A="same-origin",fetchOptions:w}=Rt(t),x=e||fetch;b=b?(b+"").toLowerCase():"text";let v=Ft([l,c&&c.toAbortSignal()],f),k=null;const C=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let _;try{if(g&&d&&"get"!==a&&"head"!==a&&0!==(_=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]=It(_,Lt(Ot(g)));s=Wt(e.body,65536,t,n)}}Z.isString(A)||(A=A?"include":"omit");const e=i&&"credentials"in n.prototype,l={...w,signal:v,method:a.toUpperCase(),headers:y.normalize().toJSON(),body:s,duplex:"half",credentials:e?A:void 0};k=i&&new n(o,l);let c=await(i?x(k,w):x(o,l));const f=p&&("stream"===b||"response"===b);if(p&&(m||f&&C)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=c[e]});const e=Z.toFiniteNumber(c.headers.get("content-length")),[n,o]=m&&It(e,Lt(Ot(m),!0))||[];c=new r(Wt(c.body,65536,n,()=>{o&&o(),C&&C()}),t)}b=b||"text";let E=await h[Z.findKey(h,b)||"text"](c,t);return!f&&C&&C(),await new Promise((e,n)=>{Tt(e,n,{data:E,headers:Et.from(c.headers),status:c.status,statusText:c.statusText,config:t,request:k})})}catch(e){if(C&&C(),e&&"TypeError"===e.name&&/Load failed|fetch/i.test(e.message))throw Object.assign(new K("Network Error",K.ERR_NETWORK,t,k,e&&e.response),{cause:e.cause||e});throw K.from(e,e&&e.code,t,k,e&&e.response)}}},Kt=new Map,Jt=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=Kt;for(;l--;)a=i[l],s=c.get(a),void 0===s&&c.set(a,s=l?new Map:Qt(e)),c=s;return s};Jt();const $t={http:null,xhr:jt,fetch:{get:Jt}};Z.forEach($t,(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=$t[(n=String(r)).toLowerCase()],void 0===o))throw new K(`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 K("There is no suitable adapter to dispatch the request "+e,"ERR_NOT_SUPPORT")}return o},adapters:$t};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||At.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 K(r(o," has been removed"+(e?" in "+e:"")),K.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 K("options must be an object",K.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 K("option "+i+" must be "+n,K.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new K("Unknown option "+i,K.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=Dt(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=Dt(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(Dt(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(Dt(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(Dt(e,n))},o}(At);ge.Axios=pe,ge.CanceledError=Bt,ge.CancelToken=ue,ge.isCancel=Mt,ge.VERSION=ie,ge.toFormData=nt,ge.AxiosError=K,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=Dt,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),A=p("Map.prototype.forEach",!0),w=p("Set.prototype.forEach",!0);if("undefined"==typeof process||!process.versions||!process.versions.node)var x=p("Map.prototype.iterator",!0),v=p("Set.prototype.iterator",!0);var k=p("Map.prototype.@@iterator",!0)||p("Map.prototype._es6-shim iterator_",!0),C=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(k)return k(t);if(A){var e=[];return A(t,function(t,n){h(e,[n,t])}),m(e)}}if(y(t)){if(v)return o(v(t));if(C)return C(t);if(w){var n=[];return w(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,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}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 A="[a-zA-Z]\\w*",w="[a-zA-Z_]\\w*",x="\\b\\d+(\\.\\d+)?",v="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",k="\\b(0b[01]+)",C={begin:"\\\\[\\s\\S]",relevance:0},_={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[C]},E={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[C]},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},I={scope:"number",begin:v,relevance:0},O={scope:"number",begin:k,relevance:0},N={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[C,{begin:/\[/,end:/\]/,relevance:0,contains:[C]}]}]},H={scope:"title",begin:A,relevance:0},z={scope:"title",begin:w,relevance:0},P={begin:"\\.\\s*"+w,relevance:0};var D=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:A,UNDERSCORE_IDENT_RE:w,NUMBER_RE:x,C_NUMBER_RE:v,BINARY_NUMBER_RE:k,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:C,APOS_STRING_MODE:_,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:I,BINARY_NUMBER_MODE:O,REGEXP_MODE:N,TITLE_MODE:H,UNDERSCORE_TITLE_MODE:z,METHOD_GUARD:P,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 R(t,e){"."===t.input[t.index-1]&&e.ignoreMatch()}function j(t,e){void 0!==t.className&&(t.scope=t.className,delete t.className)}function F(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=R,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,void 0===t.relevance&&(t.relevance=0))}function q(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 W(t,e){void 0===t.relevance&&(t.relevance=1)}const V=(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},Y=["of","and","for","in","not","or","if","then","parent","list","value"];function G(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,G(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 Y.includes(t.toLowerCase())}(t)?0:1}const Z={},Q=t=>{console.error(t)},K=(t,...e)=>{console.log(`WARN: ${t}`,...e)},J=(t,e)=>{Z[`${t}/${e}`]||(console.log(`Deprecated as of ${t}. ${e}`),Z[`${t}/${e}`]=!0)},$=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 Q("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),$;if("object"!=typeof t.beginScope||null===t.beginScope)throw Q("beginScope must be object"),$;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 Q("skip, excludeEnd, returnEnd not compatible with endScope: {}"),$;if("object"!=typeof t.endScope||null===t.endScope)throw Q("endScope must be object"),$;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;[j,U,et,V].forEach(t=>t(i,a)),t.compilerExtensions.forEach(t=>t(i,a)),i.__beforeBegin=null,[F,q,W].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=G(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):(J("10.7.0","highlight(lang, code, ...args) has been deprecated."),J("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=C.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=C.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=A(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=C.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(C.classNameAliases[t.scope]||t.scope),t.beginScope&&(t.beginScope._wrap?(u(T,C.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 w(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 v(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=w(i);if(t!==st)return t}if("illegal"===i.type&&""===s)return 1;if(O>1e5&&O>3*i.index){throw new Error("potential infinite loop, way more iterations than matches")}return T+=s,s.length}const C=k(t);if(!C)throw Q(s.replace("{}",t)),new Error('Unknown language: "'+t+'"');const _=nt(C);let E="",S=i||_;const M={},B=new d.__emitter(d);!function(){const t=[];for(let e=S;e!==C;e=e.parent)e.scope&&t.unshift(e.scope);t.forEach(t=>B.openNode(t))}();let T="",L=0,I=0,O=0,N=!1;try{if(C.__emitTokens)C.__emitTokens(e,B);else{for(S.matcher.considerAll();;){O++,N?N=!1:S.matcher.considerAll(),S.matcher.lastIndex=I;const t=S.matcher.exec(e);if(!t)break;const n=v(e.substring(I,t.index),t);I=t.index+n}v(e.substring(I))}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:I,context:e.slice(I-100,I+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 A(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(k).filter(_).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(k(t.language).supersetOf===e.language)return 1;if(k(e.language).supersetOf===t.language)return-1}return 0}),[a,s]=i,c=a;return c.secondBest=s,c}function w(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=k(n[1]);return e||(K(s.replace("{}",n[1])),K("Falling back to no-highlight mode for this block.",t)),e?n[1]:"no-highlight"}return e.split(/\s+/).find(t=>g(t)||k(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}):A(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 v(){if("loading"===document.readyState)return void(x=!0);document.querySelectorAll(d.cssSelector).forEach(w)}function k(t){return t=(t||"").toLowerCase(),r[t]||r[o[t]]}function C(t,{languageName:e}){"string"==typeof t&&(t=[t]),t.forEach(t=>{o[t.toLowerCase()]=e})}function _(t){const e=k(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&&v()},!1),Object.assign(t,{highlight:b,highlightAuto:A,highlightAll:v,highlightElement:w,highlightBlock:function(t){return J("10.7.0","highlightBlock will be removed entirely in v12.0"),J("10.7.0","Please use highlightElement now."),w(t)},configure:function(t){d=at(d,t)},initHighlighting:()=>{v(),J("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function(){v(),J("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function(e,n){let o=null;try{o=n(t)}catch(t){if(Q("Language definition for '{}' could not be registered.".replace("{}",e)),!a)throw t;Q(t),o=l}o.name||(o.name=e),r[e]=o,o.rawDefinition=n.bind(null,t),o.aliases&&C(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:k,registerAliases:C,autoDetection:_,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 D)"object"==typeof D[t]&&e(D[t]);return Object.assign(t,D),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:()=>At,parse:()=>Ct,parseInline:()=>kt,parser:()=>_t,setOptions:()=>wt,use:()=>xt,walkTokens:()=>vt}),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]+)*)/,A=/(?!\s*\])(?:\\.|[^\[\]\\])+/,w=p(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",A).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),x=p(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,f).getRegex(),v="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",k=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,C=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",k).replace("tag",v).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),_=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",v).getRegex(),E={blockquote:p(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",_).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:w,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:C,lheading:g,list:x,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:_,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",v).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",v).getRegex()},B={...E,html:p("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",k).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,I=/[\s\p{P}\p{S}]/u,O=/[^\s\p{P}\p{S}]/u,N=p(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,I).getRegex(),H=/(?!~)[\p{P}\p{S}]/u,z=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,P=p(z,"u").replace(/punct/g,L).getRegex(),D=p(z,"u").replace(/punct/g,H).getRegex(),R="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",j=p(R,"gu").replace(/notPunctSpace/g,O).replace(/punctSpace/g,I).replace(/punct/g,L).getRegex(),F=p(R,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,H).getRegex(),q=p("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,O).replace(/punctSpace/g,I).replace(/punct/g,L).getRegex(),U=p(/\\(punct)/,"gu").replace(/punct/g,L).getRegex(),W=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(),V=p(k).replace("(?:--\x3e|$)","--\x3e").getRegex(),Y=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",V).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),G=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,X=p(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",G).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Z=p(/^!?\[(label)\]\[(ref)\]/).replace("label",G).replace("ref",A).getRegex(),Q=p(/^!?\[(ref)\](?:\[\])?/).replace("ref",A).getRegex(),K={_backpedal:d,anyPunctuation:U,autolink:W,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,br:T,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:d,emStrongLDelim:P,emStrongRDelimAst:j,emStrongRDelimUnd:q,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:X,nolink:Q,punctuation:N,reflink:Z,reflinkSearch:p("reflink|nolink(?!\\()","g").replace("reflink",Z).replace("nolink",Q).getRegex(),tag:Y,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:d},J={...K,link:p(/^!?\[(label)\]\((.*?)\)/).replace("label",G).getRegex(),reflink:p(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",G).getRegex()},$={...K,emStrongRDelimAst:F,emStrongLDelim:D,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={...$,br:p(T).replace("{2,}","*").getRegex(),text:p($.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},et={normal:E,gfm:M,pedantic:B},nt={normal:K,gfm:$,breaks:tt,pedantic:J},rt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},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 At=yt.options,wt=yt.setOptions,xt=yt.use,vt=yt.walkTokens,kt=yt.parseInline,Ct=yt,_t=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)&&(q(e.r)&&q(e.g)&&q(e.b)?(n=i(e.r,e.g,e.b),d=!0,p="%"===String(e.r).substr(-1)?"prgb":"rgb"):q(e.h)&&q(e.s)&&q(e.v)?(o=H(e.s),a=H(e.v),n=c(e.h,o,a),d=!0,p="hsv"):q(e.h)&&q(e.s)&&q(e.l)&&(o=H(e.s),l=H(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 A(t,e){var n=r(t).toHsl(),o=(n.h+e)%360;return n.h=o<0?360+o:o,r(n)}function w(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 v(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 k(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 C(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(A,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(k,arguments)},complement:function(){return this._applyCombination(w,arguments)},monochromatic:function(){return this._applyCombination(C,arguments)},splitcomplement:function(){return this._applyCombination(v,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]:H(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=W(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 _=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(_);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){I(t)&&(t="100%");var n=O(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 I(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)}function O(t){return"string"==typeof t&&-1!=t.indexOf("%")}function N(t){return 1==t.length?"0"+t:""+t}function H(t){return t<=1&&(t=100*t+"%"),t}function z(t){return Math.round(255*parseFloat(t)).toString(16)}function P(t){return L(t)/255}var D,R,j,F=(R="[\\s|\\(]+("+(D="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",j="[\\s|\\(]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",{CSS_UNIT:new RegExp(D),rgb:new RegExp("rgb"+R),rgba:new RegExp("rgba"+j),hsl:new RegExp("hsl"+R),hsla:new RegExp("hsla"+j),hsv:new RegExp("hsv"+R),hsva:new RegExp("hsva"+j),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 q(t){return!!F.CSS_UNIT.exec(t)}function U(t){t=t.replace(e,"").replace(n,"").toLowerCase();var r,o=!1;if(_[t])t=_[t],o=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(r=F.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=F.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=F.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=F.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=F.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=F.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=F.hex8.exec(t))?{r:L(r[1]),g:L(r[2]),b:L(r[3]),a:P(r[4]),format:o?"name":"hex8"}:(r=F.hex6.exec(t))?{r:L(r[1]),g:L(r[2]),b:L(r[3]),format:o?"name":"hex"}:(r=F.hex4.exec(t))?{r:L(r[1]+""+r[1]),g:L(r[2]+""+r[2]),b:L(r[3]+""+r[3]),a:P(r[4]+""+r[4]),format:o?"name":"hex8"}:!!(r=F.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 W(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:()=>_,AH:()=>l,W3:()=>v,Ec:()=>k});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,A=y?y.emptyScript:"",w=b.reactiveElementPolyfillSupport,x=(t,e)=>t,v={toAttribute(t,e){switch(e){case Boolean:t=t?A: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}},k=(t,e)=>!p(t,e),C={attribute:!0,type:String,converter:v,reflect:!1,useDefault:!1,hasChanged:k};Symbol.metadata??=Symbol("metadata"),b.litPropertyMetadata??=new WeakMap;class _ 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=C){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)??C}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:v).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:v;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??k)(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){}}_.elementStyles=[],_.shadowRootOptions={mode:"open"},_[x("elementProperties")]=new Map,_[x("finalized")]=new Map,w?.({ReactiveElement:_}),(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:()=>Pt,Nx:()=>Dt,eL:()=>Rt,gu:()=>qt,FF:()=>Wt,iI:()=>F,z6:()=>Ht,hO:()=>Vt,Op:()=>Zt,OX:()=>de,Zc:()=>ge,KV:()=>V,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 A=(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 w(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=w(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},v=(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=w(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},k=(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 C=(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=w(n.node(t-1).contentMatchAt(n.indexAfter(t-1)));let e=_&&_(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 _;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 I=L(l,d,u),O=L(l,g,b);const N={Enter:L(A,v,k,C),"Mod-Enter":x,Backspace:I,"Mod-Backspace":I,"Shift-Backspace":I,Delete:O,"Mod-Delete":O,"Mod-a":(t,e)=>(e&&e(t.tr.setSelection(new r.i5(t.doc))),!0)},H={"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)H[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 P(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 D(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 R{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:D({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 j{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 F(t,e,n){if(void 0===t.config[e]&&t.parent)return F(t.parent,e,n);if("function"==typeof t.config[e]){return t.config[e].bind({...n,parent:t.parent?F(t.parent,e,n):null})}return t.config[e]}function q(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}=q(t),o=[...n,...r],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach(t=>{const n=F(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=F(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 W(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 V(...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 Y(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)=>V(t,e),{})}function G(t){return"function"==typeof t}function X(t,e=void 0,...n){return G(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 Q(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 K(t,e){var n;const r=U(t),{nodeExtensions:o,markExtensions:i}=q(t),s=null===(n=o.find(t=>F(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=Q({...t.reduce((t,e)=>{const r=F(e,"extendNodeSchema",i);return{...t,...r?r(n):{}}},{}),content:X(F(n,"content",i)),marks:X(F(n,"marks",i)),group:X(F(n,"group",i)),inline:X(F(n,"inline",i)),atom:X(F(n,"atom",i)),selectable:X(F(n,"selectable",i)),draggable:X(F(n,"draggable",i)),code:X(F(n,"code",i)),whitespace:X(F(n,"whitespace",i)),linebreakReplacement:X(F(n,"linebreakReplacement",i)),defining:X(F(n,"defining",i)),isolating:X(F(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(F(n,"parseHTML",i));s&&(a.parseDOM=s.map(t=>Z(t,o)));const l=F(n,"renderHTML",i);l&&(a.toDOM=t=>l({node:t,HTMLAttributes:Y(t,o)}));const c=F(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=Q({...t.reduce((t,e)=>{const r=F(e,"extendMarkSchema",i);return{...t,...r?r(n):{}}},{}),inclusive:X(F(n,"inclusive",i)),excludes:X(F(n,"excludes",i)),group:X(F(n,"group",i)),spanning:X(F(n,"spanning",i)),code:X(F(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(F(n,"parseHTML",i));s&&(a.parseDOM=s.map(t=>Z(t,o)));const l=F(n,"renderHTML",i);return l&&(a.toDOM=t=>l({mark:t,HTMLAttributes:Y(t,o)})),[n.name,a]}));return new a.Sj({topNode:s,nodes:l,marks:c})}function J(t,e){return e.nodes[t]||e.marks[t]||null}function $(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=D({state:l.state,transaction:a}),h={from:r-(e[0].length-i.length),to:o},{commands:u,chain:f,can:m}=new R({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(F(this,"addOptions",{name:this.name}))),this.storage=X(F(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(F(e,"addOptions",{name:e.name})),e.storage=X(F(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 R({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=D({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=K(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=F(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=F(t,"priority")||100,r=F(e,"priority")||100;return n>r?-1:n<r?1:0})}get commands(){return this.extensions.reduce((t,e)=>{const n=F(e,"addCommands",{name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:J(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:J(e.name,this.schema)},a=[],s=F(e,"addKeyboardShortcuts",o);let l={};if("mark"===e.type&&F(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=F(e,"addInputRules",o);$(e,t.options.enableInputRules)&&d&&n.push(...d());const p=F(e,"addPasteRules",o);$(e,t.options.enablePasteRules)&&p&&r.push(...p());const h=F(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}=q(this.extensions);return Object.fromEntries(e.filter(t=>!!F(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:W(e.name,this.schema)},o=F(e,"addNodeView",r);if(!o)return[];return[e.name,(r,i,a,s,l)=>{const c=Y(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:J(t.name,this.schema)};if("mark"===t.type){(null===(e=X(F(t,"keepOnSplit",n)))||void 0===e||e)&&this.splittableMarks.push(t.name)}const r=F(t,"onBeforeCreate",n),o=F(t,"onCreate",n),i=F(t,"onUpdate",n),a=F(t,"onSelectionUpdate",n),s=F(t,"onTransaction",n),l=F(t,"onFocus",n),c=F(t,"onBlur",n),d=F(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(F(this,"addOptions",{name:this.name}))),this.storage=X(F(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(F(e,"addOptions",{name:e.name})),e.storage=X(F(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 At(t,e,n={}){return!!yt(t,e,n)}function wt(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&&At([...t.parent.child(i-1).marks],e,n);)i-=1,a-=t.parent.child(i).nodeSize;for(;s<t.parent.childCount&&At([...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 vt(t){return t instanceof r.U3}function kt(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function Ct(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,kt(0,i,a),kt(t.content.size,i,a)):r.U3.create(t,kt(e,i,a),kt(e,i,a))}function _t(){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?W(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 It(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function Ot(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 Ht(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 Pt(t,e){const n=[];return t.descendants((t,r)=>{e(t)&&n.push({node:t,pos:r})}),n}function Dt(t,e,n){const r=[];return t.nodesBetween(e.from,e.to,(t,e)=>{n(t)&&r.push({node:t,pos:e})}),r}function Rt(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 jt(t){return e=>Rt(e.$from,t)}function Ft(t,e){return ft(t,{from:0,to:t.content.size},e)}function qt(t,e){const n=It("string"==typeof e?e:e.name,t.schema);return"node"===n?function(t,e){const n=W(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?Ht(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 Wt(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 Vt(t,e,n){const r=[];return t===e?n.resolve(t).marks().forEach(e=>{const o=wt(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 Yt(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 Gt(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}=q(e),r=n.find(e=>e.name===t);if(!r)return!1;const o=X(F(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 Qt(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 Kt=(t,e)=>{const n=jt(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)},Jt=(t,e)=>{const n=jt(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 $t=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})=>v(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=W(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=wt(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()||_t())&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),"undefined"==typeof navigator||!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||Et()||_t()||r.dom.focus({preventScroll:!0}))})};if(r.hasFocus()&&null===t||!1===t)return!0;if(i&&null===t&&!vt(n.state.selection))return a(),!0;const s=Ct(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,W(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})=>k(t,e),liftListItem:t=>({state:e,dispatch:n})=>P(W(t,e.schema))(e,n),newlineInCode:()=>({state:t,dispatch:e})=>A(t,e),resetAttributes:(t,e)=>({tr:n,state:r,dispatch:o})=>{let i=null,a=null;const s=It("string"==typeof t?t:t.name,r.schema);return!!s&&("node"===s&&(i=W(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,Ot(t.attrs,e)),a&&t.marks.length&&t.marks.forEach(o=>{a===o.type&&n.addMark(r,r+t.nodeSize,a.create(Ot(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=Ht(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(vt(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=W(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=kt(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=kt(o,a,s),c=kt(i,a,s),d=r.U3.create(n,l,c);e.setSelection(d)}return!0},sinkListItem:t=>({state:e,dispatch:n})=>{const r=W(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=Yt(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&&Qt(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&&Qt(n,i.extensionManager.splittableMarks),e.scrollIntoView()}return m},splitListItem:(t,e={})=>({tr:n,state:o,dispatch:i,editor:l})=>{var c;const d=W(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={...Yt(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={...Yt(m,f.type.name,f.attrs),...e},y={...Yt(m,p.node().type.name,p.node().attrs),...e};n.delete(p.pos,h.pos);const A=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,A).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=W(t,a.schema),f=W(e,a.schema),{selection:m,storedMarks:g}=a,{$from:b,$to:y}=m,A=b.blockRange(y),w=g||m.$to.parentOffset&&m.$from.marks();if(!A)return!1;const x=jt(t=>Xt(t.type.name,p))(m);if(A.depth>=1&&x&&A.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(()=>Kt(i,u)).command(()=>Jt(i,u)).run()}return n&&w&&s?l().command(()=>{const t=d().wrapInList(u,r),e=w.filter(t=>h.includes(t.type.name));return i.ensureMarks(e),!!t||c.clearNodes()}).wrapInList(u,r).command(()=>Kt(i,u)).command(()=>Jt(i,u)).run():l().command(()=>!!d().wrapInList(u,r)||c.clearNodes()).wrapInList(u,r).command(()=>Kt(i,u)).command(()=>Jt(i,u)).run()},toggleMark:(t,e={},n={})=>({state:r,commands:o})=>{const{extendEmptyMarkRange:i=!1}=n,a=xt(t,r.schema);return Gt(r,a,e)?o.unsetMark(a,{extendEmptyMarkRange:i}):o.setMark(a,e)},toggleNode:(t,e,n={})=>({state:r,commands:o})=>{const i=W(t,r.schema),a=W(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=W(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=wt(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=It("string"==typeof t?t:t.name,r.schema);return!!s&&("node"===s&&(i=W(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)}}(W(t,n.schema),e)(n,r),wrapInList:(t,e={})=>({state:n,dispatch:r})=>z(W(t,n.schema),e)(n,r)});const te=ut.create({name:"commands",addCommands:()=>({...$t})}),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=D({state:n,transaction:p}),{commands:u}=new R({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 j{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=G(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 R({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=Ct(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 qt(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)||Gt(t,null,n);const r=It(e,t.schema);return"node"===r?Lt(t,e,n):"mark"===r&&Gt(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 Ft(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(Vt(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(F(this,"addOptions",{name:this.name}))),this.storage=X(F(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(F(e,"addOptions",{name:e.name})),e.storage=X(F(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(Vt(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}})},90541(t,e,n){"use strict";function r(t){if("string"!=typeof t)return null;const e=t.trim().match(/^(-?\d+(?:\.\d+)?)px$/);return e?Number(e[1]):null}function o(t){if(!t)return 0;const e=null!=t.padding?function(t){const e=String(t).trim().split(/\s+/).map(t=>"0"===t?0:r(t)??0),[n=0,o=n,i=n,a=o]=e;return{t:n,r:o,b:i,l:a}}(t.padding):{r:0,l:0};return(null!=t.paddingLeft?r(String(t.paddingLeft))??0:e.l)+(null!=t.paddingRight?r(String(t.paddingRight))??0:e.r)}function i(t){if("string"!=typeof t)return null;const e=t.trim().toLowerCase();let n=e.match(/^#([0-9a-f]{3})$/);return n?n[1].split("").map(t=>parseInt(t+t,16)):(n=e.match(/^#([0-9a-f]{6})$/),n?[0,2,4].map(t=>parseInt(n[1].slice(t,t+2),16)):(n=e.match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+)\s*)?\)$/),n?null!=n[4]&&Number(n[4])<1?null:[n[1],n[2],n[3]].map(Number):null))}function a(t){let[e,n,r]=t;const o=[e,n,r].map(t=>{const e=t/255;return e<=.03928?e/12.92:((e+.055)/1.055)**2.4});return.2126*o[0]+.7152*o[1]+.0722*o[2]}function s(t,e){const n=Array.isArray(t)?t:i(t),r=Array.isArray(e)?e:i(e);if(!n||!r)return null;const o=a(n),s=a(r);return(Math.max(o,s)+.05)/(Math.min(o,s)+.05)}n.d(e,{kG:()=>_,JT:()=>k});const l=t=>Array.isArray(t)?t.filter(t=>"string"==typeof t):[];function c(t){const e=new Map;for(const n of Array.isArray(t)?t:[])n&&"string"==typeof n.id&&"string"==typeof n.type&&e.set(n.id,{...n,props:n.props&&"object"==typeof n.props?n.props:{}});const n=[...e.values()].find(t=>"root"===t.type)||null,i=new Map,a=new Map,s=n?[n.id]:[];for(;s.length;){const t=s.shift();if(a.has(t))continue;const n=e.get(t);a.set(t,n);for(const r of[...l(n.children),...l(n.elements)])e.has(r)&&!a.has(r)&&(i.set(r,t),s.push(r))}e.clear();for(const[t,n]of a)e.set(t,n);const c=t=>e.get(i.get(t))||null,d=t=>{const n=e.get(t);return n?[...l(n.children),...l(n.elements)].map(t=>e.get(t)).filter(Boolean):[]},p=t=>{const e=[],n=new Set;for(let r=c(t);r&&!n.has(r.id);r=c(r.id))n.add(r.id),e.push(r);return e},h=t=>t.props.style&&"object"==typeof t.props.style?t.props.style:{},u=t=>{const n=(t=>[e.get(t),...p(t)].filter(Boolean).filter(t=>"block"===t.type).pop()||null)(t);return n&&r(h(n).width)||600},f=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const i=e.get(t);if(!i||n>50)return null;const a=o(h(i));if("block"===i.type)return(r(h(i).width)||u(t))-a;const s=c(t),l=s?f(s.id,n+1):null;if(null==l)return null;if("col"===i.type){const t=s?d(s.id).filter(t=>"col"===t.type):[i],e=Number(i.props.lg);return(t.length>1&&Number.isInteger(e)&&e>0&&e<=12?l*e/12:l)-a}if("card"===i.type){const t=h(i).width,e=r(t),n="string"==typeof t&&/%$/.test(t.trim())?parseFloat(t):null,o=e??(null!=n?l*n/100:l);return Math.min(o,l)-a}return l};return{byId:e,root:n,parentOf:c,kids:d,ancestors:p,style:h,desktopWidth:u,containerWidth:t=>{const e=c(t);return e?f(e.id):null}}}const d=[],p=new Set(["image","button","card","video","table"]),h=(t,e)=>({key:`preflight_${t}`,params:e}),u=(t,e,n)=>({label:`preflight_fix_${t}`,patches:[{id:e.id,key:"style",value:{...e.props.style||{},...n}}]}),f=t=>{const e=t.props.lg;return null==e||""===e||0===Number(e)?null:Number(e)},m=t=>{let e=0;for(const n of t){if(e+n>12){if(12!==e)return!1;e=0}e+=n}return!0};d.push({id:"col-grid",group:"mobile",severity:"error",channels:["newsletter"],check(t){const e=[];for(const n of t.byId.values()){if("block"!==n.type)continue;const r=t.kids(n.id).filter(t=>"col"===t.type);if(r.length<2)continue;const o=r.map(f).filter(t=>null!==t),i=o.some(t=>!Number.isInteger(t)||t<0||t>12),a=o.reduce((t,e)=>t+e,0);if(!i&&(a<=12||m(o)))continue;const s=r.filter(t=>null!==f(t)&&12!==f(t));if(!s.length)continue;const l=Math.floor(12/s.length);e.push({elementId:n.id,message:h("col-grid",{total:a}),fix:{label:"preflight_fix_col-grid",patches:s.map((t,e)=>({id:t.id,key:"lg",value:0===e?l+(12-l*s.length):l}))}})}return e}}),d.push({id:"wider-than-container",group:"mobile",severity:"error",channels:["newsletter"],check(t){const e=[];for(const n of t.byId.values()){if(!p.has(n.type))continue;const o=t.style(n);if("100%"===o.maxWidth)continue;const i=r(o.width),a=t.containerWidth(n.id);null==i||null==a||i<=Math.ceil(a)||e.push({elementId:n.id,message:h("wider-than-container",{width:i,room:Math.floor(a)}),fix:u("wider-than-container",n,{width:"100%",maxWidth:"100%"})})}return e}}),d.push({id:"fixed-without-max",group:"mobile",severity:"error",channels:["newsletter"],check(t){const e=[];for(const n of t.byId.values()){if(!p.has(n.type))continue;const o=t.style(n),i=r(o.width);if(null==i||i<=320||"100%"===o.maxWidth)continue;const a=t.containerWidth(n.id);null!=a&&i>Math.ceil(a)||e.push({elementId:n.id,message:h("fixed-without-max",{width:i}),fix:u("fixed-without-max",n,{maxWidth:"100%"})})}return e}}),d.push({id:"block-too-wide",group:"look",severity:"warning",channels:["newsletter"],check(t){const e=[];for(const n of t.byId.values()){if("block"!==n.type||t.ancestors(n.id).some(t=>"col"===t.type))continue;const o=r(t.style(n).width);null==o||o<=640||e.push({elementId:n.id,message:h("block-too-wide",{width:o}),fix:u("block-too-wide",n,{width:"600px",maxWidth:"100%"})})}return e}}),d.push({id:"cramped-columns",group:"mobile",severity:"error",channels:["newsletter"],check(t){const e=[];for(const n of t.byId.values()){if("block"!==n.type||!n.props.noResponsive)continue;const r=t.kids(n.id).filter(t=>"col"===t.type);if(r.length<2)continue;const o=320-(t.desktopWidth(n.id)-(t.containerWidth(r[0].id)??0)),i=Math.min(...r.map(t=>(f(t)||12/r.length)/12*o));i>=100||e.push({elementId:n.id,message:h("cramped-columns",{width:Math.floor(i)}),fix:{label:"preflight_fix_cramped-columns",patches:[{id:n.id,key:"noResponsive",value:!1}]}})}return e}});const g=(t,e,n)=>{const r=[];for(const o of t.byId.values()){if(o.type!==e)continue;const t=n(o);t&&r.push(t)}return r};d.push({id:"button-no-link",group:"missing",severity:"error",channels:"all",check:t=>g(t,"button",t=>t.props.onClick?.link?.href||t.props.modalBlockId?null:{elementId:t.id,message:{key:"preflight_button-no-link"}})}),d.push({id:"placeholder-image",group:"missing",severity:"error",channels:"all",check:t=>g(t,"image",t=>"string"==typeof t.props.src&&t.props.src.includes("/placeholder")?{elementId:t.id,message:{key:"preflight_placeholder-image"}}:null)}),d.push({id:"social-no-url",group:"missing",severity:"error",channels:"all",check:t=>g(t,"social",t=>{const e=(Array.isArray(t.props.items)?t.props.items:[]).map((t,e)=>t&&t.url?null:e).filter(t=>null!==t);return e.length?{elementId:t.id,message:{key:"preflight_social-no-url",params:{items:e}}}:null})});const b=new Set(["card","block","section","root"]),y=["unoccupied","natural light","modern and clean","stock photo","4k","photorealistic","empty room"],A=/[֐-׿؀-ۿ]/;function w(t,e){for(const n of t.ancestors(e)){if(!b.has(n.type))continue;const e=n.props.background;if(e&&e.properties&&e.properties.src)return{photo:!0};const r=t.style(n),o=i(r.backgroundColor)?r.backgroundColor:r.background,a=i(o);if(a)return{color:a,raw:o}}return null}function x(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!t||"object"!=typeof t)return n;if("text"===t.type&&"string"==typeof t.text){const r=(t.marks||[]).find(t=>"textStyle"===t.type),o=r&&r.attrs&&r.attrs.color||e;/[\p{L}\p{N}]/u.test(t.text)&&n.push(o)}for(const r of t.content||[])x(r,e,n);return n}d.push({id:"low-contrast",group:"look",severity:"warning",channels:"all",check(t){const e=[];for(const n of t.byId.values()){if("text"!==n.type)continue;const r=w(t,n.id);if(!r||r.photo)continue;const o=n.props.text&&n.props.text.childNodes;let i=null;for(const e of x(o,t.style(n).color)){const t=s(e,r.color);null!=t&&(null==i||t<i.ratio)&&(i={ratio:t,color:e})}i&&i.ratio<3&&e.push({elementId:n.id,message:{key:"preflight_low-contrast",params:{ratio:i.ratio.toFixed(1),color:i.color,background:r.raw}}})}return e}}),d.push({id:"ai-leftover-alt",group:"look",severity:"warning",channels:"all",check(t){const e=[...t.byId.values()].some(t=>"text"===t.type&&A.test(JSON.stringify(t.props.text||""))),n=[];for(const r of t.byId.values()){if("image"!==r.type||"string"!=typeof r.props.alt)continue;const t=r.props.alt.toLowerCase(),o=y.some(e=>t.includes(e)),i=t.length>80&&o,a=e&&o&&/[a-z]{4,}.*[a-z]{4,}.*[a-z]{4,}/.test(t);(i||a)&&n.push({elementId:r.id,message:{key:"preflight_ai-leftover-alt"},fix:{label:"preflight_fix_ai-leftover-alt",patches:[{id:r.id,key:"alt",value:""}]}})}return n}});d.push({id:"gmail-clip",group:"missing",severity:"error",channels:["newsletter"],check(t){const e=t.htmlBytes;if("number"!=typeof e||e<=92160)return[];const n=Math.round(e/1024);return e>104448?[{elementId:t.root.id,message:{key:"preflight_gmail-clip",params:{kb:n}}}]:[{elementId:t.root.id,severity:"warning",group:"look",message:{key:"preflight_gmail-clip-near",params:{kb:n}}}]}});const v=(t,e)=>"all"===t.channels||Array.isArray(t.channels)&&t.channels.includes(e);function k(t){let e,{channel:n="newsletter",htmlBytes:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{e=c(t)}catch(t){return console.warn("[doc-checks] could not read the document",t),[]}if(!e.root)return[];e.htmlBytes=r;const o=[];for(const t of d)if(v(t,n))try{for(const n of t.check(e)||[])o.push({ruleId:t.id,severity:t.severity,group:t.group,...n})}catch(e){console.warn(`[doc-checks] rule ${t.id} failed and was skipped`,e)}return o.sort((t,e)=>t.severity===e.severity?0:"error"===t.severity?-1:1)}const C=[{id:"mobile",blocking:!0},{id:"missing",blocking:!0},{id:"look",blocking:!1}];function _(t){return C.map(e=>{const n=[],r=new Map;for(const o of t){if((o.group||"look")!==e.id)continue;const t=`${o.ruleId}|${JSON.stringify(o.message&&o.message.params?o.message.params:{})}`;let i=r.get(t);i||(i={...o,count:0,elementIds:[],fix:o.fix?{label:o.fix.label,patches:[]}:void 0},r.set(t,i),n.push(i)),i.count+=1,i.elementIds.push(o.elementId),i.fix&&o.fix&&i.fix.patches.push(...o.fix.patches)}return{...e,items:n}}).filter(t=>t.items.length)}},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:()=>W,c0:()=>S,ge:()=>q,qy:()=>_,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,A=/>/g,w=RegExp(`>|${g}(?:([^\\s"'>=/]+)(${g}*=${g}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),x=/'/g,v=/"/g,k=/^(?:script|style|textarea|title)$/i,C=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),_=C(1),E=C(2),S=(C(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 I=(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=A:void 0!==p[2]?(k.test(p[2])&&(o=RegExp("</"+p[2],"g")),a=w):void 0!==p[3]&&(a=w):a===w?">"===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]?w:'"'===p[3]?v:x):a===v||a===x?a=w:a===y||a===A?a=b:(a=w,o=void 0);const f=a===w&&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 O{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]=I(t,e);if(this.el=O.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]?D:"?"===i[1]?R:"@"===i[1]?j:P}),r.removeAttribute(t)}else t.startsWith(l)&&(p.push({type:6,index:o}),r.removeAttribute(t));if(k.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 H{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 F(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=O.createElement(L(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new H(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 O(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 P{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 D extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===M?void 0:t}}class R extends P{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==M)}}class j extends P{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 F{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 q={M:s,P:l,A:c,C:1,L:I,R:H,D:m,V:N,I:z,H:P,N:R,U:j,B:D,F},U=r.litHtmlPolyfillSupport;U?.(O,z),(r.litHtmlVersions??=[]).push("3.3.2");const W=(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:()=>J,ZF:()=>lt,FK:()=>s,CU:()=>p,sX:()=>Z,bP:()=>L,u$:()=>B,vI:()=>h,Sj:()=>Q,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 v(i,k(t,o,a,e,r))}{let r=t.parent,o=r.content;return v(r,o.cut(0,t.parentOffset).append(n.content).append(o.cut(e.parentOffset)))}}return v(i,C(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 A(t,e,n){let r=t.node(n);return y(r,e.node(n)),r}function w(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&&(w(t.nodeAfter,r),i++));for(let t=i;t<a;t++)w(o.child(t),r);e&&e.depth==n&&e.textOffset&&w(e.nodeBefore,r)}function v(t,e){return t.type.checkContent(e),t.copy(e)}function k(t,e,n,r,o){let i=t.depth>o&&A(t,e,o+1),a=r.depth>o&&A(n,r,o+1),l=[];return x(null,t,o,l),i&&a&&e.index(o)==n.index(o)?(y(i,a),w(v(i,k(t,e,n,r,o+1)),l)):(i&&w(v(i,C(t,e,o+1)),l),x(e,n,o,l),a&&w(v(a,C(n,r,o+1)),l)),x(r,null,o,l),new s(l)}function C(t,e,n){let r=[];if(x(null,t,n,r),t.depth>n){w(v(A(t,e,n+1),C(t,e,n+1)),r)}return x(e,null,n,r),new s(r)}u.empty=new u(s.empty,0,0);class _{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 _(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]=_.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 _.resolveCached(this,t)}resolveNoCache(t){return _.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()+")"),O(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 I 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):O(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 I(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new I(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 O(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 H(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(q(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]);q(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(F);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 H{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(P(t))}while(t.eat("|"));return 1==e.length?e[0]:{type:"choice",exprs:e}}function P(t){let e=[];do{e.push(D(t))}while(t.next&&")"!=t.next&&"|"!=t.next);return 1==e.length?e[0]:{type:"seq",exprs:e}}function D(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=j(t,e)}return e}function R(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function j(t,e){let n=R(t),r=n;return t.eat(",")&&(r="}"!=t.next?R(t):-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function F(t,e){return e-t}function q(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(F)}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 W(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 V(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 Y(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 G{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=Y(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:W(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){V(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 G(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=Y(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,W(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){V(this.attrs,t,"mark",this.name)}excludes(t){return this.excluded.indexOf(t)>-1}}class Q{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=G.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?K(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?[]:K(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 G))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 I(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 K(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 J{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 J(t,J.schemaRules(t)))}}const $={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&&!$.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($.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:()=>k,LN:()=>a,U3:()=>d,hs:()=>M,i5:()=>f,k_:()=>_,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 A(t,e){return e&&t?t.bind(e):t}class w{constructor(t,e,n){this.name=t,this.init=A(e.init,n),this.apply=A(e.apply,n)}}const x=[new w("doc",{init:t=>t.doc||t.schema.topNodeType.createAndFill(),apply:t=>t.doc}),new w("selection",{init:(t,e)=>t.selection||a.atStart(e.doc),apply:t=>t.selection}),new w("storedMarks",{init:t=>t.storedMarks||null,apply:(t,e,n,r)=>r.selection.$cursor?t.storedMarks:null}),new w("scrollToSelection",{init:()=>0,apply:(t,e)=>t.scrolledIntoView?e+1:e})];class v{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 w(t.key,t.spec.state,t))})}}class k{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 k(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 v(t.doc?t.doc.type.schema:t.schema,t.plugins),n=new k(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 v(this.schema,t.plugins),n=e.fields,r=new k(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 v(t.schema,t.plugins),i=new k(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 C(t,e,n){for(let r in t){let o=t[r];o instanceof Function?o=o.bind(e):"handleDOMEvents"==r&&(o=C(o,e,{})),n[r]=o}return n}class _{constructor(t){this.spec=t,this.props={},t.props&&C(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:()=>O,Ln:()=>y,N0:()=>L,Um:()=>I,Wg:()=>A,dL:()=>G,jP:()=>k,n9:()=>B,oM:()=>C,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&&w(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 A 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&&(w(t,this.from,this.gapFrom)||w(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 A(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 A(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 A(e.from,e.to,e.gapFrom,e.gapTo,r.Ji.fromJSON(t,e.slice),e.insert,!!e.structure)}}function w(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 v(t,e,n){return(0==e||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function k(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||!v(i,a,s))break;a&&(r=1),s<i.childCount&&(o=1)}return null}function C(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(_).concat({type:e,attrs:n}).concat(i.map(_)):null}function _(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 I(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 O(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 H(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",A);class H{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 A(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=D(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=D(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=D(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(R(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=P(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||!j(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=j(t,e,r,n,o);if(i){for(let n=e-1;n>=0;n--){let{match:e,type:r}=this.frontier[n],o=j(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=P(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=P(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=P(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 P(t,e,n){return 0==e?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(P(t.lastChild.content,e-1,n)))}function D(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function R(t,e,n){if(e<=0)return t;let o=t.content;return e>1&&(o=o.replaceChild(0,R(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 j(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 F(t){return t.spec.defining||t.spec.definingForContent}function q(t,e,n,o,i){if(e<n){let r=t.firstChild;t=t.replaceChild(0,r.copy(q(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 W 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 W(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 W(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 W(e.pos,e.attr,e.value)}}p.jsonID("attr",W);class V 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 V(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 V(e.attr,e.value)}}p.jsonID("docAttr",V);let Y=class extends Error{};Y=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},(Y.prototype=Object.create(Error.prototype)).constructor=Y,Y.prototype.name="TransformError";class G{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 Y(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=O(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=F(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(q(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 A(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 A(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 A(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 A(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 W(t,e,n)),this}setDocAttribute(t,e){return this.step(new V(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:()=>qe,zF:()=>Ve});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,A=b&&b.userAgent||"",w=/Edge\/(\d+)/.exec(A),x=/MSIE \d/.exec(A),v=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(A),k=!!(x||v||w),C=x?document.documentMode:v?+v[1]:w?+w[1]:0,_=!k&&/gecko\/(\d+)/i.test(A);_&&(/Firefox\/(\d+)/.exec(A)||[0,0])[1];const E=!k&&/Chrome\/(\d+)/.exec(A),S=!!E,M=E?+E[1]:0,B=!k&&!!b&&/Apple Computer/.test(b.vendor),T=B&&(/Mobile\/\w+/.test(A)||!!b&&b.maxTouchPoints>2),L=T||!!b&&/Mac/.test(b.platform),I=!!b&&/Win/.test(b.platform),O=/Android \d/.test(A),N=!!y&&"webkitFontSmoothing"in y.documentElement.style,H=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 P(t,e){return"number"==typeof t?t:t[e]}function D(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 R(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):D(t),c=0,d=0;if(e.top<l.top+P(r,"top")?d=-(l.top-e.top+P(o,"top")):e.bottom>l.bottom-P(r,"bottom")&&(d=e.bottom-e.top>l.bottom-l.top?e.top+P(o,"top")-l.top:e.bottom-l.bottom+P(o,"bottom")),e.left<l.left+P(r,"left")?c=-(l.left-e.left+P(o,"left")):e.right>l.right-P(r,"right")&&(c=e.right-l.right+P(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 j(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 F(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 q=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&&W(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 W(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function V(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(W(e,o))return V(n,e,o)}}if((i=(i+1)%r)==o)break}return t}function Y(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(!W(e,n))return null;if(l=V(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(_&&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 G(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(G(t))return t}return Array.prototype.find.call(n,G)||t.getBoundingClientRect()}const Z=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Q(t,e,n){let{node:r,offset:o,atom:i}=t.docView.domFromPos(e,n<0?-1:1),a=N||_;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++,K(X(c(r,t,e),i),i<0)}{let t=X(c(r,o,o),n);if(_&&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 K(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 J(t.getBoundingClientRect(),!1)}if(null==i&&o<u(r)){let t=r.childNodes[o];if(1==t.nodeType)return J(t.getBoundingClientRect(),!0)}return J(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 K(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 K(X(e,-1),!0)}return K(X(3==r.nodeType?c(r):r,-n),n>=0)}function K(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 J(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 $(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 $(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=Q(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?$(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((_||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(_&&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.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=_t(o,e,i,n)),t>0&&(o=_t(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=wt(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 kt(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(Ct);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=_t(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){wt(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=vt(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=vt(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}At(o,a||gt[0],i)}return o}function At(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 wt(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 vt(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class kt{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 Ct(t,e){return t.type.side-e.type.side}function _t(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=Ht(t,h,p,"pointer"==e||t.state.selection.head<p.pos&&!s?1:-1)}return d}function St(t){return t.editable?t.hasFocus():Pt(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function Mt(t,e=!1){let n=t.state.selection;if(Ot(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&&k&&C<=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&&It(o),i&&It(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 It(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function Ot(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 Ht(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())&&Pt(t)}function Pt(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 Dt(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 Rt(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function jt(t,e,n){let o=t.state.selection;if(!(o instanceof r.U3)){if(o instanceof r.nh&&o.node.isInline)return Rt(t,new r.U3(e>0?o.$to:o.$from));{let n=Dt(t.state,e);return!!n&&Rt(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 Rt(t,new r.U3(o.$anchor,a))}if(!o.empty)return!1;if(t.endOfTextblock(e>0?"forward":"backward")){let n=Dt(t.state,e);return!!(n&&n instanceof r.nh)&&Rt(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)?Rt(t,new r.nh(e<0?t.state.doc.resolve(i.pos-a.nodeSize):i)):!!N&&Rt(t,new r.U3(t.state.doc.resolve(e<0?s:s+a.nodeSize))))}}function Ft(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}function qt(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;_&&1==n.nodeType&&r<Ft(n)&&qt(n.childNodes[r],-1)&&(s=!0);for(;;)if(r>0){if(1!=n.nodeType)break;{let t=n.childNodes[r-1];if(qt(t,-1))o=n,i=--r;else{if(3!=t.nodeType)break;n=t,r=n.nodeValue.length}}}else{if(Wt(n))break;{let e=n.previousSibling;for(;e&&qt(e,-1);)o=n.parentNode,i=a(e),e=e.previousSibling;if(e)n=e,r=Ft(n);else{if(n=n.parentNode,n==t.dom)break;r=0}}}s?Vt(t,n,r):o&&Vt(t,o,i)}(t):function(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let o,i,s=Ft(n);for(;;)if(r<s){if(1!=n.nodeType)break;if(!qt(n.childNodes[r],1))break;o=n,i=++r}else{if(Wt(n))break;{let e=n.nextSibling;for(;e&&qt(e,1);)o=e.parentNode,i=a(e)+1,e=e.nextSibling;if(e)n=e,r=0,s=Ft(n);else{if(n=n.parentNode,n==t.dom)break;r=s=0}}}o&&Vt(t,o,i)}(t)}function Wt(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function Vt(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 Yt(t,e){let n=t.state.doc.resolve(e);if(!S&&!I&&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 Gt(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=Dt(t.state,e);if(n&&n instanceof r.nh)return Rt(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&&Rt(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 Qt(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"==Yt(t,t.state.selection.from)?-1:1:-1;return jt(t,e,r)||Ut(t,e)}if(39==n||L&&70==n&&"c"==r){let e=39==n?"ltr"==Yt(t,t.state.selection.from)?1:-1:1;return jt(t,e,r)||Ut(t,e)}return 38==n||L&&80==n&&"c"==r?Gt(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)||Gt(t,1,r)||Ut(t,1):r==(L?"m":"c")&&(66==n||73==n||89==n||90==n)}function Kt(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 Jt(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||$t.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 $t=/^(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 Ae(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 we(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&&(Ae(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))&&(Ae(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 ve(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&&(Ae(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)Ae(t,r.U3.create(o,a+1,a+1+n.content.size),"pointer");else{if(!r.nh.isSelectable(n))continue;Ae(t,r.nh.create(o,a),"pointer")}return!0}}(t,n,o)}function ke(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(),!O||!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))||Qt(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 Ce=L?"metaKey":"ctrlKey";ce.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=ke(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[Ce]&&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 _e(t,a,n,!!r)):("doubleClick"==i?xe:ve)(t,a.pos,a.inside,n)?n.preventDefault():ue(t,"pointer"))};class _e{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[Ce],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||!_||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"):we(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)?(Ae(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(),ke(t),ue(t,"pointer")},ce.touchmove=t=>{t.input.lastTouch=Date.now(),ue(t,"pointer")},ce.contextmenu=t=>ke(t);const Se=O?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(!(O&&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&&I&&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),_&&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 Ie=k&&C<15||T&&H<604;function Oe(t,e,n,r,i){let a=Jt(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=Ie?null:n.clipboardData,a=r.content(),{dom:s,text:l}=Kt(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&&!O)return;let r=Ie?null:n.clipboardData,o=t.input.shiftKey&&45!=t.input.lastKeyCode;r&&Oe(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?Oe(t,r.value,null,o,e):Oe(t,r.textContent,r.innerHTML,o,e)},50)}(t,n)};class He{constructor(t,e,n){this.slice=t,this.move=e,this.node=n}}const ze=L?"altKey":"ctrlKey";function Pe(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}=Kt(t,l);(!n.dataTransfer.files.length||!S||M>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Ie?"Text":"text/html",c.innerHTML),n.dataTransfer.effectAllowed="copyMove",Ie||n.dataTransfer.setData("text/plain",d),t.dragging=new He(p,Pe(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=Jt(t,Ne(e.dataTransfer),Ie?null:e.dataTransfer.getData("text/html"),!1,s);let c=!(!n||!Pe(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(Ht(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&&O&&"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 De(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 Re{constructor(t,e){this.toDOM=t,this.spec=e||We,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 qe(o-n,o-n,this)}valid(){return!0}eq(t){return this==t||t instanceof Re&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&De(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class je{constructor(t,e){this.attrs=t,this.spec=e||We}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 qe(o,i,this)}valid(t,e){return e.from<e.to}eq(t){return this==t||t instanceof je&&De(this.attrs,t.attrs)&&De(this.spec,t.spec)}static is(t){return t.type instanceof je}destroy(){}}class Fe{constructor(t,e){this.attrs=t,this.spec=e||We}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 qe(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 Fe&&De(this.attrs,t.attrs)&&De(this.spec,t.spec)}destroy(){}}class qe{constructor(t,e,n){this.from=t,this.to=e,this.type=n}copy(t,e){return new qe(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 qe(t,t,new Re(e,n))}static inline(t,e,n,r){return new qe(t,e,new je(n,r))}static node(t,e,n,r){return new qe(t,e,new Fe(n,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof je}get widget(){return this.type instanceof Re}}const Ue=[],We={};class Ve{constructor(t,e){this.local=t.length?t:Ue,this.children=e.length?e:Ue}static create(t,e){return e.length?Ke(e,t,0,We):Ye}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==Ye||0==t.maps.length?this:this.mapInner(t,e,0,0,n||We)}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!=Ye?(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=Ke(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 Ve(e.sort(Je),s)}(this.children,i||[],t,e,n,r,o):i?new Ve(i.sort(Je),Ue):Ye}add(t,e){return e.length?this==Ye?Ve.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,Ke(a,t,s+1,We)),o+=3}});let i=Xe(o?Qe(e):e,-n);for(let e=0;e<i.length;e++)i[e].type.valid(t,i[e])||i.splice(e--,1);return new Ve(i.length?this.local.concat(i).sort(Je):this.local,r||this.children)}remove(t){return 0==t.length||this==Ye?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!=Ye?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 Ve(r,n):Ye}forChild(t,e){if(this==Ye)return this;if(e.isLeaf)return Ve.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 je){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 Ve(r.sort(Je),Ue);return n?new Ge([t,n]):t}return n||Ye}eq(t){if(this==t)return!0;if(!(t instanceof Ve)||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 $e(this.localsInner(t))}localsInner(t){if(this==Ye)return Ue;if(t.inlineContent||!this.local.some(je.is))return this.local;let e=[];for(let t=0;t<this.local.length;t++)this.local[t].type instanceof je||e.push(this.local[t]);return e}forEachSet(t){t(this)}}Ve.empty=new Ve([],[]),Ve.removeOverlap=$e;const Ye=Ve.empty;class Ge{constructor(t){this.members=t}map(t,e){const n=this.members.map(n=>n.map(t,e,We));return Ge.from(n)}forChild(t,e){if(e.isLeaf)return Ve.empty;let n=[];for(let r=0;r<this.members.length;r++){let o=this.members[r].forChild(t,e);o!=Ye&&(o instanceof Ge?n=n.concat(o.members):n.push(o))}return Ge.from(n)}eq(t){if(!(t instanceof Ge)||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?$e(n?e:e.sort(Je)):Ue}static from(t){switch(t.length){case 0:return Ye;case 1:return t[0];default:return new Ge(t.every(t=>t instanceof Ve)?t:t.reduce((t,e)=>t.concat(e instanceof Ve?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 qe(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 Qe(t){let e=[];for(let n=0;n<t.length;n++)null!=t[n]&&e.push(t[n]);return e}function Ke(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=Ke(s,e,n+a+1,r);t!=Ye&&o.push(a,a+e.nodeSize,t)}});let a=Xe(i?Qe(t):t,-n).sort(Je);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 Ve(a,o):Ye}function Je(t,e){return t.from-e.from||t.to-e.to}function $e(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&&Je(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!=Ye&&e.push(r)}),t.cursorWrapper&&e.push(Ve.create(t.state.doc,[t.cursorWrapper.deco])),Ge.from(e)}const nn={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},rn=k&&C<=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]);k&&C<=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(k&&C<=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(_&&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=_,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(k&&C<=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&&O&&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||O)&&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)),k&&C<=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 A=u.doc.resolveNoCache(y.start-u.from),w=u.doc.resolveNoCache(y.endB-u.from),x=f.resolve(y.start),v=A.sameParent(w)&&A.parent.inlineContent&&x.end()>=y.endA;if((T&&t.input.lastIOSEnter>Date.now()-225&&(!v||a.some(t=>"DIV"==t.nodeName||"P"==t.nodeName))||!v&&A.pos<u.doc.content.size&&(!A.sameParent(w)||!A.parent.inlineContent)&&A.pos<w.pos&&!/\S/.test(u.doc.textBetween(A.pos,w.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,A,w)&&t.someProp("handleKeyDown",e=>e(t,g(8,"Backspace"))))return void(O&&S&&t.domObserver.suppressSelectionUpdates());S&&y.endB==y.start&&(t.input.lastChromeDelete=Date.now()),O&&!v&&A.start()!=w.start()&&0==w.parentOffset&&A.depth==w.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==y.endA&&(y.endB-=2,w=u.doc.resolveNoCache(y.endB-u.from),setTimeout(()=>{t.someProp("handleKeyDown",function(e){return e(t,g(13,"Enter"))})},20));let _,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)||k&&e.empty&&e.head==E)&&n.setSelection(e)}return s&&n.setMeta("composition",s),n.scrollIntoView()};if(v)if(A.pos==w.pos){k&&C<=11&&0==A.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&&(_=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}}(A.parent.content.cut(A.parentOffset,w.parentOffset),x.parent.content.cut(x.parentOffset,y.endA-x.start())))){let e=B(t.state.tr);"add"==_.type?e.addMark(E,M,_.mark):e.removeMark(E,M,_.mark),t.dispatch(e)}else if(A.parent.child(A.index()).isText&&A.index()==w.index()-(w.textOffset?0:1)){let e=A.parent.textBetween(A.parentOffset,w.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:Ht(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(vn),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=wn(this),An(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(vn),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=wn(this),An(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:j(t.dom)}}(this);if(i){this.domObserver.stop();let e=p&&(k||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):(Ot(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;F(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&&R(this,e.getBoundingClientRect(),t)}else R(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 He(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(k){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(q)return t.focus(q);let e=j(t);t.focus(null==q?{get preventScroll(){return q={preventScroll:!0},!0}}:void 0),q||(q=!1,F(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 Y(this,t)}coordsAtPos(t,e=1){return Q(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 Oe(this,"",t,!1,e||new ClipboardEvent("paste"))}pasteText(t,e){return Oe(this,t,null,!0,e||new ClipboardEvent("paste"))}serializeForClipboard(t){return Kt(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"),[qe.node(0,t.state.doc.content.size,e)]}function An(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:qe.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function wn(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 vn(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(k[t])t=k[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:I(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:I(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)&&(P(t.r)&&P(t.g)&&P(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"):P(t.h)&&P(t.s)&&P(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"):P(t.h)&&P(t.s)&&P(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=_(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 A(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 w(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 v(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=_(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)&&(C[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(v,arguments)},splitcomplement:function(){return this._applyCombination(w,arguments)},triad:function(){return this._applyCombination(A,[3])},tetrad:function(){return this._applyCombination(A,[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 k=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"},C=a.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(k);function _(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 I(t){return M(t)/255}var O,N,H,z=(N="[\\s|\\(]+("+(O="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+O+")[,|\\s]+("+O+")\\s*\\)?",H="[\\s|\\(]+("+O+")[,|\\s]+("+O+")[,|\\s]+("+O+")[,|\\s]+("+O+")\\s*\\)?",{CSS_UNIT:new RegExp(O),rgb:new RegExp("rgb"+N),rgba:new RegExp("rgba"+H),hsl:new RegExp("hsl"+N),hsla:new RegExp("hsla"+H),hsv:new RegExp("hsv"+N),hsva:new RegExp("hsva"+H),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 P(t){return!!z.CSS_UNIT.exec(t)}},46040(t){"use strict";t.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},93141(t){"use strict";t.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}')},20297(t){"use strict";t.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}')},57299(t){"use strict";t.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')},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","mcp_connect_intro":"Build your page by chatting with an AI assistant. Pick the one you use.","mcp_connect_claude_intro":"Add the Creaditor connector to Claude, then paste the ready prompt into a chat.","mcp_connect_btn":"Connect with Claude","mcp_connect_localhost_note":"This editor is running on your own machine, so an AI on the web can\'t reach it. Use Claude Desktop, or ask your developer to open it up (ngrok).","mcp_connect_url_label":"Connection link","mcp_connect_copy_link_btn":"Copy connection link","mcp_connect_prompt_heading":"Copy a starting prompt","mcp_connect_prompt_desc":"Pick what you want done, then paste it into a new chat.","mcp_prompt_page_label":"Build the whole page","mcp_prompt_page_body":"Start with get_site_context to learn my business and brand, then get_tree to see the page as it is. Build a complete, modern, responsive landing page using add_section, add_element and style_component, and find_image for imagery.\\n\\nAsk me what the page should be about before you start.","mcp_prompt_section_label":"Add one section","mcp_prompt_section_body":"Read the page first with get_tree so you match what is already there. Then add ONE new section with build_section and style it with style_component so it fits the existing design. Do not change or remove anything else.\\n\\nAsk me which section I want and where it should go.","mcp_prompt_restyle_label":"Restyle what is there","mcp_prompt_restyle_body":"Read the page with get_tree and get_site_context, then improve only the LOOK using style_component: colours, backgrounds, spacing, corners and shadows. Do not add, remove or reword anything. Tell me what you changed.","mcp_connect_back":"All assistants","mcp_connect_manual_step1":"Copy the connection link below.","mcp_connect_manual_step2":"In your AI assistant, open its connector settings and add it.","mcp_connect_manual_step3":"Copy the ready prompt and paste it into a new chat.","mcp_connect_link_copied":"Connection link copied. Paste it in Claude\'s connector settings.","mcp_connect_link_copied_plain":"Connection link copied.","mcp_connect_prompt_copied":"Prompt copied. Paste it into a new chat.","mcp_client_claude_heading":"Claude","mcp_client_claude_desc":"Connect in one click. No password needed.","mcp_client_chatgpt_heading":"ChatGPT","mcp_client_chatgpt_desc":"Add it in ChatGPT settings. Takes a minute.","mcp_chatgpt_step1":"In ChatGPT, open Settings, then Apps, then Advanced, and turn on Developer mode.","mcp_chatgpt_step2":"Still in Settings, open Connectors (called Plugins in newer versions) and click Create.","mcp_chatgpt_step3":"Paste the connection link below as the server URL, name it Creaditor, add a short description, and choose OAuth.","mcp_chatgpt_step4":"Copy the ready prompt and paste it into a new chat.","mcp_chatgpt_note":"Developer mode needs a paid ChatGPT plan and works on the web app.","mcp_client_other_heading":"Another AI assistant","mcp_client_other_desc":"Copy the connection link and add it yourself.","name":"Name","inner_name":"Inner 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","menu_items":"Menu items","add_icon":"Add icon","address":"Address","new_icon":"New icon","icon_style":"Icon style","website":"Website","phone":"Phone","moving_from_mailing_list":"Moving from mailing list","unsubscribe":"Unsubscribe link","unsubscribe_explain":"This link will unsubscribe the recipient from all your mailing lists. The unsubscribe page is generated automatically for each recipient when the email is sent.","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":"Section","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":"Web 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.","elements_menu:search_placeholder":"Search elements…","elements_menu:no_results":"No elements match your search.","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","quiz":"Quiz","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:problem":"Problem","sections_cat:solution":"Solution","sections_cat:about":"About","sections_cat:services":"Services","sections_cat:pricing":"Pricing","sections_cat:guarantee":"Guarantee","sections_cat:team":"Team","sections_cat:testimonials":"Testimonials","sections_cat:offer":"Offer & Bonuses","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.","smart_change_undo_delete":"Press Delete to undo","smart_change_undo_backspace":"Press Backspace to undo","smart_change_turn_off":"Turn off","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","brand_colors":"Brand colors","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":"Phone number","what_the_phone_number_to_send_msg":"Phone number","what_the_file_name":"File name","what_the_email_address":"Email address","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","video_timing":"Video timing","show_after_watching":"Show after watching","of_the_video":"of the video","show_after_hint":"Students see this once they\'ve watched this much. Skipping ahead doesn\'t count.","shows_at":"Shows at","reverse_order_on_desktop":"Reverse column order on desktop","reverse_order_on_mobile":"Reverse column order on mobile","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","publishing_your_site":"Publishing your site…","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","which_menu_item":"Which item?","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.","duplicate_popup":"Duplicate popup","copy_suffix":"copy","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","saving":"Saving...","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","drag_anchor_to_canvas":"Drag an anchor to a block","drag_anchor_hint":"Drop it on the block this link should jump to. Nothing is added to your design — the block just gets a marker you can click to rename or remove.","attach_anchor_to_block":"Attach anchor here","drop_anchor_on_a_block":"Drop on a block","anchor_link_to":"Jumps to this anchor — click to go there","anchor_link_missing":"This anchor no longer exists — the link goes nowhere","select_anchor":"Select an anchor","no_anchors_yet":"No anchors yet","anchor_help_title":"Now link something to it","anchor_help_step_1":"Select a button, text or image.","anchor_help_step_2":"Open its link settings and pick \\"Anchor\\".","anchor_help_step_3":"Choose this name:","anchor_help_got_it":"Got it","anchor_placement":"Where the jump lands","anchor_placement_start":"Top","anchor_placement_center":"Middle","anchor_placement_end":"Bottom","anchor_placement_form":"Form","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","sidebarMenu_mcp_connection":"MCP connection","sidebarMenu_import_html":"Import HTML","htmlImport_title":"Import HTML","htmlImport_desc":"Bring a newsletter that lives somewhere else: it becomes regular content you can edit.","htmlImport_paste_card_heading":"Paste HTML code","htmlImport_paste_card_desc":"Copy the newsletter HTML and paste it here.","htmlImport_url_card_heading":"Import from a URL","htmlImport_url_card_desc":"Paste a link to a published newsletter or page.","htmlImport_dest_title":"Where should it go?","htmlImport_error_empty_html":"Paste the HTML code first","htmlImport_error_empty_url":"Enter the page URL first","htmlImport_done_appended":"The imported sections were added below your existing content.","htmlImport_done_replaced":"Your newsletter now holds the imported content.","htmlImport_warnings_title":"Adjustments made during import","htmlImport_import_another":"Import another","htmlImport_done_cta":"Done","htmlImport_mode_append":"Add below existing content","htmlImport_mode_replace":"Replace all content","htmlImport_submit":"Import","htmlImport_loading":"Importing...","htmlImport_loaded":"Import complete","htmlImport_error_generic":"Import failed. Check the code or URL and try again.","htmlImport_error_network":"Could not reach the import service. Check that it is running and allowed for this address.","htmlImport_replace_confirm_title":"Replace all content?","htmlImport_replace_confirm_message":"The current newsletter content will be replaced by the import. This cannot be undone.","htmlImport_replace_confirm_cta":"Replace","sidebarMenu_coming_soon":"Coming soon","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","reset_styling":"Reset styling","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","bullets list":"Bullets list","bulletItem1":"First advantage of your product","bulletItem2":"Another advantage worth highlighting","bulletItem3":"A third reason to choose you","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","link_automations_title":"Special links","automation_desc_mailing_list":"Add or remove whoever clicks from your mailing lists.","automation_desc_unsubscribe":"Readers who click are unsubscribed from your list.","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","memory":"Memory","mem_title":"Assistant memory","mem_intro":"What the assistant remembers about you. Edit or delete any line.","mem_group_business":"About the business (all pages)","mem_group_page":"About this page","mem_source_ai":"From chat","mem_source_user":"Added by you","mem_edit":"Edit","mem_delete":"Delete","mem_save":"Save","mem_cancel":"Cancel","mem_empty_group":"Nothing yet. The assistant saves lasting facts as you chat.","mem_too_long":"Up to {limit} characters.","mem_error":"Could not load the memory.","mem_retry":"Try again","mem_no_token":"Sign in to see what the assistant remembers.","mem_action_failed":"That did not work. Try again.","email_compatibility":"Email compatibility","layout_behavior":"Layout & behavior","text_ai_title":"Edit with AI","text_ai_placeholder":"Tell me how to change this text…","text_ai_send":"Send","text_ai_thinking":"Working…","text_ai_keep_length":"Keep length","text_ai_scope_selection":"Selection","text_ai_scope_element":"Whole text","text_ai_error":"Something went wrong. Please try again.","text_ai_empty":"Ask me to improve, shorten, or rewrite this text.","text_ai_action_improve":"Improve","text_ai_action_shorten":"Shorten","text_ai_action_lengthen":"Lengthen","text_ai_action_grammar":"Fix grammar","text_ai_action_tone":"Warmer tone","text_ai_prompt_improve":"Improve this text — make it clearer and more compelling. Keep the meaning.","text_ai_prompt_shorten":"Make this shorter and more concise, without losing the key point.","text_ai_prompt_lengthen":"Expand this with a little more detail and flow.","text_ai_prompt_grammar":"Fix any spelling and grammar mistakes. Keep the wording and meaning.","text_ai_prompt_tone":"Make the tone warmer and friendlier.","playback":"Playback","showControls":"Show controls","playInline":"Play inline on mobile","volume":"Volume","autoplayMutedInfo":"Browsers only allow autoplay when the video is muted.","on_the_video":"On the video","moment_button":"Button","add_button":"+ Button","at_time":"At","button_text":"Button text","moments_hint":"Shows over the video at its time.","needs_text":"Needs text","needs_link":"Needs a link","moment_question":"Question","add_question":"+ Question","answers_pick_right":"Answers (pick the right one)","right_answer":"Right answer","answer":"Answer","add_answer":"+ Answer","needs_question":"Needs a question","needs_answers":"Needs 2 answers","needs_right_answer":"Pick the right answer","ask-ai":"Ask your AI","content":"Content","engines":"AI engines","ask_ai_prompt":"Prompt","ask_ai_placeholders_hint":"Use {{pageTitle}}, {{pageUrl}}, {{pageDescription}} and {{businessName}}: they are filled in automatically when the visitor clicks.","ask_ai_prompt_too_long":"This prompt is long. Some AI engines cut off very long links, so consider shortening it.","ask_ai_engines":"Which engines to show","ask_ai_variant":"Shape","ask_ai_variant_dot":"Circle","ask_ai_variant_pill":"Pill with name","ask_ai_variant_plain":"Icon only","ask_ai_leading_text":"Text before the icons","ask_ai_brand_colors":"Use each engine\'s brand colors","ask_ai_default_prompt":"I\'m considering {{pageTitle}} from {{businessName}} and I want to work out whether it\'s really right for me.\\nPlease check it against what\'s already published online, and against what you already know about me from our previous conversations.\\n\\nLink to the page: {{pageUrl}}\\n\\nGive me a concise, balanced answer covering: who it suits, who it suits less, and what\'s worth knowing before deciding.\\nPrefer independent sources over marketing copy. If you\'re missing one essential detail to judge the fit, ask me a single short question and nothing more.","ask_ai_external_notice":"Heads up: these icons send the visitor off your site. Clicking one opens a conversation on the AI\'s own site, in a new tab, with your prompt already filled in.","text_before":"Text before","text_after":"Text after","edit_link":"Edit link","fit":"Fit","cover":"Cover","contain":"Contain","focus":"Focal point","no_repeat":"No repeat","repeat_x":"Repeat across","repeat_y":"Repeat down","scroll_behavior":"Scrolling","normal_scroll":"Normal","parallax":"Parallax","parallax_mobile_hint":"Parallax is ignored on iOS and can stutter on Android — mobile falls back to Normal.","blur":"Blur","brightness":"Brightness","imageUrl":"Image link","image_url_not_a_file":"This does not look like a direct link to an image file (.jpg, .png, .webp…). If the background stays blank, open the image itself and copy its own link.","background_email_hint":"Fit, focal point and repeat are written into the email as inline CSS and work in Apple Mail, iOS and Gmail. Outlook for Windows always fills the area and ignores them.","preflight_title":"AI tests","preflight_checking":"Checking your email…","preflight_found_breaking":"Found {count} problems that would break the email in inboxes","preflight_fixing_breaking":"Fixing them for you…","preflight_fixed_breaking":"Fixed {count} problems","preflight_auto_fixed":"We fixed {count} problems that would have broken the email in inboxes. Undo reverts them.","preflight_ai_note":"Mistakes happen to everyone. This is the time to fix them.","preflight_analyzing":"Analyzing your email…","preflight_only_inbox":"Only shows in the inbox","preflight_only_phone":"Only shows on phones","preflight_only_shows_hint":"Looks fine in the editor, but this is how recipients will see it.","preflight_show":"Show me","preflight_back":"Back to editing","preflight_continue":"Great, let\'s go!","preflight_continue_anyway":"Continue anyway","preflight_col-grid":"The columns in this row are not set up right, so readers will see them broken.","preflight_fix_col-grid":"Fix it","preflight_wider-than-container":"This item is wider than the space it has, so on a phone it will run off the screen.","preflight_fix_wider-than-container":"Fix it","preflight_fixed-without-max":"This item has a fixed width, so on a phone it will run off the screen.","preflight_fix_fixed-without-max":"Fix it","preflight_block-too-wide":"This row is too wide for some mail apps, so readers will have to scroll sideways.","preflight_fix_block-too-wide":"Fix it","preflight_cramped-columns":"On a phone the columns in this row will be too narrow to read.","preflight_fix_cramped-columns":"Fix it","preflight_button-no-link":"This button has no link, so clicking it goes nowhere.","preflight_placeholder-image":"This is still a sample image. Replace it with your own.","preflight_social-no-url":"Some social icons have no link.","preflight_gmail-clip":"This email is too long for Gmail: Gmail shows only the top part, so readers will not see the end, including the unsubscribe link. Shorten it or split it into two emails.","preflight_gmail-clip-near":"This email is close to the longest Gmail shows in full. If you add more, it may get cut.","preflight_low-contrast":"This text is hard to read: its color is too close to the background.","preflight_ai-leftover-alt":"The image\'s hidden description (for screen readers) looks like text left over from the AI.","preflight_fix_ai-leftover-alt":"Fix it","preflight_group_mobile":"Breaks on mobile","preflight_group_missing":"Missing or broken","preflight_group_look":"Worth a look","preflight_fix_group":"Fix all ({count})","preflight_fixing":"Fixing…","preflight_fixed_count":"Fixed {count} ✓","preflight_fix_and_continue":"Fix all and continue","preflight_all_good":"No problems found. Your email is ready.","preflight_must_fix":"{count} must be fixed","preflight_nothing_must_fix":"Nothing must be fixed","sidebarMenu_ai_editor":"AI Editor","sidebarMenu_beta":"Beta","aiEditor_title":"AI Editor (Beta)","aiEditor_intro":"Build the whole page by describing it. The page is one HTML document, layout, styling and SEO included, and the AI writes and changes it for you.","aiEditor_notice_heading":"For now, editing is AI-only","aiEditor_notice_body":"In this mode you cannot click into the page and edit it by hand. You point at a part of the page and ask the AI to change it.","aiEditor_notice_soon":"Manual editing in AI Editor mode is on the way.","aiEditor_state_on":"AI Editor is on.","aiEditor_turn_on":"Got it, turn on AI Editor","aiEditor_turn_off":"Turn off AI Editor","kit_role_heading":"Heading","kit_role_text":"Text","kit_role_image":"Image","kit_role_link":"Link","kit_role_button":"Button","kit_role_list":"List","kit_role_listItem":"List item","kit_role_icon":"Icon","kit_role_group":"Group","kit_role_section":"Section","kit_tab_design":"Design","kit_tab_advanced":"Advanced","kit_empty_title":"Imported block","kit_empty_hint":"Click any text on the page to edit it. Click an image to replace it.","kit_edit_hint":"Type straight on the page. Select words for bold, links and colour.","kit_image_source":"Image address","kit_image_alt":"Description for screen readers","kit_link_url":"Goes to","kit_link_hint":"Click the words on the page to change them.","kit_text_color":"Colour","kit_text_size":"Size","kit_text_weight":"Weight","kit_text_align":"Alignment","kit_background":"Background","kit_padding":"Space inside","kit_margin":"Space outside","kit_radius":"Corner rounding","kit_border":"Border","kit_group_text":"Text","kit_group_box":"Box","kit_duplicate":"Duplicate","kit_delete":"Delete","kit_move_up":"Move up","kit_move_down":"Move down","kit_select_parent":"Select what contains this","kit_classes":"CSS classes","kit_classes_hint":"Advanced. Changing these can restyle the block.","kit_edits_none":"No changes yet.","kit_edits_some":"changes saved. The original design is kept, so nothing you write is lost if this block is restyled.","kit_tab_block":"Block","kit_pick_hint":"Move over the block and click any part of it. The canvas shows what you are pointing at.","kit_ask_hint":"Tell the AI what to change about this part. For example: make it shorter, change the colour, replace the image.","kit_ask_ai":"Ask AI to change this","kit_open_chat":"Open AI chat","kit_clear_selection":"Clear selection","kit_menu_name":"any HTML","kit_menu_sendmsg_header":"sendmsg header","kit_menu_sendmsg_hero":"sendmsg hero","kit_scaled_to_fit":"Shown at","kit_scaled_suffix":"to fit the page width. It will publish at full size.","pastePage_title":"Paste a page","pastePage_intro":"Paste the HTML of a whole page and it opens exactly as it was designed. Scripts are removed; everything else is kept.","pastePage_html_label":"Page HTML","pastePage_html_placeholder":"Paste everything, starting at <!doctype html>","pastePage_url_label":"Where is this page from? (optional)","pastePage_url_hint":"Most pages point at their images and stylesheets with relative links. Give the address you copied it from and those keep working.","pastePage_submit":"Open in AI Editor","pastePage_mode_hint":"This opens AI Editor mode, where you change the page by asking rather than by hand.","pastePage_error_empty":"Paste the HTML of a page first.","pastePage_file_button":"Or choose an .html file","pastePage_error_not_html":"That file is not an HTML page. Choose a .html file.","pastePage_error_too_big":"That file is too big to open (the limit is 5 MB).","pastePage_error_read":"The file could not be read. Try again, or paste its HTML.","wordpress-posts":"WordPress posts","wordpress":"WordPress","video_paste_link":"Paste a video link","video_link_sources":"YouTube, Vimeo or an MP4 file"}')},53577(t){"use strict";t.exports=JSON.parse('{"expand_all":"פתיחת האקורדיון","collapse_all":"סגירת האקורדיון","gradient_presets":"תבניות צבע","gradient_stops":"נקודות צבע","mcp_connect_intro":"בנו את העמוד שלכם בשיחה עם עוזר AI. בחרו את זה שאתם משתמשים בו.","mcp_connect_claude_intro":"הוסיפו את מחבר Creaditor ל‑Claude, ואז הדביקו את ההודעה המוכנה בצ׳אט.","mcp_connect_btn":"התחברות ל‑Claude","mcp_connect_localhost_note":"העורך רץ על המחשב שלכם, ולכן AI באינטרנט לא יכול להגיע אליו. השתמשו ב‑Claude Desktop, או בקשו מהמפתח שלכם לחשוף אותו (ngrok).","mcp_connect_url_label":"קישור החיבור","mcp_connect_copy_link_btn":"העתקת קישור החיבור","mcp_connect_prompt_heading":"העתיקו הודעת פתיחה","mcp_connect_prompt_desc":"בחרו מה אתם רוצים שייעשה, והדביקו בצ׳אט חדש.","mcp_prompt_page_label":"לבנות את כל העמוד","mcp_prompt_page_body":"התחילו ב‑get_site_context כדי להכיר את העסק והמותג שלי, ואז get_tree כדי לראות את העמוד כפי שהוא. בנו עמוד נחיתה שלם, מודרני ורספונסיבי בעזרת add_section, add_element ו‑style_component, ו‑find_image לתמונות.\\n\\nשאלו אותי במה העמוד עוסק לפני שאתם מתחילים.","mcp_prompt_section_label":"להוסיף סקשן אחד","mcp_prompt_section_body":"קראו קודם את העמוד עם get_tree כדי להתאים למה שכבר קיים. אחר כך הוסיפו סקשן אחד בלבד עם build_section ועצבו אותו עם style_component כך שישתלב בעיצוב הקיים. אל תשנו ואל תמחקו שום דבר אחר.\\n\\nשאלו אותי איזה סקשן אני רוצה ואיפה הוא צריך להיות.","mcp_prompt_restyle_label":"לשפר את העיצוב הקיים","mcp_prompt_restyle_body":"קראו את העמוד עם get_tree ו‑get_site_context, ושפרו רק את המראה בעזרת style_component: צבעים, רקעים, מרווחים, פינות וצללים. אל תוסיפו, אל תמחקו ואל תנסחו מחדש שום דבר. ספרו לי מה שיניתם.","mcp_connect_back":"כל העוזרים","mcp_connect_manual_step1":"העתיקו את קישור החיבור שלמטה.","mcp_connect_manual_step2":"בעוזר ה‑AI שלכם, פתחו את הגדרות המחברים והוסיפו אותו.","mcp_connect_manual_step3":"העתיקו את ההודעה המוכנה והדביקו אותה בצ׳אט חדש.","mcp_connect_link_copied":"קישור החיבור הועתק. הדביקו אותו בהגדרות המחברים של Claude.","mcp_connect_link_copied_plain":"קישור החיבור הועתק.","mcp_connect_prompt_copied":"ההודעה הועתקה. הדביקו אותה בצ׳אט חדש.","mcp_client_claude_heading":"Claude","mcp_client_claude_desc":"התחברות בלחיצה אחת. בלי סיסמה.","mcp_client_chatgpt_heading":"ChatGPT","mcp_client_chatgpt_desc":"הוסיפו אותו בהגדרות ChatGPT. לוקח דקה.","mcp_chatgpt_step1":"ב‑ChatGPT, פתחו הגדרות, ואז Apps, ואז Advanced, והפעילו את מצב המפתח (Developer mode).","mcp_chatgpt_step2":"באותן הגדרות, פתחו Connectors (נקרא Plugins בגרסאות חדשות) ולחצו Create.","mcp_chatgpt_step3":"הדביקו את קישור החיבור שלמטה ככתובת השרת, תנו לו את השם Creaditor, הוסיפו תיאור קצר ובחרו OAuth.","mcp_chatgpt_step4":"העתיקו את ההודעה המוכנה והדביקו אותה בצ׳אט חדש.","mcp_chatgpt_note":"מצב המפתח דורש מנוי ChatGPT בתשלום ופועל באפליקציית הווב.","mcp_client_other_heading":"עוזר AI אחר","mcp_client_other_desc":"העתיקו את קישור החיבור והוסיפו אותו בעצמכם.","name":"שם","link":"קישור","inner_name":"שם פנימי","secureLink":"קישור מאובטח","tel":"טלפון","email":"אימייל","items":"פריטים","menu_items":"פריטי התפריט","add_icon":"הוספת אייקון","new_icon":"אייקון חדש","icon_style":"סגנון האייקון","website":"אתר","phone":"טלפון","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":"סרטון","quiz":"בוחן","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":"צבעים","theme":"צבעי מותג","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":"צריכים עוגן? לחצו פה","drag_anchor_to_canvas":"גררו עוגן לבלוק","drag_anchor_hint":"שחררו על הבלוק שאליו הקישור אמור לקפוץ. שום דבר לא נוסף לעיצוב — הבלוק פשוט מקבל סימון שאפשר ללחוץ עליו כדי לשנות שם או להסיר.","attach_anchor_to_block":"חברו עוגן כאן","drop_anchor_on_a_block":"שחררו על בלוק","anchor_link_to":"קופץ לעוגן הזה — לחצו כדי לעבור אליו","anchor_link_missing":"העוגן הזה כבר לא קיים — הקישור לא מוביל לשום מקום","select_anchor":"בחרו עוגן","no_anchors_yet":"אין עדיין עוגנים","anchor_help_title":"עכשיו חברו אליו קישור","anchor_help_step_1":"בחרו כפתור, טקסט או תמונה.","anchor_help_step_2":"פתחו את הגדרות הקישור ובחרו \\"עוגן\\".","anchor_help_step_3":"בחרו את השם הזה:","anchor_help_got_it":"הבנתי","anchor_placement":"היכן הקפיצה נעצרת","anchor_placement_start":"למעלה","anchor_placement_center":"באמצע","anchor_placement_end":"למטה","anchor_placement_form":"טופס","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":"תפריט אלמנטים, גררו את האלמנט לצד אלמנט, התקרבו לפינה כדי לפתוח כתא חדש, או פשוט מתחת הבלוק ליצירת בלוק חדש","elements_menu:search_placeholder":"חיפוש אלמנט…","elements_menu:no_results":"לא נמצאו אלמנטים התואמים לחיפוש.","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":"הוספת תמונה","dimensions":"מידות","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:problem":"הבעיה","sections_cat:solution":"הפתרון","sections_cat:about":"אודות","sections_cat:services":"שירותים","sections_cat:pricing":"מחירון","sections_cat:guarantee":"אחריות","sections_cat:team":"צוות","sections_cat:testimonials":"המלצות","sections_cat:offer":"ההצעה ובונוסים","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‎ הופך ל‑←. ההגדרה חלה על כל רכיבי הטקסט בעיצוב.","smart_change_undo_delete":"לביטול הקישו Delete","smart_change_undo_backspace":"לביטול הקישו Backspace","smart_change_turn_off":"כיבוי","lineHeight":"גובה שורה","two images":"שתי תמונות","heading 1":"כותרת גדולה","heading 2":"כותרת בינונית","heading 3":"כותרת קטנה","bullets list":"רשימת בולטים","bulletItem1":"היתרון הראשון של המוצר שלכם","bulletItem2":"יתרון נוסף שכדאי להדגיש","bulletItem3":"סיבה שלישית לבחור בכם","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":"צבעים אחרונים","brand_colors":"צבעי המותג","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":"רוחב מקסימלי","reset_styling":"איפוס עיצוב","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":"הצג את הרכיב במכשירים","video_timing":"תזמון לפי הסרטון","show_after_watching":"להציג אחרי צפייה של","of_the_video":"מהסרטון","show_after_hint":"התלמידים יראו את זה אחרי שצפו בחלק הזה. דילוג קדימה לא נחשב.","shows_at":"מופיע אחרי","reverse_order_on_desktop":"סדר עמודות הפוך במחשב","reverse_order_on_mobile":"סדר עמודות הפוך במובייל","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","publishing_your_site":"מפרסמים את האתר…","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":"עריכת שדה","saving":"שומר...","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":"הוספה והסרה מרשימת דיוור","unsubscribe":"קישור הסרה מרשימת תפוצה","unsubscribe_explain":"קישור זה יסיר את הנמען מכל רשימות התפוצה שלכם. עמוד ההסרה נוצר אוטומטית עבור כל נמען בעת שליחת המייל.","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":"אינטראקציות","which_menu_item":"איזה פריט?","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":"כדי לפתוח פופאפ, בחרו כפתור ובחרו את הפופאפ הזה כפעולה שלו.","duplicate_popup":"שכפול פופאפ","copy_suffix":"עותק","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":"תפריט אוטומציות","link_automations_title":"קישורים מיוחדים","automation_desc_mailing_list":"מי שלוחץ יתווסף או יוסר מרשימות הדיוור שלכם.","automation_desc_unsubscribe":"מי שלוחץ יוסר מרשימת התפוצה שלכם.","selected":"נבחרו","automation_link_preview":"קישור אוטומציה","apply_automation":"החל אוטומציה","sidebarMenu_page_business":"Business AI","sidebarMenu_transfer_data":"העברת נתונים","sidebarMenu_mcp_connection":"חיבור MCP","sidebarMenu_import_html":"ייבוא HTML","htmlImport_title":"ייבוא HTML","htmlImport_desc":"יש לכם ניוזלטר שקיים במקום אחר? מייבאים אותו לכאן והוא הופך לתוכן רגיל שאפשר לערוך.","htmlImport_paste_card_heading":"הדבקת קוד HTML","htmlImport_paste_card_desc":"העתיקו את קוד הניוזלטר והדביקו אותו כאן.","htmlImport_url_card_heading":"ייבוא מכתובת דף","htmlImport_url_card_desc":"הדביקו קישור לניוזלטר או לדף שפורסם ברשת.","htmlImport_dest_title":"לאן ייכנס התוכן?","htmlImport_error_empty_html":"קודם מדביקים את קוד ה-HTML","htmlImport_error_empty_url":"קודם מזינים את כתובת הדף","htmlImport_done_appended":"האזורים המיובאים נוספו מתחת לתוכן הקיים.","htmlImport_done_replaced":"הניוזלטר מכיל עכשיו את התוכן המיובא.","htmlImport_warnings_title":"התאמות שבוצעו בייבוא","htmlImport_import_another":"ייבוא נוסף","htmlImport_done_cta":"סיום","htmlImport_mode_append":"הוספה מתחת לתוכן הקיים","htmlImport_mode_replace":"החלפת כל התוכן","htmlImport_submit":"ייבוא","htmlImport_loading":"מייבאים...","htmlImport_loaded":"הייבוא הושלם","htmlImport_error_generic":"הייבוא נכשל. בדקו את הקוד או הכתובת ונסו שוב.","htmlImport_error_network":"לא הצלחנו להתחבר לשירות הייבוא. בדקו שהשירות פעיל ושהכתובת הזאת מורשית.","htmlImport_replace_confirm_title":"להחליף את כל התוכן?","htmlImport_replace_confirm_message":"התוכן הנוכחי של הניוזלטר יוחלף בתוכן המיובא. אי אפשר לבטל את הפעולה.","htmlImport_replace_confirm_cta":"החלפה","sidebarMenu_coming_soon":"בקרוב","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":"סגנון תמונות","memory":"זיכרון","mem_title":"זיכרון העוזר","mem_intro":"מה שהעוזר זוכר עליכם. אפשר לערוך או למחוק כל שורה.","mem_group_business":"על העסק (כל הדפים)","mem_group_page":"על הדף הזה","mem_source_ai":"מהצ׳אט","mem_source_user":"נוסף על ידכם","mem_edit":"עריכה","mem_delete":"מחיקה","mem_save":"שמירה","mem_cancel":"ביטול","mem_empty_group":"העוזר עוד לא זכר כאן כלום. הוא שומר דברים חשובים בזמן השיחה.","mem_too_long":"עד {limit} תווים.","mem_error":"לא הצלחנו לטעון את הזיכרון.","mem_retry":"נסו שוב","mem_no_token":"צריך להתחבר כדי לראות מה העוזר זוכר.","mem_action_failed":"הפעולה לא הצליחה. נסו שוב.","email_compatibility":"תאימות לאימייל","layout_behavior":"פריסה והתנהגות","text_ai_title":"עריכה עם AI","text_ai_placeholder":"כתבו לי איך לשנות את הטקסט…","text_ai_send":"שליחה","text_ai_thinking":"עובד…","text_ai_keep_length":"שמור על האורך","text_ai_scope_selection":"קטע מסומן","text_ai_scope_element":"כל הטקסט","text_ai_error":"משהו השתבש. נסו שוב.","text_ai_empty":"בקשו ממני לשפר, לקצר או לנסח מחדש את הטקסט.","text_ai_action_improve":"שיפור","text_ai_action_shorten":"קיצור","text_ai_action_lengthen":"הרחבה","text_ai_action_grammar":"תיקון שגיאות","text_ai_action_tone":"טון חם יותר","text_ai_prompt_improve":"שפר את הטקסט הזה — שיהיה ברור ומשכנע יותר, בלי לשנות את המשמעות.","text_ai_prompt_shorten":"קצר את הטקסט הזה ותהפוך אותו לתמציתי יותר, בלי לאבד את העיקר.","text_ai_prompt_lengthen":"הרחב את הטקסט הזה עם עוד קצת פירוט וזרימה.","text_ai_prompt_grammar":"תקן שגיאות כתיב ודקדוק. שמור על הניסוח והמשמעות.","text_ai_prompt_tone":"הפוך את הטון לחם וידידותי יותר.","playback":"נגינה","showControls":"הצג פקדי נגן","playInline":"נגן בתוך העמוד במובייל","volume":"עוצמת קול","autoplayMutedInfo":"דפדפנים מאפשרים הפעלה אוטומטית רק כשהסרטון מושתק.","on_the_video":"על הסרטון","moment_button":"כפתור","add_button":"+ כפתור","at_time":"בזמן","button_text":"טקסט הכפתור","moments_hint":"מופיע על הסרטון בזמן שלו.","needs_text":"חסר טקסט","needs_link":"חסר קישור","moment_question":"שאלה","add_question":"+ שאלה","answers_pick_right":"תשובות (סמנו את הנכונה)","right_answer":"התשובה הנכונה","answer":"תשובה","add_answer":"+ תשובה","needs_question":"חסרה שאלה","needs_answers":"חסרות 2 תשובות","needs_right_answer":"סמנו תשובה נכונה","ask-ai":"שאלו את ה-AI שלכם","content":"תוכן","engines":"מנועי AI","ask_ai_prompt":"הפרומפט","ask_ai_placeholders_hint":"אפשר להשתמש ב-{{pageTitle}}, {{pageUrl}}, {{pageDescription}} ו-{{businessName}}: הם יתמלאו אוטומטית כשהמבקר ילחץ.","ask_ai_prompt_too_long":"הפרומפט ארוך. חלק ממנועי ה-AI חותכים קישורים ארוכים מאוד, אז כדאי לקצר.","ask_ai_engines":"אילו מנועים להציג","ask_ai_variant":"צורה","ask_ai_variant_dot":"עיגול","ask_ai_variant_pill":"כפתור עם שם","ask_ai_variant_plain":"אייקון בלבד","ask_ai_leading_text":"טקסט לפני האייקונים","ask_ai_brand_colors":"בצבעי המותג של כל מנוע","ask_ai_default_prompt":"אני מתלבט לגבי {{pageTitle}} של {{businessName}} ורוצה להבין אם זה באמת מתאים לי.\\nאשמח שתעזור לי לבדוק את זה לפי המידע שכבר קיים ברשת, וגם לפי מה שאתה כבר יודע עליי משיחות קודמות.\\n\\nקישור לעמוד: {{pageUrl}}\\n\\nתן לי תשובה תמציתית ומאוזנת שתכלול: למי זה מתאים, למי פחות, ומה כדאי לדעת מראש לפני שמחליטים.\\nהעדף מקורות עצמאיים על פני חומר שיווקי. אם חסר לך פרט מהותי כדי להעריך את ההתאמה, שאל אותי שאלה קצרה אחת בלבד, ואל תמשיך מעבר לכך.","ask_ai_external_notice":"לתשומת לבכם: האייקונים מוציאים את המבקר מהאתר. לחיצה פותחת שיחה באתר ה-AI עצמו, בלשונית חדשה, עם הפרומפט שכתבתם כבר בפנים.","text_before":"טקסט לפני","text_after":"טקסט אחרי","edit_link":"עריכת קישור","fit":"התאמה","cover":"מילוי","contain":"הכלה","focus":"נקודת מיקוד","no_repeat":"ללא חזרה","repeat_x":"חזרה לרוחב","repeat_y":"חזרה לגובה","scroll_behavior":"גלילה","normal_scroll":"רגילה","parallax":"פרלקס","parallax_mobile_hint":"פרלקס לא נתמך ב-iOS ועלול לקפוץ באנדרואיד. במובייל התצוגה תחזור לגלילה רגילה.","blur":"טשטוש","brightness":"בהירות","imageUrl":"קישור לתמונה","image_url_not_a_file":"הקישור הזה לא נראה כמו קישור ישיר לקובץ תמונה (‎.jpg,‏ ‎.png,‏ ‎.webp‎). אם הרקע נשאר ריק, פתחו את התמונה עצמה והעתיקו את הקישור שלה.","background_email_hint":"התאמה, נקודת מיקוד וחזרה נכתבות למייל כ-CSS ועובדות ב-Apple Mail, ב-iOS ובג\'ימייל. אאוטלוק ל-Windows תמיד ממלא את השטח ומתעלם מהן.","preflight_title":"בדיקות AI","preflight_checking":"בודקים את המייל…","preflight_found_breaking":"מצאנו {count} בעיות שישברו את המייל בתיבות הדואר","preflight_fixing_breaking":"מתקנים אותן בשבילכם…","preflight_fixed_breaking":"תיקנו {count} בעיות","preflight_auto_fixed":"תיקנו לבד {count} בעיות שהיו שוברות את המייל בתיבות הדואר. אפשר לבטל עם \\"בטל\\".","preflight_ai_note":"טעויות קורות לכולם, זה הזמן לתקן אותן.","preflight_analyzing":"מנתחים את המייל…","preflight_only_inbox":"רואים רק בתיבת הדואר","preflight_only_phone":"רואים רק בטלפון","preflight_only_shows_hint":"בעורך זה נראה תקין, אבל כך הנמענים יראו את זה.","preflight_show":"הראה לי","preflight_back":"חזרה לעריכה","preflight_continue":"מעולה, ממשיכים!","preflight_continue_anyway":"להמשיך בכל מקרה","preflight_col-grid":"העמודות בשורה הזו לא מסודרות נכון, ולכן הן ייראו שבורות אצל הנמענים.","preflight_fix_col-grid":"תקן לי","preflight_wider-than-container":"הפריט הזה רחב מהמקום שיש לו, ולכן בטלפון הוא יחרוג מהמסך.","preflight_fix_wider-than-container":"תקן לי","preflight_fixed-without-max":"הפריט הזה ברוחב קבוע, ולכן בטלפון הוא יחרוג מהמסך.","preflight_fix_fixed-without-max":"תקן לי","preflight_block-too-wide":"השורה הזו רחבה מדי לחלק מתוכנות הדואר, והנמענים יצטרכו לגלול הצידה.","preflight_fix_block-too-wide":"תקן לי","preflight_cramped-columns":"בטלפון העמודות בשורה הזו יהיו צרות מדי לקריאה.","preflight_fix_cramped-columns":"תקן לי","preflight_button-no-link":"לכפתור הזה אין קישור, ולחיצה עליו לא תוביל לשום מקום.","preflight_placeholder-image":"זו עדיין תמונת דוגמה. כדאי להחליף אותה בתמונה שלכם.","preflight_social-no-url":"לחלק מאייקוני הרשתות החברתיות אין קישור.","preflight_gmail-clip":"המייל ארוך מדי לג\'ימייל: ג\'ימייל יציג רק את החלק העליון, והנמענים לא יראו את הסוף, כולל קישור ההסרה. כדאי לקצר אותו או לפצל לשני מיילים.","preflight_gmail-clip-near":"המייל קרוב לאורך המקסימלי שג\'ימייל מציג במלואו. אם תוסיפו עוד תוכן, הוא עלול להיחתך.","preflight_low-contrast":"קשה לקרוא את הטקסט הזה: הצבע שלו קרוב מדי לצבע הרקע.","preflight_ai-leftover-alt":"התיאור הנסתר של התמונה (למי שמשתמש בקורא מסך) נראה כמו טקסט שנשאר מה-AI.","preflight_fix_ai-leftover-alt":"תקן לי","preflight_group_mobile":"נשבר במובייל","preflight_group_missing":"חסר או שבור","preflight_group_look":"כדאי לבדוק","preflight_fix_group":"תקן הכל ({count})","preflight_fixing":"מתקן…","preflight_fixed_count":"תוקנו {count} ✓","preflight_fix_and_continue":"תקן הכל והמשך","preflight_all_good":"לא מצאנו בעיות. המייל מוכן.","preflight_must_fix":"{count} חייבים תיקון","preflight_nothing_must_fix":"אין מה שחייב תיקון","sidebarMenu_ai_editor":"עורך AI","sidebarMenu_beta":"בטא","aiEditor_title":"עורך AI (בטא)","aiEditor_intro":"בונים את כל העמוד על ידי תיאור שלו. העמוד הוא מסמך HTML אחד, כולל פריסה, עיצוב ו-SEO, וה-AI כותב ומשנה אותו בשבילך.","aiEditor_notice_heading":"כרגע העריכה היא ב-AI בלבד","aiEditor_notice_body":"במצב הזה אי אפשר ללחוץ על העמוד ולערוך אותו ידנית. מצביעים על חלק בעמוד ומבקשים מה-AI לשנות אותו.","aiEditor_notice_soon":"עריכה ידנית במצב עורך AI בדרך.","aiEditor_state_on":"עורך AI פועל.","aiEditor_turn_on":"הבנתי, הפעל עורך AI","aiEditor_turn_off":"כבה עורך AI","kit_role_heading":"כותרת","kit_role_text":"טקסט","kit_role_image":"תמונה","kit_role_link":"קישור","kit_role_button":"כפתור","kit_role_list":"רשימה","kit_role_listItem":"פריט ברשימה","kit_role_icon":"אייקון","kit_role_group":"קבוצה","kit_role_section":"מקטע","kit_tab_design":"עיצוב","kit_tab_advanced":"מתקדם","kit_empty_title":"בלוק מיובא","kit_empty_hint":"לחצו על טקסט כלשהו בעמוד כדי לערוך אותו. לחצו על תמונה כדי להחליף אותה.","kit_edit_hint":"אפשר להקליד ישירות על העמוד. סמנו מילים להדגשה, לקישור ולצבע.","kit_image_source":"כתובת התמונה","kit_image_alt":"תיאור לקוראי מסך","kit_link_url":"מוביל אל","kit_link_hint":"לחצו על המילים בעמוד כדי לשנות אותן.","kit_text_color":"צבע","kit_text_size":"גודל","kit_text_weight":"עובי","kit_text_align":"יישור","kit_background":"רקע","kit_padding":"ריווח פנימי","kit_margin":"ריווח חיצוני","kit_radius":"עיגול פינות","kit_border":"מסגרת","kit_group_text":"טקסט","kit_group_box":"תיבה","kit_duplicate":"שכפול","kit_delete":"מחיקה","kit_move_up":"הזזה למעלה","kit_move_down":"הזזה למטה","kit_select_parent":"בחירת מה שמכיל את זה","kit_classes":"מחלקות CSS","kit_classes_hint":"מתקדם. שינוי כאן עשוי לשנות את עיצוב הבלוק.","kit_edits_none":"עדיין אין שינויים.","kit_edits_some":"שינויים נשמרו. העיצוב המקורי נשמר, כך ששום דבר שכתבתם לא יאבד אם הבלוק יעוצב מחדש.","kit_tab_block":"בלוק","kit_pick_hint":"העבירו את העכבר על הבלוק ולחצו על כל חלק שתרצו. הקנבס מראה על מה אתם מצביעים.","kit_ask_hint":"כתבו ל-AI מה לשנות בחלק הזה. לדוגמה: לקצר את הטקסט, להחליף צבע, להחליף תמונה.","kit_ask_ai":"בקשו מה-AI לשנות","kit_open_chat":"פתיחת צ\'אט AI","kit_clear_selection":"ביטול הבחירה","kit_menu_name":"HTML חופשי","kit_menu_sendmsg_header":"הדר של sendmsg","kit_menu_sendmsg_hero":"הירו של sendmsg","kit_scaled_to_fit":"מוצג בגודל","kit_scaled_suffix":"כדי להתאים לרוחב העמוד. בפרסום יופיע בגודל מלא.","pastePage_title":"הדבקת עמוד","pastePage_intro":"הדביקו את ה-HTML של עמוד שלם והוא ייפתח בדיוק כפי שעוצב. סקריפטים מוסרים, כל השאר נשמר.","pastePage_html_label":"ה-HTML של העמוד","pastePage_html_placeholder":"הדביקו הכל, החל מ-<!doctype html>","pastePage_url_label":"מאיפה העמוד הזה? (רשות)","pastePage_url_hint":"רוב העמודים מפנים לתמונות ולגיליונות הסגנון שלהם בקישורים יחסיים. הזינו את הכתובת שממנה העתקתם והם ימשיכו לעבוד.","pastePage_submit":"פתחו בעורך AI","pastePage_mode_hint":"פעולה זו מפעילה את מצב עורך AI, שבו משנים את העמוד בבקשה ולא ביד.","pastePage_error_empty":"הדביקו קודם את ה-HTML של העמוד.","pastePage_file_button":"או לבחור קובץ HTML","pastePage_error_not_html":"הקובץ הזה אינו דף HTML. בחרו קובץ HTML.","pastePage_error_too_big":"הקובץ גדול מדי לפתיחה (עד 5MB).","pastePage_error_read":"לא הצלחנו לקרוא את הקובץ. נסו שוב, או הדביקו את ה-HTML שלו.","wordpress-posts":"פוסטים מוורדפרס","wordpress":"וורדפרס","video_paste_link":"הדביקו קישור לסרטון","video_link_sources":"YouTube, Vimeo או קובץ MP4"}')},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(91009),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(78865),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(42608),A={};A.setAttributes=p(),A.insert=c().bind(null,"head"),A.domAPI=s(),A.insertStyleElement=u();o()(y.A,A);const w=y.A&&y.A.locals?y.A.locals:void 0;var x=a(8330),v=a(52296);console.log("--\x3e Beta version",x.rE,"🚀");const k=t=>(0,n.A)("div",{style:t.style,className:(0,v.A)(w.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-sans)",fontSize:"13px"}},"Powered by"),(0,n.A)("svg",{className:w.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:w.dot})))));var C=a(25725),_={};_.setAttributes=p(),_.insert=c().bind(null,"head"),_.domAPI=s(),_.insertStyleElement=u();o()(C.A,_);const E=C.A&&C.A.locals?C.A.locals:void 0;var S=a(59929),M=a(49858);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;"
2771
2771
  width="${this.width}"
2772
2772
  height="${this.height}"
2773
2773
  xmlns="http://www.w3.org/2000/svg"