@myissue/vue-website-page-builder 3.2.84 → 3.2.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +70 -13
- package/dist/vue-website-page-builder.css +1 -1
- package/dist/vue-website-page-builder.js +5081 -5081
- package/dist/vue-website-page-builder.umd.cjs +34 -34
- package/package.json +1 -1
- package/src/tailwind-safelist.html +3 -0
- package/src/utils/builder/compiledCSS.ts +0 -3215
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
(function(G,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(G=typeof globalThis<"u"?globalThis:G||self,s(G.VueWebsitePageBuilder={},G.Vue))})(this,function(G,s){"use strict";var Z6=Object.defineProperty;var Dm=G=>{throw TypeError(G)};var $6=(G,s,Pe)=>s in G?Z6(G,s,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):G[s]=Pe;var ae=(G,s,Pe)=>$6(G,typeof s!="symbol"?s+"":s,Pe),Im=(G,s,Pe)=>s.has(G)||Dm("Cannot "+Pe);var xn=(G,s,Pe)=>(Im(G,s,"read from private field"),Pe?Pe.call(G):s.get(G)),bo=(G,s,Pe)=>s.has(G)?Dm("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(G):s.set(G,Pe);var Z=(G,s,Pe)=>(Im(G,s,"access private method"),Pe);var K,me,Lm,Rm,ta,ra,oa,zm,_m,na,Fm,jm,Dl,Hm;function Pe(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,o.get?o:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const _l=Pe(s),vn={backgroundColorVariables:["none","bg-white","bg-black","bg-slate-50","bg-slate-100","bg-slate-200","bg-slate-300","bg-slate-400","bg-slate-500","bg-slate-600","bg-slate-700","bg-slate-800","bg-slate-900","bg-gray-50","bg-gray-100","bg-gray-200","bg-gray-300","bg-gray-400","bg-gray-500","bg-gray-600","bg-gray-700","bg-gray-800","bg-gray-900","bg-zinc-50","bg-zinc-100","bg-zinc-200","bg-zinc-300","bg-zinc-400","bg-zinc-500","bg-zinc-600","bg-zinc-700","bg-zinc-800","bg-zinc-900","bg-neutral-50","bg-neutral-100","bg-neutral-200","bg-neutral-300","bg-neutral-400","bg-neutral-500","bg-neutral-600","bg-neutral-700","bg-neutral-800","bg-neutral-900","bg-stone-50","bg-stone-100","bg-stone-200","bg-stone-300","bg-stone-400","bg-stone-500","bg-stone-600","bg-stone-700","bg-stone-800","bg-stone-900","bg-red-50","bg-red-100","bg-red-200","bg-red-300","bg-red-400","bg-red-500","bg-red-600","bg-red-700","bg-red-800","bg-red-900","bg-orange-50","bg-orange-100","bg-orange-200","bg-orange-300","bg-orange-400","bg-orange-500","bg-orange-600","bg-orange-700","bg-orange-800","bg-orange-900","bg-amber-50","bg-amber-100","bg-amber-200","bg-amber-300","bg-amber-400","bg-amber-500","bg-amber-600","bg-amber-700","bg-amber-800","bg-amber-900","bg-yellow-50","bg-yellow-100","bg-yellow-200","bg-yellow-300","bg-yellow-400","bg-yellow-500","bg-yellow-600","bg-yellow-700","bg-yellow-800","bg-yellow-900","bg-lime-50","bg-lime-100","bg-lime-200","bg-lime-300","bg-lime-400","bg-lime-500","bg-lime-600","bg-lime-700","bg-lime-800","bg-lime-900","bg-green-50","bg-green-100","bg-green-200","bg-green-300","bg-green-400","bg-green-500","bg-green-600","bg-green-700","bg-green-800","bg-green-900","bg-emerald-50","bg-emerald-100","bg-emerald-200","bg-emerald-300","bg-emerald-400","bg-emerald-500","bg-emerald-600","bg-emerald-700","bg-emerald-800","bg-emerald-900","bg-teal-50","bg-teal-100","bg-teal-200","bg-teal-300","bg-teal-400","bg-teal-500","bg-teal-600","bg-teal-700","bg-teal-800","bg-teal-900","bg-cyan-50","bg-cyan-100","bg-cyan-200","bg-cyan-300","bg-cyan-400","bg-cyan-500","bg-cyan-600","bg-cyan-700","bg-cyan-800","bg-cyan-900","bg-sky-50","bg-sky-100","bg-sky-200","bg-sky-300","bg-sky-400","bg-sky-500","bg-sky-600","bg-sky-700","bg-sky-800","bg-sky-900","bg-blue-50","bg-blue-100","bg-blue-200","bg-blue-300","bg-blue-400","bg-blue-500","bg-blue-600","bg-blue-700","bg-blue-800","bg-blue-900","bg-indigo-50","bg-indigo-100","bg-indigo-200","bg-indigo-300","bg-indigo-400","bg-indigo-500","bg-indigo-600","bg-indigo-700","bg-indigo-800","bg-indigo-900","bg-violet-50","bg-violet-100","bg-violet-200","bg-violet-300","bg-violet-400","bg-violet-500","bg-violet-600","bg-violet-700","bg-violet-800","bg-violet-900","bg-purple-50","bg-purple-100","bg-purple-200","bg-purple-300","bg-purple-400","bg-purple-500","bg-purple-600","bg-purple-700","bg-purple-800","bg-purple-900","bg-fuchsia-50","bg-fuchsia-100","bg-fuchsia-200","bg-fuchsia-300","bg-fuchsia-400","bg-fuchsia-500","bg-fuchsia-600","bg-fuchsia-700","bg-fuchsia-800","bg-fuchsia-900","bg-pink-50","bg-pink-100","bg-pink-200","bg-pink-300","bg-pink-400","bg-pink-500","bg-pink-600","bg-pink-700","bg-pink-800","bg-pink-900","bg-rose-50","bg-rose-100","bg-rose-200","bg-rose-300","bg-rose-400","bg-rose-500","bg-rose-600","bg-rose-700","bg-rose-800","bg-rose-900"],textColorVariables:["none","text-white","text-black","text-slate-50","text-slate-100","text-slate-200","text-slate-300","text-slate-400","text-slate-500","text-slate-600","text-slate-700","text-slate-800","text-slate-900","text-gray-50","text-gray-100","text-gray-200","text-gray-300","text-gray-400","text-gray-500","text-gray-600","text-gray-700","text-gray-800","text-gray-900","text-zinc-50","text-zinc-100","text-zinc-200","text-zinc-300","text-zinc-400","text-zinc-500","text-zinc-600","text-zinc-700","text-zinc-800","text-zinc-900","text-neutral-50","text-neutral-100","text-neutral-200","text-neutral-300","text-neutral-400","text-neutral-500","text-neutral-600","text-neutral-700","text-neutral-800","text-neutral-900","text-stone-50","text-stone-100","text-stone-200","text-stone-300","text-stone-400","text-stone-500","text-stone-600","text-stone-700","text-stone-800","text-stone-900","text-red-50","text-red-100","text-red-200","text-red-300","text-red-400","text-red-500","text-red-600","text-red-700","text-red-800","text-red-900","text-orange-50","text-orange-100","text-orange-200","text-orange-300","text-orange-400","text-orange-500","text-orange-600","text-orange-700","text-orange-800","text-orange-900","text-amber-50","text-amber-100","text-amber-200","text-amber-300","text-amber-400","text-amber-500","text-amber-600","text-amber-700","text-amber-800","text-amber-900","text-yellow-50","text-yellow-100","text-yellow-200","text-yellow-300","text-yellow-400","text-yellow-500","text-yellow-600","text-yellow-700","text-yellow-800","text-yellow-900","text-lime-50","text-lime-100","text-lime-200","text-lime-300","text-lime-400","text-lime-500","text-lime-600","text-lime-700","text-lime-800","text-lime-900","text-green-50","text-green-100","text-green-200","text-green-300","text-green-400","text-green-500","text-green-600","text-green-700","text-green-800","text-green-900","text-emerald-50","text-emerald-100","text-emerald-200","text-emerald-300","text-emerald-400","text-emerald-500","text-emerald-600","text-emerald-700","text-emerald-800","text-emerald-900","text-teal-50","text-teal-100","text-teal-200","text-teal-300","text-teal-400","text-teal-500","text-teal-600","text-teal-700","text-teal-800","text-teal-900","text-cyan-50","text-cyan-100","text-cyan-200","text-cyan-300","text-cyan-400","text-cyan-500","text-cyan-600","text-cyan-700","text-cyan-800","text-cyan-900","text-sky-50","text-sky-100","text-sky-200","text-sky-300","text-sky-400","text-sky-500","text-sky-600","text-sky-700","text-sky-800","text-sky-900","text-blue-50","text-blue-100","text-blue-200","text-blue-300","text-blue-400","text-blue-500","text-blue-600","text-blue-700","text-blue-800","text-blue-900","text-indigo-50","text-indigo-100","text-indigo-200","text-indigo-300","text-indigo-400","text-indigo-500","text-indigo-600","text-indigo-700","text-indigo-800","text-indigo-900","text-violet-50","text-violet-100","text-violet-200","text-violet-300","text-violet-400","text-violet-500","text-violet-600","text-violet-700","text-violet-800","text-violet-900","text-purple-50","text-purple-100","text-purple-200","text-purple-300","text-purple-400","text-purple-500","text-purple-600","text-purple-700","text-purple-800","text-purple-900","text-fuchsia-50","text-fuchsia-100","text-fuchsia-200","text-fuchsia-300","text-fuchsia-400","text-fuchsia-500","text-fuchsia-600","text-fuchsia-700","text-fuchsia-800","text-fuchsia-900","text-pink-50","text-pink-100","text-pink-200","text-pink-300","text-pink-400","text-pink-500","text-pink-600","text-pink-700","text-pink-800","text-pink-900","text-rose-50","text-rose-100","text-rose-200","text-rose-300","text-rose-400","text-rose-500","text-rose-600","text-rose-700","text-rose-800","text-rose-900"]},kn={opacities:["none","opacity-0","opacity-5","opacity-10","opacity-20","opacity-25","opacity-30","opacity-40","opacity-50","opacity-60","opacity-70","opacity-75","opacity-80","opacity-90","opacity-95","opacity-100"],backgroundOpacities:["none","bg-opacity-0","bg-opacity-5","bg-opacity-10","bg-opacity-20","bg-opacity-25","bg-opacity-30","bg-opacity-40","bg-opacity-50","bg-opacity-60","bg-opacity-70","bg-opacity-75","bg-opacity-80","bg-opacity-90","bg-opacity-95","bg-opacity-100"]},En={fontBase:["base:none","text-xs","text-sm","text-base","text-lg","text-xl","text-2xl","text-3xl","text-4xl","text-5xl","text-6xl","text-7xl","text-8xl","text-9xl"],fontDesktop:["lg:none","lg:text-xs","lg:text-sm","lg:text-base","lg:text-lg","lg:text-xl","lg:text-2xl","lg:text-3xl","lg:text-4xl","lg:text-5xl","lg:text-6xl","lg:text-7xl","lg:text-8xl","lg:text-9xl"],fontTablet:["md:none","md:text-xs","md:text-sm","md:text-base","md:text-lg","md:text-xl","md:text-2xl","md:text-3xl","md:text-4xl","md:text-5xl","md:text-6xl","md:text-7xl","md:text-8xl","md:text-9xl"],fontMobile:["sm:none","sm:text-xs","sm:text-sm","sm:text-base","sm:text-lg","sm:text-xl","sm:text-2xl","sm:text-3xl","sm:text-4xl","sm:text-5xl","sm:text-6xl","sm:text-7xl","sm:text-8xl","sm:text-9xl"]},fa={fontWeight:["none","font-thin","font-extralight","font-light","font-normal","font-medium","font-medium","font-bold","font-extrabold","font-black"],fontFamily:["none","font-sans","font-serif","font-mono"],fontStyle:["none","italic","non-italic"]},_t={verticalPadding:["none","py-0","py-0.5","py-1","py-1.5","py-2","py-2.5","py-3","py-3.5","py-4","py-5","py-6","py-7","py-8","py-9","py-10","py-11","py-12","py-14","py-16","py-20","py-24","py-28","py-32","py-36","py-40","py-44","py-48","py-52","py-56","py-60","py-64","py-72","py-80","py-96"],horizontalPadding:["none","px-0","px-0.5","px-1","px-1.5","px-2","px-2.5","px-3","px-3.5","px-4","px-5","px-6","px-7","px-8","px-9","px-10","px-11","px-12","px-14","px-16","px-20","px-24","px-28","px-32","px-36","px-40","px-44","px-48","px-52","px-56","px-60","px-64","px-72","px-80","px-96"],verticalMargin:["none","my-0","my-0.5","my-1","my-1.5","my-2","my-2.5","my-3","my-3.5","my-4","my-5","my-6","my-7","my-8","my-9","my-10","my-11","my-12","my-14","my-16","my-20","my-24","my-28","my-32","my-36","my-40","my-44","my-48","my-52","my-56","my-60","my-64","my-72","my-80","my-96"],horizontalMargin:["none","mx-0","mx-0.5","mx-1","mx-1.5","mx-2","mx-2.5","mx-3","mx-3.5","mx-4","mx-5","mx-6","mx-7","mx-8","mx-9","mx-10","mx-11","mx-12","mx-14","mx-16","mx-20","mx-24","mx-28","mx-32","mx-36","mx-40","mx-44","mx-48","mx-52","mx-56","mx-60","mx-64","mx-72","mx-80","mx-96"]},ut={roundedGlobal:["none","rounded-sm","rounded","rounded-md","rounded-lg","rounded-xl","rounded-2xl","rounded-3xl","rounded-full"],roundedTopLeft:["none","rounded-tl-sm","rounded-tl","rounded-tl-md","rounded-tl-lg","rounded-tl-xl","rounded-tl-2xl","rounded-tl-3xl","rounded-tl-full"],roundedTopRight:["none","rounded-tr-sm","rounded-tr","rounded-tr-md","rounded-tr-lg","rounded-tr-xl","rounded-tr-2xl","rounded-tr-3xl","rounded-tr-full"],roundedBottomLeft:["none","rounded-bl-sm","rounded-bl","rounded-bl-md","rounded-bl-lg","rounded-bl-xl","rounded-bl-2xl","rounded-bl-3xl","rounded-bl-full"],roundedBottomRight:["none","rounded-br-sm","rounded-br","rounded-br-md","rounded-br-lg","rounded-br-xl","rounded-br-2xl","rounded-br-3xl","rounded-br-full"]},Ar={borderStyle:["none","border-solid","border-dashed","border-dotted","border-double","border-hidden"],borderWidth:["none","border","border-2","border-4","border-8"],borderColor:["none","border-white","border-black","border-slate-50","border-slate-100","border-slate-200","border-slate-300","border-slate-400","border-slate-500","border-slate-600","border-slate-700","border-slate-800","border-slate-900","border-gray-50","border-gray-100","border-gray-200","border-gray-300","border-gray-400","border-gray-500","border-gray-600","border-gray-700","border-gray-800","border-gray-900","border-zinc-50","border-zinc-100","border-zinc-200","border-zinc-300","border-zinc-400","border-zinc-500","border-zinc-600","border-zinc-700","border-zinc-800","border-zinc-900","border-neutral-50","border-neutral-100","border-neutral-200","border-neutral-300","border-neutral-400","border-neutral-500","border-neutral-600","border-neutral-700","border-neutral-800","border-neutral-900","border-stone-50","border-stone-100","border-stone-200","border-stone-300","border-stone-400","border-stone-500","border-stone-600","border-stone-700","border-stone-800","border-stone-900","border-red-50","border-red-100","border-red-200","border-red-300","border-red-400","border-red-500","border-red-600","border-red-700","border-red-800","border-red-900","border-orange-50","border-orange-100","border-orange-200","border-orange-300","border-orange-400","border-orange-500","border-orange-600","border-orange-700","border-orange-800","border-orange-900","border-amber-50","border-amber-100","border-amber-200","border-amber-300","border-amber-400","border-amber-500","border-amber-600","border-amber-700","border-amber-800","border-amber-900","border-yellow-50","border-yellow-100","border-yellow-200","border-yellow-300","border-yellow-400","border-yellow-500","border-yellow-600","border-yellow-700","border-yellow-800","border-yellow-900","border-lime-50","border-lime-100","border-lime-200","border-lime-300","border-lime-400","border-lime-500","border-lime-600","border-lime-700","border-lime-800","border-lime-900","border-green-50","border-green-100","border-green-200","border-green-300","border-green-400","border-green-500","border-green-600","border-green-700","border-green-800","border-green-900","border-emerald-50","border-emerald-100","border-emerald-200","border-emerald-300","border-emerald-400","border-emerald-500","border-emerald-600","border-emerald-700","border-emerald-800","border-emerald-900","border-teal-50","border-teal-100","border-teal-200","border-teal-300","border-teal-400","border-teal-500","border-teal-600","border-teal-700","border-teal-800","border-teal-900","border-cyan-50","border-cyan-100","border-cyan-200","border-cyan-300","border-cyan-400","border-cyan-500","border-cyan-600","border-cyan-700","border-cyan-800","border-cyan-900","border-sky-50","border-sky-100","border-sky-200","border-sky-300","border-sky-400","border-sky-500","border-sky-600","border-sky-700","border-sky-800","border-sky-900","border-blue-50","border-blue-100","border-blue-200","border-blue-300","border-blue-400","border-blue-500","border-blue-600","border-blue-700","border-blue-800","border-blue-900","border-indigo-50","border-indigo-100","border-indigo-200","border-indigo-300","border-indigo-400","border-indigo-500","border-indigo-600","border-indigo-700","border-indigo-800","border-indigo-900","border-violet-50","border-violet-100","border-violet-200","border-violet-300","border-violet-400","border-violet-500","border-violet-600","border-violet-700","border-violet-800","border-violet-900","border-purple-50","border-purple-100","border-purple-200","border-purple-300","border-purple-400","border-purple-500","border-purple-600","border-purple-700","border-purple-800","border-purple-900","border-fuchsia-50","border-fuchsia-100","border-fuchsia-200","border-fuchsia-300","border-fuchsia-400","border-fuchsia-500","border-fuchsia-600","border-fuchsia-700","border-fuchsia-800","border-fuchsia-900","border-pink-50","border-pink-100","border-pink-200","border-pink-300","border-pink-400","border-pink-500","border-pink-600","border-pink-700","border-pink-800","border-pink-900","border-rose-50","border-rose-100","border-rose-200","border-rose-300","border-rose-400","border-rose-500","border-rose-600","border-rose-700","border-rose-800","border-rose-900"]};let Sn;const qm=new Uint8Array(16);function Um(){if(!Sn&&(Sn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Sn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Sn(qm)}const ke=[];for(let r=0;r<256;++r)ke.push((r+256).toString(16).slice(1));function Km(r,e=0){return ke[r[e+0]]+ke[r[e+1]]+ke[r[e+2]]+ke[r[e+3]]+"-"+ke[r[e+4]]+ke[r[e+5]]+"-"+ke[r[e+6]]+ke[r[e+7]]+"-"+ke[r[e+8]]+ke[r[e+9]]+"-"+ke[r[e+10]]+ke[r[e+11]]+ke[r[e+12]]+ke[r[e+13]]+ke[r[e+14]]+ke[r[e+15]]}const Fl={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function ba(r,e,t){if(Fl.randomUUID&&!r)return Fl.randomUUID();r=r||{};const o=r.random||(r.rng||Um)();return o[6]=o[6]&15|64,o[8]=o[8]&63|128,Km(o)}const wa=function(e=200){return new Promise(t=>{setTimeout(t,e)})};class ce{constructor(e){bo(this,K);ae(this,"nextTick");ae(this,"containsPagebuilder");ae(this,"pageBuilderStateStore");ae(this,"getTextAreaVueModel");ae(this,"getLocalStorageItemName");ae(this,"getCurrentImage");ae(this,"getHyberlinkEnable");ae(this,"getComponents");ae(this,"getComponent");ae(this,"getElement");ae(this,"getNextSibling");ae(this,"getParentElement");ae(this,"getRestoredElement");ae(this,"getComponentArrayAddMethod");ae(this,"NoneListernesTags");ae(this,"delay");ae(this,"observer");ae(this,"hasStartedEditing",!1);bo(this,ta,async(e,t)=>{e.preventDefault(),e.stopPropagation();const o=document.querySelector("#pagebuilder");if(!o)return;this.pageBuilderStateStore.setMenuRight(!0);const n=o.querySelector("[selected]");n&&n.removeAttribute("selected"),t.removeAttribute("hovered"),t.setAttribute("selected",""),this.pageBuilderStateStore.setElement(t)});bo(this,ra,(e,t)=>{e.preventDefault(),e.stopPropagation();const o=document.querySelector("#pagebuilder");if(!o)return;const n=o.querySelector("[hovered]");n&&n.removeAttribute("hovered"),t.hasAttribute("selected")||t.setAttribute("hovered","")});bo(this,oa,e=>{e.preventDefault(),e.stopPropagation();const t=document.querySelector("#pagebuilder");if(!t)return;const o=t.querySelector("[hovered]");o&&o.removeAttribute("hovered")});ae(this,"addListenersToEditableElements",async()=>{const e=new WeakSet,t=document.querySelector("#pagebuilder");t&&(await s.nextTick(),await new Promise(o=>requestAnimationFrame(o)),t.querySelectorAll("section *").forEach(o=>{if(this.isEditableElement(o)&&e&&!e.has(o)){e.add(o);const n=o;n.addEventListener("click",i=>xn(this,ta).call(this,i,n)),n.addEventListener("mouseover",i=>xn(this,ra).call(this,i,n)),n.addEventListener("mouseleave",i=>xn(this,oa).call(this,i))}}))});ae(this,"handleAutoSave",async()=>{this.startEditing();const e=this.pageBuilderStateStore.getConfigPageBuilder;if(e&&e.userSettings&&typeof e.userSettings.autoSave=="boolean"&&e.userSettings.autoSave!==!1){if(this.pageBuilderStateStore.getIsSaving)return;try{this.pageBuilderStateStore.setIsSaving(!0),await this.saveComponentsLocalStorage(),await this.delay(300)}catch(t){console.error("Error trying auto save.",t)}finally{this.pageBuilderStateStore.setIsSaving(!1)}}if(e&&!e.userSettings)try{this.pageBuilderStateStore.setIsSaving(!0),await this.saveComponentsLocalStorage(),await this.delay(300)}catch(t){console.error("Error trying saving.",t)}finally{this.pageBuilderStateStore.setIsSaving(!1)}});ae(this,"handleManualSave",async()=>{this.startEditing();const e=this.pageBuilderStateStore.getConfigPageBuilder;e&&e.userSettings&&(typeof e.userSettings.autoSave=="boolean"&&!e.userSettings.autoSave||typeof e.userSettings.autoSave=="boolean"&&e.userSettings.autoSave)&&(this.pageBuilderStateStore.setIsSaving(!0),await this.saveComponentsLocalStorage(),await this.delay(300),this.pageBuilderStateStore.setIsSaving(!1)),e&&!e.userSettings&&(this.pageBuilderStateStore.setIsSaving(!0),await this.saveComponentsLocalStorage(),await this.delay(300),this.pageBuilderStateStore.setIsSaving(!1))});ae(this,"ensureTextAreaHasContent",()=>{if(!this.getElement.value||typeof this.getElement.value.innerHTML!="string")return;const e=this.getElement.value,t=e.tagName;["DIV"].includes(t)&&e.tagName.toLowerCase()!=="img"&&e.textContent&&Number(e.textContent.length)===0?(e.classList.add("h-6"),e.classList.add("bg-red-50")):(e.classList.remove("h-6"),e.classList.remove("bg-red-50"))});ae(this,"handleTextInput",async e=>{var t;typeof((t=this.getElement.value)==null?void 0:t.innerHTML)=="string"&&(typeof this.getElement.value.innerHTML=="string"&&(await this.nextTick,this.getElement.value.textContent=e,this.pageBuilderStateStore.setTextAreaVueModel(this.getElement.value.innerHTML),this.getElement.value.innerHTML=e),this.ensureTextAreaHasContent())});bo(this,na,async()=>{const e=document.querySelector("#pagebuilder");if(!e)return;const t=e.querySelector("[hovered]");t&&t.removeAttribute("hovered");const o=[];e.querySelectorAll("section[data-componentid]").forEach(n=>{o.push({html_code:n.outerHTML,id:n.getAttribute("data-componentid"),title:n.getAttribute("data-component-title")||"Untitled Component"})}),this.getLocalStorageItemName.value&&localStorage.setItem(this.getLocalStorageItemName.value,JSON.stringify({pageBuilderContentSavedAt:new Date().toISOString(),components:o})),await new Promise(n=>n())});this.nextTick=s.nextTick(),this.hasStartedEditing=!1,this.containsPagebuilder=document.querySelector("#contains-pagebuilder"),this.pageBuilderStateStore=e,this.getTextAreaVueModel=s.computed(()=>this.pageBuilderStateStore.getTextAreaVueModel),this.getLocalStorageItemName=s.computed(()=>this.pageBuilderStateStore.getLocalStorageItemName),this.getCurrentImage=s.computed(()=>this.pageBuilderStateStore.getCurrentImage),this.getHyberlinkEnable=s.computed(()=>this.pageBuilderStateStore.getHyberlinkEnable),this.getComponents=s.computed(()=>this.pageBuilderStateStore.getComponents),this.getComponent=s.computed(()=>this.pageBuilderStateStore.getComponent),this.getElement=s.computed(()=>this.pageBuilderStateStore.getElement),this.getNextSibling=s.computed(()=>this.pageBuilderStateStore.getNextSibling),this.getParentElement=s.computed(()=>this.pageBuilderStateStore.getParentElement),this.getRestoredElement=s.computed(()=>this.pageBuilderStateStore.getRestoredElement),this.getComponentArrayAddMethod=s.computed(()=>this.pageBuilderStateStore.getComponentArrayAddMethod),this.NoneListernesTags=["P","H1","H2","H3","H4","H5","H6","IFRAME","UL","OL","LI","EM","STRONG","B","A","SPAN","BLOCKQUOTE","BR"],this.delay=wa}async clearHtmlSelection(){this.pageBuilderStateStore.setComponent(null),this.pageBuilderStateStore.setElement(null),await Z(this,K,zm).call(this)}applyPageBuilderConfig(e){this.pageBuilderStateStore.applyPageBuilderConfig(e)}isEditableElement(e){return e?!this.NoneListernesTags.includes(e.tagName):!1}cloneCompObjForDOMInsertion(e){const t={...e};if(this.containsPagebuilder&&(this.getComponentArrayAddMethod.value==="unshift"||this.getComponentArrayAddMethod.value==="push")&&(this.getComponentArrayAddMethod.value==="unshift"&&this.containsPagebuilder.scrollTo({top:0,behavior:"smooth"}),this.getComponentArrayAddMethod.value==="push")){const l=this.containsPagebuilder.scrollHeight;this.containsPagebuilder.scrollTo({top:l,behavior:"smooth"})}const n=new DOMParser().parseFromString(t.html_code||"","text/html");n.querySelectorAll("*").forEach(l=>{Z(this,K,Lm).call(this,l)});const a=n.querySelector("section");return a&&(a.dataset.componentid=ba(),t.title&&(a.setAttribute("title",t.title),a.setAttribute("data-component-title",t.title)),t.id=a.dataset.componentid,t.html_code=a.outerHTML),t}handleAddClasses(e){var t,o;if(typeof e=="string"&&e!==""&&!e.includes(" ")&&!((t=this.getElement.value)!=null&&t.classList.contains(e))){const n=e.trim();(o=this.getElement.value)==null||o.classList.add(n),this.pageBuilderStateStore.setElement(this.getElement.value),this.pageBuilderStateStore.setClass(e)}}handleRemoveClasses(e){var t,o;(t=this.getElement.value)!=null&&t.classList.contains(e)&&((o=this.getElement.value)==null||o.classList.remove(e),this.pageBuilderStateStore.setElement(this.getElement.value),this.pageBuilderStateStore.removeClass(e))}handleDeleteElement(){var t,o;const e=this.getElement.value;if(e){if(!(e!=null&&e.parentNode)){this.pageBuilderStateStore.setComponent(null),this.pageBuilderStateStore.setElement(null);return}((t=e.parentElement)==null?void 0:t.tagName)!=="SECTION"&&(this.pageBuilderStateStore.setParentElement(e.parentNode),this.pageBuilderStateStore.setRestoredElement(e.outerHTML),this.pageBuilderStateStore.setNextSibling(e.nextSibling)),((o=e.parentElement)==null?void 0:o.tagName)==="SECTION"&&this.deleteSelectedComponent(),e.remove(),this.pageBuilderStateStore.setComponent(null),this.pageBuilderStateStore.setElement(null)}}async handleRestoreElement(){if(this.getRestoredElement.value&&this.getParentElement.value){const e=document.createElement("div");e.innerHTML=this.getRestoredElement.value,e.firstChild&&this.getParentElement.value&&this.getParentElement.value.insertBefore(e.firstChild,this.getNextSibling.value)}this.pageBuilderStateStore.setParentElement(null),this.pageBuilderStateStore.setRestoredElement(null),this.pageBuilderStateStore.setNextSibling(null),this.pageBuilderStateStore.setComponent(null),this.pageBuilderStateStore.setElement(null),await this.addListenersToEditableElements()}handleFontWeight(e){Z(this,K,me).call(this,e,fa.fontWeight,"setFontWeight")}handleFontFamily(e){Z(this,K,me).call(this,e,fa.fontFamily,"setFontFamily")}handleFontStyle(e){Z(this,K,me).call(this,e,fa.fontStyle,"setFontStyle")}handleVerticalPadding(e){Z(this,K,me).call(this,e,_t.verticalPadding,"setFontVerticalPadding")}handleHorizontalPadding(e){Z(this,K,me).call(this,e,_t.horizontalPadding,"setFontHorizontalPadding")}handleVerticalMargin(e){Z(this,K,me).call(this,e,_t.verticalMargin,"setFontVerticalMargin")}handleHorizontalMargin(e){Z(this,K,me).call(this,e,_t.horizontalMargin,"setFontHorizontalMargin")}handleBorderStyle(e){Z(this,K,me).call(this,e,Ar.borderStyle,"setBorderStyle")}handleBorderWidth(e){Z(this,K,me).call(this,e,Ar.borderWidth,"setBorderWidth")}handleBorderColor(e){Z(this,K,me).call(this,e,Ar.borderColor,"setBorderColor")}handleBackgroundColor(e){Z(this,K,me).call(this,e,vn.backgroundColorVariables,"setBackgroundColor")}handleTextColor(e){Z(this,K,me).call(this,e,vn.textColorVariables,"setTextColor")}handleBorderRadiusGlobal(e){Z(this,K,me).call(this,e,ut.roundedGlobal,"setBorderRadiusGlobal")}handleBorderRadiusTopLeft(e){Z(this,K,me).call(this,e,ut.roundedTopLeft,"setBorderRadiusTopLeft")}handleBorderRadiusTopRight(e){Z(this,K,me).call(this,e,ut.roundedTopRight,"setBorderRadiusTopRight")}handleBorderRadiusBottomleft(e){Z(this,K,me).call(this,e,ut.roundedBottomLeft,"setBorderRadiusBottomleft")}handleBorderRadiusBottomRight(e){Z(this,K,me).call(this,e,ut.roundedBottomRight,"setBorderRadiusBottomRight")}handleFontSize(e){if(!e||!this.getElement.value)return;let t=En.fontBase.find(p=>{var u;return(u=this.getElement.value)==null?void 0:u.classList.contains(p)});t===void 0&&(t="base:none");let o=En.fontDesktop.find(p=>{var u;return(u=this.getElement.value)==null?void 0:u.classList.contains(p)});o===void 0&&(o="lg:none");let n=En.fontTablet.find(p=>{var u;return(u=this.getElement.value)==null?void 0:u.classList.contains(p)});n===void 0&&(n="md:none");let i=En.fontMobile.find(p=>{var u;return(u=this.getElement.value)==null?void 0:u.classList.contains(p)});i===void 0&&(i="sm:none"),this.pageBuilderStateStore.setFontBase(t),this.pageBuilderStateStore.setFontDesktop(o),this.pageBuilderStateStore.setFontTablet(n),this.pageBuilderStateStore.setFontMobile(i);const a=s.computed(()=>this.pageBuilderStateStore.getFontBase),l=s.computed(()=>this.pageBuilderStateStore.getFontDesktop),d=s.computed(()=>this.pageBuilderStateStore.getFontTablet),c=s.computed(()=>this.pageBuilderStateStore.getFontMobile);e!==void 0&&this.getElement.value&&(!e.includes("sm:")&&!e.includes("md:")&&!e.includes("lg:")&&(a.value&&this.getElement.value.classList.remove(a.value),e.includes("base:none")||this.getElement.value.classList.add(e),this.pageBuilderStateStore.setFontBase(e)),e.includes("lg:")&&(l.value&&this.getElement.value.classList.remove(l.value),e.includes("lg:none")||this.getElement.value.classList.add(e),this.pageBuilderStateStore.setFontDesktop(e)),e.includes("md:")&&(d.value&&this.getElement.value.classList.remove(d.value),e.includes("md:none")||this.getElement.value.classList.add(e),this.pageBuilderStateStore.setFontTablet(e)),e.includes("sm:")&&(c.value&&this.getElement.value.classList.remove(c.value),e.includes("sm:none")||this.getElement.value.classList.add(e),this.pageBuilderStateStore.setFontMobile(e)),this.pageBuilderStateStore.setElement(this.getElement.value))}handleBackgroundOpacity(e){Z(this,K,me).call(this,e,kn.backgroundOpacities,"setBackgroundOpacity")}handleOpacity(e){Z(this,K,me).call(this,e,kn.opacities,"setOpacity")}deleteAllComponents(){this.pageBuilderStateStore.setComponents([])}deleteSelectedComponent(){if(!this.getComponents.value||!this.getComponent.value)return;const e=this.getComponents.value.findIndex(t=>{var o;return t.id===((o=this.getComponent.value)==null?void 0:o.id)});e!==-1&&(this.getComponents.value.splice(e,1),this.pageBuilderStateStore.setComponents(this.getComponents.value),this.pageBuilderStateStore.setComponent(null),this.pageBuilderStateStore.setElement(null))}reorderComponent(e){if(!this.getComponents.value||!this.getComponent.value||this.getComponents.value.length<=1)return;const t=this.getComponent.value,o=this.getComponents.value.findIndex(i=>i.id===t.id);if(o===-1)return;const n=o+e;n<0||n>=this.getComponents.value.length||(this.getComponents.value.splice(o,1),this.getComponents.value.splice(n,0,t))}ElOrFirstChildIsIframe(){var e,t,o;return((e=this.getElement.value)==null?void 0:e.tagName)==="IFRAME"||((o=(t=this.getElement.value)==null?void 0:t.firstElementChild)==null?void 0:o.tagName)==="IFRAME"}isSelectedElementValidText(){var o,n,i,a;let e=!1;const t=(o=this.getElement.value)==null?void 0:o.children;if(!(((n=this.getElement.value)==null?void 0:n.tagName)==="IMG"||((a=(i=this.getElement.value)==null?void 0:i.firstElementChild)==null?void 0:a.tagName)==="IFRAME")&&t)return Array.from(t).forEach(l=>{(l==null?void 0:l.tagName)==="IMG"||(l==null?void 0:l.tagName)==="DIV"?e=!1:e=!0}),e}previewCurrentDesign(){this.pageBuilderStateStore.setElement(null);const e=document.querySelector("#pagebuilder");if(!e)return;const t=s.ref([]);e.querySelectorAll("section:not(section section)").forEach(n=>{const i=n.querySelector("[hovered]");i&&i.removeAttribute("hovered");const a=n.querySelector("[selected]");a&&a.removeAttribute("selected"),t.value.push(n.outerHTML)});const o=JSON.stringify(t.value);this.pageBuilderStateStore.setCurrentLayoutPreview(o),t.value=[]}sanitizeForLocalStorage(e){return e.trim().toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"").replace(/-+/g,"-").replace(/^-+|-+$/g,"")}updateLocalStorageItemName(){var n,i,a;const e=this.pageBuilderStateStore.getConfigPageBuilder&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType,t=(n=this.pageBuilderStateStore.getConfigPageBuilder)==null?void 0:n.resourceData,o=(a=(i=this.pageBuilderStateStore.getConfigPageBuilder)==null?void 0:i.updateOrCreate)==null?void 0:a.formName;if(e==="create"){if(o&&o.length>0){this.pageBuilderStateStore.setLocalStorageItemName(`page-builder-create-resource-${this.sanitizeForLocalStorage(o)}`);return}this.pageBuilderStateStore.setLocalStorageItemName("page-builder-create-resource");return}if(e==="update"){if(typeof o=="string"&&o.length>0){if(t&&t!=null&&!t.title&&(!t.id||typeof t.id=="string")){this.pageBuilderStateStore.setLocalStorageItemName(`page-builder-update-resource-${this.sanitizeForLocalStorage(o)}`);return}if(t&&t!=null&&t.title&&typeof t.title=="string"&&t.title.length>0&&(!t.id||typeof t.id=="string")){this.pageBuilderStateStore.setLocalStorageItemName(`page-builder-update-resource-${this.sanitizeForLocalStorage(o)}-${this.sanitizeForLocalStorage(t.title)}`);return}if(t&&t!=null&&!t.title&&typeof t.title!="string"&&(t.id||typeof t.id=="number")){this.pageBuilderStateStore.setLocalStorageItemName(`page-builder-update-resource-${this.sanitizeForLocalStorage(o)}-${this.sanitizeForLocalStorage(String(t.id))}`);return}if(t&&t!=null&&t.title&&typeof t.title=="string"&&t.title.length>0&&(t.id||typeof t.id=="number")){this.pageBuilderStateStore.setLocalStorageItemName(`page-builder-update-resource-${this.sanitizeForLocalStorage(o)}-${this.sanitizeForLocalStorage(t.title)}-${this.sanitizeForLocalStorage(String(t.id))}`);return}}if(!o||typeof o=="string"&&o.length===0){if(t&&t!=null&&!t.title&&(!t.id||typeof t.id=="string")){this.pageBuilderStateStore.setLocalStorageItemName("page-builder-update-resource");return}if(t&&t!=null&&t.title&&typeof t.title=="string"&&t.title.length>0&&(!t.id||typeof t.id=="string")){this.pageBuilderStateStore.setLocalStorageItemName(`page-builder-update-resource-${this.sanitizeForLocalStorage(t.title)}`);return}if(t&&t!=null&&!t.title&&typeof t.title!="string"&&(t.id||typeof t.id=="number")){this.pageBuilderStateStore.setLocalStorageItemName(`page-builder-update-resource-${this.sanitizeForLocalStorage(String(t.id))}`);return}if(t&&t!=null&&t.title&&typeof t.title=="string"&&t.title.length>0&&(t.id||typeof t.id=="number")){this.pageBuilderStateStore.setLocalStorageItemName(`page-builder-update-resource-${this.sanitizeForLocalStorage(t.title)}-${this.sanitizeForLocalStorage(String(t.id))}`);return}}}}async saveComponentsLocalStorage(){await this.nextTick,await xn(this,na).call(this)}async removeItemComponentsLocalStorage(){await this.nextTick,this.getLocalStorageItemName.value&&localStorage.removeItem(this.getLocalStorageItemName.value)}deleteOldPageBuilderLocalStorage(){if(this.pageBuilderStateStore.getConfigPageBuilder&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate&&typeof this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType=="string"&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType==="update"){let e=0;const t=[],o=new Date(Date.now()-14*24*60*60*1e3);for(let n=0;n<localStorage.length;n++){const i=localStorage.key(n);if(i&&i.startsWith("page-builder-update-resource-"))try{const a=localStorage.getItem(i);if(!a)continue;const d=JSON.parse(a).pageBuilderContentSavedAt;d&&new Date(d)<o&&(e++,t.push({Number:e,Key:i,SavedAt:d}),localStorage.removeItem(i))}catch{}}t.length>0&&(console.info(`Deleted ${t.length} localStorage item(s) older than ${o} days:`),console.table(t))}}async hasLocalDraftForUpdate(){if(this.hasStartedEditing)return!1;if(this.pageBuilderStateStore.getConfigPageBuilder&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate&&typeof this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType=="string"&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType==="update"){const e=this.getLocalStorageItemName.value;if(typeof e=="string"){const t=localStorage.getItem(e);if(t)try{await this.delay(500);const o=JSON.parse(t),n=this.getComponents.value;return JSON.stringify(o.components)!==JSON.stringify(n)}catch{return!1}}}return!1}startEditing(){this.hasStartedEditing=!0}async resumeEditingForUpdate(){if(this.pageBuilderStateStore.getConfigPageBuilder&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate&&typeof this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType=="string"&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType==="update"){const e=this.getLocalStorageItemName.value;if(typeof e=="string"){const t=localStorage.getItem(e);if(t)try{const o=JSON.parse(t);o&&Array.isArray(o.components)&&(this.pageBuilderStateStore.setComponents(o.components),localStorage.removeItem(e),await s.nextTick(),await this.addListenersToEditableElements(),await this.handleAutoSave())}catch(o){console.error("Failed to parse local draft:",o)}}}}getStorageItemNameForResource(){return this.getLocalStorageItemName.value}loadStoredComponentsFromStorage(){if(!this.getLocalStorageItemName.value)return!1;if(this.getLocalStorageItemName.value&&typeof this.getLocalStorageItemName.value=="string"&&localStorage.getItem(this.getLocalStorageItemName.value)){const e=localStorage.getItem(this.getLocalStorageItemName.value);if(e)return e}return!1}async updateBasePrimaryImage(){this.getElement.value&&this.getCurrentImage.value&&this.getCurrentImage.value.src&&(await this.nextTick,this.pageBuilderStateStore.setBasePrimaryImage(`${this.getCurrentImage.value.src}`),await this.handleAutoSave())}setBasePrimaryImageFromCurrent(){if(!this.getElement.value)return;const e=document.createElement("div");e.innerHTML=this.getElement.value.outerHTML;const t=e.getElementsByTagName("img"),o=e.getElementsByTagName("div");if(t.length===1&&o.length===0){this.pageBuilderStateStore.setBasePrimaryImage(t[0].src);return}this.pageBuilderStateStore.setBasePrimaryImage(null)}handleHyperlink(e,t,o){var a;if(this.pageBuilderStateStore.setHyperlinkAbility(!0),!this.getElement.value||!(this.getElement.value instanceof HTMLElement)||typeof this.getElement.value.closest!="function")return;this.getElement.value.closest("a")!==null&&this.pageBuilderStateStore.setHyperlinkAbility(!1);const i=(a=this.getElement.value)==null?void 0:a.tagName.toUpperCase();if(i!=="P"&&i!=="H1"&&i!=="H2"&&i!=="H3"&&i!=="H4"&&i!=="H5"&&i!=="H6"&&this.pageBuilderStateStore.setHyperlinkAbility(!1),e===void 0){Z(this,K,jm).call(this);return}Z(this,K,Fm).call(this,e,t||null,o||!1)}async addComponent(e){try{const t=this.cloneCompObjForDOMInsertion({html_code:e.html_code,id:e.id,title:e.title});this.pageBuilderStateStore.setPushComponents({component:t,componentArrayAddMethod:this.getComponentArrayAddMethod.value||"push"}),await s.nextTick(),await this.addListenersToEditableElements(),await this.handleAutoSave()}catch(t){console.error("Error adding component:",t)}}setComponentsFromData(e){const t=e.trim();t.startsWith("[")||t.startsWith("{")?Z(this,K,Dl).call(this,t):t.startsWith("<")?Z(this,K,Hm).call(this,t):Z(this,K,Dl).call(this,t)}mountComponentsToDOM(e,t){if(this.pageBuilderStateStore.setComponents([]),!this.pageBuilderStateStore.getConfigPageBuilder)return;t&&e!==void 0&&this.setComponentsFromData(e);const o=this.loadStoredComponentsFromStorage();this.pageBuilderStateStore.getConfigPageBuilder&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate&&typeof this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType=="string"&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType==="create"&&o&&this.setComponentsFromData(o),this.pageBuilderStateStore.getConfigPageBuilder&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate&&typeof this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType=="string"&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType==="update"&&e&&this.setComponentsFromData(e)}async toggleTipTapModal(e){this.pageBuilderStateStore.setShowModalTipTap(e),e||await this.handleAutoSave()}async initializeElementStyles(){await new Promise(e=>requestAnimationFrame(e)),this.handleHyperlink(void 0,null,!1),this.handleOpacity(void 0),this.handleBackgroundOpacity(void 0),this.setBasePrimaryImageFromCurrent(),this.handleBorderStyle(void 0),this.handleBorderWidth(void 0),this.handleBorderColor(void 0),this.handleBorderRadiusGlobal(void 0),this.handleBorderRadiusTopLeft(void 0),this.handleBorderRadiusTopRight(void 0),this.handleBorderRadiusBottomleft(void 0),this.handleBorderRadiusBottomRight(void 0),this.handleFontSize(void 0),this.handleFontWeight(void 0),this.handleFontFamily(void 0),this.handleFontStyle(void 0),this.handleVerticalPadding(void 0),this.handleHorizontalPadding(void 0),this.handleVerticalMargin(void 0),this.handleHorizontalMargin(void 0),this.handleBackgroundColor(void 0),this.handleTextColor(void 0),await Z(this,K,_m).call(this)}}K=new WeakSet,me=function(e,t,o){const n=this.getElement.value;if(!n)return;const i=t.find(l=>n.classList.contains(l));let a=i||"none";return e===void 0?(typeof o=="string"&&o.length>2&&this.pageBuilderStateStore[o](a),i):(typeof e=="string"&&e!=="none"?(a&&n.classList.contains(a)&&n.classList.remove(a),n.classList.add(e),a=e):typeof e=="string"&&e==="none"&&a&&(n.classList.remove(a),a=e),typeof o=="string"&&o.length>2&&(this.pageBuilderStateStore[o](a),this.pageBuilderStateStore.setElement(n)),i)},Lm=function(e){Z(this,K,Rm).call(this,e),e.tagName==="IMG"&&e.classList.add("smooth-transition"),e.tagName==="DIV"&&e.classList.length},Rm=function(e){var t;if(e&&this.NoneListernesTags.includes(e.tagName)&&(e.previousElementSibling&&e.previousElementSibling.tagName==="IMG"||e.nextElementSibling&&e.nextElementSibling.tagName==="IMG")){const o=document.createElement("div");(t=e.parentNode)==null||t.insertBefore(o,e),o.appendChild(e)}},ta=new WeakMap,ra=new WeakMap,oa=new WeakMap,zm=async function(){await new Promise(n=>requestAnimationFrame(n));const e=document.querySelector("#pagebuilder");if(!e)return;const t=e.querySelector("[hovered]");t&&t.removeAttribute("hovered");const o=e.querySelector("[selected]");o&&o.removeAttribute("selected")},_m=async function(){var t;await new Promise(o=>requestAnimationFrame(o));const e=Array.from(((t=this.getElement.value)==null?void 0:t.classList)||[]);this.pageBuilderStateStore.setCurrentClasses(e)},na=new WeakMap,Fm=function(e,t,o){if(!this.getElement.value||!(this.getElement.value instanceof HTMLElement)||typeof this.getElement.value.closest!="function")return;const n=this.getElement.value.closest("a"),i=this.getElement.value.querySelector("a");this.pageBuilderStateStore.setHyperlinkError(null);const a=/^https?:\/\//,l=s.ref(!0);if(e===!0&&t!==null&&(l.value=a.test(t)),l.value===!1){this.pageBuilderStateStore.setHyperlinkMessage(null),this.pageBuilderStateStore.setHyperlinkError("URL is not valid");return}if(e===!0&&typeof t=="string"){if(i!==null&&t.length!==0){i.href=t,o===!0&&(i.target="_blank"),o===!1&&i.removeAttribute("target"),i.textContent=this.getElement.value.textContent,this.pageBuilderStateStore.setHyperlinkMessage("Succesfully updated element hyperlink"),this.pageBuilderStateStore.setElementContainsHyperlink(!0);return}if(i===null&&t.length!==0&&n===null){const d=document.createElement("a");d.href=t,o===!0&&(d.target="_blank"),d.textContent=this.getElement.value.textContent,this.getElement.value.textContent="",this.getElement.value.appendChild(d),this.pageBuilderStateStore.setHyperlinkMessage("Successfully added hyperlink to element"),this.pageBuilderStateStore.setElementContainsHyperlink(!0);return}}if(e===!1&&t==="removeHyperlink"){const d=this.getElement.value.textContent||"",c=document.createTextNode(d);this.getElement.value.textContent="",this.getElement.value.appendChild(c),this.pageBuilderStateStore.setHyberlinkEnable(!1),this.pageBuilderStateStore.setElementContainsHyperlink(!1)}},jm=function(){if(!this.getElement.value)return;const e=this.getElement.value.querySelector("a");if(e!==null){this.pageBuilderStateStore.setHyberlinkEnable(!0),this.pageBuilderStateStore.setElementContainsHyperlink(!0),this.pageBuilderStateStore.setHyperlinkInput(e.href),this.pageBuilderStateStore.setHyperlinkMessage(null),this.pageBuilderStateStore.setHyperlinkError(null),e.target==="_blank"&&this.pageBuilderStateStore.setOpenHyperlinkInNewTab(!0),e.target!=="_blank"&&this.pageBuilderStateStore.setOpenHyperlinkInNewTab(!1);return}this.pageBuilderStateStore.setElementContainsHyperlink(!1),this.pageBuilderStateStore.setHyperlinkInput(""),this.pageBuilderStateStore.setHyperlinkError(null),this.pageBuilderStateStore.setHyperlinkMessage(null),this.pageBuilderStateStore.setHyberlinkEnable(!1)},Dl=function(e){try{const t=JSON.parse(e);let o=[],n;Array.isArray(t)?o=t:t&&Array.isArray(t.components)&&(o=t.components,n=t.pageBuilderContentSavedAt);let i=[];o.length>0&&(i=o.map(l=>{const p=new DOMParser().parseFromString(l.html_code,"text/html").querySelector("section");if(p){if(p.hasAttribute("data-componentid"))l.id=p.getAttribute("data-componentid");else{const m=ba();p.setAttribute("data-componentid",m),l.id=m}const u=l.title||"Untitled Component";p.setAttribute("data-component-title",u),l.title=u,l.html_code=p.outerHTML}return l})),this.pageBuilderStateStore.setComponents(i);const a={pageBuilderContentSavedAt:t.pageBuilderContentSavedAt||new Date().toISOString(),components:i};this.getLocalStorageItemName.value&&typeof this.getLocalStorageItemName.value=="string"&&localStorage.setItem(this.getLocalStorageItemName.value,JSON.stringify(a))}catch(t){console.error("Error parsing JSON components:",t),this.pageBuilderStateStore.setComponents([])}},Hm=function(e){try{const n=new DOMParser().parseFromString(e,"text/html").querySelectorAll("section"),i=[];n.forEach(a=>{const l=a;l.hasAttribute("data-componentid")||l.setAttribute("data-componentid",ba());const d=l.getAttribute("data-componentid"),c=l.getAttribute("title")||l.getAttribute("data-component-title")||"Untitled Component";l.setAttribute("data-component-title",c),i.push({html_code:l.outerHTML,id:d,title:c})}),this.pageBuilderStateStore.setComponents(i)}catch(t){console.error("Error parsing HTML components:",t),this.pageBuilderStateStore.setComponents([])}};const Jm={class:"font-sans"},Gm={key:0,class:"fixed inset-0 z-40 flex items-center justify-center mx-4",role:"dialog","aria-modal":"true","aria-labelledby":"dialog-title"},Ym={class:"h-16 flex items-center justify-between border-b border-gray-200 bg-white mb-2"},Xm={as:"h3",class:"myQuaternaryHeader my-0 py-0"},Dr=s.defineComponent({__name:"ModalBuilder",props:{title:{type:String,required:!0},showModalBuilder:{type:Boolean,default:!1},maxWidth:{type:String,default:"2xl"},minHeight:{type:String},maxHeight:{type:String}},emits:["closeMainModalBuilder"],setup(r,{emit:e}){const t=r,o=e,n=()=>{o("closeMainModalBuilder")},i=s.computed(()=>({sm:"lg:max-w-sm",md:"lg:max-w-md",lg:"lg:max-w-lg",xl:"lg:max-w-xl","2xl":"lg:max-w-2xl","3xl":"lg:max-w-3xl","4xl":"lg:max-w-4xl","5xl":"lg:max-w-5xl","6xl":"lg:max-w-6xl","7xl":"lg:max-w-7xl",full:"lg:max-w-full",screen:"lg:w-screen sm:max-w-none"})[t.maxWidth]);return(a,l)=>(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[s.createElementVNode("div",Jm,[r.showModalBuilder?(s.openBlock(),s.createElementBlock("div",Gm,[s.createElementVNode("div",{class:"fixed inset-0 bg-black/50 transition-opacity",onClick:n}),s.createElementVNode("div",{class:s.normalizeClass(["relative inline-block bg-white rounded-xl text-left overflow-hidden shadow-xl transform transition-all max-w-[96vh] max-h-[98vh] overflow-y-auto w-full px-4",[i.value?i.value:"",r.minHeight?r.minHeight:"",r.maxHeight?r.maxHeight:""]])},[s.createElementVNode("div",Ym,[s.createElementVNode("h3",Xm,s.toDisplayString(r.title),1),s.createElementVNode("div",{class:"h-10 w-10 flex-end cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white hover:fill-white focus-visible:ring-0",onClick:n},l[0]||(l[0]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," close ",-1)]))]),s.renderSlot(a.$slots,"default")],2)])):s.createCommentVNode("",!0)])]))}});function Cn(r,e,t){return Array.isArray(r)?(r.length=Math.max(r.length,e),r.splice(e,1,t),t):(r[e]=t,t)}function ya(r,e){if(Array.isArray(r)){r.splice(e,1);return}delete r[e]}function Qm(){return jl().__VUE_DEVTOOLS_GLOBAL_HOOK__}function jl(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Zm=typeof Proxy=="function",$m="devtools-plugin:setup",eh="plugin:settings:set";let Ir,xa;function th(){var r;return Ir!==void 0||(typeof window<"u"&&window.performance?(Ir=!0,xa=window.performance):typeof globalThis<"u"&&(!((r=globalThis.perf_hooks)===null||r===void 0)&&r.performance)?(Ir=!0,xa=globalThis.perf_hooks.performance):Ir=!1),Ir}function rh(){return th()?xa.now():Date.now()}class oh{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const o={};if(e.settings)for(const a in e.settings){const l=e.settings[a];o[a]=l.defaultValue}const n=`__vue-devtools-plugin-settings__${e.id}`;let i=Object.assign({},o);try{const a=localStorage.getItem(n),l=JSON.parse(a);Object.assign(i,l)}catch{}this.fallbacks={getSettings(){return i},setSettings(a){try{localStorage.setItem(n,JSON.stringify(a))}catch{}i=a},now(){return rh()}},t&&t.on(eh,(a,l)=>{a===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(a,l)=>this.target?this.target.on[l]:(...d)=>{this.onQueue.push({method:l,args:d})}}),this.proxiedTarget=new Proxy({},{get:(a,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...d)=>(this.targetQueue.push({method:l,args:d,resolve:()=>{}}),this.fallbacks[l](...d)):(...d)=>new Promise(c=>{this.targetQueue.push({method:l,args:d,resolve:c})})})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function Hl(r,e){const t=r,o=jl(),n=Qm(),i=Zm&&t.enableEarlyProxy;if(n&&(o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))n.emit($m,r,e);else{const a=i?new oh(t,n):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:t,setupFn:e,proxy:a}),a&&e(a.proxiedTarget)}}/*!
|
|
1
|
+
(function(G,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(G=typeof globalThis<"u"?globalThis:G||self,s(G.VueWebsitePageBuilder={},G.Vue))})(this,function(G,s){"use strict";var ZE=Object.defineProperty;var Dm=G=>{throw TypeError(G)};var $E=(G,s,Pe)=>s in G?ZE(G,s,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):G[s]=Pe;var ae=(G,s,Pe)=>$E(G,typeof s!="symbol"?s+"":s,Pe),Im=(G,s,Pe)=>s.has(G)||Dm("Cannot "+Pe);var vn=(G,s,Pe)=>(Im(G,s,"read from private field"),Pe?Pe.call(G):s.get(G)),bo=(G,s,Pe)=>s.has(G)?Dm("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(G):s.set(G,Pe);var Z=(G,s,Pe)=>(Im(G,s,"access private method"),Pe);var K,me,Lm,Rm,ta,ra,oa,zm,_m,na,Fm,jm,Dl,Hm;function Pe(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,o.get?o:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const _l=Pe(s),xn={backgroundColorVariables:["none","bg-white","bg-black","bg-slate-50","bg-slate-100","bg-slate-200","bg-slate-300","bg-slate-400","bg-slate-500","bg-slate-600","bg-slate-700","bg-slate-800","bg-slate-900","bg-gray-50","bg-gray-100","bg-gray-200","bg-gray-300","bg-gray-400","bg-gray-500","bg-gray-600","bg-gray-700","bg-gray-800","bg-gray-900","bg-zinc-50","bg-zinc-100","bg-zinc-200","bg-zinc-300","bg-zinc-400","bg-zinc-500","bg-zinc-600","bg-zinc-700","bg-zinc-800","bg-zinc-900","bg-neutral-50","bg-neutral-100","bg-neutral-200","bg-neutral-300","bg-neutral-400","bg-neutral-500","bg-neutral-600","bg-neutral-700","bg-neutral-800","bg-neutral-900","bg-stone-50","bg-stone-100","bg-stone-200","bg-stone-300","bg-stone-400","bg-stone-500","bg-stone-600","bg-stone-700","bg-stone-800","bg-stone-900","bg-red-50","bg-red-100","bg-red-200","bg-red-300","bg-red-400","bg-red-500","bg-red-600","bg-red-700","bg-red-800","bg-red-900","bg-orange-50","bg-orange-100","bg-orange-200","bg-orange-300","bg-orange-400","bg-orange-500","bg-orange-600","bg-orange-700","bg-orange-800","bg-orange-900","bg-amber-50","bg-amber-100","bg-amber-200","bg-amber-300","bg-amber-400","bg-amber-500","bg-amber-600","bg-amber-700","bg-amber-800","bg-amber-900","bg-yellow-50","bg-yellow-100","bg-yellow-200","bg-yellow-300","bg-yellow-400","bg-yellow-500","bg-yellow-600","bg-yellow-700","bg-yellow-800","bg-yellow-900","bg-lime-50","bg-lime-100","bg-lime-200","bg-lime-300","bg-lime-400","bg-lime-500","bg-lime-600","bg-lime-700","bg-lime-800","bg-lime-900","bg-green-50","bg-green-100","bg-green-200","bg-green-300","bg-green-400","bg-green-500","bg-green-600","bg-green-700","bg-green-800","bg-green-900","bg-emerald-50","bg-emerald-100","bg-emerald-200","bg-emerald-300","bg-emerald-400","bg-emerald-500","bg-emerald-600","bg-emerald-700","bg-emerald-800","bg-emerald-900","bg-teal-50","bg-teal-100","bg-teal-200","bg-teal-300","bg-teal-400","bg-teal-500","bg-teal-600","bg-teal-700","bg-teal-800","bg-teal-900","bg-cyan-50","bg-cyan-100","bg-cyan-200","bg-cyan-300","bg-cyan-400","bg-cyan-500","bg-cyan-600","bg-cyan-700","bg-cyan-800","bg-cyan-900","bg-sky-50","bg-sky-100","bg-sky-200","bg-sky-300","bg-sky-400","bg-sky-500","bg-sky-600","bg-sky-700","bg-sky-800","bg-sky-900","bg-blue-50","bg-blue-100","bg-blue-200","bg-blue-300","bg-blue-400","bg-blue-500","bg-blue-600","bg-blue-700","bg-blue-800","bg-blue-900","bg-indigo-50","bg-indigo-100","bg-indigo-200","bg-indigo-300","bg-indigo-400","bg-indigo-500","bg-indigo-600","bg-indigo-700","bg-indigo-800","bg-indigo-900","bg-violet-50","bg-violet-100","bg-violet-200","bg-violet-300","bg-violet-400","bg-violet-500","bg-violet-600","bg-violet-700","bg-violet-800","bg-violet-900","bg-purple-50","bg-purple-100","bg-purple-200","bg-purple-300","bg-purple-400","bg-purple-500","bg-purple-600","bg-purple-700","bg-purple-800","bg-purple-900","bg-fuchsia-50","bg-fuchsia-100","bg-fuchsia-200","bg-fuchsia-300","bg-fuchsia-400","bg-fuchsia-500","bg-fuchsia-600","bg-fuchsia-700","bg-fuchsia-800","bg-fuchsia-900","bg-pink-50","bg-pink-100","bg-pink-200","bg-pink-300","bg-pink-400","bg-pink-500","bg-pink-600","bg-pink-700","bg-pink-800","bg-pink-900","bg-rose-50","bg-rose-100","bg-rose-200","bg-rose-300","bg-rose-400","bg-rose-500","bg-rose-600","bg-rose-700","bg-rose-800","bg-rose-900"],textColorVariables:["none","text-white","text-black","text-slate-50","text-slate-100","text-slate-200","text-slate-300","text-slate-400","text-slate-500","text-slate-600","text-slate-700","text-slate-800","text-slate-900","text-gray-50","text-gray-100","text-gray-200","text-gray-300","text-gray-400","text-gray-500","text-gray-600","text-gray-700","text-gray-800","text-gray-900","text-zinc-50","text-zinc-100","text-zinc-200","text-zinc-300","text-zinc-400","text-zinc-500","text-zinc-600","text-zinc-700","text-zinc-800","text-zinc-900","text-neutral-50","text-neutral-100","text-neutral-200","text-neutral-300","text-neutral-400","text-neutral-500","text-neutral-600","text-neutral-700","text-neutral-800","text-neutral-900","text-stone-50","text-stone-100","text-stone-200","text-stone-300","text-stone-400","text-stone-500","text-stone-600","text-stone-700","text-stone-800","text-stone-900","text-red-50","text-red-100","text-red-200","text-red-300","text-red-400","text-red-500","text-red-600","text-red-700","text-red-800","text-red-900","text-orange-50","text-orange-100","text-orange-200","text-orange-300","text-orange-400","text-orange-500","text-orange-600","text-orange-700","text-orange-800","text-orange-900","text-amber-50","text-amber-100","text-amber-200","text-amber-300","text-amber-400","text-amber-500","text-amber-600","text-amber-700","text-amber-800","text-amber-900","text-yellow-50","text-yellow-100","text-yellow-200","text-yellow-300","text-yellow-400","text-yellow-500","text-yellow-600","text-yellow-700","text-yellow-800","text-yellow-900","text-lime-50","text-lime-100","text-lime-200","text-lime-300","text-lime-400","text-lime-500","text-lime-600","text-lime-700","text-lime-800","text-lime-900","text-green-50","text-green-100","text-green-200","text-green-300","text-green-400","text-green-500","text-green-600","text-green-700","text-green-800","text-green-900","text-emerald-50","text-emerald-100","text-emerald-200","text-emerald-300","text-emerald-400","text-emerald-500","text-emerald-600","text-emerald-700","text-emerald-800","text-emerald-900","text-teal-50","text-teal-100","text-teal-200","text-teal-300","text-teal-400","text-teal-500","text-teal-600","text-teal-700","text-teal-800","text-teal-900","text-cyan-50","text-cyan-100","text-cyan-200","text-cyan-300","text-cyan-400","text-cyan-500","text-cyan-600","text-cyan-700","text-cyan-800","text-cyan-900","text-sky-50","text-sky-100","text-sky-200","text-sky-300","text-sky-400","text-sky-500","text-sky-600","text-sky-700","text-sky-800","text-sky-900","text-blue-50","text-blue-100","text-blue-200","text-blue-300","text-blue-400","text-blue-500","text-blue-600","text-blue-700","text-blue-800","text-blue-900","text-indigo-50","text-indigo-100","text-indigo-200","text-indigo-300","text-indigo-400","text-indigo-500","text-indigo-600","text-indigo-700","text-indigo-800","text-indigo-900","text-violet-50","text-violet-100","text-violet-200","text-violet-300","text-violet-400","text-violet-500","text-violet-600","text-violet-700","text-violet-800","text-violet-900","text-purple-50","text-purple-100","text-purple-200","text-purple-300","text-purple-400","text-purple-500","text-purple-600","text-purple-700","text-purple-800","text-purple-900","text-fuchsia-50","text-fuchsia-100","text-fuchsia-200","text-fuchsia-300","text-fuchsia-400","text-fuchsia-500","text-fuchsia-600","text-fuchsia-700","text-fuchsia-800","text-fuchsia-900","text-pink-50","text-pink-100","text-pink-200","text-pink-300","text-pink-400","text-pink-500","text-pink-600","text-pink-700","text-pink-800","text-pink-900","text-rose-50","text-rose-100","text-rose-200","text-rose-300","text-rose-400","text-rose-500","text-rose-600","text-rose-700","text-rose-800","text-rose-900"]},kn={opacities:["none","opacity-0","opacity-5","opacity-10","opacity-20","opacity-25","opacity-30","opacity-40","opacity-50","opacity-60","opacity-70","opacity-75","opacity-80","opacity-90","opacity-95","opacity-100"],backgroundOpacities:["none","bg-opacity-0","bg-opacity-5","bg-opacity-10","bg-opacity-20","bg-opacity-25","bg-opacity-30","bg-opacity-40","bg-opacity-50","bg-opacity-60","bg-opacity-70","bg-opacity-75","bg-opacity-80","bg-opacity-90","bg-opacity-95","bg-opacity-100"]},En={fontBase:["base:none","text-xs","text-sm","text-base","text-lg","text-xl","text-2xl","text-3xl","text-4xl","text-5xl","text-6xl","text-7xl","text-8xl","text-9xl"],fontDesktop:["lg:none","lg:text-xs","lg:text-sm","lg:text-base","lg:text-lg","lg:text-xl","lg:text-2xl","lg:text-3xl","lg:text-4xl","lg:text-5xl","lg:text-6xl","lg:text-7xl","lg:text-8xl","lg:text-9xl"],fontTablet:["md:none","md:text-xs","md:text-sm","md:text-base","md:text-lg","md:text-xl","md:text-2xl","md:text-3xl","md:text-4xl","md:text-5xl","md:text-6xl","md:text-7xl","md:text-8xl","md:text-9xl"],fontMobile:["sm:none","sm:text-xs","sm:text-sm","sm:text-base","sm:text-lg","sm:text-xl","sm:text-2xl","sm:text-3xl","sm:text-4xl","sm:text-5xl","sm:text-6xl","sm:text-7xl","sm:text-8xl","sm:text-9xl"]},ga={fontWeight:["none","font-thin","font-extralight","font-light","font-normal","font-medium","font-medium","font-bold","font-extrabold","font-black"],fontFamily:["none","font-sans","font-serif","font-mono"],fontStyle:["none","italic","non-italic"]},_t={verticalPadding:["none","py-0","py-0.5","py-1","py-1.5","py-2","py-2.5","py-3","py-3.5","py-4","py-5","py-6","py-7","py-8","py-9","py-10","py-11","py-12","py-14","py-16","py-20","py-24","py-28","py-32","py-36","py-40","py-44","py-48","py-52","py-56","py-60","py-64","py-72","py-80","py-96"],horizontalPadding:["none","px-0","px-0.5","px-1","px-1.5","px-2","px-2.5","px-3","px-3.5","px-4","px-5","px-6","px-7","px-8","px-9","px-10","px-11","px-12","px-14","px-16","px-20","px-24","px-28","px-32","px-36","px-40","px-44","px-48","px-52","px-56","px-60","px-64","px-72","px-80","px-96"],verticalMargin:["none","my-0","my-0.5","my-1","my-1.5","my-2","my-2.5","my-3","my-3.5","my-4","my-5","my-6","my-7","my-8","my-9","my-10","my-11","my-12","my-14","my-16","my-20","my-24","my-28","my-32","my-36","my-40","my-44","my-48","my-52","my-56","my-60","my-64","my-72","my-80","my-96"],horizontalMargin:["none","mx-0","mx-0.5","mx-1","mx-1.5","mx-2","mx-2.5","mx-3","mx-3.5","mx-4","mx-5","mx-6","mx-7","mx-8","mx-9","mx-10","mx-11","mx-12","mx-14","mx-16","mx-20","mx-24","mx-28","mx-32","mx-36","mx-40","mx-44","mx-48","mx-52","mx-56","mx-60","mx-64","mx-72","mx-80","mx-96"]},pt={roundedGlobal:["none","rounded-sm","rounded","rounded-md","rounded-lg","rounded-xl","rounded-2xl","rounded-3xl","rounded-full"],roundedTopLeft:["none","rounded-tl-sm","rounded-tl","rounded-tl-md","rounded-tl-lg","rounded-tl-xl","rounded-tl-2xl","rounded-tl-3xl","rounded-tl-full"],roundedTopRight:["none","rounded-tr-sm","rounded-tr","rounded-tr-md","rounded-tr-lg","rounded-tr-xl","rounded-tr-2xl","rounded-tr-3xl","rounded-tr-full"],roundedBottomLeft:["none","rounded-bl-sm","rounded-bl","rounded-bl-md","rounded-bl-lg","rounded-bl-xl","rounded-bl-2xl","rounded-bl-3xl","rounded-bl-full"],roundedBottomRight:["none","rounded-br-sm","rounded-br","rounded-br-md","rounded-br-lg","rounded-br-xl","rounded-br-2xl","rounded-br-3xl","rounded-br-full"]},Ar={borderStyle:["none","border-solid","border-dashed","border-dotted","border-double","border-hidden"],borderWidth:["none","border","border-2","border-4","border-8"],borderColor:["none","border-white","border-black","border-slate-50","border-slate-100","border-slate-200","border-slate-300","border-slate-400","border-slate-500","border-slate-600","border-slate-700","border-slate-800","border-slate-900","border-gray-50","border-gray-100","border-gray-200","border-gray-300","border-gray-400","border-gray-500","border-gray-600","border-gray-700","border-gray-800","border-gray-900","border-zinc-50","border-zinc-100","border-zinc-200","border-zinc-300","border-zinc-400","border-zinc-500","border-zinc-600","border-zinc-700","border-zinc-800","border-zinc-900","border-neutral-50","border-neutral-100","border-neutral-200","border-neutral-300","border-neutral-400","border-neutral-500","border-neutral-600","border-neutral-700","border-neutral-800","border-neutral-900","border-stone-50","border-stone-100","border-stone-200","border-stone-300","border-stone-400","border-stone-500","border-stone-600","border-stone-700","border-stone-800","border-stone-900","border-red-50","border-red-100","border-red-200","border-red-300","border-red-400","border-red-500","border-red-600","border-red-700","border-red-800","border-red-900","border-orange-50","border-orange-100","border-orange-200","border-orange-300","border-orange-400","border-orange-500","border-orange-600","border-orange-700","border-orange-800","border-orange-900","border-amber-50","border-amber-100","border-amber-200","border-amber-300","border-amber-400","border-amber-500","border-amber-600","border-amber-700","border-amber-800","border-amber-900","border-yellow-50","border-yellow-100","border-yellow-200","border-yellow-300","border-yellow-400","border-yellow-500","border-yellow-600","border-yellow-700","border-yellow-800","border-yellow-900","border-lime-50","border-lime-100","border-lime-200","border-lime-300","border-lime-400","border-lime-500","border-lime-600","border-lime-700","border-lime-800","border-lime-900","border-green-50","border-green-100","border-green-200","border-green-300","border-green-400","border-green-500","border-green-600","border-green-700","border-green-800","border-green-900","border-emerald-50","border-emerald-100","border-emerald-200","border-emerald-300","border-emerald-400","border-emerald-500","border-emerald-600","border-emerald-700","border-emerald-800","border-emerald-900","border-teal-50","border-teal-100","border-teal-200","border-teal-300","border-teal-400","border-teal-500","border-teal-600","border-teal-700","border-teal-800","border-teal-900","border-cyan-50","border-cyan-100","border-cyan-200","border-cyan-300","border-cyan-400","border-cyan-500","border-cyan-600","border-cyan-700","border-cyan-800","border-cyan-900","border-sky-50","border-sky-100","border-sky-200","border-sky-300","border-sky-400","border-sky-500","border-sky-600","border-sky-700","border-sky-800","border-sky-900","border-blue-50","border-blue-100","border-blue-200","border-blue-300","border-blue-400","border-blue-500","border-blue-600","border-blue-700","border-blue-800","border-blue-900","border-indigo-50","border-indigo-100","border-indigo-200","border-indigo-300","border-indigo-400","border-indigo-500","border-indigo-600","border-indigo-700","border-indigo-800","border-indigo-900","border-violet-50","border-violet-100","border-violet-200","border-violet-300","border-violet-400","border-violet-500","border-violet-600","border-violet-700","border-violet-800","border-violet-900","border-purple-50","border-purple-100","border-purple-200","border-purple-300","border-purple-400","border-purple-500","border-purple-600","border-purple-700","border-purple-800","border-purple-900","border-fuchsia-50","border-fuchsia-100","border-fuchsia-200","border-fuchsia-300","border-fuchsia-400","border-fuchsia-500","border-fuchsia-600","border-fuchsia-700","border-fuchsia-800","border-fuchsia-900","border-pink-50","border-pink-100","border-pink-200","border-pink-300","border-pink-400","border-pink-500","border-pink-600","border-pink-700","border-pink-800","border-pink-900","border-rose-50","border-rose-100","border-rose-200","border-rose-300","border-rose-400","border-rose-500","border-rose-600","border-rose-700","border-rose-800","border-rose-900"]};let Sn;const qm=new Uint8Array(16);function Um(){if(!Sn&&(Sn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Sn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Sn(qm)}const ke=[];for(let r=0;r<256;++r)ke.push((r+256).toString(16).slice(1));function Km(r,e=0){return ke[r[e+0]]+ke[r[e+1]]+ke[r[e+2]]+ke[r[e+3]]+"-"+ke[r[e+4]]+ke[r[e+5]]+"-"+ke[r[e+6]]+ke[r[e+7]]+"-"+ke[r[e+8]]+ke[r[e+9]]+"-"+ke[r[e+10]]+ke[r[e+11]]+ke[r[e+12]]+ke[r[e+13]]+ke[r[e+14]]+ke[r[e+15]]}const Fl={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function ba(r,e,t){if(Fl.randomUUID&&!r)return Fl.randomUUID();r=r||{};const o=r.random||(r.rng||Um)();return o[6]=o[6]&15|64,o[8]=o[8]&63|128,Km(o)}const wa=function(e=200){return new Promise(t=>{setTimeout(t,e)})};class de{constructor(e){bo(this,K);ae(this,"nextTick");ae(this,"containsPagebuilder");ae(this,"pageBuilderStateStore");ae(this,"getTextAreaVueModel");ae(this,"getLocalStorageItemName");ae(this,"getCurrentImage");ae(this,"getHyberlinkEnable");ae(this,"getComponents");ae(this,"getComponent");ae(this,"getElement");ae(this,"getNextSibling");ae(this,"getParentElement");ae(this,"getRestoredElement");ae(this,"getComponentArrayAddMethod");ae(this,"NoneListernesTags");ae(this,"delay");ae(this,"observer");ae(this,"hasStartedEditing",!1);bo(this,ta,async(e,t)=>{e.preventDefault(),e.stopPropagation();const o=document.querySelector("#pagebuilder");if(!o)return;this.pageBuilderStateStore.setMenuRight(!0);const n=o.querySelector("[selected]");n&&n.removeAttribute("selected"),t.removeAttribute("hovered"),t.setAttribute("selected",""),this.pageBuilderStateStore.setElement(t)});bo(this,ra,(e,t)=>{e.preventDefault(),e.stopPropagation();const o=document.querySelector("#pagebuilder");if(!o)return;const n=o.querySelector("[hovered]");n&&n.removeAttribute("hovered"),t.hasAttribute("selected")||t.setAttribute("hovered","")});bo(this,oa,e=>{e.preventDefault(),e.stopPropagation();const t=document.querySelector("#pagebuilder");if(!t)return;const o=t.querySelector("[hovered]");o&&o.removeAttribute("hovered")});ae(this,"addListenersToEditableElements",async()=>{const e=new WeakSet,t=document.querySelector("#pagebuilder");t&&(await s.nextTick(),await new Promise(o=>requestAnimationFrame(o)),t.querySelectorAll("section *").forEach(o=>{if(this.isEditableElement(o)&&e&&!e.has(o)){e.add(o);const n=o;n.addEventListener("click",i=>vn(this,ta).call(this,i,n)),n.addEventListener("mouseover",i=>vn(this,ra).call(this,i,n)),n.addEventListener("mouseleave",i=>vn(this,oa).call(this,i))}}))});ae(this,"handleAutoSave",async()=>{this.startEditing();const e=this.pageBuilderStateStore.getConfigPageBuilder;if(e&&e.userSettings&&typeof e.userSettings.autoSave=="boolean"&&e.userSettings.autoSave!==!1){if(this.pageBuilderStateStore.getIsSaving)return;try{this.pageBuilderStateStore.setIsSaving(!0),await this.saveComponentsLocalStorage(),await this.delay(300)}catch(t){console.error("Error trying auto save.",t)}finally{this.pageBuilderStateStore.setIsSaving(!1)}}if(e&&!e.userSettings)try{this.pageBuilderStateStore.setIsSaving(!0),await this.saveComponentsLocalStorage(),await this.delay(300)}catch(t){console.error("Error trying saving.",t)}finally{this.pageBuilderStateStore.setIsSaving(!1)}});ae(this,"handleManualSave",async()=>{this.startEditing();const e=this.pageBuilderStateStore.getConfigPageBuilder;e&&e.userSettings&&(typeof e.userSettings.autoSave=="boolean"&&!e.userSettings.autoSave||typeof e.userSettings.autoSave=="boolean"&&e.userSettings.autoSave)&&(this.pageBuilderStateStore.setIsSaving(!0),await this.saveComponentsLocalStorage(),await this.delay(300),this.pageBuilderStateStore.setIsSaving(!1)),e&&!e.userSettings&&(this.pageBuilderStateStore.setIsSaving(!0),await this.saveComponentsLocalStorage(),await this.delay(300),this.pageBuilderStateStore.setIsSaving(!1))});ae(this,"ensureTextAreaHasContent",()=>{if(!this.getElement.value||typeof this.getElement.value.innerHTML!="string")return;const e=this.getElement.value,t=e.tagName;["DIV"].includes(t)&&e.tagName.toLowerCase()!=="img"&&e.textContent&&Number(e.textContent.length)===0?(e.classList.add("h-6"),e.classList.add("bg-red-50")):(e.classList.remove("h-6"),e.classList.remove("bg-red-50"))});ae(this,"handleTextInput",async e=>{var t;typeof((t=this.getElement.value)==null?void 0:t.innerHTML)=="string"&&(typeof this.getElement.value.innerHTML=="string"&&(await this.nextTick,this.getElement.value.textContent=e,this.pageBuilderStateStore.setTextAreaVueModel(this.getElement.value.innerHTML),this.getElement.value.innerHTML=e),this.ensureTextAreaHasContent())});bo(this,na,async()=>{const e=document.querySelector("#pagebuilder");if(!e)return;const t=e.querySelector("[hovered]");t&&t.removeAttribute("hovered");const o=[];e.querySelectorAll("section[data-componentid]").forEach(n=>{o.push({html_code:n.outerHTML,id:n.getAttribute("data-componentid"),title:n.getAttribute("data-component-title")||"Untitled Component"})}),this.getLocalStorageItemName.value&&localStorage.setItem(this.getLocalStorageItemName.value,JSON.stringify({pageBuilderContentSavedAt:new Date().toISOString(),components:o})),await new Promise(n=>n())});this.nextTick=s.nextTick(),this.hasStartedEditing=!1,this.containsPagebuilder=document.querySelector("#contains-pagebuilder"),this.pageBuilderStateStore=e,this.getTextAreaVueModel=s.computed(()=>this.pageBuilderStateStore.getTextAreaVueModel),this.getLocalStorageItemName=s.computed(()=>this.pageBuilderStateStore.getLocalStorageItemName),this.getCurrentImage=s.computed(()=>this.pageBuilderStateStore.getCurrentImage),this.getHyberlinkEnable=s.computed(()=>this.pageBuilderStateStore.getHyberlinkEnable),this.getComponents=s.computed(()=>this.pageBuilderStateStore.getComponents),this.getComponent=s.computed(()=>this.pageBuilderStateStore.getComponent),this.getElement=s.computed(()=>this.pageBuilderStateStore.getElement),this.getNextSibling=s.computed(()=>this.pageBuilderStateStore.getNextSibling),this.getParentElement=s.computed(()=>this.pageBuilderStateStore.getParentElement),this.getRestoredElement=s.computed(()=>this.pageBuilderStateStore.getRestoredElement),this.getComponentArrayAddMethod=s.computed(()=>this.pageBuilderStateStore.getComponentArrayAddMethod),this.NoneListernesTags=["P","H1","H2","H3","H4","H5","H6","IFRAME","UL","OL","LI","EM","STRONG","B","A","SPAN","BLOCKQUOTE","BR"],this.delay=wa}async clearHtmlSelection(){this.pageBuilderStateStore.setComponent(null),this.pageBuilderStateStore.setElement(null),await Z(this,K,zm).call(this)}applyPageBuilderConfig(e){this.pageBuilderStateStore.applyPageBuilderConfig(e)}isEditableElement(e){return e?!this.NoneListernesTags.includes(e.tagName):!1}cloneCompObjForDOMInsertion(e){const t={...e};if(this.containsPagebuilder&&(this.getComponentArrayAddMethod.value==="unshift"||this.getComponentArrayAddMethod.value==="push")&&(this.getComponentArrayAddMethod.value==="unshift"&&this.containsPagebuilder.scrollTo({top:0,behavior:"smooth"}),this.getComponentArrayAddMethod.value==="push")){const l=this.containsPagebuilder.scrollHeight;this.containsPagebuilder.scrollTo({top:l,behavior:"smooth"})}const n=new DOMParser().parseFromString(t.html_code||"","text/html");n.querySelectorAll("*").forEach(l=>{Z(this,K,Lm).call(this,l)});const a=n.querySelector("section");return a&&(a.dataset.componentid=ba(),t.title&&(a.setAttribute("title",t.title),a.setAttribute("data-component-title",t.title)),t.id=a.dataset.componentid,t.html_code=a.outerHTML),t}handleAddClasses(e){var t,o;if(typeof e=="string"&&e!==""&&!e.includes(" ")&&!((t=this.getElement.value)!=null&&t.classList.contains(e))){const n=e.trim();(o=this.getElement.value)==null||o.classList.add(n),this.pageBuilderStateStore.setElement(this.getElement.value),this.pageBuilderStateStore.setClass(e)}}handleRemoveClasses(e){var t,o;(t=this.getElement.value)!=null&&t.classList.contains(e)&&((o=this.getElement.value)==null||o.classList.remove(e),this.pageBuilderStateStore.setElement(this.getElement.value),this.pageBuilderStateStore.removeClass(e))}handleDeleteElement(){var t,o;const e=this.getElement.value;if(e){if(!(e!=null&&e.parentNode)){this.pageBuilderStateStore.setComponent(null),this.pageBuilderStateStore.setElement(null);return}((t=e.parentElement)==null?void 0:t.tagName)!=="SECTION"&&(this.pageBuilderStateStore.setParentElement(e.parentNode),this.pageBuilderStateStore.setRestoredElement(e.outerHTML),this.pageBuilderStateStore.setNextSibling(e.nextSibling)),((o=e.parentElement)==null?void 0:o.tagName)==="SECTION"&&this.deleteSelectedComponent(),e.remove(),this.pageBuilderStateStore.setComponent(null),this.pageBuilderStateStore.setElement(null)}}async handleRestoreElement(){if(this.getRestoredElement.value&&this.getParentElement.value){const e=document.createElement("div");e.innerHTML=this.getRestoredElement.value,e.firstChild&&this.getParentElement.value&&this.getParentElement.value.insertBefore(e.firstChild,this.getNextSibling.value)}this.pageBuilderStateStore.setParentElement(null),this.pageBuilderStateStore.setRestoredElement(null),this.pageBuilderStateStore.setNextSibling(null),this.pageBuilderStateStore.setComponent(null),this.pageBuilderStateStore.setElement(null),await this.addListenersToEditableElements()}handleFontWeight(e){Z(this,K,me).call(this,e,ga.fontWeight,"setFontWeight")}handleFontFamily(e){Z(this,K,me).call(this,e,ga.fontFamily,"setFontFamily")}handleFontStyle(e){Z(this,K,me).call(this,e,ga.fontStyle,"setFontStyle")}handleVerticalPadding(e){Z(this,K,me).call(this,e,_t.verticalPadding,"setFontVerticalPadding")}handleHorizontalPadding(e){Z(this,K,me).call(this,e,_t.horizontalPadding,"setFontHorizontalPadding")}handleVerticalMargin(e){Z(this,K,me).call(this,e,_t.verticalMargin,"setFontVerticalMargin")}handleHorizontalMargin(e){Z(this,K,me).call(this,e,_t.horizontalMargin,"setFontHorizontalMargin")}handleBorderStyle(e){Z(this,K,me).call(this,e,Ar.borderStyle,"setBorderStyle")}handleBorderWidth(e){Z(this,K,me).call(this,e,Ar.borderWidth,"setBorderWidth")}handleBorderColor(e){Z(this,K,me).call(this,e,Ar.borderColor,"setBorderColor")}handleBackgroundColor(e){Z(this,K,me).call(this,e,xn.backgroundColorVariables,"setBackgroundColor")}handleTextColor(e){Z(this,K,me).call(this,e,xn.textColorVariables,"setTextColor")}handleBorderRadiusGlobal(e){Z(this,K,me).call(this,e,pt.roundedGlobal,"setBorderRadiusGlobal")}handleBorderRadiusTopLeft(e){Z(this,K,me).call(this,e,pt.roundedTopLeft,"setBorderRadiusTopLeft")}handleBorderRadiusTopRight(e){Z(this,K,me).call(this,e,pt.roundedTopRight,"setBorderRadiusTopRight")}handleBorderRadiusBottomleft(e){Z(this,K,me).call(this,e,pt.roundedBottomLeft,"setBorderRadiusBottomleft")}handleBorderRadiusBottomRight(e){Z(this,K,me).call(this,e,pt.roundedBottomRight,"setBorderRadiusBottomRight")}handleFontSize(e){if(!e||!this.getElement.value)return;let t=En.fontBase.find(u=>{var p;return(p=this.getElement.value)==null?void 0:p.classList.contains(u)});t===void 0&&(t="base:none");let o=En.fontDesktop.find(u=>{var p;return(p=this.getElement.value)==null?void 0:p.classList.contains(u)});o===void 0&&(o="lg:none");let n=En.fontTablet.find(u=>{var p;return(p=this.getElement.value)==null?void 0:p.classList.contains(u)});n===void 0&&(n="md:none");let i=En.fontMobile.find(u=>{var p;return(p=this.getElement.value)==null?void 0:p.classList.contains(u)});i===void 0&&(i="sm:none"),this.pageBuilderStateStore.setFontBase(t),this.pageBuilderStateStore.setFontDesktop(o),this.pageBuilderStateStore.setFontTablet(n),this.pageBuilderStateStore.setFontMobile(i);const a=s.computed(()=>this.pageBuilderStateStore.getFontBase),l=s.computed(()=>this.pageBuilderStateStore.getFontDesktop),c=s.computed(()=>this.pageBuilderStateStore.getFontTablet),d=s.computed(()=>this.pageBuilderStateStore.getFontMobile);e!==void 0&&this.getElement.value&&(!e.includes("sm:")&&!e.includes("md:")&&!e.includes("lg:")&&(a.value&&this.getElement.value.classList.remove(a.value),e.includes("base:none")||this.getElement.value.classList.add(e),this.pageBuilderStateStore.setFontBase(e)),e.includes("lg:")&&(l.value&&this.getElement.value.classList.remove(l.value),e.includes("lg:none")||this.getElement.value.classList.add(e),this.pageBuilderStateStore.setFontDesktop(e)),e.includes("md:")&&(c.value&&this.getElement.value.classList.remove(c.value),e.includes("md:none")||this.getElement.value.classList.add(e),this.pageBuilderStateStore.setFontTablet(e)),e.includes("sm:")&&(d.value&&this.getElement.value.classList.remove(d.value),e.includes("sm:none")||this.getElement.value.classList.add(e),this.pageBuilderStateStore.setFontMobile(e)),this.pageBuilderStateStore.setElement(this.getElement.value))}handleBackgroundOpacity(e){Z(this,K,me).call(this,e,kn.backgroundOpacities,"setBackgroundOpacity")}handleOpacity(e){Z(this,K,me).call(this,e,kn.opacities,"setOpacity")}deleteAllComponents(){this.pageBuilderStateStore.setComponents([])}deleteSelectedComponent(){if(!this.getComponents.value||!this.getComponent.value)return;const e=this.getComponents.value.findIndex(t=>{var o;return t.id===((o=this.getComponent.value)==null?void 0:o.id)});e!==-1&&(this.getComponents.value.splice(e,1),this.pageBuilderStateStore.setComponents(this.getComponents.value),this.pageBuilderStateStore.setComponent(null),this.pageBuilderStateStore.setElement(null))}reorderComponent(e){if(!this.getComponents.value||!this.getComponent.value||this.getComponents.value.length<=1)return;const t=this.getComponent.value,o=this.getComponents.value.findIndex(i=>i.id===t.id);if(o===-1)return;const n=o+e;n<0||n>=this.getComponents.value.length||(this.getComponents.value.splice(o,1),this.getComponents.value.splice(n,0,t))}ElOrFirstChildIsIframe(){var e,t,o;return((e=this.getElement.value)==null?void 0:e.tagName)==="IFRAME"||((o=(t=this.getElement.value)==null?void 0:t.firstElementChild)==null?void 0:o.tagName)==="IFRAME"}isSelectedElementValidText(){var o,n,i,a;let e=!1;const t=(o=this.getElement.value)==null?void 0:o.children;if(!(((n=this.getElement.value)==null?void 0:n.tagName)==="IMG"||((a=(i=this.getElement.value)==null?void 0:i.firstElementChild)==null?void 0:a.tagName)==="IFRAME")&&t)return Array.from(t).forEach(l=>{(l==null?void 0:l.tagName)==="IMG"||(l==null?void 0:l.tagName)==="DIV"?e=!1:e=!0}),e}previewCurrentDesign(){this.pageBuilderStateStore.setElement(null);const e=document.querySelector("#pagebuilder");if(!e)return;const t=s.ref([]);e.querySelectorAll("section:not(section section)").forEach(n=>{const i=n.querySelector("[hovered]");i&&i.removeAttribute("hovered");const a=n.querySelector("[selected]");a&&a.removeAttribute("selected"),t.value.push(n.outerHTML)});const o=JSON.stringify(t.value);this.pageBuilderStateStore.setCurrentLayoutPreview(o),t.value=[]}sanitizeForLocalStorage(e){return e.trim().toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"").replace(/-+/g,"-").replace(/^-+|-+$/g,"")}updateLocalStorageItemName(){var n,i,a;const e=this.pageBuilderStateStore.getConfigPageBuilder&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType,t=(n=this.pageBuilderStateStore.getConfigPageBuilder)==null?void 0:n.resourceData,o=(a=(i=this.pageBuilderStateStore.getConfigPageBuilder)==null?void 0:i.updateOrCreate)==null?void 0:a.formName;if(e==="create"){if(o&&o.length>0){this.pageBuilderStateStore.setLocalStorageItemName(`page-builder-create-resource-${this.sanitizeForLocalStorage(o)}`);return}this.pageBuilderStateStore.setLocalStorageItemName("page-builder-create-resource");return}if(e==="update"){if(typeof o=="string"&&o.length>0){if(t&&t!=null&&!t.title&&(!t.id||typeof t.id=="string")){this.pageBuilderStateStore.setLocalStorageItemName(`page-builder-update-resource-${this.sanitizeForLocalStorage(o)}`);return}if(t&&t!=null&&t.title&&typeof t.title=="string"&&t.title.length>0&&(!t.id||typeof t.id=="string")){this.pageBuilderStateStore.setLocalStorageItemName(`page-builder-update-resource-${this.sanitizeForLocalStorage(o)}-${this.sanitizeForLocalStorage(t.title)}`);return}if(t&&t!=null&&!t.title&&typeof t.title!="string"&&(t.id||typeof t.id=="number")){this.pageBuilderStateStore.setLocalStorageItemName(`page-builder-update-resource-${this.sanitizeForLocalStorage(o)}-${this.sanitizeForLocalStorage(String(t.id))}`);return}if(t&&t!=null&&t.title&&typeof t.title=="string"&&t.title.length>0&&(t.id||typeof t.id=="number")){this.pageBuilderStateStore.setLocalStorageItemName(`page-builder-update-resource-${this.sanitizeForLocalStorage(o)}-${this.sanitizeForLocalStorage(t.title)}-${this.sanitizeForLocalStorage(String(t.id))}`);return}}if(!o||typeof o=="string"&&o.length===0){if(t&&t!=null&&!t.title&&(!t.id||typeof t.id=="string")){this.pageBuilderStateStore.setLocalStorageItemName("page-builder-update-resource");return}if(t&&t!=null&&t.title&&typeof t.title=="string"&&t.title.length>0&&(!t.id||typeof t.id=="string")){this.pageBuilderStateStore.setLocalStorageItemName(`page-builder-update-resource-${this.sanitizeForLocalStorage(t.title)}`);return}if(t&&t!=null&&!t.title&&typeof t.title!="string"&&(t.id||typeof t.id=="number")){this.pageBuilderStateStore.setLocalStorageItemName(`page-builder-update-resource-${this.sanitizeForLocalStorage(String(t.id))}`);return}if(t&&t!=null&&t.title&&typeof t.title=="string"&&t.title.length>0&&(t.id||typeof t.id=="number")){this.pageBuilderStateStore.setLocalStorageItemName(`page-builder-update-resource-${this.sanitizeForLocalStorage(t.title)}-${this.sanitizeForLocalStorage(String(t.id))}`);return}}}}async saveComponentsLocalStorage(){await this.nextTick,await vn(this,na).call(this)}async removeItemComponentsLocalStorage(){await this.nextTick,this.getLocalStorageItemName.value&&localStorage.removeItem(this.getLocalStorageItemName.value)}deleteOldPageBuilderLocalStorage(){if(this.pageBuilderStateStore.getConfigPageBuilder&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate&&typeof this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType=="string"&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType==="update"){let e=0;const t=[],o=new Date(Date.now()-14*24*60*60*1e3);for(let n=0;n<localStorage.length;n++){const i=localStorage.key(n);if(i&&i.startsWith("page-builder-update-resource-"))try{const a=localStorage.getItem(i);if(!a)continue;const c=JSON.parse(a).pageBuilderContentSavedAt;c&&new Date(c)<o&&(e++,t.push({Number:e,Key:i,SavedAt:c}),localStorage.removeItem(i))}catch{}}t.length>0&&(console.info(`Deleted ${t.length} localStorage item(s) older than ${o} days:`),console.table(t))}}async hasLocalDraftForUpdate(){if(this.hasStartedEditing)return!1;if(this.pageBuilderStateStore.getConfigPageBuilder&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate&&typeof this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType=="string"&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType==="update"){const e=this.getLocalStorageItemName.value;if(typeof e=="string"){const t=localStorage.getItem(e);if(t)try{await this.delay(500);const o=JSON.parse(t),n=this.getComponents.value;return JSON.stringify(o.components)!==JSON.stringify(n)}catch{return!1}}}return!1}startEditing(){this.hasStartedEditing=!0}async resumeEditingForUpdate(){if(this.pageBuilderStateStore.getConfigPageBuilder&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate&&typeof this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType=="string"&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType==="update"){const e=this.getLocalStorageItemName.value;if(typeof e=="string"){const t=localStorage.getItem(e);if(t)try{const o=JSON.parse(t);o&&Array.isArray(o.components)&&(this.pageBuilderStateStore.setComponents(o.components),localStorage.removeItem(e),await s.nextTick(),await this.addListenersToEditableElements(),await this.handleAutoSave())}catch(o){console.error("Failed to parse local draft:",o)}}}}getStorageItemNameForResource(){return this.getLocalStorageItemName.value}loadStoredComponentsFromStorage(){if(!this.getLocalStorageItemName.value)return!1;if(this.getLocalStorageItemName.value&&typeof this.getLocalStorageItemName.value=="string"&&localStorage.getItem(this.getLocalStorageItemName.value)){const e=localStorage.getItem(this.getLocalStorageItemName.value);if(e)return e}return!1}async updateBasePrimaryImage(){this.getElement.value&&this.getCurrentImage.value&&this.getCurrentImage.value.src&&(await this.nextTick,this.pageBuilderStateStore.setBasePrimaryImage(`${this.getCurrentImage.value.src}`),await this.handleAutoSave())}setBasePrimaryImageFromCurrent(){if(!this.getElement.value)return;const e=document.createElement("div");e.innerHTML=this.getElement.value.outerHTML;const t=e.getElementsByTagName("img"),o=e.getElementsByTagName("div");if(t.length===1&&o.length===0){this.pageBuilderStateStore.setBasePrimaryImage(t[0].src);return}this.pageBuilderStateStore.setBasePrimaryImage(null)}handleHyperlink(e,t,o){var a;if(this.pageBuilderStateStore.setHyperlinkAbility(!0),!this.getElement.value||!(this.getElement.value instanceof HTMLElement)||typeof this.getElement.value.closest!="function")return;this.getElement.value.closest("a")!==null&&this.pageBuilderStateStore.setHyperlinkAbility(!1);const i=(a=this.getElement.value)==null?void 0:a.tagName.toUpperCase();if(i!=="P"&&i!=="H1"&&i!=="H2"&&i!=="H3"&&i!=="H4"&&i!=="H5"&&i!=="H6"&&this.pageBuilderStateStore.setHyperlinkAbility(!1),e===void 0){Z(this,K,jm).call(this);return}Z(this,K,Fm).call(this,e,t||null,o||!1)}async addComponent(e){try{const t=this.cloneCompObjForDOMInsertion({html_code:e.html_code,id:e.id,title:e.title});this.pageBuilderStateStore.setPushComponents({component:t,componentArrayAddMethod:this.getComponentArrayAddMethod.value||"push"}),await s.nextTick(),await this.addListenersToEditableElements(),await this.handleAutoSave()}catch(t){console.error("Error adding component:",t)}}setComponentsFromData(e){const t=e.trim();t.startsWith("[")||t.startsWith("{")?Z(this,K,Dl).call(this,t):t.startsWith("<")?Z(this,K,Hm).call(this,t):Z(this,K,Dl).call(this,t)}mountComponentsToDOM(e,t){if(this.pageBuilderStateStore.setComponents([]),!this.pageBuilderStateStore.getConfigPageBuilder)return;t&&e!==void 0&&this.setComponentsFromData(e);const o=this.loadStoredComponentsFromStorage();this.pageBuilderStateStore.getConfigPageBuilder&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate&&typeof this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType=="string"&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType==="create"&&o&&this.setComponentsFromData(o),this.pageBuilderStateStore.getConfigPageBuilder&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate&&typeof this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType=="string"&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType==="update"&&e&&this.setComponentsFromData(e)}async toggleTipTapModal(e){this.pageBuilderStateStore.setShowModalTipTap(e),e||await this.handleAutoSave()}async initializeElementStyles(){await new Promise(e=>requestAnimationFrame(e)),this.handleHyperlink(void 0,null,!1),this.handleOpacity(void 0),this.handleBackgroundOpacity(void 0),this.setBasePrimaryImageFromCurrent(),this.handleBorderStyle(void 0),this.handleBorderWidth(void 0),this.handleBorderColor(void 0),this.handleBorderRadiusGlobal(void 0),this.handleBorderRadiusTopLeft(void 0),this.handleBorderRadiusTopRight(void 0),this.handleBorderRadiusBottomleft(void 0),this.handleBorderRadiusBottomRight(void 0),this.handleFontSize(void 0),this.handleFontWeight(void 0),this.handleFontFamily(void 0),this.handleFontStyle(void 0),this.handleVerticalPadding(void 0),this.handleHorizontalPadding(void 0),this.handleVerticalMargin(void 0),this.handleHorizontalMargin(void 0),this.handleBackgroundColor(void 0),this.handleTextColor(void 0),await Z(this,K,_m).call(this)}}K=new WeakSet,me=function(e,t,o){const n=this.getElement.value;if(!n)return;const i=t.find(l=>n.classList.contains(l));let a=i||"none";return e===void 0?(typeof o=="string"&&o.length>2&&this.pageBuilderStateStore[o](a),i):(typeof e=="string"&&e!=="none"?(a&&n.classList.contains(a)&&n.classList.remove(a),n.classList.add(e),a=e):typeof e=="string"&&e==="none"&&a&&(n.classList.remove(a),a=e),typeof o=="string"&&o.length>2&&(this.pageBuilderStateStore[o](a),this.pageBuilderStateStore.setElement(n)),i)},Lm=function(e){Z(this,K,Rm).call(this,e),e.tagName==="IMG"&&e.classList.add("smooth-transition"),e.tagName==="DIV"&&e.classList.length},Rm=function(e){var t;if(e&&this.NoneListernesTags.includes(e.tagName)&&(e.previousElementSibling&&e.previousElementSibling.tagName==="IMG"||e.nextElementSibling&&e.nextElementSibling.tagName==="IMG")){const o=document.createElement("div");(t=e.parentNode)==null||t.insertBefore(o,e),o.appendChild(e)}},ta=new WeakMap,ra=new WeakMap,oa=new WeakMap,zm=async function(){await new Promise(n=>requestAnimationFrame(n));const e=document.querySelector("#pagebuilder");if(!e)return;const t=e.querySelector("[hovered]");t&&t.removeAttribute("hovered");const o=e.querySelector("[selected]");o&&o.removeAttribute("selected")},_m=async function(){var t;await new Promise(o=>requestAnimationFrame(o));const e=Array.from(((t=this.getElement.value)==null?void 0:t.classList)||[]);this.pageBuilderStateStore.setCurrentClasses(e)},na=new WeakMap,Fm=function(e,t,o){if(!this.getElement.value||!(this.getElement.value instanceof HTMLElement)||typeof this.getElement.value.closest!="function")return;const n=this.getElement.value.closest("a"),i=this.getElement.value.querySelector("a");this.pageBuilderStateStore.setHyperlinkError(null);const a=/^https?:\/\//,l=s.ref(!0);if(e===!0&&t!==null&&(l.value=a.test(t)),l.value===!1){this.pageBuilderStateStore.setHyperlinkMessage(null),this.pageBuilderStateStore.setHyperlinkError("URL is not valid");return}if(e===!0&&typeof t=="string"){if(i!==null&&t.length!==0){i.href=t,o===!0&&(i.target="_blank"),o===!1&&i.removeAttribute("target"),i.textContent=this.getElement.value.textContent,this.pageBuilderStateStore.setHyperlinkMessage("Succesfully updated element hyperlink"),this.pageBuilderStateStore.setElementContainsHyperlink(!0);return}if(i===null&&t.length!==0&&n===null){const c=document.createElement("a");c.href=t,o===!0&&(c.target="_blank"),c.textContent=this.getElement.value.textContent,this.getElement.value.textContent="",this.getElement.value.appendChild(c),this.pageBuilderStateStore.setHyperlinkMessage("Successfully added hyperlink to element"),this.pageBuilderStateStore.setElementContainsHyperlink(!0);return}}if(e===!1&&t==="removeHyperlink"){const c=this.getElement.value.textContent||"",d=document.createTextNode(c);this.getElement.value.textContent="",this.getElement.value.appendChild(d),this.pageBuilderStateStore.setHyberlinkEnable(!1),this.pageBuilderStateStore.setElementContainsHyperlink(!1)}},jm=function(){if(!this.getElement.value)return;const e=this.getElement.value.querySelector("a");if(e!==null){this.pageBuilderStateStore.setHyberlinkEnable(!0),this.pageBuilderStateStore.setElementContainsHyperlink(!0),this.pageBuilderStateStore.setHyperlinkInput(e.href),this.pageBuilderStateStore.setHyperlinkMessage(null),this.pageBuilderStateStore.setHyperlinkError(null),e.target==="_blank"&&this.pageBuilderStateStore.setOpenHyperlinkInNewTab(!0),e.target!=="_blank"&&this.pageBuilderStateStore.setOpenHyperlinkInNewTab(!1);return}this.pageBuilderStateStore.setElementContainsHyperlink(!1),this.pageBuilderStateStore.setHyperlinkInput(""),this.pageBuilderStateStore.setHyperlinkError(null),this.pageBuilderStateStore.setHyperlinkMessage(null),this.pageBuilderStateStore.setHyberlinkEnable(!1)},Dl=function(e){try{const t=JSON.parse(e);let o=[],n;Array.isArray(t)?o=t:t&&Array.isArray(t.components)&&(o=t.components,n=t.pageBuilderContentSavedAt);let i=[];o.length>0&&(i=o.map(l=>{const u=new DOMParser().parseFromString(l.html_code,"text/html").querySelector("section");if(u){if(u.hasAttribute("data-componentid"))l.id=u.getAttribute("data-componentid");else{const m=ba();u.setAttribute("data-componentid",m),l.id=m}const p=l.title||"Untitled Component";u.setAttribute("data-component-title",p),l.title=p,l.html_code=u.outerHTML}return l})),this.pageBuilderStateStore.setComponents(i);const a={pageBuilderContentSavedAt:t.pageBuilderContentSavedAt||new Date().toISOString(),components:i};this.getLocalStorageItemName.value&&typeof this.getLocalStorageItemName.value=="string"&&localStorage.setItem(this.getLocalStorageItemName.value,JSON.stringify(a))}catch(t){console.error("Error parsing JSON components:",t),this.pageBuilderStateStore.setComponents([])}},Hm=function(e){try{const n=new DOMParser().parseFromString(e,"text/html").querySelectorAll("section"),i=[];n.forEach(a=>{const l=a;l.hasAttribute("data-componentid")||l.setAttribute("data-componentid",ba());const c=l.getAttribute("data-componentid"),d=l.getAttribute("title")||l.getAttribute("data-component-title")||"Untitled Component";l.setAttribute("data-component-title",d),i.push({html_code:l.outerHTML,id:c,title:d})}),this.pageBuilderStateStore.setComponents(i)}catch(t){console.error("Error parsing HTML components:",t),this.pageBuilderStateStore.setComponents([])}};const Jm={class:"font-sans"},Gm={key:0,class:"fixed inset-0 z-40 flex items-center justify-center mx-4",role:"dialog","aria-modal":"true","aria-labelledby":"dialog-title"},Ym={class:"h-16 flex items-center justify-between border-b border-gray-200 bg-white mb-2"},Xm={as:"h3",class:"myQuaternaryHeader my-0 py-0"},Dr=s.defineComponent({__name:"ModalBuilder",props:{title:{type:String,required:!0},showModalBuilder:{type:Boolean,default:!1},maxWidth:{type:String,default:"2xl"},minHeight:{type:String},maxHeight:{type:String}},emits:["closeMainModalBuilder"],setup(r,{emit:e}){const t=r,o=e,n=()=>{o("closeMainModalBuilder")},i=s.computed(()=>({sm:"lg:max-w-sm",md:"lg:max-w-md",lg:"lg:max-w-lg",xl:"lg:max-w-xl","2xl":"lg:max-w-2xl","3xl":"lg:max-w-3xl","4xl":"lg:max-w-4xl","5xl":"lg:max-w-5xl","6xl":"lg:max-w-6xl","7xl":"lg:max-w-7xl",full:"lg:max-w-full",screen:"lg:w-screen sm:max-w-none"})[t.maxWidth]);return(a,l)=>(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[s.createElementVNode("div",Jm,[r.showModalBuilder?(s.openBlock(),s.createElementBlock("div",Gm,[s.createElementVNode("div",{class:"fixed inset-0 bg-black/50 transition-opacity",onClick:n}),s.createElementVNode("div",{class:s.normalizeClass(["relative inline-block bg-white rounded-xl text-left overflow-hidden shadow-xl transform transition-all max-w-[96vh] max-h-[98vh] overflow-y-auto w-full px-4",[i.value?i.value:"",r.minHeight?r.minHeight:"",r.maxHeight?r.maxHeight:""]])},[s.createElementVNode("div",Ym,[s.createElementVNode("h3",Xm,s.toDisplayString(r.title),1),s.createElementVNode("div",{class:"h-10 w-10 flex-end cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white hover:fill-white focus-visible:ring-0",onClick:n},l[0]||(l[0]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," close ",-1)]))]),s.renderSlot(a.$slots,"default")],2)])):s.createCommentVNode("",!0)])]))}});function Cn(r,e,t){return Array.isArray(r)?(r.length=Math.max(r.length,e),r.splice(e,1,t),t):(r[e]=t,t)}function ya(r,e){if(Array.isArray(r)){r.splice(e,1);return}delete r[e]}function Qm(){return jl().__VUE_DEVTOOLS_GLOBAL_HOOK__}function jl(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Zm=typeof Proxy=="function",$m="devtools-plugin:setup",eh="plugin:settings:set";let Ir,va;function th(){var r;return Ir!==void 0||(typeof window<"u"&&window.performance?(Ir=!0,va=window.performance):typeof globalThis<"u"&&(!((r=globalThis.perf_hooks)===null||r===void 0)&&r.performance)?(Ir=!0,va=globalThis.perf_hooks.performance):Ir=!1),Ir}function rh(){return th()?va.now():Date.now()}class oh{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const o={};if(e.settings)for(const a in e.settings){const l=e.settings[a];o[a]=l.defaultValue}const n=`__vue-devtools-plugin-settings__${e.id}`;let i=Object.assign({},o);try{const a=localStorage.getItem(n),l=JSON.parse(a);Object.assign(i,l)}catch{}this.fallbacks={getSettings(){return i},setSettings(a){try{localStorage.setItem(n,JSON.stringify(a))}catch{}i=a},now(){return rh()}},t&&t.on(eh,(a,l)=>{a===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(a,l)=>this.target?this.target.on[l]:(...c)=>{this.onQueue.push({method:l,args:c})}}),this.proxiedTarget=new Proxy({},{get:(a,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...c)=>(this.targetQueue.push({method:l,args:c,resolve:()=>{}}),this.fallbacks[l](...c)):(...c)=>new Promise(d=>{this.targetQueue.push({method:l,args:c,resolve:d})})})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function Hl(r,e){const t=r,o=jl(),n=Qm(),i=Zm&&t.enableEarlyProxy;if(n&&(o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))n.emit($m,r,e);else{const a=i?new oh(t,n):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:t,setupFn:e,proxy:a}),a&&e(a.proxiedTarget)}}/*!
|
|
2
2
|
* pinia v2.3.1
|
|
3
3
|
* (c) 2025 Eduardo San Martin Morote
|
|
4
4
|
* @license MIT
|
|
5
|
-
*/let wo;const yo=r=>wo=r,Wl=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function
|
|
5
|
+
*/let wo;const yo=r=>wo=r,Wl=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function cr(r){return r&&typeof r=="object"&&Object.prototype.toString.call(r)==="[object Object]"&&typeof r.toJSON!="function"}var mt;(function(r){r.direct="direct",r.patchObject="patch object",r.patchFunction="patch function"})(mt||(mt={}));const Ft=typeof window<"u",ql=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function nh(r,{autoBom:e=!1}={}){return e&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(r.type)?new Blob(["\uFEFF",r],{type:r.type}):r}function xa(r,e,t){const o=new XMLHttpRequest;o.open("GET",r),o.responseType="blob",o.onload=function(){Jl(o.response,e,t)},o.onerror=function(){console.error("could not download file")},o.send()}function Ul(r){const e=new XMLHttpRequest;e.open("HEAD",r,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function Nn(r){try{r.dispatchEvent(new MouseEvent("click"))}catch{const t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),r.dispatchEvent(t)}}const Bn=typeof navigator=="object"?navigator:{userAgent:""},Kl=/Macintosh/.test(Bn.userAgent)&&/AppleWebKit/.test(Bn.userAgent)&&!/Safari/.test(Bn.userAgent),Jl=Ft?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!Kl?ih:"msSaveOrOpenBlob"in Bn?ah:sh:()=>{};function ih(r,e="download",t){const o=document.createElement("a");o.download=e,o.rel="noopener",typeof r=="string"?(o.href=r,o.origin!==location.origin?Ul(o.href)?xa(r,e,t):(o.target="_blank",Nn(o)):Nn(o)):(o.href=URL.createObjectURL(r),setTimeout(function(){URL.revokeObjectURL(o.href)},4e4),setTimeout(function(){Nn(o)},0))}function ah(r,e="download",t){if(typeof r=="string")if(Ul(r))xa(r,e,t);else{const o=document.createElement("a");o.href=r,o.target="_blank",setTimeout(function(){Nn(o)})}else navigator.msSaveOrOpenBlob(nh(r,t),e)}function sh(r,e,t,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),typeof r=="string")return xa(r,e,t);const n=r.type==="application/octet-stream",i=/constructor/i.test(String(ql.HTMLElement))||"safari"in ql,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||n&&i||Kl)&&typeof FileReader<"u"){const l=new FileReader;l.onloadend=function(){let c=l.result;if(typeof c!="string")throw o=null,new Error("Wrong reader.result type");c=a?c:c.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=c:location.assign(c),o=null},l.readAsDataURL(r)}else{const l=URL.createObjectURL(r);o?o.location.assign(l):location.href=l,o=null,setTimeout(function(){URL.revokeObjectURL(l)},4e4)}}function ge(r,e){const t="🍍 "+r;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(t,e):e==="error"?console.error(t):e==="warn"?console.warn(t):console.log(t)}function ka(r){return"_a"in r&&"install"in r}function Gl(){if(!("clipboard"in navigator))return ge("Your browser doesn't support the Clipboard API","error"),!0}function Yl(r){return r instanceof Error&&r.message.toLowerCase().includes("document is not focused")?(ge('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function lh(r){if(!Gl())try{await navigator.clipboard.writeText(JSON.stringify(r.state.value)),ge("Global state copied to clipboard.")}catch(e){if(Yl(e))return;ge("Failed to serialize the state. Check the console for more details.","error"),console.error(e)}}async function ch(r){if(!Gl())try{Xl(r,JSON.parse(await navigator.clipboard.readText())),ge("Global state pasted from clipboard.")}catch(e){if(Yl(e))return;ge("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(e)}}async function dh(r){try{Jl(new Blob([JSON.stringify(r.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(e){ge("Failed to export the state as JSON. Check the console for more details.","error"),console.error(e)}}let St;function uh(){St||(St=document.createElement("input"),St.type="file",St.accept=".json");function r(){return new Promise((e,t)=>{St.onchange=async()=>{const o=St.files;if(!o)return e(null);const n=o.item(0);return e(n?{text:await n.text(),file:n}:null)},St.oncancel=()=>e(null),St.onerror=t,St.click()})}return r}async function ph(r){try{const t=await uh()();if(!t)return;const{text:o,file:n}=t;Xl(r,JSON.parse(o)),ge(`Global state imported from "${n.name}".`)}catch(e){ge("Failed to import the state from JSON. Check the console for more details.","error"),console.error(e)}}function Xl(r,e){for(const t in e){const o=r.state.value[t];o?Object.assign(o,e[t]):r.state.value[t]=e[t]}}function at(r){return{_custom:{display:r}}}const Ql="🍍 Pinia (root)",Mn="_root";function mh(r){return ka(r)?{id:Mn,label:Ql}:{id:r.$id,label:r.$id}}function hh(r){if(ka(r)){const t=Array.from(r._s.keys()),o=r._s;return{state:t.map(i=>({editable:!0,key:i,value:r.state.value[i]})),getters:t.filter(i=>o.get(i)._getters).map(i=>{const a=o.get(i);return{editable:!1,key:i,value:a._getters.reduce((l,c)=>(l[c]=a[c],l),{})}})}}const e={state:Object.keys(r.$state).map(t=>({editable:!0,key:t,value:r.$state[t]}))};return r._getters&&r._getters.length&&(e.getters=r._getters.map(t=>({editable:!1,key:t,value:r[t]}))),r._customProperties.size&&(e.customProperties=Array.from(r._customProperties).map(t=>({editable:!0,key:t,value:r[t]}))),e}function fh(r){return r?Array.isArray(r)?r.reduce((e,t)=>(e.keys.push(t.key),e.operations.push(t.type),e.oldValue[t.key]=t.oldValue,e.newValue[t.key]=t.newValue,e),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:at(r.type),key:at(r.key),oldValue:r.oldValue,newValue:r.newValue}:{}}function gh(r){switch(r){case mt.direct:return"mutation";case mt.patchFunction:return"$patch";case mt.patchObject:return"$patch";default:return"unknown"}}let Lr=!0;const Tn=[],dr="pinia:mutations",Me="pinia",{assign:bh}=Object,On=r=>"🍍 "+r;function wh(r,e){Hl({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Tn,app:r},t=>{typeof t.now!="function"&&ge("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),t.addTimelineLayer({id:dr,label:"Pinia 🍍",color:15064968}),t.addInspector({id:Me,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{lh(e)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await ch(e),t.sendInspectorTree(Me),t.sendInspectorState(Me)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{dh(e)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await ph(e),t.sendInspectorTree(Me),t.sendInspectorState(Me)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:o=>{const n=e._s.get(o);n?typeof n.$reset!="function"?ge(`Cannot reset "${o}" store because it doesn't have a "$reset" method implemented.`,"warn"):(n.$reset(),ge(`Store "${o}" reset.`)):ge(`Cannot reset "${o}" store because it wasn't found.`,"warn")}}]}),t.on.inspectComponent((o,n)=>{const i=o.componentInstance&&o.componentInstance.proxy;if(i&&i._pStores){const a=o.componentInstance.proxy._pStores;Object.values(a).forEach(l=>{o.instanceData.state.push({type:On(l.$id),key:"state",editable:!0,value:l._isOptionsAPI?{_custom:{value:s.toRaw(l.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>l.$reset()}]}}:Object.keys(l.$state).reduce((c,d)=>(c[d]=l.$state[d],c),{})}),l._getters&&l._getters.length&&o.instanceData.state.push({type:On(l.$id),key:"getters",editable:!1,value:l._getters.reduce((c,d)=>{try{c[d]=l[d]}catch(u){c[d]=u}return c},{})})})}}),t.on.getInspectorTree(o=>{if(o.app===r&&o.inspectorId===Me){let n=[e];n=n.concat(Array.from(e._s.values())),o.rootNodes=(o.filter?n.filter(i=>"$id"in i?i.$id.toLowerCase().includes(o.filter.toLowerCase()):Ql.toLowerCase().includes(o.filter.toLowerCase())):n).map(mh)}}),globalThis.$pinia=e,t.on.getInspectorState(o=>{if(o.app===r&&o.inspectorId===Me){const n=o.nodeId===Mn?e:e._s.get(o.nodeId);if(!n)return;n&&(o.nodeId!==Mn&&(globalThis.$store=s.toRaw(n)),o.state=hh(n))}}),t.on.editInspectorState((o,n)=>{if(o.app===r&&o.inspectorId===Me){const i=o.nodeId===Mn?e:e._s.get(o.nodeId);if(!i)return ge(`store "${o.nodeId}" not found`,"error");const{path:a}=o;ka(i)?a.unshift("state"):(a.length!==1||!i._customProperties.has(a[0])||a[0]in i.$state)&&a.unshift("$state"),Lr=!1,o.set(i,a,o.state.value),Lr=!0}}),t.on.editComponentState(o=>{if(o.type.startsWith("🍍")){const n=o.type.replace(/^🍍\s*/,""),i=e._s.get(n);if(!i)return ge(`store "${n}" not found`,"error");const{path:a}=o;if(a[0]!=="state")return ge(`Invalid path for store "${n}":
|
|
6
6
|
${a}
|
|
7
|
-
Only state can be modified.`);a[0]="$state",Lr=!1,o.set(i,a,o.state.value),Lr=!0}})})}function yh(r,e){Tn.includes(On(e.$id))||Tn.push(On(e.$id)),Hl({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Tn,app:r,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},t=>{const o=typeof t.now=="function"?t.now.bind(t):Date.now;e.$onAction(({after:a,onError:l,name:
|
|
7
|
+
Only state can be modified.`);a[0]="$state",Lr=!1,o.set(i,a,o.state.value),Lr=!0}})})}function yh(r,e){Tn.includes(On(e.$id))||Tn.push(On(e.$id)),Hl({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Tn,app:r,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},t=>{const o=typeof t.now=="function"?t.now.bind(t):Date.now;e.$onAction(({after:a,onError:l,name:c,args:d})=>{const u=Zl++;t.addTimelineEvent({layerId:dr,event:{time:o(),title:"🛫 "+c,subtitle:"start",data:{store:at(e.$id),action:at(c),args:d},groupId:u}}),a(p=>{jt=void 0,t.addTimelineEvent({layerId:dr,event:{time:o(),title:"🛬 "+c,subtitle:"end",data:{store:at(e.$id),action:at(c),args:d,result:p},groupId:u}})}),l(p=>{jt=void 0,t.addTimelineEvent({layerId:dr,event:{time:o(),logType:"error",title:"💥 "+c,subtitle:"end",data:{store:at(e.$id),action:at(c),args:d,error:p},groupId:u}})})},!0),e._customProperties.forEach(a=>{s.watch(()=>s.unref(e[a]),(l,c)=>{t.notifyComponentUpdate(),t.sendInspectorState(Me),Lr&&t.addTimelineEvent({layerId:dr,event:{time:o(),title:"Change",subtitle:a,data:{newValue:l,oldValue:c},groupId:jt}})},{deep:!0})}),e.$subscribe(({events:a,type:l},c)=>{if(t.notifyComponentUpdate(),t.sendInspectorState(Me),!Lr)return;const d={time:o(),title:gh(l),data:bh({store:at(e.$id)},fh(a)),groupId:jt};l===mt.patchFunction?d.subtitle="⤵️":l===mt.patchObject?d.subtitle="🧩":a&&!Array.isArray(a)&&(d.subtitle=a.type),a&&(d.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:a}}),t.addTimelineEvent({layerId:dr,event:d})},{detached:!0,flush:"sync"});const n=e._hotUpdate;e._hotUpdate=s.markRaw(a=>{n(a),t.addTimelineEvent({layerId:dr,event:{time:o(),title:"🔥 "+e.$id,subtitle:"HMR update",data:{store:at(e.$id),info:at("HMR update")}}}),t.notifyComponentUpdate(),t.sendInspectorTree(Me),t.sendInspectorState(Me)});const{$dispose:i}=e;e.$dispose=()=>{i(),t.notifyComponentUpdate(),t.sendInspectorTree(Me),t.sendInspectorState(Me),t.getSettings().logStoreChanges&&ge(`Disposed "${e.$id}" store 🗑`)},t.notifyComponentUpdate(),t.sendInspectorTree(Me),t.sendInspectorState(Me),t.getSettings().logStoreChanges&&ge(`"${e.$id}" store installed 🆕`)})}let Zl=0,jt;function $l(r,e,t){const o=e.reduce((n,i)=>(n[i]=s.toRaw(r)[i],n),{});for(const n in o)r[n]=function(){const i=Zl,a=t?new Proxy(r,{get(...c){return jt=i,Reflect.get(...c)},set(...c){return jt=i,Reflect.set(...c)}}):r;jt=i;const l=o[n].apply(a,arguments);return jt=void 0,l}}function vh({app:r,store:e,options:t}){if(!e.$id.startsWith("__hot:")){if(e._isOptionsAPI=!!t.state,!e._p._testing){$l(e,Object.keys(t.actions),e._isOptionsAPI);const o=e._hotUpdate;s.toRaw(e)._hotUpdate=function(n){o.apply(this,arguments),$l(e,Object.keys(n._hmrPayload.actions),!!e._isOptionsAPI)}}yh(r,e)}}function ec(){const r=s.effectScope(!0),e=r.run(()=>s.ref({}));let t=[],o=[];const n=s.markRaw({install(i){yo(n),n._a=i,i.provide(Wl,n),i.config.globalProperties.$pinia=n,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Ft&&wh(i,n),o.forEach(a=>t.push(a)),o=[]},use(i){return this._a?t.push(i):o.push(i),this},_p:t,_a:null,_e:r,_s:new Map,state:e});return process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Ft&&typeof Proxy<"u"&&n.use(vh),n}function tc(r,e){for(const t in e){const o=e[t];if(!(t in r))continue;const n=r[t];cr(n)&&cr(o)&&!s.isRef(o)&&!s.isReactive(o)?r[t]=tc(n,o):r[t]=o}return r}const rc=()=>{};function oc(r,e,t,o=rc){r.push(e);const n=()=>{const i=r.indexOf(e);i>-1&&(r.splice(i,1),o())};return!t&&s.getCurrentScope()&&s.onScopeDispose(n),n}function Rr(r,...e){r.slice().forEach(t=>{t(...e)})}const xh=r=>r(),nc=Symbol(),Ea=Symbol();function Sa(r,e){r instanceof Map&&e instanceof Map?e.forEach((t,o)=>r.set(o,t)):r instanceof Set&&e instanceof Set&&e.forEach(r.add,r);for(const t in e){if(!e.hasOwnProperty(t))continue;const o=e[t],n=r[t];cr(n)&&cr(o)&&r.hasOwnProperty(t)&&!s.isRef(o)&&!s.isReactive(o)?r[t]=Sa(n,o):r[t]=o}return r}const kh=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Eh(r){return!cr(r)||!r.hasOwnProperty(kh)}const{assign:Ge}=Object;function ic(r){return!!(s.isRef(r)&&r.effect)}function ac(r,e,t,o){const{state:n,actions:i,getters:a}=e,l=t.state.value[r];let c;function d(){!l&&(process.env.NODE_ENV==="production"||!o)&&(t.state.value[r]=n?n():{});const u=process.env.NODE_ENV!=="production"&&o?s.toRefs(s.ref(n?n():{}).value):s.toRefs(t.state.value[r]);return Ge(u,i,Object.keys(a||{}).reduce((p,m)=>(process.env.NODE_ENV!=="production"&&m in u&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${m}" in store "${r}".`),p[m]=s.markRaw(s.computed(()=>{yo(t);const h=t._s.get(r);return a[m].call(h,h)})),p),{}))}return c=Ca(r,d,e,t,o,!0),c}function Ca(r,e,t={},o,n,i){let a;const l=Ge({actions:{}},t);if(process.env.NODE_ENV!=="production"&&!o._e.active)throw new Error("Pinia destroyed");const c={deep:!0};process.env.NODE_ENV!=="production"&&(c.onTrigger=B=>{d?h=B:d==!1&&!C._hotUpdating&&(Array.isArray(h)?h.push(B):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let d,u,p=[],m=[],h;const f=o.state.value[r];!i&&!f&&(process.env.NODE_ENV==="production"||!n)&&(o.state.value[r]={});const g=s.ref({});let b;function y(B){let E;d=u=!1,process.env.NODE_ENV!=="production"&&(h=[]),typeof B=="function"?(B(o.state.value[r]),E={type:mt.patchFunction,storeId:r,events:h}):(Sa(o.state.value[r],B),E={type:mt.patchObject,payload:B,storeId:r,events:h});const P=b=Symbol();s.nextTick().then(()=>{b===P&&(d=!0)}),u=!0,Rr(p,E,o.state.value[r])}const k=i?function(){const{state:E}=t,P=E?E():{};this.$patch(_=>{Ge(_,P)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${r}" is built using the setup syntax and does not implement $reset().`)}:rc;function v(){a.stop(),p=[],m=[],o._s.delete(r)}const w=(B,E="")=>{if(nc in B)return B[Ea]=E,B;const P=function(){yo(o);const _=Array.from(arguments),ee=[],re=[];function J(ne){ee.push(ne)}function z(ne){re.push(ne)}Rr(m,{args:_,name:P[Ea],store:C,after:J,onError:z});let X;try{X=B.apply(this&&this.$id===r?this:C,_)}catch(ne){throw Rr(re,ne),ne}return X instanceof Promise?X.then(ne=>(Rr(ee,ne),ne)).catch(ne=>(Rr(re,ne),Promise.reject(ne))):(Rr(ee,X),X)};return P[nc]=!0,P[Ea]=E,P},S=s.markRaw({actions:{},getters:{},state:[],hotState:g}),x={_p:o,$id:r,$onAction:oc.bind(null,m),$patch:y,$reset:k,$subscribe(B,E={}){const P=oc(p,B,E.detached,()=>_()),_=a.run(()=>s.watch(()=>o.state.value[r],ee=>{(E.flush==="sync"?u:d)&&B({storeId:r,type:mt.direct,events:h},ee)},Ge({},c,E)));return P},$dispose:v},C=s.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Ft?Ge({_hmrPayload:S,_customProperties:s.markRaw(new Set)},x):x);o._s.set(r,C);const D=(o._a&&o._a.runWithContext||xh)(()=>o._e.run(()=>(a=s.effectScope()).run(()=>e({action:w}))));for(const B in D){const E=D[B];if(s.isRef(E)&&!ic(E)||s.isReactive(E))process.env.NODE_ENV!=="production"&&n?Cn(g.value,B,s.toRef(D,B)):i||(f&&Eh(E)&&(s.isRef(E)?E.value=f[B]:Sa(E,f[B])),o.state.value[r][B]=E),process.env.NODE_ENV!=="production"&&S.state.push(B);else if(typeof E=="function"){const P=process.env.NODE_ENV!=="production"&&n?E:w(E,B);D[B]=P,process.env.NODE_ENV!=="production"&&(S.actions[B]=E),l.actions[B]=E}else process.env.NODE_ENV!=="production"&&ic(E)&&(S.getters[B]=i?t.getters[B]:E,Ft&&(D._getters||(D._getters=s.markRaw([]))).push(B))}if(Ge(C,D),Ge(s.toRaw(C),D),Object.defineProperty(C,"$state",{get:()=>process.env.NODE_ENV!=="production"&&n?g.value:o.state.value[r],set:B=>{if(process.env.NODE_ENV!=="production"&&n)throw new Error("cannot set hotState");y(E=>{Ge(E,B)})}}),process.env.NODE_ENV!=="production"&&(C._hotUpdate=s.markRaw(B=>{C._hotUpdating=!0,B._hmrPayload.state.forEach(E=>{if(E in C.$state){const P=B.$state[E],_=C.$state[E];typeof P=="object"&&cr(P)&&cr(_)?tc(P,_):B.$state[E]=_}Cn(C,E,s.toRef(B.$state,E))}),Object.keys(C.$state).forEach(E=>{E in B.$state||ya(C,E)}),d=!1,u=!1,o.state.value[r]=s.toRef(B._hmrPayload,"hotState"),u=!0,s.nextTick().then(()=>{d=!0});for(const E in B._hmrPayload.actions){const P=B[E];Cn(C,E,w(P,E))}for(const E in B._hmrPayload.getters){const P=B._hmrPayload.getters[E],_=i?s.computed(()=>(yo(o),P.call(C,C))):P;Cn(C,E,_)}Object.keys(C._hmrPayload.getters).forEach(E=>{E in B._hmrPayload.getters||ya(C,E)}),Object.keys(C._hmrPayload.actions).forEach(E=>{E in B._hmrPayload.actions||ya(C,E)}),C._hmrPayload=B._hmrPayload,C._getters=B._getters,C._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Ft){const B={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(E=>{Object.defineProperty(C,E,Ge({value:C[E]},B))})}return o._p.forEach(B=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Ft){const E=a.run(()=>B({store:C,app:o._a,pinia:o,options:l}));Object.keys(E||{}).forEach(P=>C._customProperties.add(P)),Ge(C,E)}else Ge(C,a.run(()=>B({store:C,app:o._a,pinia:o,options:l})))}),process.env.NODE_ENV!=="production"&&C.$state&&typeof C.$state=="object"&&typeof C.$state.constructor=="function"&&!C.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
8
8
|
state: () => new MyClass()
|
|
9
|
-
Found in store "${C.$id}".`),
|
|
9
|
+
Found in store "${C.$id}".`),f&&i&&t.hydrate&&t.hydrate(C.$state,f),d=!0,u=!0,C}/*! #__NO_SIDE_EFFECTS__ */function Sh(r,e,t){let o,n;const i=typeof e=="function";o=r,n=i?t:e;function a(l,c){const d=s.hasInjectionContext();if(l=(process.env.NODE_ENV==="test"&&wo&&wo._testing?null:l)||(d?s.inject(Wl,null):null),l&&yo(l),process.env.NODE_ENV!=="production"&&!wo)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
10
10
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
11
|
-
This will fail in production.`);l=wo,l._s.has(o)||(i?Ca(o,e,n,l):ad(o,n,l),process.env.NODE_ENV!=="production"&&(a._pinia=l));const p=l._s.get(o);if(process.env.NODE_ENV!=="production"&&d){const u="__hot:"+o,m=i?Ca(u,e,n,l,!0):ad(u,Ge({},n),l,!0);d._hotUpdate(m),delete l.state.value[u],l._s.delete(u)}if(process.env.NODE_ENV!=="production"&&Ft){const u=s.getCurrentInstance();if(u&&u.proxy&&!d){const m=u.proxy,h="_pStores"in m?m._pStores:m._pStores={};h[o]=p}}return p}return a.$id=o,a}const sd=Sh("pageBuilderState",{state:()=>({componentArrayAddMethod:null,localStorageItemName:null,showModalTipTap:!1,menuRight:!0,borderStyle:null,borderWidth:null,borderColor:null,borderRadiusGlobal:null,borderRadiusTopLeft:null,borderRadiusTopRight:null,borderRadiusBottomleft:null,borderRadiusBottomRight:null,elementContainsHyperlink:null,hyperlinkAbility:null,hyperlinkInput:null,hyperlinkMessage:null,hyperlinkError:null,hyberlinkEnable:!1,openHyperlinkinkInNewTab:null,opacity:null,backgroundOpacity:null,textAreaVueModel:null,nextSibling:null,parentElement:null,restoredElement:null,currentClasses:[],fontVerticalPadding:null,fontHorizontalPadding:null,fontVerticalMargin:null,fontHorizontalMargin:null,fontStyle:null,fontFamily:null,fontWeight:null,fontBase:null,fontDesktop:null,fontTablet:null,fontMobile:null,backgroundColor:null,textColor:null,element:null,component:null,components:[],basePrimaryImage:null,configPageBuilder:null,currentImage:{src:""},currentPreviewImage:null,isSaving:!1}),getters:{getComponentArrayAddMethod(r){return r.componentArrayAddMethod},getLocalStorageItemName(r){return r.localStorageItemName},getShowModalTipTap(r){return r.showModalTipTap},getMenuRight(r){return r.menuRight},getBorderStyle(r){return r.borderStyle},getBorderWidth(r){return r.borderWidth},getBorderColor(r){return r.borderColor},getBorderRadiusGlobal(r){return r.borderRadiusGlobal},getBorderRadiusTopLeft(r){return r.borderRadiusTopLeft},getBorderRadiusTopRight(r){return r.borderRadiusTopRight},getBorderRadiusBottomleft(r){return r.borderRadiusBottomleft},getBorderRadiusBottomRight(r){return r.borderRadiusBottomRight},getElementContainsHyperlink(r){return r.elementContainsHyperlink},getHyperlinkAbility(r){return r.hyperlinkAbility},getHyperlinkInput(r){return r.hyperlinkInput},getHyperlinkMessage(r){return r.hyperlinkMessage},getHyperlinkError(r){return r.hyperlinkError},getHyberlinkEnable(r){return r.hyberlinkEnable},getOpenHyperlinkInNewTab(r){return r.openHyperlinkinkInNewTab},getOpacity(r){return r.opacity},getBackgroundOpacity(r){return r.backgroundOpacity},getTextAreaVueModel(r){return r.textAreaVueModel},getNextSibling(r){return r.nextSibling},getParentElement(r){return r.parentElement},getRestoredElement(r){return r.restoredElement},getCurrentClasses(r){return r.currentClasses},getFontStyle(r){return r.fontStyle},getFontVerticalPadding(r){return r.fontVerticalPadding},getFontHorizontalPadding(r){return r.fontHorizontalPadding},getFontVerticalMargin(r){return r.fontVerticalMargin},getFontHorizontalMargin(r){return r.fontHorizontalMargin},getFontFamily(r){return r.fontFamily},getFontWeight(r){return r.fontWeight},getFontBase(r){return r.fontBase},getFontDesktop(r){return r.fontDesktop},getFontTablet(r){return r.fontTablet},getFontMobile(r){return r.fontMobile},getBackgroundColor(r){return r.backgroundColor},getTextColor(r){return r.textColor},getElement(r){return r.element},getComponent(r){return r.component},getComponents(r){return r.components},getBasePrimaryImage(r){return r.basePrimaryImage},getConfigPageBuilder(r){return r.configPageBuilder},getCurrentImage(r){return r.currentImage},getCurrentPreviewImage(r){return r.currentPreviewImage},getIsSaving:r=>r.isSaving},actions:{setComponentArrayAddMethod(r){this.componentArrayAddMethod=r},setLocalStorageItemName(r){this.localStorageItemName=r},setShowModalTipTap(r){this.showModalTipTap=r},setMenuRight(r){this.menuRight=r},setBorderStyle(r){this.borderStyle=r},setBorderWidth(r){this.borderWidth=r},setBorderColor(r){this.borderColor=r},setBorderRadiusGlobal(r){this.borderRadiusGlobal=r},setBorderRadiusTopLeft(r){this.borderRadiusTopLeft=r},setBorderRadiusTopRight(r){this.borderRadiusTopRight=r},setBorderRadiusBottomleft(r){this.borderRadiusBottomleft=r},setBorderRadiusBottomRight(r){this.borderRadiusBottomRight=r},setElementContainsHyperlink(r){this.elementContainsHyperlink=r},setHyperlinkAbility(r){this.hyperlinkAbility=r},setHyperlinkInput(r){this.hyperlinkInput=r},setHyperlinkMessage(r){this.hyperlinkMessage=r},setHyperlinkError(r){this.hyperlinkError=r},setHyberlinkEnable(r){this.hyberlinkEnable=r},setOpenHyperlinkInNewTab(r){this.openHyperlinkinkInNewTab=r},setOpacity(r){this.opacity=r},setBackgroundOpacity(r){this.backgroundOpacity=r},setTextAreaVueModel(r){this.textAreaVueModel=r},setNextSibling(r){this.nextSibling=r},setParentElement(r){this.parentElement=r},setRestoredElement(r){this.restoredElement=r},setClass(r){this.currentClasses=[...this.currentClasses,r]},removeClass(r){this.currentClasses=this.currentClasses.filter(e=>e!==r)},setCurrentClasses(r){this.currentClasses=Array.from(r)},setFontVerticalPadding(r){this.fontVerticalPadding=r},setFontHorizontalPadding(r){this.fontHorizontalPadding=r},setFontVerticalMargin(r){this.fontVerticalMargin=r},setFontHorizontalMargin(r){this.fontHorizontalMargin=r},setFontStyle(r){this.fontStyle=r},setFontFamily(r){this.fontFamily=r},setFontWeight(r){this.fontWeight=r},setFontBase(r){this.fontBase=r},setFontDesktop(r){this.fontDesktop=r},setFontTablet(r){this.fontTablet=r},setFontMobile(r){this.fontMobile=r},setBackgroundColor(r){this.backgroundColor=r},setTextColor(r){this.textColor=r},setElement(r){this.element=null,s.nextTick(()=>{this.element=r})},setComponent(r){if(!r){this.element=null,this.component=null;return}this.component=null,s.nextTick(()=>{this.component=r})},setComponents(r){this.components=[],s.nextTick(()=>{this.components=r||[]})},setPushComponents(r){const e=r.componentArrayAddMethod??"push";e==="push"?this.components.push(r.component):e==="unshift"&&this.components.unshift(r.component)},setBasePrimaryImage(r){this.element&&(this.element.src=r??void 0),this.basePrimaryImage=r},setCurrentLayoutPreview(r){localStorage.setItem("preview",r)},applyPageBuilderConfig(r){this.configPageBuilder=r},setCurrentImage(r){this.currentImage=r},setCurrentPreviewImage(r){this.currentPreviewImage=r},setIsSaving(r){this.isSaving=r}}}),Na=ed(),se=sd(Na),Ch={class:"w-full inset-x-0 h-[90vh] bg-white overflow-x-scroll lg:pt-2 pt-2"},Nh={id:"page-builder-editor"},Bh=["innerHTML"],ld={__name:"Preview",emits:["firstPageBuilderPreviewModalButton"],setup(r,{emit:e}){const t=se;s.computed(()=>t.getConfigPageBuilder);const o=s.ref(""),n=localStorage.getItem("preview");if(n)try{const i=JSON.parse(n);o.value=Array.isArray(i)?i.join(""):""}catch(i){console.error("Error parsing preview data:",i),o.value=""}else o.value="";return(i,a)=>(s.openBlock(),s.createElementBlock("div",null,[s.createElementVNode("div",Ch,[s.createElementVNode("div",Nh,[s.createElementVNode("div",{class:"",innerHTML:o.value},null,8,Bh)])])]))}},Mh={class:"font-sans w-full relative inline-block align-bottom text-left overflow-hidden transform transition-all sm:align-middle"},Th=["innerHTML"],Oh={key:0,class:"py-4 flex sm:justify-end justify-center border-t border-gray-200 mt-4"},Vh={key:1},Ph={key:0},Ah=["disabled"],Dh={key:1},Ih={key:2},Lh={key:0},Rh={key:0},zh=["disabled"],_h={key:1},Fh={key:1},jh={key:0},Hh=["disabled"],Wh={key:1},qh={key:2},Uh={key:0},Kh=["disabled"],Jh={key:1},Gh={key:3},Yh={key:0},Xh=["disabled"],Qh={key:1},Zh={key:1,class:"flex items-center my-2 py-4 px-2 justify-end"},zr={__name:"DynamicModalBuilder",props:{showDynamicModalBuilder:{type:Boolean,default:!1,required:!0},simpleModal:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},isLoading:{type:Boolean,default:!1,required:!1},disabledWhichButton:{type:String,default:"",required:!1},maxWidth:{type:String,required:!1,default:"2xl"},gridColumnAmount:{type:Number,required:!0},type:{type:String,required:!0},title:{type:String,required:!0},description:{required:!0},firstButtonText:{type:String},secondButtonText:{type:String},thirdButtonText:{type:String}},emits:["firstModalButtonFunctionDynamicModalBuilder","secondModalButtonFunctionDynamicModalBuilder","thirdModalButtonFunctionDynamicModalBuilder"],setup(r,{emit:e}){const t=e,o=function(){t("firstModalButtonFunctionDynamicModalBuilder")},n=function(){t("secondModalButtonFunctionDynamicModalBuilder")},i=function(){t("thirdModalButtonFunctionDynamicModalBuilder")};return(a,l)=>(s.openBlock(),s.createBlock(Dr,{title:r.title,showModalBuilder:r.showDynamicModalBuilder,onCloseMainModalBuilder:o,maxWidth:r.maxWidth},{default:s.withCtx(()=>[s.renderSlot(a.$slots,"content"),s.createElementVNode("div",Mh,[s.createElementVNode("div",{class:s.normalizeClass({"pr-4 pb-4":r.simpleModal!==!0})},[r.simpleModal!==!0?(s.openBlock(),s.createElementBlock("div",{key:0,innerHTML:r.description,class:"myPrimaryParagraph mb-6"},null,8,Th)):s.createCommentVNode("",!0),s.renderSlot(a.$slots,"header"),s.renderSlot(a.$slots,"default")],2)]),r.simpleModal!==!0&&!r.isLoading?(s.openBlock(),s.createElementBlock("div",Oh,[s.renderSlot(a.$slots,"footer"),s.createElementVNode("div",{class:s.normalizeClass([{"sm:grid-cols-1":r.gridColumnAmount===1,"sm:grid-cols-2":r.gridColumnAmount===2,"sm:grid-cols-3":r.gridColumnAmount===3},"sm:items-end sm:justify-end flex sm:flex-row flex-col myPrimaryGap sm:w-5/6 w-full"])},[r.firstButtonText?(s.openBlock(),s.createElementBlock("button",{key:0,ref:"firstButtonRef",class:"mySecondaryButton",type:"button",onClick:o},s.toDisplayString(r.firstButtonText),513)):s.createCommentVNode("",!0),r.secondButtonText?(s.openBlock(),s.createElementBlock("div",Vh,[r.disabled&&r.disabledWhichButton==="secondButtonBuilder"?(s.openBlock(),s.createElementBlock("div",Ph,[s.createElementVNode("button",{class:s.normalizeClass(["flex items-center gap-2 myPrimaryButton bg-yellow-300 hover:bg-yellow-400 text-myPrimaryDarkGrayColor hover:text-myPrimaryDarkGrayColor focus:ring-yellow-400 w-full",{"opacity-25 cursor-default":r.disabled}]),disabled:r.disabled,type:"button",onClick:n},[s.createElementVNode("div",null,[s.createVNode(s.Transition,{name:"bounce"},{default:s.withCtx(()=>l[0]||(l[0]=[s.createElementVNode("div",{role:"status",class:"flex items-center"},[s.createElementVNode("svg",{"aria-hidden":"true",class:"w-4 h-4 animate-spin text-white-600 fill-gray-800 flex items-center","stroke-width":"1.5",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),s.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})])],-1)])),_:1,__:[0]})]),l[1]||(l[1]=s.createElementVNode("div",null,"Loading..",-1))],10,Ah)])):s.createCommentVNode("",!0),!r.disabled||r.disabledWhichButton!=="secondButtonBuilder"?(s.openBlock(),s.createElementBlock("div",Dh,[s.createElementVNode("button",{class:"myPrimaryButton bg-yellow-300 hover:bg-yellow-400 text-myPrimaryDarkGrayColor hover:text-myPrimaryDarkGrayColor focus:ring-yellow-400 w-full",type:"button",onClick:n},s.toDisplayString(r.secondButtonText),1)])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),r.thirdButtonText?(s.openBlock(),s.createElementBlock("div",Ih,[r.type==="default"?(s.openBlock(),s.createElementBlock("div",Lh,[r.disabled&&r.disabledWhichButton==="thirdButtonBuilder"?(s.openBlock(),s.createElementBlock("div",Rh,[s.createElementVNode("button",{class:s.normalizeClass(["flex items-center gap-2 myPrimaryButton bg-myPrimaryLinkColor focus-visible:ring-myPrimaryLinkColor focus:ring-myPrimaryLinkColor hover:bg-myPrimaryLinkColor w-full",{"opacity-25 cursor-default":r.disabled}]),disabled:r.disabled,type:"button"},[s.createElementVNode("div",null,[s.createVNode(s.Transition,{name:"bounce"},{default:s.withCtx(()=>l[2]||(l[2]=[s.createElementVNode("div",{role:"status",class:"flex items-center"},[s.createElementVNode("svg",{"aria-hidden":"true",class:"w-4 h-4 animate-spin text-white-600 fill-gray-800 flex items-center","stroke-width":"1.5",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),s.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})])],-1)])),_:1,__:[2]})]),l[3]||(l[3]=s.createElementVNode("div",null,"Loading..",-1))],10,zh)])):s.createCommentVNode("",!0),!r.disabled||r.disabledWhichButton!=="thirdButtonBuilder"?(s.openBlock(),s.createElementBlock("div",_h,[s.createElementVNode("button",{class:"myPrimaryButton bg-myPrimaryLinkColor focus-visible:ring-myPrimaryLinkColor focus:ring-myPrimaryLinkColor hover:bg-myPrimaryLinkColor w-full",type:"button",onClick:i},s.toDisplayString(r.thirdButtonText),1)])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),r.type==="success"?(s.openBlock(),s.createElementBlock("div",Fh,[r.disabled&&r.disabledWhichButton==="thirdButtonBuilder"?(s.openBlock(),s.createElementBlock("div",jh,[s.createElementVNode("button",{class:s.normalizeClass(["flex items-center gap-2 myPrimaryButton bg-myPrimaryLinkColor focus-visible:ring-myPrimaryLinkColor focus:ring-myPrimaryLinkColor hover:bg-myPrimaryLinkColor w-full",{"opacity-25 cursor-default":r.disabled}]),disabled:r.disabled,type:"button"},[s.createElementVNode("div",null,[s.createVNode(s.Transition,{name:"bounce"},{default:s.withCtx(()=>l[4]||(l[4]=[s.createElementVNode("div",{role:"status",class:"flex items-center"},[s.createElementVNode("svg",{"aria-hidden":"true",class:"w-4 h-4 animate-spin text-white-600 fill-gray-800 flex items-center","stroke-width":"1.5",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),s.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})])],-1)])),_:1,__:[4]})]),l[5]||(l[5]=s.createElementVNode("div",null,"Loading..",-1))],10,Hh)])):s.createCommentVNode("",!0),!r.disabled||r.disabledWhichButton!=="thirdButtonBuilder"?(s.openBlock(),s.createElementBlock("div",Wh,[s.createElementVNode("button",{class:"myPrimaryButton bg-myPrimaryLinkColor focus-visible:ring-myPrimaryLinkColor focus:ring-myPrimaryLinkColor hover:bg-myPrimaryLinkColor w-full",type:"button",onClick:i},s.toDisplayString(r.thirdButtonText),1)])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),r.type==="warning"?(s.openBlock(),s.createElementBlock("div",qh,[r.disabled&&r.disabledWhichButton==="thirdButtonBuilder"?(s.openBlock(),s.createElementBlock("div",Uh,[s.createElementVNode("button",{class:s.normalizeClass(["flex items-center gap-2 myPrimaryButton bg-myPrimaryLinkColor focus-visible:ring-myPrimaryLinkColor focus:ring-myPrimaryLinkColor hover:bg-myPrimaryLinkColor w-full",{"opacity-25 cursor-default":r.disabled}]),disabled:r.disabled,type:"button"},[s.createElementVNode("div",null,[s.createVNode(s.Transition,{name:"bounce"},{default:s.withCtx(()=>l[6]||(l[6]=[s.createElementVNode("div",{role:"status",class:"flex items-center"},[s.createElementVNode("svg",{"aria-hidden":"true",class:"w-4 h-4 animate-spin text-white-600 fill-gray-800 flex items-center","stroke-width":"1.5",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),s.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})])],-1)])),_:1,__:[6]})]),l[7]||(l[7]=s.createElementVNode("div",null,"Loading..",-1))],10,Kh)])):s.createCommentVNode("",!0),!r.disabled||r.disabledWhichButton!=="thirdButtonBuilder"?(s.openBlock(),s.createElementBlock("div",Jh,[s.createElementVNode("button",{class:"flex items-center gap-2 myPrimaryButton bg-myPrimaryErrorColor hover:bg-red-600 text-white focus:ring-myPrimaryErrorColor w-full",type:"button",onClick:i},s.toDisplayString(r.thirdButtonText),1)])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),r.type==="danger"||r.type==="delete"?(s.openBlock(),s.createElementBlock("div",Gh,[r.disabled&&r.disabledWhichButton==="thirdButtonBuilder"?(s.openBlock(),s.createElementBlock("div",Yh,[s.createElementVNode("button",{class:s.normalizeClass(["flex items-center gap-2 myPrimaryButton bg-myPrimaryErrorColor hover:bg-red-600 text-white focus:ring-myPrimaryErrorColor w-full",{"opacity-25 cursor-default":r.disabled}]),disabled:r.disabled,type:"button"},[s.createElementVNode("div",null,[s.createVNode(s.Transition,{name:"bounce"},{default:s.withCtx(()=>l[8]||(l[8]=[s.createElementVNode("div",{role:"status",class:"flex items-center"},[s.createElementVNode("svg",{"aria-hidden":"true",class:"w-4 h-4 animate-spin text-white-600 fill-gray-800 flex items-center","stroke-width":"1.5",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),s.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})])],-1)])),_:1,__:[8]})]),l[9]||(l[9]=s.createElementVNode("div",null,"Loading..",-1))],10,Xh)])):s.createCommentVNode("",!0),!r.disabled||r.disabledWhichButton!=="thirdButtonBuilder"?(s.openBlock(),s.createElementBlock("div",Qh,[s.createElementVNode("button",{class:"flex items-center gap-2 myPrimaryButton bg-myPrimaryErrorColor hover:bg-red-600 text-white focus:ring-myPrimaryErrorColor w-full",type:"button",onClick:i},s.toDisplayString(r.thirdButtonText),1)])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)],2)])):s.createCommentVNode("",!0),r.isLoading?(s.openBlock(),s.createElementBlock("div",Zh,l[10]||(l[10]=[s.createElementVNode("div",{class:"inline-block h-8 w-8 animate-spin rounded-full border-4 border-solid border-current border-r-transparent align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite]"},[s.createElementVNode("span",{class:"!absolute !-m-px !h-px !w-px !overflow-hidden !whitespace-nowrap !border-0 !p-0 ![clip:rect(0,0,0,0)]"},"Loading...")],-1)]))):s.createCommentVNode("",!0)]),_:3},8,["title","showModalBuilder","maxWidth"]))}},$h={class:"flex flex-col items-center justify-center myPrimaryGap"},eg={class:"flex gap-2 items-center justify-center"},tg={__name:"ComponentTopMenu",setup(r){const e=se,t=s.ref(!1),o=s.ref(""),n=s.ref(1),i=s.ref(""),a=s.ref(""),l=s.ref(""),d=s.ref(null),c=s.ref(null),p=s.ref(null),u=s.ref(null),m=s.ref(null),h=new ce(e),g=function(f){t.value=!0,o.value="delete",n.value=2,i.value="Remove Component?",a.value="Are you sure you want to remove this Component?",l.value="Close",d.value=null,c.value="Delete",p.value=function(){t.value=!1},m.value=function(){h.deleteSelectedComponent(),t.value=!1}};return(f,b)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createVNode(zr,{showDynamicModalBuilder:t.value,type:o.value,gridColumnAmount:n.value,title:i.value,description:a.value,firstButtonText:l.value,secondButtonText:d.value,thirdButtonText:c.value,onFirstModalButtonFunctionDynamicModalBuilder:p.value,onSecondModalButtonFunctionDynamicModalBuilder:u.value,onThirdModalButtonFunctionDynamicModalBuilder:m.value},{default:s.withCtx(()=>b[3]||(b[3]=[s.createElementVNode("header",null,null,-1),s.createElementVNode("main",null,null,-1)])),_:1,__:[3]},8,["showDynamicModalBuilder","type","gridColumnAmount","title","description","firstButtonText","secondButtonText","thirdButtonText","onFirstModalButtonFunctionDynamicModalBuilder","onSecondModalButtonFunctionDynamicModalBuilder","onThirdModalButtonFunctionDynamicModalBuilder"]),s.createElementVNode("div",$h,[s.createElementVNode("div",eg,[s.createElementVNode("div",{onClick:b[0]||(b[0]=y=>g()),class:"h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryErrorColor hover:text-white text-myPrimaryErrorColor"},b[4]||(b[4]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," delete_forever ",-1)]))]),s.createElementVNode("button",{type:"button",onClick:b[1]||(b[1]=y=>s.unref(h).reorderComponent(-1)),class:"h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0"},b[5]||(b[5]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," move_up ",-1)])),s.createElementVNode("button",{type:"button",onClick:b[2]||(b[2]=y=>s.unref(h).reorderComponent(1)),class:"h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0"},b[6]||(b[6]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," move_down ",-1)]))])],64))}};function Ee(r){this.content=r}Ee.prototype={constructor:Ee,find:function(r){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===r)return e;return-1},get:function(r){var e=this.find(r);return e==-1?void 0:this.content[e+1]},update:function(r,e,t){var o=t&&t!=r?this.remove(t):this,n=o.find(r),i=o.content.slice();return n==-1?i.push(t||r,e):(i[n+1]=e,t&&(i[n]=t)),new Ee(i)},remove:function(r){var e=this.find(r);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new Ee(t)},addToStart:function(r,e){return new Ee([r,e].concat(this.remove(r).content))},addToEnd:function(r,e){var t=this.remove(r).content.slice();return t.push(r,e),new Ee(t)},addBefore:function(r,e,t){var o=this.remove(e),n=o.content.slice(),i=o.find(r);return n.splice(i==-1?n.length:i,0,e,t),new Ee(n)},forEach:function(r){for(var e=0;e<this.content.length;e+=2)r(this.content[e],this.content[e+1])},prepend:function(r){return r=Ee.from(r),r.size?new Ee(r.content.concat(this.subtract(r).content)):this},append:function(r){return r=Ee.from(r),r.size?new Ee(this.subtract(r).content.concat(r.content)):this},subtract:function(r){var e=this;r=Ee.from(r);for(var t=0;t<r.content.length;t+=2)e=e.remove(r.content[t]);return e},toObject:function(){var r={};return this.forEach(function(e,t){r[e]=t}),r},get size(){return this.content.length>>1}},Ee.from=function(r){if(r instanceof Ee)return r;var e=[];if(r)for(var t in r)e.push(t,r[t]);return new Ee(e)};function dd(r,e,t){for(let o=0;;o++){if(o==r.childCount||o==e.childCount)return r.childCount==e.childCount?null:t;let n=r.child(o),i=e.child(o);if(n==i){t+=n.nodeSize;continue}if(!n.sameMarkup(i))return t;if(n.isText&&n.text!=i.text){for(let a=0;n.text[a]==i.text[a];a++)t++;return t}if(n.content.size||i.content.size){let a=dd(n.content,i.content,t+1);if(a!=null)return a}t+=n.nodeSize}}function cd(r,e,t,o){for(let n=r.childCount,i=e.childCount;;){if(n==0||i==0)return n==i?null:{a:t,b:o};let a=r.child(--n),l=e.child(--i),d=a.nodeSize;if(a==l){t-=d,o-=d;continue}if(!a.sameMarkup(l))return{a:t,b:o};if(a.isText&&a.text!=l.text){let c=0,p=Math.min(a.text.length,l.text.length);for(;c<p&&a.text[a.text.length-c-1]==l.text[l.text.length-c-1];)c++,t--,o--;return{a:t,b:o}}if(a.content.size||l.content.size){let c=cd(a.content,l.content,t-1,o-1);if(c)return c}t-=d,o-=d}}class M{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let o=0;o<e.length;o++)this.size+=e[o].nodeSize}nodesBetween(e,t,o,n=0,i){for(let a=0,l=0;l<t;a++){let d=this.content[a],c=l+d.nodeSize;if(c>e&&o(d,n+l,i||null,a)!==!1&&d.content.size){let p=l+1;d.nodesBetween(Math.max(0,e-p),Math.min(d.content.size,t-p),o,n+p)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,o,n){let i="",a=!0;return this.nodesBetween(e,t,(l,d)=>{let c=l.isText?l.text.slice(Math.max(e,d)-d,t-d):l.isLeaf?n?typeof n=="function"?n(l):n:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&c||l.isTextblock)&&o&&(a?a=!1:i+=o),i+=c},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,o=e.firstChild,n=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(o)&&(n[n.length-1]=t.withText(t.text+o.text),i=1);i<e.content.length;i++)n.push(e.content[i]);return new M(n,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let o=[],n=0;if(t>e)for(let i=0,a=0;a<t;i++){let l=this.content[i],d=a+l.nodeSize;d>e&&((a<e||d>t)&&(l.isText?l=l.cut(Math.max(0,e-a),Math.min(l.text.length,t-a)):l=l.cut(Math.max(0,e-a-1),Math.min(l.content.size,t-a-1))),o.push(l),n+=l.nodeSize),a=d}return new M(o,n)}cutByIndex(e,t){return e==t?M.empty:e==0&&t==this.content.length?this:new M(this.content.slice(e,t))}replaceChild(e,t){let o=this.content[e];if(o==t)return this;let n=this.content.slice(),i=this.size+t.nodeSize-o.nodeSize;return n[e]=t,new M(n,i)}addToStart(e){return new M([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new M(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,o=0;t<this.content.length;t++){let n=this.content[t];e(n,o,t),o+=n.nodeSize}}findDiffStart(e,t=0){return dd(this,e,t)}findDiffEnd(e,t=this.size,o=e.size){return cd(this,e,t,o)}findIndex(e,t=-1){if(e==0)return Vn(0,e);if(e==this.size)return Vn(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let o=0,n=0;;o++){let i=this.child(o),a=n+i.nodeSize;if(a>=e)return a==e||t>0?Vn(o+1,a):Vn(o,n);n=a}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return M.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new M(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return M.empty;let t,o=0;for(let n=0;n<e.length;n++){let i=e[n];o+=i.nodeSize,n&&i.isText&&e[n-1].sameMarkup(i)?(t||(t=e.slice(0,n)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new M(t||e,o)}static from(e){if(!e)return M.empty;if(e instanceof M)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new M([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}M.empty=new M([],0);const Ba={index:0,offset:0};function Vn(r,e){return Ba.index=r,Ba.offset=e,Ba}function Pn(r,e){if(r===e)return!0;if(!(r&&typeof r=="object")||!(e&&typeof e=="object"))return!1;let t=Array.isArray(r);if(Array.isArray(e)!=t)return!1;if(t){if(r.length!=e.length)return!1;for(let o=0;o<r.length;o++)if(!Pn(r[o],e[o]))return!1}else{for(let o in r)if(!(o in e)||!Pn(r[o],e[o]))return!1;for(let o in e)if(!(o in r))return!1}return!0}let te=class Il{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,o=!1;for(let n=0;n<e.length;n++){let i=e[n];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,n));else{if(i.type.excludes(this.type))return e;!o&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,n)),t.push(this),o=!0),t&&t.push(i)}}return t||(t=e.slice()),o||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Pn(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let o=e.marks[t.type];if(!o)throw new RangeError(`There is no mark type ${t.type} in this schema`);let n=o.create(t.attrs);return o.checkAttrs(n.attrs),n}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let o=0;o<e.length;o++)if(!e[o].eq(t[o]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Il.none;if(e instanceof Il)return[e];let t=e.slice();return t.sort((o,n)=>o.type.rank-n.type.rank),t}};te.none=[];class An extends Error{}class A{constructor(e,t,o){this.content=e,this.openStart=t,this.openEnd=o}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let o=ud(this.content,e+this.openStart,t);return o&&new A(o,this.openStart,this.openEnd)}removeBetween(e,t){return new A(pd(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return A.empty;let o=t.openStart||0,n=t.openEnd||0;if(typeof o!="number"||typeof n!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new A(M.fromJSON(e,t.content),o,n)}static maxOpen(e,t=!0){let o=0,n=0;for(let i=e.firstChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.firstChild)o++;for(let i=e.lastChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.lastChild)n++;return new A(e,o,n)}}A.empty=new A(M.empty,0,0);function pd(r,e,t){let{index:o,offset:n}=r.findIndex(e),i=r.maybeChild(o),{index:a,offset:l}=r.findIndex(t);if(n==e||i.isText){if(l!=t&&!r.child(a).isText)throw new RangeError("Removing non-flat range");return r.cut(0,e).append(r.cut(t))}if(o!=a)throw new RangeError("Removing non-flat range");return r.replaceChild(o,i.copy(pd(i.content,e-n-1,t-n-1)))}function ud(r,e,t,o){let{index:n,offset:i}=r.findIndex(e),a=r.maybeChild(n);if(i==e||a.isText)return r.cut(0,e).append(t).append(r.cut(e));let l=ud(a.content,e-i-1,t);return l&&r.replaceChild(n,a.copy(l))}function rg(r,e,t){if(t.openStart>r.depth)throw new An("Inserted content deeper than insertion position");if(r.depth-t.openStart!=e.depth-t.openEnd)throw new An("Inconsistent open depths");return md(r,e,t,0)}function md(r,e,t,o){let n=r.index(o),i=r.node(o);if(n==e.index(o)&&o<r.depth-t.openStart){let a=md(r,e,t,o+1);return i.copy(i.content.replaceChild(n,a))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&r.depth==o&&e.depth==o){let a=r.parent,l=a.content;return ur(a,l.cut(0,r.parentOffset).append(t.content).append(l.cut(e.parentOffset)))}else{let{start:a,end:l}=og(t,r);return ur(i,gd(r,a,l,e,o))}else return ur(i,Dn(r,e,o))}function hd(r,e){if(!e.type.compatibleContent(r.type))throw new An("Cannot join "+e.type.name+" onto "+r.type.name)}function Ma(r,e,t){let o=r.node(t);return hd(o,e.node(t)),o}function pr(r,e){let t=e.length-1;t>=0&&r.isText&&r.sameMarkup(e[t])?e[t]=r.withText(e[t].text+r.text):e.push(r)}function xo(r,e,t,o){let n=(e||r).node(t),i=0,a=e?e.index(t):n.childCount;r&&(i=r.index(t),r.depth>t?i++:r.textOffset&&(pr(r.nodeAfter,o),i++));for(let l=i;l<a;l++)pr(n.child(l),o);e&&e.depth==t&&e.textOffset&&pr(e.nodeBefore,o)}function ur(r,e){return r.type.checkContent(e),r.copy(e)}function gd(r,e,t,o,n){let i=r.depth>n&&Ma(r,e,n+1),a=o.depth>n&&Ma(t,o,n+1),l=[];return xo(null,r,n,l),i&&a&&e.index(n)==t.index(n)?(hd(i,a),pr(ur(i,gd(r,e,t,o,n+1)),l)):(i&&pr(ur(i,Dn(r,e,n+1)),l),xo(e,t,n,l),a&&pr(ur(a,Dn(t,o,n+1)),l)),xo(o,null,n,l),new M(l)}function Dn(r,e,t){let o=[];if(xo(null,r,t,o),r.depth>t){let n=Ma(r,e,t+1);pr(ur(n,Dn(r,e,t+1)),o)}return xo(e,null,t,o),new M(o)}function og(r,e){let t=e.depth-r.openStart,n=e.node(t).copy(r.content);for(let i=t-1;i>=0;i--)n=e.node(i).copy(M.from(n));return{start:n.resolveNoCache(r.openStart+t),end:n.resolveNoCache(n.content.size-r.openEnd-t)}}class vo{constructor(e,t,o){this.pos=e,this.path=t,this.parentOffset=o,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let o=this.pos-this.path[this.path.length-1],n=e.child(t);return o?e.child(t).cut(o):n}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let o=this.path[t*3],n=t==0?0:this.path[t*3-1]+1;for(let i=0;i<e;i++)n+=o.child(i).nodeSize;return n}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return te.none;if(this.textOffset)return e.child(t).marks;let o=e.maybeChild(t-1),n=e.maybeChild(t);if(!o){let l=o;o=n,n=l}let i=o.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive===!1&&(!n||!i[a].isInSet(n.marks))&&(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let o=t.marks,n=e.parent.maybeChild(e.index());for(var i=0;i<o.length;i++)o[i].type.spec.inclusive===!1&&(!n||!o[i].isInSet(n.marks))&&(o=o[i--].removeFromSet(o));return o}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let o=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);o>=0;o--)if(e.pos<=this.end(o)&&(!t||t(this.node(o))))return new In(this,e,o);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let o=[],n=0,i=t;for(let a=e;;){let{index:l,offset:d}=a.content.findIndex(i),c=i-d;if(o.push(a,l,n+d),!c||(a=a.child(l),a.isText))break;i=c-1,n+=d+1}return new vo(t,o,i)}static resolveCached(e,t){let o=fd.get(e);if(o)for(let i=0;i<o.elts.length;i++){let a=o.elts[i];if(a.pos==t)return a}else fd.set(e,o=new ng);let n=o.elts[o.i]=vo.resolve(e,t);return o.i=(o.i+1)%ig,n}}class ng{constructor(){this.elts=[],this.i=0}}const ig=12,fd=new WeakMap;class In{constructor(e,t,o){this.$from=e,this.$to=t,this.depth=o}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 ag=Object.create(null);let Ht=class Ll{constructor(e,t,o,n=te.none){this.type=e,this.attrs=t,this.marks=n,this.content=o||M.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,o,n=0){this.content.nodesBetween(e,t,o,n,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,o,n){return this.content.textBetween(e,t,o,n)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,o){return this.type==e&&Pn(this.attrs,t||e.defaultAttrs||ag)&&te.sameSet(this.marks,o||te.none)}copy(e=null){return e==this.content?this:new Ll(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Ll(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,o=!1){if(e==t)return A.empty;let n=this.resolve(e),i=this.resolve(t),a=o?0:n.sharedDepth(t),l=n.start(a),c=n.node(a).content.cut(n.pos-l,i.pos-l);return new A(c,n.depth-a,i.depth-a)}replace(e,t,o){return rg(this.resolve(e),this.resolve(t),o)}nodeAt(e){for(let t=this;;){let{index:o,offset:n}=t.content.findIndex(e);if(t=t.maybeChild(o),!t)return null;if(n==e||t.isText)return t;e-=n+1}}childAfter(e){let{index:t,offset:o}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:o}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:o}=this.content.findIndex(e);if(o<e)return{node:this.content.child(t),index:t,offset:o};let n=this.content.child(t-1);return{node:n,index:t-1,offset:o-n.nodeSize}}resolve(e){return vo.resolveCached(this,e)}resolveNoCache(e){return vo.resolve(this,e)}rangeHasMark(e,t,o){let n=!1;return t>e&&this.nodesBetween(e,t,i=>(o.isInSet(i.marks)&&(n=!0),!n)),n}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),bd(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,o=M.empty,n=0,i=o.childCount){let a=this.contentMatchAt(e).matchFragment(o,n,i),l=a&&a.matchFragment(this.content,t);if(!l||!l.validEnd)return!1;for(let d=n;d<i;d++)if(!this.type.allowsMarks(o.child(d).marks))return!1;return!0}canReplaceWith(e,t,o,n){if(n&&!this.type.allowsMarks(n))return!1;let i=this.contentMatchAt(e).matchType(o),a=i&&i.matchFragment(this.content,t);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=te.none;for(let t=0;t<this.marks.length;t++){let o=this.marks[t];o.type.checkAttrs(o.attrs),e=o.addToSet(e)}if(!te.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let o;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");o=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,o)}let n=M.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,n,o);return i.type.checkAttrs(i.attrs),i}};Ht.prototype.text=void 0;class Ln extends Ht{constructor(e,t,o,n){if(super(e,t,null,n),!o)throw new RangeError("Empty text nodes are not allowed");this.text=o}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):bd(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Ln(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Ln(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function bd(r,e){for(let t=r.length-1;t>=0;t--)e=r[t].type.name+"("+e+")";return e}class mr{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let o=new sg(e,t);if(o.next==null)return mr.empty;let n=wd(o);o.next&&o.err("Unexpected trailing text");let i=hg(mg(n));return gg(i,o),i}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,o=e.childCount){let n=this;for(let i=t;n&&i<o;i++)n=n.matchType(e.child(i).type);return n}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let o=0;o<e.next.length;o++)if(this.next[t].type==e.next[o].type)return!0;return!1}fillBefore(e,t=!1,o=0){let n=[this];function i(a,l){let d=a.matchFragment(e,o);if(d&&(!t||d.validEnd))return M.from(l.map(c=>c.createAndFill()));for(let c=0;c<a.next.length;c++){let{type:p,next:u}=a.next[c];if(!(p.isText||p.hasRequiredAttrs())&&n.indexOf(u)==-1){n.push(u);let m=i(u,l.concat(p));if(m)return m}}return null}return i(this,[])}findWrapping(e){for(let o=0;o<this.wrapCache.length;o+=2)if(this.wrapCache[o]==e)return this.wrapCache[o+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),o=[{match:this,type:null,via:null}];for(;o.length;){let n=o.shift(),i=n.match;if(i.matchType(e)){let a=[];for(let l=n;l.type;l=l.via)a.push(l.type);return a.reverse()}for(let a=0;a<i.next.length;a++){let{type:l,next:d}=i.next[a];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in t)&&(!n.type||d.validEnd)&&(o.push({match:l.contentMatch,type:l,via:n}),t[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(o){e.push(o);for(let n=0;n<o.next.length;n++)e.indexOf(o.next[n].next)==-1&&t(o.next[n].next)}return t(this),e.map((o,n)=>{let i=n+(o.validEnd?"*":" ")+" ";for(let a=0;a<o.next.length;a++)i+=(a?", ":"")+o.next[a].type.name+"->"+e.indexOf(o.next[a].next);return i}).join(`
|
|
12
|
-
`)}}mr.empty=new mr(!0);class sg{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function wd(r){let e=[];do e.push(lg(r));while(r.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function lg(r){let e=[];do e.push(dg(r));while(r.next&&r.next!=")"&&r.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function dg(r){let e=ug(r);for(;;)if(r.eat("+"))e={type:"plus",expr:e};else if(r.eat("*"))e={type:"star",expr:e};else if(r.eat("?"))e={type:"opt",expr:e};else if(r.eat("{"))e=cg(r,e);else break;return e}function yd(r){/\D/.test(r.next)&&r.err("Expected number, got '"+r.next+"'");let e=Number(r.next);return r.pos++,e}function cg(r,e){let t=yd(r),o=t;return r.eat(",")&&(r.next!="}"?o=yd(r):o=-1),r.eat("}")||r.err("Unclosed braced range"),{type:"range",min:t,max:o,expr:e}}function pg(r,e){let t=r.nodeTypes,o=t[e];if(o)return[o];let n=[];for(let i in t){let a=t[i];a.isInGroup(e)&&n.push(a)}return n.length==0&&r.err("No node type or group '"+e+"' found"),n}function ug(r){if(r.eat("(")){let e=wd(r);return r.eat(")")||r.err("Missing closing paren"),e}else if(/\W/.test(r.next))r.err("Unexpected token '"+r.next+"'");else{let e=pg(r,r.next).map(t=>(r.inline==null?r.inline=t.isInline:r.inline!=t.isInline&&r.err("Mixing inline and block content"),{type:"name",value:t}));return r.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function mg(r){let e=[[]];return n(i(r,0),t()),e;function t(){return e.push([])-1}function o(a,l,d){let c={term:d,to:l};return e[a].push(c),c}function n(a,l){a.forEach(d=>d.to=l)}function i(a,l){if(a.type=="choice")return a.exprs.reduce((d,c)=>d.concat(i(c,l)),[]);if(a.type=="seq")for(let d=0;;d++){let c=i(a.exprs[d],l);if(d==a.exprs.length-1)return c;n(c,l=t())}else if(a.type=="star"){let d=t();return o(l,d),n(i(a.expr,d),d),[o(d)]}else if(a.type=="plus"){let d=t();return n(i(a.expr,l),d),n(i(a.expr,d),d),[o(d)]}else{if(a.type=="opt")return[o(l)].concat(i(a.expr,l));if(a.type=="range"){let d=l;for(let c=0;c<a.min;c++){let p=t();n(i(a.expr,d),p),d=p}if(a.max==-1)n(i(a.expr,d),d);else for(let c=a.min;c<a.max;c++){let p=t();o(d,p),n(i(a.expr,d),p),d=p}return[o(d)]}else{if(a.type=="name")return[o(l,void 0,a.value)];throw new Error("Unknown expr type")}}}}function xd(r,e){return e-r}function vd(r,e){let t=[];return o(e),t.sort(xd);function o(n){let i=r[n];if(i.length==1&&!i[0].term)return o(i[0].to);t.push(n);for(let a=0;a<i.length;a++){let{term:l,to:d}=i[a];!l&&t.indexOf(d)==-1&&o(d)}}}function hg(r){let e=Object.create(null);return t(vd(r,0));function t(o){let n=[];o.forEach(a=>{r[a].forEach(({term:l,to:d})=>{if(!l)return;let c;for(let p=0;p<n.length;p++)n[p][0]==l&&(c=n[p][1]);vd(r,d).forEach(p=>{c||n.push([l,c=[]]),c.indexOf(p)==-1&&c.push(p)})})});let i=e[o.join(",")]=new mr(o.indexOf(r.length-1)>-1);for(let a=0;a<n.length;a++){let l=n[a][1].sort(xd);i.next.push({type:n[a][0],next:e[l.join(",")]||t(l)})}return i}}function gg(r,e){for(let t=0,o=[r];t<o.length;t++){let n=o[t],i=!n.validEnd,a=[];for(let l=0;l<n.next.length;l++){let{type:d,next:c}=n.next[l];a.push(d.name),i&&!(d.isText||d.hasRequiredAttrs())&&(i=!1),o.indexOf(c)==-1&&o.push(c)}i&&e.err("Only non-generatable nodes ("+a.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function kd(r){let e=Object.create(null);for(let t in r){let o=r[t];if(!o.hasDefault)return null;e[t]=o.default}return e}function Ed(r,e){let t=Object.create(null);for(let o in r){let n=e&&e[o];if(n===void 0){let i=r[o];if(i.hasDefault)n=i.default;else throw new RangeError("No value supplied for attribute "+o)}t[o]=n}return t}function Sd(r,e,t,o){for(let n in e)if(!(n in r))throw new RangeError(`Unsupported attribute ${n} for ${t} of type ${n}`);for(let n in r){let i=r[n];i.validate&&i.validate(e[n])}}function Cd(r,e){let t=Object.create(null);if(e)for(let o in e)t[o]=new bg(r,o,e[o]);return t}let Nd=class Wm{constructor(e,t,o){this.name=e,this.schema=t,this.spec=o,this.markSet=null,this.groups=o.group?o.group.split(" "):[],this.attrs=Cd(e,o.attrs),this.defaultAttrs=kd(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(o.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==mr.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:Ed(this.attrs,e)}create(e=null,t,o){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Ht(this,this.computeAttrs(e),M.from(t),te.setFrom(o))}createChecked(e=null,t,o){return t=M.from(t),this.checkContent(t),new Ht(this,this.computeAttrs(e),t,te.setFrom(o))}createAndFill(e=null,t,o){if(e=this.computeAttrs(e),t=M.from(t),t.size){let a=this.contentMatch.fillBefore(t);if(!a)return null;t=a.append(t)}let n=this.contentMatch.matchFragment(t),i=n&&n.fillBefore(M.empty,!0);return i?new Ht(this,e,t.append(i),te.setFrom(o)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let o=0;o<e.childCount;o++)if(!this.allowsMarks(e.child(o).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){Sd(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let o=0;o<e.length;o++)this.allowsMarkType(e[o].type)?t&&t.push(e[o]):t||(t=e.slice(0,o));return t?t.length?t:te.none:e}static compile(e,t){let o=Object.create(null);e.forEach((i,a)=>o[i]=new Wm(i,t,a));let n=t.spec.topNode||"doc";if(!o[n])throw new RangeError("Schema is missing its top node type ('"+n+"')");if(!o.text)throw new RangeError("Every schema needs a 'text' type");for(let i in o.text.attrs)throw new RangeError("The text node type should not have attributes");return o}};function fg(r,e,t){let o=t.split("|");return n=>{let i=n===null?"null":typeof n;if(o.indexOf(i)<0)throw new RangeError(`Expected value of type ${o} for attribute ${e} on type ${r}, got ${i}`)}}class bg{constructor(e,t,o){this.hasDefault=Object.prototype.hasOwnProperty.call(o,"default"),this.default=o.default,this.validate=typeof o.validate=="string"?fg(e,t,o.validate):o.validate}get isRequired(){return!this.hasDefault}}class Rn{constructor(e,t,o,n){this.name=e,this.rank=t,this.schema=o,this.spec=n,this.attrs=Cd(e,n.attrs),this.excluded=null;let i=kd(this.attrs);this.instance=i?new te(this,i):null}create(e=null){return!e&&this.instance?this.instance:new te(this,Ed(this.attrs,e))}static compile(e,t){let o=Object.create(null),n=0;return e.forEach((i,a)=>o[i]=new Rn(i,n++,t,a)),o}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){Sd(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class Bd{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=Ee.from(e.nodes),t.marks=Ee.from(e.marks||{}),this.nodes=Nd.compile(this.spec.nodes,this),this.marks=Rn.compile(this.spec.marks,this);let o=Object.create(null);for(let n in this.nodes){if(n in this.marks)throw new RangeError(n+" can not be both a node and a mark");let i=this.nodes[n],a=i.spec.content||"",l=i.spec.marks;if(i.contentMatch=o[a]||(o[a]=mr.parse(a,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=l=="_"?null:l?Md(this,l.split(" ")):l==""||!i.inlineContent?[]:null}for(let n in this.marks){let i=this.marks[n],a=i.spec.excludes;i.excluded=a==null?[i]:a==""?[]:Md(this,a.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,o,n){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Nd){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(t,o,n)}text(e,t){let o=this.nodes.text;return new Ln(o,o.defaultAttrs,e,te.setFrom(t))}mark(e,t){return typeof e=="string"&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return Ht.fromJSON(this,e)}markFromJSON(e){return te.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function Md(r,e){let t=[];for(let o=0;o<e.length;o++){let n=e[o],i=r.marks[n],a=i;if(i)t.push(i);else for(let l in r.marks){let d=r.marks[l];(n=="_"||d.spec.group&&d.spec.group.split(" ").indexOf(n)>-1)&&t.push(a=d)}if(!a)throw new SyntaxError("Unknown mark type: '"+e[o]+"'")}return t}function wg(r){return r.tag!=null}function yg(r){return r.style!=null}let ko=class Rl{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let o=this.matchedStyles=[];t.forEach(n=>{if(wg(n))this.tags.push(n);else if(yg(n)){let i=/[^=]*/.exec(n.style)[0];o.indexOf(i)<0&&o.push(i),this.styles.push(n)}}),this.normalizeLists=!this.tags.some(n=>{if(!/^(ul|ol)\b/.test(n.tag)||!n.node)return!1;let i=e.nodes[n.node];return i.contentMatch.matchType(i)})}parse(e,t={}){let o=new Pd(this,t,!1);return o.addAll(e,te.none,t.from,t.to),o.finish()}parseSlice(e,t={}){let o=new Pd(this,t,!0);return o.addAll(e,te.none,t.from,t.to),A.maxOpen(o.finish())}matchTag(e,t,o){for(let n=o?this.tags.indexOf(o)+1:0;n<this.tags.length;n++){let i=this.tags[n];if(kg(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||t.matchesContext(i.context))){if(i.getAttrs){let a=i.getAttrs(e);if(a===!1)continue;i.attrs=a||void 0}return i}}}matchStyle(e,t,o,n){for(let i=n?this.styles.indexOf(n)+1:0;i<this.styles.length;i++){let a=this.styles[i],l=a.style;if(!(l.indexOf(e)!=0||a.context&&!o.matchesContext(a.context)||l.length>e.length&&(l.charCodeAt(e.length)!=61||l.slice(e.length+1)!=t))){if(a.getAttrs){let d=a.getAttrs(t);if(d===!1)continue;a.attrs=d||void 0}return a}}}static schemaRules(e){let t=[];function o(n){let i=n.priority==null?50:n.priority,a=0;for(;a<t.length;a++){let l=t[a];if((l.priority==null?50:l.priority)<i)break}t.splice(a,0,n)}for(let n in e.marks){let i=e.marks[n].spec.parseDOM;i&&i.forEach(a=>{o(a=Ad(a)),a.mark||a.ignore||a.clearMark||(a.mark=n)})}for(let n in e.nodes){let i=e.nodes[n].spec.parseDOM;i&&i.forEach(a=>{o(a=Ad(a)),a.node||a.ignore||a.mark||(a.node=n)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Rl(e,Rl.schemaRules(e)))}};const Td={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},xg={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Od={ol:!0,ul:!0},Eo=1,Ta=2,So=4;function Vd(r,e,t){return e!=null?(e?Eo:0)|(e==="full"?Ta:0):r&&r.whitespace=="pre"?Eo|Ta:t&~So}class zn{constructor(e,t,o,n,i,a){this.type=e,this.attrs=t,this.marks=o,this.solid=n,this.options=a,this.content=[],this.activeMarks=te.none,this.match=i||(a&So?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(M.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let o=this.type.contentMatch,n;return(n=o.findWrapping(e.type))?(this.match=o,n):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Eo)){let o=this.content[this.content.length-1],n;if(o&&o.isText&&(n=/[ \t\r\n\u000c]+$/.exec(o.text))){let i=o;o.text.length==n[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-n[0].length))}}let t=M.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(M.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Td.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Pd{constructor(e,t,o){this.parser=e,this.options=t,this.isOpen=o,this.open=0,this.localPreserveWS=!1;let n=t.topNode,i,a=Vd(null,t.preserveWhitespace,0)|(o?So:0);n?i=new zn(n.type,n.attrs,te.none,!0,t.topMatch||n.type.contentMatch,a):o?i=new zn(null,null,te.none,!0,null,a):i=new zn(e.schema.topNodeType,null,te.none,!0,null,a),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){e.nodeType==3?this.addTextNode(e,t):e.nodeType==1&&this.addElement(e,t)}addTextNode(e,t){let o=e.nodeValue,n=this.top,i=n.options&Ta?"full":this.localPreserveWS||(n.options&Eo)>0;if(i==="full"||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(o)){if(i)i!=="full"?o=o.replace(/\r?\n|\r/g," "):o=o.replace(/\r\n?/g,`
|
|
13
|
-
`);else if(o=o.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(o)&&this.open==this.nodes.length-1){let a=n.content[n.content.length-1],l=e.previousSibling;(!a||l&&l.nodeName=="BR"||a.isText&&/[ \t\r\n\u000c]$/.test(a.text))&&(o=o.slice(1))}o&&this.insertNode(this.parser.schema.text(o),t,!/\S/.test(o)),this.findInText(e)}else this.findInside(e)}addElement(e,t,o){let n=this.localPreserveWS,i=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let a=e.nodeName.toLowerCase(),l;
|
|
14
|
-
`),t)}ignoreFallback(e,t){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),t,!0)}readStyles(e,t){let o=e.style;if(o&&o.length)for(let n=0;n<this.parser.matchedStyles.length;n++){let i=this.parser.matchedStyles[n],a=o.getPropertyValue(i);if(a)for(let l=void 0;;){let d=this.parser.matchStyle(i,a,this,l);if(!d)break;if(d.ignore)return null;if(d.clearMark?t=t.filter(c=>!d.clearMark(c)):t=t.concat(this.parser.schema.marks[d.mark].create(d.attrs)),d.consuming===!1)l=d;else break}}return t}addElementByRule(e,t,o,n){let i,a;if(t.node)if(a=this.parser.schema.nodes[t.node],a.isLeaf)this.insertNode(a.create(t.attrs),o,e.nodeName=="BR")||this.leafFallback(e,o);else{let d=this.enter(a,t.attrs||null,o,t.preserveWhitespace);d&&(i=!0,o=d)}else{let d=this.parser.schema.marks[t.mark];o=o.concat(d.create(t.attrs))}let l=this.top;if(a&&a.isLeaf)this.findInside(e);else if(n)this.addElement(e,o,n);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(d=>this.insertNode(d,o,!1));else{let d=e;typeof t.contentElement=="string"?d=e.querySelector(t.contentElement):typeof t.contentElement=="function"?d=t.contentElement(e):t.contentElement&&(d=t.contentElement),this.findAround(e,d,!0),this.addAll(d,o),this.findAround(e,d,!1)}i&&this.sync(l)&&this.open--}addAll(e,t,o,n){let i=o||0;for(let a=o?e.childNodes[o]:e.firstChild,l=n==null?null:e.childNodes[n];a!=l;a=a.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(a,t);this.findAtPoint(e,i)}findPlace(e,t,o){let n,i;for(let a=this.open,l=0;a>=0;a--){let d=this.nodes[a],c=d.findWrapping(e);if(c&&(!n||n.length>c.length+l)&&(n=c,i=d,!c.length))break;if(d.solid){if(o)break;l+=2}}if(!n)return null;this.sync(i);for(let a=0;a<n.length;a++)t=this.enterInner(n[a],null,t,!1);return t}insertNode(e,t,o){if(e.isInline&&this.needsBlock&&!this.top.type){let i=this.textblockFromContext();i&&(t=this.enterInner(i,null,t))}let n=this.findPlace(e,t,o);if(n){this.closeExtra();let i=this.top;i.match&&(i.match=i.match.matchType(e.type));let a=te.none;for(let l of n.concat(e.marks))(i.type?i.type.allowsMarkType(l.type):Dd(l.type,e.type))&&(a=l.addToSet(a));return i.content.push(e.mark(a)),!0}return!1}enter(e,t,o,n){let i=this.findPlace(e.create(t),o,!1);return i&&(i=this.enterInner(e,t,o,!0,n)),i}enterInner(e,t,o,n=!1,i){this.closeExtra();let a=this.top;a.match=a.match&&a.match.matchType(e);let l=Vd(e,i,a.options);a.options&So&&a.content.length==0&&(l|=So);let d=te.none;return o=o.filter(c=>(a.type?a.type.allowsMarkType(c.type):Dd(c.type,e))?(d=c.addToSet(d),!1):!0),this.nodes.push(new zn(e,t,d,n,null,l)),this.open++,o}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--){if(this.nodes[t]==e)return this.open=t,!0;this.localPreserveWS&&(this.nodes[t].options|=Eo)}return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let o=this.nodes[t].content;for(let n=o.length-1;n>=0;n--)e+=o[n].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let o=0;o<this.find.length;o++)this.find[o].node==e&&this.find[o].offset==t&&(this.find[o].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&e.nodeType==1&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,o){if(e!=t&&this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&t.compareDocumentPosition(this.find[n].node)&(o?2:4)&&(this.find[n].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),o=this.options.context,n=!this.isOpen&&(!o||o.parent.type==this.nodes[0].type),i=-(o?o.depth+1:0)+(n?0:1),a=(l,d)=>{for(;l>=0;l--){let c=t[l];if(c==""){if(l==t.length-1||l==0)continue;for(;d>=i;d--)if(a(l-1,d))return!0;return!1}else{let p=d>0||d==0&&n?this.nodes[d].type:o&&d>=i?o.node(d-i).type:null;if(!p||p.name!=c&&!p.isInGroup(c))return!1;d--}}return!0};return a(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let o=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(o&&o.isTextblock&&o.defaultAttrs)return o}for(let t in this.parser.schema.nodes){let o=this.parser.schema.nodes[t];if(o.isTextblock&&o.defaultAttrs)return o}}}function vg(r){for(let e=r.firstChild,t=null;e;e=e.nextSibling){let o=e.nodeType==1?e.nodeName.toLowerCase():null;o&&Od.hasOwnProperty(o)&&t?(t.appendChild(e),e=t):o=="li"?t=e:o&&(t=null)}}function kg(r,e){return(r.matches||r.msMatchesSelector||r.webkitMatchesSelector||r.mozMatchesSelector).call(r,e)}function Ad(r){let e={};for(let t in r)e[t]=r[t];return e}function Dd(r,e){let t=e.schema.nodes;for(let o in t){let n=t[o];if(!n.allowsMarkType(r))continue;let i=[],a=l=>{i.push(l);for(let d=0;d<l.edgeCount;d++){let{type:c,next:p}=l.edge(d);if(c==e||i.indexOf(p)<0&&a(p))return!0}};if(a(n.contentMatch))return!0}}class hr{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},o){o||(o=Oa(t).createDocumentFragment());let n=o,i=[];return e.forEach(a=>{if(i.length||a.marks.length){let l=0,d=0;for(;l<i.length&&d<a.marks.length;){let c=a.marks[d];if(!this.marks[c.type.name]){d++;continue}if(!c.eq(i[l][0])||c.type.spec.spanning===!1)break;l++,d++}for(;l<i.length;)n=i.pop()[1];for(;d<a.marks.length;){let c=a.marks[d++],p=this.serializeMark(c,a.isInline,t);p&&(i.push([c,n]),n.appendChild(p.dom),n=p.contentDOM||p.dom)}}n.appendChild(this.serializeNodeInner(a,t))}),o}serializeNodeInner(e,t){let{dom:o,contentDOM:n}=_n(Oa(t),this.nodes[e.type.name](e),null,e.attrs);if(n){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,n)}return o}serializeNode(e,t={}){let o=this.serializeNodeInner(e,t);for(let n=e.marks.length-1;n>=0;n--){let i=this.serializeMark(e.marks[n],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(o),o=i.dom)}return o}serializeMark(e,t,o={}){let n=this.marks[e.type.name];return n&&_n(Oa(o),n(e,t),null,e.attrs)}static renderSpec(e,t,o=null,n){return _n(e,t,o,n)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new hr(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=Id(e.nodes);return t.text||(t.text=o=>o.text),t}static marksFromSchema(e){return Id(e.marks)}}function Id(r){let e={};for(let t in r){let o=r[t].spec.toDOM;o&&(e[t]=o)}return e}function Oa(r){return r.document||window.document}const Ld=new WeakMap;function Eg(r){let e=Ld.get(r);return e===void 0&&Ld.set(r,e=Sg(r)),e}function Sg(r){let e=null;function t(o){if(o&&typeof o=="object")if(Array.isArray(o))if(typeof o[0]=="string")e||(e=[]),e.push(o);else for(let n=0;n<o.length;n++)t(o[n]);else for(let n in o)t(o[n])}return t(r),e}function _n(r,e,t,o){if(typeof e=="string")return{dom:r.createTextNode(e)};if(e.nodeType!=null)return{dom:e};if(e.dom&&e.dom.nodeType!=null)return e;let n=e[0],i;if(typeof n!="string")throw new RangeError("Invalid array passed to renderSpec");if(o&&(i=Eg(o))&&i.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let a=n.indexOf(" ");a>0&&(t=n.slice(0,a),n=n.slice(a+1));let l,d=t?r.createElementNS(t,n):r.createElement(n),c=e[1],p=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){p=2;for(let u in c)if(c[u]!=null){let m=u.indexOf(" ");m>0?d.setAttributeNS(u.slice(0,m),u.slice(m+1),c[u]):d.setAttribute(u,c[u])}}for(let u=p;u<e.length;u++){let m=e[u];if(m===0){if(u<e.length-1||u>p)throw new RangeError("Content hole must be the only child of its parent node");return{dom:d,contentDOM:d}}else{let{dom:h,contentDOM:g}=_n(r,m,t,o);if(d.appendChild(h),g){if(l)throw new RangeError("Multiple content holes");l=g}}}return{dom:d,contentDOM:l}}const Rd=65535,zd=Math.pow(2,16);function Cg(r,e){return r+e*zd}function _d(r){return r&Rd}function Ng(r){return(r-(r&Rd))/zd}const Fd=1,jd=2,Fn=4,Hd=8;class Va{constructor(e,t,o){this.pos=e,this.delInfo=t,this.recover=o}get deleted(){return(this.delInfo&Hd)>0}get deletedBefore(){return(this.delInfo&(Fd|Fn))>0}get deletedAfter(){return(this.delInfo&(jd|Fn))>0}get deletedAcross(){return(this.delInfo&Fn)>0}}class We{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&We.empty)return We.empty}recover(e){let t=0,o=_d(e);if(!this.inverted)for(let n=0;n<o;n++)t+=this.ranges[n*3+2]-this.ranges[n*3+1];return this.ranges[o*3]+t+Ng(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,o){let n=0,i=this.inverted?2:1,a=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let d=this.ranges[l]-(this.inverted?n:0);if(d>e)break;let c=this.ranges[l+i],p=this.ranges[l+a],u=d+c;if(e<=u){let m=c?e==d?-1:e==u?1:t:t,h=d+n+(m<0?0:p);if(o)return h;let g=e==(t<0?d:u)?null:Cg(l/3,e-d),f=e==d?jd:e==u?Fd:Fn;return(t<0?e!=d:e!=u)&&(f|=Hd),new Va(h,f,g)}n+=p-c}return o?e+n:new Va(e+n,0,null)}touches(e,t){let o=0,n=_d(t),i=this.inverted?2:1,a=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let d=this.ranges[l]-(this.inverted?o:0);if(d>e)break;let c=this.ranges[l+i],p=d+c;if(e<=p&&l==n*3)return!0;o+=this.ranges[l+a]-c}return!1}forEach(e){let t=this.inverted?2:1,o=this.inverted?1:2;for(let n=0,i=0;n<this.ranges.length;n+=3){let a=this.ranges[n],l=a-(this.inverted?i:0),d=a+(this.inverted?0:i),c=this.ranges[n+t],p=this.ranges[n+o];e(l,l+c,d,d+p),i+=p-c}}invert(){return new We(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?We.empty:new We(e<0?[0,-e,0]:[0,0,e])}}We.empty=new We([]);class Co{constructor(e,t,o=0,n=e?e.length:0){this.mirror=t,this.from=o,this.to=n,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new Co(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),t!=null&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,o=this._maps.length;t<e._maps.length;t++){let n=e.getMirror(t);this.appendMap(e._maps[t],n!=null&&n<t?o+n:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,o=this._maps.length+e._maps.length;t>=0;t--){let n=e.getMirror(t);this.appendMap(e._maps[t].invert(),n!=null&&n>t?o-n-1:void 0)}}invert(){let e=new Co;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let o=this.from;o<this.to;o++)e=this._maps[o].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,o){let n=0;for(let i=this.from;i<this.to;i++){let a=this._maps[i],l=a.mapResult(e,t);if(l.recover!=null){let d=this.getMirror(i);if(d!=null&&d>i&&d<this.to){i=d,e=this._maps[d].recover(l.recover);continue}}n|=l.delInfo,e=l.pos}return o?e:new Va(e,n,null)}}const Pa=Object.create(null);class Te{getMap(){return We.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let o=Pa[t.stepType];if(!o)throw new RangeError(`No step type ${t.stepType} defined`);return o.fromJSON(e,t)}static jsonID(e,t){if(e in Pa)throw new RangeError("Duplicate use of step JSON ID "+e);return Pa[e]=t,t.prototype.jsonID=e,t}}class ue{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new ue(e,null)}static fail(e){return new ue(null,e)}static fromReplace(e,t,o,n){try{return ue.ok(e.replace(t,o,n))}catch(i){if(i instanceof An)return ue.fail(i.message);throw i}}}function Aa(r,e,t){let o=[];for(let n=0;n<r.childCount;n++){let i=r.child(n);i.content.size&&(i=i.copy(Aa(i.content,e,i))),i.isInline&&(i=e(i,t,n)),o.push(i)}return M.fromArray(o)}class Wt extends Te{constructor(e,t,o){super(),this.from=e,this.to=t,this.mark=o}apply(e){let t=e.slice(this.from,this.to),o=e.resolve(this.from),n=o.node(o.sharedDepth(this.to)),i=new A(Aa(t.content,(a,l)=>!a.isAtom||!l.type.allowsMarkType(this.mark.type)?a:a.mark(this.mark.addToSet(a.marks)),n),t.openStart,t.openEnd);return ue.fromReplace(e,this.from,this.to,i)}invert(){return new ht(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),o=e.mapResult(this.to,-1);return t.deleted&&o.deleted||t.pos>=o.pos?null:new Wt(t.pos,o.pos,this.mark)}merge(e){return e instanceof Wt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Wt(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Wt(t.from,t.to,e.markFromJSON(t.mark))}}Te.jsonID("addMark",Wt);class ht extends Te{constructor(e,t,o){super(),this.from=e,this.to=t,this.mark=o}apply(e){let t=e.slice(this.from,this.to),o=new A(Aa(t.content,n=>n.mark(this.mark.removeFromSet(n.marks)),e),t.openStart,t.openEnd);return ue.fromReplace(e,this.from,this.to,o)}invert(){return new Wt(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),o=e.mapResult(this.to,-1);return t.deleted&&o.deleted||t.pos>=o.pos?null:new ht(t.pos,o.pos,this.mark)}merge(e){return e instanceof ht&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new ht(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new ht(t.from,t.to,e.markFromJSON(t.mark))}}Te.jsonID("removeMark",ht);class qt extends Te{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return ue.fail("No node at mark step's position");let o=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return ue.fromReplace(e,this.pos,this.pos+1,new A(M.from(o),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let o=this.mark.addToSet(t.marks);if(o.length==t.marks.length){for(let n=0;n<t.marks.length;n++)if(!t.marks[n].isInSet(o))return new qt(this.pos,t.marks[n]);return new qt(this.pos,this.mark)}}return new gr(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new qt(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new qt(t.pos,e.markFromJSON(t.mark))}}Te.jsonID("addNodeMark",qt);class gr extends Te{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return ue.fail("No node at mark step's position");let o=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return ue.fromReplace(e,this.pos,this.pos+1,new A(M.from(o),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new qt(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new gr(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new gr(t.pos,e.markFromJSON(t.mark))}}Te.jsonID("removeNodeMark",gr);class be extends Te{constructor(e,t,o,n=!1){super(),this.from=e,this.to=t,this.slice=o,this.structure=n}apply(e){return this.structure&&Da(e,this.from,this.to)?ue.fail("Structure replace would overwrite content"):ue.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new We([this.from,this.to-this.from,this.slice.size])}invert(e){return new be(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),o=e.mapResult(this.to,-1);return t.deletedAcross&&o.deletedAcross?null:new be(t.pos,Math.max(t.pos,o.pos),this.slice,this.structure)}merge(e){if(!(e instanceof be)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let t=this.slice.size+e.slice.size==0?A.empty:new A(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new be(this.from,this.to+(e.to-e.from),t,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let t=this.slice.size+e.slice.size==0?A.empty:new A(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new be(e.from,this.to,t,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new be(t.from,t.to,A.fromJSON(e,t.slice),!!t.structure)}}Te.jsonID("replace",be);class we extends Te{constructor(e,t,o,n,i,a,l=!1){super(),this.from=e,this.to=t,this.gapFrom=o,this.gapTo=n,this.slice=i,this.insert=a,this.structure=l}apply(e){if(this.structure&&(Da(e,this.from,this.gapFrom)||Da(e,this.gapTo,this.to)))return ue.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return ue.fail("Gap is not a flat range");let o=this.slice.insertAt(this.insert,t.content);return o?ue.fromReplace(e,this.from,this.to,o):ue.fail("Content does not fit in gap")}getMap(){return new We([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new we(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),o=e.mapResult(this.to,-1),n=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?o.pos:e.map(this.gapTo,1);return t.deletedAcross&&o.deletedAcross||n<t.pos||i>o.pos?null:new we(t.pos,o.pos,n,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number"||typeof t.gapFrom!="number"||typeof t.gapTo!="number"||typeof t.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new we(t.from,t.to,t.gapFrom,t.gapTo,A.fromJSON(e,t.slice),t.insert,!!t.structure)}}Te.jsonID("replaceAround",we);function Da(r,e,t){let o=r.resolve(e),n=t-e,i=o.depth;for(;n>0&&i>0&&o.indexAfter(i)==o.node(i).childCount;)i--,n--;if(n>0){let a=o.node(i).maybeChild(o.indexAfter(i));for(;n>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,n--}}return!1}function Bg(r,e,t,o){let n=[],i=[],a,l;r.doc.nodesBetween(e,t,(d,c,p)=>{if(!d.isInline)return;let u=d.marks;if(!o.isInSet(u)&&p.type.allowsMarkType(o.type)){let m=Math.max(c,e),h=Math.min(c+d.nodeSize,t),g=o.addToSet(u);for(let f=0;f<u.length;f++)u[f].isInSet(g)||(a&&a.to==m&&a.mark.eq(u[f])?a.to=h:n.push(a=new ht(m,h,u[f])));l&&l.to==m?l.to=h:i.push(l=new Wt(m,h,o))}}),n.forEach(d=>r.step(d)),i.forEach(d=>r.step(d))}function Mg(r,e,t,o){let n=[],i=0;r.doc.nodesBetween(e,t,(a,l)=>{if(!a.isInline)return;i++;let d=null;if(o instanceof Rn){let c=a.marks,p;for(;p=o.isInSet(c);)(d||(d=[])).push(p),c=p.removeFromSet(c)}else o?o.isInSet(a.marks)&&(d=[o]):d=a.marks;if(d&&d.length){let c=Math.min(l+a.nodeSize,t);for(let p=0;p<d.length;p++){let u=d[p],m;for(let h=0;h<n.length;h++){let g=n[h];g.step==i-1&&u.eq(n[h].style)&&(m=g)}m?(m.to=c,m.step=i):n.push({style:u,from:Math.max(l,e),to:c,step:i})}}}),n.forEach(a=>r.step(new ht(a.from,a.to,a.style)))}function Ia(r,e,t,o=t.contentMatch,n=!0){let i=r.doc.nodeAt(e),a=[],l=e+1;for(let d=0;d<i.childCount;d++){let c=i.child(d),p=l+c.nodeSize,u=o.matchType(c.type);if(!u)a.push(new be(l,p,A.empty));else{o=u;for(let m=0;m<c.marks.length;m++)t.allowsMarkType(c.marks[m].type)||r.step(new ht(l,p,c.marks[m]));if(n&&c.isText&&t.whitespace!="pre"){let m,h=/\r?\n|\r/g,g;for(;m=h.exec(c.text);)g||(g=new A(M.from(t.schema.text(" ",t.allowedMarks(c.marks))),0,0)),a.push(new be(l+m.index,l+m.index+m[0].length,g))}}l=p}if(!o.validEnd){let d=o.fillBefore(M.empty,!0);r.replace(l,l,new A(d,0,0))}for(let d=a.length-1;d>=0;d--)r.step(a[d])}function Tg(r,e,t){return(e==0||r.canReplace(e,r.childCount))&&(t==r.childCount||r.canReplace(0,t))}function _r(r){let t=r.parent.content.cutByIndex(r.startIndex,r.endIndex);for(let o=r.depth;;--o){let n=r.$from.node(o),i=r.$from.index(o),a=r.$to.indexAfter(o);if(o<r.depth&&n.canReplace(i,a,t))return o;if(o==0||n.type.spec.isolating||!Tg(n,i,a))break}return null}function Og(r,e,t){let{$from:o,$to:n,depth:i}=e,a=o.before(i+1),l=n.after(i+1),d=a,c=l,p=M.empty,u=0;for(let g=i,f=!1;g>t;g--)f||o.index(g)>0?(f=!0,p=M.from(o.node(g).copy(p)),u++):d--;let m=M.empty,h=0;for(let g=i,f=!1;g>t;g--)f||n.after(g+1)<n.end(g)?(f=!0,m=M.from(n.node(g).copy(m)),h++):c++;r.step(new we(d,c,a,l,new A(p.append(m),u,h),p.size-u,!0))}function La(r,e,t=null,o=r){let n=Vg(r,e),i=n&&Pg(o,e);return i?n.map(Wd).concat({type:e,attrs:t}).concat(i.map(Wd)):null}function Wd(r){return{type:r,attrs:null}}function Vg(r,e){let{parent:t,startIndex:o,endIndex:n}=r,i=t.contentMatchAt(o).findWrapping(e);if(!i)return null;let a=i.length?i[0]:e;return t.canReplaceWith(o,n,a)?i:null}function Pg(r,e){let{parent:t,startIndex:o,endIndex:n}=r,i=t.child(o),a=e.contentMatch.findWrapping(i.type);if(!a)return null;let d=(a.length?a[a.length-1]:e).contentMatch;for(let c=o;d&&c<n;c++)d=d.matchType(t.child(c).type);return!d||!d.validEnd?null:a}function Ag(r,e,t){let o=M.empty;for(let a=t.length-1;a>=0;a--){if(o.size){let l=t[a].type.contentMatch.matchFragment(o);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}o=M.from(t[a].type.create(t[a].attrs,o))}let n=e.start,i=e.end;r.step(new we(n,i,n,i,new A(o,0,0),t.length,!0))}function Dg(r,e,t,o,n){if(!o.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=r.steps.length;r.doc.nodesBetween(e,t,(a,l)=>{let d=typeof n=="function"?n(a):n;if(a.isTextblock&&!a.hasMarkup(o,d)&&Ig(r.doc,r.mapping.slice(i).map(l),o)){let c=null;if(o.schema.linebreakReplacement){let h=o.whitespace=="pre",g=!!o.contentMatch.matchType(o.schema.linebreakReplacement);h&&!g?c=!1:!h&&g&&(c=!0)}c===!1&&Ud(r,a,l,i),Ia(r,r.mapping.slice(i).map(l,1),o,void 0,c===null);let p=r.mapping.slice(i),u=p.map(l,1),m=p.map(l+a.nodeSize,1);return r.step(new we(u,m,u+1,m-1,new A(M.from(o.create(d,null,a.marks)),0,0),1,!0)),c===!0&&qd(r,a,l,i),!1}})}function qd(r,e,t,o){e.forEach((n,i)=>{if(n.isText){let a,l=/\r?\n|\r/g;for(;a=l.exec(n.text);){let d=r.mapping.slice(o).map(t+1+i+a.index);r.replaceWith(d,d+1,e.type.schema.linebreakReplacement.create())}}})}function Ud(r,e,t,o){e.forEach((n,i)=>{if(n.type==n.type.schema.linebreakReplacement){let a=r.mapping.slice(o).map(t+1+i);r.replaceWith(a,a+1,e.type.schema.text(`
|
|
15
|
-
`))}})}function Ig(r,e,t){let o=r.resolve(e),n=o.index();return o.parent.canReplaceWith(n,n+1,t)}function Lg(r,e,t,o,n){let i=r.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");t||(t=i.type);let a=t.create(o,null,n||i.marks);if(i.isLeaf)return r.replaceWith(e,e+i.nodeSize,a);if(!t.validContent(i.content))throw new RangeError("Invalid content for node type "+t.name);r.step(new we(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new A(M.from(a),0,0),1,!0))}function Ct(r,e,t=1,o){let n=r.resolve(e),i=n.depth-t,a=o&&o[o.length-1]||n.parent;if(i<0||n.parent.type.spec.isolating||!n.parent.canReplace(n.index(),n.parent.childCount)||!a.type.validContent(n.parent.content.cutByIndex(n.index(),n.parent.childCount)))return!1;for(let c=n.depth-1,p=t-2;c>i;c--,p--){let u=n.node(c),m=n.index(c);if(u.type.spec.isolating)return!1;let h=u.content.cutByIndex(m,u.childCount),g=o&&o[p+1];g&&(h=h.replaceChild(0,g.type.create(g.attrs)));let f=o&&o[p]||u;if(!u.canReplace(m+1,u.childCount)||!f.type.validContent(h))return!1}let l=n.indexAfter(i),d=o&&o[0];return n.node(i).canReplaceWith(l,l,d?d.type:n.node(i+1).type)}function Rg(r,e,t=1,o){let n=r.doc.resolve(e),i=M.empty,a=M.empty;for(let l=n.depth,d=n.depth-t,c=t-1;l>d;l--,c--){i=M.from(n.node(l).copy(i));let p=o&&o[c];a=M.from(p?p.type.create(p.attrs,a):n.node(l).copy(a))}r.step(new be(e,e,new A(i.append(a),t,t),!0))}function Ut(r,e){let t=r.resolve(e),o=t.index();return Kd(t.nodeBefore,t.nodeAfter)&&t.parent.canReplace(o,o+1)}function zg(r,e){e.content.size||r.type.compatibleContent(e.type);let t=r.contentMatchAt(r.childCount),{linebreakReplacement:o}=r.type.schema;for(let n=0;n<e.childCount;n++){let i=e.child(n),a=i.type==o?r.type.schema.nodes.text:i.type;if(t=t.matchType(a),!t||!r.type.allowsMarks(i.marks))return!1}return t.validEnd}function Kd(r,e){return!!(r&&e&&!r.isLeaf&&zg(r,e))}function jn(r,e,t=-1){let o=r.resolve(e);for(let n=o.depth;;n--){let i,a,l=o.index(n);if(n==o.depth?(i=o.nodeBefore,a=o.nodeAfter):t>0?(i=o.node(n+1),l++,a=o.node(n).maybeChild(l)):(i=o.node(n).maybeChild(l-1),a=o.node(n+1)),i&&!i.isTextblock&&Kd(i,a)&&o.node(n).canReplace(l,l+1))return e;if(n==0)break;e=t<0?o.before(n):o.after(n)}}function _g(r,e,t){let o=null,{linebreakReplacement:n}=r.doc.type.schema,i=r.doc.resolve(e-t),a=i.node().type;if(n&&a.inlineContent){let p=a.whitespace=="pre",u=!!a.contentMatch.matchType(n);p&&!u?o=!1:!p&&u&&(o=!0)}let l=r.steps.length;if(o===!1){let p=r.doc.resolve(e+t);Ud(r,p.node(),p.before(),l)}a.inlineContent&&Ia(r,e+t-1,a,i.node().contentMatchAt(i.index()),o==null);let d=r.mapping.slice(l),c=d.map(e-t);if(r.step(new be(c,d.map(e+t,-1),A.empty,!0)),o===!0){let p=r.doc.resolve(c);qd(r,p.node(),p.before(),r.steps.length)}return r}function Fg(r,e,t){let o=r.resolve(e);if(o.parent.canReplaceWith(o.index(),o.index(),t))return e;if(o.parentOffset==0)for(let n=o.depth-1;n>=0;n--){let i=o.index(n);if(o.node(n).canReplaceWith(i,i,t))return o.before(n+1);if(i>0)return null}if(o.parentOffset==o.parent.content.size)for(let n=o.depth-1;n>=0;n--){let i=o.indexAfter(n);if(o.node(n).canReplaceWith(i,i,t))return o.after(n+1);if(i<o.node(n).childCount)return null}return null}function Jd(r,e,t){let o=r.resolve(e);if(!t.content.size)return e;let n=t.content;for(let i=0;i<t.openStart;i++)n=n.firstChild.content;for(let i=1;i<=(t.openStart==0&&t.size?2:1);i++)for(let a=o.depth;a>=0;a--){let l=a==o.depth?0:o.pos<=(o.start(a+1)+o.end(a+1))/2?-1:1,d=o.index(a)+(l>0?1:0),c=o.node(a),p=!1;if(i==1)p=c.canReplace(d,d,n);else{let u=c.contentMatchAt(d).findWrapping(n.firstChild.type);p=u&&c.canReplaceWith(d,d,u[0])}if(p)return l==0?o.pos:l<0?o.before(a+1):o.after(a+1)}return null}function Hn(r,e,t=e,o=A.empty){if(e==t&&!o.size)return null;let n=r.resolve(e),i=r.resolve(t);return Gd(n,i,o)?new be(e,t,o):new jg(n,i,o).fit()}function Gd(r,e,t){return!t.openStart&&!t.openEnd&&r.start()==e.start()&&r.parent.canReplace(r.index(),e.index(),t.content)}class jg{constructor(e,t,o){this.$from=e,this.$to=t,this.unplaced=o,this.frontier=[],this.placed=M.empty;for(let n=0;n<=e.depth;n++){let i=e.node(n);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(n))})}for(let n=e.depth;n>0;n--)this.placed=M.from(e.node(n).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,o=this.$from,n=this.close(e<0?this.$to:o.doc.resolve(e));if(!n)return null;let i=this.placed,a=o.depth,l=n.depth;for(;a&&l&&i.childCount==1;)i=i.firstChild.content,a--,l--;let d=new A(i,a,l);return e>-1?new we(o.pos,e,this.$to.pos,this.$to.end(),d,t):d.size||o.pos!=this.$to.pos?new be(o.pos,n.pos,d):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,o=0,n=this.unplaced.openEnd;o<e;o++){let i=t.firstChild;if(t.childCount>1&&(n=0),i.type.spec.isolating&&n<=o){e=o;break}t=i.content}for(let t=1;t<=2;t++)for(let o=t==1?e:this.unplaced.openStart;o>=0;o--){let n,i=null;o?(i=Ra(this.unplaced.content,o-1).firstChild,n=i.content):n=this.unplaced.content;let a=n.firstChild;for(let l=this.depth;l>=0;l--){let{type:d,match:c}=this.frontier[l],p,u=null;if(t==1&&(a?c.matchType(a.type)||(u=c.fillBefore(M.from(a),!1)):i&&d.compatibleContent(i.type)))return{sliceDepth:o,frontierDepth:l,parent:i,inject:u};if(t==2&&a&&(p=c.findWrapping(a.type)))return{sliceDepth:o,frontierDepth:l,parent:i,wrap:p};if(i&&c.matchType(i.type))break}}}openMore(){let{content:e,openStart:t,openEnd:o}=this.unplaced,n=Ra(e,t);return!n.childCount||n.firstChild.isLeaf?!1:(this.unplaced=new A(e,t+1,Math.max(o,n.size+t>=e.size-o?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:o}=this.unplaced,n=Ra(e,t);if(n.childCount<=1&&t>0){let i=e.size-t<=t+n.size;this.unplaced=new A(No(e,t-1,1),t-1,i?t-1:o)}else this.unplaced=new A(No(e,t,1),t,o)}placeNodes({sliceDepth:e,frontierDepth:t,parent:o,inject:n,wrap:i}){for(;this.depth>t;)this.closeFrontierNode();if(i)for(let f=0;f<i.length;f++)this.openFrontierNode(i[f]);let a=this.unplaced,l=o?o.content:a.content,d=a.openStart-e,c=0,p=[],{match:u,type:m}=this.frontier[t];if(n){for(let f=0;f<n.childCount;f++)p.push(n.child(f));u=u.matchFragment(n)}let h=l.size+e-(a.content.size-a.openEnd);for(;c<l.childCount;){let f=l.child(c),b=u.matchType(f.type);if(!b)break;c++,(c>1||d==0||f.content.size)&&(u=b,p.push(Yd(f.mark(m.allowedMarks(f.marks)),c==1?d:0,c==l.childCount?h:-1)))}let g=c==l.childCount;g||(h=-1),this.placed=Bo(this.placed,t,M.from(p)),this.frontier[t].match=u,g&&h<0&&o&&o.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let f=0,b=l;f<h;f++){let y=b.lastChild;this.frontier.push({type:y.type,match:y.contentMatchAt(y.childCount)}),b=y.content}this.unplaced=g?e==0?A.empty:new A(No(a.content,e-1,1),e-1,h<0?a.openEnd:e-1):new A(No(a.content,e,c),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!za(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:o}=this.$to,n=this.$to.after(o);for(;o>1&&n==this.$to.end(--o);)++n;return n}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:o,type:n}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),a=za(e,t,n,o,i);if(a){for(let l=t-1;l>=0;l--){let{match:d,type:c}=this.frontier[l],p=za(e,l,c,d,!0);if(!p||p.childCount)continue e}return{depth:t,fit:a,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=Bo(this.placed,t.depth,t.fit)),e=t.move;for(let o=t.depth+1;o<=e.depth;o++){let n=e.node(o),i=n.type.contentMatch.fillBefore(n.content,!0,e.index(o));this.openFrontierNode(n.type,n.attrs,i)}return e}openFrontierNode(e,t=null,o){let n=this.frontier[this.depth];n.match=n.match.matchType(e),this.placed=Bo(this.placed,this.depth,M.from(e.create(t,o))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(M.empty,!0);t.childCount&&(this.placed=Bo(this.placed,this.frontier.length,t))}}function No(r,e,t){return e==0?r.cutByIndex(t,r.childCount):r.replaceChild(0,r.firstChild.copy(No(r.firstChild.content,e-1,t)))}function Bo(r,e,t){return e==0?r.append(t):r.replaceChild(r.childCount-1,r.lastChild.copy(Bo(r.lastChild.content,e-1,t)))}function Ra(r,e){for(let t=0;t<e;t++)r=r.firstChild.content;return r}function Yd(r,e,t){if(e<=0)return r;let o=r.content;return e>1&&(o=o.replaceChild(0,Yd(o.firstChild,e-1,o.childCount==1?t-1:0))),e>0&&(o=r.type.contentMatch.fillBefore(o).append(o),t<=0&&(o=o.append(r.type.contentMatch.matchFragment(o).fillBefore(M.empty,!0)))),r.copy(o)}function za(r,e,t,o,n){let i=r.node(e),a=n?r.indexAfter(e):r.index(e);if(a==i.childCount&&!t.compatibleContent(i.type))return null;let l=o.fillBefore(i.content,!0,a);return l&&!Hg(t,i.content,a)?l:null}function Hg(r,e,t){for(let o=t;o<e.childCount;o++)if(!r.allowsMarks(e.child(o).marks))return!0;return!1}function Wg(r){return r.spec.defining||r.spec.definingForContent}function qg(r,e,t,o){if(!o.size)return r.deleteRange(e,t);let n=r.doc.resolve(e),i=r.doc.resolve(t);if(Gd(n,i,o))return r.step(new be(e,t,o));let a=Qd(n,r.doc.resolve(t));a[a.length-1]==0&&a.pop();let l=-(n.depth+1);a.unshift(l);for(let m=n.depth,h=n.pos-1;m>0;m--,h--){let g=n.node(m).type.spec;if(g.defining||g.definingAsContext||g.isolating)break;a.indexOf(m)>-1?l=m:n.before(m)==h&&a.splice(1,0,-m)}let d=a.indexOf(l),c=[],p=o.openStart;for(let m=o.content,h=0;;h++){let g=m.firstChild;if(c.push(g),h==o.openStart)break;m=g.content}for(let m=p-1;m>=0;m--){let h=c[m],g=Wg(h.type);if(g&&!h.sameMarkup(n.node(Math.abs(l)-1)))p=m;else if(g||!h.type.isTextblock)break}for(let m=o.openStart;m>=0;m--){let h=(m+p+1)%(o.openStart+1),g=c[h];if(g)for(let f=0;f<a.length;f++){let b=a[(f+d)%a.length],y=!0;b<0&&(y=!1,b=-b);let k=n.node(b-1),x=n.index(b-1);if(k.canReplaceWith(x,x,g.type,g.marks))return r.replace(n.before(b),y?i.after(b):t,new A(Xd(o.content,0,o.openStart,h),h,o.openEnd))}}let u=r.steps.length;for(let m=a.length-1;m>=0&&(r.replace(e,t,o),!(r.steps.length>u));m--){let h=a[m];h<0||(e=n.before(h),t=i.after(h))}}function Xd(r,e,t,o,n){if(e<t){let i=r.firstChild;r=r.replaceChild(0,i.copy(Xd(i.content,e+1,t,o,i)))}if(e>o){let i=n.contentMatchAt(0),a=i.fillBefore(r).append(r);r=a.append(i.matchFragment(a).fillBefore(M.empty,!0))}return r}function Ug(r,e,t,o){if(!o.isInline&&e==t&&r.doc.resolve(e).parent.content.size){let n=Fg(r.doc,e,o.type);n!=null&&(e=t=n)}r.replaceRange(e,t,new A(M.from(o),0,0))}function Kg(r,e,t){let o=r.doc.resolve(e),n=r.doc.resolve(t),i=Qd(o,n);for(let a=0;a<i.length;a++){let l=i[a],d=a==i.length-1;if(d&&l==0||o.node(l).type.contentMatch.validEnd)return r.delete(o.start(l),n.end(l));if(l>0&&(d||o.node(l-1).canReplace(o.index(l-1),n.indexAfter(l-1))))return r.delete(o.before(l),n.after(l))}for(let a=1;a<=o.depth&&a<=n.depth;a++)if(e-o.start(a)==o.depth-a&&t>o.end(a)&&n.end(a)-t!=n.depth-a&&o.start(a-1)==n.start(a-1)&&o.node(a-1).canReplace(o.index(a-1),n.index(a-1)))return r.delete(o.before(a),t);r.delete(e,t)}function Qd(r,e){let t=[],o=Math.min(r.depth,e.depth);for(let n=o;n>=0;n--){let i=r.start(n);if(i<r.pos-(r.depth-n)||e.end(n)>e.pos+(e.depth-n)||r.node(n).type.spec.isolating||e.node(n).type.spec.isolating)break;(i==e.start(n)||n==r.depth&&n==e.depth&&r.parent.inlineContent&&e.parent.inlineContent&&n&&e.start(n-1)==i-1)&&t.push(n)}return t}class Fr extends Te{constructor(e,t,o){super(),this.pos=e,this.attr=t,this.value=o}apply(e){let t=e.nodeAt(this.pos);if(!t)return ue.fail("No node at attribute step's position");let o=Object.create(null);for(let i in t.attrs)o[i]=t.attrs[i];o[this.attr]=this.value;let n=t.type.create(o,null,t.marks);return ue.fromReplace(e,this.pos,this.pos+1,new A(M.from(n),0,t.isLeaf?0:1))}getMap(){return We.empty}invert(e){return new Fr(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Fr(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if(typeof t.pos!="number"||typeof t.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Fr(t.pos,t.attr,t.value)}}Te.jsonID("attr",Fr);class Mo extends Te{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let n in e.attrs)t[n]=e.attrs[n];t[this.attr]=this.value;let o=e.type.create(t,e.content,e.marks);return ue.ok(o)}getMap(){return We.empty}invert(e){return new Mo(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if(typeof t.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Mo(t.attr,t.value)}}Te.jsonID("docAttr",Mo);let jr=class extends Error{};jr=function r(e){let t=Error.call(this,e);return t.__proto__=r.prototype,t},jr.prototype=Object.create(Error.prototype),jr.prototype.constructor=jr,jr.prototype.name="TransformError";class Zd{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Co}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new jr(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,o=A.empty){let n=Hn(this.doc,e,t,o);return n&&this.step(n),this}replaceWith(e,t,o){return this.replace(e,t,new A(M.from(o),0,0))}delete(e,t){return this.replace(e,t,A.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,o){return qg(this,e,t,o),this}replaceRangeWith(e,t,o){return Ug(this,e,t,o),this}deleteRange(e,t){return Kg(this,e,t),this}lift(e,t){return Og(this,e,t),this}join(e,t=1){return _g(this,e,t),this}wrap(e,t){return Ag(this,e,t),this}setBlockType(e,t=e,o,n=null){return Dg(this,e,t,o,n),this}setNodeMarkup(e,t,o=null,n){return Lg(this,e,t,o,n),this}setNodeAttribute(e,t,o){return this.step(new Fr(e,t,o)),this}setDocAttribute(e,t){return this.step(new Mo(e,t)),this}addNodeMark(e,t){return this.step(new qt(e,t)),this}removeNodeMark(e,t){let o=this.doc.nodeAt(e);if(!o)throw new RangeError("No node at position "+e);if(t instanceof te)t.isInSet(o.marks)&&this.step(new gr(e,t));else{let n=o.marks,i,a=[];for(;i=t.isInSet(n);)a.push(new gr(e,i)),n=i.removeFromSet(n);for(let l=a.length-1;l>=0;l--)this.step(a[l])}return this}split(e,t=1,o){return Rg(this,e,t,o),this}addMark(e,t,o){return Bg(this,e,t,o),this}removeMark(e,t,o){return Mg(this,e,t,o),this}clearIncompatible(e,t,o){return Ia(this,e,t,o),this}}const _a=Object.create(null);class W{constructor(e,t,o){this.$anchor=e,this.$head=t,this.ranges=o||[new Jg(e.min(t),e.max(t))]}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 e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=A.empty){let o=t.content.lastChild,n=null;for(let l=0;l<t.openEnd;l++)n=o,o=o.lastChild;let i=e.steps.length,a=this.ranges;for(let l=0;l<a.length;l++){let{$from:d,$to:c}=a[l],p=e.mapping.slice(i);e.replaceRange(p.map(d.pos),p.map(c.pos),l?A.empty:t),l==0&&tc(e,i,(o?o.isInline:n&&n.isTextblock)?-1:1)}}replaceWith(e,t){let o=e.steps.length,n=this.ranges;for(let i=0;i<n.length;i++){let{$from:a,$to:l}=n[i],d=e.mapping.slice(o),c=d.map(a.pos),p=d.map(l.pos);i?e.deleteRange(c,p):(e.replaceRangeWith(c,p,t),tc(e,o,t.isInline?-1:1))}}static findFrom(e,t,o=!1){let n=e.parent.inlineContent?new j(e):Hr(e.node(0),e.parent,e.pos,e.index(),t,o);if(n)return n;for(let i=e.depth-1;i>=0;i--){let a=t<0?Hr(e.node(0),e.node(i),e.before(i+1),e.index(i),t,o):Hr(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,t,o);if(a)return a}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new qe(e.node(0))}static atStart(e){return Hr(e,e,0,0,1)||new qe(e)}static atEnd(e){return Hr(e,e,e.content.size,e.childCount,-1)||new qe(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let o=_a[t.type];if(!o)throw new RangeError(`No selection type ${t.type} defined`);return o.fromJSON(e,t)}static jsonID(e,t){if(e in _a)throw new RangeError("Duplicate use of selection JSON ID "+e);return _a[e]=t,t.prototype.jsonID=e,t}getBookmark(){return j.between(this.$anchor,this.$head).getBookmark()}}W.prototype.visible=!0;class Jg{constructor(e,t){this.$from=e,this.$to=t}}let $d=!1;function ec(r){!$d&&!r.parent.inlineContent&&($d=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+r.parent.type.name+")"))}class j extends W{constructor(e,t=e){ec(e),ec(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let o=e.resolve(t.map(this.head));if(!o.parent.inlineContent)return W.near(o);let n=e.resolve(t.map(this.anchor));return new j(n.parent.inlineContent?n:o,o)}replace(e,t=A.empty){if(super.replace(e,t),t==A.empty){let o=this.$from.marksAcross(this.$to);o&&e.ensureMarks(o)}}eq(e){return e instanceof j&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Wn(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if(typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new j(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,o=t){let n=e.resolve(t);return new this(n,o==t?n:e.resolve(o))}static between(e,t,o){let n=e.pos-t.pos;if((!o||n)&&(o=n>=0?1:-1),!t.parent.inlineContent){let i=W.findFrom(t,o,!0)||W.findFrom(t,-o,!0);if(i)t=i.$head;else return W.near(t,o)}return e.parent.inlineContent||(n==0?e=t:(e=(W.findFrom(e,-o,!0)||W.findFrom(e,o,!0)).$anchor,e.pos<t.pos!=n<0&&(e=t))),new j(e,t)}}W.jsonID("text",j);class Wn{constructor(e,t){this.anchor=e,this.head=t}map(e){return new Wn(e.map(this.anchor),e.map(this.head))}resolve(e){return j.between(e.resolve(this.anchor),e.resolve(this.head))}}class R extends W{constructor(e){let t=e.nodeAfter,o=e.node(0).resolve(e.pos+t.nodeSize);super(e,o),this.node=t}map(e,t){let{deleted:o,pos:n}=t.mapResult(this.anchor),i=e.resolve(n);return o?W.near(i):new R(i)}content(){return new A(M.from(this.node),0,0)}eq(e){return e instanceof R&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Fa(this.anchor)}static fromJSON(e,t){if(typeof t.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new R(e.resolve(t.anchor))}static create(e,t){return new R(e.resolve(t))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}R.prototype.visible=!1,W.jsonID("node",R);class Fa{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:o}=e.mapResult(this.anchor);return t?new Wn(o,o):new Fa(o)}resolve(e){let t=e.resolve(this.anchor),o=t.nodeAfter;return o&&R.isSelectable(o)?new R(t):W.near(t)}}class qe extends W{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=A.empty){if(t==A.empty){e.delete(0,e.doc.content.size);let o=W.atStart(e.doc);o.eq(e.selection)||e.setSelection(o)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new qe(e)}map(e){return new qe(e)}eq(e){return e instanceof qe}getBookmark(){return Gg}}W.jsonID("all",qe);const Gg={map(){return this},resolve(r){return new qe(r)}};function Hr(r,e,t,o,n,i=!1){if(e.inlineContent)return j.create(r,t);for(let a=o-(n>0?0:1);n>0?a<e.childCount:a>=0;a+=n){let l=e.child(a);if(l.isAtom){if(!i&&R.isSelectable(l))return R.create(r,t-(n<0?l.nodeSize:0))}else{let d=Hr(r,l,t+n,n<0?l.childCount:0,n,i);if(d)return d}t+=l.nodeSize*n}return null}function tc(r,e,t){let o=r.steps.length-1;if(o<e)return;let n=r.steps[o];if(!(n instanceof be||n instanceof we))return;let i=r.mapping.maps[o],a;i.forEach((l,d,c,p)=>{a==null&&(a=p)}),r.setSelection(W.near(r.doc.resolve(a),t))}const rc=1,qn=2,oc=4;class Yg extends Zd{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.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(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|rc)&~qn,this.storedMarks=null,this}get selectionSet(){return(this.updated&rc)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=qn,this}ensureMarks(e){return te.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&qn)>0}addStep(e,t){super.addStep(e,t),this.updated=this.updated&~qn,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let o=this.selection;return t&&(e=e.mark(this.storedMarks||(o.empty?o.$from.marks():o.$from.marksAcross(o.$to)||te.none))),o.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,o){let n=this.doc.type.schema;if(t==null)return e?this.replaceSelectionWith(n.text(e),!0):this.deleteSelection();{if(o==null&&(o=t),o=o??t,!e)return this.deleteRange(t,o);let i=this.storedMarks;if(!i){let a=this.doc.resolve(t);i=o==t?a.marks():a.marksAcross(this.doc.resolve(o))}return this.replaceRangeWith(t,o,n.text(e,i)),this.selection.empty||this.setSelection(W.near(this.selection.$to)),this}}setMeta(e,t){return this.meta[typeof e=="string"?e:e.key]=t,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=oc,this}get scrolledIntoView(){return(this.updated&oc)>0}}function nc(r,e){return!e||!r?r:r.bind(e)}class To{constructor(e,t,o){this.name=e,this.init=nc(t.init,o),this.apply=nc(t.apply,o)}}const Xg=[new To("doc",{init(r){return r.doc||r.schema.topNodeType.createAndFill()},apply(r){return r.doc}}),new To("selection",{init(r,e){return r.selection||W.atStart(e.doc)},apply(r){return r.selection}}),new To("storedMarks",{init(r){return r.storedMarks||null},apply(r,e,t,o){return o.selection.$cursor?r.storedMarks:null}}),new To("scrollToSelection",{init(){return 0},apply(r,e){return r.scrolledIntoView?e+1:e}})];class ja{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=Xg.slice(),t&&t.forEach(o=>{if(this.pluginsByKey[o.key])throw new RangeError("Adding different instances of a keyed plugin ("+o.key+")");this.plugins.push(o),this.pluginsByKey[o.key]=o,o.spec.state&&this.fields.push(new To(o.key,o.spec.state,o))})}}class Wr{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let o=0;o<this.config.plugins.length;o++)if(o!=t){let n=this.config.plugins[o];if(n.spec.filterTransaction&&!n.spec.filterTransaction.call(n,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],o=this.applyInner(e),n=null;for(;;){let i=!1;for(let a=0;a<this.config.plugins.length;a++){let l=this.config.plugins[a];if(l.spec.appendTransaction){let d=n?n[a].n:0,c=n?n[a].state:this,p=d<t.length&&l.spec.appendTransaction.call(l,d?t.slice(d):t,c,o);if(p&&o.filterTransaction(p,a)){if(p.setMeta("appendedTransaction",e),!n){n=[];for(let u=0;u<this.config.plugins.length;u++)n.push(u<a?{state:o,n:t.length}:{state:this,n:0})}t.push(p),o=o.applyInner(p),i=!0}n&&(n[a]={state:o,n:t.length})}}if(!i)return{state:o,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let t=new Wr(this.config),o=this.config.fields;for(let n=0;n<o.length;n++){let i=o[n];t[i.name]=i.apply(e,this[i.name],this,t)}return t}get tr(){return new Yg(this)}static create(e){let t=new ja(e.doc?e.doc.type.schema:e.schema,e.plugins),o=new Wr(t);for(let n=0;n<t.fields.length;n++)o[t.fields[n].name]=t.fields[n].init(e,o);return o}reconfigure(e){let t=new ja(this.schema,e.plugins),o=t.fields,n=new Wr(t);for(let i=0;i<o.length;i++){let a=o[i].name;n[a]=this.hasOwnProperty(a)?this[a]:o[i].init(e,n)}return n}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(o=>o.toJSON())),e&&typeof e=="object")for(let o in e){if(o=="doc"||o=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let n=e[o],i=n.spec.state;i&&i.toJSON&&(t[o]=i.toJSON.call(n,this[n.key]))}return t}static fromJSON(e,t,o){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let n=new ja(e.schema,e.plugins),i=new Wr(n);return n.fields.forEach(a=>{if(a.name=="doc")i.doc=Ht.fromJSON(e.schema,t.doc);else if(a.name=="selection")i.selection=W.fromJSON(i.doc,t.selection);else if(a.name=="storedMarks")t.storedMarks&&(i.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(o)for(let l in o){let d=o[l],c=d.spec.state;if(d.key==a.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(t,l)){i[a.name]=c.fromJSON.call(d,e,t[l],i);return}}i[a.name]=a.init(e,i)}}),i}}function ic(r,e,t){for(let o in r){let n=r[o];n instanceof Function?n=n.bind(e):o=="handleDOMEvents"&&(n=ic(n,e,{})),t[o]=n}return t}class he{constructor(e){this.spec=e,this.props={},e.props&&ic(e.props,this,this.props),this.key=e.key?e.key.key:ac("plugin")}getState(e){return e[this.key]}}const Ha=Object.create(null);function ac(r){return r in Ha?r+"$"+ ++Ha[r]:(Ha[r]=0,r+"$")}class Ae{constructor(e="key"){this.key=ac(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const Se=function(r){for(var e=0;;e++)if(r=r.previousSibling,!r)return e},qr=function(r){let e=r.assignedSlot||r.parentNode;return e&&e.nodeType==11?e.host:e};let Wa=null;const Nt=function(r,e,t){let o=Wa||(Wa=document.createRange());return o.setEnd(r,t??r.nodeValue.length),o.setStart(r,e||0),o},Qg=function(){Wa=null},fr=function(r,e,t,o){return t&&(sc(r,e,t,o,-1)||sc(r,e,t,o,1))},Zg=/^(img|br|input|textarea|hr)$/i;function sc(r,e,t,o,n){for(var i;;){if(r==t&&e==o)return!0;if(e==(n<0?0:Ye(r))){let a=r.parentNode;if(!a||a.nodeType!=1||Oo(r)||Zg.test(r.nodeName)||r.contentEditable=="false")return!1;e=Se(r)+(n<0?0:1),r=a}else if(r.nodeType==1){let a=r.childNodes[e+(n<0?-1:0)];if(a.nodeType==1&&a.contentEditable=="false")if(!((i=a.pmViewDesc)===null||i===void 0)&&i.ignoreForSelection)e+=n;else return!1;else r=a,e=n<0?Ye(r):0}else return!1}}function Ye(r){return r.nodeType==3?r.nodeValue.length:r.childNodes.length}function $g(r,e){for(;;){if(r.nodeType==3&&e)return r;if(r.nodeType==1&&e>0){if(r.contentEditable=="false")return null;r=r.childNodes[e-1],e=Ye(r)}else if(r.parentNode&&!Oo(r))e=Se(r),r=r.parentNode;else return null}}function ef(r,e){for(;;){if(r.nodeType==3&&e<r.nodeValue.length)return r;if(r.nodeType==1&&e<r.childNodes.length){if(r.contentEditable=="false")return null;r=r.childNodes[e],e=0}else if(r.parentNode&&!Oo(r))e=Se(r)+1,r=r.parentNode;else return null}}function tf(r,e,t){for(let o=e==0,n=e==Ye(r);o||n;){if(r==t)return!0;let i=Se(r);if(r=r.parentNode,!r)return!1;o=o&&i==0,n=n&&i==Ye(r)}}function Oo(r){let e;for(let t=r;t&&!(e=t.pmViewDesc);t=t.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==r||e.contentDOM==r)}const Un=function(r){return r.focusNode&&fr(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)};function br(r,e){let t=document.createEvent("Event");return t.initEvent("keydown",!0,!0),t.keyCode=r,t.key=t.code=e,t}function rf(r){let e=r.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function of(r,e,t){if(r.caretPositionFromPoint)try{let o=r.caretPositionFromPoint(e,t);if(o)return{node:o.offsetNode,offset:Math.min(Ye(o.offsetNode),o.offset)}}catch{}if(r.caretRangeFromPoint){let o=r.caretRangeFromPoint(e,t);if(o)return{node:o.startContainer,offset:Math.min(Ye(o.startContainer),o.startOffset)}}}const gt=typeof navigator<"u"?navigator:null,lc=typeof document<"u"?document:null,Kt=gt&>.userAgent||"",qa=/Edge\/(\d+)/.exec(Kt),dc=/MSIE \d/.exec(Kt),Ua=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Kt),_e=!!(dc||Ua||qa),Jt=dc?document.documentMode:Ua?+Ua[1]:qa?+qa[1]:0,st=!_e&&/gecko\/(\d+)/i.test(Kt);st&&+(/Firefox\/(\d+)/.exec(Kt)||[0,0])[1];const Ka=!_e&&/Chrome\/(\d+)/.exec(Kt),Oe=!!Ka,cc=Ka?+Ka[1]:0,De=!_e&&!!gt&&/Apple Computer/.test(gt.vendor),Ur=De&&(/Mobile\/\w+/.test(Kt)||!!gt&>.maxTouchPoints>2),Xe=Ur||(gt?/Mac/.test(gt.platform):!1),nf=gt?/Win/.test(gt.platform):!1,Bt=/Android \d/.test(Kt),Vo=!!lc&&"webkitFontSmoothing"in lc.documentElement.style,af=Vo?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function sf(r){let e=r.defaultView&&r.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:r.documentElement.clientWidth,top:0,bottom:r.documentElement.clientHeight}}function Mt(r,e){return typeof r=="number"?r:r[e]}function lf(r){let e=r.getBoundingClientRect(),t=e.width/r.offsetWidth||1,o=e.height/r.offsetHeight||1;return{left:e.left,right:e.left+r.clientWidth*t,top:e.top,bottom:e.top+r.clientHeight*o}}function pc(r,e,t){let o=r.someProp("scrollThreshold")||0,n=r.someProp("scrollMargin")||5,i=r.dom.ownerDocument;for(let a=t||r.dom;a;){if(a.nodeType!=1){a=qr(a);continue}let l=a,d=l==i.body,c=d?sf(i):lf(l),p=0,u=0;if(e.top<c.top+Mt(o,"top")?u=-(c.top-e.top+Mt(n,"top")):e.bottom>c.bottom-Mt(o,"bottom")&&(u=e.bottom-e.top>c.bottom-c.top?e.top+Mt(n,"top")-c.top:e.bottom-c.bottom+Mt(n,"bottom")),e.left<c.left+Mt(o,"left")?p=-(c.left-e.left+Mt(n,"left")):e.right>c.right-Mt(o,"right")&&(p=e.right-c.right+Mt(n,"right")),p||u)if(d)i.defaultView.scrollBy(p,u);else{let h=l.scrollLeft,g=l.scrollTop;u&&(l.scrollTop+=u),p&&(l.scrollLeft+=p);let f=l.scrollLeft-h,b=l.scrollTop-g;e={left:e.left-f,top:e.top-b,right:e.right-f,bottom:e.bottom-b}}let m=d?"fixed":getComputedStyle(a).position;if(/^(fixed|sticky)$/.test(m))break;a=m=="absolute"?a.offsetParent:qr(a)}}function df(r){let e=r.dom.getBoundingClientRect(),t=Math.max(0,e.top),o,n;for(let i=(e.left+e.right)/2,a=t+1;a<Math.min(innerHeight,e.bottom);a+=5){let l=r.root.elementFromPoint(i,a);if(!l||l==r.dom||!r.dom.contains(l))continue;let d=l.getBoundingClientRect();if(d.top>=t-20){o=l,n=d.top;break}}return{refDOM:o,refTop:n,stack:uc(r.dom)}}function uc(r){let e=[],t=r.ownerDocument;for(let o=r;o&&(e.push({dom:o,top:o.scrollTop,left:o.scrollLeft}),r!=t);o=qr(o));return e}function cf({refDOM:r,refTop:e,stack:t}){let o=r?r.getBoundingClientRect().top:0;mc(t,o==0?0:o-e)}function mc(r,e){for(let t=0;t<r.length;t++){let{dom:o,top:n,left:i}=r[t];o.scrollTop!=n+e&&(o.scrollTop=n+e),o.scrollLeft!=i&&(o.scrollLeft=i)}}let Kr=null;function pf(r){if(r.setActive)return r.setActive();if(Kr)return r.focus(Kr);let e=uc(r);r.focus(Kr==null?{get preventScroll(){return Kr={preventScroll:!0},!0}}:void 0),Kr||(Kr=!1,mc(e,0))}function hc(r,e){let t,o=2e8,n,i=0,a=e.top,l=e.top,d,c;for(let p=r.firstChild,u=0;p;p=p.nextSibling,u++){let m;if(p.nodeType==1)m=p.getClientRects();else if(p.nodeType==3)m=Nt(p).getClientRects();else continue;for(let h=0;h<m.length;h++){let g=m[h];if(g.top<=a&&g.bottom>=l){a=Math.max(g.bottom,a),l=Math.min(g.top,l);let f=g.left>e.left?g.left-e.left:g.right<e.left?e.left-g.right:0;if(f<o){t=p,o=f,n=f&&t.nodeType==3?{left:g.right<e.left?g.right:g.left,top:e.top}:e,p.nodeType==1&&f&&(i=u+(e.left>=(g.left+g.right)/2?1:0));continue}}else g.top>e.top&&!d&&g.left<=e.left&&g.right>=e.left&&(d=p,c={left:Math.max(g.left,Math.min(g.right,e.left)),top:g.top});!t&&(e.left>=g.right&&e.top>=g.top||e.left>=g.left&&e.top>=g.bottom)&&(i=u+1)}}return!t&&d&&(t=d,n=c,o=0),t&&t.nodeType==3?uf(t,n):!t||o&&t.nodeType==1?{node:r,offset:i}:hc(t,n)}function uf(r,e){let t=r.nodeValue.length,o=document.createRange();for(let n=0;n<t;n++){o.setEnd(r,n+1),o.setStart(r,n);let i=Gt(o,1);if(i.top!=i.bottom&&Ja(e,i))return{node:r,offset:n+(e.left>=(i.left+i.right)/2?1:0)}}return{node:r,offset:0}}function Ja(r,e){return r.left>=e.left-1&&r.left<=e.right+1&&r.top>=e.top-1&&r.top<=e.bottom+1}function mf(r,e){let t=r.parentNode;return t&&/^li$/i.test(t.nodeName)&&e.left<r.getBoundingClientRect().left?t:r}function hf(r,e,t){let{node:o,offset:n}=hc(e,t),i=-1;if(o.nodeType==1&&!o.firstChild){let a=o.getBoundingClientRect();i=a.left!=a.right&&t.left>(a.left+a.right)/2?1:-1}return r.docView.posFromDOM(o,n,i)}function gf(r,e,t,o){let n=-1;for(let i=e,a=!1;i!=r.dom;){let l=r.docView.nearestDesc(i,!0),d;if(!l)return null;if(l.dom.nodeType==1&&(l.node.isBlock&&l.parent||!l.contentDOM)&&((d=l.dom.getBoundingClientRect()).width||d.height)&&(l.node.isBlock&&l.parent&&(!a&&d.left>o.left||d.top>o.top?n=l.posBefore:(!a&&d.right<o.left||d.bottom<o.top)&&(n=l.posAfter),a=!0),!l.contentDOM&&n<0&&!l.node.isText))return(l.node.isBlock?o.top<(d.top+d.bottom)/2:o.left<(d.left+d.right)/2)?l.posBefore:l.posAfter;i=l.dom.parentNode}return n>-1?n:r.docView.posFromDOM(e,t,-1)}function gc(r,e,t){let o=r.childNodes.length;if(o&&t.top<t.bottom)for(let n=Math.max(0,Math.min(o-1,Math.floor(o*(e.top-t.top)/(t.bottom-t.top))-2)),i=n;;){let a=r.childNodes[i];if(a.nodeType==1){let l=a.getClientRects();for(let d=0;d<l.length;d++){let c=l[d];if(Ja(e,c))return gc(a,e,c)}}if((i=(i+1)%o)==n)break}return r}function ff(r,e){let t=r.dom.ownerDocument,o,n=0,i=of(t,e.left,e.top);i&&({node:o,offset:n}=i);let a=(r.root.elementFromPoint?r.root:t).elementFromPoint(e.left,e.top),l;if(!a||!r.dom.contains(a.nodeType!=1?a.parentNode:a)){let c=r.dom.getBoundingClientRect();if(!Ja(e,c)||(a=gc(r.dom,e,c),!a))return null}if(De)for(let c=a;o&&c;c=qr(c))c.draggable&&(o=void 0);if(a=mf(a,e),o){if(st&&o.nodeType==1&&(n=Math.min(n,o.childNodes.length),n<o.childNodes.length)){let p=o.childNodes[n],u;p.nodeName=="IMG"&&(u=p.getBoundingClientRect()).right<=e.left&&u.bottom>e.top&&n++}let c;Vo&&n&&o.nodeType==1&&(c=o.childNodes[n-1]).nodeType==1&&c.contentEditable=="false"&&c.getBoundingClientRect().top>=e.top&&n--,o==r.dom&&n==o.childNodes.length-1&&o.lastChild.nodeType==1&&e.top>o.lastChild.getBoundingClientRect().bottom?l=r.state.doc.content.size:(n==0||o.nodeType!=1||o.childNodes[n-1].nodeName!="BR")&&(l=gf(r,o,n,e))}l==null&&(l=hf(r,a,e));let d=r.docView.nearestDesc(a,!0);return{pos:l,inside:d?d.posAtStart-d.border:-1}}function fc(r){return r.top<r.bottom||r.left<r.right}function Gt(r,e){let t=r.getClientRects();if(t.length){let o=t[e<0?0:t.length-1];if(fc(o))return o}return Array.prototype.find.call(t,fc)||r.getBoundingClientRect()}const bf=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function bc(r,e,t){let{node:o,offset:n,atom:i}=r.docView.domFromPos(e,t<0?-1:1),a=Vo||st;if(o.nodeType==3)if(a&&(bf.test(o.nodeValue)||(t<0?!n:n==o.nodeValue.length))){let d=Gt(Nt(o,n,n),t);if(st&&n&&/\s/.test(o.nodeValue[n-1])&&n<o.nodeValue.length){let c=Gt(Nt(o,n-1,n-1),-1);if(c.top==d.top){let p=Gt(Nt(o,n,n+1),-1);if(p.top!=d.top)return Po(p,p.left<c.left)}}return d}else{let d=n,c=n,p=t<0?1:-1;return t<0&&!n?(c++,p=-1):t>=0&&n==o.nodeValue.length?(d--,p=1):t<0?d--:c++,Po(Gt(Nt(o,d,c),p),p<0)}if(!r.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&n&&(t<0||n==Ye(o))){let d=o.childNodes[n-1];if(d.nodeType==1)return Ga(d.getBoundingClientRect(),!1)}if(i==null&&n<Ye(o)){let d=o.childNodes[n];if(d.nodeType==1)return Ga(d.getBoundingClientRect(),!0)}return Ga(o.getBoundingClientRect(),t>=0)}if(i==null&&n&&(t<0||n==Ye(o))){let d=o.childNodes[n-1],c=d.nodeType==3?Nt(d,Ye(d)-(a?0:1)):d.nodeType==1&&(d.nodeName!="BR"||!d.nextSibling)?d:null;if(c)return Po(Gt(c,1),!1)}if(i==null&&n<Ye(o)){let d=o.childNodes[n];for(;d.pmViewDesc&&d.pmViewDesc.ignoreForCoords;)d=d.nextSibling;let c=d?d.nodeType==3?Nt(d,0,a?0:1):d.nodeType==1?d:null:null;if(c)return Po(Gt(c,-1),!0)}return Po(Gt(o.nodeType==3?Nt(o):o,-t),t>=0)}function Po(r,e){if(r.width==0)return r;let t=e?r.left:r.right;return{top:r.top,bottom:r.bottom,left:t,right:t}}function Ga(r,e){if(r.height==0)return r;let t=e?r.top:r.bottom;return{top:t,bottom:t,left:r.left,right:r.right}}function wc(r,e,t){let o=r.state,n=r.root.activeElement;o!=e&&r.updateState(e),n!=r.dom&&r.focus();try{return t()}finally{o!=e&&r.updateState(o),n!=r.dom&&n&&n.focus()}}function wf(r,e,t){let o=e.selection,n=t=="up"?o.$from:o.$to;return wc(r,e,()=>{let{node:i}=r.docView.domFromPos(n.pos,t=="up"?-1:1);for(;;){let l=r.docView.nearestDesc(i,!0);if(!l)break;if(l.node.isBlock){i=l.contentDOM||l.dom;break}i=l.dom.parentNode}let a=bc(r,n.pos,1);for(let l=i.firstChild;l;l=l.nextSibling){let d;if(l.nodeType==1)d=l.getClientRects();else if(l.nodeType==3)d=Nt(l,0,l.nodeValue.length).getClientRects();else continue;for(let c=0;c<d.length;c++){let p=d[c];if(p.bottom>p.top+1&&(t=="up"?a.top-p.top>(p.bottom-a.top)*2:p.bottom-a.bottom>(a.bottom-p.top)*2))return!1}}return!0})}const yf=/[\u0590-\u08ac]/;function xf(r,e,t){let{$head:o}=e.selection;if(!o.parent.isTextblock)return!1;let n=o.parentOffset,i=!n,a=n==o.parent.content.size,l=r.domSelection();return l?!yf.test(o.parent.textContent)||!l.modify?t=="left"||t=="backward"?i:a:wc(r,e,()=>{let{focusNode:d,focusOffset:c,anchorNode:p,anchorOffset:u}=r.domSelectionRange(),m=l.caretBidiLevel;l.modify("move",t,"character");let h=o.depth?r.docView.domAfterPos(o.before()):r.dom,{focusNode:g,focusOffset:f}=r.domSelectionRange(),b=g&&!h.contains(g.nodeType==1?g:g.parentNode)||d==g&&c==f;try{l.collapse(p,u),d&&(d!=p||c!=u)&&l.extend&&l.extend(d,c)}catch{}return m!=null&&(l.caretBidiLevel=m),b}):o.pos==o.start()||o.pos==o.end()}let yc=null,xc=null,vc=!1;function vf(r,e,t){return yc==e&&xc==t?vc:(yc=e,xc=t,vc=t=="up"||t=="down"?wf(r,e,t):xf(r,e,t))}const Qe=0,kc=1,wr=2,ft=3;class Ao{constructor(e,t,o,n){this.parent=e,this.children=t,this.dom=o,this.contentDOM=n,this.dirty=Qe,o.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,o){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,o=this.posAtStart;;t++){let n=this.children[t];if(n==e)return o;o+=n.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(e,t,o){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(o<0){let i,a;if(e==this.contentDOM)i=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.previousSibling}for(;i&&!((a=i.pmViewDesc)&&a.parent==this);)i=i.previousSibling;return i?this.posBeforeChild(a)+a.size:this.posAtStart}else{let i,a;if(e==this.contentDOM)i=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.nextSibling}for(;i&&!((a=i.pmViewDesc)&&a.parent==this);)i=i.nextSibling;return i?this.posBeforeChild(a):this.posAtEnd}let n;if(e==this.dom&&this.contentDOM)n=t>Se(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))n=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(t==0)for(let i=e;;i=i.parentNode){if(i==this.dom){n=!1;break}if(i.previousSibling)break}if(n==null&&t==e.childNodes.length)for(let i=e;;i=i.parentNode){if(i==this.dom){n=!0;break}if(i.nextSibling)break}}return n??o>0?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let o=!0,n=e;n;n=n.parentNode){let i=this.getDesc(n),a;if(i&&(!t||i.node))if(o&&(a=i.nodeDOM)&&!(a.nodeType==1?a.contains(e.nodeType==1?e:e.parentNode):a==e))o=!1;else return i}}getDesc(e){let t=e.pmViewDesc;for(let o=t;o;o=o.parent)if(o==this)return t}posFromDOM(e,t,o){for(let n=e;n;n=n.parentNode){let i=this.getDesc(n);if(i)return i.localPosFromDOM(e,t,o)}return-1}descAt(e){for(let t=0,o=0;t<this.children.length;t++){let n=this.children[t],i=o+n.size;if(o==e&&i!=o){for(;!n.border&&n.children.length;)for(let a=0;a<n.children.length;a++){let l=n.children[a];if(l.size){n=l;break}}return n}if(e<i)return n.descAt(e-o-n.border);o=i}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let o=0,n=0;for(let i=0;o<this.children.length;o++){let a=this.children[o],l=i+a.size;if(l>e||a instanceof Cc){n=e-i;break}i=l}if(n)return this.children[o].domFromPos(n-this.children[o].border,t);for(let i;o&&!(i=this.children[o-1]).size&&i instanceof Ec&&i.side>=0;o--);if(t<=0){let i,a=!0;for(;i=o?this.children[o-1]:null,!(!i||i.dom.parentNode==this.contentDOM);o--,a=!1);return i&&t&&a&&!i.border&&!i.domAtom?i.domFromPos(i.size,t):{node:this.contentDOM,offset:i?Se(i.dom)+1:0}}else{let i,a=!0;for(;i=o<this.children.length?this.children[o]:null,!(!i||i.dom.parentNode==this.contentDOM);o++,a=!1);return i&&a&&!i.border&&!i.domAtom?i.domFromPos(0,t):{node:this.contentDOM,offset:i?Se(i.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,o=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let n=-1,i=-1;for(let a=o,l=0;;l++){let d=this.children[l],c=a+d.size;if(n==-1&&e<=c){let p=a+d.border;if(e>=p&&t<=c-d.border&&d.node&&d.contentDOM&&this.contentDOM.contains(d.contentDOM))return d.parseRange(e,t,p);e=a;for(let u=l;u>0;u--){let m=this.children[u-1];if(m.size&&m.dom.parentNode==this.contentDOM&&!m.emptyChildAt(1)){n=Se(m.dom)+1;break}e-=m.size}n==-1&&(n=0)}if(n>-1&&(c>t||l==this.children.length-1)){t=c;for(let p=l+1;p<this.children.length;p++){let u=this.children[p];if(u.size&&u.dom.parentNode==this.contentDOM&&!u.emptyChildAt(-1)){i=Se(u.dom);break}t+=u.size}i==-1&&(i=this.contentDOM.childNodes.length);break}a=c}return{node:this.contentDOM,from:e,to:t,fromOffset:n,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return t.size==0||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:o}=this.domFromPos(e,0);if(t.nodeType!=1||o==t.childNodes.length)throw new RangeError("No node after pos "+e);return t.childNodes[o]}setSelection(e,t,o,n=!1){let i=Math.min(e,t),a=Math.max(e,t);for(let h=0,g=0;h<this.children.length;h++){let f=this.children[h],b=g+f.size;if(i>g&&a<b)return f.setSelection(e-g-f.border,t-g-f.border,o,n);g=b}let l=this.domFromPos(e,e?-1:1),d=t==e?l:this.domFromPos(t,t?-1:1),c=o.root.getSelection(),p=o.domSelectionRange(),u=!1;if((st||De)&&e==t){let{node:h,offset:g}=l;if(h.nodeType==3){if(u=!!(g&&h.nodeValue[g-1]==`
|
|
16
|
-
`),u&&g==h.nodeValue.length)for(let f=h,b;f;f=f.parentNode){if(b=f.nextSibling){b.nodeName=="BR"&&(l=d={node:b.parentNode,offset:Se(b)+1});break}let y=f.pmViewDesc;if(y&&y.node&&y.node.isBlock)break}}else{let f=h.childNodes[g-1];u=f&&(f.nodeName=="BR"||f.contentEditable=="false")}}if(st&&p.focusNode&&p.focusNode!=d.node&&p.focusNode.nodeType==1){let h=p.focusNode.childNodes[p.focusOffset];h&&h.contentEditable=="false"&&(n=!0)}if(!(n||u&&De)&&fr(l.node,l.offset,p.anchorNode,p.anchorOffset)&&fr(d.node,d.offset,p.focusNode,p.focusOffset))return;let m=!1;if((c.extend||e==t)&&!u){c.collapse(l.node,l.offset);try{e!=t&&c.extend(d.node,d.offset),m=!0}catch{}}if(!m){if(e>t){let g=l;l=d,d=g}let h=document.createRange();h.setEnd(d.node,d.offset),h.setStart(l.node,l.offset),c.removeAllRanges(),c.addRange(h)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let o=0,n=0;n<this.children.length;n++){let i=this.children[n],a=o+i.size;if(o==a?e<=a&&t>=o:e<a&&t>o){let l=o+i.border,d=a-i.border;if(e>=l&&t<=d){this.dirty=e==o||t==a?wr:kc,e==l&&t==d&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=ft:i.markDirty(e-l,t-l);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?wr:ft}o=a}this.dirty=wr}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let o=e==1?wr:kc;t.dirty<o&&(t.dirty=o)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}}class Ec extends Ao{constructor(e,t,o,n){let i,a=t.type.toDOM;if(typeof a=="function"&&(a=a(o,()=>{if(!i)return n;if(i.parent)return i.parent.posBeforeChild(i)})),!t.type.spec.raw){if(a.nodeType!=1){let l=document.createElement("span");l.appendChild(a),a=l}a.contentEditable="false",a.classList.add("ProseMirror-widget")}super(e,[],a,null),this.widget=t,this.widget=t,i=this}matchesWidget(e){return this.dirty==Qe&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return t?t(e):!1}ignoreMutation(e){return e.type!="selection"||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 kf extends Ao{constructor(e,t,o,n){super(e,[],t,null),this.textDOM=o,this.text=n}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class yr extends Ao{constructor(e,t,o,n,i){super(e,[],o,n),this.mark=t,this.spec=i}static create(e,t,o,n){let i=n.nodeViews[t.type.name],a=i&&i(t,n,o);return(!a||!a.dom)&&(a=hr.renderSpec(document,t.type.spec.toDOM(t,o),null,t.attrs)),new yr(e,t,a.dom,a.contentDOM||a.dom,a)}parseRule(){return this.dirty&ft||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=ft&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),this.dirty!=Qe){let o=this.parent;for(;!o.node;)o=o.parent;o.dirty<this.dirty&&(o.dirty=this.dirty),this.dirty=Qe}}slice(e,t,o){let n=yr.create(this.parent,this.mark,!0,o),i=this.children,a=this.size;t<a&&(i=Xa(i,t,a,o)),e>0&&(i=Xa(i,0,e,o));for(let l=0;l<i.length;l++)i[l].parent=n;return n.children=i,n}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class Yt extends Ao{constructor(e,t,o,n,i,a,l,d,c){super(e,[],i,a),this.node=t,this.outerDeco=o,this.innerDeco=n,this.nodeDOM=l}static create(e,t,o,n,i,a){let l=i.nodeViews[t.type.name],d,c=l&&l(t,i,()=>{if(!d)return a;if(d.parent)return d.parent.posBeforeChild(d)},o,n),p=c&&c.dom,u=c&&c.contentDOM;if(t.isText){if(!p)p=document.createTextNode(t.text);else if(p.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else p||({dom:p,contentDOM:u}=hr.renderSpec(document,t.type.spec.toDOM(t),null,t.attrs));!u&&!t.isText&&p.nodeName!="BR"&&(p.hasAttribute("contenteditable")||(p.contentEditable="false"),t.type.spec.draggable&&(p.draggable=!0));let m=p;return p=Mc(p,o,t),c?d=new Ef(e,t,o,n,p,u||null,m,c,i,a+1):t.isText?new Kn(e,t,o,n,p,m,i):new Yt(e,t,o,n,p,u||null,m,i,a+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let t=this.children.length-1;t>=0;t--){let o=this.children[t];if(this.dom.contains(o.dom.parentNode)){e.contentElement=o.dom.parentNode;break}}e.contentElement||(e.getContent=()=>M.empty)}return e}matchesNode(e,t,o){return this.dirty==Qe&&e.eq(this.node)&&Jn(t,this.outerDeco)&&o.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,t){let o=this.node.inlineContent,n=t,i=e.composing?this.localCompositionInfo(e,t):null,a=i&&i.pos>-1?i:null,l=i&&i.pos<0,d=new Cf(this,a&&a.node,e);Mf(this.node,this.innerDeco,(c,p,u)=>{c.spec.marks?d.syncToMarks(c.spec.marks,o,e):c.type.side>=0&&!u&&d.syncToMarks(p==this.node.childCount?te.none:this.node.child(p).marks,o,e),d.placeWidget(c,e,n)},(c,p,u,m)=>{d.syncToMarks(c.marks,o,e);let h;d.findNodeMatch(c,p,u,m)||l&&e.state.selection.from>n&&e.state.selection.to<n+c.nodeSize&&(h=d.findIndexWithChild(i.node))>-1&&d.updateNodeAt(c,p,u,h,e)||d.updateNextNode(c,p,u,e,m,n)||d.addNode(c,p,u,e,n),n+=c.nodeSize}),d.syncToMarks([],o,e),this.node.isTextblock&&d.addTextblockHacks(),d.destroyRest(),(d.changed||this.dirty==wr)&&(a&&this.protectLocalComposition(e,a),Nc(this.contentDOM,this.children,e),Ur&&Tf(this.dom))}localCompositionInfo(e,t){let{from:o,to:n}=e.state.selection;if(!(e.state.selection instanceof j)||o<t||n>t+this.node.content.size)return null;let i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let a=i.nodeValue,l=Of(this.node.content,a,o-t,n-t);return l<0?null:{node:i,pos:l,text:a}}else return{node:i,pos:-1,text:""}}protectLocalComposition(e,{node:t,pos:o,text:n}){if(this.getDesc(t))return;let i=t;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let a=new kf(this,i,t,n);e.input.compositionNodes.push(a),this.children=Xa(this.children,o,o+n.length,e,a)}update(e,t,o,n){return this.dirty==ft||!e.sameMarkup(this.node)?!1:(this.updateInner(e,t,o,n),!0)}updateInner(e,t,o,n){this.updateOuterDeco(t),this.node=e,this.innerDeco=o,this.contentDOM&&this.updateChildren(n,this.posAtStart),this.dirty=Qe}updateOuterDeco(e){if(Jn(e,this.outerDeco))return;let t=this.nodeDOM.nodeType!=1,o=this.dom;this.dom=Bc(this.dom,this.nodeDOM,Ya(this.outerDeco,this.node,t),Ya(e,this.node,t)),this.dom!=o&&(o.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function Sc(r,e,t,o,n){Mc(o,e,r);let i=new Yt(void 0,r,e,t,o,o,o,n,0);return i.contentDOM&&i.updateChildren(n,0),i}class Kn extends Yt{constructor(e,t,o,n,i,a,l){super(e,t,o,n,i,null,a,l,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,o,n){return this.dirty==ft||this.dirty!=Qe&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(t),(this.dirty!=Qe||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,n.trackWrites==this.nodeDOM&&(n.trackWrites=null)),this.node=e,this.dirty=Qe,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,o){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,o)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,t,o){let n=this.node.cut(e,t),i=document.createTextNode(n.text);return new Kn(this.parent,n,this.outerDeco,this.innerDeco,i,i,o)}markDirty(e,t){super.markDirty(e,t),this.dom!=this.nodeDOM&&(e==0||t==this.nodeDOM.nodeValue.length)&&(this.dirty=ft)}get domAtom(){return!1}isText(e){return this.node.text==e}}class Cc extends Ao{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==Qe&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class Ef extends Yt{constructor(e,t,o,n,i,a,l,d,c,p){super(e,t,o,n,i,a,l,c,p),this.spec=d}update(e,t,o,n){if(this.dirty==ft)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let i=this.spec.update(e,t,o);return i&&this.updateInner(e,t,o,n),i}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,t,o,n)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,o,n){this.spec.setSelection?this.spec.setSelection(e,t,o.root):super.setSelection(e,t,o,n)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function Nc(r,e,t){let o=r.firstChild,n=!1;for(let i=0;i<e.length;i++){let a=e[i],l=a.dom;if(l.parentNode==r){for(;l!=o;)o=Tc(o),n=!0;o=o.nextSibling}else n=!0,r.insertBefore(l,o);if(a instanceof yr){let d=o?o.previousSibling:r.lastChild;Nc(a.contentDOM,a.children,t),o=d?d.nextSibling:r.firstChild}}for(;o;)o=Tc(o),n=!0;n&&t.trackWrites==r&&(t.trackWrites=null)}const Do=function(r){r&&(this.nodeName=r)};Do.prototype=Object.create(null);const xr=[new Do];function Ya(r,e,t){if(r.length==0)return xr;let o=t?xr[0]:new Do,n=[o];for(let i=0;i<r.length;i++){let a=r[i].type.attrs;if(a){a.nodeName&&n.push(o=new Do(a.nodeName));for(let l in a){let d=a[l];d!=null&&(t&&n.length==1&&n.push(o=new Do(e.isInline?"span":"div")),l=="class"?o.class=(o.class?o.class+" ":"")+d:l=="style"?o.style=(o.style?o.style+";":"")+d:l!="nodeName"&&(o[l]=d))}}}return n}function Bc(r,e,t,o){if(t==xr&&o==xr)return e;let n=e;for(let i=0;i<o.length;i++){let a=o[i],l=t[i];if(i){let d;l&&l.nodeName==a.nodeName&&n!=r&&(d=n.parentNode)&&d.nodeName.toLowerCase()==a.nodeName||(d=document.createElement(a.nodeName),d.pmIsDeco=!0,d.appendChild(n),l=xr[0]),n=d}Sf(n,l||xr[0],a)}return n}function Sf(r,e,t){for(let o in e)o!="class"&&o!="style"&&o!="nodeName"&&!(o in t)&&r.removeAttribute(o);for(let o in t)o!="class"&&o!="style"&&o!="nodeName"&&t[o]!=e[o]&&r.setAttribute(o,t[o]);if(e.class!=t.class){let o=e.class?e.class.split(" ").filter(Boolean):[],n=t.class?t.class.split(" ").filter(Boolean):[];for(let i=0;i<o.length;i++)n.indexOf(o[i])==-1&&r.classList.remove(o[i]);for(let i=0;i<n.length;i++)o.indexOf(n[i])==-1&&r.classList.add(n[i]);r.classList.length==0&&r.removeAttribute("class")}if(e.style!=t.style){if(e.style){let o=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,n;for(;n=o.exec(e.style);)r.style.removeProperty(n[1])}t.style&&(r.style.cssText+=t.style)}}function Mc(r,e,t){return Bc(r,r,xr,Ya(e,t,r.nodeType!=1))}function Jn(r,e){if(r.length!=e.length)return!1;for(let t=0;t<r.length;t++)if(!r[t].type.eq(e[t].type))return!1;return!0}function Tc(r){let e=r.nextSibling;return r.parentNode.removeChild(r),e}class Cf{constructor(e,t,o){this.lock=t,this.view=o,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=Nf(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let o=e;o<t;o++)this.top.children[o].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,o){let n=0,i=this.stack.length>>1,a=Math.min(i,e.length);for(;n<a&&(n==i-1?this.top:this.stack[n+1<<1]).matchesMark(e[n])&&e[n].type.spec.spanning!==!1;)n++;for(;n<i;)this.destroyRest(),this.top.dirty=Qe,this.index=this.stack.pop(),this.top=this.stack.pop(),i--;for(;i<e.length;){this.stack.push(this.top,this.index+1);let l=-1;for(let d=this.index;d<Math.min(this.index+3,this.top.children.length);d++){let c=this.top.children[d];if(c.matchesMark(e[i])&&!this.isLocked(c.dom)){l=d;break}}if(l>-1)l>this.index&&(this.changed=!0,this.destroyBetween(this.index,l)),this.top=this.top.children[this.index];else{let d=yr.create(this.top,e[i],t,o);this.top.children.splice(this.index,0,d),this.top=d,this.changed=!0}this.index=0,i++}}findNodeMatch(e,t,o,n){let i=-1,a;if(n>=this.preMatch.index&&(a=this.preMatch.matches[n-this.preMatch.index]).parent==this.top&&a.matchesNode(e,t,o))i=this.top.children.indexOf(a,this.index);else for(let l=this.index,d=Math.min(this.top.children.length,l+5);l<d;l++){let c=this.top.children[l];if(c.matchesNode(e,t,o)&&!this.preMatch.matched.has(c)){i=l;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,t,o,n,i){let a=this.top.children[n];return a.dirty==ft&&a.dom==a.contentDOM&&(a.dirty=wr),a.update(e,t,o,i)?(this.destroyBetween(this.index,n),this.index++,!0):!1}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){let o=e.pmViewDesc;if(o){for(let n=this.index;n<this.top.children.length;n++)if(this.top.children[n]==o)return n}return-1}e=t}}updateNextNode(e,t,o,n,i,a){for(let l=this.index;l<this.top.children.length;l++){let d=this.top.children[l];if(d instanceof Yt){let c=this.preMatch.matched.get(d);if(c!=null&&c!=i)return!1;let p=d.dom,u,m=this.isLocked(p)&&!(e.isText&&d.node&&d.node.isText&&d.nodeDOM.nodeValue==e.text&&d.dirty!=ft&&Jn(t,d.outerDeco));if(!m&&d.update(e,t,o,n))return this.destroyBetween(this.index,l),d.dom!=p&&(this.changed=!0),this.index++,!0;if(!m&&(u=this.recreateWrapper(d,e,t,o,n,a)))return this.destroyBetween(this.index,l),this.top.children[this.index]=u,u.contentDOM&&(u.dirty=wr,u.updateChildren(n,a+1),u.dirty=Qe),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,o,n,i,a){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content)||!Jn(o,e.outerDeco)||!n.eq(e.innerDeco))return null;let l=Yt.create(this.top,t,o,n,i,a);if(l.contentDOM){l.children=e.children,e.children=[];for(let d of l.children)d.parent=l}return e.destroy(),l}addNode(e,t,o,n,i){let a=Yt.create(this.top,e,t,o,n,i);a.contentDOM&&a.updateChildren(n,i+1),this.top.children.splice(this.index++,0,a),this.changed=!0}placeWidget(e,t,o){let n=this.index<this.top.children.length?this.top.children[this.index]:null;if(n&&n.matchesWidget(e)&&(e==n.widget||!n.widget.type.toDOM.parentNode))this.index++;else{let i=new Ec(this.top,e,t,o);this.top.children.splice(this.index++,0,i),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof yr;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof Kn)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((De||Oe)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",t),this.addHackNode("BR",this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{let o=document.createElement(e);e=="IMG"&&(o.className="ProseMirror-separator",o.alt=""),e=="BR"&&(o.className="ProseMirror-trailingBreak");let n=new Cc(this.top,[],o,null);t!=this.top?t.children.push(n):t.children.splice(this.index++,0,n),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function Nf(r,e){let t=e,o=t.children.length,n=r.childCount,i=new Map,a=[];e:for(;n>0;){let l;for(;;)if(o){let c=t.children[o-1];if(c instanceof yr)t=c,o=c.children.length;else{l=c,o--;break}}else{if(t==e)break e;o=t.parent.children.indexOf(t),t=t.parent}let d=l.node;if(d){if(d!=r.child(n-1))break;--n,i.set(l,n),a.push(l)}}return{index:n,matched:i,matches:a.reverse()}}function Bf(r,e){return r.type.side-e.type.side}function Mf(r,e,t,o){let n=e.locals(r),i=0;if(n.length==0){for(let c=0;c<r.childCount;c++){let p=r.child(c);o(p,n,e.forChild(i,p),c),i+=p.nodeSize}return}let a=0,l=[],d=null;for(let c=0;;){let p,u;for(;a<n.length&&n[a].to==i;){let b=n[a++];b.widget&&(p?(u||(u=[p])).push(b):p=b)}if(p)if(u){u.sort(Bf);for(let b=0;b<u.length;b++)t(u[b],c,!!d)}else t(p,c,!!d);let m,h;if(d)h=-1,m=d,d=null;else if(c<r.childCount)h=c,m=r.child(c++);else break;for(let b=0;b<l.length;b++)l[b].to<=i&&l.splice(b--,1);for(;a<n.length&&n[a].from<=i&&n[a].to>i;)l.push(n[a++]);let g=i+m.nodeSize;if(m.isText){let b=g;a<n.length&&n[a].from<b&&(b=n[a].from);for(let y=0;y<l.length;y++)l[y].to<b&&(b=l[y].to);b<g&&(d=m.cut(b-i),m=m.cut(0,b-i),g=b,h=-1)}else for(;a<n.length&&n[a].to<g;)a++;let f=m.isInline&&!m.isLeaf?l.filter(b=>!b.inline):l.slice();o(m,f,e.forChild(i,m),h),i=g}}function Tf(r){if(r.nodeName=="UL"||r.nodeName=="OL"){let e=r.style.cssText;r.style.cssText=e+"; list-style: square !important",window.getComputedStyle(r).listStyle,r.style.cssText=e}}function Of(r,e,t,o){for(let n=0,i=0;n<r.childCount&&i<=o;){let a=r.child(n++),l=i;if(i+=a.nodeSize,!a.isText)continue;let d=a.text;for(;n<r.childCount;){let c=r.child(n++);if(i+=c.nodeSize,!c.isText)break;d+=c.text}if(i>=t){if(i>=o&&d.slice(o-e.length-l,o-l)==e)return o-e.length;let c=l<o?d.lastIndexOf(e,o-l-1):-1;if(c>=0&&c+e.length+l>=t)return l+c;if(t==o&&d.length>=o+e.length-l&&d.slice(o-l,o-l+e.length)==e)return o}}return-1}function Xa(r,e,t,o,n){let i=[];for(let a=0,l=0;a<r.length;a++){let d=r[a],c=l,p=l+=d.size;c>=t||p<=e?i.push(d):(c<e&&i.push(d.slice(0,e-c,o)),n&&(i.push(n),n=void 0),p>t&&i.push(d.slice(t-c,d.size,o)))}return i}function Qa(r,e=null){let t=r.domSelectionRange(),o=r.state.doc;if(!t.focusNode)return null;let n=r.docView.nearestDesc(t.focusNode),i=n&&n.size==0,a=r.docView.posFromDOM(t.focusNode,t.focusOffset,1);if(a<0)return null;let l=o.resolve(a),d,c;if(Un(t)){for(d=a;n&&!n.node;)n=n.parent;let u=n.node;if(n&&u.isAtom&&R.isSelectable(u)&&n.parent&&!(u.isInline&&tf(t.focusNode,t.focusOffset,n.dom))){let m=n.posBefore;c=new R(a==m?l:o.resolve(m))}}else{if(t instanceof r.dom.ownerDocument.defaultView.Selection&&t.rangeCount>1){let u=a,m=a;for(let h=0;h<t.rangeCount;h++){let g=t.getRangeAt(h);u=Math.min(u,r.docView.posFromDOM(g.startContainer,g.startOffset,1)),m=Math.max(m,r.docView.posFromDOM(g.endContainer,g.endOffset,-1))}if(u<0)return null;[d,a]=m==r.state.selection.anchor?[m,u]:[u,m],l=o.resolve(a)}else d=r.docView.posFromDOM(t.anchorNode,t.anchorOffset,1);if(d<0)return null}let p=o.resolve(d);if(!c){let u=e=="pointer"||r.state.selection.head<l.pos&&!i?1:-1;c=$a(r,p,l,u)}return c}function Oc(r){return r.editable?r.hasFocus():Rc(r)&&document.activeElement&&document.activeElement.contains(r.dom)}function Tt(r,e=!1){let t=r.state.selection;if(Dc(r,t),!!Oc(r)){if(!e&&r.input.mouseDown&&r.input.mouseDown.allowDefault&&Oe){let o=r.domSelectionRange(),n=r.domObserver.currentSelection;if(o.anchorNode&&n.anchorNode&&fr(o.anchorNode,o.anchorOffset,n.anchorNode,n.anchorOffset)){r.input.mouseDown.delayedSelectionSync=!0,r.domObserver.setCurSelection();return}}if(r.domObserver.disconnectSelection(),r.cursorWrapper)Pf(r);else{let{anchor:o,head:n}=t,i,a;Vc&&!(t instanceof j)&&(t.$from.parent.inlineContent||(i=Pc(r,t.from)),!t.empty&&!t.$from.parent.inlineContent&&(a=Pc(r,t.to))),r.docView.setSelection(o,n,r,e),Vc&&(i&&Ac(i),a&&Ac(a)),t.visible?r.dom.classList.remove("ProseMirror-hideselection"):(r.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&Vf(r))}r.domObserver.setCurSelection(),r.domObserver.connectSelection()}}const Vc=De||Oe&&cc<63;function Pc(r,e){let{node:t,offset:o}=r.docView.domFromPos(e,0),n=o<t.childNodes.length?t.childNodes[o]:null,i=o?t.childNodes[o-1]:null;if(De&&n&&n.contentEditable=="false")return Za(n);if((!n||n.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(n)return Za(n);if(i)return Za(i)}}function Za(r){return r.contentEditable="true",De&&r.draggable&&(r.draggable=!1,r.wasDraggable=!0),r}function Ac(r){r.contentEditable="false",r.wasDraggable&&(r.draggable=!0,r.wasDraggable=null)}function Vf(r){let e=r.dom.ownerDocument;e.removeEventListener("selectionchange",r.input.hideSelectionGuard);let t=r.domSelectionRange(),o=t.anchorNode,n=t.anchorOffset;e.addEventListener("selectionchange",r.input.hideSelectionGuard=()=>{(t.anchorNode!=o||t.anchorOffset!=n)&&(e.removeEventListener("selectionchange",r.input.hideSelectionGuard),setTimeout(()=>{(!Oc(r)||r.state.selection.visible)&&r.dom.classList.remove("ProseMirror-hideselection")},20))})}function Pf(r){let e=r.domSelection(),t=document.createRange();if(!e)return;let o=r.cursorWrapper.dom,n=o.nodeName=="IMG";n?t.setStart(o.parentNode,Se(o)+1):t.setStart(o,0),t.collapse(!0),e.removeAllRanges(),e.addRange(t),!n&&!r.state.selection.visible&&_e&&Jt<=11&&(o.disabled=!0,o.disabled=!1)}function Dc(r,e){if(e instanceof R){let t=r.docView.descAt(e.from);t!=r.lastSelectedViewDesc&&(Ic(r),t&&t.selectNode(),r.lastSelectedViewDesc=t)}else Ic(r)}function Ic(r){r.lastSelectedViewDesc&&(r.lastSelectedViewDesc.parent&&r.lastSelectedViewDesc.deselectNode(),r.lastSelectedViewDesc=void 0)}function $a(r,e,t,o){return r.someProp("createSelectionBetween",n=>n(r,e,t))||j.between(e,t,o)}function Lc(r){return r.editable&&!r.hasFocus()?!1:Rc(r)}function Rc(r){let e=r.domSelectionRange();if(!e.anchorNode)return!1;try{return r.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(r.editable||r.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function Af(r){let e=r.docView.domFromPos(r.state.selection.anchor,0),t=r.domSelectionRange();return fr(e.node,e.offset,t.anchorNode,t.anchorOffset)}function es(r,e){let{$anchor:t,$head:o}=r.selection,n=e>0?t.max(o):t.min(o),i=n.parent.inlineContent?n.depth?r.doc.resolve(e>0?n.after():n.before()):null:n;return i&&W.findFrom(i,e)}function Xt(r,e){return r.dispatch(r.state.tr.setSelection(e).scrollIntoView()),!0}function zc(r,e,t){let o=r.state.selection;if(o instanceof j)if(t.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=r.state.doc.resolve(n.pos+i.nodeSize*(e<0?-1:1));return Xt(r,new j(o.$anchor,a))}else if(o.empty){if(r.endOfTextblock(e>0?"forward":"backward")){let n=es(r.state,e);return n&&n instanceof R?Xt(r,n):!1}else if(!(Xe&&t.indexOf("m")>-1)){let n=o.$head,i=n.textOffset?null:e<0?n.nodeBefore:n.nodeAfter,a;if(!i||i.isText)return!1;let l=e<0?n.pos-i.nodeSize:n.pos;return i.isAtom||(a=r.docView.descAt(l))&&!a.contentDOM?R.isSelectable(i)?Xt(r,new R(e<0?r.state.doc.resolve(n.pos-i.nodeSize):n)):Vo?Xt(r,new j(r.state.doc.resolve(e<0?l:l+i.nodeSize))):!1:!1}}else return!1;else{if(o instanceof R&&o.node.isInline)return Xt(r,new j(e>0?o.$to:o.$from));{let n=es(r.state,e);return n?Xt(r,n):!1}}}function Gn(r){return r.nodeType==3?r.nodeValue.length:r.childNodes.length}function Io(r,e){let t=r.pmViewDesc;return t&&t.size==0&&(e<0||r.nextSibling||r.nodeName!="BR")}function Jr(r,e){return e<0?Df(r):If(r)}function Df(r){let e=r.domSelectionRange(),t=e.focusNode,o=e.focusOffset;if(!t)return;let n,i,a=!1;for(st&&t.nodeType==1&&o<Gn(t)&&Io(t.childNodes[o],-1)&&(a=!0);;)if(o>0){if(t.nodeType!=1)break;{let l=t.childNodes[o-1];if(Io(l,-1))n=t,i=--o;else if(l.nodeType==3)t=l,o=t.nodeValue.length;else break}}else{if(_c(t))break;{let l=t.previousSibling;for(;l&&Io(l,-1);)n=t.parentNode,i=Se(l),l=l.previousSibling;if(l)t=l,o=Gn(t);else{if(t=t.parentNode,t==r.dom)break;o=0}}}a?ts(r,t,o):n&&ts(r,n,i)}function If(r){let e=r.domSelectionRange(),t=e.focusNode,o=e.focusOffset;if(!t)return;let n=Gn(t),i,a;for(;;)if(o<n){if(t.nodeType!=1)break;let l=t.childNodes[o];if(Io(l,1))i=t,a=++o;else break}else{if(_c(t))break;{let l=t.nextSibling;for(;l&&Io(l,1);)i=l.parentNode,a=Se(l)+1,l=l.nextSibling;if(l)t=l,o=0,n=Gn(t);else{if(t=t.parentNode,t==r.dom)break;o=n=0}}}i&&ts(r,i,a)}function _c(r){let e=r.pmViewDesc;return e&&e.node&&e.node.isBlock}function Lf(r,e){for(;r&&e==r.childNodes.length&&!Oo(r);)e=Se(r)+1,r=r.parentNode;for(;r&&e<r.childNodes.length;){let t=r.childNodes[e];if(t.nodeType==3)return t;if(t.nodeType==1&&t.contentEditable=="false")break;r=t,e=0}}function Rf(r,e){for(;r&&!e&&!Oo(r);)e=Se(r),r=r.parentNode;for(;r&&e;){let t=r.childNodes[e-1];if(t.nodeType==3)return t;if(t.nodeType==1&&t.contentEditable=="false")break;r=t,e=r.childNodes.length}}function ts(r,e,t){if(e.nodeType!=3){let i,a;(a=Lf(e,t))?(e=a,t=0):(i=Rf(e,t))&&(e=i,t=i.nodeValue.length)}let o=r.domSelection();if(!o)return;if(Un(o)){let i=document.createRange();i.setEnd(e,t),i.setStart(e,t),o.removeAllRanges(),o.addRange(i)}else o.extend&&o.extend(e,t);r.domObserver.setCurSelection();let{state:n}=r;setTimeout(()=>{r.state==n&&Tt(r)},50)}function Fc(r,e){let t=r.state.doc.resolve(e);if(!(Oe||nf)&&t.parent.inlineContent){let n=r.coordsAtPos(e);if(e>t.start()){let i=r.coordsAtPos(e-1),a=(i.top+i.bottom)/2;if(a>n.top&&a<n.bottom&&Math.abs(i.left-n.left)>1)return i.left<n.left?"ltr":"rtl"}if(e<t.end()){let i=r.coordsAtPos(e+1),a=(i.top+i.bottom)/2;if(a>n.top&&a<n.bottom&&Math.abs(i.left-n.left)>1)return i.left>n.left?"ltr":"rtl"}}return getComputedStyle(r.dom).direction=="rtl"?"rtl":"ltr"}function jc(r,e,t){let o=r.state.selection;if(o instanceof j&&!o.empty||t.indexOf("s")>-1||Xe&&t.indexOf("m")>-1)return!1;let{$from:n,$to:i}=o;if(!n.parent.inlineContent||r.endOfTextblock(e<0?"up":"down")){let a=es(r.state,e);if(a&&a instanceof R)return Xt(r,a)}if(!n.parent.inlineContent){let a=e<0?n:i,l=o instanceof qe?W.near(a,e):W.findFrom(a,e);return l?Xt(r,l):!1}return!1}function Hc(r,e){if(!(r.state.selection instanceof j))return!0;let{$head:t,$anchor:o,empty:n}=r.state.selection;if(!t.sameParent(o))return!0;if(!n)return!1;if(r.endOfTextblock(e>0?"forward":"backward"))return!0;let i=!t.textOffset&&(e<0?t.nodeBefore:t.nodeAfter);if(i&&!i.isText){let a=r.state.tr;return e<0?a.delete(t.pos-i.nodeSize,t.pos):a.delete(t.pos,t.pos+i.nodeSize),r.dispatch(a),!0}return!1}function Wc(r,e,t){r.domObserver.stop(),e.contentEditable=t,r.domObserver.start()}function zf(r){if(!De||r.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:t}=r.domSelectionRange();if(e&&e.nodeType==1&&t==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let o=e.firstChild;Wc(r,o,"true"),setTimeout(()=>Wc(r,o,"false"),20)}return!1}function _f(r){let e="";return r.ctrlKey&&(e+="c"),r.metaKey&&(e+="m"),r.altKey&&(e+="a"),r.shiftKey&&(e+="s"),e}function Ff(r,e){let t=e.keyCode,o=_f(e);if(t==8||Xe&&t==72&&o=="c")return Hc(r,-1)||Jr(r,-1);if(t==46&&!e.shiftKey||Xe&&t==68&&o=="c")return Hc(r,1)||Jr(r,1);if(t==13||t==27)return!0;if(t==37||Xe&&t==66&&o=="c"){let n=t==37?Fc(r,r.state.selection.from)=="ltr"?-1:1:-1;return zc(r,n,o)||Jr(r,n)}else if(t==39||Xe&&t==70&&o=="c"){let n=t==39?Fc(r,r.state.selection.from)=="ltr"?1:-1:1;return zc(r,n,o)||Jr(r,n)}else{if(t==38||Xe&&t==80&&o=="c")return jc(r,-1,o)||Jr(r,-1);if(t==40||Xe&&t==78&&o=="c")return zf(r)||jc(r,1,o)||Jr(r,1);if(o==(Xe?"m":"c")&&(t==66||t==73||t==89||t==90))return!0}return!1}function rs(r,e){r.someProp("transformCopied",h=>{e=h(e,r)});let t=[],{content:o,openStart:n,openEnd:i}=e;for(;n>1&&i>1&&o.childCount==1&&o.firstChild.childCount==1;){n--,i--;let h=o.firstChild;t.push(h.type.name,h.attrs!=h.type.defaultAttrs?h.attrs:null),o=h.content}let a=r.someProp("clipboardSerializer")||hr.fromSchema(r.state.schema),l=Qc(),d=l.createElement("div");d.appendChild(a.serializeFragment(o,{document:l}));let c=d.firstChild,p,u=0;for(;c&&c.nodeType==1&&(p=Yc[c.nodeName.toLowerCase()]);){for(let h=p.length-1;h>=0;h--){let g=l.createElement(p[h]);for(;d.firstChild;)g.appendChild(d.firstChild);d.appendChild(g),u++}c=d.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${n} ${i}${u?` -${u}`:""} ${JSON.stringify(t)}`);let m=r.someProp("clipboardTextSerializer",h=>h(e,r))||e.content.textBetween(0,e.content.size,`
|
|
17
|
-
|
|
18
|
-
`);return{dom:
|
|
19
|
-
`))),0,0):A.empty;let u=r.someProp("clipboardTextParser",m=>m(e,n,o,r));if(u)l=u;else{let m=n.marks(),{schema:h}=r.state,g=hr.fromSchema(h);a=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(f=>{let b=a.appendChild(document.createElement("p"));f&&b.appendChild(g.serializeNode(h.text(f,m)))})}}else r.someProp("transformPastedHTML",u=>{t=u(t,r)}),a=qf(t),Vo&&Uf(a);let c=a&&a.querySelector("[data-pm-slice]"),p=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(p&&p[3])for(let u=+p[3];u>0;u--){let m=a.firstChild;for(;m&&m.nodeType!=1;)m=m.nextSibling;if(!m)break;a=m}if(l||(l=(r.someProp("clipboardParser")||r.someProp("domParser")||ko.fromSchema(r.state.schema)).parseSlice(a,{preserveWhitespace:!!(d||p),context:n,ruleFromNode(m){return m.nodeName=="BR"&&!m.nextSibling&&m.parentNode&&!jf.test(m.parentNode.nodeName)?{ignore:!0}:null}})),p)l=Kf(Gc(l,+p[1],+p[2]),p[4]);else if(l=A.maxOpen(Hf(l.content,n),!0),l.openStart||l.openEnd){let u=0,m=0;for(let h=l.content.firstChild;u<l.openStart&&!h.type.spec.isolating;u++,h=h.firstChild);for(let h=l.content.lastChild;m<l.openEnd&&!h.type.spec.isolating;m++,h=h.lastChild);l=Gc(l,u,m)}return r.someProp("transformPasted",u=>{l=u(l,r)}),l}const jf=/^(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 Hf(r,e){if(r.childCount<2)return r;for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.index(t)),i,a=[];if(r.forEach(l=>{if(!a)return;let d=n.findWrapping(l.type),c;if(!d)return a=null;if(c=a.length&&i.length&&Kc(d,i,l,a[a.length-1],0))a[a.length-1]=c;else{a.length&&(a[a.length-1]=Jc(a[a.length-1],i.length));let p=Uc(l,d);a.push(p),n=n.matchType(p.type),i=d}}),a)return M.from(a)}return r}function Uc(r,e,t=0){for(let o=e.length-1;o>=t;o--)r=e[o].create(null,M.from(r));return r}function Kc(r,e,t,o,n){if(n<r.length&&n<e.length&&r[n]==e[n]){let i=Kc(r,e,t,o.lastChild,n+1);if(i)return o.copy(o.content.replaceChild(o.childCount-1,i));if(o.contentMatchAt(o.childCount).matchType(n==r.length-1?t.type:r[n+1]))return o.copy(o.content.append(M.from(Uc(t,r,n+1))))}}function Jc(r,e){if(e==0)return r;let t=r.content.replaceChild(r.childCount-1,Jc(r.lastChild,e-1)),o=r.contentMatchAt(r.childCount).fillBefore(M.empty,!0);return r.copy(t.append(o))}function ns(r,e,t,o,n,i){let a=e<0?r.firstChild:r.lastChild,l=a.content;return r.childCount>1&&(i=0),n<o-1&&(l=ns(l,e,t,o,n+1,i)),n>=t&&(l=e<0?a.contentMatchAt(0).fillBefore(l,i<=n).append(l):l.append(a.contentMatchAt(a.childCount).fillBefore(M.empty,!0))),r.replaceChild(e<0?0:r.childCount-1,a.copy(l))}function Gc(r,e,t){return e<r.openStart&&(r=new A(ns(r.content,-1,e,r.openStart,0,r.openEnd),e,r.openEnd)),t<r.openEnd&&(r=new A(ns(r.content,1,t,r.openEnd,0,0),r.openStart,t)),r}const Yc={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 Xc=null;function Qc(){return Xc||(Xc=document.implementation.createHTMLDocument("title"))}let is=null;function Wf(r){let e=window.trustedTypes;return e?(is||(is=e.defaultPolicy||e.createPolicy("ProseMirrorClipboard",{createHTML:t=>t})),is.createHTML(r)):r}function qf(r){let e=/^(\s*<meta [^>]*>)*/.exec(r);e&&(r=r.slice(e[0].length));let t=Qc().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(r),n;if((n=o&&Yc[o[1].toLowerCase()])&&(r=n.map(i=>"<"+i+">").join("")+r+n.map(i=>"</"+i+">").reverse().join("")),t.innerHTML=Wf(r),n)for(let i=0;i<n.length;i++)t=t.querySelector(n[i])||t;return t}function Uf(r){let e=r.querySelectorAll(Oe?"span:not([class]):not([style])":"span.Apple-converted-space");for(let t=0;t<e.length;t++){let o=e[t];o.childNodes.length==1&&o.textContent==" "&&o.parentNode&&o.parentNode.replaceChild(r.ownerDocument.createTextNode(" "),o)}}function Kf(r,e){if(!r.size)return r;let t=r.content.firstChild.type.schema,o;try{o=JSON.parse(e)}catch{return r}let{content:n,openStart:i,openEnd:a}=r;for(let l=o.length-2;l>=0;l-=2){let d=t.nodes[o[l]];if(!d||d.hasRequiredAttrs())break;n=M.from(d.create(o[l+1],n)),i++,a++}return new A(n,i,a)}const Ie={},Le={},Jf={touchstart:!0,touchmove:!0};class Gf{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.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function Yf(r){for(let e in Ie){let t=Ie[e];r.dom.addEventListener(e,r.input.eventHandlers[e]=o=>{Qf(r,o)&&!ss(r,o)&&(r.editable||!(o.type in Le))&&t(r,o)},Jf[e]?{passive:!0}:void 0)}De&&r.dom.addEventListener("input",()=>null),as(r)}function Qt(r,e){r.input.lastSelectionOrigin=e,r.input.lastSelectionTime=Date.now()}function Xf(r){r.domObserver.stop();for(let e in r.input.eventHandlers)r.dom.removeEventListener(e,r.input.eventHandlers[e]);clearTimeout(r.input.composingTimeout),clearTimeout(r.input.lastIOSEnterFallbackTimeout)}function as(r){r.someProp("handleDOMEvents",e=>{for(let t in e)r.input.eventHandlers[t]||r.dom.addEventListener(t,r.input.eventHandlers[t]=o=>ss(r,o))})}function ss(r,e){return r.someProp("handleDOMEvents",t=>{let o=t[e.type];return o?o(r,e)||e.defaultPrevented:!1})}function Qf(r,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target;t!=r.dom;t=t.parentNode)if(!t||t.nodeType==11||t.pmViewDesc&&t.pmViewDesc.stopEvent(e))return!1;return!0}function Zf(r,e){!ss(r,e)&&Ie[e.type]&&(r.editable||!(e.type in Le))&&Ie[e.type](r,e)}Le.keydown=(r,e)=>{let t=e;if(r.input.shiftKey=t.keyCode==16||t.shiftKey,!$c(r,t)&&(r.input.lastKeyCode=t.keyCode,r.input.lastKeyCodeTime=Date.now(),!(Bt&&Oe&&t.keyCode==13)))if(t.keyCode!=229&&r.domObserver.forceFlush(),Ur&&t.keyCode==13&&!t.ctrlKey&&!t.altKey&&!t.metaKey){let o=Date.now();r.input.lastIOSEnter=o,r.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{r.input.lastIOSEnter==o&&(r.someProp("handleKeyDown",n=>n(r,br(13,"Enter"))),r.input.lastIOSEnter=0)},200)}else r.someProp("handleKeyDown",o=>o(r,t))||Ff(r,t)?t.preventDefault():Qt(r,"key")},Le.keyup=(r,e)=>{e.keyCode==16&&(r.input.shiftKey=!1)},Le.keypress=(r,e)=>{let t=e;if($c(r,t)||!t.charCode||t.ctrlKey&&!t.altKey||Xe&&t.metaKey)return;if(r.someProp("handleKeyPress",n=>n(r,t))){t.preventDefault();return}let o=r.state.selection;if(!(o instanceof j)||!o.$from.sameParent(o.$to)){let n=String.fromCharCode(t.charCode),i=()=>r.state.tr.insertText(n).scrollIntoView();!/[\r\n]/.test(n)&&!r.someProp("handleTextInput",a=>a(r,o.$from.pos,o.$to.pos,n,i))&&r.dispatch(i()),t.preventDefault()}};function Yn(r){return{left:r.clientX,top:r.clientY}}function $f(r,e){let t=e.x-r.clientX,o=e.y-r.clientY;return t*t+o*o<100}function ls(r,e,t,o,n){if(o==-1)return!1;let i=r.state.doc.resolve(o);for(let a=i.depth+1;a>0;a--)if(r.someProp(e,l=>a>i.depth?l(r,t,i.nodeAfter,i.before(a),n,!0):l(r,t,i.node(a),i.before(a),n,!1)))return!0;return!1}function Gr(r,e,t){if(r.focused||r.focus(),r.state.selection.eq(e))return;let o=r.state.tr.setSelection(e);o.setMeta("pointer",!0),r.dispatch(o)}function e0(r,e){if(e==-1)return!1;let t=r.state.doc.resolve(e),o=t.nodeAfter;return o&&o.isAtom&&R.isSelectable(o)?(Gr(r,new R(t)),!0):!1}function t0(r,e){if(e==-1)return!1;let t=r.state.selection,o,n;t instanceof R&&(o=t.node);let i=r.state.doc.resolve(e);for(let a=i.depth+1;a>0;a--){let l=a>i.depth?i.nodeAfter:i.node(a);if(R.isSelectable(l)){o&&t.$from.depth>0&&a>=t.$from.depth&&i.before(t.$from.depth+1)==t.$from.pos?n=i.before(t.$from.depth):n=i.before(a);break}}return n!=null?(Gr(r,R.create(r.state.doc,n)),!0):!1}function r0(r,e,t,o,n){return ls(r,"handleClickOn",e,t,o)||r.someProp("handleClick",i=>i(r,e,o))||(n?t0(r,t):e0(r,t))}function o0(r,e,t,o){return ls(r,"handleDoubleClickOn",e,t,o)||r.someProp("handleDoubleClick",n=>n(r,e,o))}function n0(r,e,t,o){return ls(r,"handleTripleClickOn",e,t,o)||r.someProp("handleTripleClick",n=>n(r,e,o))||i0(r,t,o)}function i0(r,e,t){if(t.button!=0)return!1;let o=r.state.doc;if(e==-1)return o.inlineContent?(Gr(r,j.create(o,0,o.content.size)),!0):!1;let n=o.resolve(e);for(let i=n.depth+1;i>0;i--){let a=i>n.depth?n.nodeAfter:n.node(i),l=n.before(i);if(a.inlineContent)Gr(r,j.create(o,l+1,l+1+a.content.size));else if(R.isSelectable(a))Gr(r,R.create(o,l));else continue;return!0}}function ds(r){return Xn(r)}const Zc=Xe?"metaKey":"ctrlKey";Ie.mousedown=(r,e)=>{let t=e;r.input.shiftKey=t.shiftKey;let o=ds(r),n=Date.now(),i="singleClick";n-r.input.lastClick.time<500&&$f(t,r.input.lastClick)&&!t[Zc]&&r.input.lastClick.button==t.button&&(r.input.lastClick.type=="singleClick"?i="doubleClick":r.input.lastClick.type=="doubleClick"&&(i="tripleClick")),r.input.lastClick={time:n,x:t.clientX,y:t.clientY,type:i,button:t.button};let a=r.posAtCoords(Yn(t));a&&(i=="singleClick"?(r.input.mouseDown&&r.input.mouseDown.done(),r.input.mouseDown=new a0(r,a,t,!!o)):(i=="doubleClick"?o0:n0)(r,a.pos,a.inside,t)?t.preventDefault():Qt(r,"pointer"))};class a0{constructor(e,t,o,n){this.view=e,this.pos=t,this.event=o,this.flushed=n,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!o[Zc],this.allowDefault=o.shiftKey;let i,a;if(t.inside>-1)i=e.state.doc.nodeAt(t.inside),a=t.inside;else{let p=e.state.doc.resolve(t.pos);i=p.parent,a=p.depth?p.before():0}const l=n?null:o.target,d=l?e.docView.nearestDesc(l,!0):null;this.target=d&&d.dom.nodeType==1?d.dom:null;let{selection:c}=e.state;(o.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||c instanceof R&&c.from<=a&&c.to>a)&&(this.mightDrag={node:i,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&st&&!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()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),Qt(e,"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(()=>Tt(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(Yn(e))),this.updateAllowDefault(e),this.allowDefault||!t?Qt(this.view,"pointer"):r0(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||De&&this.mightDrag&&!this.mightDrag.node.isAtom||Oe&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(Gr(this.view,W.near(this.view.state.doc.resolve(t.pos))),e.preventDefault()):Qt(this.view,"pointer")}move(e){this.updateAllowDefault(e),Qt(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}Ie.touchstart=r=>{r.input.lastTouch=Date.now(),ds(r),Qt(r,"pointer")},Ie.touchmove=r=>{r.input.lastTouch=Date.now(),Qt(r,"pointer")},Ie.contextmenu=r=>ds(r);function $c(r,e){return r.composing?!0:De&&Math.abs(e.timeStamp-r.input.compositionEndedAt)<500?(r.input.compositionEndedAt=-2e8,!0):!1}const s0=Bt?5e3:-1;Le.compositionstart=Le.compositionupdate=r=>{if(!r.composing){r.domObserver.flush();let{state:e}=r,t=e.selection.$to;if(e.selection instanceof j&&(e.storedMarks||!t.textOffset&&t.parentOffset&&t.nodeBefore.marks.some(o=>o.type.spec.inclusive===!1)))r.markCursor=r.state.storedMarks||t.marks(),Xn(r,!0),r.markCursor=null;else if(Xn(r,!e.selection.empty),st&&e.selection.empty&&t.parentOffset&&!t.textOffset&&t.nodeBefore.marks.length){let o=r.domSelectionRange();for(let n=o.focusNode,i=o.focusOffset;n&&n.nodeType==1&&i!=0;){let a=i<0?n.lastChild:n.childNodes[i-1];if(!a)break;if(a.nodeType==3){let l=r.domSelection();l&&l.collapse(a,a.nodeValue.length);break}else n=a,i=-1}}r.input.composing=!0}ep(r,s0)},Le.compositionend=(r,e)=>{r.composing&&(r.input.composing=!1,r.input.compositionEndedAt=e.timeStamp,r.input.compositionPendingChanges=r.domObserver.pendingRecords().length?r.input.compositionID:0,r.input.compositionNode=null,r.input.compositionPendingChanges&&Promise.resolve().then(()=>r.domObserver.flush()),r.input.compositionID++,ep(r,20))};function ep(r,e){clearTimeout(r.input.composingTimeout),e>-1&&(r.input.composingTimeout=setTimeout(()=>Xn(r),e))}function tp(r){for(r.composing&&(r.input.composing=!1,r.input.compositionEndedAt=d0());r.input.compositionNodes.length>0;)r.input.compositionNodes.pop().markParentsDirty()}function l0(r){let e=r.domSelectionRange();if(!e.focusNode)return null;let t=$g(e.focusNode,e.focusOffset),o=ef(e.focusNode,e.focusOffset);if(t&&o&&t!=o){let n=o.pmViewDesc,i=r.domObserver.lastChangedTextNode;if(t==i||o==i)return i;if(!n||!n.isText(o.nodeValue))return o;if(r.input.compositionNode==o){let a=t.pmViewDesc;if(!(!a||!a.isText(t.nodeValue)))return o}}return t||o}function d0(){let r=document.createEvent("Event");return r.initEvent("event",!0,!0),r.timeStamp}function Xn(r,e=!1){if(!(Bt&&r.domObserver.flushingSoon>=0)){if(r.domObserver.forceFlush(),tp(r),e||r.docView&&r.docView.dirty){let t=Qa(r),o=r.state.selection;return t&&!t.eq(o)?r.dispatch(r.state.tr.setSelection(t)):(r.markCursor||e)&&!o.$from.node(o.$from.sharedDepth(o.to)).inlineContent?r.dispatch(r.state.tr.deleteSelection()):r.updateState(r.state),!0}return!1}}function c0(r,e){if(!r.dom.parentNode)return;let t=r.dom.parentNode.appendChild(document.createElement("div"));t.appendChild(e),t.style.cssText="position: fixed; left: -10000px; top: 10px";let o=getSelection(),n=document.createRange();n.selectNodeContents(e),r.dom.blur(),o.removeAllRanges(),o.addRange(n),setTimeout(()=>{t.parentNode&&t.parentNode.removeChild(t),r.focus()},50)}const Lo=_e&&Jt<15||Ur&&af<604;Ie.copy=Le.cut=(r,e)=>{let t=e,o=r.state.selection,n=t.type=="cut";if(o.empty)return;let i=Lo?null:t.clipboardData,a=o.content(),{dom:l,text:d}=rs(r,a);i?(t.preventDefault(),i.clearData(),i.setData("text/html",l.innerHTML),i.setData("text/plain",d)):c0(r,l),n&&r.dispatch(r.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function p0(r){return r.openStart==0&&r.openEnd==0&&r.content.childCount==1?r.content.firstChild:null}function u0(r,e){if(!r.dom.parentNode)return;let t=r.input.shiftKey||r.state.selection.$from.parent.type.spec.code,o=r.dom.parentNode.appendChild(document.createElement(t?"textarea":"div"));t||(o.contentEditable="true"),o.style.cssText="position: fixed; left: -10000px; top: 10px",o.focus();let n=r.input.shiftKey&&r.input.lastKeyCode!=45;setTimeout(()=>{r.focus(),o.parentNode&&o.parentNode.removeChild(o),t?Ro(r,o.value,null,n,e):Ro(r,o.textContent,o.innerHTML,n,e)},50)}function Ro(r,e,t,o,n){let i=qc(r,e,t,o,r.state.selection.$from);if(r.someProp("handlePaste",d=>d(r,n,i||A.empty)))return!0;if(!i)return!1;let a=p0(i),l=a?r.state.tr.replaceSelectionWith(a,o):r.state.tr.replaceSelection(i);return r.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function rp(r){let e=r.getData("text/plain")||r.getData("Text");if(e)return e;let t=r.getData("text/uri-list");return t?t.replace(/\r?\n/g," "):""}Le.paste=(r,e)=>{let t=e;if(r.composing&&!Bt)return;let o=Lo?null:t.clipboardData,n=r.input.shiftKey&&r.input.lastKeyCode!=45;o&&Ro(r,rp(o),o.getData("text/html"),n,t)?t.preventDefault():u0(r,t)};class op{constructor(e,t,o){this.slice=e,this.move=t,this.node=o}}const m0=Xe?"altKey":"ctrlKey";function np(r,e){let t=r.someProp("dragCopies",o=>!o(e));return t??!e[m0]}Ie.dragstart=(r,e)=>{let t=e,o=r.input.mouseDown;if(o&&o.done(),!t.dataTransfer)return;let n=r.state.selection,i=n.empty?null:r.posAtCoords(Yn(t)),a;if(!(i&&i.pos>=n.from&&i.pos<=(n instanceof R?n.to-1:n.to))){if(o&&o.mightDrag)a=R.create(r.state.doc,o.mightDrag.pos);else if(t.target&&t.target.nodeType==1){let u=r.docView.nearestDesc(t.target,!0);u&&u.node.type.spec.draggable&&u!=r.docView&&(a=R.create(r.state.doc,u.posBefore))}}let l=(a||r.state.selection).content(),{dom:d,text:c,slice:p}=rs(r,l);(!t.dataTransfer.files.length||!Oe||cc>120)&&t.dataTransfer.clearData(),t.dataTransfer.setData(Lo?"Text":"text/html",d.innerHTML),t.dataTransfer.effectAllowed="copyMove",Lo||t.dataTransfer.setData("text/plain",c),r.dragging=new op(p,np(r,t),a)},Ie.dragend=r=>{let e=r.dragging;window.setTimeout(()=>{r.dragging==e&&(r.dragging=null)},50)},Le.dragover=Le.dragenter=(r,e)=>e.preventDefault(),Le.drop=(r,e)=>{let t=e,o=r.dragging;if(r.dragging=null,!t.dataTransfer)return;let n=r.posAtCoords(Yn(t));if(!n)return;let i=r.state.doc.resolve(n.pos),a=o&&o.slice;a?r.someProp("transformPasted",g=>{a=g(a,r)}):a=qc(r,rp(t.dataTransfer),Lo?null:t.dataTransfer.getData("text/html"),!1,i);let l=!!(o&&np(r,t));if(r.someProp("handleDrop",g=>g(r,t,a||A.empty,l))){t.preventDefault();return}if(!a)return;t.preventDefault();let d=a?Jd(r.state.doc,i.pos,a):i.pos;d==null&&(d=i.pos);let c=r.state.tr;if(l){let{node:g}=o;g?g.replace(c):c.deleteSelection()}let p=c.mapping.map(d),u=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,m=c.doc;if(u?c.replaceRangeWith(p,p,a.content.firstChild):c.replaceRange(p,p,a),c.doc.eq(m))return;let h=c.doc.resolve(p);if(u&&R.isSelectable(a.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(a.content.firstChild))c.setSelection(new R(h));else{let g=c.mapping.map(d);c.mapping.maps[c.mapping.maps.length-1].forEach((f,b,y,k)=>g=k),c.setSelection($a(r,h,c.doc.resolve(g)))}r.focus(),r.dispatch(c.setMeta("uiEvent","drop"))},Ie.focus=r=>{r.input.lastFocus=Date.now(),r.focused||(r.domObserver.stop(),r.dom.classList.add("ProseMirror-focused"),r.domObserver.start(),r.focused=!0,setTimeout(()=>{r.docView&&r.hasFocus()&&!r.domObserver.currentSelection.eq(r.domSelectionRange())&&Tt(r)},20))},Ie.blur=(r,e)=>{let t=e;r.focused&&(r.domObserver.stop(),r.dom.classList.remove("ProseMirror-focused"),r.domObserver.start(),t.relatedTarget&&r.dom.contains(t.relatedTarget)&&r.domObserver.currentSelection.clear(),r.focused=!1)},Ie.beforeinput=(r,e)=>{if(Oe&&Bt&&e.inputType=="deleteContentBackward"){r.domObserver.flushSoon();let{domChangeCount:o}=r.input;setTimeout(()=>{if(r.input.domChangeCount!=o||(r.dom.blur(),r.focus(),r.someProp("handleKeyDown",i=>i(r,br(8,"Backspace")))))return;let{$cursor:n}=r.state.selection;n&&n.pos>0&&r.dispatch(r.state.tr.delete(n.pos-1,n.pos).scrollIntoView())},50)}};for(let r in Le)Ie[r]=Le[r];function zo(r,e){if(r==e)return!0;for(let t in r)if(r[t]!==e[t])return!1;for(let t in e)if(!(t in r))return!1;return!0}class Qn{constructor(e,t){this.toDOM=e,this.spec=t||vr,this.side=this.spec.side||0}map(e,t,o,n){let{pos:i,deleted:a}=e.mapResult(t.from+n,this.side<0?-1:1);return a?null:new Ze(i-o,i-o,this)}valid(){return!0}eq(e){return this==e||e instanceof Qn&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&zo(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Zt{constructor(e,t){this.attrs=e,this.spec=t||vr}map(e,t,o,n){let i=e.map(t.from+n,this.spec.inclusiveStart?-1:1)-o,a=e.map(t.to+n,this.spec.inclusiveEnd?1:-1)-o;return i>=a?null:new Ze(i,a,this)}valid(e,t){return t.from<t.to}eq(e){return this==e||e instanceof Zt&&zo(this.attrs,e.attrs)&&zo(this.spec,e.spec)}static is(e){return e.type instanceof Zt}destroy(){}}class cs{constructor(e,t){this.attrs=e,this.spec=t||vr}map(e,t,o,n){let i=e.mapResult(t.from+n,1);if(i.deleted)return null;let a=e.mapResult(t.to+n,-1);return a.deleted||a.pos<=i.pos?null:new Ze(i.pos-o,a.pos-o,this)}valid(e,t){let{index:o,offset:n}=e.content.findIndex(t.from),i;return n==t.from&&!(i=e.child(o)).isText&&n+i.nodeSize==t.to}eq(e){return this==e||e instanceof cs&&zo(this.attrs,e.attrs)&&zo(this.spec,e.spec)}destroy(){}}class Ze{constructor(e,t,o){this.from=e,this.to=t,this.type=o}copy(e,t){return new Ze(e,t,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,o){return this.type.map(e,this,t,o)}static widget(e,t,o){return new Ze(e,e,new Qn(t,o))}static inline(e,t,o,n){return new Ze(e,t,new Zt(o,n))}static node(e,t,o,n){return new Ze(e,t,new cs(o,n))}get spec(){return this.type.spec}get inline(){return this.type instanceof Zt}get widget(){return this.type instanceof Qn}}const Yr=[],vr={};class ge{constructor(e,t){this.local=e.length?e:Yr,this.children=t.length?t:Yr}static create(e,t){return t.length?Zn(t,e,0,vr):Ve}find(e,t,o){let n=[];return this.findInner(e??0,t??1e9,n,0,o),n}findInner(e,t,o,n,i){for(let a=0;a<this.local.length;a++){let l=this.local[a];l.from<=t&&l.to>=e&&(!i||i(l.spec))&&o.push(l.copy(l.from+n,l.to+n))}for(let a=0;a<this.children.length;a+=3)if(this.children[a]<t&&this.children[a+1]>e){let l=this.children[a]+1;this.children[a+2].findInner(e-l,t-l,o,n+l,i)}}map(e,t,o){return this==Ve||e.maps.length==0?this:this.mapInner(e,t,0,0,o||vr)}mapInner(e,t,o,n,i){let a;for(let l=0;l<this.local.length;l++){let d=this.local[l].map(e,o,n);d&&d.type.valid(t,d)?(a||(a=[])).push(d):i.onRemove&&i.onRemove(this.local[l].spec)}return this.children.length?h0(this.children,a||[],e,t,o,n,i):a?new ge(a.sort(kr),Yr):Ve}add(e,t){return t.length?this==Ve?ge.create(e,t):this.addInner(e,t,0):this}addInner(e,t,o){let n,i=0;e.forEach((l,d)=>{let c=d+o,p;if(p=ap(t,l,c)){for(n||(n=this.children.slice());i<n.length&&n[i]<d;)i+=3;n[i]==d?n[i+2]=n[i+2].addInner(l,p,c+1):n.splice(i,0,d,d+l.nodeSize,Zn(p,l,c+1,vr)),i+=3}});let a=ip(i?sp(t):t,-o);for(let l=0;l<a.length;l++)a[l].type.valid(e,a[l])||a.splice(l--,1);return new ge(a.length?this.local.concat(a).sort(kr):this.local,n||this.children)}remove(e){return e.length==0||this==Ve?this:this.removeInner(e,0)}removeInner(e,t){let o=this.children,n=this.local;for(let i=0;i<o.length;i+=3){let a,l=o[i]+t,d=o[i+1]+t;for(let p=0,u;p<e.length;p++)(u=e[p])&&u.from>l&&u.to<d&&(e[p]=null,(a||(a=[])).push(u));if(!a)continue;o==this.children&&(o=this.children.slice());let c=o[i+2].removeInner(a,l+1);c!=Ve?o[i+2]=c:(o.splice(i,3),i-=3)}if(n.length){for(let i=0,a;i<e.length;i++)if(a=e[i])for(let l=0;l<n.length;l++)n[l].eq(a,t)&&(n==this.local&&(n=this.local.slice()),n.splice(l--,1))}return o==this.children&&n==this.local?this:n.length||o.length?new ge(n,o):Ve}forChild(e,t){if(this==Ve)return this;if(t.isLeaf)return ge.empty;let o,n;for(let l=0;l<this.children.length;l+=3)if(this.children[l]>=e){this.children[l]==e&&(o=this.children[l+2]);break}let i=e+1,a=i+t.content.size;for(let l=0;l<this.local.length;l++){let d=this.local[l];if(d.from<a&&d.to>i&&d.type instanceof Zt){let c=Math.max(i,d.from)-i,p=Math.min(a,d.to)-i;c<p&&(n||(n=[])).push(d.copy(c,p))}}if(n){let l=new ge(n.sort(kr),Yr);return o?new $t([l,o]):l}return o||Ve}eq(e){if(this==e)return!0;if(!(e instanceof ge)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(let t=0;t<this.children.length;t+=3)if(this.children[t]!=e.children[t]||this.children[t+1]!=e.children[t+1]||!this.children[t+2].eq(e.children[t+2]))return!1;return!0}locals(e){return ps(this.localsInner(e))}localsInner(e){if(this==Ve)return Yr;if(e.inlineContent||!this.local.some(Zt.is))return this.local;let t=[];for(let o=0;o<this.local.length;o++)this.local[o].type instanceof Zt||t.push(this.local[o]);return t}forEachSet(e){e(this)}}ge.empty=new ge([],[]),ge.removeOverlap=ps;const Ve=ge.empty;class $t{constructor(e){this.members=e}map(e,t){const o=this.members.map(n=>n.map(e,t,vr));return $t.from(o)}forChild(e,t){if(t.isLeaf)return ge.empty;let o=[];for(let n=0;n<this.members.length;n++){let i=this.members[n].forChild(e,t);i!=Ve&&(i instanceof $t?o=o.concat(i.members):o.push(i))}return $t.from(o)}eq(e){if(!(e instanceof $t)||e.members.length!=this.members.length)return!1;for(let t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0}locals(e){let t,o=!0;for(let n=0;n<this.members.length;n++){let i=this.members[n].localsInner(e);if(i.length)if(!t)t=i;else{o&&(t=t.slice(),o=!1);for(let a=0;a<i.length;a++)t.push(i[a])}}return t?ps(o?t:t.sort(kr)):Yr}static from(e){switch(e.length){case 0:return Ve;case 1:return e[0];default:return new $t(e.every(t=>t instanceof ge)?e:e.reduce((t,o)=>t.concat(o instanceof ge?o:o.members),[]))}}forEachSet(e){for(let t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}}function h0(r,e,t,o,n,i,a){let l=r.slice();for(let c=0,p=i;c<t.maps.length;c++){let u=0;t.maps[c].forEach((m,h,g,f)=>{let b=f-g-(h-m);for(let y=0;y<l.length;y+=3){let k=l[y+1];if(k<0||m>k+p-u)continue;let x=l[y]+p-u;h>=x?l[y+1]=m<=x?-2:-1:m>=p&&b&&(l[y]+=b,l[y+1]+=b)}u+=b}),p=t.maps[c].map(p,-1)}let d=!1;for(let c=0;c<l.length;c+=3)if(l[c+1]<0){if(l[c+1]==-2){d=!0,l[c+1]=-1;continue}let p=t.map(r[c]+i),u=p-n;if(u<0||u>=o.content.size){d=!0;continue}let m=t.map(r[c+1]+i,-1),h=m-n,{index:g,offset:f}=o.content.findIndex(u),b=o.maybeChild(g);if(b&&f==u&&f+b.nodeSize==h){let y=l[c+2].mapInner(t,b,p+1,r[c]+i+1,a);y!=Ve?(l[c]=u,l[c+1]=h,l[c+2]=y):(l[c+1]=-2,d=!0)}else d=!0}if(d){let c=g0(l,r,e,t,n,i,a),p=Zn(c,o,0,a);e=p.local;for(let u=0;u<l.length;u+=3)l[u+1]<0&&(l.splice(u,3),u-=3);for(let u=0,m=0;u<p.children.length;u+=3){let h=p.children[u];for(;m<l.length&&l[m]<h;)m+=3;l.splice(m,0,p.children[u],p.children[u+1],p.children[u+2])}}return new ge(e.sort(kr),l)}function ip(r,e){if(!e||!r.length)return r;let t=[];for(let o=0;o<r.length;o++){let n=r[o];t.push(new Ze(n.from+e,n.to+e,n.type))}return t}function g0(r,e,t,o,n,i,a){function l(d,c){for(let p=0;p<d.local.length;p++){let u=d.local[p].map(o,n,c);u?t.push(u):a.onRemove&&a.onRemove(d.local[p].spec)}for(let p=0;p<d.children.length;p+=3)l(d.children[p+2],d.children[p]+c+1)}for(let d=0;d<r.length;d+=3)r[d+1]==-1&&l(r[d+2],e[d]+i+1);return t}function ap(r,e,t){if(e.isLeaf)return null;let o=t+e.nodeSize,n=null;for(let i=0,a;i<r.length;i++)(a=r[i])&&a.from>t&&a.to<o&&((n||(n=[])).push(a),r[i]=null);return n}function sp(r){let e=[];for(let t=0;t<r.length;t++)r[t]!=null&&e.push(r[t]);return e}function Zn(r,e,t,o){let n=[],i=!1;e.forEach((l,d)=>{let c=ap(r,l,d+t);if(c){i=!0;let p=Zn(c,l,t+d+1,o);p!=Ve&&n.push(d,d+l.nodeSize,p)}});let a=ip(i?sp(r):r,-t).sort(kr);for(let l=0;l<a.length;l++)a[l].type.valid(e,a[l])||(o.onRemove&&o.onRemove(a[l].spec),a.splice(l--,1));return a.length||n.length?new ge(a,n):Ve}function kr(r,e){return r.from-e.from||r.to-e.to}function ps(r){let e=r;for(let t=0;t<e.length-1;t++){let o=e[t];if(o.from!=o.to)for(let n=t+1;n<e.length;n++){let i=e[n];if(i.from==o.from){i.to!=o.to&&(e==r&&(e=r.slice()),e[n]=i.copy(i.from,o.to),lp(e,n+1,i.copy(o.to,i.to)));continue}else{i.from<o.to&&(e==r&&(e=r.slice()),e[t]=o.copy(o.from,i.from),lp(e,n,o.copy(i.from,o.to)));break}}}return e}function lp(r,e,t){for(;e<r.length&&kr(t,r[e])>0;)e++;r.splice(e,0,t)}function us(r){let e=[];return r.someProp("decorations",t=>{let o=t(r.state);o&&o!=Ve&&e.push(o)}),r.cursorWrapper&&e.push(ge.create(r.state.doc,[r.cursorWrapper.deco])),$t.from(e)}const f0={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},b0=_e&&Jt<=11;class w0{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class y0{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new w0,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(o=>{for(let n=0;n<o.length;n++)this.queue.push(o[n]);_e&&Jt<=11&&o.some(n=>n.type=="childList"&&n.removedNodes.length||n.type=="characterData"&&n.oldValue.length>n.target.nodeValue.length)?this.flushSoon():this.flush()}),b0&&(this.onCharData=o=>{this.queue.push({target:o.target,type:"characterData",oldValue:o.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,f0)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);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(Lc(this.view)){if(this.suppressingSelectionUpdates)return Tt(this.view);if(_e&&Jt<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&fr(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t=new Set,o;for(let i=e.focusNode;i;i=qr(i))t.add(i);for(let i=e.anchorNode;i;i=qr(i))if(t.has(i)){o=i;break}let n=o&&this.view.docView.nearestDesc(o);if(n&&n.ignoreMutation({type:"selection",target:o.nodeType==3?o.parentNode:o}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.pendingRecords();t.length&&(this.queue=[]);let o=e.domSelectionRange(),n=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(o)&&Lc(e)&&!this.ignoreSelectionChange(o),i=-1,a=-1,l=!1,d=[];if(e.editable)for(let p=0;p<t.length;p++){let u=this.registerMutation(t[p],d);u&&(i=i<0?u.from:Math.min(u.from,i),a=a<0?u.to:Math.max(u.to,a),u.typeOver&&(l=!0))}if(st&&d.length){let p=d.filter(u=>u.nodeName=="BR");if(p.length==2){let[u,m]=p;u.parentNode&&u.parentNode.parentNode==m.parentNode?m.remove():u.remove()}else{let{focusNode:u}=this.currentSelection;for(let m of p){let h=m.parentNode;h&&h.nodeName=="LI"&&(!u||k0(e,u)!=h)&&m.remove()}}}let c=null;i<0&&n&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&Un(o)&&(c=Qa(e))&&c.eq(W.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,Tt(e),this.currentSelection.set(o),e.scrollToSelection()):(i>-1||n)&&(i>-1&&(e.docView.markDirty(i,a),x0(e)),this.handleDOMChange(i,a,l,d),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(o)||Tt(e),this.currentSelection.set(o))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let o=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(o==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!o||o.ignoreMutation(e))return null;if(e.type=="childList"){for(let p=0;p<e.addedNodes.length;p++){let u=e.addedNodes[p];t.push(u),u.nodeType==3&&(this.lastChangedTextNode=u)}if(o.contentDOM&&o.contentDOM!=o.dom&&!o.contentDOM.contains(e.target))return{from:o.posBefore,to:o.posAfter};let n=e.previousSibling,i=e.nextSibling;if(_e&&Jt<=11&&e.addedNodes.length)for(let p=0;p<e.addedNodes.length;p++){let{previousSibling:u,nextSibling:m}=e.addedNodes[p];(!u||Array.prototype.indexOf.call(e.addedNodes,u)<0)&&(n=u),(!m||Array.prototype.indexOf.call(e.addedNodes,m)<0)&&(i=m)}let a=n&&n.parentNode==e.target?Se(n)+1:0,l=o.localPosFromDOM(e.target,a,-1),d=i&&i.parentNode==e.target?Se(i):e.target.childNodes.length,c=o.localPosFromDOM(e.target,d,1);return{from:l,to:c}}else return e.type=="attributes"?{from:o.posAtStart-o.border,to:o.posAtEnd+o.border}:(this.lastChangedTextNode=e.target,{from:o.posAtStart,to:o.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let dp=new WeakMap,cp=!1;function x0(r){if(!dp.has(r)&&(dp.set(r,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(r.dom).whiteSpace)!==-1)){if(r.requiresGeckoHackNode=st,cp)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."),cp=!0}}function pp(r,e){let t=e.startContainer,o=e.startOffset,n=e.endContainer,i=e.endOffset,a=r.domAtPos(r.state.selection.anchor);return fr(a.node,a.offset,n,i)&&([t,o,n,i]=[n,i,t,o]),{anchorNode:t,anchorOffset:o,focusNode:n,focusOffset:i}}function v0(r,e){if(e.getComposedRanges){let n=e.getComposedRanges(r.root)[0];if(n)return pp(r,n)}let t;function o(n){n.preventDefault(),n.stopImmediatePropagation(),t=n.getTargetRanges()[0]}return r.dom.addEventListener("beforeinput",o,!0),document.execCommand("indent"),r.dom.removeEventListener("beforeinput",o,!0),t?pp(r,t):null}function k0(r,e){for(let t=e.parentNode;t&&t!=r.dom;t=t.parentNode){let o=r.docView.nearestDesc(t,!0);if(o&&o.node.isBlock)return t}return null}function E0(r,e,t){let{node:o,fromOffset:n,toOffset:i,from:a,to:l}=r.docView.parseRange(e,t),d=r.domSelectionRange(),c,p=d.anchorNode;if(p&&r.dom.contains(p.nodeType==1?p:p.parentNode)&&(c=[{node:p,offset:d.anchorOffset}],Un(d)||c.push({node:d.focusNode,offset:d.focusOffset})),Oe&&r.input.lastKeyCode===8)for(let b=i;b>n;b--){let y=o.childNodes[b-1],k=y.pmViewDesc;if(y.nodeName=="BR"&&!k){i=b;break}if(!k||k.size)break}let u=r.state.doc,m=r.someProp("domParser")||ko.fromSchema(r.state.schema),h=u.resolve(a),g=null,f=m.parse(o,{topNode:h.parent,topMatch:h.parent.contentMatchAt(h.index()),topOpen:!0,from:n,to:i,preserveWhitespace:h.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:S0,context:h});if(c&&c[0].pos!=null){let b=c[0].pos,y=c[1]&&c[1].pos;y==null&&(y=b),g={anchor:b+a,head:y+a}}return{doc:f,sel:g,from:a,to:l}}function S0(r){let e=r.pmViewDesc;if(e)return e.parseRule();if(r.nodeName=="BR"&&r.parentNode){if(De&&/^(ul|ol)$/i.test(r.parentNode.nodeName)){let t=document.createElement("div");return t.appendChild(document.createElement("li")),{skip:t}}else if(r.parentNode.lastChild==r||De&&/^(tr|table)$/i.test(r.parentNode.nodeName))return{ignore:!0}}else if(r.nodeName=="IMG"&&r.getAttribute("mark-placeholder"))return{ignore:!0};return null}const C0=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function N0(r,e,t,o,n){let i=r.input.compositionPendingChanges||(r.composing?r.input.compositionID:0);if(r.input.compositionPendingChanges=0,e<0){let O=r.input.lastSelectionTime>Date.now()-50?r.input.lastSelectionOrigin:null,D=Qa(r,O);if(D&&!r.state.selection.eq(D)){if(Oe&&Bt&&r.input.lastKeyCode===13&&Date.now()-100<r.input.lastKeyCodeTime&&r.someProp("handleKeyDown",E=>E(r,br(13,"Enter"))))return;let B=r.state.tr.setSelection(D);O=="pointer"?B.setMeta("pointer",!0):O=="key"&&B.scrollIntoView(),i&&B.setMeta("composition",i),r.dispatch(B)}return}let a=r.state.doc.resolve(e),l=a.sharedDepth(t);e=a.before(l+1),t=r.state.doc.resolve(t).after(l+1);let d=r.state.selection,c=E0(r,e,t),p=r.state.doc,u=p.slice(c.from,c.to),m,h;r.input.lastKeyCode===8&&Date.now()-100<r.input.lastKeyCodeTime?(m=r.state.selection.to,h="end"):(m=r.state.selection.from,h="start"),r.input.lastKeyCode=null;let g=T0(u.content,c.doc.content,c.from,m,h);if(g&&r.input.domChangeCount++,(Ur&&r.input.lastIOSEnter>Date.now()-225||Bt)&&n.some(O=>O.nodeType==1&&!C0.test(O.nodeName))&&(!g||g.endA>=g.endB)&&r.someProp("handleKeyDown",O=>O(r,br(13,"Enter")))){r.input.lastIOSEnter=0;return}if(!g)if(o&&d instanceof j&&!d.empty&&d.$head.sameParent(d.$anchor)&&!r.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))g={start:d.from,endA:d.to,endB:d.to};else{if(c.sel){let O=up(r,r.state.doc,c.sel);if(O&&!O.eq(r.state.selection)){let D=r.state.tr.setSelection(O);i&&D.setMeta("composition",i),r.dispatch(D)}}return}r.state.selection.from<r.state.selection.to&&g.start==g.endB&&r.state.selection instanceof j&&(g.start>r.state.selection.from&&g.start<=r.state.selection.from+2&&r.state.selection.from>=c.from?g.start=r.state.selection.from:g.endA<r.state.selection.to&&g.endA>=r.state.selection.to-2&&r.state.selection.to<=c.to&&(g.endB+=r.state.selection.to-g.endA,g.endA=r.state.selection.to)),_e&&Jt<=11&&g.endB==g.start+1&&g.endA==g.start&&g.start>c.from&&c.doc.textBetween(g.start-c.from-1,g.start-c.from+1)==" "&&(g.start--,g.endA--,g.endB--);let f=c.doc.resolveNoCache(g.start-c.from),b=c.doc.resolveNoCache(g.endB-c.from),y=p.resolve(g.start),k=f.sameParent(b)&&f.parent.inlineContent&&y.end()>=g.endA,x;if((Ur&&r.input.lastIOSEnter>Date.now()-225&&(!k||n.some(O=>O.nodeName=="DIV"||O.nodeName=="P"))||!k&&f.pos<c.doc.content.size&&(!f.sameParent(b)||!f.parent.inlineContent)&&!/\S/.test(c.doc.textBetween(f.pos,b.pos,"",""))&&(x=W.findFrom(c.doc.resolve(f.pos+1),1,!0))&&x.head>f.pos)&&r.someProp("handleKeyDown",O=>O(r,br(13,"Enter")))){r.input.lastIOSEnter=0;return}if(r.state.selection.anchor>g.start&&M0(p,g.start,g.endA,f,b)&&r.someProp("handleKeyDown",O=>O(r,br(8,"Backspace")))){Bt&&Oe&&r.domObserver.suppressSelectionUpdates();return}Oe&&g.endB==g.start&&(r.input.lastChromeDelete=Date.now()),Bt&&!k&&f.start()!=b.start()&&b.parentOffset==0&&f.depth==b.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==g.endA&&(g.endB-=2,b=c.doc.resolveNoCache(g.endB-c.from),setTimeout(()=>{r.someProp("handleKeyDown",function(O){return O(r,br(13,"Enter"))})},20));let w=g.start,S=g.endA,v=O=>{let D=O||r.state.tr.replace(w,S,c.doc.slice(g.start-c.from,g.endB-c.from));if(c.sel){let B=up(r,D.doc,c.sel);B&&!(Oe&&r.composing&&B.empty&&(g.start!=g.endB||r.input.lastChromeDelete<Date.now()-100)&&(B.head==w||B.head==D.mapping.map(S)-1)||_e&&B.empty&&B.head==w)&&D.setSelection(B)}return i&&D.setMeta("composition",i),D.scrollIntoView()},C;if(k){if(f.pos==b.pos){_e&&Jt<=11&&f.parentOffset==0&&(r.domObserver.suppressSelectionUpdates(),setTimeout(()=>Tt(r),20));let O=v(r.state.tr.delete(w,S)),D=p.resolve(g.start).marksAcross(p.resolve(g.endA));D&&O.ensureMarks(D),r.dispatch(O)}else if(g.endA==g.endB&&(C=B0(f.parent.content.cut(f.parentOffset,b.parentOffset),y.parent.content.cut(y.parentOffset,g.endA-y.start())))){let O=v(r.state.tr);C.type=="add"?O.addMark(w,S,C.mark):O.removeMark(w,S,C.mark),r.dispatch(O)}else if(f.parent.child(f.index()).isText&&f.index()==b.index()-(b.textOffset?0:1)){let O=f.parent.textBetween(f.parentOffset,b.parentOffset),D=()=>v(r.state.tr.insertText(O,w,S));r.someProp("handleTextInput",B=>B(r,w,S,O,D))||r.dispatch(D())}}else r.dispatch(v())}function up(r,e,t){return Math.max(t.anchor,t.head)>e.content.size?null:$a(r,e.resolve(t.anchor),e.resolve(t.head))}function B0(r,e){let t=r.firstChild.marks,o=e.firstChild.marks,n=t,i=o,a,l,d;for(let p=0;p<o.length;p++)n=o[p].removeFromSet(n);for(let p=0;p<t.length;p++)i=t[p].removeFromSet(i);if(n.length==1&&i.length==0)l=n[0],a="add",d=p=>p.mark(l.addToSet(p.marks));else if(n.length==0&&i.length==1)l=i[0],a="remove",d=p=>p.mark(l.removeFromSet(p.marks));else return null;let c=[];for(let p=0;p<e.childCount;p++)c.push(d(e.child(p)));if(M.from(c).eq(r))return{mark:l,type:a}}function M0(r,e,t,o,n){if(t-e<=n.pos-o.pos||ms(o,!0,!1)<n.pos)return!1;let i=r.resolve(e);if(!o.parent.isTextblock){let l=i.nodeAfter;return l!=null&&t==e+l.nodeSize}if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let a=r.resolve(ms(i,!0,!0));return!a.parent.isTextblock||a.pos>t||ms(a,!0,!1)<t?!1:o.parent.content.cut(o.parentOffset).eq(a.parent.content)}function ms(r,e,t){let o=r.depth,n=e?r.end():r.pos;for(;o>0&&(e||r.indexAfter(o)==r.node(o).childCount);)o--,n++,e=!1;if(t){let i=r.node(o).maybeChild(r.indexAfter(o));for(;i&&!i.isLeaf;)i=i.firstChild,n++}return n}function T0(r,e,t,o,n){let i=r.findDiffStart(e,t);if(i==null)return null;let{a,b:l}=r.findDiffEnd(e,t+r.size,t+e.size);if(n=="end"){let d=Math.max(0,i-Math.min(a,l));o-=a+d-i}if(a<i&&r.size<e.size){let d=o<=i&&o>=a?i-o:0;i-=d,i&&i<e.size&&mp(e.textBetween(i-1,i+1))&&(i+=d?1:-1),l=i+(l-a),a=i}else if(l<i){let d=o<=i&&o>=l?i-o:0;i-=d,i&&i<r.size&&mp(r.textBetween(i-1,i+1))&&(i+=d?1:-1),a=i+(a-l),l=i}return{start:i,endA:a,endB:l}}function mp(r){if(r.length!=2)return!1;let e=r.charCodeAt(0),t=r.charCodeAt(1);return e>=56320&&e<=57343&&t>=55296&&t<=56319}class hp{constructor(e,t){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 Gf,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(yp),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=bp(this),fp(this),this.nodeViews=wp(this),this.docView=Sc(this.state.doc,gp(this),us(this),this.dom,this),this.domObserver=new y0(this,(o,n,i,a)=>N0(this,o,n,i,a)),this.domObserver.start(),Yf(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&as(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(yp),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let o in this._props)t[o]=this._props[o];t.state=this.state;for(let o in e)t[o]=e[o];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){var o;let n=this.state,i=!1,a=!1;e.storedMarks&&this.composing&&(tp(this),a=!0),this.state=e;let l=n.plugins!=e.plugins||this._props.plugins!=t.plugins;if(l||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let h=wp(this);V0(h,this.nodeViews)&&(this.nodeViews=h,i=!0)}(l||t.handleDOMEvents!=this._props.handleDOMEvents)&&as(this),this.editable=bp(this),fp(this);let d=us(this),c=gp(this),p=n.plugins!=e.plugins&&!n.doc.eq(e.doc)?"reset":e.scrollToSelection>n.scrollToSelection?"to selection":"preserve",u=i||!this.docView.matchesNode(e.doc,c,d);(u||!e.selection.eq(n.selection))&&(a=!0);let m=p=="preserve"&&a&&this.dom.style.overflowAnchor==null&&df(this);if(a){this.domObserver.stop();let h=u&&(_e||Oe)&&!this.composing&&!n.selection.empty&&!e.selection.empty&&O0(n.selection,e.selection);if(u){let g=Oe?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=l0(this)),(i||!this.docView.update(e.doc,c,d,this))&&(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=Sc(e.doc,c,d,this.dom,this)),g&&!this.trackWrites&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&Af(this))?Tt(this,h):(Dc(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(n),!((o=this.dragging)===null||o===void 0)&&o.node&&!n.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,n),p=="reset"?this.dom.scrollTop=0:p=="to selection"?this.scrollToSelection():m&&cf(m)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))){if(!this.someProp("handleScrollToSelection",t=>t(this)))if(this.state.selection instanceof R){let t=this.docView.domAfterPos(this.state.selection.from);t.nodeType==1&&pc(this,t.getBoundingClientRect(),e)}else pc(this,this.coordsAtPos(this.state.selection.head,1),e)}}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let t=0;t<this.directPlugins.length;t++){let o=this.directPlugins[t];o.spec.view&&this.pluginViews.push(o.spec.view(this))}for(let t=0;t<this.state.plugins.length;t++){let o=this.state.plugins[t];o.spec.view&&this.pluginViews.push(o.spec.view(this))}}else for(let t=0;t<this.pluginViews.length;t++){let o=this.pluginViews[t];o.update&&o.update(this,e)}}updateDraggedNode(e,t){let o=e.node,n=-1;if(this.state.doc.nodeAt(o.from)==o.node)n=o.from;else{let i=o.from+(this.state.doc.content.size-t.doc.content.size);(i>0&&this.state.doc.nodeAt(i))==o.node&&(n=i)}this.dragging=new op(e.slice,e.move,n<0?void 0:R.create(this.state.doc,n))}someProp(e,t){let o=this._props&&this._props[e],n;if(o!=null&&(n=t?t(o):o))return n;for(let a=0;a<this.directPlugins.length;a++){let l=this.directPlugins[a].props[e];if(l!=null&&(n=t?t(l):l))return n}let i=this.state.plugins;if(i)for(let a=0;a<i.length;a++){let l=i[a].props[e];if(l!=null&&(n=t?t(l):l))return n}}hasFocus(){if(_e){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&pf(this.dom),Tt(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let t=this.dom.parentNode;t;t=t.parentNode)if(t.nodeType==9||t.nodeType==11&&t.host)return t.getSelection||(Object.getPrototypeOf(t).getSelection=()=>t.ownerDocument.getSelection()),this._root=t}return e||document}updateRoot(){this._root=null}posAtCoords(e){return ff(this,e)}coordsAtPos(e,t=1){return bc(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,o=-1){let n=this.docView.posFromDOM(e,t,o);if(n==null)throw new RangeError("DOM position not inside the editor");return n}endOfTextblock(e,t){return vf(this,t||this.state,e)}pasteHTML(e,t){return Ro(this,"",e,!1,t||new ClipboardEvent("paste"))}pasteText(e,t){return Ro(this,e,null,!0,t||new ClipboardEvent("paste"))}serializeForClipboard(e){return rs(this,e)}destroy(){this.docView&&(Xf(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],us(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,Qg())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return Zf(this,e)}domSelectionRange(){let e=this.domSelection();return e?De&&this.root.nodeType===11&&rf(this.dom.ownerDocument)==this.dom&&v0(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}hp.prototype.dispatch=function(r){let e=this._props.dispatchTransaction;e?e.call(this,r):this.updateState(this.state.apply(r))};function gp(r){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(r.editable),r.someProp("attributes",t=>{if(typeof t=="function"&&(t=t(r.state)),t)for(let o in t)o=="class"?e.class+=" "+t[o]:o=="style"?e.style=(e.style?e.style+";":"")+t[o]:!e[o]&&o!="contenteditable"&&o!="nodeName"&&(e[o]=String(t[o]))}),e.translate||(e.translate="no"),[Ze.node(0,r.state.doc.content.size,e)]}function fp(r){if(r.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),r.cursorWrapper={dom:e,deco:Ze.widget(r.state.selection.from,e,{raw:!0,marks:r.markCursor})}}else r.cursorWrapper=null}function bp(r){return!r.someProp("editable",e=>e(r.state)===!1)}function O0(r,e){let t=Math.min(r.$anchor.sharedDepth(r.head),e.$anchor.sharedDepth(e.head));return r.$anchor.start(t)!=e.$anchor.start(t)}function wp(r){let e=Object.create(null);function t(o){for(let n in o)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=o[n])}return r.someProp("nodeViews",t),r.someProp("markViews",t),e}function V0(r,e){let t=0,o=0;for(let n in r){if(r[n]!=e[n])return!0;t++}for(let n in e)o++;return t!=o}function yp(r){if(r.spec.state||r.spec.filterTransaction||r.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var er={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:"'"},$n={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},P0=typeof navigator<"u"&&/Mac/.test(navigator.platform),A0=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Ce=0;Ce<10;Ce++)er[48+Ce]=er[96+Ce]=String(Ce);for(var Ce=1;Ce<=24;Ce++)er[Ce+111]="F"+Ce;for(var Ce=65;Ce<=90;Ce++)er[Ce]=String.fromCharCode(Ce+32),$n[Ce]=String.fromCharCode(Ce);for(var hs in er)$n.hasOwnProperty(hs)||($n[hs]=er[hs]);function D0(r){var e=P0&&r.metaKey&&r.shiftKey&&!r.ctrlKey&&!r.altKey||A0&&r.shiftKey&&r.key&&r.key.length==1||r.key=="Unidentified",t=!e&&r.key||(r.shiftKey?$n:er)[r.keyCode]||r.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}const I0=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),L0=typeof navigator<"u"&&/Win/.test(navigator.platform);function R0(r){let e=r.split(/-(?!$)/),t=e[e.length-1];t=="Space"&&(t=" ");let o,n,i,a;for(let l=0;l<e.length-1;l++){let d=e[l];if(/^(cmd|meta|m)$/i.test(d))a=!0;else if(/^a(lt)?$/i.test(d))o=!0;else if(/^(c|ctrl|control)$/i.test(d))n=!0;else if(/^s(hift)?$/i.test(d))i=!0;else if(/^mod$/i.test(d))I0?a=!0:n=!0;else throw new Error("Unrecognized modifier name: "+d)}return o&&(t="Alt-"+t),n&&(t="Ctrl-"+t),a&&(t="Meta-"+t),i&&(t="Shift-"+t),t}function z0(r){let e=Object.create(null);for(let t in r)e[R0(t)]=r[t];return e}function gs(r,e,t=!0){return e.altKey&&(r="Alt-"+r),e.ctrlKey&&(r="Ctrl-"+r),e.metaKey&&(r="Meta-"+r),t&&e.shiftKey&&(r="Shift-"+r),r}function _0(r){return new he({props:{handleKeyDown:xp(r)}})}function xp(r){let e=z0(r);return function(t,o){let n=D0(o),i,a=e[gs(n,o)];if(a&&a(t.state,t.dispatch,t))return!0;if(n.length==1&&n!=" "){if(o.shiftKey){let l=e[gs(n,o,!1)];if(l&&l(t.state,t.dispatch,t))return!0}if((o.altKey||o.metaKey||o.ctrlKey)&&!(L0&&o.ctrlKey&&o.altKey)&&(i=er[o.keyCode])&&i!=n){let l=e[gs(i,o)];if(l&&l(t.state,t.dispatch,t))return!0}}return!1}}const fs=(r,e)=>r.selection.empty?!1:(e&&e(r.tr.deleteSelection().scrollIntoView()),!0);function vp(r,e){let{$cursor:t}=r.selection;return!t||(e?!e.endOfTextblock("backward",r):t.parentOffset>0)?null:t}const kp=(r,e,t)=>{let o=vp(r,t);if(!o)return!1;let n=bs(o);if(!n){let a=o.blockRange(),l=a&&_r(a);return l==null?!1:(e&&e(r.tr.lift(a,l).scrollIntoView()),!0)}let i=n.nodeBefore;if(Vp(r,n,e,-1))return!0;if(o.parent.content.size==0&&(Xr(i,"end")||R.isSelectable(i)))for(let a=o.depth;;a--){let l=Hn(r.doc,o.before(a),o.after(a),A.empty);if(l&&l.slice.size<l.to-l.from){if(e){let d=r.tr.step(l);d.setSelection(Xr(i,"end")?W.findFrom(d.doc.resolve(d.mapping.map(n.pos,-1)),-1):R.create(d.doc,n.pos-i.nodeSize)),e(d.scrollIntoView())}return!0}if(a==1||o.node(a-1).childCount>1)break}return i.isAtom&&n.depth==o.depth-1?(e&&e(r.tr.delete(n.pos-i.nodeSize,n.pos).scrollIntoView()),!0):!1},F0=(r,e,t)=>{let o=vp(r,t);if(!o)return!1;let n=bs(o);return n?Ep(r,n,e):!1},j0=(r,e,t)=>{let o=Cp(r,t);if(!o)return!1;let n=ws(o);return n?Ep(r,n,e):!1};function Ep(r,e,t){let o=e.nodeBefore,n=o,i=e.pos-1;for(;!n.isTextblock;i--){if(n.type.spec.isolating)return!1;let p=n.lastChild;if(!p)return!1;n=p}let a=e.nodeAfter,l=a,d=e.pos+1;for(;!l.isTextblock;d++){if(l.type.spec.isolating)return!1;let p=l.firstChild;if(!p)return!1;l=p}let c=Hn(r.doc,i,d,A.empty);if(!c||c.from!=i||c instanceof be&&c.slice.size>=d-i)return!1;if(t){let p=r.tr.step(c);p.setSelection(j.create(p.doc,i)),t(p.scrollIntoView())}return!0}function Xr(r,e,t=!1){for(let o=r;o;o=e=="start"?o.firstChild:o.lastChild){if(o.isTextblock)return!0;if(t&&o.childCount!=1)return!1}return!1}const Sp=(r,e,t)=>{let{$head:o,empty:n}=r.selection,i=o;if(!n)return!1;if(o.parent.isTextblock){if(t?!t.endOfTextblock("backward",r):o.parentOffset>0)return!1;i=bs(o)}let a=i&&i.nodeBefore;return!a||!R.isSelectable(a)?!1:(e&&e(r.tr.setSelection(R.create(r.doc,i.pos-a.nodeSize)).scrollIntoView()),!0)};function bs(r){if(!r.parent.type.spec.isolating)for(let e=r.depth-1;e>=0;e--){if(r.index(e)>0)return r.doc.resolve(r.before(e+1));if(r.node(e).type.spec.isolating)break}return null}function Cp(r,e){let{$cursor:t}=r.selection;return!t||(e?!e.endOfTextblock("forward",r):t.parentOffset<t.parent.content.size)?null:t}const Np=(r,e,t)=>{let o=Cp(r,t);if(!o)return!1;let n=ws(o);if(!n)return!1;let i=n.nodeAfter;if(Vp(r,n,e,1))return!0;if(o.parent.content.size==0&&(Xr(i,"start")||R.isSelectable(i))){let a=Hn(r.doc,o.before(),o.after(),A.empty);if(a&&a.slice.size<a.to-a.from){if(e){let l=r.tr.step(a);l.setSelection(Xr(i,"start")?W.findFrom(l.doc.resolve(l.mapping.map(n.pos)),1):R.create(l.doc,l.mapping.map(n.pos))),e(l.scrollIntoView())}return!0}}return i.isAtom&&n.depth==o.depth-1?(e&&e(r.tr.delete(n.pos,n.pos+i.nodeSize).scrollIntoView()),!0):!1},Bp=(r,e,t)=>{let{$head:o,empty:n}=r.selection,i=o;if(!n)return!1;if(o.parent.isTextblock){if(t?!t.endOfTextblock("forward",r):o.parentOffset<o.parent.content.size)return!1;i=ws(o)}let a=i&&i.nodeAfter;return!a||!R.isSelectable(a)?!1:(e&&e(r.tr.setSelection(R.create(r.doc,i.pos)).scrollIntoView()),!0)};function ws(r){if(!r.parent.type.spec.isolating)for(let e=r.depth-1;e>=0;e--){let t=r.node(e);if(r.index(e)+1<t.childCount)return r.doc.resolve(r.after(e+1));if(t.type.spec.isolating)break}return null}const H0=(r,e)=>{let t=r.selection,o=t instanceof R,n;if(o){if(t.node.isTextblock||!Ut(r.doc,t.from))return!1;n=t.from}else if(n=jn(r.doc,t.from,-1),n==null)return!1;if(e){let i=r.tr.join(n);o&&i.setSelection(R.create(i.doc,n-r.doc.resolve(n).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},W0=(r,e)=>{let t=r.selection,o;if(t instanceof R){if(t.node.isTextblock||!Ut(r.doc,t.to))return!1;o=t.to}else if(o=jn(r.doc,t.to,1),o==null)return!1;return e&&e(r.tr.join(o).scrollIntoView()),!0},q0=(r,e)=>{let{$from:t,$to:o}=r.selection,n=t.blockRange(o),i=n&&_r(n);return i==null?!1:(e&&e(r.tr.lift(n,i).scrollIntoView()),!0)},Mp=(r,e)=>{let{$head:t,$anchor:o}=r.selection;return!t.parent.type.spec.code||!t.sameParent(o)?!1:(e&&e(r.tr.insertText(`
|
|
20
|
-
`).scrollIntoView()),!0)};function ys(r){for(let e=0;e<r.edgeCount;e++){let{type:t}=r.edge(e);if(t.isTextblock&&!t.hasRequiredAttrs())return t}return null}const U0=(r,e)=>{let{$head:t,$anchor:o}=r.selection;if(!t.parent.type.spec.code||!t.sameParent(o))return!1;let n=t.node(-1),i=t.indexAfter(-1),a=ys(n.contentMatchAt(i));if(!a||!n.canReplaceWith(i,i,a))return!1;if(e){let l=t.after(),d=r.tr.replaceWith(l,l,a.createAndFill());d.setSelection(W.near(d.doc.resolve(l),1)),e(d.scrollIntoView())}return!0},Tp=(r,e)=>{let t=r.selection,{$from:o,$to:n}=t;if(t instanceof qe||o.parent.inlineContent||n.parent.inlineContent)return!1;let i=ys(n.parent.contentMatchAt(n.indexAfter()));if(!i||!i.isTextblock)return!1;if(e){let a=(!o.parentOffset&&n.index()<n.parent.childCount?o:n).pos,l=r.tr.insert(a,i.createAndFill());l.setSelection(j.create(l.doc,a+1)),e(l.scrollIntoView())}return!0},Op=(r,e)=>{let{$cursor:t}=r.selection;if(!t||t.parent.content.size)return!1;if(t.depth>1&&t.after()!=t.end(-1)){let i=t.before();if(Ct(r.doc,i))return e&&e(r.tr.split(i).scrollIntoView()),!0}let o=t.blockRange(),n=o&&_r(o);return n==null?!1:(e&&e(r.tr.lift(o,n).scrollIntoView()),!0)};function K0(r){return(e,t)=>{let{$from:o,$to:n}=e.selection;if(e.selection instanceof R&&e.selection.node.isBlock)return!o.parentOffset||!Ct(e.doc,o.pos)?!1:(t&&t(e.tr.split(o.pos).scrollIntoView()),!0);if(!o.depth)return!1;let i=[],a,l,d=!1,c=!1;for(let h=o.depth;;h--)if(o.node(h).isBlock){d=o.end(h)==o.pos+(o.depth-h),c=o.start(h)==o.pos-(o.depth-h),l=ys(o.node(h-1).contentMatchAt(o.indexAfter(h-1))),i.unshift(d&&l?{type:l}:null),a=h;break}else{if(h==1)return!1;i.unshift(null)}let p=e.tr;(e.selection instanceof j||e.selection instanceof qe)&&p.deleteSelection();let u=p.mapping.map(o.pos),m=Ct(p.doc,u,i.length,i);if(m||(i[0]=l?{type:l}:null,m=Ct(p.doc,u,i.length,i)),!m)return!1;if(p.split(u,i.length,i),!d&&c&&o.node(a).type!=l){let h=p.mapping.map(o.before(a)),g=p.doc.resolve(h);l&&o.node(a-1).canReplaceWith(g.index(),g.index()+1,l)&&p.setNodeMarkup(p.mapping.map(o.before(a)),l)}return t&&t(p.scrollIntoView()),!0}}const J0=K0(),G0=(r,e)=>{let{$from:t,to:o}=r.selection,n,i=t.sharedDepth(o);return i==0?!1:(n=t.before(i),e&&e(r.tr.setSelection(R.create(r.doc,n))),!0)};function Y0(r,e,t){let o=e.nodeBefore,n=e.nodeAfter,i=e.index();return!o||!n||!o.type.compatibleContent(n.type)?!1:!o.content.size&&e.parent.canReplace(i-1,i)?(t&&t(r.tr.delete(e.pos-o.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(i,i+1)||!(n.isTextblock||Ut(r.doc,e.pos))?!1:(t&&t(r.tr.join(e.pos).scrollIntoView()),!0)}function Vp(r,e,t,o){let n=e.nodeBefore,i=e.nodeAfter,a,l,d=n.type.spec.isolating||i.type.spec.isolating;if(!d&&Y0(r,e,t))return!0;let c=!d&&e.parent.canReplace(e.index(),e.index()+1);if(c&&(a=(l=n.contentMatchAt(n.childCount)).findWrapping(i.type))&&l.matchType(a[0]||i.type).validEnd){if(t){let h=e.pos+i.nodeSize,g=M.empty;for(let y=a.length-1;y>=0;y--)g=M.from(a[y].create(null,g));g=M.from(n.copy(g));let f=r.tr.step(new we(e.pos-1,h,e.pos,h,new A(g,1,0),a.length,!0)),b=f.doc.resolve(h+2*a.length);b.nodeAfter&&b.nodeAfter.type==n.type&&Ut(f.doc,b.pos)&&f.join(b.pos),t(f.scrollIntoView())}return!0}let p=i.type.spec.isolating||o>0&&d?null:W.findFrom(e,1),u=p&&p.$from.blockRange(p.$to),m=u&&_r(u);if(m!=null&&m>=e.depth)return t&&t(r.tr.lift(u,m).scrollIntoView()),!0;if(c&&Xr(i,"start",!0)&&Xr(n,"end")){let h=n,g=[];for(;g.push(h),!h.isTextblock;)h=h.lastChild;let f=i,b=1;for(;!f.isTextblock;f=f.firstChild)b++;if(h.canReplace(h.childCount,h.childCount,f.content)){if(t){let y=M.empty;for(let x=g.length-1;x>=0;x--)y=M.from(g[x].copy(y));let k=r.tr.step(new we(e.pos-g.length,e.pos+i.nodeSize,e.pos+b,e.pos+i.nodeSize-b,new A(y,g.length,0),0,!0));t(k.scrollIntoView())}return!0}}return!1}function Pp(r){return function(e,t){let o=e.selection,n=r<0?o.$from:o.$to,i=n.depth;for(;n.node(i).isInline;){if(!i)return!1;i--}return n.node(i).isTextblock?(t&&t(e.tr.setSelection(j.create(e.doc,r<0?n.start(i):n.end(i)))),!0):!1}}const X0=Pp(-1),Q0=Pp(1);function Z0(r,e=null){return function(t,o){let{$from:n,$to:i}=t.selection,a=n.blockRange(i),l=a&&La(a,r,e);return l?(o&&o(t.tr.wrap(a,l).scrollIntoView()),!0):!1}}function Ap(r,e=null){return function(t,o){let n=!1;for(let i=0;i<t.selection.ranges.length&&!n;i++){let{$from:{pos:a},$to:{pos:l}}=t.selection.ranges[i];t.doc.nodesBetween(a,l,(d,c)=>{if(n)return!1;if(!(!d.isTextblock||d.hasMarkup(r,e)))if(d.type==r)n=!0;else{let p=t.doc.resolve(c),u=p.index();n=p.parent.canReplaceWith(u,u+1,r)}})}if(!n)return!1;if(o){let i=t.tr;for(let a=0;a<t.selection.ranges.length;a++){let{$from:{pos:l},$to:{pos:d}}=t.selection.ranges[a];i.setBlockType(l,d,r,e)}o(i.scrollIntoView())}return!0}}function xs(...r){return function(e,t,o){for(let n=0;n<r.length;n++)if(r[n](e,t,o))return!0;return!1}}xs(fs,kp,Sp),xs(fs,Np,Bp),xs(Mp,Tp,Op,J0),typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function $0(r,e=null){return function(t,o){let{$from:n,$to:i}=t.selection,a=n.blockRange(i);if(!a)return!1;let l=o?t.tr:null;return eb(l,a,r,e)?(o&&o(l.scrollIntoView()),!0):!1}}function eb(r,e,t,o=null){let n=!1,i=e,a=e.$from.doc;if(e.depth>=2&&e.$from.node(e.depth-1).type.compatibleContent(t)&&e.startIndex==0){if(e.$from.index(e.depth-1)==0)return!1;let d=a.resolve(e.start-2);i=new In(d,d,e.depth),e.endIndex<e.parent.childCount&&(e=new In(e.$from,a.resolve(e.$to.end(e.depth)),e.depth)),n=!0}let l=La(i,t,o,e);return l?(r&&tb(r,e,l,n,t),!0):!1}function tb(r,e,t,o,n){let i=M.empty;for(let p=t.length-1;p>=0;p--)i=M.from(t[p].type.create(t[p].attrs,i));r.step(new we(e.start-(o?2:0),e.end,e.start,e.end,new A(i,0,0),t.length,!0));let a=0;for(let p=0;p<t.length;p++)t[p].type==n&&(a=p+1);let l=t.length-a,d=e.start+t.length-(o?2:0),c=e.parent;for(let p=e.startIndex,u=e.endIndex,m=!0;p<u;p++,m=!1)!m&&Ct(r.doc,d,l)&&(r.split(d,l),d+=2*l),d+=c.child(p).nodeSize;return r}function rb(r){return function(e,t){let{$from:o,$to:n}=e.selection,i=o.blockRange(n,a=>a.childCount>0&&a.firstChild.type==r);return i?t?o.node(i.depth-1).type==r?ob(e,t,r,i):nb(e,t,i):!0:!1}}function ob(r,e,t,o){let n=r.tr,i=o.end,a=o.$to.end(o.depth);i<a&&(n.step(new we(i-1,a,i,a,new A(M.from(t.create(null,o.parent.copy())),1,0),1,!0)),o=new In(n.doc.resolve(o.$from.pos),n.doc.resolve(a),o.depth));const l=_r(o);if(l==null)return!1;n.lift(o,l);let d=n.doc.resolve(n.mapping.map(i,-1)-1);return Ut(n.doc,d.pos)&&d.nodeBefore.type==d.nodeAfter.type&&n.join(d.pos),e(n.scrollIntoView()),!0}function nb(r,e,t){let o=r.tr,n=t.parent;for(let h=t.end,g=t.endIndex-1,f=t.startIndex;g>f;g--)h-=n.child(g).nodeSize,o.delete(h-1,h+1);let i=o.doc.resolve(t.start),a=i.nodeAfter;if(o.mapping.map(t.end)!=t.start+i.nodeAfter.nodeSize)return!1;let l=t.startIndex==0,d=t.endIndex==n.childCount,c=i.node(-1),p=i.index(-1);if(!c.canReplace(p+(l?0:1),p+1,a.content.append(d?M.empty:M.from(n))))return!1;let u=i.pos,m=u+a.nodeSize;return o.step(new we(u-(l?1:0),m+(d?1:0),u+1,m-1,new A((l?M.empty:M.from(n.copy(M.empty))).append(d?M.empty:M.from(n.copy(M.empty))),l?0:1,d?0:1),l?0:1)),e(o.scrollIntoView()),!0}function ib(r){return function(e,t){let{$from:o,$to:n}=e.selection,i=o.blockRange(n,c=>c.childCount>0&&c.firstChild.type==r);if(!i)return!1;let a=i.startIndex;if(a==0)return!1;let l=i.parent,d=l.child(a-1);if(d.type!=r)return!1;if(t){let c=d.lastChild&&d.lastChild.type==l.type,p=M.from(c?r.create():null),u=new A(M.from(r.create(null,M.from(l.type.create(null,p)))),c?3:1,0),m=i.start,h=i.end;t(e.tr.step(new we(m-(c?3:1),h,m,h,u,1,!0)).scrollIntoView())}return!0}}function ei(r){const{state:e,transaction:t}=r;let{selection:o}=t,{doc:n}=t,{storedMarks:i}=t;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 o},get doc(){return n},get tr(){return o=t.selection,n=t.doc,i=t.storedMarks,t}}}class ti{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:t,state:o}=this,{view:n}=t,{tr:i}=o,a=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([l,d])=>[l,(...p)=>{const u=d(...p)(a);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&n.dispatch(i),u}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){const{rawCommands:o,editor:n,state:i}=this,{view:a}=n,l=[],d=!!e,c=e||i.tr,p=()=>(!d&&t&&!c.getMeta("preventDispatch")&&!this.hasCustomState&&a.dispatch(c),l.every(m=>m===!0)),u={...Object.fromEntries(Object.entries(o).map(([m,h])=>[m,(...f)=>{const b=this.buildProps(c,t),y=h(...f)(b);return l.push(y),u}])),run:p};return u}createCan(e){const{rawCommands:t,state:o}=this,n=!1,i=e||o.tr,a=this.buildProps(i,n);return{...Object.fromEntries(Object.entries(t).map(([d,c])=>[d,(...p)=>c(...p)({...a,dispatch:void 0})])),chain:()=>this.createChain(i,n)}}buildProps(e,t=!0){const{rawCommands:o,editor:n,state:i}=this,{view:a}=n,l={tr:e,editor:n,view:a,state:ei({state:i,transaction:e}),dispatch:t?()=>{}:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(o).map(([d,c])=>[d,(...p)=>c(...p)(l)]))}};return l}}class ab{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){const o=this.callbacks[e];return o&&o.forEach(n=>n.apply(this,t)),this}off(e,t){const o=this.callbacks[e];return o&&(t?this.callbacks[e]=o.filter(n=>n!==t):delete this.callbacks[e]),this}once(e,t){const o=(...n)=>{this.off(e,o),t.apply(this,n)};return this.on(e,o)}removeAllListeners(){this.callbacks={}}}function I(r,e,t){return r.config[e]===void 0&&r.parent?I(r.parent,e,t):typeof r.config[e]=="function"?r.config[e].bind({...t,parent:r.parent?I(r.parent,e,t):null}):r.config[e]}function ri(r){const e=r.filter(n=>n.type==="extension"),t=r.filter(n=>n.type==="node"),o=r.filter(n=>n.type==="mark");return{baseExtensions:e,nodeExtensions:t,markExtensions:o}}function Dp(r){const e=[],{nodeExtensions:t,markExtensions:o}=ri(r),n=[...t,...o],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return r.forEach(a=>{const l={name:a.name,options:a.options,storage:a.storage,extensions:n},d=I(a,"addGlobalAttributes",l);if(!d)return;d().forEach(p=>{p.types.forEach(u=>{Object.entries(p.attributes).forEach(([m,h])=>{e.push({type:u,name:m,attribute:{...i,...h}})})})})}),n.forEach(a=>{const l={name:a.name,options:a.options,storage:a.storage},d=I(a,"addAttributes",l);if(!d)return;const c=d();Object.entries(c).forEach(([p,u])=>{const m={...i,...u};typeof(m==null?void 0:m.default)=="function"&&(m.default=m.default()),m!=null&&m.isRequired&&(m==null?void 0:m.default)===void 0&&delete m.default,e.push({type:a.name,name:p,attribute:m})})}),e}function ye(r,e){if(typeof r=="string"){if(!e.nodes[r])throw Error(`There is no node type named '${r}'. Maybe you forgot to add the extension?`);return e.nodes[r]}return r}function Ne(...r){return r.filter(e=>!!e).reduce((e,t)=>{const o={...e};return Object.entries(t).forEach(([n,i])=>{if(!o[n]){o[n]=i;return}if(n==="class"){const l=i?String(i).split(" "):[],d=o[n]?o[n].split(" "):[],c=l.filter(p=>!d.includes(p));o[n]=[...d,...c].join(" ")}else if(n==="style"){const l=i?i.split(";").map(p=>p.trim()).filter(Boolean):[],d=o[n]?o[n].split(";").map(p=>p.trim()).filter(Boolean):[],c=new Map;d.forEach(p=>{const[u,m]=p.split(":").map(h=>h.trim());c.set(u,m)}),l.forEach(p=>{const[u,m]=p.split(":").map(h=>h.trim());c.set(u,m)}),o[n]=Array.from(c.entries()).map(([p,u])=>`${p}: ${u}`).join("; ")}else o[n]=i}),o},{})}function vs(r,e){return e.filter(t=>t.type===r.type.name).filter(t=>t.attribute.rendered).map(t=>t.attribute.renderHTML?t.attribute.renderHTML(r.attrs)||{}:{[t.name]:r.attrs[t.name]}).reduce((t,o)=>Ne(t,o),{})}function Ip(r){return typeof r=="function"}function U(r,e=void 0,...t){return Ip(r)?e?r.bind(e)(...t):r(...t):r}function sb(r={}){return Object.keys(r).length===0&&r.constructor===Object}function lb(r){return typeof r!="string"?r:r.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(r):r==="true"?!0:r==="false"?!1:r}function Lp(r,e){return"style"in r?r:{...r,getAttrs:t=>{const o=r.getAttrs?r.getAttrs(t):r.attrs;if(o===!1)return!1;const n=e.reduce((i,a)=>{const l=a.attribute.parseHTML?a.attribute.parseHTML(t):lb(t.getAttribute(a.name));return l==null?i:{...i,[a.name]:l}},{});return{...o,...n}}}}function Rp(r){return Object.fromEntries(Object.entries(r).filter(([e,t])=>e==="attrs"&&sb(t)?!1:t!=null))}function db(r,e){var t;const o=Dp(r),{nodeExtensions:n,markExtensions:i}=ri(r),a=(t=n.find(c=>I(c,"topNode")))===null||t===void 0?void 0:t.name,l=Object.fromEntries(n.map(c=>{const p=o.filter(y=>y.type===c.name),u={name:c.name,options:c.options,storage:c.storage,editor:e},m=r.reduce((y,k)=>{const x=I(k,"extendNodeSchema",u);return{...y,...x?x(c):{}}},{}),h=Rp({...m,content:U(I(c,"content",u)),marks:U(I(c,"marks",u)),group:U(I(c,"group",u)),inline:U(I(c,"inline",u)),atom:U(I(c,"atom",u)),selectable:U(I(c,"selectable",u)),draggable:U(I(c,"draggable",u)),code:U(I(c,"code",u)),whitespace:U(I(c,"whitespace",u)),linebreakReplacement:U(I(c,"linebreakReplacement",u)),defining:U(I(c,"defining",u)),isolating:U(I(c,"isolating",u)),attrs:Object.fromEntries(p.map(y=>{var k;return[y.name,{default:(k=y==null?void 0:y.attribute)===null||k===void 0?void 0:k.default}]}))}),g=U(I(c,"parseHTML",u));g&&(h.parseDOM=g.map(y=>Lp(y,p)));const f=I(c,"renderHTML",u);f&&(h.toDOM=y=>f({node:y,HTMLAttributes:vs(y,p)}));const b=I(c,"renderText",u);return b&&(h.toText=b),[c.name,h]})),d=Object.fromEntries(i.map(c=>{const p=o.filter(b=>b.type===c.name),u={name:c.name,options:c.options,storage:c.storage,editor:e},m=r.reduce((b,y)=>{const k=I(y,"extendMarkSchema",u);return{...b,...k?k(c):{}}},{}),h=Rp({...m,inclusive:U(I(c,"inclusive",u)),excludes:U(I(c,"excludes",u)),group:U(I(c,"group",u)),spanning:U(I(c,"spanning",u)),code:U(I(c,"code",u)),attrs:Object.fromEntries(p.map(b=>{var y;return[b.name,{default:(y=b==null?void 0:b.attribute)===null||y===void 0?void 0:y.default}]}))}),g=U(I(c,"parseHTML",u));g&&(h.parseDOM=g.map(b=>Lp(b,p)));const f=I(c,"renderHTML",u);return f&&(h.toDOM=b=>f({mark:b,HTMLAttributes:vs(b,p)})),[c.name,h]}));return new Bd({topNode:a,nodes:l,marks:d})}function ks(r,e){return e.nodes[r]||e.marks[r]||null}function zp(r,e){return Array.isArray(e)?e.some(t=>(typeof t=="string"?t:t.name)===r.name):e}function Es(r,e){const t=hr.fromSchema(e).serializeFragment(r),n=document.implementation.createHTMLDocument().createElement("div");return n.appendChild(t),n.innerHTML}const cb=(r,e=500)=>{let t="";const o=r.parentOffset;return r.parent.nodesBetween(Math.max(0,o-e),o,(n,i,a,l)=>{var d,c;const p=((c=(d=n.type.spec).toText)===null||c===void 0?void 0:c.call(d,{node:n,pos:i,parent:a,index:l}))||n.textContent||"%leaf%";t+=n.isAtom&&!n.isText?p:p.slice(0,Math.max(0,o-i))}),t};function Ss(r){return Object.prototype.toString.call(r)==="[object RegExp]"}class oi{constructor(e){this.find=e.find,this.handler=e.handler}}const pb=(r,e)=>{if(Ss(e))return e.exec(r);const t=e(r);if(!t)return null;const o=[t.text];return o.index=t.index,o.input=r,o.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),o.push(t.replaceWith)),o};function ni(r){var e;const{editor:t,from:o,to:n,text:i,rules:a,plugin:l}=r,{view:d}=t;if(d.composing)return!1;const c=d.state.doc.resolve(o);if(c.parent.type.spec.code||!((e=c.nodeBefore||c.nodeAfter)===null||e===void 0)&&e.marks.find(m=>m.type.spec.code))return!1;let p=!1;const u=cb(c)+i;return a.forEach(m=>{if(p)return;const h=pb(u,m.find);if(!h)return;const g=d.state.tr,f=ei({state:d.state,transaction:g}),b={from:o-(h[0].length-i.length),to:n},{commands:y,chain:k,can:x}=new ti({editor:t,state:f});m.handler({state:f,range:b,match:h,commands:y,chain:k,can:x})===null||!g.steps.length||(g.setMeta(l,{transform:g,from:o,to:n,text:i}),d.dispatch(g),p=!0)}),p}function ub(r){const{editor:e,rules:t}=r,o=new he({state:{init(){return null},apply(n,i,a){const l=n.getMeta(o);if(l)return l;const d=n.getMeta("applyInputRules");return!!d&&setTimeout(()=>{let{text:p}=d;typeof p=="string"?p=p:p=Es(M.from(p),a.schema);const{from:u}=d,m=u+p.length;ni({editor:e,from:u,to:m,text:p,rules:t,plugin:o})}),n.selectionSet||n.docChanged?null:i}},props:{handleTextInput(n,i,a,l){return ni({editor:e,from:i,to:a,text:l,rules:t,plugin:o})},handleDOMEvents:{compositionend:n=>(setTimeout(()=>{const{$cursor:i}=n.state.selection;i&&ni({editor:e,from:i.pos,to:i.pos,text:"",rules:t,plugin:o})}),!1)},handleKeyDown(n,i){if(i.key!=="Enter")return!1;const{$cursor:a}=n.state.selection;return a?ni({editor:e,from:a.pos,to:a.pos,text:`
|
|
21
|
-
`,rules:t,plugin:o}):!1}},isInputRules:!0});return o}function mb(r){return Object.prototype.toString.call(r).slice(8,-1)}function ii(r){return mb(r)!=="Object"?!1:r.constructor===Object&&Object.getPrototypeOf(r)===Object.prototype}function ai(r,e){const t={...r};return ii(r)&&ii(e)&&Object.keys(e).forEach(o=>{ii(e[o])&&ii(r[o])?t[o]=ai(r[o],e[o]):t[o]=e[o]}),t}class Ot{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.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=U(I(this,"addOptions",{name:this.name}))),this.storage=U(I(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Ot(e)}configure(e={}){const t=this.extend({...this.config,addOptions:()=>ai(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){const t=new Ot(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=U(I(t,"addOptions",{name:t.name})),t.storage=U(I(t,"addStorage",{name:t.name,options:t.options})),t}static handleExit({editor:e,mark:t}){const{tr:o}=e.state,n=e.state.selection.$from;if(n.pos===n.end()){const a=n.marks();if(!!!a.find(
|
|
22
|
-
|
|
23
|
-
`,textSerializers:a={}}=t||{};let l="";return r.nodesBetween(o,n,(d,c,p,u)=>{var m;d.isBlock&&c>o&&(l+=i);const h=a==null?void 0:a[d.type.name];if(h)return p&&(l+=h({node:d,pos:c,parent:p,index:u,range:e})),!1;d.isText&&(l+=(m=d==null?void 0:d.text)===null||m===void 0?void 0:m.slice(Math.max(o,c)-c,n-c))}),l}function Cs(r){return Object.fromEntries(Object.entries(r.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}const vb=Be.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new he({key:new Ae("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:r}=this,{state:e,schema:t}=r,{doc:o,selection:n}=e,{ranges:i}=n,a=Math.min(...i.map(p=>p.$from.pos)),l=Math.max(...i.map(p=>p.$to.pos)),d=Cs(t);return _p(o,{from:a,to:l},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:d})}}})]}}),kb=()=>({editor:r,view:e})=>(requestAnimationFrame(()=>{var t;r.isDestroyed||(e.dom.blur(),(t=window==null?void 0:window.getSelection())===null||t===void 0||t.removeAllRanges())}),!0),Eb=(r=!1)=>({commands:e})=>e.setContent("",r),Sb=()=>({state:r,tr:e,dispatch:t})=>{const{selection:o}=e,{ranges:n}=o;return t&&n.forEach(({$from:i,$to:a})=>{r.doc.nodesBetween(i.pos,a.pos,(l,d)=>{if(l.type.isText)return;const{doc:c,mapping:p}=e,u=c.resolve(p.map(d)),m=c.resolve(p.map(d+l.nodeSize)),h=u.blockRange(m);if(!h)return;const g=_r(h);if(l.type.isTextblock){const{defaultType:f}=u.parent.contentMatchAt(u.index());e.setNodeMarkup(h.start,f)}(g||g===0)&&e.lift(h,g)})}),!0},Cb=r=>e=>r(e),Nb=()=>({state:r,dispatch:e})=>Tp(r,e),Bb=(r,e)=>({editor:t,tr:o})=>{const{state:n}=t,i=n.doc.slice(r.from,r.to);o.deleteRange(r.from,r.to);const a=o.mapping.map(e);return o.insert(a,i.content),o.setSelection(new j(o.doc.resolve(a-1))),!0},Mb=()=>({tr:r,dispatch:e})=>{const{selection:t}=r,o=t.$anchor.node();if(o.content.size>0)return!1;const n=r.selection.$anchor;for(let i=n.depth;i>0;i-=1)if(n.node(i).type===o.type){if(e){const l=n.before(i),d=n.after(i);r.delete(l,d).scrollIntoView()}return!0}return!1},Tb=r=>({tr:e,state:t,dispatch:o})=>{const n=ye(r,t.schema),i=e.selection.$anchor;for(let a=i.depth;a>0;a-=1)if(i.node(a).type===n){if(o){const d=i.before(a),c=i.after(a);e.delete(d,c).scrollIntoView()}return!0}return!1},Ob=r=>({tr:e,dispatch:t})=>{const{from:o,to:n}=r;return t&&e.delete(o,n),!0},Vb=()=>({state:r,dispatch:e})=>fs(r,e),Pb=()=>({commands:r})=>r.keyboardShortcut("Enter"),Ab=()=>({state:r,dispatch:e})=>U0(r,e);function li(r,e,t={strict:!0}){const o=Object.keys(e);return o.length?o.every(n=>t.strict?e[n]===r[n]:Ss(e[n])?e[n].test(r[n]):e[n]===r[n]):!0}function Fp(r,e,t={}){return r.find(o=>o.type===e&&li(Object.fromEntries(Object.keys(t).map(n=>[n,o.attrs[n]])),t))}function jp(r,e,t={}){return!!Fp(r,e,t)}function Ns(r,e,t){var o;if(!r||!e)return;let n=r.parent.childAfter(r.parentOffset);if((!n.node||!n.node.marks.some(p=>p.type===e))&&(n=r.parent.childBefore(r.parentOffset)),!n.node||!n.node.marks.some(p=>p.type===e)||(t=t||((o=n.node.marks[0])===null||o===void 0?void 0:o.attrs),!Fp([...n.node.marks],e,t)))return;let a=n.index,l=r.start()+n.offset,d=a+1,c=l+n.node.nodeSize;for(;a>0&&jp([...r.parent.child(a-1).marks],e,t);)a-=1,l-=r.parent.child(a).nodeSize;for(;d<r.parent.childCount&&jp([...r.parent.child(d).marks],e,t);)c+=r.parent.child(d).nodeSize,d+=1;return{from:l,to:c}}function tr(r,e){if(typeof r=="string"){if(!e.marks[r])throw Error(`There is no mark type named '${r}'. Maybe you forgot to add the extension?`);return e.marks[r]}return r}const Db=(r,e={})=>({tr:t,state:o,dispatch:n})=>{const i=tr(r,o.schema),{doc:a,selection:l}=t,{$from:d,from:c,to:p}=l;if(n){const u=Ns(d,i,e);if(u&&u.from<=c&&u.to>=p){const m=j.create(a,u.from,u.to);t.setSelection(m)}}return!0},Ib=r=>e=>{const t=typeof r=="function"?r(e):r;for(let o=0;o<t.length;o+=1)if(t[o](e))return!0;return!1};function Bs(r){return r instanceof j}function Vt(r=0,e=0,t=0){return Math.min(Math.max(r,e),t)}function Hp(r,e=null){if(!e)return null;const t=W.atStart(r),o=W.atEnd(r);if(e==="start"||e===!0)return t;if(e==="end")return o;const n=t.from,i=o.to;return e==="all"?j.create(r,Vt(0,n,i),Vt(r.content.size,n,i)):j.create(r,Vt(e,n,i),Vt(e,n,i))}function Lb(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}function Ms(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const Rb=(r=null,e={})=>({editor:t,view:o,tr:n,dispatch:i})=>{e={scrollIntoView:!0,...e};const a=()=>{(Ms()||Lb())&&o.dom.focus(),requestAnimationFrame(()=>{t.isDestroyed||(o.focus(),e!=null&&e.scrollIntoView&&t.commands.scrollIntoView())})};if(o.hasFocus()&&r===null||r===!1)return!0;if(i&&r===null&&!Bs(t.state.selection))return a(),!0;const l=Hp(n.doc,r)||t.state.selection,d=t.state.selection.eq(l);return i&&(d||n.setSelection(l),d&&n.storedMarks&&n.setStoredMarks(n.storedMarks),a()),!0},zb=(r,e)=>t=>r.every((o,n)=>e(o,{...t,index:n})),_b=(r,e)=>({tr:t,commands:o})=>o.insertContentAt({from:t.selection.from,to:t.selection.to},r,e),Wp=r=>{const e=r.childNodes;for(let t=e.length-1;t>=0;t-=1){const o=e[t];o.nodeType===3&&o.nodeValue&&/^(\n\s\s|\n)$/.test(o.nodeValue)?r.removeChild(o):o.nodeType===1&&Wp(o)}return r};function di(r){const e=`<body>${r}</body>`,t=new window.DOMParser().parseFromString(e,"text/html").body;return Wp(t)}function _o(r,e,t){if(r instanceof Ht||r instanceof M)return r;t={slice:!0,parseOptions:{},...t};const o=typeof r=="object"&&r!==null,n=typeof r=="string";if(o)try{if(Array.isArray(r)&&r.length>0)return M.fromArray(r.map(l=>e.nodeFromJSON(l)));const a=e.nodeFromJSON(r);return t.errorOnInvalidContent&&a.check(),a}catch(i){if(t.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:i});return console.warn("[tiptap warn]: Invalid content.","Passed value:",r,"Error:",i),_o("",e,t)}if(n){if(t.errorOnInvalidContent){let a=!1,l="";const d=new Bd({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:c=>(a=!0,l=typeof c=="string"?c:c.outerHTML,null)}]}})});if(t.slice?ko.fromSchema(d).parseSlice(di(r),t.parseOptions):ko.fromSchema(d).parse(di(r),t.parseOptions),t.errorOnInvalidContent&&a)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${l}`)})}const i=ko.fromSchema(e);return t.slice?i.parseSlice(di(r),t.parseOptions).content:i.parse(di(r),t.parseOptions)}return _o("",e,t)}function Fb(r,e,t){const o=r.steps.length-1;if(o<e)return;const n=r.steps[o];if(!(n instanceof be||n instanceof we))return;const i=r.mapping.maps[o];let a=0;i.forEach((l,d,c,p)=>{a===0&&(a=p)}),r.setSelection(W.near(r.doc.resolve(a),t))}const jb=r=>!("type"in r),Hb=(r,e,t)=>({tr:o,dispatch:n,editor:i})=>{var a;if(n){t={parseOptions:i.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...t};let l;const d=b=>{i.emit("contentError",{editor:i,error:b,disableCollaboration:()=>{i.storage.collaboration&&(i.storage.collaboration.isDisabled=!0)}})},c={preserveWhitespace:"full",...t.parseOptions};if(!t.errorOnInvalidContent&&!i.options.enableContentCheck&&i.options.emitContentError)try{_o(e,i.schema,{parseOptions:c,errorOnInvalidContent:!0})}catch(b){d(b)}try{l=_o(e,i.schema,{parseOptions:c,errorOnInvalidContent:(a=t.errorOnInvalidContent)!==null&&a!==void 0?a:i.options.enableContentCheck})}catch(b){return d(b),!1}let{from:p,to:u}=typeof r=="number"?{from:r,to:r}:{from:r.from,to:r.to},m=!0,h=!0;if((jb(l)?l:[l]).forEach(b=>{b.check(),m=m?b.isText&&b.marks.length===0:!1,h=h?b.isBlock:!1}),p===u&&h){const{parent:b}=o.doc.resolve(p);b.isTextblock&&!b.type.spec.code&&!b.childCount&&(p-=1,u+=1)}let f;if(m){if(Array.isArray(e))f=e.map(b=>b.text||"").join("");else if(e instanceof M){let b="";e.forEach(y=>{y.text&&(b+=y.text)}),f=b}else typeof e=="object"&&e&&e.text?f=e.text:f=e;o.insertText(f,p,u)}else f=l,o.replaceWith(p,u,f);t.updateSelection&&Fb(o,o.steps.length-1,-1),t.applyInputRules&&o.setMeta("applyInputRules",{from:p,text:f}),t.applyPasteRules&&o.setMeta("applyPasteRules",{from:p,text:f})}return!0},Wb=()=>({state:r,dispatch:e})=>H0(r,e),qb=()=>({state:r,dispatch:e})=>W0(r,e),Ub=()=>({state:r,dispatch:e})=>kp(r,e),Kb=()=>({state:r,dispatch:e})=>Np(r,e),Jb=()=>({state:r,dispatch:e,tr:t})=>{try{const o=jn(r.doc,r.selection.$from.pos,-1);return o==null?!1:(t.join(o,2),e&&e(t),!0)}catch{return!1}},Gb=()=>({state:r,dispatch:e,tr:t})=>{try{const o=jn(r.doc,r.selection.$from.pos,1);return o==null?!1:(t.join(o,2),e&&e(t),!0)}catch{return!1}},Yb=()=>({state:r,dispatch:e})=>F0(r,e),Xb=()=>({state:r,dispatch:e})=>j0(r,e);function qp(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function Qb(r){const e=r.split(/-(?!$)/);let t=e[e.length-1];t==="Space"&&(t=" ");let o,n,i,a;for(let l=0;l<e.length-1;l+=1){const d=e[l];if(/^(cmd|meta|m)$/i.test(d))a=!0;else if(/^a(lt)?$/i.test(d))o=!0;else if(/^(c|ctrl|control)$/i.test(d))n=!0;else if(/^s(hift)?$/i.test(d))i=!0;else if(/^mod$/i.test(d))Ms()||qp()?a=!0:n=!0;else throw new Error(`Unrecognized modifier name: ${d}`)}return o&&(t=`Alt-${t}`),n&&(t=`Ctrl-${t}`),a&&(t=`Meta-${t}`),i&&(t=`Shift-${t}`),t}const Zb=r=>({editor:e,view:t,tr:o,dispatch:n})=>{const i=Qb(r).split(/-(?!$)/),a=i.find(c=>!["Alt","Ctrl","Meta","Shift"].includes(c)),l=new KeyboardEvent("keydown",{key:a==="Space"?" ":a,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),d=e.captureTransaction(()=>{t.someProp("handleKeyDown",c=>c(t,l))});return d==null||d.steps.forEach(c=>{const p=c.map(o.mapping);p&&n&&o.maybeStep(p)}),!0};function Fo(r,e,t={}){const{from:o,to:n,empty:i}=r.selection,a=e?ye(e,r.schema):null,l=[];r.doc.nodesBetween(o,n,(u,m)=>{if(u.isText)return;const h=Math.max(o,m),g=Math.min(n,m+u.nodeSize);l.push({node:u,from:h,to:g})});const d=n-o,c=l.filter(u=>a?a.name===u.node.type.name:!0).filter(u=>li(u.node.attrs,t,{strict:!1}));return i?!!c.length:c.reduce((u,m)=>u+m.to-m.from,0)>=d}const $b=(r,e={})=>({state:t,dispatch:o})=>{const n=ye(r,t.schema);return Fo(t,n,e)?q0(t,o):!1},ew=()=>({state:r,dispatch:e})=>Op(r,e),tw=r=>({state:e,dispatch:t})=>{const o=ye(r,e.schema);return rb(o)(e,t)},rw=()=>({state:r,dispatch:e})=>Mp(r,e);function ci(r,e){return e.nodes[r]?"node":e.marks[r]?"mark":null}function Up(r,e){const t=typeof e=="string"?[e]:e;return Object.keys(r).reduce((o,n)=>(t.includes(n)||(o[n]=r[n]),o),{})}const ow=(r,e)=>({tr:t,state:o,dispatch:n})=>{let i=null,a=null;const l=ci(typeof r=="string"?r:r.name,o.schema);return l?(l==="node"&&(i=ye(r,o.schema)),l==="mark"&&(a=tr(r,o.schema)),n&&t.selection.ranges.forEach(d=>{o.doc.nodesBetween(d.$from.pos,d.$to.pos,(c,p)=>{i&&i===c.type&&t.setNodeMarkup(p,void 0,Up(c.attrs,e)),a&&c.marks.length&&c.marks.forEach(u=>{a===u.type&&t.addMark(p,p+c.nodeSize,a.create(Up(u.attrs,e)))})})}),!0):!1},nw=()=>({tr:r,dispatch:e})=>(e&&r.scrollIntoView(),!0),iw=()=>({tr:r,dispatch:e})=>{if(e){const t=new qe(r.doc);r.setSelection(t)}return!0},aw=()=>({state:r,dispatch:e})=>Sp(r,e),sw=()=>({state:r,dispatch:e})=>Bp(r,e),lw=()=>({state:r,dispatch:e})=>G0(r,e),dw=()=>({state:r,dispatch:e})=>Q0(r,e),cw=()=>({state:r,dispatch:e})=>X0(r,e);function Ts(r,e,t={},o={}){return _o(r,e,{slice:!1,parseOptions:t,errorOnInvalidContent:o.errorOnInvalidContent})}const pw=(r,e=!1,t={},o={})=>({editor:n,tr:i,dispatch:a,commands:l})=>{var d,c;const{doc:p}=i;if(t.preserveWhitespace!=="full"){const u=Ts(r,n.schema,t,{errorOnInvalidContent:(d=o.errorOnInvalidContent)!==null&&d!==void 0?d:n.options.enableContentCheck});return a&&i.replaceWith(0,p.content.size,u).setMeta("preventUpdate",!e),!0}return a&&i.setMeta("preventUpdate",!e),l.insertContentAt({from:0,to:p.content.size},r,{parseOptions:t,errorOnInvalidContent:(c=o.errorOnInvalidContent)!==null&&c!==void 0?c:n.options.enableContentCheck})};function Kp(r,e){const t=tr(e,r.schema),{from:o,to:n,empty:i}=r.selection,a=[];i?(r.storedMarks&&a.push(...r.storedMarks),a.push(...r.selection.$head.marks())):r.doc.nodesBetween(o,n,d=>{a.push(...d.marks)});const l=a.find(d=>d.type.name===t.name);return l?{...l.attrs}:{}}function uw(r,e){const t=new Zd(r);return e.forEach(o=>{o.steps.forEach(n=>{t.step(n)})}),t}function mw(r){for(let e=0;e<r.edgeCount;e+=1){const{type:t}=r.edge(e);if(t.isTextblock&&!t.hasRequiredAttrs())return t}return null}function hw(r,e,t){const o=[];return r.nodesBetween(e.from,e.to,(n,i)=>{t(n)&&o.push({node:n,pos:i})}),o}function gw(r,e){for(let t=r.depth;t>0;t-=1){const o=r.node(t);if(e(o))return{pos:t>0?r.before(t):0,start:r.start(t),depth:t,node:o}}}function Os(r){return e=>gw(e.$from,r)}function Jp(r,e){const t={from:0,to:r.content.size};return _p(r,t,e)}function fw(r,e){const t=ye(e,r.schema),{from:o,to:n}=r.selection,i=[];r.doc.nodesBetween(o,n,l=>{i.push(l)});const a=i.reverse().find(l=>l.type.name===t.name);return a?{...a.attrs}:{}}function Gp(r,e){const t=ci(typeof e=="string"?e:e.name,r.schema);return t==="node"?fw(r,e):t==="mark"?Kp(r,e):{}}function bw(r,e=JSON.stringify){const t={};return r.filter(o=>{const n=e(o);return Object.prototype.hasOwnProperty.call(t,n)?!1:t[n]=!0})}function ww(r){const e=bw(r);return e.length===1?e:e.filter((t,o)=>!e.filter((i,a)=>a!==o).some(i=>t.oldRange.from>=i.oldRange.from&&t.oldRange.to<=i.oldRange.to&&t.newRange.from>=i.newRange.from&&t.newRange.to<=i.newRange.to))}function yw(r){const{mapping:e,steps:t}=r,o=[];return e.maps.forEach((n,i)=>{const a=[];if(n.ranges.length)n.forEach((l,d)=>{a.push({from:l,to:d})});else{const{from:l,to:d}=t[i];if(l===void 0||d===void 0)return;a.push({from:l,to:d})}a.forEach(({from:l,to:d})=>{const c=e.slice(i).map(l,-1),p=e.slice(i).map(d),u=e.invert().map(c,-1),m=e.invert().map(p);o.push({oldRange:{from:u,to:m},newRange:{from:c,to:p}})})}),ww(o)}function Vs(r,e,t){const o=[];return r===e?t.resolve(r).marks().forEach(n=>{const i=t.resolve(r),a=Ns(i,n.type);a&&o.push({mark:n,...a})}):t.nodesBetween(r,e,(n,i)=>{!n||(n==null?void 0:n.nodeSize)===void 0||o.push(...n.marks.map(a=>({from:i,to:i+n.nodeSize,mark:a})))}),o}function pi(r,e,t){return Object.fromEntries(Object.entries(t).filter(([o])=>{const n=r.find(i=>i.type===e&&i.name===o);return n?n.attribute.keepOnSplit:!1}))}function Ps(r,e,t={}){const{empty:o,ranges:n}=r.selection,i=e?tr(e,r.schema):null;if(o)return!!(r.storedMarks||r.selection.$from.marks()).filter(u=>i?i.name===u.type.name:!0).find(u=>li(u.attrs,t,{strict:!1}));let a=0;const l=[];if(n.forEach(({$from:u,$to:m})=>{const h=u.pos,g=m.pos;r.doc.nodesBetween(h,g,(f,b)=>{if(!f.isText&&!f.marks.length)return;const y=Math.max(h,b),k=Math.min(g,b+f.nodeSize),x=k-y;a+=x,l.push(...f.marks.map(w=>({mark:w,from:y,to:k})))})}),a===0)return!1;const d=l.filter(u=>i?i.name===u.mark.type.name:!0).filter(u=>li(u.mark.attrs,t,{strict:!1})).reduce((u,m)=>u+m.to-m.from,0),c=l.filter(u=>i?u.mark.type!==i&&u.mark.type.excludes(i):!0).reduce((u,m)=>u+m.to-m.from,0);return(d>0?d+c:d)>=a}function xw(r,e,t={}){if(!e)return Fo(r,null,t)||Ps(r,null,t);const o=ci(e,r.schema);return o==="node"?Fo(r,e,t):o==="mark"?Ps(r,e,t):!1}function Yp(r,e){const{nodeExtensions:t}=ri(e),o=t.find(a=>a.name===r);if(!o)return!1;const n={name:o.name,options:o.options,storage:o.storage},i=U(I(o,"group",n));return typeof i!="string"?!1:i.split(" ").includes("list")}function As(r,{checkChildren:e=!0,ignoreWhitespace:t=!1}={}){var o;if(t){if(r.type.name==="hardBreak")return!0;if(r.isText)return/^\s*$/m.test((o=r.text)!==null&&o!==void 0?o:"")}if(r.isText)return!r.text;if(r.isAtom||r.isLeaf)return!1;if(r.content.childCount===0)return!0;if(e){let n=!0;return r.content.forEach(i=>{n!==!1&&(As(i,{ignoreWhitespace:t,checkChildren:e})||(n=!1))}),n}return!1}function Xp(r){return r instanceof R}function Qp(r,e,t){const n=r.state.doc.content.size,i=Vt(e,0,n),a=Vt(t,0,n),l=r.coordsAtPos(i),d=r.coordsAtPos(a,-1),c=Math.min(l.top,d.top),p=Math.max(l.bottom,d.bottom),u=Math.min(l.left,d.left),m=Math.max(l.right,d.right),h=m-u,g=p-c,y={top:c,bottom:p,left:u,right:m,width:h,height:g,x:u,y:c};return{...y,toJSON:()=>y}}function vw(r,e,t){var o;const{selection:n}=e;let i=null;if(Bs(n)&&(i=n.$cursor),i){const l=(o=r.storedMarks)!==null&&o!==void 0?o:i.marks();return!!t.isInSet(l)||!l.some(d=>d.type.excludes(t))}const{ranges:a}=n;return a.some(({$from:l,$to:d})=>{let c=l.depth===0?r.doc.inlineContent&&r.doc.type.allowsMarkType(t):!1;return r.doc.nodesBetween(l.pos,d.pos,(p,u,m)=>{if(c)return!1;if(p.isInline){const h=!m||m.type.allowsMarkType(t),g=!!t.isInSet(p.marks)||!p.marks.some(f=>f.type.excludes(t));c=h&&g}return!c}),c})}const kw=(r,e={})=>({tr:t,state:o,dispatch:n})=>{const{selection:i}=t,{empty:a,ranges:l}=i,d=tr(r,o.schema);if(n)if(a){const c=Kp(o,d);t.addStoredMark(d.create({...c,...e}))}else l.forEach(c=>{const p=c.$from.pos,u=c.$to.pos;o.doc.nodesBetween(p,u,(m,h)=>{const g=Math.max(h,p),f=Math.min(h+m.nodeSize,u);m.marks.find(y=>y.type===d)?m.marks.forEach(y=>{d===y.type&&t.addMark(g,f,d.create({...y.attrs,...e}))}):t.addMark(g,f,d.create(e))})});return vw(o,t,d)},Ew=(r,e)=>({tr:t})=>(t.setMeta(r,e),!0),Sw=(r,e={})=>({state:t,dispatch:o,chain:n})=>{const i=ye(r,t.schema);let a;return t.selection.$anchor.sameParent(t.selection.$head)&&(a=t.selection.$anchor.parent.attrs),i.isTextblock?n().command(({commands:l})=>Ap(i,{...a,...e})(t)?!0:l.clearNodes()).command(({state:l})=>Ap(i,{...a,...e})(l,o)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},Cw=r=>({tr:e,dispatch:t})=>{if(t){const{doc:o}=e,n=Vt(r,0,o.content.size),i=R.create(o,n);e.setSelection(i)}return!0},Nw=r=>({tr:e,dispatch:t})=>{if(t){const{doc:o}=e,{from:n,to:i}=typeof r=="number"?{from:r,to:r}:r,a=j.atStart(o).from,l=j.atEnd(o).to,d=Vt(n,a,l),c=Vt(i,a,l),p=j.create(o,d,c);e.setSelection(p)}return!0},Bw=r=>({state:e,dispatch:t})=>{const o=ye(r,e.schema);return ib(o)(e,t)};function Zp(r,e){const t=r.storedMarks||r.selection.$to.parentOffset&&r.selection.$from.marks();if(t){const o=t.filter(n=>e==null?void 0:e.includes(n.type.name));r.tr.ensureMarks(o)}}const Mw=({keepMarks:r=!0}={})=>({tr:e,state:t,dispatch:o,editor:n})=>{const{selection:i,doc:a}=e,{$from:l,$to:d}=i,c=n.extensionManager.attributes,p=pi(c,l.node().type.name,l.node().attrs);if(i instanceof R&&i.node.isBlock)return!l.parentOffset||!Ct(a,l.pos)?!1:(o&&(r&&Zp(t,n.extensionManager.splittableMarks),e.split(l.pos).scrollIntoView()),!0);if(!l.parent.isBlock)return!1;const u=d.parentOffset===d.parent.content.size,m=l.depth===0?void 0:mw(l.node(-1).contentMatchAt(l.indexAfter(-1)));let h=u&&m?[{type:m,attrs:p}]:void 0,g=Ct(e.doc,e.mapping.map(l.pos),1,h);if(!h&&!g&&Ct(e.doc,e.mapping.map(l.pos),1,m?[{type:m}]:void 0)&&(g=!0,h=m?[{type:m,attrs:p}]:void 0),o){if(g&&(i instanceof j&&e.deleteSelection(),e.split(e.mapping.map(l.pos),1,h),m&&!u&&!l.parentOffset&&l.parent.type!==m)){const f=e.mapping.map(l.before()),b=e.doc.resolve(f);l.node(-1).canReplaceWith(b.index(),b.index()+1,m)&&e.setNodeMarkup(e.mapping.map(l.before()),m)}r&&Zp(t,n.extensionManager.splittableMarks),e.scrollIntoView()}return g},Tw=(r,e={})=>({tr:t,state:o,dispatch:n,editor:i})=>{var a;const l=ye(r,o.schema),{$from:d,$to:c}=o.selection,p=o.selection.node;if(p&&p.isBlock||d.depth<2||!d.sameParent(c))return!1;const u=d.node(-1);if(u.type!==l)return!1;const m=i.extensionManager.attributes;if(d.parent.content.size===0&&d.node(-1).childCount===d.indexAfter(-1)){if(d.depth===2||d.node(-3).type!==l||d.index(-2)!==d.node(-2).childCount-1)return!1;if(n){let y=M.empty;const k=d.index(-1)?1:d.index(-2)?2:3;for(let O=d.depth-k;O>=d.depth-3;O-=1)y=M.from(d.node(O).copy(y));const x=d.indexAfter(-1)<d.node(-2).childCount?1:d.indexAfter(-2)<d.node(-3).childCount?2:3,w={...pi(m,d.node().type.name,d.node().attrs),...e},S=((a=l.contentMatch.defaultType)===null||a===void 0?void 0:a.createAndFill(w))||void 0;y=y.append(M.from(l.createAndFill(null,S)||void 0));const v=d.before(d.depth-(k-1));t.replace(v,d.after(-x),new A(y,4-k,0));let C=-1;t.doc.nodesBetween(v,t.doc.content.size,(O,D)=>{if(C>-1)return!1;O.isTextblock&&O.content.size===0&&(C=D+1)}),C>-1&&t.setSelection(j.near(t.doc.resolve(C))),t.scrollIntoView()}return!0}const h=c.pos===d.end()?u.contentMatchAt(0).defaultType:null,g={...pi(m,u.type.name,u.attrs),...e},f={...pi(m,d.node().type.name,d.node().attrs),...e};t.delete(d.pos,c.pos);const b=h?[{type:l,attrs:g},{type:h,attrs:f}]:[{type:l,attrs:g}];if(!Ct(t.doc,d.pos,2))return!1;if(n){const{selection:y,storedMarks:k}=o,{splittableMarks:x}=i.extensionManager,w=k||y.$to.parentOffset&&y.$from.marks();if(t.split(d.pos,2,b).scrollIntoView(),!w||!n)return!0;const S=w.filter(v=>x.includes(v.type.name));t.ensureMarks(S)}return!0},Ds=(r,e)=>{const t=Os(a=>a.type===e)(r.selection);if(!t)return!0;const o=r.doc.resolve(Math.max(0,t.pos-1)).before(t.depth);if(o===void 0)return!0;const n=r.doc.nodeAt(o);return t.node.type===(n==null?void 0:n.type)&&Ut(r.doc,t.pos)&&r.join(t.pos),!0},Is=(r,e)=>{const t=Os(a=>a.type===e)(r.selection);if(!t)return!0;const o=r.doc.resolve(t.start).after(t.depth);if(o===void 0)return!0;const n=r.doc.nodeAt(o);return t.node.type===(n==null?void 0:n.type)&&Ut(r.doc,o)&&r.join(o),!0};var Ow=Object.freeze({__proto__:null,blur:kb,clearContent:Eb,clearNodes:Sb,command:Cb,createParagraphNear:Nb,cut:Bb,deleteCurrentNode:Mb,deleteNode:Tb,deleteRange:Ob,deleteSelection:Vb,enter:Pb,exitCode:Ab,extendMarkRange:Db,first:Ib,focus:Rb,forEach:zb,insertContent:_b,insertContentAt:Hb,joinBackward:Ub,joinDown:qb,joinForward:Kb,joinItemBackward:Jb,joinItemForward:Gb,joinTextblockBackward:Yb,joinTextblockForward:Xb,joinUp:Wb,keyboardShortcut:Zb,lift:$b,liftEmptyBlock:ew,liftListItem:tw,newlineInCode:rw,resetAttributes:ow,scrollIntoView:nw,selectAll:iw,selectNodeBackward:aw,selectNodeForward:sw,selectParentNode:lw,selectTextblockEnd:dw,selectTextblockStart:cw,setContent:pw,setMark:kw,setMeta:Ew,setNode:Sw,setNodeSelection:Cw,setTextSelection:Nw,sinkListItem:Bw,splitBlock:Mw,splitListItem:Tw,toggleList:(r,e,t,o={})=>({editor:n,tr:i,state:a,dispatch:l,chain:d,commands:c,can:p})=>{const{extensions:u,splittableMarks:m}=n.extensionManager,h=ye(r,a.schema),g=ye(e,a.schema),{selection:f,storedMarks:b}=a,{$from:y,$to:k}=f,x=y.blockRange(k),w=b||f.$to.parentOffset&&f.$from.marks();if(!x)return!1;const S=Os(v=>Yp(v.type.name,u))(f);if(x.depth>=1&&S&&x.depth-S.depth<=1){if(S.node.type===h)return c.liftListItem(g);if(Yp(S.node.type.name,u)&&h.validContent(S.node.content)&&l)return d().command(()=>(i.setNodeMarkup(S.pos,h),!0)).command(()=>Ds(i,h)).command(()=>Is(i,h)).run()}return!t||!w||!l?d().command(()=>p().wrapInList(h,o)?!0:c.clearNodes()).wrapInList(h,o).command(()=>Ds(i,h)).command(()=>Is(i,h)).run():d().command(()=>{const v=p().wrapInList(h,o),C=w.filter(O=>m.includes(O.type.name));return i.ensureMarks(C),v?!0:c.clearNodes()}).wrapInList(h,o).command(()=>Ds(i,h)).command(()=>Is(i,h)).run()},toggleMark:(r,e={},t={})=>({state:o,commands:n})=>{const{extendEmptyMarkRange:i=!1}=t,a=tr(r,o.schema);return Ps(o,a,e)?n.unsetMark(a,{extendEmptyMarkRange:i}):n.setMark(a,e)},toggleNode:(r,e,t={})=>({state:o,commands:n})=>{const i=ye(r,o.schema),a=ye(e,o.schema),l=Fo(o,i,t);let d;return o.selection.$anchor.sameParent(o.selection.$head)&&(d=o.selection.$anchor.parent.attrs),l?n.setNode(a,d):n.setNode(i,{...d,...t})},toggleWrap:(r,e={})=>({state:t,commands:o})=>{const n=ye(r,t.schema);return Fo(t,n,e)?o.lift(n):o.wrapIn(n,e)},undoInputRule:()=>({state:r,dispatch:e})=>{const t=r.plugins;for(let o=0;o<t.length;o+=1){const n=t[o];let i;if(n.spec.isInputRules&&(i=n.getState(r))){if(e){const a=r.tr,l=i.transform;for(let d=l.steps.length-1;d>=0;d-=1)a.step(l.steps[d].invert(l.docs[d]));if(i.text){const d=a.doc.resolve(i.from).marks();a.replaceWith(i.from,i.to,r.schema.text(i.text,d))}else a.delete(i.from,i.to)}return!0}}return!1},unsetAllMarks:()=>({tr:r,dispatch:e})=>{const{selection:t}=r,{empty:o,ranges:n}=t;return o||e&&n.forEach(i=>{r.removeMark(i.$from.pos,i.$to.pos)}),!0},unsetMark:(r,e={})=>({tr:t,state:o,dispatch:n})=>{var i;const{extendEmptyMarkRange:a=!1}=e,{selection:l}=t,d=tr(r,o.schema),{$from:c,empty:p,ranges:u}=l;if(!n)return!0;if(p&&a){let{from:m,to:h}=l;const g=(i=c.marks().find(b=>b.type===d))===null||i===void 0?void 0:i.attrs,f=Ns(c,d,g);f&&(m=f.from,h=f.to),t.removeMark(m,h,d)}else u.forEach(m=>{t.removeMark(m.$from.pos,m.$to.pos,d)});return t.removeStoredMark(d),!0},updateAttributes:(r,e={})=>({tr:t,state:o,dispatch:n})=>{let i=null,a=null;const l=ci(typeof r=="string"?r:r.name,o.schema);return l?(l==="node"&&(i=ye(r,o.schema)),l==="mark"&&(a=tr(r,o.schema)),n&&t.selection.ranges.forEach(d=>{const c=d.$from.pos,p=d.$to.pos;let u,m,h,g;t.selection.empty?o.doc.nodesBetween(c,p,(f,b)=>{i&&i===f.type&&(h=Math.max(b,c),g=Math.min(b+f.nodeSize,p),u=b,m=f)}):o.doc.nodesBetween(c,p,(f,b)=>{b<c&&i&&i===f.type&&(h=Math.max(b,c),g=Math.min(b+f.nodeSize,p),u=b,m=f),b>=c&&b<=p&&(i&&i===f.type&&t.setNodeMarkup(b,void 0,{...f.attrs,...e}),a&&f.marks.length&&f.marks.forEach(y=>{if(a===y.type){const k=Math.max(b,c),x=Math.min(b+f.nodeSize,p);t.addMark(k,x,a.create({...y.attrs,...e}))}}))}),m&&(u!==void 0&&t.setNodeMarkup(u,void 0,{...m.attrs,...e}),a&&m.marks.length&&m.marks.forEach(f=>{a===f.type&&t.addMark(h,g,a.create({...f.attrs,...e}))}))}),!0):!1},wrapIn:(r,e={})=>({state:t,dispatch:o})=>{const n=ye(r,t.schema);return Z0(n,e)(t,o)},wrapInList:(r,e={})=>({state:t,dispatch:o})=>{const n=ye(r,t.schema);return $0(n,e)(t,o)}});const Vw=Be.create({name:"commands",addCommands(){return{...Ow}}}),Pw=Be.create({name:"drop",addProseMirrorPlugins(){return[new he({key:new Ae("tiptapDrop"),props:{handleDrop:(r,e,t,o)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:t,moved:o})}}})]}}),Aw=Be.create({name:"editable",addProseMirrorPlugins(){return[new he({key:new Ae("editable"),props:{editable:()=>this.editor.options.editable}})]}}),Dw=new Ae("focusEvents"),Iw=Be.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:r}=this;return[new he({key:Dw,props:{handleDOMEvents:{focus:(e,t)=>{r.isFocused=!0;const o=r.state.tr.setMeta("focus",{event:t}).setMeta("addToHistory",!1);return e.dispatch(o),!1},blur:(e,t)=>{r.isFocused=!1;const o=r.state.tr.setMeta("blur",{event:t}).setMeta("addToHistory",!1);return e.dispatch(o),!1}}}})]}}),Lw=Be.create({name:"keymap",addKeyboardShortcuts(){const r=()=>this.editor.commands.first(({commands:a})=>[()=>a.undoInputRule(),()=>a.command(({tr:l})=>{const{selection:d,doc:c}=l,{empty:p,$anchor:u}=d,{pos:m,parent:h}=u,g=u.parent.isTextblock&&m>0?l.doc.resolve(m-1):u,f=g.parent.type.spec.isolating,b=u.pos-u.parentOffset,y=f&&g.parent.childCount===1?b===u.pos:W.atStart(c).from===m;return!p||!h.type.isTextblock||h.textContent.length||!y||y&&u.parent.type.name==="paragraph"?!1:a.clearNodes()}),()=>a.deleteSelection(),()=>a.joinBackward(),()=>a.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:a})=>[()=>a.deleteSelection(),()=>a.deleteCurrentNode(),()=>a.joinForward(),()=>a.selectNodeForward()]),o={Enter:()=>this.editor.commands.first(({commands:a})=>[()=>a.newlineInCode(),()=>a.createParagraphNear(),()=>a.liftEmptyBlock(),()=>a.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:r,"Mod-Backspace":r,"Shift-Backspace":r,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},n={...o},i={...o,"Ctrl-h":r,"Alt-Backspace":r,"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 Ms()||qp()?i:n},addProseMirrorPlugins(){return[new he({key:new Ae("clearDocument"),appendTransaction:(r,e,t)=>{if(r.some(f=>f.getMeta("composition")))return;const o=r.some(f=>f.docChanged)&&!e.doc.eq(t.doc),n=r.some(f=>f.getMeta("preventClearDocument"));if(!o||n)return;const{empty:i,from:a,to:l}=e.selection,d=W.atStart(e.doc).from,c=W.atEnd(e.doc).to;if(i||!(a===d&&l===c)||!As(t.doc))return;const m=t.tr,h=ei({state:t,transaction:m}),{commands:g}=new ti({editor:this.editor,state:h});if(g.clearNodes(),!!m.steps.length)return m}})]}}),Rw=Be.create({name:"paste",addProseMirrorPlugins(){return[new he({key:new Ae("tiptapPaste"),props:{handlePaste:(r,e,t)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:t})}}})]}}),zw=Be.create({name:"tabindex",addProseMirrorPlugins(){return[new he({key:new Ae("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class Er{get name(){return this.node.type.name}constructor(e,t,o=!1,n=null){this.currentNode=null,this.actualDepth=null,this.isBlock=o,this.resolvedPos=e,this.editor=t,this.currentNode=n}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!==null&&e!==void 0?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let t=this.from,o=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}t=this.from+1,o=this.to-1}this.editor.commands.insertContentAt({from:t,to:o},e)}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(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),t=this.resolvedPos.doc.resolve(e);return new Er(t,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new Er(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new Er(e,this.editor)}get children(){const e=[];return this.node.content.forEach((t,o)=>{const n=t.isBlock&&!t.isTextblock,i=t.isAtom&&!t.isText,a=this.pos+o+(i?0:1),l=this.resolvedPos.doc.resolve(a);if(!n&&l.depth<=this.depth)return;const d=new Er(l,this.editor,n,n?t:null);n&&(d.actualDepth=this.depth+1),e.push(new Er(l,this.editor,n,n?t:null))}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,t={}){let o=null,n=this.parent;for(;n&&!o;){if(n.node.type.name===e)if(Object.keys(t).length>0){const i=n.node.attrs,a=Object.keys(t);for(let l=0;l<a.length;l+=1){const d=a[l];if(i[d]!==t[d])break}}else o=n;n=n.parent}return o}querySelector(e,t={}){return this.querySelectorAll(e,t,!0)[0]||null}querySelectorAll(e,t={},o=!1){let n=[];if(!this.children||this.children.length===0)return n;const i=Object.keys(t);return this.children.forEach(a=>{o&&n.length>0||(a.node.type.name===e&&i.every(d=>t[d]===a.node.attrs[d])&&n.push(a),!(o&&n.length>0)&&(n=n.concat(a.querySelectorAll(e,t,o))))}),n}setAttribute(e){const{tr:t}=this.editor.state;t.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(t)}}const _w=`.ProseMirror {
|
|
11
|
+
This will fail in production.`);l=wo,l._s.has(o)||(i?Ca(o,e,n,l):ac(o,n,l),process.env.NODE_ENV!=="production"&&(a._pinia=l));const u=l._s.get(o);if(process.env.NODE_ENV!=="production"&&c){const p="__hot:"+o,m=i?Ca(p,e,n,l,!0):ac(p,Ge({},n),l,!0);c._hotUpdate(m),delete l.state.value[p],l._s.delete(p)}if(process.env.NODE_ENV!=="production"&&Ft){const p=s.getCurrentInstance();if(p&&p.proxy&&!c){const m=p.proxy,h="_pStores"in m?m._pStores:m._pStores={};h[o]=u}}return u}return a.$id=o,a}const sc=Sh("pageBuilderState",{state:()=>({componentArrayAddMethod:null,localStorageItemName:null,showModalTipTap:!1,menuRight:!0,borderStyle:null,borderWidth:null,borderColor:null,borderRadiusGlobal:null,borderRadiusTopLeft:null,borderRadiusTopRight:null,borderRadiusBottomleft:null,borderRadiusBottomRight:null,elementContainsHyperlink:null,hyperlinkAbility:null,hyperlinkInput:null,hyperlinkMessage:null,hyperlinkError:null,hyberlinkEnable:!1,openHyperlinkinkInNewTab:null,opacity:null,backgroundOpacity:null,textAreaVueModel:null,nextSibling:null,parentElement:null,restoredElement:null,currentClasses:[],fontVerticalPadding:null,fontHorizontalPadding:null,fontVerticalMargin:null,fontHorizontalMargin:null,fontStyle:null,fontFamily:null,fontWeight:null,fontBase:null,fontDesktop:null,fontTablet:null,fontMobile:null,backgroundColor:null,textColor:null,element:null,component:null,components:[],basePrimaryImage:null,configPageBuilder:null,currentImage:{src:""},currentPreviewImage:null,isSaving:!1}),getters:{getComponentArrayAddMethod(r){return r.componentArrayAddMethod},getLocalStorageItemName(r){return r.localStorageItemName},getShowModalTipTap(r){return r.showModalTipTap},getMenuRight(r){return r.menuRight},getBorderStyle(r){return r.borderStyle},getBorderWidth(r){return r.borderWidth},getBorderColor(r){return r.borderColor},getBorderRadiusGlobal(r){return r.borderRadiusGlobal},getBorderRadiusTopLeft(r){return r.borderRadiusTopLeft},getBorderRadiusTopRight(r){return r.borderRadiusTopRight},getBorderRadiusBottomleft(r){return r.borderRadiusBottomleft},getBorderRadiusBottomRight(r){return r.borderRadiusBottomRight},getElementContainsHyperlink(r){return r.elementContainsHyperlink},getHyperlinkAbility(r){return r.hyperlinkAbility},getHyperlinkInput(r){return r.hyperlinkInput},getHyperlinkMessage(r){return r.hyperlinkMessage},getHyperlinkError(r){return r.hyperlinkError},getHyberlinkEnable(r){return r.hyberlinkEnable},getOpenHyperlinkInNewTab(r){return r.openHyperlinkinkInNewTab},getOpacity(r){return r.opacity},getBackgroundOpacity(r){return r.backgroundOpacity},getTextAreaVueModel(r){return r.textAreaVueModel},getNextSibling(r){return r.nextSibling},getParentElement(r){return r.parentElement},getRestoredElement(r){return r.restoredElement},getCurrentClasses(r){return r.currentClasses},getFontStyle(r){return r.fontStyle},getFontVerticalPadding(r){return r.fontVerticalPadding},getFontHorizontalPadding(r){return r.fontHorizontalPadding},getFontVerticalMargin(r){return r.fontVerticalMargin},getFontHorizontalMargin(r){return r.fontHorizontalMargin},getFontFamily(r){return r.fontFamily},getFontWeight(r){return r.fontWeight},getFontBase(r){return r.fontBase},getFontDesktop(r){return r.fontDesktop},getFontTablet(r){return r.fontTablet},getFontMobile(r){return r.fontMobile},getBackgroundColor(r){return r.backgroundColor},getTextColor(r){return r.textColor},getElement(r){return r.element},getComponent(r){return r.component},getComponents(r){return r.components},getBasePrimaryImage(r){return r.basePrimaryImage},getConfigPageBuilder(r){return r.configPageBuilder},getCurrentImage(r){return r.currentImage},getCurrentPreviewImage(r){return r.currentPreviewImage},getIsSaving:r=>r.isSaving},actions:{setComponentArrayAddMethod(r){this.componentArrayAddMethod=r},setLocalStorageItemName(r){this.localStorageItemName=r},setShowModalTipTap(r){this.showModalTipTap=r},setMenuRight(r){this.menuRight=r},setBorderStyle(r){this.borderStyle=r},setBorderWidth(r){this.borderWidth=r},setBorderColor(r){this.borderColor=r},setBorderRadiusGlobal(r){this.borderRadiusGlobal=r},setBorderRadiusTopLeft(r){this.borderRadiusTopLeft=r},setBorderRadiusTopRight(r){this.borderRadiusTopRight=r},setBorderRadiusBottomleft(r){this.borderRadiusBottomleft=r},setBorderRadiusBottomRight(r){this.borderRadiusBottomRight=r},setElementContainsHyperlink(r){this.elementContainsHyperlink=r},setHyperlinkAbility(r){this.hyperlinkAbility=r},setHyperlinkInput(r){this.hyperlinkInput=r},setHyperlinkMessage(r){this.hyperlinkMessage=r},setHyperlinkError(r){this.hyperlinkError=r},setHyberlinkEnable(r){this.hyberlinkEnable=r},setOpenHyperlinkInNewTab(r){this.openHyperlinkinkInNewTab=r},setOpacity(r){this.opacity=r},setBackgroundOpacity(r){this.backgroundOpacity=r},setTextAreaVueModel(r){this.textAreaVueModel=r},setNextSibling(r){this.nextSibling=r},setParentElement(r){this.parentElement=r},setRestoredElement(r){this.restoredElement=r},setClass(r){this.currentClasses=[...this.currentClasses,r]},removeClass(r){this.currentClasses=this.currentClasses.filter(e=>e!==r)},setCurrentClasses(r){this.currentClasses=Array.from(r)},setFontVerticalPadding(r){this.fontVerticalPadding=r},setFontHorizontalPadding(r){this.fontHorizontalPadding=r},setFontVerticalMargin(r){this.fontVerticalMargin=r},setFontHorizontalMargin(r){this.fontHorizontalMargin=r},setFontStyle(r){this.fontStyle=r},setFontFamily(r){this.fontFamily=r},setFontWeight(r){this.fontWeight=r},setFontBase(r){this.fontBase=r},setFontDesktop(r){this.fontDesktop=r},setFontTablet(r){this.fontTablet=r},setFontMobile(r){this.fontMobile=r},setBackgroundColor(r){this.backgroundColor=r},setTextColor(r){this.textColor=r},setElement(r){this.element=null,s.nextTick(()=>{this.element=r})},setComponent(r){if(!r){this.element=null,this.component=null;return}this.component=null,s.nextTick(()=>{this.component=r})},setComponents(r){this.components=[],s.nextTick(()=>{this.components=r||[]})},setPushComponents(r){const e=r.componentArrayAddMethod??"push";e==="push"?this.components.push(r.component):e==="unshift"&&this.components.unshift(r.component)},setBasePrimaryImage(r){this.element&&(this.element.src=r??void 0),this.basePrimaryImage=r},setCurrentLayoutPreview(r){localStorage.setItem("preview",r)},applyPageBuilderConfig(r){this.configPageBuilder=r},setCurrentImage(r){this.currentImage=r},setCurrentPreviewImage(r){this.currentPreviewImage=r},setIsSaving(r){this.isSaving=r}}}),Na=ec(),se=sc(Na),Ch={class:"w-full inset-x-0 h-[90vh] bg-white overflow-x-scroll lg:pt-2 pt-2"},Nh={id:"page-builder-editor"},Bh=["innerHTML"],lc={__name:"Preview",emits:["firstPageBuilderPreviewModalButton"],setup(r,{emit:e}){const t=se;s.computed(()=>t.getConfigPageBuilder);const o=s.ref(""),n=localStorage.getItem("preview");if(n)try{const i=JSON.parse(n);o.value=Array.isArray(i)?i.join(""):""}catch(i){console.error("Error parsing preview data:",i),o.value=""}else o.value="";return(i,a)=>(s.openBlock(),s.createElementBlock("div",null,[s.createElementVNode("div",Ch,[s.createElementVNode("div",Nh,[s.createElementVNode("div",{class:"",innerHTML:o.value},null,8,Bh)])])]))}},Mh={class:"font-sans w-full relative inline-block align-bottom text-left overflow-hidden transform transition-all sm:align-middle"},Th=["innerHTML"],Oh={key:0,class:"py-4 flex sm:justify-end justify-center border-t border-gray-200 mt-4"},Vh={key:1},Ph={key:0},Ah=["disabled"],Dh={key:1},Ih={key:2},Lh={key:0},Rh={key:0},zh=["disabled"],_h={key:1},Fh={key:1},jh={key:0},Hh=["disabled"],Wh={key:1},qh={key:2},Uh={key:0},Kh=["disabled"],Jh={key:1},Gh={key:3},Yh={key:0},Xh=["disabled"],Qh={key:1},Zh={key:1,class:"flex items-center my-2 py-4 px-2 justify-end"},zr={__name:"DynamicModalBuilder",props:{showDynamicModalBuilder:{type:Boolean,default:!1,required:!0},simpleModal:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},isLoading:{type:Boolean,default:!1,required:!1},disabledWhichButton:{type:String,default:"",required:!1},maxWidth:{type:String,required:!1,default:"2xl"},gridColumnAmount:{type:Number,required:!0},type:{type:String,required:!0},title:{type:String,required:!0},description:{required:!0},firstButtonText:{type:String},secondButtonText:{type:String},thirdButtonText:{type:String}},emits:["firstModalButtonFunctionDynamicModalBuilder","secondModalButtonFunctionDynamicModalBuilder","thirdModalButtonFunctionDynamicModalBuilder"],setup(r,{emit:e}){const t=e,o=function(){t("firstModalButtonFunctionDynamicModalBuilder")},n=function(){t("secondModalButtonFunctionDynamicModalBuilder")},i=function(){t("thirdModalButtonFunctionDynamicModalBuilder")};return(a,l)=>(s.openBlock(),s.createBlock(Dr,{title:r.title,showModalBuilder:r.showDynamicModalBuilder,onCloseMainModalBuilder:o,maxWidth:r.maxWidth},{default:s.withCtx(()=>[s.renderSlot(a.$slots,"content"),s.createElementVNode("div",Mh,[s.createElementVNode("div",{class:s.normalizeClass({"pr-4 pb-4":r.simpleModal!==!0})},[r.simpleModal!==!0?(s.openBlock(),s.createElementBlock("div",{key:0,innerHTML:r.description,class:"myPrimaryParagraph mb-6"},null,8,Th)):s.createCommentVNode("",!0),s.renderSlot(a.$slots,"header"),s.renderSlot(a.$slots,"default")],2)]),r.simpleModal!==!0&&!r.isLoading?(s.openBlock(),s.createElementBlock("div",Oh,[s.renderSlot(a.$slots,"footer"),s.createElementVNode("div",{class:s.normalizeClass([{"sm:grid-cols-1":r.gridColumnAmount===1,"sm:grid-cols-2":r.gridColumnAmount===2,"sm:grid-cols-3":r.gridColumnAmount===3},"sm:items-end sm:justify-end flex sm:flex-row flex-col myPrimaryGap sm:w-5/6 w-full"])},[r.firstButtonText?(s.openBlock(),s.createElementBlock("button",{key:0,ref:"firstButtonRef",class:"mySecondaryButton",type:"button",onClick:o},s.toDisplayString(r.firstButtonText),513)):s.createCommentVNode("",!0),r.secondButtonText?(s.openBlock(),s.createElementBlock("div",Vh,[r.disabled&&r.disabledWhichButton==="secondButtonBuilder"?(s.openBlock(),s.createElementBlock("div",Ph,[s.createElementVNode("button",{class:s.normalizeClass(["flex items-center gap-2 myPrimaryButton bg-yellow-300 hover:bg-yellow-400 text-myPrimaryDarkGrayColor hover:text-myPrimaryDarkGrayColor focus:ring-yellow-400 w-full",{"opacity-25 cursor-default":r.disabled}]),disabled:r.disabled,type:"button",onClick:n},[s.createElementVNode("div",null,[s.createVNode(s.Transition,{name:"bounce"},{default:s.withCtx(()=>l[0]||(l[0]=[s.createElementVNode("div",{role:"status",class:"flex items-center"},[s.createElementVNode("svg",{"aria-hidden":"true",class:"w-4 h-4 animate-spin text-white-600 fill-gray-800 flex items-center","stroke-width":"1.5",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),s.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})])],-1)])),_:1,__:[0]})]),l[1]||(l[1]=s.createElementVNode("div",null,"Loading..",-1))],10,Ah)])):s.createCommentVNode("",!0),!r.disabled||r.disabledWhichButton!=="secondButtonBuilder"?(s.openBlock(),s.createElementBlock("div",Dh,[s.createElementVNode("button",{class:"myPrimaryButton bg-yellow-300 hover:bg-yellow-400 text-myPrimaryDarkGrayColor hover:text-myPrimaryDarkGrayColor focus:ring-yellow-400 w-full",type:"button",onClick:n},s.toDisplayString(r.secondButtonText),1)])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),r.thirdButtonText?(s.openBlock(),s.createElementBlock("div",Ih,[r.type==="default"?(s.openBlock(),s.createElementBlock("div",Lh,[r.disabled&&r.disabledWhichButton==="thirdButtonBuilder"?(s.openBlock(),s.createElementBlock("div",Rh,[s.createElementVNode("button",{class:s.normalizeClass(["flex items-center gap-2 myPrimaryButton bg-myPrimaryLinkColor focus-visible:ring-myPrimaryLinkColor focus:ring-myPrimaryLinkColor hover:bg-myPrimaryLinkColor w-full",{"opacity-25 cursor-default":r.disabled}]),disabled:r.disabled,type:"button"},[s.createElementVNode("div",null,[s.createVNode(s.Transition,{name:"bounce"},{default:s.withCtx(()=>l[2]||(l[2]=[s.createElementVNode("div",{role:"status",class:"flex items-center"},[s.createElementVNode("svg",{"aria-hidden":"true",class:"w-4 h-4 animate-spin text-white-600 fill-gray-800 flex items-center","stroke-width":"1.5",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),s.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})])],-1)])),_:1,__:[2]})]),l[3]||(l[3]=s.createElementVNode("div",null,"Loading..",-1))],10,zh)])):s.createCommentVNode("",!0),!r.disabled||r.disabledWhichButton!=="thirdButtonBuilder"?(s.openBlock(),s.createElementBlock("div",_h,[s.createElementVNode("button",{class:"myPrimaryButton bg-myPrimaryLinkColor focus-visible:ring-myPrimaryLinkColor focus:ring-myPrimaryLinkColor hover:bg-myPrimaryLinkColor w-full",type:"button",onClick:i},s.toDisplayString(r.thirdButtonText),1)])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),r.type==="success"?(s.openBlock(),s.createElementBlock("div",Fh,[r.disabled&&r.disabledWhichButton==="thirdButtonBuilder"?(s.openBlock(),s.createElementBlock("div",jh,[s.createElementVNode("button",{class:s.normalizeClass(["flex items-center gap-2 myPrimaryButton bg-myPrimaryLinkColor focus-visible:ring-myPrimaryLinkColor focus:ring-myPrimaryLinkColor hover:bg-myPrimaryLinkColor w-full",{"opacity-25 cursor-default":r.disabled}]),disabled:r.disabled,type:"button"},[s.createElementVNode("div",null,[s.createVNode(s.Transition,{name:"bounce"},{default:s.withCtx(()=>l[4]||(l[4]=[s.createElementVNode("div",{role:"status",class:"flex items-center"},[s.createElementVNode("svg",{"aria-hidden":"true",class:"w-4 h-4 animate-spin text-white-600 fill-gray-800 flex items-center","stroke-width":"1.5",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),s.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})])],-1)])),_:1,__:[4]})]),l[5]||(l[5]=s.createElementVNode("div",null,"Loading..",-1))],10,Hh)])):s.createCommentVNode("",!0),!r.disabled||r.disabledWhichButton!=="thirdButtonBuilder"?(s.openBlock(),s.createElementBlock("div",Wh,[s.createElementVNode("button",{class:"myPrimaryButton bg-myPrimaryLinkColor focus-visible:ring-myPrimaryLinkColor focus:ring-myPrimaryLinkColor hover:bg-myPrimaryLinkColor w-full",type:"button",onClick:i},s.toDisplayString(r.thirdButtonText),1)])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),r.type==="warning"?(s.openBlock(),s.createElementBlock("div",qh,[r.disabled&&r.disabledWhichButton==="thirdButtonBuilder"?(s.openBlock(),s.createElementBlock("div",Uh,[s.createElementVNode("button",{class:s.normalizeClass(["flex items-center gap-2 myPrimaryButton bg-myPrimaryLinkColor focus-visible:ring-myPrimaryLinkColor focus:ring-myPrimaryLinkColor hover:bg-myPrimaryLinkColor w-full",{"opacity-25 cursor-default":r.disabled}]),disabled:r.disabled,type:"button"},[s.createElementVNode("div",null,[s.createVNode(s.Transition,{name:"bounce"},{default:s.withCtx(()=>l[6]||(l[6]=[s.createElementVNode("div",{role:"status",class:"flex items-center"},[s.createElementVNode("svg",{"aria-hidden":"true",class:"w-4 h-4 animate-spin text-white-600 fill-gray-800 flex items-center","stroke-width":"1.5",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),s.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})])],-1)])),_:1,__:[6]})]),l[7]||(l[7]=s.createElementVNode("div",null,"Loading..",-1))],10,Kh)])):s.createCommentVNode("",!0),!r.disabled||r.disabledWhichButton!=="thirdButtonBuilder"?(s.openBlock(),s.createElementBlock("div",Jh,[s.createElementVNode("button",{class:"flex items-center gap-2 myPrimaryButton bg-myPrimaryErrorColor hover:bg-red-600 text-white focus:ring-myPrimaryErrorColor w-full",type:"button",onClick:i},s.toDisplayString(r.thirdButtonText),1)])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),r.type==="danger"||r.type==="delete"?(s.openBlock(),s.createElementBlock("div",Gh,[r.disabled&&r.disabledWhichButton==="thirdButtonBuilder"?(s.openBlock(),s.createElementBlock("div",Yh,[s.createElementVNode("button",{class:s.normalizeClass(["flex items-center gap-2 myPrimaryButton bg-myPrimaryErrorColor hover:bg-red-600 text-white focus:ring-myPrimaryErrorColor w-full",{"opacity-25 cursor-default":r.disabled}]),disabled:r.disabled,type:"button"},[s.createElementVNode("div",null,[s.createVNode(s.Transition,{name:"bounce"},{default:s.withCtx(()=>l[8]||(l[8]=[s.createElementVNode("div",{role:"status",class:"flex items-center"},[s.createElementVNode("svg",{"aria-hidden":"true",class:"w-4 h-4 animate-spin text-white-600 fill-gray-800 flex items-center","stroke-width":"1.5",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),s.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})])],-1)])),_:1,__:[8]})]),l[9]||(l[9]=s.createElementVNode("div",null,"Loading..",-1))],10,Xh)])):s.createCommentVNode("",!0),!r.disabled||r.disabledWhichButton!=="thirdButtonBuilder"?(s.openBlock(),s.createElementBlock("div",Qh,[s.createElementVNode("button",{class:"flex items-center gap-2 myPrimaryButton bg-myPrimaryErrorColor hover:bg-red-600 text-white focus:ring-myPrimaryErrorColor w-full",type:"button",onClick:i},s.toDisplayString(r.thirdButtonText),1)])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)],2)])):s.createCommentVNode("",!0),r.isLoading?(s.openBlock(),s.createElementBlock("div",Zh,l[10]||(l[10]=[s.createElementVNode("div",{class:"inline-block h-8 w-8 animate-spin rounded-full border-4 border-solid border-current border-r-transparent align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite]"},[s.createElementVNode("span",{class:"!absolute !-m-px !h-px !w-px !overflow-hidden !whitespace-nowrap !border-0 !p-0 ![clip:rect(0,0,0,0)]"},"Loading...")],-1)]))):s.createCommentVNode("",!0)]),_:3},8,["title","showModalBuilder","maxWidth"]))}},$h={class:"flex flex-col items-center justify-center myPrimaryGap"},ef={class:"flex gap-2 items-center justify-center"},tf={__name:"ComponentTopMenu",setup(r){const e=se,t=s.ref(!1),o=s.ref(""),n=s.ref(1),i=s.ref(""),a=s.ref(""),l=s.ref(""),c=s.ref(null),d=s.ref(null),u=s.ref(null),p=s.ref(null),m=s.ref(null),h=new de(e),f=function(g){t.value=!0,o.value="delete",n.value=2,i.value="Remove Component?",a.value="Are you sure you want to remove this Component?",l.value="Close",c.value=null,d.value="Delete",u.value=function(){t.value=!1},m.value=function(){h.deleteSelectedComponent(),t.value=!1}};return(g,b)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createVNode(zr,{showDynamicModalBuilder:t.value,type:o.value,gridColumnAmount:n.value,title:i.value,description:a.value,firstButtonText:l.value,secondButtonText:c.value,thirdButtonText:d.value,onFirstModalButtonFunctionDynamicModalBuilder:u.value,onSecondModalButtonFunctionDynamicModalBuilder:p.value,onThirdModalButtonFunctionDynamicModalBuilder:m.value},{default:s.withCtx(()=>b[3]||(b[3]=[s.createElementVNode("header",null,null,-1),s.createElementVNode("main",null,null,-1)])),_:1,__:[3]},8,["showDynamicModalBuilder","type","gridColumnAmount","title","description","firstButtonText","secondButtonText","thirdButtonText","onFirstModalButtonFunctionDynamicModalBuilder","onSecondModalButtonFunctionDynamicModalBuilder","onThirdModalButtonFunctionDynamicModalBuilder"]),s.createElementVNode("div",$h,[s.createElementVNode("div",ef,[s.createElementVNode("div",{onClick:b[0]||(b[0]=y=>f()),class:"h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryErrorColor hover:text-white text-myPrimaryErrorColor"},b[4]||(b[4]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," delete_forever ",-1)]))]),s.createElementVNode("button",{type:"button",onClick:b[1]||(b[1]=y=>s.unref(h).reorderComponent(-1)),class:"h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0"},b[5]||(b[5]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," move_up ",-1)])),s.createElementVNode("button",{type:"button",onClick:b[2]||(b[2]=y=>s.unref(h).reorderComponent(1)),class:"h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0"},b[6]||(b[6]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," move_down ",-1)]))])],64))}};function Ee(r){this.content=r}Ee.prototype={constructor:Ee,find:function(r){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===r)return e;return-1},get:function(r){var e=this.find(r);return e==-1?void 0:this.content[e+1]},update:function(r,e,t){var o=t&&t!=r?this.remove(t):this,n=o.find(r),i=o.content.slice();return n==-1?i.push(t||r,e):(i[n+1]=e,t&&(i[n]=t)),new Ee(i)},remove:function(r){var e=this.find(r);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new Ee(t)},addToStart:function(r,e){return new Ee([r,e].concat(this.remove(r).content))},addToEnd:function(r,e){var t=this.remove(r).content.slice();return t.push(r,e),new Ee(t)},addBefore:function(r,e,t){var o=this.remove(e),n=o.content.slice(),i=o.find(r);return n.splice(i==-1?n.length:i,0,e,t),new Ee(n)},forEach:function(r){for(var e=0;e<this.content.length;e+=2)r(this.content[e],this.content[e+1])},prepend:function(r){return r=Ee.from(r),r.size?new Ee(r.content.concat(this.subtract(r).content)):this},append:function(r){return r=Ee.from(r),r.size?new Ee(this.subtract(r).content.concat(r.content)):this},subtract:function(r){var e=this;r=Ee.from(r);for(var t=0;t<r.content.length;t+=2)e=e.remove(r.content[t]);return e},toObject:function(){var r={};return this.forEach(function(e,t){r[e]=t}),r},get size(){return this.content.length>>1}},Ee.from=function(r){if(r instanceof Ee)return r;var e=[];if(r)for(var t in r)e.push(t,r[t]);return new Ee(e)};function cc(r,e,t){for(let o=0;;o++){if(o==r.childCount||o==e.childCount)return r.childCount==e.childCount?null:t;let n=r.child(o),i=e.child(o);if(n==i){t+=n.nodeSize;continue}if(!n.sameMarkup(i))return t;if(n.isText&&n.text!=i.text){for(let a=0;n.text[a]==i.text[a];a++)t++;return t}if(n.content.size||i.content.size){let a=cc(n.content,i.content,t+1);if(a!=null)return a}t+=n.nodeSize}}function dc(r,e,t,o){for(let n=r.childCount,i=e.childCount;;){if(n==0||i==0)return n==i?null:{a:t,b:o};let a=r.child(--n),l=e.child(--i),c=a.nodeSize;if(a==l){t-=c,o-=c;continue}if(!a.sameMarkup(l))return{a:t,b:o};if(a.isText&&a.text!=l.text){let d=0,u=Math.min(a.text.length,l.text.length);for(;d<u&&a.text[a.text.length-d-1]==l.text[l.text.length-d-1];)d++,t--,o--;return{a:t,b:o}}if(a.content.size||l.content.size){let d=dc(a.content,l.content,t-1,o-1);if(d)return d}t-=c,o-=c}}class M{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let o=0;o<e.length;o++)this.size+=e[o].nodeSize}nodesBetween(e,t,o,n=0,i){for(let a=0,l=0;l<t;a++){let c=this.content[a],d=l+c.nodeSize;if(d>e&&o(c,n+l,i||null,a)!==!1&&c.content.size){let u=l+1;c.nodesBetween(Math.max(0,e-u),Math.min(c.content.size,t-u),o,n+u)}l=d}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,o,n){let i="",a=!0;return this.nodesBetween(e,t,(l,c)=>{let d=l.isText?l.text.slice(Math.max(e,c)-c,t-c):l.isLeaf?n?typeof n=="function"?n(l):n:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&d||l.isTextblock)&&o&&(a?a=!1:i+=o),i+=d},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,o=e.firstChild,n=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(o)&&(n[n.length-1]=t.withText(t.text+o.text),i=1);i<e.content.length;i++)n.push(e.content[i]);return new M(n,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let o=[],n=0;if(t>e)for(let i=0,a=0;a<t;i++){let l=this.content[i],c=a+l.nodeSize;c>e&&((a<e||c>t)&&(l.isText?l=l.cut(Math.max(0,e-a),Math.min(l.text.length,t-a)):l=l.cut(Math.max(0,e-a-1),Math.min(l.content.size,t-a-1))),o.push(l),n+=l.nodeSize),a=c}return new M(o,n)}cutByIndex(e,t){return e==t?M.empty:e==0&&t==this.content.length?this:new M(this.content.slice(e,t))}replaceChild(e,t){let o=this.content[e];if(o==t)return this;let n=this.content.slice(),i=this.size+t.nodeSize-o.nodeSize;return n[e]=t,new M(n,i)}addToStart(e){return new M([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new M(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,o=0;t<this.content.length;t++){let n=this.content[t];e(n,o,t),o+=n.nodeSize}}findDiffStart(e,t=0){return cc(this,e,t)}findDiffEnd(e,t=this.size,o=e.size){return dc(this,e,t,o)}findIndex(e,t=-1){if(e==0)return Vn(0,e);if(e==this.size)return Vn(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let o=0,n=0;;o++){let i=this.child(o),a=n+i.nodeSize;if(a>=e)return a==e||t>0?Vn(o+1,a):Vn(o,n);n=a}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return M.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new M(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return M.empty;let t,o=0;for(let n=0;n<e.length;n++){let i=e[n];o+=i.nodeSize,n&&i.isText&&e[n-1].sameMarkup(i)?(t||(t=e.slice(0,n)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new M(t||e,o)}static from(e){if(!e)return M.empty;if(e instanceof M)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new M([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}M.empty=new M([],0);const Ba={index:0,offset:0};function Vn(r,e){return Ba.index=r,Ba.offset=e,Ba}function Pn(r,e){if(r===e)return!0;if(!(r&&typeof r=="object")||!(e&&typeof e=="object"))return!1;let t=Array.isArray(r);if(Array.isArray(e)!=t)return!1;if(t){if(r.length!=e.length)return!1;for(let o=0;o<r.length;o++)if(!Pn(r[o],e[o]))return!1}else{for(let o in r)if(!(o in e)||!Pn(r[o],e[o]))return!1;for(let o in e)if(!(o in r))return!1}return!0}let te=class Il{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,o=!1;for(let n=0;n<e.length;n++){let i=e[n];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,n));else{if(i.type.excludes(this.type))return e;!o&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,n)),t.push(this),o=!0),t&&t.push(i)}}return t||(t=e.slice()),o||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Pn(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let o=e.marks[t.type];if(!o)throw new RangeError(`There is no mark type ${t.type} in this schema`);let n=o.create(t.attrs);return o.checkAttrs(n.attrs),n}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let o=0;o<e.length;o++)if(!e[o].eq(t[o]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Il.none;if(e instanceof Il)return[e];let t=e.slice();return t.sort((o,n)=>o.type.rank-n.type.rank),t}};te.none=[];class An extends Error{}class A{constructor(e,t,o){this.content=e,this.openStart=t,this.openEnd=o}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let o=pc(this.content,e+this.openStart,t);return o&&new A(o,this.openStart,this.openEnd)}removeBetween(e,t){return new A(uc(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return A.empty;let o=t.openStart||0,n=t.openEnd||0;if(typeof o!="number"||typeof n!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new A(M.fromJSON(e,t.content),o,n)}static maxOpen(e,t=!0){let o=0,n=0;for(let i=e.firstChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.firstChild)o++;for(let i=e.lastChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.lastChild)n++;return new A(e,o,n)}}A.empty=new A(M.empty,0,0);function uc(r,e,t){let{index:o,offset:n}=r.findIndex(e),i=r.maybeChild(o),{index:a,offset:l}=r.findIndex(t);if(n==e||i.isText){if(l!=t&&!r.child(a).isText)throw new RangeError("Removing non-flat range");return r.cut(0,e).append(r.cut(t))}if(o!=a)throw new RangeError("Removing non-flat range");return r.replaceChild(o,i.copy(uc(i.content,e-n-1,t-n-1)))}function pc(r,e,t,o){let{index:n,offset:i}=r.findIndex(e),a=r.maybeChild(n);if(i==e||a.isText)return r.cut(0,e).append(t).append(r.cut(e));let l=pc(a.content,e-i-1,t);return l&&r.replaceChild(n,a.copy(l))}function rf(r,e,t){if(t.openStart>r.depth)throw new An("Inserted content deeper than insertion position");if(r.depth-t.openStart!=e.depth-t.openEnd)throw new An("Inconsistent open depths");return mc(r,e,t,0)}function mc(r,e,t,o){let n=r.index(o),i=r.node(o);if(n==e.index(o)&&o<r.depth-t.openStart){let a=mc(r,e,t,o+1);return i.copy(i.content.replaceChild(n,a))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&r.depth==o&&e.depth==o){let a=r.parent,l=a.content;return pr(a,l.cut(0,r.parentOffset).append(t.content).append(l.cut(e.parentOffset)))}else{let{start:a,end:l}=of(t,r);return pr(i,fc(r,a,l,e,o))}else return pr(i,Dn(r,e,o))}function hc(r,e){if(!e.type.compatibleContent(r.type))throw new An("Cannot join "+e.type.name+" onto "+r.type.name)}function Ma(r,e,t){let o=r.node(t);return hc(o,e.node(t)),o}function ur(r,e){let t=e.length-1;t>=0&&r.isText&&r.sameMarkup(e[t])?e[t]=r.withText(e[t].text+r.text):e.push(r)}function vo(r,e,t,o){let n=(e||r).node(t),i=0,a=e?e.index(t):n.childCount;r&&(i=r.index(t),r.depth>t?i++:r.textOffset&&(ur(r.nodeAfter,o),i++));for(let l=i;l<a;l++)ur(n.child(l),o);e&&e.depth==t&&e.textOffset&&ur(e.nodeBefore,o)}function pr(r,e){return r.type.checkContent(e),r.copy(e)}function fc(r,e,t,o,n){let i=r.depth>n&&Ma(r,e,n+1),a=o.depth>n&&Ma(t,o,n+1),l=[];return vo(null,r,n,l),i&&a&&e.index(n)==t.index(n)?(hc(i,a),ur(pr(i,fc(r,e,t,o,n+1)),l)):(i&&ur(pr(i,Dn(r,e,n+1)),l),vo(e,t,n,l),a&&ur(pr(a,Dn(t,o,n+1)),l)),vo(o,null,n,l),new M(l)}function Dn(r,e,t){let o=[];if(vo(null,r,t,o),r.depth>t){let n=Ma(r,e,t+1);ur(pr(n,Dn(r,e,t+1)),o)}return vo(e,null,t,o),new M(o)}function of(r,e){let t=e.depth-r.openStart,n=e.node(t).copy(r.content);for(let i=t-1;i>=0;i--)n=e.node(i).copy(M.from(n));return{start:n.resolveNoCache(r.openStart+t),end:n.resolveNoCache(n.content.size-r.openEnd-t)}}class xo{constructor(e,t,o){this.pos=e,this.path=t,this.parentOffset=o,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let o=this.pos-this.path[this.path.length-1],n=e.child(t);return o?e.child(t).cut(o):n}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let o=this.path[t*3],n=t==0?0:this.path[t*3-1]+1;for(let i=0;i<e;i++)n+=o.child(i).nodeSize;return n}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return te.none;if(this.textOffset)return e.child(t).marks;let o=e.maybeChild(t-1),n=e.maybeChild(t);if(!o){let l=o;o=n,n=l}let i=o.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive===!1&&(!n||!i[a].isInSet(n.marks))&&(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let o=t.marks,n=e.parent.maybeChild(e.index());for(var i=0;i<o.length;i++)o[i].type.spec.inclusive===!1&&(!n||!o[i].isInSet(n.marks))&&(o=o[i--].removeFromSet(o));return o}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let o=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);o>=0;o--)if(e.pos<=this.end(o)&&(!t||t(this.node(o))))return new In(this,e,o);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let o=[],n=0,i=t;for(let a=e;;){let{index:l,offset:c}=a.content.findIndex(i),d=i-c;if(o.push(a,l,n+c),!d||(a=a.child(l),a.isText))break;i=d-1,n+=c+1}return new xo(t,o,i)}static resolveCached(e,t){let o=gc.get(e);if(o)for(let i=0;i<o.elts.length;i++){let a=o.elts[i];if(a.pos==t)return a}else gc.set(e,o=new nf);let n=o.elts[o.i]=xo.resolve(e,t);return o.i=(o.i+1)%af,n}}class nf{constructor(){this.elts=[],this.i=0}}const af=12,gc=new WeakMap;class In{constructor(e,t,o){this.$from=e,this.$to=t,this.depth=o}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 sf=Object.create(null);let Ht=class Ll{constructor(e,t,o,n=te.none){this.type=e,this.attrs=t,this.marks=n,this.content=o||M.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,o,n=0){this.content.nodesBetween(e,t,o,n,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,o,n){return this.content.textBetween(e,t,o,n)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,o){return this.type==e&&Pn(this.attrs,t||e.defaultAttrs||sf)&&te.sameSet(this.marks,o||te.none)}copy(e=null){return e==this.content?this:new Ll(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Ll(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,o=!1){if(e==t)return A.empty;let n=this.resolve(e),i=this.resolve(t),a=o?0:n.sharedDepth(t),l=n.start(a),d=n.node(a).content.cut(n.pos-l,i.pos-l);return new A(d,n.depth-a,i.depth-a)}replace(e,t,o){return rf(this.resolve(e),this.resolve(t),o)}nodeAt(e){for(let t=this;;){let{index:o,offset:n}=t.content.findIndex(e);if(t=t.maybeChild(o),!t)return null;if(n==e||t.isText)return t;e-=n+1}}childAfter(e){let{index:t,offset:o}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:o}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:o}=this.content.findIndex(e);if(o<e)return{node:this.content.child(t),index:t,offset:o};let n=this.content.child(t-1);return{node:n,index:t-1,offset:o-n.nodeSize}}resolve(e){return xo.resolveCached(this,e)}resolveNoCache(e){return xo.resolve(this,e)}rangeHasMark(e,t,o){let n=!1;return t>e&&this.nodesBetween(e,t,i=>(o.isInSet(i.marks)&&(n=!0),!n)),n}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),bc(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,o=M.empty,n=0,i=o.childCount){let a=this.contentMatchAt(e).matchFragment(o,n,i),l=a&&a.matchFragment(this.content,t);if(!l||!l.validEnd)return!1;for(let c=n;c<i;c++)if(!this.type.allowsMarks(o.child(c).marks))return!1;return!0}canReplaceWith(e,t,o,n){if(n&&!this.type.allowsMarks(n))return!1;let i=this.contentMatchAt(e).matchType(o),a=i&&i.matchFragment(this.content,t);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=te.none;for(let t=0;t<this.marks.length;t++){let o=this.marks[t];o.type.checkAttrs(o.attrs),e=o.addToSet(e)}if(!te.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let o;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");o=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,o)}let n=M.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,n,o);return i.type.checkAttrs(i.attrs),i}};Ht.prototype.text=void 0;class Ln extends Ht{constructor(e,t,o,n){if(super(e,t,null,n),!o)throw new RangeError("Empty text nodes are not allowed");this.text=o}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):bc(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Ln(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Ln(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function bc(r,e){for(let t=r.length-1;t>=0;t--)e=r[t].type.name+"("+e+")";return e}class mr{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let o=new lf(e,t);if(o.next==null)return mr.empty;let n=wc(o);o.next&&o.err("Unexpected trailing text");let i=ff(hf(n));return gf(i,o),i}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,o=e.childCount){let n=this;for(let i=t;n&&i<o;i++)n=n.matchType(e.child(i).type);return n}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let o=0;o<e.next.length;o++)if(this.next[t].type==e.next[o].type)return!0;return!1}fillBefore(e,t=!1,o=0){let n=[this];function i(a,l){let c=a.matchFragment(e,o);if(c&&(!t||c.validEnd))return M.from(l.map(d=>d.createAndFill()));for(let d=0;d<a.next.length;d++){let{type:u,next:p}=a.next[d];if(!(u.isText||u.hasRequiredAttrs())&&n.indexOf(p)==-1){n.push(p);let m=i(p,l.concat(u));if(m)return m}}return null}return i(this,[])}findWrapping(e){for(let o=0;o<this.wrapCache.length;o+=2)if(this.wrapCache[o]==e)return this.wrapCache[o+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),o=[{match:this,type:null,via:null}];for(;o.length;){let n=o.shift(),i=n.match;if(i.matchType(e)){let a=[];for(let l=n;l.type;l=l.via)a.push(l.type);return a.reverse()}for(let a=0;a<i.next.length;a++){let{type:l,next:c}=i.next[a];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in t)&&(!n.type||c.validEnd)&&(o.push({match:l.contentMatch,type:l,via:n}),t[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(o){e.push(o);for(let n=0;n<o.next.length;n++)e.indexOf(o.next[n].next)==-1&&t(o.next[n].next)}return t(this),e.map((o,n)=>{let i=n+(o.validEnd?"*":" ")+" ";for(let a=0;a<o.next.length;a++)i+=(a?", ":"")+o.next[a].type.name+"->"+e.indexOf(o.next[a].next);return i}).join(`
|
|
12
|
+
`)}}mr.empty=new mr(!0);class lf{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function wc(r){let e=[];do e.push(cf(r));while(r.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function cf(r){let e=[];do e.push(df(r));while(r.next&&r.next!=")"&&r.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function df(r){let e=mf(r);for(;;)if(r.eat("+"))e={type:"plus",expr:e};else if(r.eat("*"))e={type:"star",expr:e};else if(r.eat("?"))e={type:"opt",expr:e};else if(r.eat("{"))e=uf(r,e);else break;return e}function yc(r){/\D/.test(r.next)&&r.err("Expected number, got '"+r.next+"'");let e=Number(r.next);return r.pos++,e}function uf(r,e){let t=yc(r),o=t;return r.eat(",")&&(r.next!="}"?o=yc(r):o=-1),r.eat("}")||r.err("Unclosed braced range"),{type:"range",min:t,max:o,expr:e}}function pf(r,e){let t=r.nodeTypes,o=t[e];if(o)return[o];let n=[];for(let i in t){let a=t[i];a.isInGroup(e)&&n.push(a)}return n.length==0&&r.err("No node type or group '"+e+"' found"),n}function mf(r){if(r.eat("(")){let e=wc(r);return r.eat(")")||r.err("Missing closing paren"),e}else if(/\W/.test(r.next))r.err("Unexpected token '"+r.next+"'");else{let e=pf(r,r.next).map(t=>(r.inline==null?r.inline=t.isInline:r.inline!=t.isInline&&r.err("Mixing inline and block content"),{type:"name",value:t}));return r.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function hf(r){let e=[[]];return n(i(r,0),t()),e;function t(){return e.push([])-1}function o(a,l,c){let d={term:c,to:l};return e[a].push(d),d}function n(a,l){a.forEach(c=>c.to=l)}function i(a,l){if(a.type=="choice")return a.exprs.reduce((c,d)=>c.concat(i(d,l)),[]);if(a.type=="seq")for(let c=0;;c++){let d=i(a.exprs[c],l);if(c==a.exprs.length-1)return d;n(d,l=t())}else if(a.type=="star"){let c=t();return o(l,c),n(i(a.expr,c),c),[o(c)]}else if(a.type=="plus"){let c=t();return n(i(a.expr,l),c),n(i(a.expr,c),c),[o(c)]}else{if(a.type=="opt")return[o(l)].concat(i(a.expr,l));if(a.type=="range"){let c=l;for(let d=0;d<a.min;d++){let u=t();n(i(a.expr,c),u),c=u}if(a.max==-1)n(i(a.expr,c),c);else for(let d=a.min;d<a.max;d++){let u=t();o(c,u),n(i(a.expr,c),u),c=u}return[o(c)]}else{if(a.type=="name")return[o(l,void 0,a.value)];throw new Error("Unknown expr type")}}}}function vc(r,e){return e-r}function xc(r,e){let t=[];return o(e),t.sort(vc);function o(n){let i=r[n];if(i.length==1&&!i[0].term)return o(i[0].to);t.push(n);for(let a=0;a<i.length;a++){let{term:l,to:c}=i[a];!l&&t.indexOf(c)==-1&&o(c)}}}function ff(r){let e=Object.create(null);return t(xc(r,0));function t(o){let n=[];o.forEach(a=>{r[a].forEach(({term:l,to:c})=>{if(!l)return;let d;for(let u=0;u<n.length;u++)n[u][0]==l&&(d=n[u][1]);xc(r,c).forEach(u=>{d||n.push([l,d=[]]),d.indexOf(u)==-1&&d.push(u)})})});let i=e[o.join(",")]=new mr(o.indexOf(r.length-1)>-1);for(let a=0;a<n.length;a++){let l=n[a][1].sort(vc);i.next.push({type:n[a][0],next:e[l.join(",")]||t(l)})}return i}}function gf(r,e){for(let t=0,o=[r];t<o.length;t++){let n=o[t],i=!n.validEnd,a=[];for(let l=0;l<n.next.length;l++){let{type:c,next:d}=n.next[l];a.push(c.name),i&&!(c.isText||c.hasRequiredAttrs())&&(i=!1),o.indexOf(d)==-1&&o.push(d)}i&&e.err("Only non-generatable nodes ("+a.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function kc(r){let e=Object.create(null);for(let t in r){let o=r[t];if(!o.hasDefault)return null;e[t]=o.default}return e}function Ec(r,e){let t=Object.create(null);for(let o in r){let n=e&&e[o];if(n===void 0){let i=r[o];if(i.hasDefault)n=i.default;else throw new RangeError("No value supplied for attribute "+o)}t[o]=n}return t}function Sc(r,e,t,o){for(let n in e)if(!(n in r))throw new RangeError(`Unsupported attribute ${n} for ${t} of type ${n}`);for(let n in r){let i=r[n];i.validate&&i.validate(e[n])}}function Cc(r,e){let t=Object.create(null);if(e)for(let o in e)t[o]=new wf(r,o,e[o]);return t}let Nc=class Wm{constructor(e,t,o){this.name=e,this.schema=t,this.spec=o,this.markSet=null,this.groups=o.group?o.group.split(" "):[],this.attrs=Cc(e,o.attrs),this.defaultAttrs=kc(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(o.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==mr.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:Ec(this.attrs,e)}create(e=null,t,o){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Ht(this,this.computeAttrs(e),M.from(t),te.setFrom(o))}createChecked(e=null,t,o){return t=M.from(t),this.checkContent(t),new Ht(this,this.computeAttrs(e),t,te.setFrom(o))}createAndFill(e=null,t,o){if(e=this.computeAttrs(e),t=M.from(t),t.size){let a=this.contentMatch.fillBefore(t);if(!a)return null;t=a.append(t)}let n=this.contentMatch.matchFragment(t),i=n&&n.fillBefore(M.empty,!0);return i?new Ht(this,e,t.append(i),te.setFrom(o)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let o=0;o<e.childCount;o++)if(!this.allowsMarks(e.child(o).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){Sc(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let o=0;o<e.length;o++)this.allowsMarkType(e[o].type)?t&&t.push(e[o]):t||(t=e.slice(0,o));return t?t.length?t:te.none:e}static compile(e,t){let o=Object.create(null);e.forEach((i,a)=>o[i]=new Wm(i,t,a));let n=t.spec.topNode||"doc";if(!o[n])throw new RangeError("Schema is missing its top node type ('"+n+"')");if(!o.text)throw new RangeError("Every schema needs a 'text' type");for(let i in o.text.attrs)throw new RangeError("The text node type should not have attributes");return o}};function bf(r,e,t){let o=t.split("|");return n=>{let i=n===null?"null":typeof n;if(o.indexOf(i)<0)throw new RangeError(`Expected value of type ${o} for attribute ${e} on type ${r}, got ${i}`)}}class wf{constructor(e,t,o){this.hasDefault=Object.prototype.hasOwnProperty.call(o,"default"),this.default=o.default,this.validate=typeof o.validate=="string"?bf(e,t,o.validate):o.validate}get isRequired(){return!this.hasDefault}}class Rn{constructor(e,t,o,n){this.name=e,this.rank=t,this.schema=o,this.spec=n,this.attrs=Cc(e,n.attrs),this.excluded=null;let i=kc(this.attrs);this.instance=i?new te(this,i):null}create(e=null){return!e&&this.instance?this.instance:new te(this,Ec(this.attrs,e))}static compile(e,t){let o=Object.create(null),n=0;return e.forEach((i,a)=>o[i]=new Rn(i,n++,t,a)),o}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){Sc(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class Bc{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=Ee.from(e.nodes),t.marks=Ee.from(e.marks||{}),this.nodes=Nc.compile(this.spec.nodes,this),this.marks=Rn.compile(this.spec.marks,this);let o=Object.create(null);for(let n in this.nodes){if(n in this.marks)throw new RangeError(n+" can not be both a node and a mark");let i=this.nodes[n],a=i.spec.content||"",l=i.spec.marks;if(i.contentMatch=o[a]||(o[a]=mr.parse(a,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=l=="_"?null:l?Mc(this,l.split(" ")):l==""||!i.inlineContent?[]:null}for(let n in this.marks){let i=this.marks[n],a=i.spec.excludes;i.excluded=a==null?[i]:a==""?[]:Mc(this,a.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,o,n){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Nc){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(t,o,n)}text(e,t){let o=this.nodes.text;return new Ln(o,o.defaultAttrs,e,te.setFrom(t))}mark(e,t){return typeof e=="string"&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return Ht.fromJSON(this,e)}markFromJSON(e){return te.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function Mc(r,e){let t=[];for(let o=0;o<e.length;o++){let n=e[o],i=r.marks[n],a=i;if(i)t.push(i);else for(let l in r.marks){let c=r.marks[l];(n=="_"||c.spec.group&&c.spec.group.split(" ").indexOf(n)>-1)&&t.push(a=c)}if(!a)throw new SyntaxError("Unknown mark type: '"+e[o]+"'")}return t}function yf(r){return r.tag!=null}function vf(r){return r.style!=null}let ko=class Rl{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let o=this.matchedStyles=[];t.forEach(n=>{if(yf(n))this.tags.push(n);else if(vf(n)){let i=/[^=]*/.exec(n.style)[0];o.indexOf(i)<0&&o.push(i),this.styles.push(n)}}),this.normalizeLists=!this.tags.some(n=>{if(!/^(ul|ol)\b/.test(n.tag)||!n.node)return!1;let i=e.nodes[n.node];return i.contentMatch.matchType(i)})}parse(e,t={}){let o=new Pc(this,t,!1);return o.addAll(e,te.none,t.from,t.to),o.finish()}parseSlice(e,t={}){let o=new Pc(this,t,!0);return o.addAll(e,te.none,t.from,t.to),A.maxOpen(o.finish())}matchTag(e,t,o){for(let n=o?this.tags.indexOf(o)+1:0;n<this.tags.length;n++){let i=this.tags[n];if(Ef(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||t.matchesContext(i.context))){if(i.getAttrs){let a=i.getAttrs(e);if(a===!1)continue;i.attrs=a||void 0}return i}}}matchStyle(e,t,o,n){for(let i=n?this.styles.indexOf(n)+1:0;i<this.styles.length;i++){let a=this.styles[i],l=a.style;if(!(l.indexOf(e)!=0||a.context&&!o.matchesContext(a.context)||l.length>e.length&&(l.charCodeAt(e.length)!=61||l.slice(e.length+1)!=t))){if(a.getAttrs){let c=a.getAttrs(t);if(c===!1)continue;a.attrs=c||void 0}return a}}}static schemaRules(e){let t=[];function o(n){let i=n.priority==null?50:n.priority,a=0;for(;a<t.length;a++){let l=t[a];if((l.priority==null?50:l.priority)<i)break}t.splice(a,0,n)}for(let n in e.marks){let i=e.marks[n].spec.parseDOM;i&&i.forEach(a=>{o(a=Ac(a)),a.mark||a.ignore||a.clearMark||(a.mark=n)})}for(let n in e.nodes){let i=e.nodes[n].spec.parseDOM;i&&i.forEach(a=>{o(a=Ac(a)),a.node||a.ignore||a.mark||(a.node=n)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Rl(e,Rl.schemaRules(e)))}};const Tc={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},xf={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Oc={ol:!0,ul:!0},Eo=1,Ta=2,So=4;function Vc(r,e,t){return e!=null?(e?Eo:0)|(e==="full"?Ta:0):r&&r.whitespace=="pre"?Eo|Ta:t&~So}class zn{constructor(e,t,o,n,i,a){this.type=e,this.attrs=t,this.marks=o,this.solid=n,this.options=a,this.content=[],this.activeMarks=te.none,this.match=i||(a&So?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(M.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let o=this.type.contentMatch,n;return(n=o.findWrapping(e.type))?(this.match=o,n):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Eo)){let o=this.content[this.content.length-1],n;if(o&&o.isText&&(n=/[ \t\r\n\u000c]+$/.exec(o.text))){let i=o;o.text.length==n[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-n[0].length))}}let t=M.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(M.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Tc.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Pc{constructor(e,t,o){this.parser=e,this.options=t,this.isOpen=o,this.open=0,this.localPreserveWS=!1;let n=t.topNode,i,a=Vc(null,t.preserveWhitespace,0)|(o?So:0);n?i=new zn(n.type,n.attrs,te.none,!0,t.topMatch||n.type.contentMatch,a):o?i=new zn(null,null,te.none,!0,null,a):i=new zn(e.schema.topNodeType,null,te.none,!0,null,a),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){e.nodeType==3?this.addTextNode(e,t):e.nodeType==1&&this.addElement(e,t)}addTextNode(e,t){let o=e.nodeValue,n=this.top,i=n.options&Ta?"full":this.localPreserveWS||(n.options&Eo)>0;if(i==="full"||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(o)){if(i)i!=="full"?o=o.replace(/\r?\n|\r/g," "):o=o.replace(/\r\n?/g,`
|
|
13
|
+
`);else if(o=o.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(o)&&this.open==this.nodes.length-1){let a=n.content[n.content.length-1],l=e.previousSibling;(!a||l&&l.nodeName=="BR"||a.isText&&/[ \t\r\n\u000c]$/.test(a.text))&&(o=o.slice(1))}o&&this.insertNode(this.parser.schema.text(o),t,!/\S/.test(o)),this.findInText(e)}else this.findInside(e)}addElement(e,t,o){let n=this.localPreserveWS,i=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let a=e.nodeName.toLowerCase(),l;Oc.hasOwnProperty(a)&&this.parser.normalizeLists&&kf(e);let c=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(l=this.parser.matchTag(e,this,o));e:if(c?c.ignore:xf.hasOwnProperty(a))this.findInside(e),this.ignoreFallback(e,t);else if(!c||c.skip||c.closeParent){c&&c.closeParent?this.open=Math.max(0,this.open-1):c&&c.skip.nodeType&&(e=c.skip);let d,u=this.needsBlock;if(Tc.hasOwnProperty(a))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),d=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break e}let p=c&&c.skip?t:this.readStyles(e,t);p&&this.addAll(e,p),d&&this.sync(i),this.needsBlock=u}else{let d=this.readStyles(e,t);d&&this.addElementByRule(e,c,d,c.consuming===!1?l:void 0)}this.localPreserveWS=n}leafFallback(e,t){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
|
|
14
|
+
`),t)}ignoreFallback(e,t){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),t,!0)}readStyles(e,t){let o=e.style;if(o&&o.length)for(let n=0;n<this.parser.matchedStyles.length;n++){let i=this.parser.matchedStyles[n],a=o.getPropertyValue(i);if(a)for(let l=void 0;;){let c=this.parser.matchStyle(i,a,this,l);if(!c)break;if(c.ignore)return null;if(c.clearMark?t=t.filter(d=>!c.clearMark(d)):t=t.concat(this.parser.schema.marks[c.mark].create(c.attrs)),c.consuming===!1)l=c;else break}}return t}addElementByRule(e,t,o,n){let i,a;if(t.node)if(a=this.parser.schema.nodes[t.node],a.isLeaf)this.insertNode(a.create(t.attrs),o,e.nodeName=="BR")||this.leafFallback(e,o);else{let c=this.enter(a,t.attrs||null,o,t.preserveWhitespace);c&&(i=!0,o=c)}else{let c=this.parser.schema.marks[t.mark];o=o.concat(c.create(t.attrs))}let l=this.top;if(a&&a.isLeaf)this.findInside(e);else if(n)this.addElement(e,o,n);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(c=>this.insertNode(c,o,!1));else{let c=e;typeof t.contentElement=="string"?c=e.querySelector(t.contentElement):typeof t.contentElement=="function"?c=t.contentElement(e):t.contentElement&&(c=t.contentElement),this.findAround(e,c,!0),this.addAll(c,o),this.findAround(e,c,!1)}i&&this.sync(l)&&this.open--}addAll(e,t,o,n){let i=o||0;for(let a=o?e.childNodes[o]:e.firstChild,l=n==null?null:e.childNodes[n];a!=l;a=a.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(a,t);this.findAtPoint(e,i)}findPlace(e,t,o){let n,i;for(let a=this.open,l=0;a>=0;a--){let c=this.nodes[a],d=c.findWrapping(e);if(d&&(!n||n.length>d.length+l)&&(n=d,i=c,!d.length))break;if(c.solid){if(o)break;l+=2}}if(!n)return null;this.sync(i);for(let a=0;a<n.length;a++)t=this.enterInner(n[a],null,t,!1);return t}insertNode(e,t,o){if(e.isInline&&this.needsBlock&&!this.top.type){let i=this.textblockFromContext();i&&(t=this.enterInner(i,null,t))}let n=this.findPlace(e,t,o);if(n){this.closeExtra();let i=this.top;i.match&&(i.match=i.match.matchType(e.type));let a=te.none;for(let l of n.concat(e.marks))(i.type?i.type.allowsMarkType(l.type):Dc(l.type,e.type))&&(a=l.addToSet(a));return i.content.push(e.mark(a)),!0}return!1}enter(e,t,o,n){let i=this.findPlace(e.create(t),o,!1);return i&&(i=this.enterInner(e,t,o,!0,n)),i}enterInner(e,t,o,n=!1,i){this.closeExtra();let a=this.top;a.match=a.match&&a.match.matchType(e);let l=Vc(e,i,a.options);a.options&So&&a.content.length==0&&(l|=So);let c=te.none;return o=o.filter(d=>(a.type?a.type.allowsMarkType(d.type):Dc(d.type,e))?(c=d.addToSet(c),!1):!0),this.nodes.push(new zn(e,t,c,n,null,l)),this.open++,o}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--){if(this.nodes[t]==e)return this.open=t,!0;this.localPreserveWS&&(this.nodes[t].options|=Eo)}return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let o=this.nodes[t].content;for(let n=o.length-1;n>=0;n--)e+=o[n].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let o=0;o<this.find.length;o++)this.find[o].node==e&&this.find[o].offset==t&&(this.find[o].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&e.nodeType==1&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,o){if(e!=t&&this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&t.compareDocumentPosition(this.find[n].node)&(o?2:4)&&(this.find[n].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),o=this.options.context,n=!this.isOpen&&(!o||o.parent.type==this.nodes[0].type),i=-(o?o.depth+1:0)+(n?0:1),a=(l,c)=>{for(;l>=0;l--){let d=t[l];if(d==""){if(l==t.length-1||l==0)continue;for(;c>=i;c--)if(a(l-1,c))return!0;return!1}else{let u=c>0||c==0&&n?this.nodes[c].type:o&&c>=i?o.node(c-i).type:null;if(!u||u.name!=d&&!u.isInGroup(d))return!1;c--}}return!0};return a(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let o=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(o&&o.isTextblock&&o.defaultAttrs)return o}for(let t in this.parser.schema.nodes){let o=this.parser.schema.nodes[t];if(o.isTextblock&&o.defaultAttrs)return o}}}function kf(r){for(let e=r.firstChild,t=null;e;e=e.nextSibling){let o=e.nodeType==1?e.nodeName.toLowerCase():null;o&&Oc.hasOwnProperty(o)&&t?(t.appendChild(e),e=t):o=="li"?t=e:o&&(t=null)}}function Ef(r,e){return(r.matches||r.msMatchesSelector||r.webkitMatchesSelector||r.mozMatchesSelector).call(r,e)}function Ac(r){let e={};for(let t in r)e[t]=r[t];return e}function Dc(r,e){let t=e.schema.nodes;for(let o in t){let n=t[o];if(!n.allowsMarkType(r))continue;let i=[],a=l=>{i.push(l);for(let c=0;c<l.edgeCount;c++){let{type:d,next:u}=l.edge(c);if(d==e||i.indexOf(u)<0&&a(u))return!0}};if(a(n.contentMatch))return!0}}class hr{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},o){o||(o=Oa(t).createDocumentFragment());let n=o,i=[];return e.forEach(a=>{if(i.length||a.marks.length){let l=0,c=0;for(;l<i.length&&c<a.marks.length;){let d=a.marks[c];if(!this.marks[d.type.name]){c++;continue}if(!d.eq(i[l][0])||d.type.spec.spanning===!1)break;l++,c++}for(;l<i.length;)n=i.pop()[1];for(;c<a.marks.length;){let d=a.marks[c++],u=this.serializeMark(d,a.isInline,t);u&&(i.push([d,n]),n.appendChild(u.dom),n=u.contentDOM||u.dom)}}n.appendChild(this.serializeNodeInner(a,t))}),o}serializeNodeInner(e,t){let{dom:o,contentDOM:n}=_n(Oa(t),this.nodes[e.type.name](e),null,e.attrs);if(n){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,n)}return o}serializeNode(e,t={}){let o=this.serializeNodeInner(e,t);for(let n=e.marks.length-1;n>=0;n--){let i=this.serializeMark(e.marks[n],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(o),o=i.dom)}return o}serializeMark(e,t,o={}){let n=this.marks[e.type.name];return n&&_n(Oa(o),n(e,t),null,e.attrs)}static renderSpec(e,t,o=null,n){return _n(e,t,o,n)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new hr(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=Ic(e.nodes);return t.text||(t.text=o=>o.text),t}static marksFromSchema(e){return Ic(e.marks)}}function Ic(r){let e={};for(let t in r){let o=r[t].spec.toDOM;o&&(e[t]=o)}return e}function Oa(r){return r.document||window.document}const Lc=new WeakMap;function Sf(r){let e=Lc.get(r);return e===void 0&&Lc.set(r,e=Cf(r)),e}function Cf(r){let e=null;function t(o){if(o&&typeof o=="object")if(Array.isArray(o))if(typeof o[0]=="string")e||(e=[]),e.push(o);else for(let n=0;n<o.length;n++)t(o[n]);else for(let n in o)t(o[n])}return t(r),e}function _n(r,e,t,o){if(typeof e=="string")return{dom:r.createTextNode(e)};if(e.nodeType!=null)return{dom:e};if(e.dom&&e.dom.nodeType!=null)return e;let n=e[0],i;if(typeof n!="string")throw new RangeError("Invalid array passed to renderSpec");if(o&&(i=Sf(o))&&i.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let a=n.indexOf(" ");a>0&&(t=n.slice(0,a),n=n.slice(a+1));let l,c=t?r.createElementNS(t,n):r.createElement(n),d=e[1],u=1;if(d&&typeof d=="object"&&d.nodeType==null&&!Array.isArray(d)){u=2;for(let p in d)if(d[p]!=null){let m=p.indexOf(" ");m>0?c.setAttributeNS(p.slice(0,m),p.slice(m+1),d[p]):c.setAttribute(p,d[p])}}for(let p=u;p<e.length;p++){let m=e[p];if(m===0){if(p<e.length-1||p>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:c,contentDOM:c}}else{let{dom:h,contentDOM:f}=_n(r,m,t,o);if(c.appendChild(h),f){if(l)throw new RangeError("Multiple content holes");l=f}}}return{dom:c,contentDOM:l}}const Rc=65535,zc=Math.pow(2,16);function Nf(r,e){return r+e*zc}function _c(r){return r&Rc}function Bf(r){return(r-(r&Rc))/zc}const Fc=1,jc=2,Fn=4,Hc=8;class Va{constructor(e,t,o){this.pos=e,this.delInfo=t,this.recover=o}get deleted(){return(this.delInfo&Hc)>0}get deletedBefore(){return(this.delInfo&(Fc|Fn))>0}get deletedAfter(){return(this.delInfo&(jc|Fn))>0}get deletedAcross(){return(this.delInfo&Fn)>0}}class We{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&We.empty)return We.empty}recover(e){let t=0,o=_c(e);if(!this.inverted)for(let n=0;n<o;n++)t+=this.ranges[n*3+2]-this.ranges[n*3+1];return this.ranges[o*3]+t+Bf(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,o){let n=0,i=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?n:0);if(c>e)break;let d=this.ranges[l+i],u=this.ranges[l+a],p=c+d;if(e<=p){let m=d?e==c?-1:e==p?1:t:t,h=c+n+(m<0?0:u);if(o)return h;let f=e==(t<0?c:p)?null:Nf(l/3,e-c),g=e==c?jc:e==p?Fc:Fn;return(t<0?e!=c:e!=p)&&(g|=Hc),new Va(h,g,f)}n+=u-d}return o?e+n:new Va(e+n,0,null)}touches(e,t){let o=0,n=_c(t),i=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?o:0);if(c>e)break;let d=this.ranges[l+i],u=c+d;if(e<=u&&l==n*3)return!0;o+=this.ranges[l+a]-d}return!1}forEach(e){let t=this.inverted?2:1,o=this.inverted?1:2;for(let n=0,i=0;n<this.ranges.length;n+=3){let a=this.ranges[n],l=a-(this.inverted?i:0),c=a+(this.inverted?0:i),d=this.ranges[n+t],u=this.ranges[n+o];e(l,l+d,c,c+u),i+=u-d}}invert(){return new We(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?We.empty:new We(e<0?[0,-e,0]:[0,0,e])}}We.empty=new We([]);class Co{constructor(e,t,o=0,n=e?e.length:0){this.mirror=t,this.from=o,this.to=n,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new Co(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),t!=null&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,o=this._maps.length;t<e._maps.length;t++){let n=e.getMirror(t);this.appendMap(e._maps[t],n!=null&&n<t?o+n:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,o=this._maps.length+e._maps.length;t>=0;t--){let n=e.getMirror(t);this.appendMap(e._maps[t].invert(),n!=null&&n>t?o-n-1:void 0)}}invert(){let e=new Co;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let o=this.from;o<this.to;o++)e=this._maps[o].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,o){let n=0;for(let i=this.from;i<this.to;i++){let a=this._maps[i],l=a.mapResult(e,t);if(l.recover!=null){let c=this.getMirror(i);if(c!=null&&c>i&&c<this.to){i=c,e=this._maps[c].recover(l.recover);continue}}n|=l.delInfo,e=l.pos}return o?e:new Va(e,n,null)}}const Pa=Object.create(null);class Te{getMap(){return We.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let o=Pa[t.stepType];if(!o)throw new RangeError(`No step type ${t.stepType} defined`);return o.fromJSON(e,t)}static jsonID(e,t){if(e in Pa)throw new RangeError("Duplicate use of step JSON ID "+e);return Pa[e]=t,t.prototype.jsonID=e,t}}class pe{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new pe(e,null)}static fail(e){return new pe(null,e)}static fromReplace(e,t,o,n){try{return pe.ok(e.replace(t,o,n))}catch(i){if(i instanceof An)return pe.fail(i.message);throw i}}}function Aa(r,e,t){let o=[];for(let n=0;n<r.childCount;n++){let i=r.child(n);i.content.size&&(i=i.copy(Aa(i.content,e,i))),i.isInline&&(i=e(i,t,n)),o.push(i)}return M.fromArray(o)}class Wt extends Te{constructor(e,t,o){super(),this.from=e,this.to=t,this.mark=o}apply(e){let t=e.slice(this.from,this.to),o=e.resolve(this.from),n=o.node(o.sharedDepth(this.to)),i=new A(Aa(t.content,(a,l)=>!a.isAtom||!l.type.allowsMarkType(this.mark.type)?a:a.mark(this.mark.addToSet(a.marks)),n),t.openStart,t.openEnd);return pe.fromReplace(e,this.from,this.to,i)}invert(){return new ht(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),o=e.mapResult(this.to,-1);return t.deleted&&o.deleted||t.pos>=o.pos?null:new Wt(t.pos,o.pos,this.mark)}merge(e){return e instanceof Wt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Wt(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Wt(t.from,t.to,e.markFromJSON(t.mark))}}Te.jsonID("addMark",Wt);class ht extends Te{constructor(e,t,o){super(),this.from=e,this.to=t,this.mark=o}apply(e){let t=e.slice(this.from,this.to),o=new A(Aa(t.content,n=>n.mark(this.mark.removeFromSet(n.marks)),e),t.openStart,t.openEnd);return pe.fromReplace(e,this.from,this.to,o)}invert(){return new Wt(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),o=e.mapResult(this.to,-1);return t.deleted&&o.deleted||t.pos>=o.pos?null:new ht(t.pos,o.pos,this.mark)}merge(e){return e instanceof ht&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new ht(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new ht(t.from,t.to,e.markFromJSON(t.mark))}}Te.jsonID("removeMark",ht);class qt extends Te{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return pe.fail("No node at mark step's position");let o=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return pe.fromReplace(e,this.pos,this.pos+1,new A(M.from(o),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let o=this.mark.addToSet(t.marks);if(o.length==t.marks.length){for(let n=0;n<t.marks.length;n++)if(!t.marks[n].isInSet(o))return new qt(this.pos,t.marks[n]);return new qt(this.pos,this.mark)}}return new fr(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new qt(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new qt(t.pos,e.markFromJSON(t.mark))}}Te.jsonID("addNodeMark",qt);class fr extends Te{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return pe.fail("No node at mark step's position");let o=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return pe.fromReplace(e,this.pos,this.pos+1,new A(M.from(o),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new qt(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new fr(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new fr(t.pos,e.markFromJSON(t.mark))}}Te.jsonID("removeNodeMark",fr);class be extends Te{constructor(e,t,o,n=!1){super(),this.from=e,this.to=t,this.slice=o,this.structure=n}apply(e){return this.structure&&Da(e,this.from,this.to)?pe.fail("Structure replace would overwrite content"):pe.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new We([this.from,this.to-this.from,this.slice.size])}invert(e){return new be(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),o=e.mapResult(this.to,-1);return t.deletedAcross&&o.deletedAcross?null:new be(t.pos,Math.max(t.pos,o.pos),this.slice,this.structure)}merge(e){if(!(e instanceof be)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let t=this.slice.size+e.slice.size==0?A.empty:new A(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new be(this.from,this.to+(e.to-e.from),t,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let t=this.slice.size+e.slice.size==0?A.empty:new A(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new be(e.from,this.to,t,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new be(t.from,t.to,A.fromJSON(e,t.slice),!!t.structure)}}Te.jsonID("replace",be);class we extends Te{constructor(e,t,o,n,i,a,l=!1){super(),this.from=e,this.to=t,this.gapFrom=o,this.gapTo=n,this.slice=i,this.insert=a,this.structure=l}apply(e){if(this.structure&&(Da(e,this.from,this.gapFrom)||Da(e,this.gapTo,this.to)))return pe.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return pe.fail("Gap is not a flat range");let o=this.slice.insertAt(this.insert,t.content);return o?pe.fromReplace(e,this.from,this.to,o):pe.fail("Content does not fit in gap")}getMap(){return new We([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new we(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),o=e.mapResult(this.to,-1),n=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?o.pos:e.map(this.gapTo,1);return t.deletedAcross&&o.deletedAcross||n<t.pos||i>o.pos?null:new we(t.pos,o.pos,n,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number"||typeof t.gapFrom!="number"||typeof t.gapTo!="number"||typeof t.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new we(t.from,t.to,t.gapFrom,t.gapTo,A.fromJSON(e,t.slice),t.insert,!!t.structure)}}Te.jsonID("replaceAround",we);function Da(r,e,t){let o=r.resolve(e),n=t-e,i=o.depth;for(;n>0&&i>0&&o.indexAfter(i)==o.node(i).childCount;)i--,n--;if(n>0){let a=o.node(i).maybeChild(o.indexAfter(i));for(;n>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,n--}}return!1}function Mf(r,e,t,o){let n=[],i=[],a,l;r.doc.nodesBetween(e,t,(c,d,u)=>{if(!c.isInline)return;let p=c.marks;if(!o.isInSet(p)&&u.type.allowsMarkType(o.type)){let m=Math.max(d,e),h=Math.min(d+c.nodeSize,t),f=o.addToSet(p);for(let g=0;g<p.length;g++)p[g].isInSet(f)||(a&&a.to==m&&a.mark.eq(p[g])?a.to=h:n.push(a=new ht(m,h,p[g])));l&&l.to==m?l.to=h:i.push(l=new Wt(m,h,o))}}),n.forEach(c=>r.step(c)),i.forEach(c=>r.step(c))}function Tf(r,e,t,o){let n=[],i=0;r.doc.nodesBetween(e,t,(a,l)=>{if(!a.isInline)return;i++;let c=null;if(o instanceof Rn){let d=a.marks,u;for(;u=o.isInSet(d);)(c||(c=[])).push(u),d=u.removeFromSet(d)}else o?o.isInSet(a.marks)&&(c=[o]):c=a.marks;if(c&&c.length){let d=Math.min(l+a.nodeSize,t);for(let u=0;u<c.length;u++){let p=c[u],m;for(let h=0;h<n.length;h++){let f=n[h];f.step==i-1&&p.eq(n[h].style)&&(m=f)}m?(m.to=d,m.step=i):n.push({style:p,from:Math.max(l,e),to:d,step:i})}}}),n.forEach(a=>r.step(new ht(a.from,a.to,a.style)))}function Ia(r,e,t,o=t.contentMatch,n=!0){let i=r.doc.nodeAt(e),a=[],l=e+1;for(let c=0;c<i.childCount;c++){let d=i.child(c),u=l+d.nodeSize,p=o.matchType(d.type);if(!p)a.push(new be(l,u,A.empty));else{o=p;for(let m=0;m<d.marks.length;m++)t.allowsMarkType(d.marks[m].type)||r.step(new ht(l,u,d.marks[m]));if(n&&d.isText&&t.whitespace!="pre"){let m,h=/\r?\n|\r/g,f;for(;m=h.exec(d.text);)f||(f=new A(M.from(t.schema.text(" ",t.allowedMarks(d.marks))),0,0)),a.push(new be(l+m.index,l+m.index+m[0].length,f))}}l=u}if(!o.validEnd){let c=o.fillBefore(M.empty,!0);r.replace(l,l,new A(c,0,0))}for(let c=a.length-1;c>=0;c--)r.step(a[c])}function Of(r,e,t){return(e==0||r.canReplace(e,r.childCount))&&(t==r.childCount||r.canReplace(0,t))}function _r(r){let t=r.parent.content.cutByIndex(r.startIndex,r.endIndex);for(let o=r.depth;;--o){let n=r.$from.node(o),i=r.$from.index(o),a=r.$to.indexAfter(o);if(o<r.depth&&n.canReplace(i,a,t))return o;if(o==0||n.type.spec.isolating||!Of(n,i,a))break}return null}function Vf(r,e,t){let{$from:o,$to:n,depth:i}=e,a=o.before(i+1),l=n.after(i+1),c=a,d=l,u=M.empty,p=0;for(let f=i,g=!1;f>t;f--)g||o.index(f)>0?(g=!0,u=M.from(o.node(f).copy(u)),p++):c--;let m=M.empty,h=0;for(let f=i,g=!1;f>t;f--)g||n.after(f+1)<n.end(f)?(g=!0,m=M.from(n.node(f).copy(m)),h++):d++;r.step(new we(c,d,a,l,new A(u.append(m),p,h),u.size-p,!0))}function La(r,e,t=null,o=r){let n=Pf(r,e),i=n&&Af(o,e);return i?n.map(Wc).concat({type:e,attrs:t}).concat(i.map(Wc)):null}function Wc(r){return{type:r,attrs:null}}function Pf(r,e){let{parent:t,startIndex:o,endIndex:n}=r,i=t.contentMatchAt(o).findWrapping(e);if(!i)return null;let a=i.length?i[0]:e;return t.canReplaceWith(o,n,a)?i:null}function Af(r,e){let{parent:t,startIndex:o,endIndex:n}=r,i=t.child(o),a=e.contentMatch.findWrapping(i.type);if(!a)return null;let c=(a.length?a[a.length-1]:e).contentMatch;for(let d=o;c&&d<n;d++)c=c.matchType(t.child(d).type);return!c||!c.validEnd?null:a}function Df(r,e,t){let o=M.empty;for(let a=t.length-1;a>=0;a--){if(o.size){let l=t[a].type.contentMatch.matchFragment(o);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}o=M.from(t[a].type.create(t[a].attrs,o))}let n=e.start,i=e.end;r.step(new we(n,i,n,i,new A(o,0,0),t.length,!0))}function If(r,e,t,o,n){if(!o.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=r.steps.length;r.doc.nodesBetween(e,t,(a,l)=>{let c=typeof n=="function"?n(a):n;if(a.isTextblock&&!a.hasMarkup(o,c)&&Lf(r.doc,r.mapping.slice(i).map(l),o)){let d=null;if(o.schema.linebreakReplacement){let h=o.whitespace=="pre",f=!!o.contentMatch.matchType(o.schema.linebreakReplacement);h&&!f?d=!1:!h&&f&&(d=!0)}d===!1&&Uc(r,a,l,i),Ia(r,r.mapping.slice(i).map(l,1),o,void 0,d===null);let u=r.mapping.slice(i),p=u.map(l,1),m=u.map(l+a.nodeSize,1);return r.step(new we(p,m,p+1,m-1,new A(M.from(o.create(c,null,a.marks)),0,0),1,!0)),d===!0&&qc(r,a,l,i),!1}})}function qc(r,e,t,o){e.forEach((n,i)=>{if(n.isText){let a,l=/\r?\n|\r/g;for(;a=l.exec(n.text);){let c=r.mapping.slice(o).map(t+1+i+a.index);r.replaceWith(c,c+1,e.type.schema.linebreakReplacement.create())}}})}function Uc(r,e,t,o){e.forEach((n,i)=>{if(n.type==n.type.schema.linebreakReplacement){let a=r.mapping.slice(o).map(t+1+i);r.replaceWith(a,a+1,e.type.schema.text(`
|
|
15
|
+
`))}})}function Lf(r,e,t){let o=r.resolve(e),n=o.index();return o.parent.canReplaceWith(n,n+1,t)}function Rf(r,e,t,o,n){let i=r.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");t||(t=i.type);let a=t.create(o,null,n||i.marks);if(i.isLeaf)return r.replaceWith(e,e+i.nodeSize,a);if(!t.validContent(i.content))throw new RangeError("Invalid content for node type "+t.name);r.step(new we(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new A(M.from(a),0,0),1,!0))}function Ct(r,e,t=1,o){let n=r.resolve(e),i=n.depth-t,a=o&&o[o.length-1]||n.parent;if(i<0||n.parent.type.spec.isolating||!n.parent.canReplace(n.index(),n.parent.childCount)||!a.type.validContent(n.parent.content.cutByIndex(n.index(),n.parent.childCount)))return!1;for(let d=n.depth-1,u=t-2;d>i;d--,u--){let p=n.node(d),m=n.index(d);if(p.type.spec.isolating)return!1;let h=p.content.cutByIndex(m,p.childCount),f=o&&o[u+1];f&&(h=h.replaceChild(0,f.type.create(f.attrs)));let g=o&&o[u]||p;if(!p.canReplace(m+1,p.childCount)||!g.type.validContent(h))return!1}let l=n.indexAfter(i),c=o&&o[0];return n.node(i).canReplaceWith(l,l,c?c.type:n.node(i+1).type)}function zf(r,e,t=1,o){let n=r.doc.resolve(e),i=M.empty,a=M.empty;for(let l=n.depth,c=n.depth-t,d=t-1;l>c;l--,d--){i=M.from(n.node(l).copy(i));let u=o&&o[d];a=M.from(u?u.type.create(u.attrs,a):n.node(l).copy(a))}r.step(new be(e,e,new A(i.append(a),t,t),!0))}function Ut(r,e){let t=r.resolve(e),o=t.index();return Kc(t.nodeBefore,t.nodeAfter)&&t.parent.canReplace(o,o+1)}function _f(r,e){e.content.size||r.type.compatibleContent(e.type);let t=r.contentMatchAt(r.childCount),{linebreakReplacement:o}=r.type.schema;for(let n=0;n<e.childCount;n++){let i=e.child(n),a=i.type==o?r.type.schema.nodes.text:i.type;if(t=t.matchType(a),!t||!r.type.allowsMarks(i.marks))return!1}return t.validEnd}function Kc(r,e){return!!(r&&e&&!r.isLeaf&&_f(r,e))}function jn(r,e,t=-1){let o=r.resolve(e);for(let n=o.depth;;n--){let i,a,l=o.index(n);if(n==o.depth?(i=o.nodeBefore,a=o.nodeAfter):t>0?(i=o.node(n+1),l++,a=o.node(n).maybeChild(l)):(i=o.node(n).maybeChild(l-1),a=o.node(n+1)),i&&!i.isTextblock&&Kc(i,a)&&o.node(n).canReplace(l,l+1))return e;if(n==0)break;e=t<0?o.before(n):o.after(n)}}function Ff(r,e,t){let o=null,{linebreakReplacement:n}=r.doc.type.schema,i=r.doc.resolve(e-t),a=i.node().type;if(n&&a.inlineContent){let u=a.whitespace=="pre",p=!!a.contentMatch.matchType(n);u&&!p?o=!1:!u&&p&&(o=!0)}let l=r.steps.length;if(o===!1){let u=r.doc.resolve(e+t);Uc(r,u.node(),u.before(),l)}a.inlineContent&&Ia(r,e+t-1,a,i.node().contentMatchAt(i.index()),o==null);let c=r.mapping.slice(l),d=c.map(e-t);if(r.step(new be(d,c.map(e+t,-1),A.empty,!0)),o===!0){let u=r.doc.resolve(d);qc(r,u.node(),u.before(),r.steps.length)}return r}function jf(r,e,t){let o=r.resolve(e);if(o.parent.canReplaceWith(o.index(),o.index(),t))return e;if(o.parentOffset==0)for(let n=o.depth-1;n>=0;n--){let i=o.index(n);if(o.node(n).canReplaceWith(i,i,t))return o.before(n+1);if(i>0)return null}if(o.parentOffset==o.parent.content.size)for(let n=o.depth-1;n>=0;n--){let i=o.indexAfter(n);if(o.node(n).canReplaceWith(i,i,t))return o.after(n+1);if(i<o.node(n).childCount)return null}return null}function Jc(r,e,t){let o=r.resolve(e);if(!t.content.size)return e;let n=t.content;for(let i=0;i<t.openStart;i++)n=n.firstChild.content;for(let i=1;i<=(t.openStart==0&&t.size?2:1);i++)for(let a=o.depth;a>=0;a--){let l=a==o.depth?0:o.pos<=(o.start(a+1)+o.end(a+1))/2?-1:1,c=o.index(a)+(l>0?1:0),d=o.node(a),u=!1;if(i==1)u=d.canReplace(c,c,n);else{let p=d.contentMatchAt(c).findWrapping(n.firstChild.type);u=p&&d.canReplaceWith(c,c,p[0])}if(u)return l==0?o.pos:l<0?o.before(a+1):o.after(a+1)}return null}function Hn(r,e,t=e,o=A.empty){if(e==t&&!o.size)return null;let n=r.resolve(e),i=r.resolve(t);return Gc(n,i,o)?new be(e,t,o):new Hf(n,i,o).fit()}function Gc(r,e,t){return!t.openStart&&!t.openEnd&&r.start()==e.start()&&r.parent.canReplace(r.index(),e.index(),t.content)}class Hf{constructor(e,t,o){this.$from=e,this.$to=t,this.unplaced=o,this.frontier=[],this.placed=M.empty;for(let n=0;n<=e.depth;n++){let i=e.node(n);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(n))})}for(let n=e.depth;n>0;n--)this.placed=M.from(e.node(n).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let d=this.findFittable();d?this.placeNodes(d):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,o=this.$from,n=this.close(e<0?this.$to:o.doc.resolve(e));if(!n)return null;let i=this.placed,a=o.depth,l=n.depth;for(;a&&l&&i.childCount==1;)i=i.firstChild.content,a--,l--;let c=new A(i,a,l);return e>-1?new we(o.pos,e,this.$to.pos,this.$to.end(),c,t):c.size||o.pos!=this.$to.pos?new be(o.pos,n.pos,c):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,o=0,n=this.unplaced.openEnd;o<e;o++){let i=t.firstChild;if(t.childCount>1&&(n=0),i.type.spec.isolating&&n<=o){e=o;break}t=i.content}for(let t=1;t<=2;t++)for(let o=t==1?e:this.unplaced.openStart;o>=0;o--){let n,i=null;o?(i=Ra(this.unplaced.content,o-1).firstChild,n=i.content):n=this.unplaced.content;let a=n.firstChild;for(let l=this.depth;l>=0;l--){let{type:c,match:d}=this.frontier[l],u,p=null;if(t==1&&(a?d.matchType(a.type)||(p=d.fillBefore(M.from(a),!1)):i&&c.compatibleContent(i.type)))return{sliceDepth:o,frontierDepth:l,parent:i,inject:p};if(t==2&&a&&(u=d.findWrapping(a.type)))return{sliceDepth:o,frontierDepth:l,parent:i,wrap:u};if(i&&d.matchType(i.type))break}}}openMore(){let{content:e,openStart:t,openEnd:o}=this.unplaced,n=Ra(e,t);return!n.childCount||n.firstChild.isLeaf?!1:(this.unplaced=new A(e,t+1,Math.max(o,n.size+t>=e.size-o?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:o}=this.unplaced,n=Ra(e,t);if(n.childCount<=1&&t>0){let i=e.size-t<=t+n.size;this.unplaced=new A(No(e,t-1,1),t-1,i?t-1:o)}else this.unplaced=new A(No(e,t,1),t,o)}placeNodes({sliceDepth:e,frontierDepth:t,parent:o,inject:n,wrap:i}){for(;this.depth>t;)this.closeFrontierNode();if(i)for(let g=0;g<i.length;g++)this.openFrontierNode(i[g]);let a=this.unplaced,l=o?o.content:a.content,c=a.openStart-e,d=0,u=[],{match:p,type:m}=this.frontier[t];if(n){for(let g=0;g<n.childCount;g++)u.push(n.child(g));p=p.matchFragment(n)}let h=l.size+e-(a.content.size-a.openEnd);for(;d<l.childCount;){let g=l.child(d),b=p.matchType(g.type);if(!b)break;d++,(d>1||c==0||g.content.size)&&(p=b,u.push(Yc(g.mark(m.allowedMarks(g.marks)),d==1?c:0,d==l.childCount?h:-1)))}let f=d==l.childCount;f||(h=-1),this.placed=Bo(this.placed,t,M.from(u)),this.frontier[t].match=p,f&&h<0&&o&&o.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let g=0,b=l;g<h;g++){let y=b.lastChild;this.frontier.push({type:y.type,match:y.contentMatchAt(y.childCount)}),b=y.content}this.unplaced=f?e==0?A.empty:new A(No(a.content,e-1,1),e-1,h<0?a.openEnd:e-1):new A(No(a.content,e,d),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!za(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:o}=this.$to,n=this.$to.after(o);for(;o>1&&n==this.$to.end(--o);)++n;return n}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:o,type:n}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),a=za(e,t,n,o,i);if(a){for(let l=t-1;l>=0;l--){let{match:c,type:d}=this.frontier[l],u=za(e,l,d,c,!0);if(!u||u.childCount)continue e}return{depth:t,fit:a,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=Bo(this.placed,t.depth,t.fit)),e=t.move;for(let o=t.depth+1;o<=e.depth;o++){let n=e.node(o),i=n.type.contentMatch.fillBefore(n.content,!0,e.index(o));this.openFrontierNode(n.type,n.attrs,i)}return e}openFrontierNode(e,t=null,o){let n=this.frontier[this.depth];n.match=n.match.matchType(e),this.placed=Bo(this.placed,this.depth,M.from(e.create(t,o))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(M.empty,!0);t.childCount&&(this.placed=Bo(this.placed,this.frontier.length,t))}}function No(r,e,t){return e==0?r.cutByIndex(t,r.childCount):r.replaceChild(0,r.firstChild.copy(No(r.firstChild.content,e-1,t)))}function Bo(r,e,t){return e==0?r.append(t):r.replaceChild(r.childCount-1,r.lastChild.copy(Bo(r.lastChild.content,e-1,t)))}function Ra(r,e){for(let t=0;t<e;t++)r=r.firstChild.content;return r}function Yc(r,e,t){if(e<=0)return r;let o=r.content;return e>1&&(o=o.replaceChild(0,Yc(o.firstChild,e-1,o.childCount==1?t-1:0))),e>0&&(o=r.type.contentMatch.fillBefore(o).append(o),t<=0&&(o=o.append(r.type.contentMatch.matchFragment(o).fillBefore(M.empty,!0)))),r.copy(o)}function za(r,e,t,o,n){let i=r.node(e),a=n?r.indexAfter(e):r.index(e);if(a==i.childCount&&!t.compatibleContent(i.type))return null;let l=o.fillBefore(i.content,!0,a);return l&&!Wf(t,i.content,a)?l:null}function Wf(r,e,t){for(let o=t;o<e.childCount;o++)if(!r.allowsMarks(e.child(o).marks))return!0;return!1}function qf(r){return r.spec.defining||r.spec.definingForContent}function Uf(r,e,t,o){if(!o.size)return r.deleteRange(e,t);let n=r.doc.resolve(e),i=r.doc.resolve(t);if(Gc(n,i,o))return r.step(new be(e,t,o));let a=Qc(n,r.doc.resolve(t));a[a.length-1]==0&&a.pop();let l=-(n.depth+1);a.unshift(l);for(let m=n.depth,h=n.pos-1;m>0;m--,h--){let f=n.node(m).type.spec;if(f.defining||f.definingAsContext||f.isolating)break;a.indexOf(m)>-1?l=m:n.before(m)==h&&a.splice(1,0,-m)}let c=a.indexOf(l),d=[],u=o.openStart;for(let m=o.content,h=0;;h++){let f=m.firstChild;if(d.push(f),h==o.openStart)break;m=f.content}for(let m=u-1;m>=0;m--){let h=d[m],f=qf(h.type);if(f&&!h.sameMarkup(n.node(Math.abs(l)-1)))u=m;else if(f||!h.type.isTextblock)break}for(let m=o.openStart;m>=0;m--){let h=(m+u+1)%(o.openStart+1),f=d[h];if(f)for(let g=0;g<a.length;g++){let b=a[(g+c)%a.length],y=!0;b<0&&(y=!1,b=-b);let k=n.node(b-1),v=n.index(b-1);if(k.canReplaceWith(v,v,f.type,f.marks))return r.replace(n.before(b),y?i.after(b):t,new A(Xc(o.content,0,o.openStart,h),h,o.openEnd))}}let p=r.steps.length;for(let m=a.length-1;m>=0&&(r.replace(e,t,o),!(r.steps.length>p));m--){let h=a[m];h<0||(e=n.before(h),t=i.after(h))}}function Xc(r,e,t,o,n){if(e<t){let i=r.firstChild;r=r.replaceChild(0,i.copy(Xc(i.content,e+1,t,o,i)))}if(e>o){let i=n.contentMatchAt(0),a=i.fillBefore(r).append(r);r=a.append(i.matchFragment(a).fillBefore(M.empty,!0))}return r}function Kf(r,e,t,o){if(!o.isInline&&e==t&&r.doc.resolve(e).parent.content.size){let n=jf(r.doc,e,o.type);n!=null&&(e=t=n)}r.replaceRange(e,t,new A(M.from(o),0,0))}function Jf(r,e,t){let o=r.doc.resolve(e),n=r.doc.resolve(t),i=Qc(o,n);for(let a=0;a<i.length;a++){let l=i[a],c=a==i.length-1;if(c&&l==0||o.node(l).type.contentMatch.validEnd)return r.delete(o.start(l),n.end(l));if(l>0&&(c||o.node(l-1).canReplace(o.index(l-1),n.indexAfter(l-1))))return r.delete(o.before(l),n.after(l))}for(let a=1;a<=o.depth&&a<=n.depth;a++)if(e-o.start(a)==o.depth-a&&t>o.end(a)&&n.end(a)-t!=n.depth-a&&o.start(a-1)==n.start(a-1)&&o.node(a-1).canReplace(o.index(a-1),n.index(a-1)))return r.delete(o.before(a),t);r.delete(e,t)}function Qc(r,e){let t=[],o=Math.min(r.depth,e.depth);for(let n=o;n>=0;n--){let i=r.start(n);if(i<r.pos-(r.depth-n)||e.end(n)>e.pos+(e.depth-n)||r.node(n).type.spec.isolating||e.node(n).type.spec.isolating)break;(i==e.start(n)||n==r.depth&&n==e.depth&&r.parent.inlineContent&&e.parent.inlineContent&&n&&e.start(n-1)==i-1)&&t.push(n)}return t}class Fr extends Te{constructor(e,t,o){super(),this.pos=e,this.attr=t,this.value=o}apply(e){let t=e.nodeAt(this.pos);if(!t)return pe.fail("No node at attribute step's position");let o=Object.create(null);for(let i in t.attrs)o[i]=t.attrs[i];o[this.attr]=this.value;let n=t.type.create(o,null,t.marks);return pe.fromReplace(e,this.pos,this.pos+1,new A(M.from(n),0,t.isLeaf?0:1))}getMap(){return We.empty}invert(e){return new Fr(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Fr(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if(typeof t.pos!="number"||typeof t.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Fr(t.pos,t.attr,t.value)}}Te.jsonID("attr",Fr);class Mo extends Te{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let n in e.attrs)t[n]=e.attrs[n];t[this.attr]=this.value;let o=e.type.create(t,e.content,e.marks);return pe.ok(o)}getMap(){return We.empty}invert(e){return new Mo(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if(typeof t.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Mo(t.attr,t.value)}}Te.jsonID("docAttr",Mo);let jr=class extends Error{};jr=function r(e){let t=Error.call(this,e);return t.__proto__=r.prototype,t},jr.prototype=Object.create(Error.prototype),jr.prototype.constructor=jr,jr.prototype.name="TransformError";class Zc{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Co}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new jr(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,o=A.empty){let n=Hn(this.doc,e,t,o);return n&&this.step(n),this}replaceWith(e,t,o){return this.replace(e,t,new A(M.from(o),0,0))}delete(e,t){return this.replace(e,t,A.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,o){return Uf(this,e,t,o),this}replaceRangeWith(e,t,o){return Kf(this,e,t,o),this}deleteRange(e,t){return Jf(this,e,t),this}lift(e,t){return Vf(this,e,t),this}join(e,t=1){return Ff(this,e,t),this}wrap(e,t){return Df(this,e,t),this}setBlockType(e,t=e,o,n=null){return If(this,e,t,o,n),this}setNodeMarkup(e,t,o=null,n){return Rf(this,e,t,o,n),this}setNodeAttribute(e,t,o){return this.step(new Fr(e,t,o)),this}setDocAttribute(e,t){return this.step(new Mo(e,t)),this}addNodeMark(e,t){return this.step(new qt(e,t)),this}removeNodeMark(e,t){let o=this.doc.nodeAt(e);if(!o)throw new RangeError("No node at position "+e);if(t instanceof te)t.isInSet(o.marks)&&this.step(new fr(e,t));else{let n=o.marks,i,a=[];for(;i=t.isInSet(n);)a.push(new fr(e,i)),n=i.removeFromSet(n);for(let l=a.length-1;l>=0;l--)this.step(a[l])}return this}split(e,t=1,o){return zf(this,e,t,o),this}addMark(e,t,o){return Mf(this,e,t,o),this}removeMark(e,t,o){return Tf(this,e,t,o),this}clearIncompatible(e,t,o){return Ia(this,e,t,o),this}}const _a=Object.create(null);class W{constructor(e,t,o){this.$anchor=e,this.$head=t,this.ranges=o||[new Gf(e.min(t),e.max(t))]}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 e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=A.empty){let o=t.content.lastChild,n=null;for(let l=0;l<t.openEnd;l++)n=o,o=o.lastChild;let i=e.steps.length,a=this.ranges;for(let l=0;l<a.length;l++){let{$from:c,$to:d}=a[l],u=e.mapping.slice(i);e.replaceRange(u.map(c.pos),u.map(d.pos),l?A.empty:t),l==0&&td(e,i,(o?o.isInline:n&&n.isTextblock)?-1:1)}}replaceWith(e,t){let o=e.steps.length,n=this.ranges;for(let i=0;i<n.length;i++){let{$from:a,$to:l}=n[i],c=e.mapping.slice(o),d=c.map(a.pos),u=c.map(l.pos);i?e.deleteRange(d,u):(e.replaceRangeWith(d,u,t),td(e,o,t.isInline?-1:1))}}static findFrom(e,t,o=!1){let n=e.parent.inlineContent?new j(e):Hr(e.node(0),e.parent,e.pos,e.index(),t,o);if(n)return n;for(let i=e.depth-1;i>=0;i--){let a=t<0?Hr(e.node(0),e.node(i),e.before(i+1),e.index(i),t,o):Hr(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,t,o);if(a)return a}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new qe(e.node(0))}static atStart(e){return Hr(e,e,0,0,1)||new qe(e)}static atEnd(e){return Hr(e,e,e.content.size,e.childCount,-1)||new qe(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let o=_a[t.type];if(!o)throw new RangeError(`No selection type ${t.type} defined`);return o.fromJSON(e,t)}static jsonID(e,t){if(e in _a)throw new RangeError("Duplicate use of selection JSON ID "+e);return _a[e]=t,t.prototype.jsonID=e,t}getBookmark(){return j.between(this.$anchor,this.$head).getBookmark()}}W.prototype.visible=!0;class Gf{constructor(e,t){this.$from=e,this.$to=t}}let $c=!1;function ed(r){!$c&&!r.parent.inlineContent&&($c=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+r.parent.type.name+")"))}class j extends W{constructor(e,t=e){ed(e),ed(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let o=e.resolve(t.map(this.head));if(!o.parent.inlineContent)return W.near(o);let n=e.resolve(t.map(this.anchor));return new j(n.parent.inlineContent?n:o,o)}replace(e,t=A.empty){if(super.replace(e,t),t==A.empty){let o=this.$from.marksAcross(this.$to);o&&e.ensureMarks(o)}}eq(e){return e instanceof j&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Wn(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if(typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new j(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,o=t){let n=e.resolve(t);return new this(n,o==t?n:e.resolve(o))}static between(e,t,o){let n=e.pos-t.pos;if((!o||n)&&(o=n>=0?1:-1),!t.parent.inlineContent){let i=W.findFrom(t,o,!0)||W.findFrom(t,-o,!0);if(i)t=i.$head;else return W.near(t,o)}return e.parent.inlineContent||(n==0?e=t:(e=(W.findFrom(e,-o,!0)||W.findFrom(e,o,!0)).$anchor,e.pos<t.pos!=n<0&&(e=t))),new j(e,t)}}W.jsonID("text",j);class Wn{constructor(e,t){this.anchor=e,this.head=t}map(e){return new Wn(e.map(this.anchor),e.map(this.head))}resolve(e){return j.between(e.resolve(this.anchor),e.resolve(this.head))}}class R extends W{constructor(e){let t=e.nodeAfter,o=e.node(0).resolve(e.pos+t.nodeSize);super(e,o),this.node=t}map(e,t){let{deleted:o,pos:n}=t.mapResult(this.anchor),i=e.resolve(n);return o?W.near(i):new R(i)}content(){return new A(M.from(this.node),0,0)}eq(e){return e instanceof R&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Fa(this.anchor)}static fromJSON(e,t){if(typeof t.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new R(e.resolve(t.anchor))}static create(e,t){return new R(e.resolve(t))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}R.prototype.visible=!1,W.jsonID("node",R);class Fa{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:o}=e.mapResult(this.anchor);return t?new Wn(o,o):new Fa(o)}resolve(e){let t=e.resolve(this.anchor),o=t.nodeAfter;return o&&R.isSelectable(o)?new R(t):W.near(t)}}class qe extends W{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=A.empty){if(t==A.empty){e.delete(0,e.doc.content.size);let o=W.atStart(e.doc);o.eq(e.selection)||e.setSelection(o)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new qe(e)}map(e){return new qe(e)}eq(e){return e instanceof qe}getBookmark(){return Yf}}W.jsonID("all",qe);const Yf={map(){return this},resolve(r){return new qe(r)}};function Hr(r,e,t,o,n,i=!1){if(e.inlineContent)return j.create(r,t);for(let a=o-(n>0?0:1);n>0?a<e.childCount:a>=0;a+=n){let l=e.child(a);if(l.isAtom){if(!i&&R.isSelectable(l))return R.create(r,t-(n<0?l.nodeSize:0))}else{let c=Hr(r,l,t+n,n<0?l.childCount:0,n,i);if(c)return c}t+=l.nodeSize*n}return null}function td(r,e,t){let o=r.steps.length-1;if(o<e)return;let n=r.steps[o];if(!(n instanceof be||n instanceof we))return;let i=r.mapping.maps[o],a;i.forEach((l,c,d,u)=>{a==null&&(a=u)}),r.setSelection(W.near(r.doc.resolve(a),t))}const rd=1,qn=2,od=4;class Xf extends Zc{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.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(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|rd)&~qn,this.storedMarks=null,this}get selectionSet(){return(this.updated&rd)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=qn,this}ensureMarks(e){return te.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&qn)>0}addStep(e,t){super.addStep(e,t),this.updated=this.updated&~qn,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let o=this.selection;return t&&(e=e.mark(this.storedMarks||(o.empty?o.$from.marks():o.$from.marksAcross(o.$to)||te.none))),o.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,o){let n=this.doc.type.schema;if(t==null)return e?this.replaceSelectionWith(n.text(e),!0):this.deleteSelection();{if(o==null&&(o=t),o=o??t,!e)return this.deleteRange(t,o);let i=this.storedMarks;if(!i){let a=this.doc.resolve(t);i=o==t?a.marks():a.marksAcross(this.doc.resolve(o))}return this.replaceRangeWith(t,o,n.text(e,i)),this.selection.empty||this.setSelection(W.near(this.selection.$to)),this}}setMeta(e,t){return this.meta[typeof e=="string"?e:e.key]=t,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=od,this}get scrolledIntoView(){return(this.updated&od)>0}}function nd(r,e){return!e||!r?r:r.bind(e)}class To{constructor(e,t,o){this.name=e,this.init=nd(t.init,o),this.apply=nd(t.apply,o)}}const Qf=[new To("doc",{init(r){return r.doc||r.schema.topNodeType.createAndFill()},apply(r){return r.doc}}),new To("selection",{init(r,e){return r.selection||W.atStart(e.doc)},apply(r){return r.selection}}),new To("storedMarks",{init(r){return r.storedMarks||null},apply(r,e,t,o){return o.selection.$cursor?r.storedMarks:null}}),new To("scrollToSelection",{init(){return 0},apply(r,e){return r.scrolledIntoView?e+1:e}})];class ja{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=Qf.slice(),t&&t.forEach(o=>{if(this.pluginsByKey[o.key])throw new RangeError("Adding different instances of a keyed plugin ("+o.key+")");this.plugins.push(o),this.pluginsByKey[o.key]=o,o.spec.state&&this.fields.push(new To(o.key,o.spec.state,o))})}}class Wr{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let o=0;o<this.config.plugins.length;o++)if(o!=t){let n=this.config.plugins[o];if(n.spec.filterTransaction&&!n.spec.filterTransaction.call(n,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],o=this.applyInner(e),n=null;for(;;){let i=!1;for(let a=0;a<this.config.plugins.length;a++){let l=this.config.plugins[a];if(l.spec.appendTransaction){let c=n?n[a].n:0,d=n?n[a].state:this,u=c<t.length&&l.spec.appendTransaction.call(l,c?t.slice(c):t,d,o);if(u&&o.filterTransaction(u,a)){if(u.setMeta("appendedTransaction",e),!n){n=[];for(let p=0;p<this.config.plugins.length;p++)n.push(p<a?{state:o,n:t.length}:{state:this,n:0})}t.push(u),o=o.applyInner(u),i=!0}n&&(n[a]={state:o,n:t.length})}}if(!i)return{state:o,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let t=new Wr(this.config),o=this.config.fields;for(let n=0;n<o.length;n++){let i=o[n];t[i.name]=i.apply(e,this[i.name],this,t)}return t}get tr(){return new Xf(this)}static create(e){let t=new ja(e.doc?e.doc.type.schema:e.schema,e.plugins),o=new Wr(t);for(let n=0;n<t.fields.length;n++)o[t.fields[n].name]=t.fields[n].init(e,o);return o}reconfigure(e){let t=new ja(this.schema,e.plugins),o=t.fields,n=new Wr(t);for(let i=0;i<o.length;i++){let a=o[i].name;n[a]=this.hasOwnProperty(a)?this[a]:o[i].init(e,n)}return n}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(o=>o.toJSON())),e&&typeof e=="object")for(let o in e){if(o=="doc"||o=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let n=e[o],i=n.spec.state;i&&i.toJSON&&(t[o]=i.toJSON.call(n,this[n.key]))}return t}static fromJSON(e,t,o){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let n=new ja(e.schema,e.plugins),i=new Wr(n);return n.fields.forEach(a=>{if(a.name=="doc")i.doc=Ht.fromJSON(e.schema,t.doc);else if(a.name=="selection")i.selection=W.fromJSON(i.doc,t.selection);else if(a.name=="storedMarks")t.storedMarks&&(i.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(o)for(let l in o){let c=o[l],d=c.spec.state;if(c.key==a.name&&d&&d.fromJSON&&Object.prototype.hasOwnProperty.call(t,l)){i[a.name]=d.fromJSON.call(c,e,t[l],i);return}}i[a.name]=a.init(e,i)}}),i}}function id(r,e,t){for(let o in r){let n=r[o];n instanceof Function?n=n.bind(e):o=="handleDOMEvents"&&(n=id(n,e,{})),t[o]=n}return t}class he{constructor(e){this.spec=e,this.props={},e.props&&id(e.props,this,this.props),this.key=e.key?e.key.key:ad("plugin")}getState(e){return e[this.key]}}const Ha=Object.create(null);function ad(r){return r in Ha?r+"$"+ ++Ha[r]:(Ha[r]=0,r+"$")}class Ae{constructor(e="key"){this.key=ad(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const Se=function(r){for(var e=0;;e++)if(r=r.previousSibling,!r)return e},qr=function(r){let e=r.assignedSlot||r.parentNode;return e&&e.nodeType==11?e.host:e};let Wa=null;const Nt=function(r,e,t){let o=Wa||(Wa=document.createRange());return o.setEnd(r,t??r.nodeValue.length),o.setStart(r,e||0),o},Zf=function(){Wa=null},gr=function(r,e,t,o){return t&&(sd(r,e,t,o,-1)||sd(r,e,t,o,1))},$f=/^(img|br|input|textarea|hr)$/i;function sd(r,e,t,o,n){for(var i;;){if(r==t&&e==o)return!0;if(e==(n<0?0:Ye(r))){let a=r.parentNode;if(!a||a.nodeType!=1||Oo(r)||$f.test(r.nodeName)||r.contentEditable=="false")return!1;e=Se(r)+(n<0?0:1),r=a}else if(r.nodeType==1){let a=r.childNodes[e+(n<0?-1:0)];if(a.nodeType==1&&a.contentEditable=="false")if(!((i=a.pmViewDesc)===null||i===void 0)&&i.ignoreForSelection)e+=n;else return!1;else r=a,e=n<0?Ye(r):0}else return!1}}function Ye(r){return r.nodeType==3?r.nodeValue.length:r.childNodes.length}function eg(r,e){for(;;){if(r.nodeType==3&&e)return r;if(r.nodeType==1&&e>0){if(r.contentEditable=="false")return null;r=r.childNodes[e-1],e=Ye(r)}else if(r.parentNode&&!Oo(r))e=Se(r),r=r.parentNode;else return null}}function tg(r,e){for(;;){if(r.nodeType==3&&e<r.nodeValue.length)return r;if(r.nodeType==1&&e<r.childNodes.length){if(r.contentEditable=="false")return null;r=r.childNodes[e],e=0}else if(r.parentNode&&!Oo(r))e=Se(r)+1,r=r.parentNode;else return null}}function rg(r,e,t){for(let o=e==0,n=e==Ye(r);o||n;){if(r==t)return!0;let i=Se(r);if(r=r.parentNode,!r)return!1;o=o&&i==0,n=n&&i==Ye(r)}}function Oo(r){let e;for(let t=r;t&&!(e=t.pmViewDesc);t=t.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==r||e.contentDOM==r)}const Un=function(r){return r.focusNode&&gr(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)};function br(r,e){let t=document.createEvent("Event");return t.initEvent("keydown",!0,!0),t.keyCode=r,t.key=t.code=e,t}function og(r){let e=r.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function ng(r,e,t){if(r.caretPositionFromPoint)try{let o=r.caretPositionFromPoint(e,t);if(o)return{node:o.offsetNode,offset:Math.min(Ye(o.offsetNode),o.offset)}}catch{}if(r.caretRangeFromPoint){let o=r.caretRangeFromPoint(e,t);if(o)return{node:o.startContainer,offset:Math.min(Ye(o.startContainer),o.startOffset)}}}const ft=typeof navigator<"u"?navigator:null,ld=typeof document<"u"?document:null,Kt=ft&&ft.userAgent||"",qa=/Edge\/(\d+)/.exec(Kt),cd=/MSIE \d/.exec(Kt),Ua=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Kt),_e=!!(cd||Ua||qa),Jt=cd?document.documentMode:Ua?+Ua[1]:qa?+qa[1]:0,st=!_e&&/gecko\/(\d+)/i.test(Kt);st&&+(/Firefox\/(\d+)/.exec(Kt)||[0,0])[1];const Ka=!_e&&/Chrome\/(\d+)/.exec(Kt),Oe=!!Ka,dd=Ka?+Ka[1]:0,De=!_e&&!!ft&&/Apple Computer/.test(ft.vendor),Ur=De&&(/Mobile\/\w+/.test(Kt)||!!ft&&ft.maxTouchPoints>2),Xe=Ur||(ft?/Mac/.test(ft.platform):!1),ig=ft?/Win/.test(ft.platform):!1,Bt=/Android \d/.test(Kt),Vo=!!ld&&"webkitFontSmoothing"in ld.documentElement.style,ag=Vo?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function sg(r){let e=r.defaultView&&r.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:r.documentElement.clientWidth,top:0,bottom:r.documentElement.clientHeight}}function Mt(r,e){return typeof r=="number"?r:r[e]}function lg(r){let e=r.getBoundingClientRect(),t=e.width/r.offsetWidth||1,o=e.height/r.offsetHeight||1;return{left:e.left,right:e.left+r.clientWidth*t,top:e.top,bottom:e.top+r.clientHeight*o}}function ud(r,e,t){let o=r.someProp("scrollThreshold")||0,n=r.someProp("scrollMargin")||5,i=r.dom.ownerDocument;for(let a=t||r.dom;a;){if(a.nodeType!=1){a=qr(a);continue}let l=a,c=l==i.body,d=c?sg(i):lg(l),u=0,p=0;if(e.top<d.top+Mt(o,"top")?p=-(d.top-e.top+Mt(n,"top")):e.bottom>d.bottom-Mt(o,"bottom")&&(p=e.bottom-e.top>d.bottom-d.top?e.top+Mt(n,"top")-d.top:e.bottom-d.bottom+Mt(n,"bottom")),e.left<d.left+Mt(o,"left")?u=-(d.left-e.left+Mt(n,"left")):e.right>d.right-Mt(o,"right")&&(u=e.right-d.right+Mt(n,"right")),u||p)if(c)i.defaultView.scrollBy(u,p);else{let h=l.scrollLeft,f=l.scrollTop;p&&(l.scrollTop+=p),u&&(l.scrollLeft+=u);let g=l.scrollLeft-h,b=l.scrollTop-f;e={left:e.left-g,top:e.top-b,right:e.right-g,bottom:e.bottom-b}}let m=c?"fixed":getComputedStyle(a).position;if(/^(fixed|sticky)$/.test(m))break;a=m=="absolute"?a.offsetParent:qr(a)}}function cg(r){let e=r.dom.getBoundingClientRect(),t=Math.max(0,e.top),o,n;for(let i=(e.left+e.right)/2,a=t+1;a<Math.min(innerHeight,e.bottom);a+=5){let l=r.root.elementFromPoint(i,a);if(!l||l==r.dom||!r.dom.contains(l))continue;let c=l.getBoundingClientRect();if(c.top>=t-20){o=l,n=c.top;break}}return{refDOM:o,refTop:n,stack:pd(r.dom)}}function pd(r){let e=[],t=r.ownerDocument;for(let o=r;o&&(e.push({dom:o,top:o.scrollTop,left:o.scrollLeft}),r!=t);o=qr(o));return e}function dg({refDOM:r,refTop:e,stack:t}){let o=r?r.getBoundingClientRect().top:0;md(t,o==0?0:o-e)}function md(r,e){for(let t=0;t<r.length;t++){let{dom:o,top:n,left:i}=r[t];o.scrollTop!=n+e&&(o.scrollTop=n+e),o.scrollLeft!=i&&(o.scrollLeft=i)}}let Kr=null;function ug(r){if(r.setActive)return r.setActive();if(Kr)return r.focus(Kr);let e=pd(r);r.focus(Kr==null?{get preventScroll(){return Kr={preventScroll:!0},!0}}:void 0),Kr||(Kr=!1,md(e,0))}function hd(r,e){let t,o=2e8,n,i=0,a=e.top,l=e.top,c,d;for(let u=r.firstChild,p=0;u;u=u.nextSibling,p++){let m;if(u.nodeType==1)m=u.getClientRects();else if(u.nodeType==3)m=Nt(u).getClientRects();else continue;for(let h=0;h<m.length;h++){let f=m[h];if(f.top<=a&&f.bottom>=l){a=Math.max(f.bottom,a),l=Math.min(f.top,l);let g=f.left>e.left?f.left-e.left:f.right<e.left?e.left-f.right:0;if(g<o){t=u,o=g,n=g&&t.nodeType==3?{left:f.right<e.left?f.right:f.left,top:e.top}:e,u.nodeType==1&&g&&(i=p+(e.left>=(f.left+f.right)/2?1:0));continue}}else f.top>e.top&&!c&&f.left<=e.left&&f.right>=e.left&&(c=u,d={left:Math.max(f.left,Math.min(f.right,e.left)),top:f.top});!t&&(e.left>=f.right&&e.top>=f.top||e.left>=f.left&&e.top>=f.bottom)&&(i=p+1)}}return!t&&c&&(t=c,n=d,o=0),t&&t.nodeType==3?pg(t,n):!t||o&&t.nodeType==1?{node:r,offset:i}:hd(t,n)}function pg(r,e){let t=r.nodeValue.length,o=document.createRange();for(let n=0;n<t;n++){o.setEnd(r,n+1),o.setStart(r,n);let i=Gt(o,1);if(i.top!=i.bottom&&Ja(e,i))return{node:r,offset:n+(e.left>=(i.left+i.right)/2?1:0)}}return{node:r,offset:0}}function Ja(r,e){return r.left>=e.left-1&&r.left<=e.right+1&&r.top>=e.top-1&&r.top<=e.bottom+1}function mg(r,e){let t=r.parentNode;return t&&/^li$/i.test(t.nodeName)&&e.left<r.getBoundingClientRect().left?t:r}function hg(r,e,t){let{node:o,offset:n}=hd(e,t),i=-1;if(o.nodeType==1&&!o.firstChild){let a=o.getBoundingClientRect();i=a.left!=a.right&&t.left>(a.left+a.right)/2?1:-1}return r.docView.posFromDOM(o,n,i)}function fg(r,e,t,o){let n=-1;for(let i=e,a=!1;i!=r.dom;){let l=r.docView.nearestDesc(i,!0),c;if(!l)return null;if(l.dom.nodeType==1&&(l.node.isBlock&&l.parent||!l.contentDOM)&&((c=l.dom.getBoundingClientRect()).width||c.height)&&(l.node.isBlock&&l.parent&&(!a&&c.left>o.left||c.top>o.top?n=l.posBefore:(!a&&c.right<o.left||c.bottom<o.top)&&(n=l.posAfter),a=!0),!l.contentDOM&&n<0&&!l.node.isText))return(l.node.isBlock?o.top<(c.top+c.bottom)/2:o.left<(c.left+c.right)/2)?l.posBefore:l.posAfter;i=l.dom.parentNode}return n>-1?n:r.docView.posFromDOM(e,t,-1)}function fd(r,e,t){let o=r.childNodes.length;if(o&&t.top<t.bottom)for(let n=Math.max(0,Math.min(o-1,Math.floor(o*(e.top-t.top)/(t.bottom-t.top))-2)),i=n;;){let a=r.childNodes[i];if(a.nodeType==1){let l=a.getClientRects();for(let c=0;c<l.length;c++){let d=l[c];if(Ja(e,d))return fd(a,e,d)}}if((i=(i+1)%o)==n)break}return r}function gg(r,e){let t=r.dom.ownerDocument,o,n=0,i=ng(t,e.left,e.top);i&&({node:o,offset:n}=i);let a=(r.root.elementFromPoint?r.root:t).elementFromPoint(e.left,e.top),l;if(!a||!r.dom.contains(a.nodeType!=1?a.parentNode:a)){let d=r.dom.getBoundingClientRect();if(!Ja(e,d)||(a=fd(r.dom,e,d),!a))return null}if(De)for(let d=a;o&&d;d=qr(d))d.draggable&&(o=void 0);if(a=mg(a,e),o){if(st&&o.nodeType==1&&(n=Math.min(n,o.childNodes.length),n<o.childNodes.length)){let u=o.childNodes[n],p;u.nodeName=="IMG"&&(p=u.getBoundingClientRect()).right<=e.left&&p.bottom>e.top&&n++}let d;Vo&&n&&o.nodeType==1&&(d=o.childNodes[n-1]).nodeType==1&&d.contentEditable=="false"&&d.getBoundingClientRect().top>=e.top&&n--,o==r.dom&&n==o.childNodes.length-1&&o.lastChild.nodeType==1&&e.top>o.lastChild.getBoundingClientRect().bottom?l=r.state.doc.content.size:(n==0||o.nodeType!=1||o.childNodes[n-1].nodeName!="BR")&&(l=fg(r,o,n,e))}l==null&&(l=hg(r,a,e));let c=r.docView.nearestDesc(a,!0);return{pos:l,inside:c?c.posAtStart-c.border:-1}}function gd(r){return r.top<r.bottom||r.left<r.right}function Gt(r,e){let t=r.getClientRects();if(t.length){let o=t[e<0?0:t.length-1];if(gd(o))return o}return Array.prototype.find.call(t,gd)||r.getBoundingClientRect()}const bg=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function bd(r,e,t){let{node:o,offset:n,atom:i}=r.docView.domFromPos(e,t<0?-1:1),a=Vo||st;if(o.nodeType==3)if(a&&(bg.test(o.nodeValue)||(t<0?!n:n==o.nodeValue.length))){let c=Gt(Nt(o,n,n),t);if(st&&n&&/\s/.test(o.nodeValue[n-1])&&n<o.nodeValue.length){let d=Gt(Nt(o,n-1,n-1),-1);if(d.top==c.top){let u=Gt(Nt(o,n,n+1),-1);if(u.top!=c.top)return Po(u,u.left<d.left)}}return c}else{let c=n,d=n,u=t<0?1:-1;return t<0&&!n?(d++,u=-1):t>=0&&n==o.nodeValue.length?(c--,u=1):t<0?c--:d++,Po(Gt(Nt(o,c,d),u),u<0)}if(!r.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&n&&(t<0||n==Ye(o))){let c=o.childNodes[n-1];if(c.nodeType==1)return Ga(c.getBoundingClientRect(),!1)}if(i==null&&n<Ye(o)){let c=o.childNodes[n];if(c.nodeType==1)return Ga(c.getBoundingClientRect(),!0)}return Ga(o.getBoundingClientRect(),t>=0)}if(i==null&&n&&(t<0||n==Ye(o))){let c=o.childNodes[n-1],d=c.nodeType==3?Nt(c,Ye(c)-(a?0:1)):c.nodeType==1&&(c.nodeName!="BR"||!c.nextSibling)?c:null;if(d)return Po(Gt(d,1),!1)}if(i==null&&n<Ye(o)){let c=o.childNodes[n];for(;c.pmViewDesc&&c.pmViewDesc.ignoreForCoords;)c=c.nextSibling;let d=c?c.nodeType==3?Nt(c,0,a?0:1):c.nodeType==1?c:null:null;if(d)return Po(Gt(d,-1),!0)}return Po(Gt(o.nodeType==3?Nt(o):o,-t),t>=0)}function Po(r,e){if(r.width==0)return r;let t=e?r.left:r.right;return{top:r.top,bottom:r.bottom,left:t,right:t}}function Ga(r,e){if(r.height==0)return r;let t=e?r.top:r.bottom;return{top:t,bottom:t,left:r.left,right:r.right}}function wd(r,e,t){let o=r.state,n=r.root.activeElement;o!=e&&r.updateState(e),n!=r.dom&&r.focus();try{return t()}finally{o!=e&&r.updateState(o),n!=r.dom&&n&&n.focus()}}function wg(r,e,t){let o=e.selection,n=t=="up"?o.$from:o.$to;return wd(r,e,()=>{let{node:i}=r.docView.domFromPos(n.pos,t=="up"?-1:1);for(;;){let l=r.docView.nearestDesc(i,!0);if(!l)break;if(l.node.isBlock){i=l.contentDOM||l.dom;break}i=l.dom.parentNode}let a=bd(r,n.pos,1);for(let l=i.firstChild;l;l=l.nextSibling){let c;if(l.nodeType==1)c=l.getClientRects();else if(l.nodeType==3)c=Nt(l,0,l.nodeValue.length).getClientRects();else continue;for(let d=0;d<c.length;d++){let u=c[d];if(u.bottom>u.top+1&&(t=="up"?a.top-u.top>(u.bottom-a.top)*2:u.bottom-a.bottom>(a.bottom-u.top)*2))return!1}}return!0})}const yg=/[\u0590-\u08ac]/;function vg(r,e,t){let{$head:o}=e.selection;if(!o.parent.isTextblock)return!1;let n=o.parentOffset,i=!n,a=n==o.parent.content.size,l=r.domSelection();return l?!yg.test(o.parent.textContent)||!l.modify?t=="left"||t=="backward"?i:a:wd(r,e,()=>{let{focusNode:c,focusOffset:d,anchorNode:u,anchorOffset:p}=r.domSelectionRange(),m=l.caretBidiLevel;l.modify("move",t,"character");let h=o.depth?r.docView.domAfterPos(o.before()):r.dom,{focusNode:f,focusOffset:g}=r.domSelectionRange(),b=f&&!h.contains(f.nodeType==1?f:f.parentNode)||c==f&&d==g;try{l.collapse(u,p),c&&(c!=u||d!=p)&&l.extend&&l.extend(c,d)}catch{}return m!=null&&(l.caretBidiLevel=m),b}):o.pos==o.start()||o.pos==o.end()}let yd=null,vd=null,xd=!1;function xg(r,e,t){return yd==e&&vd==t?xd:(yd=e,vd=t,xd=t=="up"||t=="down"?wg(r,e,t):vg(r,e,t))}const Qe=0,kd=1,wr=2,gt=3;class Ao{constructor(e,t,o,n){this.parent=e,this.children=t,this.dom=o,this.contentDOM=n,this.dirty=Qe,o.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,o){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,o=this.posAtStart;;t++){let n=this.children[t];if(n==e)return o;o+=n.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(e,t,o){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(o<0){let i,a;if(e==this.contentDOM)i=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.previousSibling}for(;i&&!((a=i.pmViewDesc)&&a.parent==this);)i=i.previousSibling;return i?this.posBeforeChild(a)+a.size:this.posAtStart}else{let i,a;if(e==this.contentDOM)i=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.nextSibling}for(;i&&!((a=i.pmViewDesc)&&a.parent==this);)i=i.nextSibling;return i?this.posBeforeChild(a):this.posAtEnd}let n;if(e==this.dom&&this.contentDOM)n=t>Se(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))n=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(t==0)for(let i=e;;i=i.parentNode){if(i==this.dom){n=!1;break}if(i.previousSibling)break}if(n==null&&t==e.childNodes.length)for(let i=e;;i=i.parentNode){if(i==this.dom){n=!0;break}if(i.nextSibling)break}}return n??o>0?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let o=!0,n=e;n;n=n.parentNode){let i=this.getDesc(n),a;if(i&&(!t||i.node))if(o&&(a=i.nodeDOM)&&!(a.nodeType==1?a.contains(e.nodeType==1?e:e.parentNode):a==e))o=!1;else return i}}getDesc(e){let t=e.pmViewDesc;for(let o=t;o;o=o.parent)if(o==this)return t}posFromDOM(e,t,o){for(let n=e;n;n=n.parentNode){let i=this.getDesc(n);if(i)return i.localPosFromDOM(e,t,o)}return-1}descAt(e){for(let t=0,o=0;t<this.children.length;t++){let n=this.children[t],i=o+n.size;if(o==e&&i!=o){for(;!n.border&&n.children.length;)for(let a=0;a<n.children.length;a++){let l=n.children[a];if(l.size){n=l;break}}return n}if(e<i)return n.descAt(e-o-n.border);o=i}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let o=0,n=0;for(let i=0;o<this.children.length;o++){let a=this.children[o],l=i+a.size;if(l>e||a instanceof Cd){n=e-i;break}i=l}if(n)return this.children[o].domFromPos(n-this.children[o].border,t);for(let i;o&&!(i=this.children[o-1]).size&&i instanceof Ed&&i.side>=0;o--);if(t<=0){let i,a=!0;for(;i=o?this.children[o-1]:null,!(!i||i.dom.parentNode==this.contentDOM);o--,a=!1);return i&&t&&a&&!i.border&&!i.domAtom?i.domFromPos(i.size,t):{node:this.contentDOM,offset:i?Se(i.dom)+1:0}}else{let i,a=!0;for(;i=o<this.children.length?this.children[o]:null,!(!i||i.dom.parentNode==this.contentDOM);o++,a=!1);return i&&a&&!i.border&&!i.domAtom?i.domFromPos(0,t):{node:this.contentDOM,offset:i?Se(i.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,o=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let n=-1,i=-1;for(let a=o,l=0;;l++){let c=this.children[l],d=a+c.size;if(n==-1&&e<=d){let u=a+c.border;if(e>=u&&t<=d-c.border&&c.node&&c.contentDOM&&this.contentDOM.contains(c.contentDOM))return c.parseRange(e,t,u);e=a;for(let p=l;p>0;p--){let m=this.children[p-1];if(m.size&&m.dom.parentNode==this.contentDOM&&!m.emptyChildAt(1)){n=Se(m.dom)+1;break}e-=m.size}n==-1&&(n=0)}if(n>-1&&(d>t||l==this.children.length-1)){t=d;for(let u=l+1;u<this.children.length;u++){let p=this.children[u];if(p.size&&p.dom.parentNode==this.contentDOM&&!p.emptyChildAt(-1)){i=Se(p.dom);break}t+=p.size}i==-1&&(i=this.contentDOM.childNodes.length);break}a=d}return{node:this.contentDOM,from:e,to:t,fromOffset:n,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return t.size==0||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:o}=this.domFromPos(e,0);if(t.nodeType!=1||o==t.childNodes.length)throw new RangeError("No node after pos "+e);return t.childNodes[o]}setSelection(e,t,o,n=!1){let i=Math.min(e,t),a=Math.max(e,t);for(let h=0,f=0;h<this.children.length;h++){let g=this.children[h],b=f+g.size;if(i>f&&a<b)return g.setSelection(e-f-g.border,t-f-g.border,o,n);f=b}let l=this.domFromPos(e,e?-1:1),c=t==e?l:this.domFromPos(t,t?-1:1),d=o.root.getSelection(),u=o.domSelectionRange(),p=!1;if((st||De)&&e==t){let{node:h,offset:f}=l;if(h.nodeType==3){if(p=!!(f&&h.nodeValue[f-1]==`
|
|
16
|
+
`),p&&f==h.nodeValue.length)for(let g=h,b;g;g=g.parentNode){if(b=g.nextSibling){b.nodeName=="BR"&&(l=c={node:b.parentNode,offset:Se(b)+1});break}let y=g.pmViewDesc;if(y&&y.node&&y.node.isBlock)break}}else{let g=h.childNodes[f-1];p=g&&(g.nodeName=="BR"||g.contentEditable=="false")}}if(st&&u.focusNode&&u.focusNode!=c.node&&u.focusNode.nodeType==1){let h=u.focusNode.childNodes[u.focusOffset];h&&h.contentEditable=="false"&&(n=!0)}if(!(n||p&&De)&&gr(l.node,l.offset,u.anchorNode,u.anchorOffset)&&gr(c.node,c.offset,u.focusNode,u.focusOffset))return;let m=!1;if((d.extend||e==t)&&!p){d.collapse(l.node,l.offset);try{e!=t&&d.extend(c.node,c.offset),m=!0}catch{}}if(!m){if(e>t){let f=l;l=c,c=f}let h=document.createRange();h.setEnd(c.node,c.offset),h.setStart(l.node,l.offset),d.removeAllRanges(),d.addRange(h)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let o=0,n=0;n<this.children.length;n++){let i=this.children[n],a=o+i.size;if(o==a?e<=a&&t>=o:e<a&&t>o){let l=o+i.border,c=a-i.border;if(e>=l&&t<=c){this.dirty=e==o||t==a?wr:kd,e==l&&t==c&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=gt:i.markDirty(e-l,t-l);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?wr:gt}o=a}this.dirty=wr}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let o=e==1?wr:kd;t.dirty<o&&(t.dirty=o)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}}class Ed extends Ao{constructor(e,t,o,n){let i,a=t.type.toDOM;if(typeof a=="function"&&(a=a(o,()=>{if(!i)return n;if(i.parent)return i.parent.posBeforeChild(i)})),!t.type.spec.raw){if(a.nodeType!=1){let l=document.createElement("span");l.appendChild(a),a=l}a.contentEditable="false",a.classList.add("ProseMirror-widget")}super(e,[],a,null),this.widget=t,this.widget=t,i=this}matchesWidget(e){return this.dirty==Qe&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return t?t(e):!1}ignoreMutation(e){return e.type!="selection"||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 kg extends Ao{constructor(e,t,o,n){super(e,[],t,null),this.textDOM=o,this.text=n}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class yr extends Ao{constructor(e,t,o,n,i){super(e,[],o,n),this.mark=t,this.spec=i}static create(e,t,o,n){let i=n.nodeViews[t.type.name],a=i&&i(t,n,o);return(!a||!a.dom)&&(a=hr.renderSpec(document,t.type.spec.toDOM(t,o),null,t.attrs)),new yr(e,t,a.dom,a.contentDOM||a.dom,a)}parseRule(){return this.dirty>||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=gt&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),this.dirty!=Qe){let o=this.parent;for(;!o.node;)o=o.parent;o.dirty<this.dirty&&(o.dirty=this.dirty),this.dirty=Qe}}slice(e,t,o){let n=yr.create(this.parent,this.mark,!0,o),i=this.children,a=this.size;t<a&&(i=Xa(i,t,a,o)),e>0&&(i=Xa(i,0,e,o));for(let l=0;l<i.length;l++)i[l].parent=n;return n.children=i,n}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class Yt extends Ao{constructor(e,t,o,n,i,a,l,c,d){super(e,[],i,a),this.node=t,this.outerDeco=o,this.innerDeco=n,this.nodeDOM=l}static create(e,t,o,n,i,a){let l=i.nodeViews[t.type.name],c,d=l&&l(t,i,()=>{if(!c)return a;if(c.parent)return c.parent.posBeforeChild(c)},o,n),u=d&&d.dom,p=d&&d.contentDOM;if(t.isText){if(!u)u=document.createTextNode(t.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:p}=hr.renderSpec(document,t.type.spec.toDOM(t),null,t.attrs));!p&&!t.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),t.type.spec.draggable&&(u.draggable=!0));let m=u;return u=Md(u,o,t),d?c=new Eg(e,t,o,n,u,p||null,m,d,i,a+1):t.isText?new Kn(e,t,o,n,u,m,i):new Yt(e,t,o,n,u,p||null,m,i,a+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let t=this.children.length-1;t>=0;t--){let o=this.children[t];if(this.dom.contains(o.dom.parentNode)){e.contentElement=o.dom.parentNode;break}}e.contentElement||(e.getContent=()=>M.empty)}return e}matchesNode(e,t,o){return this.dirty==Qe&&e.eq(this.node)&&Jn(t,this.outerDeco)&&o.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,t){let o=this.node.inlineContent,n=t,i=e.composing?this.localCompositionInfo(e,t):null,a=i&&i.pos>-1?i:null,l=i&&i.pos<0,c=new Cg(this,a&&a.node,e);Mg(this.node,this.innerDeco,(d,u,p)=>{d.spec.marks?c.syncToMarks(d.spec.marks,o,e):d.type.side>=0&&!p&&c.syncToMarks(u==this.node.childCount?te.none:this.node.child(u).marks,o,e),c.placeWidget(d,e,n)},(d,u,p,m)=>{c.syncToMarks(d.marks,o,e);let h;c.findNodeMatch(d,u,p,m)||l&&e.state.selection.from>n&&e.state.selection.to<n+d.nodeSize&&(h=c.findIndexWithChild(i.node))>-1&&c.updateNodeAt(d,u,p,h,e)||c.updateNextNode(d,u,p,e,m,n)||c.addNode(d,u,p,e,n),n+=d.nodeSize}),c.syncToMarks([],o,e),this.node.isTextblock&&c.addTextblockHacks(),c.destroyRest(),(c.changed||this.dirty==wr)&&(a&&this.protectLocalComposition(e,a),Nd(this.contentDOM,this.children,e),Ur&&Tg(this.dom))}localCompositionInfo(e,t){let{from:o,to:n}=e.state.selection;if(!(e.state.selection instanceof j)||o<t||n>t+this.node.content.size)return null;let i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let a=i.nodeValue,l=Og(this.node.content,a,o-t,n-t);return l<0?null:{node:i,pos:l,text:a}}else return{node:i,pos:-1,text:""}}protectLocalComposition(e,{node:t,pos:o,text:n}){if(this.getDesc(t))return;let i=t;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let a=new kg(this,i,t,n);e.input.compositionNodes.push(a),this.children=Xa(this.children,o,o+n.length,e,a)}update(e,t,o,n){return this.dirty==gt||!e.sameMarkup(this.node)?!1:(this.updateInner(e,t,o,n),!0)}updateInner(e,t,o,n){this.updateOuterDeco(t),this.node=e,this.innerDeco=o,this.contentDOM&&this.updateChildren(n,this.posAtStart),this.dirty=Qe}updateOuterDeco(e){if(Jn(e,this.outerDeco))return;let t=this.nodeDOM.nodeType!=1,o=this.dom;this.dom=Bd(this.dom,this.nodeDOM,Ya(this.outerDeco,this.node,t),Ya(e,this.node,t)),this.dom!=o&&(o.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function Sd(r,e,t,o,n){Md(o,e,r);let i=new Yt(void 0,r,e,t,o,o,o,n,0);return i.contentDOM&&i.updateChildren(n,0),i}class Kn extends Yt{constructor(e,t,o,n,i,a,l){super(e,t,o,n,i,null,a,l,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,o,n){return this.dirty==gt||this.dirty!=Qe&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(t),(this.dirty!=Qe||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,n.trackWrites==this.nodeDOM&&(n.trackWrites=null)),this.node=e,this.dirty=Qe,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,o){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,o)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,t,o){let n=this.node.cut(e,t),i=document.createTextNode(n.text);return new Kn(this.parent,n,this.outerDeco,this.innerDeco,i,i,o)}markDirty(e,t){super.markDirty(e,t),this.dom!=this.nodeDOM&&(e==0||t==this.nodeDOM.nodeValue.length)&&(this.dirty=gt)}get domAtom(){return!1}isText(e){return this.node.text==e}}class Cd extends Ao{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==Qe&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class Eg extends Yt{constructor(e,t,o,n,i,a,l,c,d,u){super(e,t,o,n,i,a,l,d,u),this.spec=c}update(e,t,o,n){if(this.dirty==gt)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let i=this.spec.update(e,t,o);return i&&this.updateInner(e,t,o,n),i}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,t,o,n)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,o,n){this.spec.setSelection?this.spec.setSelection(e,t,o.root):super.setSelection(e,t,o,n)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function Nd(r,e,t){let o=r.firstChild,n=!1;for(let i=0;i<e.length;i++){let a=e[i],l=a.dom;if(l.parentNode==r){for(;l!=o;)o=Td(o),n=!0;o=o.nextSibling}else n=!0,r.insertBefore(l,o);if(a instanceof yr){let c=o?o.previousSibling:r.lastChild;Nd(a.contentDOM,a.children,t),o=c?c.nextSibling:r.firstChild}}for(;o;)o=Td(o),n=!0;n&&t.trackWrites==r&&(t.trackWrites=null)}const Do=function(r){r&&(this.nodeName=r)};Do.prototype=Object.create(null);const vr=[new Do];function Ya(r,e,t){if(r.length==0)return vr;let o=t?vr[0]:new Do,n=[o];for(let i=0;i<r.length;i++){let a=r[i].type.attrs;if(a){a.nodeName&&n.push(o=new Do(a.nodeName));for(let l in a){let c=a[l];c!=null&&(t&&n.length==1&&n.push(o=new Do(e.isInline?"span":"div")),l=="class"?o.class=(o.class?o.class+" ":"")+c:l=="style"?o.style=(o.style?o.style+";":"")+c:l!="nodeName"&&(o[l]=c))}}}return n}function Bd(r,e,t,o){if(t==vr&&o==vr)return e;let n=e;for(let i=0;i<o.length;i++){let a=o[i],l=t[i];if(i){let c;l&&l.nodeName==a.nodeName&&n!=r&&(c=n.parentNode)&&c.nodeName.toLowerCase()==a.nodeName||(c=document.createElement(a.nodeName),c.pmIsDeco=!0,c.appendChild(n),l=vr[0]),n=c}Sg(n,l||vr[0],a)}return n}function Sg(r,e,t){for(let o in e)o!="class"&&o!="style"&&o!="nodeName"&&!(o in t)&&r.removeAttribute(o);for(let o in t)o!="class"&&o!="style"&&o!="nodeName"&&t[o]!=e[o]&&r.setAttribute(o,t[o]);if(e.class!=t.class){let o=e.class?e.class.split(" ").filter(Boolean):[],n=t.class?t.class.split(" ").filter(Boolean):[];for(let i=0;i<o.length;i++)n.indexOf(o[i])==-1&&r.classList.remove(o[i]);for(let i=0;i<n.length;i++)o.indexOf(n[i])==-1&&r.classList.add(n[i]);r.classList.length==0&&r.removeAttribute("class")}if(e.style!=t.style){if(e.style){let o=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,n;for(;n=o.exec(e.style);)r.style.removeProperty(n[1])}t.style&&(r.style.cssText+=t.style)}}function Md(r,e,t){return Bd(r,r,vr,Ya(e,t,r.nodeType!=1))}function Jn(r,e){if(r.length!=e.length)return!1;for(let t=0;t<r.length;t++)if(!r[t].type.eq(e[t].type))return!1;return!0}function Td(r){let e=r.nextSibling;return r.parentNode.removeChild(r),e}class Cg{constructor(e,t,o){this.lock=t,this.view=o,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=Ng(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let o=e;o<t;o++)this.top.children[o].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,o){let n=0,i=this.stack.length>>1,a=Math.min(i,e.length);for(;n<a&&(n==i-1?this.top:this.stack[n+1<<1]).matchesMark(e[n])&&e[n].type.spec.spanning!==!1;)n++;for(;n<i;)this.destroyRest(),this.top.dirty=Qe,this.index=this.stack.pop(),this.top=this.stack.pop(),i--;for(;i<e.length;){this.stack.push(this.top,this.index+1);let l=-1;for(let c=this.index;c<Math.min(this.index+3,this.top.children.length);c++){let d=this.top.children[c];if(d.matchesMark(e[i])&&!this.isLocked(d.dom)){l=c;break}}if(l>-1)l>this.index&&(this.changed=!0,this.destroyBetween(this.index,l)),this.top=this.top.children[this.index];else{let c=yr.create(this.top,e[i],t,o);this.top.children.splice(this.index,0,c),this.top=c,this.changed=!0}this.index=0,i++}}findNodeMatch(e,t,o,n){let i=-1,a;if(n>=this.preMatch.index&&(a=this.preMatch.matches[n-this.preMatch.index]).parent==this.top&&a.matchesNode(e,t,o))i=this.top.children.indexOf(a,this.index);else for(let l=this.index,c=Math.min(this.top.children.length,l+5);l<c;l++){let d=this.top.children[l];if(d.matchesNode(e,t,o)&&!this.preMatch.matched.has(d)){i=l;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,t,o,n,i){let a=this.top.children[n];return a.dirty==gt&&a.dom==a.contentDOM&&(a.dirty=wr),a.update(e,t,o,i)?(this.destroyBetween(this.index,n),this.index++,!0):!1}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){let o=e.pmViewDesc;if(o){for(let n=this.index;n<this.top.children.length;n++)if(this.top.children[n]==o)return n}return-1}e=t}}updateNextNode(e,t,o,n,i,a){for(let l=this.index;l<this.top.children.length;l++){let c=this.top.children[l];if(c instanceof Yt){let d=this.preMatch.matched.get(c);if(d!=null&&d!=i)return!1;let u=c.dom,p,m=this.isLocked(u)&&!(e.isText&&c.node&&c.node.isText&&c.nodeDOM.nodeValue==e.text&&c.dirty!=gt&&Jn(t,c.outerDeco));if(!m&&c.update(e,t,o,n))return this.destroyBetween(this.index,l),c.dom!=u&&(this.changed=!0),this.index++,!0;if(!m&&(p=this.recreateWrapper(c,e,t,o,n,a)))return this.destroyBetween(this.index,l),this.top.children[this.index]=p,p.contentDOM&&(p.dirty=wr,p.updateChildren(n,a+1),p.dirty=Qe),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,o,n,i,a){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content)||!Jn(o,e.outerDeco)||!n.eq(e.innerDeco))return null;let l=Yt.create(this.top,t,o,n,i,a);if(l.contentDOM){l.children=e.children,e.children=[];for(let c of l.children)c.parent=l}return e.destroy(),l}addNode(e,t,o,n,i){let a=Yt.create(this.top,e,t,o,n,i);a.contentDOM&&a.updateChildren(n,i+1),this.top.children.splice(this.index++,0,a),this.changed=!0}placeWidget(e,t,o){let n=this.index<this.top.children.length?this.top.children[this.index]:null;if(n&&n.matchesWidget(e)&&(e==n.widget||!n.widget.type.toDOM.parentNode))this.index++;else{let i=new Ed(this.top,e,t,o);this.top.children.splice(this.index++,0,i),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof yr;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof Kn)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((De||Oe)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",t),this.addHackNode("BR",this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{let o=document.createElement(e);e=="IMG"&&(o.className="ProseMirror-separator",o.alt=""),e=="BR"&&(o.className="ProseMirror-trailingBreak");let n=new Cd(this.top,[],o,null);t!=this.top?t.children.push(n):t.children.splice(this.index++,0,n),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function Ng(r,e){let t=e,o=t.children.length,n=r.childCount,i=new Map,a=[];e:for(;n>0;){let l;for(;;)if(o){let d=t.children[o-1];if(d instanceof yr)t=d,o=d.children.length;else{l=d,o--;break}}else{if(t==e)break e;o=t.parent.children.indexOf(t),t=t.parent}let c=l.node;if(c){if(c!=r.child(n-1))break;--n,i.set(l,n),a.push(l)}}return{index:n,matched:i,matches:a.reverse()}}function Bg(r,e){return r.type.side-e.type.side}function Mg(r,e,t,o){let n=e.locals(r),i=0;if(n.length==0){for(let d=0;d<r.childCount;d++){let u=r.child(d);o(u,n,e.forChild(i,u),d),i+=u.nodeSize}return}let a=0,l=[],c=null;for(let d=0;;){let u,p;for(;a<n.length&&n[a].to==i;){let b=n[a++];b.widget&&(u?(p||(p=[u])).push(b):u=b)}if(u)if(p){p.sort(Bg);for(let b=0;b<p.length;b++)t(p[b],d,!!c)}else t(u,d,!!c);let m,h;if(c)h=-1,m=c,c=null;else if(d<r.childCount)h=d,m=r.child(d++);else break;for(let b=0;b<l.length;b++)l[b].to<=i&&l.splice(b--,1);for(;a<n.length&&n[a].from<=i&&n[a].to>i;)l.push(n[a++]);let f=i+m.nodeSize;if(m.isText){let b=f;a<n.length&&n[a].from<b&&(b=n[a].from);for(let y=0;y<l.length;y++)l[y].to<b&&(b=l[y].to);b<f&&(c=m.cut(b-i),m=m.cut(0,b-i),f=b,h=-1)}else for(;a<n.length&&n[a].to<f;)a++;let g=m.isInline&&!m.isLeaf?l.filter(b=>!b.inline):l.slice();o(m,g,e.forChild(i,m),h),i=f}}function Tg(r){if(r.nodeName=="UL"||r.nodeName=="OL"){let e=r.style.cssText;r.style.cssText=e+"; list-style: square !important",window.getComputedStyle(r).listStyle,r.style.cssText=e}}function Og(r,e,t,o){for(let n=0,i=0;n<r.childCount&&i<=o;){let a=r.child(n++),l=i;if(i+=a.nodeSize,!a.isText)continue;let c=a.text;for(;n<r.childCount;){let d=r.child(n++);if(i+=d.nodeSize,!d.isText)break;c+=d.text}if(i>=t){if(i>=o&&c.slice(o-e.length-l,o-l)==e)return o-e.length;let d=l<o?c.lastIndexOf(e,o-l-1):-1;if(d>=0&&d+e.length+l>=t)return l+d;if(t==o&&c.length>=o+e.length-l&&c.slice(o-l,o-l+e.length)==e)return o}}return-1}function Xa(r,e,t,o,n){let i=[];for(let a=0,l=0;a<r.length;a++){let c=r[a],d=l,u=l+=c.size;d>=t||u<=e?i.push(c):(d<e&&i.push(c.slice(0,e-d,o)),n&&(i.push(n),n=void 0),u>t&&i.push(c.slice(t-d,c.size,o)))}return i}function Qa(r,e=null){let t=r.domSelectionRange(),o=r.state.doc;if(!t.focusNode)return null;let n=r.docView.nearestDesc(t.focusNode),i=n&&n.size==0,a=r.docView.posFromDOM(t.focusNode,t.focusOffset,1);if(a<0)return null;let l=o.resolve(a),c,d;if(Un(t)){for(c=a;n&&!n.node;)n=n.parent;let p=n.node;if(n&&p.isAtom&&R.isSelectable(p)&&n.parent&&!(p.isInline&&rg(t.focusNode,t.focusOffset,n.dom))){let m=n.posBefore;d=new R(a==m?l:o.resolve(m))}}else{if(t instanceof r.dom.ownerDocument.defaultView.Selection&&t.rangeCount>1){let p=a,m=a;for(let h=0;h<t.rangeCount;h++){let f=t.getRangeAt(h);p=Math.min(p,r.docView.posFromDOM(f.startContainer,f.startOffset,1)),m=Math.max(m,r.docView.posFromDOM(f.endContainer,f.endOffset,-1))}if(p<0)return null;[c,a]=m==r.state.selection.anchor?[m,p]:[p,m],l=o.resolve(a)}else c=r.docView.posFromDOM(t.anchorNode,t.anchorOffset,1);if(c<0)return null}let u=o.resolve(c);if(!d){let p=e=="pointer"||r.state.selection.head<l.pos&&!i?1:-1;d=$a(r,u,l,p)}return d}function Od(r){return r.editable?r.hasFocus():Rd(r)&&document.activeElement&&document.activeElement.contains(r.dom)}function Tt(r,e=!1){let t=r.state.selection;if(Dd(r,t),!!Od(r)){if(!e&&r.input.mouseDown&&r.input.mouseDown.allowDefault&&Oe){let o=r.domSelectionRange(),n=r.domObserver.currentSelection;if(o.anchorNode&&n.anchorNode&&gr(o.anchorNode,o.anchorOffset,n.anchorNode,n.anchorOffset)){r.input.mouseDown.delayedSelectionSync=!0,r.domObserver.setCurSelection();return}}if(r.domObserver.disconnectSelection(),r.cursorWrapper)Pg(r);else{let{anchor:o,head:n}=t,i,a;Vd&&!(t instanceof j)&&(t.$from.parent.inlineContent||(i=Pd(r,t.from)),!t.empty&&!t.$from.parent.inlineContent&&(a=Pd(r,t.to))),r.docView.setSelection(o,n,r,e),Vd&&(i&&Ad(i),a&&Ad(a)),t.visible?r.dom.classList.remove("ProseMirror-hideselection"):(r.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&Vg(r))}r.domObserver.setCurSelection(),r.domObserver.connectSelection()}}const Vd=De||Oe&&dd<63;function Pd(r,e){let{node:t,offset:o}=r.docView.domFromPos(e,0),n=o<t.childNodes.length?t.childNodes[o]:null,i=o?t.childNodes[o-1]:null;if(De&&n&&n.contentEditable=="false")return Za(n);if((!n||n.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(n)return Za(n);if(i)return Za(i)}}function Za(r){return r.contentEditable="true",De&&r.draggable&&(r.draggable=!1,r.wasDraggable=!0),r}function Ad(r){r.contentEditable="false",r.wasDraggable&&(r.draggable=!0,r.wasDraggable=null)}function Vg(r){let e=r.dom.ownerDocument;e.removeEventListener("selectionchange",r.input.hideSelectionGuard);let t=r.domSelectionRange(),o=t.anchorNode,n=t.anchorOffset;e.addEventListener("selectionchange",r.input.hideSelectionGuard=()=>{(t.anchorNode!=o||t.anchorOffset!=n)&&(e.removeEventListener("selectionchange",r.input.hideSelectionGuard),setTimeout(()=>{(!Od(r)||r.state.selection.visible)&&r.dom.classList.remove("ProseMirror-hideselection")},20))})}function Pg(r){let e=r.domSelection(),t=document.createRange();if(!e)return;let o=r.cursorWrapper.dom,n=o.nodeName=="IMG";n?t.setStart(o.parentNode,Se(o)+1):t.setStart(o,0),t.collapse(!0),e.removeAllRanges(),e.addRange(t),!n&&!r.state.selection.visible&&_e&&Jt<=11&&(o.disabled=!0,o.disabled=!1)}function Dd(r,e){if(e instanceof R){let t=r.docView.descAt(e.from);t!=r.lastSelectedViewDesc&&(Id(r),t&&t.selectNode(),r.lastSelectedViewDesc=t)}else Id(r)}function Id(r){r.lastSelectedViewDesc&&(r.lastSelectedViewDesc.parent&&r.lastSelectedViewDesc.deselectNode(),r.lastSelectedViewDesc=void 0)}function $a(r,e,t,o){return r.someProp("createSelectionBetween",n=>n(r,e,t))||j.between(e,t,o)}function Ld(r){return r.editable&&!r.hasFocus()?!1:Rd(r)}function Rd(r){let e=r.domSelectionRange();if(!e.anchorNode)return!1;try{return r.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(r.editable||r.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function Ag(r){let e=r.docView.domFromPos(r.state.selection.anchor,0),t=r.domSelectionRange();return gr(e.node,e.offset,t.anchorNode,t.anchorOffset)}function es(r,e){let{$anchor:t,$head:o}=r.selection,n=e>0?t.max(o):t.min(o),i=n.parent.inlineContent?n.depth?r.doc.resolve(e>0?n.after():n.before()):null:n;return i&&W.findFrom(i,e)}function Xt(r,e){return r.dispatch(r.state.tr.setSelection(e).scrollIntoView()),!0}function zd(r,e,t){let o=r.state.selection;if(o instanceof j)if(t.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=r.state.doc.resolve(n.pos+i.nodeSize*(e<0?-1:1));return Xt(r,new j(o.$anchor,a))}else if(o.empty){if(r.endOfTextblock(e>0?"forward":"backward")){let n=es(r.state,e);return n&&n instanceof R?Xt(r,n):!1}else if(!(Xe&&t.indexOf("m")>-1)){let n=o.$head,i=n.textOffset?null:e<0?n.nodeBefore:n.nodeAfter,a;if(!i||i.isText)return!1;let l=e<0?n.pos-i.nodeSize:n.pos;return i.isAtom||(a=r.docView.descAt(l))&&!a.contentDOM?R.isSelectable(i)?Xt(r,new R(e<0?r.state.doc.resolve(n.pos-i.nodeSize):n)):Vo?Xt(r,new j(r.state.doc.resolve(e<0?l:l+i.nodeSize))):!1:!1}}else return!1;else{if(o instanceof R&&o.node.isInline)return Xt(r,new j(e>0?o.$to:o.$from));{let n=es(r.state,e);return n?Xt(r,n):!1}}}function Gn(r){return r.nodeType==3?r.nodeValue.length:r.childNodes.length}function Io(r,e){let t=r.pmViewDesc;return t&&t.size==0&&(e<0||r.nextSibling||r.nodeName!="BR")}function Jr(r,e){return e<0?Dg(r):Ig(r)}function Dg(r){let e=r.domSelectionRange(),t=e.focusNode,o=e.focusOffset;if(!t)return;let n,i,a=!1;for(st&&t.nodeType==1&&o<Gn(t)&&Io(t.childNodes[o],-1)&&(a=!0);;)if(o>0){if(t.nodeType!=1)break;{let l=t.childNodes[o-1];if(Io(l,-1))n=t,i=--o;else if(l.nodeType==3)t=l,o=t.nodeValue.length;else break}}else{if(_d(t))break;{let l=t.previousSibling;for(;l&&Io(l,-1);)n=t.parentNode,i=Se(l),l=l.previousSibling;if(l)t=l,o=Gn(t);else{if(t=t.parentNode,t==r.dom)break;o=0}}}a?ts(r,t,o):n&&ts(r,n,i)}function Ig(r){let e=r.domSelectionRange(),t=e.focusNode,o=e.focusOffset;if(!t)return;let n=Gn(t),i,a;for(;;)if(o<n){if(t.nodeType!=1)break;let l=t.childNodes[o];if(Io(l,1))i=t,a=++o;else break}else{if(_d(t))break;{let l=t.nextSibling;for(;l&&Io(l,1);)i=l.parentNode,a=Se(l)+1,l=l.nextSibling;if(l)t=l,o=0,n=Gn(t);else{if(t=t.parentNode,t==r.dom)break;o=n=0}}}i&&ts(r,i,a)}function _d(r){let e=r.pmViewDesc;return e&&e.node&&e.node.isBlock}function Lg(r,e){for(;r&&e==r.childNodes.length&&!Oo(r);)e=Se(r)+1,r=r.parentNode;for(;r&&e<r.childNodes.length;){let t=r.childNodes[e];if(t.nodeType==3)return t;if(t.nodeType==1&&t.contentEditable=="false")break;r=t,e=0}}function Rg(r,e){for(;r&&!e&&!Oo(r);)e=Se(r),r=r.parentNode;for(;r&&e;){let t=r.childNodes[e-1];if(t.nodeType==3)return t;if(t.nodeType==1&&t.contentEditable=="false")break;r=t,e=r.childNodes.length}}function ts(r,e,t){if(e.nodeType!=3){let i,a;(a=Lg(e,t))?(e=a,t=0):(i=Rg(e,t))&&(e=i,t=i.nodeValue.length)}let o=r.domSelection();if(!o)return;if(Un(o)){let i=document.createRange();i.setEnd(e,t),i.setStart(e,t),o.removeAllRanges(),o.addRange(i)}else o.extend&&o.extend(e,t);r.domObserver.setCurSelection();let{state:n}=r;setTimeout(()=>{r.state==n&&Tt(r)},50)}function Fd(r,e){let t=r.state.doc.resolve(e);if(!(Oe||ig)&&t.parent.inlineContent){let n=r.coordsAtPos(e);if(e>t.start()){let i=r.coordsAtPos(e-1),a=(i.top+i.bottom)/2;if(a>n.top&&a<n.bottom&&Math.abs(i.left-n.left)>1)return i.left<n.left?"ltr":"rtl"}if(e<t.end()){let i=r.coordsAtPos(e+1),a=(i.top+i.bottom)/2;if(a>n.top&&a<n.bottom&&Math.abs(i.left-n.left)>1)return i.left>n.left?"ltr":"rtl"}}return getComputedStyle(r.dom).direction=="rtl"?"rtl":"ltr"}function jd(r,e,t){let o=r.state.selection;if(o instanceof j&&!o.empty||t.indexOf("s")>-1||Xe&&t.indexOf("m")>-1)return!1;let{$from:n,$to:i}=o;if(!n.parent.inlineContent||r.endOfTextblock(e<0?"up":"down")){let a=es(r.state,e);if(a&&a instanceof R)return Xt(r,a)}if(!n.parent.inlineContent){let a=e<0?n:i,l=o instanceof qe?W.near(a,e):W.findFrom(a,e);return l?Xt(r,l):!1}return!1}function Hd(r,e){if(!(r.state.selection instanceof j))return!0;let{$head:t,$anchor:o,empty:n}=r.state.selection;if(!t.sameParent(o))return!0;if(!n)return!1;if(r.endOfTextblock(e>0?"forward":"backward"))return!0;let i=!t.textOffset&&(e<0?t.nodeBefore:t.nodeAfter);if(i&&!i.isText){let a=r.state.tr;return e<0?a.delete(t.pos-i.nodeSize,t.pos):a.delete(t.pos,t.pos+i.nodeSize),r.dispatch(a),!0}return!1}function Wd(r,e,t){r.domObserver.stop(),e.contentEditable=t,r.domObserver.start()}function zg(r){if(!De||r.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:t}=r.domSelectionRange();if(e&&e.nodeType==1&&t==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let o=e.firstChild;Wd(r,o,"true"),setTimeout(()=>Wd(r,o,"false"),20)}return!1}function _g(r){let e="";return r.ctrlKey&&(e+="c"),r.metaKey&&(e+="m"),r.altKey&&(e+="a"),r.shiftKey&&(e+="s"),e}function Fg(r,e){let t=e.keyCode,o=_g(e);if(t==8||Xe&&t==72&&o=="c")return Hd(r,-1)||Jr(r,-1);if(t==46&&!e.shiftKey||Xe&&t==68&&o=="c")return Hd(r,1)||Jr(r,1);if(t==13||t==27)return!0;if(t==37||Xe&&t==66&&o=="c"){let n=t==37?Fd(r,r.state.selection.from)=="ltr"?-1:1:-1;return zd(r,n,o)||Jr(r,n)}else if(t==39||Xe&&t==70&&o=="c"){let n=t==39?Fd(r,r.state.selection.from)=="ltr"?1:-1:1;return zd(r,n,o)||Jr(r,n)}else{if(t==38||Xe&&t==80&&o=="c")return jd(r,-1,o)||Jr(r,-1);if(t==40||Xe&&t==78&&o=="c")return zg(r)||jd(r,1,o)||Jr(r,1);if(o==(Xe?"m":"c")&&(t==66||t==73||t==89||t==90))return!0}return!1}function rs(r,e){r.someProp("transformCopied",h=>{e=h(e,r)});let t=[],{content:o,openStart:n,openEnd:i}=e;for(;n>1&&i>1&&o.childCount==1&&o.firstChild.childCount==1;){n--,i--;let h=o.firstChild;t.push(h.type.name,h.attrs!=h.type.defaultAttrs?h.attrs:null),o=h.content}let a=r.someProp("clipboardSerializer")||hr.fromSchema(r.state.schema),l=Qd(),c=l.createElement("div");c.appendChild(a.serializeFragment(o,{document:l}));let d=c.firstChild,u,p=0;for(;d&&d.nodeType==1&&(u=Yd[d.nodeName.toLowerCase()]);){for(let h=u.length-1;h>=0;h--){let f=l.createElement(u[h]);for(;c.firstChild;)f.appendChild(c.firstChild);c.appendChild(f),p++}d=c.firstChild}d&&d.nodeType==1&&d.setAttribute("data-pm-slice",`${n} ${i}${p?` -${p}`:""} ${JSON.stringify(t)}`);let m=r.someProp("clipboardTextSerializer",h=>h(e,r))||e.content.textBetween(0,e.content.size,`
|
|
17
|
+
|
|
18
|
+
`);return{dom:c,text:m,slice:e}}function qd(r,e,t,o,n){let i=n.parent.type.spec.code,a,l;if(!t&&!e)return null;let c=e&&(o||i||!t);if(c){if(r.someProp("transformPastedText",m=>{e=m(e,i||o,r)}),i)return e?new A(M.from(r.state.schema.text(e.replace(/\r\n?/g,`
|
|
19
|
+
`))),0,0):A.empty;let p=r.someProp("clipboardTextParser",m=>m(e,n,o,r));if(p)l=p;else{let m=n.marks(),{schema:h}=r.state,f=hr.fromSchema(h);a=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(g=>{let b=a.appendChild(document.createElement("p"));g&&b.appendChild(f.serializeNode(h.text(g,m)))})}}else r.someProp("transformPastedHTML",p=>{t=p(t,r)}),a=qg(t),Vo&&Ug(a);let d=a&&a.querySelector("[data-pm-slice]"),u=d&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(d.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let p=+u[3];p>0;p--){let m=a.firstChild;for(;m&&m.nodeType!=1;)m=m.nextSibling;if(!m)break;a=m}if(l||(l=(r.someProp("clipboardParser")||r.someProp("domParser")||ko.fromSchema(r.state.schema)).parseSlice(a,{preserveWhitespace:!!(c||u),context:n,ruleFromNode(m){return m.nodeName=="BR"&&!m.nextSibling&&m.parentNode&&!jg.test(m.parentNode.nodeName)?{ignore:!0}:null}})),u)l=Kg(Gd(l,+u[1],+u[2]),u[4]);else if(l=A.maxOpen(Hg(l.content,n),!0),l.openStart||l.openEnd){let p=0,m=0;for(let h=l.content.firstChild;p<l.openStart&&!h.type.spec.isolating;p++,h=h.firstChild);for(let h=l.content.lastChild;m<l.openEnd&&!h.type.spec.isolating;m++,h=h.lastChild);l=Gd(l,p,m)}return r.someProp("transformPasted",p=>{l=p(l,r)}),l}const jg=/^(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 Hg(r,e){if(r.childCount<2)return r;for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.index(t)),i,a=[];if(r.forEach(l=>{if(!a)return;let c=n.findWrapping(l.type),d;if(!c)return a=null;if(d=a.length&&i.length&&Kd(c,i,l,a[a.length-1],0))a[a.length-1]=d;else{a.length&&(a[a.length-1]=Jd(a[a.length-1],i.length));let u=Ud(l,c);a.push(u),n=n.matchType(u.type),i=c}}),a)return M.from(a)}return r}function Ud(r,e,t=0){for(let o=e.length-1;o>=t;o--)r=e[o].create(null,M.from(r));return r}function Kd(r,e,t,o,n){if(n<r.length&&n<e.length&&r[n]==e[n]){let i=Kd(r,e,t,o.lastChild,n+1);if(i)return o.copy(o.content.replaceChild(o.childCount-1,i));if(o.contentMatchAt(o.childCount).matchType(n==r.length-1?t.type:r[n+1]))return o.copy(o.content.append(M.from(Ud(t,r,n+1))))}}function Jd(r,e){if(e==0)return r;let t=r.content.replaceChild(r.childCount-1,Jd(r.lastChild,e-1)),o=r.contentMatchAt(r.childCount).fillBefore(M.empty,!0);return r.copy(t.append(o))}function ns(r,e,t,o,n,i){let a=e<0?r.firstChild:r.lastChild,l=a.content;return r.childCount>1&&(i=0),n<o-1&&(l=ns(l,e,t,o,n+1,i)),n>=t&&(l=e<0?a.contentMatchAt(0).fillBefore(l,i<=n).append(l):l.append(a.contentMatchAt(a.childCount).fillBefore(M.empty,!0))),r.replaceChild(e<0?0:r.childCount-1,a.copy(l))}function Gd(r,e,t){return e<r.openStart&&(r=new A(ns(r.content,-1,e,r.openStart,0,r.openEnd),e,r.openEnd)),t<r.openEnd&&(r=new A(ns(r.content,1,t,r.openEnd,0,0),r.openStart,t)),r}const Yd={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 Xd=null;function Qd(){return Xd||(Xd=document.implementation.createHTMLDocument("title"))}let is=null;function Wg(r){let e=window.trustedTypes;return e?(is||(is=e.defaultPolicy||e.createPolicy("ProseMirrorClipboard",{createHTML:t=>t})),is.createHTML(r)):r}function qg(r){let e=/^(\s*<meta [^>]*>)*/.exec(r);e&&(r=r.slice(e[0].length));let t=Qd().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(r),n;if((n=o&&Yd[o[1].toLowerCase()])&&(r=n.map(i=>"<"+i+">").join("")+r+n.map(i=>"</"+i+">").reverse().join("")),t.innerHTML=Wg(r),n)for(let i=0;i<n.length;i++)t=t.querySelector(n[i])||t;return t}function Ug(r){let e=r.querySelectorAll(Oe?"span:not([class]):not([style])":"span.Apple-converted-space");for(let t=0;t<e.length;t++){let o=e[t];o.childNodes.length==1&&o.textContent==" "&&o.parentNode&&o.parentNode.replaceChild(r.ownerDocument.createTextNode(" "),o)}}function Kg(r,e){if(!r.size)return r;let t=r.content.firstChild.type.schema,o;try{o=JSON.parse(e)}catch{return r}let{content:n,openStart:i,openEnd:a}=r;for(let l=o.length-2;l>=0;l-=2){let c=t.nodes[o[l]];if(!c||c.hasRequiredAttrs())break;n=M.from(c.create(o[l+1],n)),i++,a++}return new A(n,i,a)}const Ie={},Le={},Jg={touchstart:!0,touchmove:!0};class Gg{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.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function Yg(r){for(let e in Ie){let t=Ie[e];r.dom.addEventListener(e,r.input.eventHandlers[e]=o=>{Qg(r,o)&&!ss(r,o)&&(r.editable||!(o.type in Le))&&t(r,o)},Jg[e]?{passive:!0}:void 0)}De&&r.dom.addEventListener("input",()=>null),as(r)}function Qt(r,e){r.input.lastSelectionOrigin=e,r.input.lastSelectionTime=Date.now()}function Xg(r){r.domObserver.stop();for(let e in r.input.eventHandlers)r.dom.removeEventListener(e,r.input.eventHandlers[e]);clearTimeout(r.input.composingTimeout),clearTimeout(r.input.lastIOSEnterFallbackTimeout)}function as(r){r.someProp("handleDOMEvents",e=>{for(let t in e)r.input.eventHandlers[t]||r.dom.addEventListener(t,r.input.eventHandlers[t]=o=>ss(r,o))})}function ss(r,e){return r.someProp("handleDOMEvents",t=>{let o=t[e.type];return o?o(r,e)||e.defaultPrevented:!1})}function Qg(r,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target;t!=r.dom;t=t.parentNode)if(!t||t.nodeType==11||t.pmViewDesc&&t.pmViewDesc.stopEvent(e))return!1;return!0}function Zg(r,e){!ss(r,e)&&Ie[e.type]&&(r.editable||!(e.type in Le))&&Ie[e.type](r,e)}Le.keydown=(r,e)=>{let t=e;if(r.input.shiftKey=t.keyCode==16||t.shiftKey,!$d(r,t)&&(r.input.lastKeyCode=t.keyCode,r.input.lastKeyCodeTime=Date.now(),!(Bt&&Oe&&t.keyCode==13)))if(t.keyCode!=229&&r.domObserver.forceFlush(),Ur&&t.keyCode==13&&!t.ctrlKey&&!t.altKey&&!t.metaKey){let o=Date.now();r.input.lastIOSEnter=o,r.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{r.input.lastIOSEnter==o&&(r.someProp("handleKeyDown",n=>n(r,br(13,"Enter"))),r.input.lastIOSEnter=0)},200)}else r.someProp("handleKeyDown",o=>o(r,t))||Fg(r,t)?t.preventDefault():Qt(r,"key")},Le.keyup=(r,e)=>{e.keyCode==16&&(r.input.shiftKey=!1)},Le.keypress=(r,e)=>{let t=e;if($d(r,t)||!t.charCode||t.ctrlKey&&!t.altKey||Xe&&t.metaKey)return;if(r.someProp("handleKeyPress",n=>n(r,t))){t.preventDefault();return}let o=r.state.selection;if(!(o instanceof j)||!o.$from.sameParent(o.$to)){let n=String.fromCharCode(t.charCode),i=()=>r.state.tr.insertText(n).scrollIntoView();!/[\r\n]/.test(n)&&!r.someProp("handleTextInput",a=>a(r,o.$from.pos,o.$to.pos,n,i))&&r.dispatch(i()),t.preventDefault()}};function Yn(r){return{left:r.clientX,top:r.clientY}}function $g(r,e){let t=e.x-r.clientX,o=e.y-r.clientY;return t*t+o*o<100}function ls(r,e,t,o,n){if(o==-1)return!1;let i=r.state.doc.resolve(o);for(let a=i.depth+1;a>0;a--)if(r.someProp(e,l=>a>i.depth?l(r,t,i.nodeAfter,i.before(a),n,!0):l(r,t,i.node(a),i.before(a),n,!1)))return!0;return!1}function Gr(r,e,t){if(r.focused||r.focus(),r.state.selection.eq(e))return;let o=r.state.tr.setSelection(e);o.setMeta("pointer",!0),r.dispatch(o)}function e0(r,e){if(e==-1)return!1;let t=r.state.doc.resolve(e),o=t.nodeAfter;return o&&o.isAtom&&R.isSelectable(o)?(Gr(r,new R(t)),!0):!1}function t0(r,e){if(e==-1)return!1;let t=r.state.selection,o,n;t instanceof R&&(o=t.node);let i=r.state.doc.resolve(e);for(let a=i.depth+1;a>0;a--){let l=a>i.depth?i.nodeAfter:i.node(a);if(R.isSelectable(l)){o&&t.$from.depth>0&&a>=t.$from.depth&&i.before(t.$from.depth+1)==t.$from.pos?n=i.before(t.$from.depth):n=i.before(a);break}}return n!=null?(Gr(r,R.create(r.state.doc,n)),!0):!1}function r0(r,e,t,o,n){return ls(r,"handleClickOn",e,t,o)||r.someProp("handleClick",i=>i(r,e,o))||(n?t0(r,t):e0(r,t))}function o0(r,e,t,o){return ls(r,"handleDoubleClickOn",e,t,o)||r.someProp("handleDoubleClick",n=>n(r,e,o))}function n0(r,e,t,o){return ls(r,"handleTripleClickOn",e,t,o)||r.someProp("handleTripleClick",n=>n(r,e,o))||i0(r,t,o)}function i0(r,e,t){if(t.button!=0)return!1;let o=r.state.doc;if(e==-1)return o.inlineContent?(Gr(r,j.create(o,0,o.content.size)),!0):!1;let n=o.resolve(e);for(let i=n.depth+1;i>0;i--){let a=i>n.depth?n.nodeAfter:n.node(i),l=n.before(i);if(a.inlineContent)Gr(r,j.create(o,l+1,l+1+a.content.size));else if(R.isSelectable(a))Gr(r,R.create(o,l));else continue;return!0}}function cs(r){return Xn(r)}const Zd=Xe?"metaKey":"ctrlKey";Ie.mousedown=(r,e)=>{let t=e;r.input.shiftKey=t.shiftKey;let o=cs(r),n=Date.now(),i="singleClick";n-r.input.lastClick.time<500&&$g(t,r.input.lastClick)&&!t[Zd]&&r.input.lastClick.button==t.button&&(r.input.lastClick.type=="singleClick"?i="doubleClick":r.input.lastClick.type=="doubleClick"&&(i="tripleClick")),r.input.lastClick={time:n,x:t.clientX,y:t.clientY,type:i,button:t.button};let a=r.posAtCoords(Yn(t));a&&(i=="singleClick"?(r.input.mouseDown&&r.input.mouseDown.done(),r.input.mouseDown=new a0(r,a,t,!!o)):(i=="doubleClick"?o0:n0)(r,a.pos,a.inside,t)?t.preventDefault():Qt(r,"pointer"))};class a0{constructor(e,t,o,n){this.view=e,this.pos=t,this.event=o,this.flushed=n,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!o[Zd],this.allowDefault=o.shiftKey;let i,a;if(t.inside>-1)i=e.state.doc.nodeAt(t.inside),a=t.inside;else{let u=e.state.doc.resolve(t.pos);i=u.parent,a=u.depth?u.before():0}const l=n?null:o.target,c=l?e.docView.nearestDesc(l,!0):null;this.target=c&&c.dom.nodeType==1?c.dom:null;let{selection:d}=e.state;(o.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||d instanceof R&&d.from<=a&&d.to>a)&&(this.mightDrag={node:i,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&st&&!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()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),Qt(e,"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(()=>Tt(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(Yn(e))),this.updateAllowDefault(e),this.allowDefault||!t?Qt(this.view,"pointer"):r0(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||De&&this.mightDrag&&!this.mightDrag.node.isAtom||Oe&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(Gr(this.view,W.near(this.view.state.doc.resolve(t.pos))),e.preventDefault()):Qt(this.view,"pointer")}move(e){this.updateAllowDefault(e),Qt(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}Ie.touchstart=r=>{r.input.lastTouch=Date.now(),cs(r),Qt(r,"pointer")},Ie.touchmove=r=>{r.input.lastTouch=Date.now(),Qt(r,"pointer")},Ie.contextmenu=r=>cs(r);function $d(r,e){return r.composing?!0:De&&Math.abs(e.timeStamp-r.input.compositionEndedAt)<500?(r.input.compositionEndedAt=-2e8,!0):!1}const s0=Bt?5e3:-1;Le.compositionstart=Le.compositionupdate=r=>{if(!r.composing){r.domObserver.flush();let{state:e}=r,t=e.selection.$to;if(e.selection instanceof j&&(e.storedMarks||!t.textOffset&&t.parentOffset&&t.nodeBefore.marks.some(o=>o.type.spec.inclusive===!1)))r.markCursor=r.state.storedMarks||t.marks(),Xn(r,!0),r.markCursor=null;else if(Xn(r,!e.selection.empty),st&&e.selection.empty&&t.parentOffset&&!t.textOffset&&t.nodeBefore.marks.length){let o=r.domSelectionRange();for(let n=o.focusNode,i=o.focusOffset;n&&n.nodeType==1&&i!=0;){let a=i<0?n.lastChild:n.childNodes[i-1];if(!a)break;if(a.nodeType==3){let l=r.domSelection();l&&l.collapse(a,a.nodeValue.length);break}else n=a,i=-1}}r.input.composing=!0}eu(r,s0)},Le.compositionend=(r,e)=>{r.composing&&(r.input.composing=!1,r.input.compositionEndedAt=e.timeStamp,r.input.compositionPendingChanges=r.domObserver.pendingRecords().length?r.input.compositionID:0,r.input.compositionNode=null,r.input.compositionPendingChanges&&Promise.resolve().then(()=>r.domObserver.flush()),r.input.compositionID++,eu(r,20))};function eu(r,e){clearTimeout(r.input.composingTimeout),e>-1&&(r.input.composingTimeout=setTimeout(()=>Xn(r),e))}function tu(r){for(r.composing&&(r.input.composing=!1,r.input.compositionEndedAt=c0());r.input.compositionNodes.length>0;)r.input.compositionNodes.pop().markParentsDirty()}function l0(r){let e=r.domSelectionRange();if(!e.focusNode)return null;let t=eg(e.focusNode,e.focusOffset),o=tg(e.focusNode,e.focusOffset);if(t&&o&&t!=o){let n=o.pmViewDesc,i=r.domObserver.lastChangedTextNode;if(t==i||o==i)return i;if(!n||!n.isText(o.nodeValue))return o;if(r.input.compositionNode==o){let a=t.pmViewDesc;if(!(!a||!a.isText(t.nodeValue)))return o}}return t||o}function c0(){let r=document.createEvent("Event");return r.initEvent("event",!0,!0),r.timeStamp}function Xn(r,e=!1){if(!(Bt&&r.domObserver.flushingSoon>=0)){if(r.domObserver.forceFlush(),tu(r),e||r.docView&&r.docView.dirty){let t=Qa(r),o=r.state.selection;return t&&!t.eq(o)?r.dispatch(r.state.tr.setSelection(t)):(r.markCursor||e)&&!o.$from.node(o.$from.sharedDepth(o.to)).inlineContent?r.dispatch(r.state.tr.deleteSelection()):r.updateState(r.state),!0}return!1}}function d0(r,e){if(!r.dom.parentNode)return;let t=r.dom.parentNode.appendChild(document.createElement("div"));t.appendChild(e),t.style.cssText="position: fixed; left: -10000px; top: 10px";let o=getSelection(),n=document.createRange();n.selectNodeContents(e),r.dom.blur(),o.removeAllRanges(),o.addRange(n),setTimeout(()=>{t.parentNode&&t.parentNode.removeChild(t),r.focus()},50)}const Lo=_e&&Jt<15||Ur&&ag<604;Ie.copy=Le.cut=(r,e)=>{let t=e,o=r.state.selection,n=t.type=="cut";if(o.empty)return;let i=Lo?null:t.clipboardData,a=o.content(),{dom:l,text:c}=rs(r,a);i?(t.preventDefault(),i.clearData(),i.setData("text/html",l.innerHTML),i.setData("text/plain",c)):d0(r,l),n&&r.dispatch(r.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function u0(r){return r.openStart==0&&r.openEnd==0&&r.content.childCount==1?r.content.firstChild:null}function p0(r,e){if(!r.dom.parentNode)return;let t=r.input.shiftKey||r.state.selection.$from.parent.type.spec.code,o=r.dom.parentNode.appendChild(document.createElement(t?"textarea":"div"));t||(o.contentEditable="true"),o.style.cssText="position: fixed; left: -10000px; top: 10px",o.focus();let n=r.input.shiftKey&&r.input.lastKeyCode!=45;setTimeout(()=>{r.focus(),o.parentNode&&o.parentNode.removeChild(o),t?Ro(r,o.value,null,n,e):Ro(r,o.textContent,o.innerHTML,n,e)},50)}function Ro(r,e,t,o,n){let i=qd(r,e,t,o,r.state.selection.$from);if(r.someProp("handlePaste",c=>c(r,n,i||A.empty)))return!0;if(!i)return!1;let a=u0(i),l=a?r.state.tr.replaceSelectionWith(a,o):r.state.tr.replaceSelection(i);return r.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function ru(r){let e=r.getData("text/plain")||r.getData("Text");if(e)return e;let t=r.getData("text/uri-list");return t?t.replace(/\r?\n/g," "):""}Le.paste=(r,e)=>{let t=e;if(r.composing&&!Bt)return;let o=Lo?null:t.clipboardData,n=r.input.shiftKey&&r.input.lastKeyCode!=45;o&&Ro(r,ru(o),o.getData("text/html"),n,t)?t.preventDefault():p0(r,t)};class ou{constructor(e,t,o){this.slice=e,this.move=t,this.node=o}}const m0=Xe?"altKey":"ctrlKey";function nu(r,e){let t=r.someProp("dragCopies",o=>!o(e));return t??!e[m0]}Ie.dragstart=(r,e)=>{let t=e,o=r.input.mouseDown;if(o&&o.done(),!t.dataTransfer)return;let n=r.state.selection,i=n.empty?null:r.posAtCoords(Yn(t)),a;if(!(i&&i.pos>=n.from&&i.pos<=(n instanceof R?n.to-1:n.to))){if(o&&o.mightDrag)a=R.create(r.state.doc,o.mightDrag.pos);else if(t.target&&t.target.nodeType==1){let p=r.docView.nearestDesc(t.target,!0);p&&p.node.type.spec.draggable&&p!=r.docView&&(a=R.create(r.state.doc,p.posBefore))}}let l=(a||r.state.selection).content(),{dom:c,text:d,slice:u}=rs(r,l);(!t.dataTransfer.files.length||!Oe||dd>120)&&t.dataTransfer.clearData(),t.dataTransfer.setData(Lo?"Text":"text/html",c.innerHTML),t.dataTransfer.effectAllowed="copyMove",Lo||t.dataTransfer.setData("text/plain",d),r.dragging=new ou(u,nu(r,t),a)},Ie.dragend=r=>{let e=r.dragging;window.setTimeout(()=>{r.dragging==e&&(r.dragging=null)},50)},Le.dragover=Le.dragenter=(r,e)=>e.preventDefault(),Le.drop=(r,e)=>{let t=e,o=r.dragging;if(r.dragging=null,!t.dataTransfer)return;let n=r.posAtCoords(Yn(t));if(!n)return;let i=r.state.doc.resolve(n.pos),a=o&&o.slice;a?r.someProp("transformPasted",f=>{a=f(a,r)}):a=qd(r,ru(t.dataTransfer),Lo?null:t.dataTransfer.getData("text/html"),!1,i);let l=!!(o&&nu(r,t));if(r.someProp("handleDrop",f=>f(r,t,a||A.empty,l))){t.preventDefault();return}if(!a)return;t.preventDefault();let c=a?Jc(r.state.doc,i.pos,a):i.pos;c==null&&(c=i.pos);let d=r.state.tr;if(l){let{node:f}=o;f?f.replace(d):d.deleteSelection()}let u=d.mapping.map(c),p=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,m=d.doc;if(p?d.replaceRangeWith(u,u,a.content.firstChild):d.replaceRange(u,u,a),d.doc.eq(m))return;let h=d.doc.resolve(u);if(p&&R.isSelectable(a.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(a.content.firstChild))d.setSelection(new R(h));else{let f=d.mapping.map(c);d.mapping.maps[d.mapping.maps.length-1].forEach((g,b,y,k)=>f=k),d.setSelection($a(r,h,d.doc.resolve(f)))}r.focus(),r.dispatch(d.setMeta("uiEvent","drop"))},Ie.focus=r=>{r.input.lastFocus=Date.now(),r.focused||(r.domObserver.stop(),r.dom.classList.add("ProseMirror-focused"),r.domObserver.start(),r.focused=!0,setTimeout(()=>{r.docView&&r.hasFocus()&&!r.domObserver.currentSelection.eq(r.domSelectionRange())&&Tt(r)},20))},Ie.blur=(r,e)=>{let t=e;r.focused&&(r.domObserver.stop(),r.dom.classList.remove("ProseMirror-focused"),r.domObserver.start(),t.relatedTarget&&r.dom.contains(t.relatedTarget)&&r.domObserver.currentSelection.clear(),r.focused=!1)},Ie.beforeinput=(r,e)=>{if(Oe&&Bt&&e.inputType=="deleteContentBackward"){r.domObserver.flushSoon();let{domChangeCount:o}=r.input;setTimeout(()=>{if(r.input.domChangeCount!=o||(r.dom.blur(),r.focus(),r.someProp("handleKeyDown",i=>i(r,br(8,"Backspace")))))return;let{$cursor:n}=r.state.selection;n&&n.pos>0&&r.dispatch(r.state.tr.delete(n.pos-1,n.pos).scrollIntoView())},50)}};for(let r in Le)Ie[r]=Le[r];function zo(r,e){if(r==e)return!0;for(let t in r)if(r[t]!==e[t])return!1;for(let t in e)if(!(t in r))return!1;return!0}class Qn{constructor(e,t){this.toDOM=e,this.spec=t||xr,this.side=this.spec.side||0}map(e,t,o,n){let{pos:i,deleted:a}=e.mapResult(t.from+n,this.side<0?-1:1);return a?null:new Ze(i-o,i-o,this)}valid(){return!0}eq(e){return this==e||e instanceof Qn&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&zo(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Zt{constructor(e,t){this.attrs=e,this.spec=t||xr}map(e,t,o,n){let i=e.map(t.from+n,this.spec.inclusiveStart?-1:1)-o,a=e.map(t.to+n,this.spec.inclusiveEnd?1:-1)-o;return i>=a?null:new Ze(i,a,this)}valid(e,t){return t.from<t.to}eq(e){return this==e||e instanceof Zt&&zo(this.attrs,e.attrs)&&zo(this.spec,e.spec)}static is(e){return e.type instanceof Zt}destroy(){}}class ds{constructor(e,t){this.attrs=e,this.spec=t||xr}map(e,t,o,n){let i=e.mapResult(t.from+n,1);if(i.deleted)return null;let a=e.mapResult(t.to+n,-1);return a.deleted||a.pos<=i.pos?null:new Ze(i.pos-o,a.pos-o,this)}valid(e,t){let{index:o,offset:n}=e.content.findIndex(t.from),i;return n==t.from&&!(i=e.child(o)).isText&&n+i.nodeSize==t.to}eq(e){return this==e||e instanceof ds&&zo(this.attrs,e.attrs)&&zo(this.spec,e.spec)}destroy(){}}class Ze{constructor(e,t,o){this.from=e,this.to=t,this.type=o}copy(e,t){return new Ze(e,t,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,o){return this.type.map(e,this,t,o)}static widget(e,t,o){return new Ze(e,e,new Qn(t,o))}static inline(e,t,o,n){return new Ze(e,t,new Zt(o,n))}static node(e,t,o,n){return new Ze(e,t,new ds(o,n))}get spec(){return this.type.spec}get inline(){return this.type instanceof Zt}get widget(){return this.type instanceof Qn}}const Yr=[],xr={};class fe{constructor(e,t){this.local=e.length?e:Yr,this.children=t.length?t:Yr}static create(e,t){return t.length?Zn(t,e,0,xr):Ve}find(e,t,o){let n=[];return this.findInner(e??0,t??1e9,n,0,o),n}findInner(e,t,o,n,i){for(let a=0;a<this.local.length;a++){let l=this.local[a];l.from<=t&&l.to>=e&&(!i||i(l.spec))&&o.push(l.copy(l.from+n,l.to+n))}for(let a=0;a<this.children.length;a+=3)if(this.children[a]<t&&this.children[a+1]>e){let l=this.children[a]+1;this.children[a+2].findInner(e-l,t-l,o,n+l,i)}}map(e,t,o){return this==Ve||e.maps.length==0?this:this.mapInner(e,t,0,0,o||xr)}mapInner(e,t,o,n,i){let a;for(let l=0;l<this.local.length;l++){let c=this.local[l].map(e,o,n);c&&c.type.valid(t,c)?(a||(a=[])).push(c):i.onRemove&&i.onRemove(this.local[l].spec)}return this.children.length?h0(this.children,a||[],e,t,o,n,i):a?new fe(a.sort(kr),Yr):Ve}add(e,t){return t.length?this==Ve?fe.create(e,t):this.addInner(e,t,0):this}addInner(e,t,o){let n,i=0;e.forEach((l,c)=>{let d=c+o,u;if(u=au(t,l,d)){for(n||(n=this.children.slice());i<n.length&&n[i]<c;)i+=3;n[i]==c?n[i+2]=n[i+2].addInner(l,u,d+1):n.splice(i,0,c,c+l.nodeSize,Zn(u,l,d+1,xr)),i+=3}});let a=iu(i?su(t):t,-o);for(let l=0;l<a.length;l++)a[l].type.valid(e,a[l])||a.splice(l--,1);return new fe(a.length?this.local.concat(a).sort(kr):this.local,n||this.children)}remove(e){return e.length==0||this==Ve?this:this.removeInner(e,0)}removeInner(e,t){let o=this.children,n=this.local;for(let i=0;i<o.length;i+=3){let a,l=o[i]+t,c=o[i+1]+t;for(let u=0,p;u<e.length;u++)(p=e[u])&&p.from>l&&p.to<c&&(e[u]=null,(a||(a=[])).push(p));if(!a)continue;o==this.children&&(o=this.children.slice());let d=o[i+2].removeInner(a,l+1);d!=Ve?o[i+2]=d:(o.splice(i,3),i-=3)}if(n.length){for(let i=0,a;i<e.length;i++)if(a=e[i])for(let l=0;l<n.length;l++)n[l].eq(a,t)&&(n==this.local&&(n=this.local.slice()),n.splice(l--,1))}return o==this.children&&n==this.local?this:n.length||o.length?new fe(n,o):Ve}forChild(e,t){if(this==Ve)return this;if(t.isLeaf)return fe.empty;let o,n;for(let l=0;l<this.children.length;l+=3)if(this.children[l]>=e){this.children[l]==e&&(o=this.children[l+2]);break}let i=e+1,a=i+t.content.size;for(let l=0;l<this.local.length;l++){let c=this.local[l];if(c.from<a&&c.to>i&&c.type instanceof Zt){let d=Math.max(i,c.from)-i,u=Math.min(a,c.to)-i;d<u&&(n||(n=[])).push(c.copy(d,u))}}if(n){let l=new fe(n.sort(kr),Yr);return o?new $t([l,o]):l}return o||Ve}eq(e){if(this==e)return!0;if(!(e instanceof fe)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(let t=0;t<this.children.length;t+=3)if(this.children[t]!=e.children[t]||this.children[t+1]!=e.children[t+1]||!this.children[t+2].eq(e.children[t+2]))return!1;return!0}locals(e){return us(this.localsInner(e))}localsInner(e){if(this==Ve)return Yr;if(e.inlineContent||!this.local.some(Zt.is))return this.local;let t=[];for(let o=0;o<this.local.length;o++)this.local[o].type instanceof Zt||t.push(this.local[o]);return t}forEachSet(e){e(this)}}fe.empty=new fe([],[]),fe.removeOverlap=us;const Ve=fe.empty;class $t{constructor(e){this.members=e}map(e,t){const o=this.members.map(n=>n.map(e,t,xr));return $t.from(o)}forChild(e,t){if(t.isLeaf)return fe.empty;let o=[];for(let n=0;n<this.members.length;n++){let i=this.members[n].forChild(e,t);i!=Ve&&(i instanceof $t?o=o.concat(i.members):o.push(i))}return $t.from(o)}eq(e){if(!(e instanceof $t)||e.members.length!=this.members.length)return!1;for(let t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0}locals(e){let t,o=!0;for(let n=0;n<this.members.length;n++){let i=this.members[n].localsInner(e);if(i.length)if(!t)t=i;else{o&&(t=t.slice(),o=!1);for(let a=0;a<i.length;a++)t.push(i[a])}}return t?us(o?t:t.sort(kr)):Yr}static from(e){switch(e.length){case 0:return Ve;case 1:return e[0];default:return new $t(e.every(t=>t instanceof fe)?e:e.reduce((t,o)=>t.concat(o instanceof fe?o:o.members),[]))}}forEachSet(e){for(let t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}}function h0(r,e,t,o,n,i,a){let l=r.slice();for(let d=0,u=i;d<t.maps.length;d++){let p=0;t.maps[d].forEach((m,h,f,g)=>{let b=g-f-(h-m);for(let y=0;y<l.length;y+=3){let k=l[y+1];if(k<0||m>k+u-p)continue;let v=l[y]+u-p;h>=v?l[y+1]=m<=v?-2:-1:m>=u&&b&&(l[y]+=b,l[y+1]+=b)}p+=b}),u=t.maps[d].map(u,-1)}let c=!1;for(let d=0;d<l.length;d+=3)if(l[d+1]<0){if(l[d+1]==-2){c=!0,l[d+1]=-1;continue}let u=t.map(r[d]+i),p=u-n;if(p<0||p>=o.content.size){c=!0;continue}let m=t.map(r[d+1]+i,-1),h=m-n,{index:f,offset:g}=o.content.findIndex(p),b=o.maybeChild(f);if(b&&g==p&&g+b.nodeSize==h){let y=l[d+2].mapInner(t,b,u+1,r[d]+i+1,a);y!=Ve?(l[d]=p,l[d+1]=h,l[d+2]=y):(l[d+1]=-2,c=!0)}else c=!0}if(c){let d=f0(l,r,e,t,n,i,a),u=Zn(d,o,0,a);e=u.local;for(let p=0;p<l.length;p+=3)l[p+1]<0&&(l.splice(p,3),p-=3);for(let p=0,m=0;p<u.children.length;p+=3){let h=u.children[p];for(;m<l.length&&l[m]<h;)m+=3;l.splice(m,0,u.children[p],u.children[p+1],u.children[p+2])}}return new fe(e.sort(kr),l)}function iu(r,e){if(!e||!r.length)return r;let t=[];for(let o=0;o<r.length;o++){let n=r[o];t.push(new Ze(n.from+e,n.to+e,n.type))}return t}function f0(r,e,t,o,n,i,a){function l(c,d){for(let u=0;u<c.local.length;u++){let p=c.local[u].map(o,n,d);p?t.push(p):a.onRemove&&a.onRemove(c.local[u].spec)}for(let u=0;u<c.children.length;u+=3)l(c.children[u+2],c.children[u]+d+1)}for(let c=0;c<r.length;c+=3)r[c+1]==-1&&l(r[c+2],e[c]+i+1);return t}function au(r,e,t){if(e.isLeaf)return null;let o=t+e.nodeSize,n=null;for(let i=0,a;i<r.length;i++)(a=r[i])&&a.from>t&&a.to<o&&((n||(n=[])).push(a),r[i]=null);return n}function su(r){let e=[];for(let t=0;t<r.length;t++)r[t]!=null&&e.push(r[t]);return e}function Zn(r,e,t,o){let n=[],i=!1;e.forEach((l,c)=>{let d=au(r,l,c+t);if(d){i=!0;let u=Zn(d,l,t+c+1,o);u!=Ve&&n.push(c,c+l.nodeSize,u)}});let a=iu(i?su(r):r,-t).sort(kr);for(let l=0;l<a.length;l++)a[l].type.valid(e,a[l])||(o.onRemove&&o.onRemove(a[l].spec),a.splice(l--,1));return a.length||n.length?new fe(a,n):Ve}function kr(r,e){return r.from-e.from||r.to-e.to}function us(r){let e=r;for(let t=0;t<e.length-1;t++){let o=e[t];if(o.from!=o.to)for(let n=t+1;n<e.length;n++){let i=e[n];if(i.from==o.from){i.to!=o.to&&(e==r&&(e=r.slice()),e[n]=i.copy(i.from,o.to),lu(e,n+1,i.copy(o.to,i.to)));continue}else{i.from<o.to&&(e==r&&(e=r.slice()),e[t]=o.copy(o.from,i.from),lu(e,n,o.copy(i.from,o.to)));break}}}return e}function lu(r,e,t){for(;e<r.length&&kr(t,r[e])>0;)e++;r.splice(e,0,t)}function ps(r){let e=[];return r.someProp("decorations",t=>{let o=t(r.state);o&&o!=Ve&&e.push(o)}),r.cursorWrapper&&e.push(fe.create(r.state.doc,[r.cursorWrapper.deco])),$t.from(e)}const g0={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},b0=_e&&Jt<=11;class w0{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class y0{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new w0,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(o=>{for(let n=0;n<o.length;n++)this.queue.push(o[n]);_e&&Jt<=11&&o.some(n=>n.type=="childList"&&n.removedNodes.length||n.type=="characterData"&&n.oldValue.length>n.target.nodeValue.length)?this.flushSoon():this.flush()}),b0&&(this.onCharData=o=>{this.queue.push({target:o.target,type:"characterData",oldValue:o.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,g0)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);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(Ld(this.view)){if(this.suppressingSelectionUpdates)return Tt(this.view);if(_e&&Jt<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&gr(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t=new Set,o;for(let i=e.focusNode;i;i=qr(i))t.add(i);for(let i=e.anchorNode;i;i=qr(i))if(t.has(i)){o=i;break}let n=o&&this.view.docView.nearestDesc(o);if(n&&n.ignoreMutation({type:"selection",target:o.nodeType==3?o.parentNode:o}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.pendingRecords();t.length&&(this.queue=[]);let o=e.domSelectionRange(),n=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(o)&&Ld(e)&&!this.ignoreSelectionChange(o),i=-1,a=-1,l=!1,c=[];if(e.editable)for(let u=0;u<t.length;u++){let p=this.registerMutation(t[u],c);p&&(i=i<0?p.from:Math.min(p.from,i),a=a<0?p.to:Math.max(p.to,a),p.typeOver&&(l=!0))}if(st&&c.length){let u=c.filter(p=>p.nodeName=="BR");if(u.length==2){let[p,m]=u;p.parentNode&&p.parentNode.parentNode==m.parentNode?m.remove():p.remove()}else{let{focusNode:p}=this.currentSelection;for(let m of u){let h=m.parentNode;h&&h.nodeName=="LI"&&(!p||k0(e,p)!=h)&&m.remove()}}}let d=null;i<0&&n&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&Un(o)&&(d=Qa(e))&&d.eq(W.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,Tt(e),this.currentSelection.set(o),e.scrollToSelection()):(i>-1||n)&&(i>-1&&(e.docView.markDirty(i,a),v0(e)),this.handleDOMChange(i,a,l,c),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(o)||Tt(e),this.currentSelection.set(o))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let o=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(o==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!o||o.ignoreMutation(e))return null;if(e.type=="childList"){for(let u=0;u<e.addedNodes.length;u++){let p=e.addedNodes[u];t.push(p),p.nodeType==3&&(this.lastChangedTextNode=p)}if(o.contentDOM&&o.contentDOM!=o.dom&&!o.contentDOM.contains(e.target))return{from:o.posBefore,to:o.posAfter};let n=e.previousSibling,i=e.nextSibling;if(_e&&Jt<=11&&e.addedNodes.length)for(let u=0;u<e.addedNodes.length;u++){let{previousSibling:p,nextSibling:m}=e.addedNodes[u];(!p||Array.prototype.indexOf.call(e.addedNodes,p)<0)&&(n=p),(!m||Array.prototype.indexOf.call(e.addedNodes,m)<0)&&(i=m)}let a=n&&n.parentNode==e.target?Se(n)+1:0,l=o.localPosFromDOM(e.target,a,-1),c=i&&i.parentNode==e.target?Se(i):e.target.childNodes.length,d=o.localPosFromDOM(e.target,c,1);return{from:l,to:d}}else return e.type=="attributes"?{from:o.posAtStart-o.border,to:o.posAtEnd+o.border}:(this.lastChangedTextNode=e.target,{from:o.posAtStart,to:o.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let cu=new WeakMap,du=!1;function v0(r){if(!cu.has(r)&&(cu.set(r,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(r.dom).whiteSpace)!==-1)){if(r.requiresGeckoHackNode=st,du)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."),du=!0}}function uu(r,e){let t=e.startContainer,o=e.startOffset,n=e.endContainer,i=e.endOffset,a=r.domAtPos(r.state.selection.anchor);return gr(a.node,a.offset,n,i)&&([t,o,n,i]=[n,i,t,o]),{anchorNode:t,anchorOffset:o,focusNode:n,focusOffset:i}}function x0(r,e){if(e.getComposedRanges){let n=e.getComposedRanges(r.root)[0];if(n)return uu(r,n)}let t;function o(n){n.preventDefault(),n.stopImmediatePropagation(),t=n.getTargetRanges()[0]}return r.dom.addEventListener("beforeinput",o,!0),document.execCommand("indent"),r.dom.removeEventListener("beforeinput",o,!0),t?uu(r,t):null}function k0(r,e){for(let t=e.parentNode;t&&t!=r.dom;t=t.parentNode){let o=r.docView.nearestDesc(t,!0);if(o&&o.node.isBlock)return t}return null}function E0(r,e,t){let{node:o,fromOffset:n,toOffset:i,from:a,to:l}=r.docView.parseRange(e,t),c=r.domSelectionRange(),d,u=c.anchorNode;if(u&&r.dom.contains(u.nodeType==1?u:u.parentNode)&&(d=[{node:u,offset:c.anchorOffset}],Un(c)||d.push({node:c.focusNode,offset:c.focusOffset})),Oe&&r.input.lastKeyCode===8)for(let b=i;b>n;b--){let y=o.childNodes[b-1],k=y.pmViewDesc;if(y.nodeName=="BR"&&!k){i=b;break}if(!k||k.size)break}let p=r.state.doc,m=r.someProp("domParser")||ko.fromSchema(r.state.schema),h=p.resolve(a),f=null,g=m.parse(o,{topNode:h.parent,topMatch:h.parent.contentMatchAt(h.index()),topOpen:!0,from:n,to:i,preserveWhitespace:h.parent.type.whitespace=="pre"?"full":!0,findPositions:d,ruleFromNode:S0,context:h});if(d&&d[0].pos!=null){let b=d[0].pos,y=d[1]&&d[1].pos;y==null&&(y=b),f={anchor:b+a,head:y+a}}return{doc:g,sel:f,from:a,to:l}}function S0(r){let e=r.pmViewDesc;if(e)return e.parseRule();if(r.nodeName=="BR"&&r.parentNode){if(De&&/^(ul|ol)$/i.test(r.parentNode.nodeName)){let t=document.createElement("div");return t.appendChild(document.createElement("li")),{skip:t}}else if(r.parentNode.lastChild==r||De&&/^(tr|table)$/i.test(r.parentNode.nodeName))return{ignore:!0}}else if(r.nodeName=="IMG"&&r.getAttribute("mark-placeholder"))return{ignore:!0};return null}const C0=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function N0(r,e,t,o,n){let i=r.input.compositionPendingChanges||(r.composing?r.input.compositionID:0);if(r.input.compositionPendingChanges=0,e<0){let O=r.input.lastSelectionTime>Date.now()-50?r.input.lastSelectionOrigin:null,D=Qa(r,O);if(D&&!r.state.selection.eq(D)){if(Oe&&Bt&&r.input.lastKeyCode===13&&Date.now()-100<r.input.lastKeyCodeTime&&r.someProp("handleKeyDown",E=>E(r,br(13,"Enter"))))return;let B=r.state.tr.setSelection(D);O=="pointer"?B.setMeta("pointer",!0):O=="key"&&B.scrollIntoView(),i&&B.setMeta("composition",i),r.dispatch(B)}return}let a=r.state.doc.resolve(e),l=a.sharedDepth(t);e=a.before(l+1),t=r.state.doc.resolve(t).after(l+1);let c=r.state.selection,d=E0(r,e,t),u=r.state.doc,p=u.slice(d.from,d.to),m,h;r.input.lastKeyCode===8&&Date.now()-100<r.input.lastKeyCodeTime?(m=r.state.selection.to,h="end"):(m=r.state.selection.from,h="start"),r.input.lastKeyCode=null;let f=T0(p.content,d.doc.content,d.from,m,h);if(f&&r.input.domChangeCount++,(Ur&&r.input.lastIOSEnter>Date.now()-225||Bt)&&n.some(O=>O.nodeType==1&&!C0.test(O.nodeName))&&(!f||f.endA>=f.endB)&&r.someProp("handleKeyDown",O=>O(r,br(13,"Enter")))){r.input.lastIOSEnter=0;return}if(!f)if(o&&c instanceof j&&!c.empty&&c.$head.sameParent(c.$anchor)&&!r.composing&&!(d.sel&&d.sel.anchor!=d.sel.head))f={start:c.from,endA:c.to,endB:c.to};else{if(d.sel){let O=pu(r,r.state.doc,d.sel);if(O&&!O.eq(r.state.selection)){let D=r.state.tr.setSelection(O);i&&D.setMeta("composition",i),r.dispatch(D)}}return}r.state.selection.from<r.state.selection.to&&f.start==f.endB&&r.state.selection instanceof j&&(f.start>r.state.selection.from&&f.start<=r.state.selection.from+2&&r.state.selection.from>=d.from?f.start=r.state.selection.from:f.endA<r.state.selection.to&&f.endA>=r.state.selection.to-2&&r.state.selection.to<=d.to&&(f.endB+=r.state.selection.to-f.endA,f.endA=r.state.selection.to)),_e&&Jt<=11&&f.endB==f.start+1&&f.endA==f.start&&f.start>d.from&&d.doc.textBetween(f.start-d.from-1,f.start-d.from+1)==" "&&(f.start--,f.endA--,f.endB--);let g=d.doc.resolveNoCache(f.start-d.from),b=d.doc.resolveNoCache(f.endB-d.from),y=u.resolve(f.start),k=g.sameParent(b)&&g.parent.inlineContent&&y.end()>=f.endA,v;if((Ur&&r.input.lastIOSEnter>Date.now()-225&&(!k||n.some(O=>O.nodeName=="DIV"||O.nodeName=="P"))||!k&&g.pos<d.doc.content.size&&(!g.sameParent(b)||!g.parent.inlineContent)&&!/\S/.test(d.doc.textBetween(g.pos,b.pos,"",""))&&(v=W.findFrom(d.doc.resolve(g.pos+1),1,!0))&&v.head>g.pos)&&r.someProp("handleKeyDown",O=>O(r,br(13,"Enter")))){r.input.lastIOSEnter=0;return}if(r.state.selection.anchor>f.start&&M0(u,f.start,f.endA,g,b)&&r.someProp("handleKeyDown",O=>O(r,br(8,"Backspace")))){Bt&&Oe&&r.domObserver.suppressSelectionUpdates();return}Oe&&f.endB==f.start&&(r.input.lastChromeDelete=Date.now()),Bt&&!k&&g.start()!=b.start()&&b.parentOffset==0&&g.depth==b.depth&&d.sel&&d.sel.anchor==d.sel.head&&d.sel.head==f.endA&&(f.endB-=2,b=d.doc.resolveNoCache(f.endB-d.from),setTimeout(()=>{r.someProp("handleKeyDown",function(O){return O(r,br(13,"Enter"))})},20));let w=f.start,S=f.endA,x=O=>{let D=O||r.state.tr.replace(w,S,d.doc.slice(f.start-d.from,f.endB-d.from));if(d.sel){let B=pu(r,D.doc,d.sel);B&&!(Oe&&r.composing&&B.empty&&(f.start!=f.endB||r.input.lastChromeDelete<Date.now()-100)&&(B.head==w||B.head==D.mapping.map(S)-1)||_e&&B.empty&&B.head==w)&&D.setSelection(B)}return i&&D.setMeta("composition",i),D.scrollIntoView()},C;if(k){if(g.pos==b.pos){_e&&Jt<=11&&g.parentOffset==0&&(r.domObserver.suppressSelectionUpdates(),setTimeout(()=>Tt(r),20));let O=x(r.state.tr.delete(w,S)),D=u.resolve(f.start).marksAcross(u.resolve(f.endA));D&&O.ensureMarks(D),r.dispatch(O)}else if(f.endA==f.endB&&(C=B0(g.parent.content.cut(g.parentOffset,b.parentOffset),y.parent.content.cut(y.parentOffset,f.endA-y.start())))){let O=x(r.state.tr);C.type=="add"?O.addMark(w,S,C.mark):O.removeMark(w,S,C.mark),r.dispatch(O)}else if(g.parent.child(g.index()).isText&&g.index()==b.index()-(b.textOffset?0:1)){let O=g.parent.textBetween(g.parentOffset,b.parentOffset),D=()=>x(r.state.tr.insertText(O,w,S));r.someProp("handleTextInput",B=>B(r,w,S,O,D))||r.dispatch(D())}}else r.dispatch(x())}function pu(r,e,t){return Math.max(t.anchor,t.head)>e.content.size?null:$a(r,e.resolve(t.anchor),e.resolve(t.head))}function B0(r,e){let t=r.firstChild.marks,o=e.firstChild.marks,n=t,i=o,a,l,c;for(let u=0;u<o.length;u++)n=o[u].removeFromSet(n);for(let u=0;u<t.length;u++)i=t[u].removeFromSet(i);if(n.length==1&&i.length==0)l=n[0],a="add",c=u=>u.mark(l.addToSet(u.marks));else if(n.length==0&&i.length==1)l=i[0],a="remove",c=u=>u.mark(l.removeFromSet(u.marks));else return null;let d=[];for(let u=0;u<e.childCount;u++)d.push(c(e.child(u)));if(M.from(d).eq(r))return{mark:l,type:a}}function M0(r,e,t,o,n){if(t-e<=n.pos-o.pos||ms(o,!0,!1)<n.pos)return!1;let i=r.resolve(e);if(!o.parent.isTextblock){let l=i.nodeAfter;return l!=null&&t==e+l.nodeSize}if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let a=r.resolve(ms(i,!0,!0));return!a.parent.isTextblock||a.pos>t||ms(a,!0,!1)<t?!1:o.parent.content.cut(o.parentOffset).eq(a.parent.content)}function ms(r,e,t){let o=r.depth,n=e?r.end():r.pos;for(;o>0&&(e||r.indexAfter(o)==r.node(o).childCount);)o--,n++,e=!1;if(t){let i=r.node(o).maybeChild(r.indexAfter(o));for(;i&&!i.isLeaf;)i=i.firstChild,n++}return n}function T0(r,e,t,o,n){let i=r.findDiffStart(e,t);if(i==null)return null;let{a,b:l}=r.findDiffEnd(e,t+r.size,t+e.size);if(n=="end"){let c=Math.max(0,i-Math.min(a,l));o-=a+c-i}if(a<i&&r.size<e.size){let c=o<=i&&o>=a?i-o:0;i-=c,i&&i<e.size&&mu(e.textBetween(i-1,i+1))&&(i+=c?1:-1),l=i+(l-a),a=i}else if(l<i){let c=o<=i&&o>=l?i-o:0;i-=c,i&&i<r.size&&mu(r.textBetween(i-1,i+1))&&(i+=c?1:-1),a=i+(a-l),l=i}return{start:i,endA:a,endB:l}}function mu(r){if(r.length!=2)return!1;let e=r.charCodeAt(0),t=r.charCodeAt(1);return e>=56320&&e<=57343&&t>=55296&&t<=56319}class hu{constructor(e,t){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 Gg,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(yu),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=bu(this),gu(this),this.nodeViews=wu(this),this.docView=Sd(this.state.doc,fu(this),ps(this),this.dom,this),this.domObserver=new y0(this,(o,n,i,a)=>N0(this,o,n,i,a)),this.domObserver.start(),Yg(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&as(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(yu),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let o in this._props)t[o]=this._props[o];t.state=this.state;for(let o in e)t[o]=e[o];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){var o;let n=this.state,i=!1,a=!1;e.storedMarks&&this.composing&&(tu(this),a=!0),this.state=e;let l=n.plugins!=e.plugins||this._props.plugins!=t.plugins;if(l||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let h=wu(this);V0(h,this.nodeViews)&&(this.nodeViews=h,i=!0)}(l||t.handleDOMEvents!=this._props.handleDOMEvents)&&as(this),this.editable=bu(this),gu(this);let c=ps(this),d=fu(this),u=n.plugins!=e.plugins&&!n.doc.eq(e.doc)?"reset":e.scrollToSelection>n.scrollToSelection?"to selection":"preserve",p=i||!this.docView.matchesNode(e.doc,d,c);(p||!e.selection.eq(n.selection))&&(a=!0);let m=u=="preserve"&&a&&this.dom.style.overflowAnchor==null&&cg(this);if(a){this.domObserver.stop();let h=p&&(_e||Oe)&&!this.composing&&!n.selection.empty&&!e.selection.empty&&O0(n.selection,e.selection);if(p){let f=Oe?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=l0(this)),(i||!this.docView.update(e.doc,d,c,this))&&(this.docView.updateOuterDeco(d),this.docView.destroy(),this.docView=Sd(e.doc,d,c,this.dom,this)),f&&!this.trackWrites&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&Ag(this))?Tt(this,h):(Dd(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(n),!((o=this.dragging)===null||o===void 0)&&o.node&&!n.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,n),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():m&&dg(m)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))){if(!this.someProp("handleScrollToSelection",t=>t(this)))if(this.state.selection instanceof R){let t=this.docView.domAfterPos(this.state.selection.from);t.nodeType==1&&ud(this,t.getBoundingClientRect(),e)}else ud(this,this.coordsAtPos(this.state.selection.head,1),e)}}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let t=0;t<this.directPlugins.length;t++){let o=this.directPlugins[t];o.spec.view&&this.pluginViews.push(o.spec.view(this))}for(let t=0;t<this.state.plugins.length;t++){let o=this.state.plugins[t];o.spec.view&&this.pluginViews.push(o.spec.view(this))}}else for(let t=0;t<this.pluginViews.length;t++){let o=this.pluginViews[t];o.update&&o.update(this,e)}}updateDraggedNode(e,t){let o=e.node,n=-1;if(this.state.doc.nodeAt(o.from)==o.node)n=o.from;else{let i=o.from+(this.state.doc.content.size-t.doc.content.size);(i>0&&this.state.doc.nodeAt(i))==o.node&&(n=i)}this.dragging=new ou(e.slice,e.move,n<0?void 0:R.create(this.state.doc,n))}someProp(e,t){let o=this._props&&this._props[e],n;if(o!=null&&(n=t?t(o):o))return n;for(let a=0;a<this.directPlugins.length;a++){let l=this.directPlugins[a].props[e];if(l!=null&&(n=t?t(l):l))return n}let i=this.state.plugins;if(i)for(let a=0;a<i.length;a++){let l=i[a].props[e];if(l!=null&&(n=t?t(l):l))return n}}hasFocus(){if(_e){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&ug(this.dom),Tt(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let t=this.dom.parentNode;t;t=t.parentNode)if(t.nodeType==9||t.nodeType==11&&t.host)return t.getSelection||(Object.getPrototypeOf(t).getSelection=()=>t.ownerDocument.getSelection()),this._root=t}return e||document}updateRoot(){this._root=null}posAtCoords(e){return gg(this,e)}coordsAtPos(e,t=1){return bd(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,o=-1){let n=this.docView.posFromDOM(e,t,o);if(n==null)throw new RangeError("DOM position not inside the editor");return n}endOfTextblock(e,t){return xg(this,t||this.state,e)}pasteHTML(e,t){return Ro(this,"",e,!1,t||new ClipboardEvent("paste"))}pasteText(e,t){return Ro(this,e,null,!0,t||new ClipboardEvent("paste"))}serializeForClipboard(e){return rs(this,e)}destroy(){this.docView&&(Xg(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],ps(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,Zf())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return Zg(this,e)}domSelectionRange(){let e=this.domSelection();return e?De&&this.root.nodeType===11&&og(this.dom.ownerDocument)==this.dom&&x0(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}hu.prototype.dispatch=function(r){let e=this._props.dispatchTransaction;e?e.call(this,r):this.updateState(this.state.apply(r))};function fu(r){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(r.editable),r.someProp("attributes",t=>{if(typeof t=="function"&&(t=t(r.state)),t)for(let o in t)o=="class"?e.class+=" "+t[o]:o=="style"?e.style=(e.style?e.style+";":"")+t[o]:!e[o]&&o!="contenteditable"&&o!="nodeName"&&(e[o]=String(t[o]))}),e.translate||(e.translate="no"),[Ze.node(0,r.state.doc.content.size,e)]}function gu(r){if(r.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),r.cursorWrapper={dom:e,deco:Ze.widget(r.state.selection.from,e,{raw:!0,marks:r.markCursor})}}else r.cursorWrapper=null}function bu(r){return!r.someProp("editable",e=>e(r.state)===!1)}function O0(r,e){let t=Math.min(r.$anchor.sharedDepth(r.head),e.$anchor.sharedDepth(e.head));return r.$anchor.start(t)!=e.$anchor.start(t)}function wu(r){let e=Object.create(null);function t(o){for(let n in o)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=o[n])}return r.someProp("nodeViews",t),r.someProp("markViews",t),e}function V0(r,e){let t=0,o=0;for(let n in r){if(r[n]!=e[n])return!0;t++}for(let n in e)o++;return t!=o}function yu(r){if(r.spec.state||r.spec.filterTransaction||r.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var er={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:"'"},$n={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},P0=typeof navigator<"u"&&/Mac/.test(navigator.platform),A0=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Ce=0;Ce<10;Ce++)er[48+Ce]=er[96+Ce]=String(Ce);for(var Ce=1;Ce<=24;Ce++)er[Ce+111]="F"+Ce;for(var Ce=65;Ce<=90;Ce++)er[Ce]=String.fromCharCode(Ce+32),$n[Ce]=String.fromCharCode(Ce);for(var hs in er)$n.hasOwnProperty(hs)||($n[hs]=er[hs]);function D0(r){var e=P0&&r.metaKey&&r.shiftKey&&!r.ctrlKey&&!r.altKey||A0&&r.shiftKey&&r.key&&r.key.length==1||r.key=="Unidentified",t=!e&&r.key||(r.shiftKey?$n:er)[r.keyCode]||r.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}const I0=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),L0=typeof navigator<"u"&&/Win/.test(navigator.platform);function R0(r){let e=r.split(/-(?!$)/),t=e[e.length-1];t=="Space"&&(t=" ");let o,n,i,a;for(let l=0;l<e.length-1;l++){let c=e[l];if(/^(cmd|meta|m)$/i.test(c))a=!0;else if(/^a(lt)?$/i.test(c))o=!0;else if(/^(c|ctrl|control)$/i.test(c))n=!0;else if(/^s(hift)?$/i.test(c))i=!0;else if(/^mod$/i.test(c))I0?a=!0:n=!0;else throw new Error("Unrecognized modifier name: "+c)}return o&&(t="Alt-"+t),n&&(t="Ctrl-"+t),a&&(t="Meta-"+t),i&&(t="Shift-"+t),t}function z0(r){let e=Object.create(null);for(let t in r)e[R0(t)]=r[t];return e}function fs(r,e,t=!0){return e.altKey&&(r="Alt-"+r),e.ctrlKey&&(r="Ctrl-"+r),e.metaKey&&(r="Meta-"+r),t&&e.shiftKey&&(r="Shift-"+r),r}function _0(r){return new he({props:{handleKeyDown:vu(r)}})}function vu(r){let e=z0(r);return function(t,o){let n=D0(o),i,a=e[fs(n,o)];if(a&&a(t.state,t.dispatch,t))return!0;if(n.length==1&&n!=" "){if(o.shiftKey){let l=e[fs(n,o,!1)];if(l&&l(t.state,t.dispatch,t))return!0}if((o.altKey||o.metaKey||o.ctrlKey)&&!(L0&&o.ctrlKey&&o.altKey)&&(i=er[o.keyCode])&&i!=n){let l=e[fs(i,o)];if(l&&l(t.state,t.dispatch,t))return!0}}return!1}}const gs=(r,e)=>r.selection.empty?!1:(e&&e(r.tr.deleteSelection().scrollIntoView()),!0);function xu(r,e){let{$cursor:t}=r.selection;return!t||(e?!e.endOfTextblock("backward",r):t.parentOffset>0)?null:t}const ku=(r,e,t)=>{let o=xu(r,t);if(!o)return!1;let n=bs(o);if(!n){let a=o.blockRange(),l=a&&_r(a);return l==null?!1:(e&&e(r.tr.lift(a,l).scrollIntoView()),!0)}let i=n.nodeBefore;if(Vu(r,n,e,-1))return!0;if(o.parent.content.size==0&&(Xr(i,"end")||R.isSelectable(i)))for(let a=o.depth;;a--){let l=Hn(r.doc,o.before(a),o.after(a),A.empty);if(l&&l.slice.size<l.to-l.from){if(e){let c=r.tr.step(l);c.setSelection(Xr(i,"end")?W.findFrom(c.doc.resolve(c.mapping.map(n.pos,-1)),-1):R.create(c.doc,n.pos-i.nodeSize)),e(c.scrollIntoView())}return!0}if(a==1||o.node(a-1).childCount>1)break}return i.isAtom&&n.depth==o.depth-1?(e&&e(r.tr.delete(n.pos-i.nodeSize,n.pos).scrollIntoView()),!0):!1},F0=(r,e,t)=>{let o=xu(r,t);if(!o)return!1;let n=bs(o);return n?Eu(r,n,e):!1},j0=(r,e,t)=>{let o=Cu(r,t);if(!o)return!1;let n=ws(o);return n?Eu(r,n,e):!1};function Eu(r,e,t){let o=e.nodeBefore,n=o,i=e.pos-1;for(;!n.isTextblock;i--){if(n.type.spec.isolating)return!1;let u=n.lastChild;if(!u)return!1;n=u}let a=e.nodeAfter,l=a,c=e.pos+1;for(;!l.isTextblock;c++){if(l.type.spec.isolating)return!1;let u=l.firstChild;if(!u)return!1;l=u}let d=Hn(r.doc,i,c,A.empty);if(!d||d.from!=i||d instanceof be&&d.slice.size>=c-i)return!1;if(t){let u=r.tr.step(d);u.setSelection(j.create(u.doc,i)),t(u.scrollIntoView())}return!0}function Xr(r,e,t=!1){for(let o=r;o;o=e=="start"?o.firstChild:o.lastChild){if(o.isTextblock)return!0;if(t&&o.childCount!=1)return!1}return!1}const Su=(r,e,t)=>{let{$head:o,empty:n}=r.selection,i=o;if(!n)return!1;if(o.parent.isTextblock){if(t?!t.endOfTextblock("backward",r):o.parentOffset>0)return!1;i=bs(o)}let a=i&&i.nodeBefore;return!a||!R.isSelectable(a)?!1:(e&&e(r.tr.setSelection(R.create(r.doc,i.pos-a.nodeSize)).scrollIntoView()),!0)};function bs(r){if(!r.parent.type.spec.isolating)for(let e=r.depth-1;e>=0;e--){if(r.index(e)>0)return r.doc.resolve(r.before(e+1));if(r.node(e).type.spec.isolating)break}return null}function Cu(r,e){let{$cursor:t}=r.selection;return!t||(e?!e.endOfTextblock("forward",r):t.parentOffset<t.parent.content.size)?null:t}const Nu=(r,e,t)=>{let o=Cu(r,t);if(!o)return!1;let n=ws(o);if(!n)return!1;let i=n.nodeAfter;if(Vu(r,n,e,1))return!0;if(o.parent.content.size==0&&(Xr(i,"start")||R.isSelectable(i))){let a=Hn(r.doc,o.before(),o.after(),A.empty);if(a&&a.slice.size<a.to-a.from){if(e){let l=r.tr.step(a);l.setSelection(Xr(i,"start")?W.findFrom(l.doc.resolve(l.mapping.map(n.pos)),1):R.create(l.doc,l.mapping.map(n.pos))),e(l.scrollIntoView())}return!0}}return i.isAtom&&n.depth==o.depth-1?(e&&e(r.tr.delete(n.pos,n.pos+i.nodeSize).scrollIntoView()),!0):!1},Bu=(r,e,t)=>{let{$head:o,empty:n}=r.selection,i=o;if(!n)return!1;if(o.parent.isTextblock){if(t?!t.endOfTextblock("forward",r):o.parentOffset<o.parent.content.size)return!1;i=ws(o)}let a=i&&i.nodeAfter;return!a||!R.isSelectable(a)?!1:(e&&e(r.tr.setSelection(R.create(r.doc,i.pos)).scrollIntoView()),!0)};function ws(r){if(!r.parent.type.spec.isolating)for(let e=r.depth-1;e>=0;e--){let t=r.node(e);if(r.index(e)+1<t.childCount)return r.doc.resolve(r.after(e+1));if(t.type.spec.isolating)break}return null}const H0=(r,e)=>{let t=r.selection,o=t instanceof R,n;if(o){if(t.node.isTextblock||!Ut(r.doc,t.from))return!1;n=t.from}else if(n=jn(r.doc,t.from,-1),n==null)return!1;if(e){let i=r.tr.join(n);o&&i.setSelection(R.create(i.doc,n-r.doc.resolve(n).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},W0=(r,e)=>{let t=r.selection,o;if(t instanceof R){if(t.node.isTextblock||!Ut(r.doc,t.to))return!1;o=t.to}else if(o=jn(r.doc,t.to,1),o==null)return!1;return e&&e(r.tr.join(o).scrollIntoView()),!0},q0=(r,e)=>{let{$from:t,$to:o}=r.selection,n=t.blockRange(o),i=n&&_r(n);return i==null?!1:(e&&e(r.tr.lift(n,i).scrollIntoView()),!0)},Mu=(r,e)=>{let{$head:t,$anchor:o}=r.selection;return!t.parent.type.spec.code||!t.sameParent(o)?!1:(e&&e(r.tr.insertText(`
|
|
20
|
+
`).scrollIntoView()),!0)};function ys(r){for(let e=0;e<r.edgeCount;e++){let{type:t}=r.edge(e);if(t.isTextblock&&!t.hasRequiredAttrs())return t}return null}const U0=(r,e)=>{let{$head:t,$anchor:o}=r.selection;if(!t.parent.type.spec.code||!t.sameParent(o))return!1;let n=t.node(-1),i=t.indexAfter(-1),a=ys(n.contentMatchAt(i));if(!a||!n.canReplaceWith(i,i,a))return!1;if(e){let l=t.after(),c=r.tr.replaceWith(l,l,a.createAndFill());c.setSelection(W.near(c.doc.resolve(l),1)),e(c.scrollIntoView())}return!0},Tu=(r,e)=>{let t=r.selection,{$from:o,$to:n}=t;if(t instanceof qe||o.parent.inlineContent||n.parent.inlineContent)return!1;let i=ys(n.parent.contentMatchAt(n.indexAfter()));if(!i||!i.isTextblock)return!1;if(e){let a=(!o.parentOffset&&n.index()<n.parent.childCount?o:n).pos,l=r.tr.insert(a,i.createAndFill());l.setSelection(j.create(l.doc,a+1)),e(l.scrollIntoView())}return!0},Ou=(r,e)=>{let{$cursor:t}=r.selection;if(!t||t.parent.content.size)return!1;if(t.depth>1&&t.after()!=t.end(-1)){let i=t.before();if(Ct(r.doc,i))return e&&e(r.tr.split(i).scrollIntoView()),!0}let o=t.blockRange(),n=o&&_r(o);return n==null?!1:(e&&e(r.tr.lift(o,n).scrollIntoView()),!0)};function K0(r){return(e,t)=>{let{$from:o,$to:n}=e.selection;if(e.selection instanceof R&&e.selection.node.isBlock)return!o.parentOffset||!Ct(e.doc,o.pos)?!1:(t&&t(e.tr.split(o.pos).scrollIntoView()),!0);if(!o.depth)return!1;let i=[],a,l,c=!1,d=!1;for(let h=o.depth;;h--)if(o.node(h).isBlock){c=o.end(h)==o.pos+(o.depth-h),d=o.start(h)==o.pos-(o.depth-h),l=ys(o.node(h-1).contentMatchAt(o.indexAfter(h-1))),i.unshift(c&&l?{type:l}:null),a=h;break}else{if(h==1)return!1;i.unshift(null)}let u=e.tr;(e.selection instanceof j||e.selection instanceof qe)&&u.deleteSelection();let p=u.mapping.map(o.pos),m=Ct(u.doc,p,i.length,i);if(m||(i[0]=l?{type:l}:null,m=Ct(u.doc,p,i.length,i)),!m)return!1;if(u.split(p,i.length,i),!c&&d&&o.node(a).type!=l){let h=u.mapping.map(o.before(a)),f=u.doc.resolve(h);l&&o.node(a-1).canReplaceWith(f.index(),f.index()+1,l)&&u.setNodeMarkup(u.mapping.map(o.before(a)),l)}return t&&t(u.scrollIntoView()),!0}}const J0=K0(),G0=(r,e)=>{let{$from:t,to:o}=r.selection,n,i=t.sharedDepth(o);return i==0?!1:(n=t.before(i),e&&e(r.tr.setSelection(R.create(r.doc,n))),!0)};function Y0(r,e,t){let o=e.nodeBefore,n=e.nodeAfter,i=e.index();return!o||!n||!o.type.compatibleContent(n.type)?!1:!o.content.size&&e.parent.canReplace(i-1,i)?(t&&t(r.tr.delete(e.pos-o.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(i,i+1)||!(n.isTextblock||Ut(r.doc,e.pos))?!1:(t&&t(r.tr.join(e.pos).scrollIntoView()),!0)}function Vu(r,e,t,o){let n=e.nodeBefore,i=e.nodeAfter,a,l,c=n.type.spec.isolating||i.type.spec.isolating;if(!c&&Y0(r,e,t))return!0;let d=!c&&e.parent.canReplace(e.index(),e.index()+1);if(d&&(a=(l=n.contentMatchAt(n.childCount)).findWrapping(i.type))&&l.matchType(a[0]||i.type).validEnd){if(t){let h=e.pos+i.nodeSize,f=M.empty;for(let y=a.length-1;y>=0;y--)f=M.from(a[y].create(null,f));f=M.from(n.copy(f));let g=r.tr.step(new we(e.pos-1,h,e.pos,h,new A(f,1,0),a.length,!0)),b=g.doc.resolve(h+2*a.length);b.nodeAfter&&b.nodeAfter.type==n.type&&Ut(g.doc,b.pos)&&g.join(b.pos),t(g.scrollIntoView())}return!0}let u=i.type.spec.isolating||o>0&&c?null:W.findFrom(e,1),p=u&&u.$from.blockRange(u.$to),m=p&&_r(p);if(m!=null&&m>=e.depth)return t&&t(r.tr.lift(p,m).scrollIntoView()),!0;if(d&&Xr(i,"start",!0)&&Xr(n,"end")){let h=n,f=[];for(;f.push(h),!h.isTextblock;)h=h.lastChild;let g=i,b=1;for(;!g.isTextblock;g=g.firstChild)b++;if(h.canReplace(h.childCount,h.childCount,g.content)){if(t){let y=M.empty;for(let v=f.length-1;v>=0;v--)y=M.from(f[v].copy(y));let k=r.tr.step(new we(e.pos-f.length,e.pos+i.nodeSize,e.pos+b,e.pos+i.nodeSize-b,new A(y,f.length,0),0,!0));t(k.scrollIntoView())}return!0}}return!1}function Pu(r){return function(e,t){let o=e.selection,n=r<0?o.$from:o.$to,i=n.depth;for(;n.node(i).isInline;){if(!i)return!1;i--}return n.node(i).isTextblock?(t&&t(e.tr.setSelection(j.create(e.doc,r<0?n.start(i):n.end(i)))),!0):!1}}const X0=Pu(-1),Q0=Pu(1);function Z0(r,e=null){return function(t,o){let{$from:n,$to:i}=t.selection,a=n.blockRange(i),l=a&&La(a,r,e);return l?(o&&o(t.tr.wrap(a,l).scrollIntoView()),!0):!1}}function Au(r,e=null){return function(t,o){let n=!1;for(let i=0;i<t.selection.ranges.length&&!n;i++){let{$from:{pos:a},$to:{pos:l}}=t.selection.ranges[i];t.doc.nodesBetween(a,l,(c,d)=>{if(n)return!1;if(!(!c.isTextblock||c.hasMarkup(r,e)))if(c.type==r)n=!0;else{let u=t.doc.resolve(d),p=u.index();n=u.parent.canReplaceWith(p,p+1,r)}})}if(!n)return!1;if(o){let i=t.tr;for(let a=0;a<t.selection.ranges.length;a++){let{$from:{pos:l},$to:{pos:c}}=t.selection.ranges[a];i.setBlockType(l,c,r,e)}o(i.scrollIntoView())}return!0}}function vs(...r){return function(e,t,o){for(let n=0;n<r.length;n++)if(r[n](e,t,o))return!0;return!1}}vs(gs,ku,Su),vs(gs,Nu,Bu),vs(Mu,Tu,Ou,J0),typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function $0(r,e=null){return function(t,o){let{$from:n,$to:i}=t.selection,a=n.blockRange(i);if(!a)return!1;let l=o?t.tr:null;return eb(l,a,r,e)?(o&&o(l.scrollIntoView()),!0):!1}}function eb(r,e,t,o=null){let n=!1,i=e,a=e.$from.doc;if(e.depth>=2&&e.$from.node(e.depth-1).type.compatibleContent(t)&&e.startIndex==0){if(e.$from.index(e.depth-1)==0)return!1;let c=a.resolve(e.start-2);i=new In(c,c,e.depth),e.endIndex<e.parent.childCount&&(e=new In(e.$from,a.resolve(e.$to.end(e.depth)),e.depth)),n=!0}let l=La(i,t,o,e);return l?(r&&tb(r,e,l,n,t),!0):!1}function tb(r,e,t,o,n){let i=M.empty;for(let u=t.length-1;u>=0;u--)i=M.from(t[u].type.create(t[u].attrs,i));r.step(new we(e.start-(o?2:0),e.end,e.start,e.end,new A(i,0,0),t.length,!0));let a=0;for(let u=0;u<t.length;u++)t[u].type==n&&(a=u+1);let l=t.length-a,c=e.start+t.length-(o?2:0),d=e.parent;for(let u=e.startIndex,p=e.endIndex,m=!0;u<p;u++,m=!1)!m&&Ct(r.doc,c,l)&&(r.split(c,l),c+=2*l),c+=d.child(u).nodeSize;return r}function rb(r){return function(e,t){let{$from:o,$to:n}=e.selection,i=o.blockRange(n,a=>a.childCount>0&&a.firstChild.type==r);return i?t?o.node(i.depth-1).type==r?ob(e,t,r,i):nb(e,t,i):!0:!1}}function ob(r,e,t,o){let n=r.tr,i=o.end,a=o.$to.end(o.depth);i<a&&(n.step(new we(i-1,a,i,a,new A(M.from(t.create(null,o.parent.copy())),1,0),1,!0)),o=new In(n.doc.resolve(o.$from.pos),n.doc.resolve(a),o.depth));const l=_r(o);if(l==null)return!1;n.lift(o,l);let c=n.doc.resolve(n.mapping.map(i,-1)-1);return Ut(n.doc,c.pos)&&c.nodeBefore.type==c.nodeAfter.type&&n.join(c.pos),e(n.scrollIntoView()),!0}function nb(r,e,t){let o=r.tr,n=t.parent;for(let h=t.end,f=t.endIndex-1,g=t.startIndex;f>g;f--)h-=n.child(f).nodeSize,o.delete(h-1,h+1);let i=o.doc.resolve(t.start),a=i.nodeAfter;if(o.mapping.map(t.end)!=t.start+i.nodeAfter.nodeSize)return!1;let l=t.startIndex==0,c=t.endIndex==n.childCount,d=i.node(-1),u=i.index(-1);if(!d.canReplace(u+(l?0:1),u+1,a.content.append(c?M.empty:M.from(n))))return!1;let p=i.pos,m=p+a.nodeSize;return o.step(new we(p-(l?1:0),m+(c?1:0),p+1,m-1,new A((l?M.empty:M.from(n.copy(M.empty))).append(c?M.empty:M.from(n.copy(M.empty))),l?0:1,c?0:1),l?0:1)),e(o.scrollIntoView()),!0}function ib(r){return function(e,t){let{$from:o,$to:n}=e.selection,i=o.blockRange(n,d=>d.childCount>0&&d.firstChild.type==r);if(!i)return!1;let a=i.startIndex;if(a==0)return!1;let l=i.parent,c=l.child(a-1);if(c.type!=r)return!1;if(t){let d=c.lastChild&&c.lastChild.type==l.type,u=M.from(d?r.create():null),p=new A(M.from(r.create(null,M.from(l.type.create(null,u)))),d?3:1,0),m=i.start,h=i.end;t(e.tr.step(new we(m-(d?3:1),h,m,h,p,1,!0)).scrollIntoView())}return!0}}function ei(r){const{state:e,transaction:t}=r;let{selection:o}=t,{doc:n}=t,{storedMarks:i}=t;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 o},get doc(){return n},get tr(){return o=t.selection,n=t.doc,i=t.storedMarks,t}}}class ti{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:t,state:o}=this,{view:n}=t,{tr:i}=o,a=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([l,c])=>[l,(...u)=>{const p=c(...u)(a);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&n.dispatch(i),p}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){const{rawCommands:o,editor:n,state:i}=this,{view:a}=n,l=[],c=!!e,d=e||i.tr,u=()=>(!c&&t&&!d.getMeta("preventDispatch")&&!this.hasCustomState&&a.dispatch(d),l.every(m=>m===!0)),p={...Object.fromEntries(Object.entries(o).map(([m,h])=>[m,(...g)=>{const b=this.buildProps(d,t),y=h(...g)(b);return l.push(y),p}])),run:u};return p}createCan(e){const{rawCommands:t,state:o}=this,n=!1,i=e||o.tr,a=this.buildProps(i,n);return{...Object.fromEntries(Object.entries(t).map(([c,d])=>[c,(...u)=>d(...u)({...a,dispatch:void 0})])),chain:()=>this.createChain(i,n)}}buildProps(e,t=!0){const{rawCommands:o,editor:n,state:i}=this,{view:a}=n,l={tr:e,editor:n,view:a,state:ei({state:i,transaction:e}),dispatch:t?()=>{}:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(o).map(([c,d])=>[c,(...u)=>d(...u)(l)]))}};return l}}class ab{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){const o=this.callbacks[e];return o&&o.forEach(n=>n.apply(this,t)),this}off(e,t){const o=this.callbacks[e];return o&&(t?this.callbacks[e]=o.filter(n=>n!==t):delete this.callbacks[e]),this}once(e,t){const o=(...n)=>{this.off(e,o),t.apply(this,n)};return this.on(e,o)}removeAllListeners(){this.callbacks={}}}function I(r,e,t){return r.config[e]===void 0&&r.parent?I(r.parent,e,t):typeof r.config[e]=="function"?r.config[e].bind({...t,parent:r.parent?I(r.parent,e,t):null}):r.config[e]}function ri(r){const e=r.filter(n=>n.type==="extension"),t=r.filter(n=>n.type==="node"),o=r.filter(n=>n.type==="mark");return{baseExtensions:e,nodeExtensions:t,markExtensions:o}}function Du(r){const e=[],{nodeExtensions:t,markExtensions:o}=ri(r),n=[...t,...o],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return r.forEach(a=>{const l={name:a.name,options:a.options,storage:a.storage,extensions:n},c=I(a,"addGlobalAttributes",l);if(!c)return;c().forEach(u=>{u.types.forEach(p=>{Object.entries(u.attributes).forEach(([m,h])=>{e.push({type:p,name:m,attribute:{...i,...h}})})})})}),n.forEach(a=>{const l={name:a.name,options:a.options,storage:a.storage},c=I(a,"addAttributes",l);if(!c)return;const d=c();Object.entries(d).forEach(([u,p])=>{const m={...i,...p};typeof(m==null?void 0:m.default)=="function"&&(m.default=m.default()),m!=null&&m.isRequired&&(m==null?void 0:m.default)===void 0&&delete m.default,e.push({type:a.name,name:u,attribute:m})})}),e}function ye(r,e){if(typeof r=="string"){if(!e.nodes[r])throw Error(`There is no node type named '${r}'. Maybe you forgot to add the extension?`);return e.nodes[r]}return r}function Ne(...r){return r.filter(e=>!!e).reduce((e,t)=>{const o={...e};return Object.entries(t).forEach(([n,i])=>{if(!o[n]){o[n]=i;return}if(n==="class"){const l=i?String(i).split(" "):[],c=o[n]?o[n].split(" "):[],d=l.filter(u=>!c.includes(u));o[n]=[...c,...d].join(" ")}else if(n==="style"){const l=i?i.split(";").map(u=>u.trim()).filter(Boolean):[],c=o[n]?o[n].split(";").map(u=>u.trim()).filter(Boolean):[],d=new Map;c.forEach(u=>{const[p,m]=u.split(":").map(h=>h.trim());d.set(p,m)}),l.forEach(u=>{const[p,m]=u.split(":").map(h=>h.trim());d.set(p,m)}),o[n]=Array.from(d.entries()).map(([u,p])=>`${u}: ${p}`).join("; ")}else o[n]=i}),o},{})}function xs(r,e){return e.filter(t=>t.type===r.type.name).filter(t=>t.attribute.rendered).map(t=>t.attribute.renderHTML?t.attribute.renderHTML(r.attrs)||{}:{[t.name]:r.attrs[t.name]}).reduce((t,o)=>Ne(t,o),{})}function Iu(r){return typeof r=="function"}function U(r,e=void 0,...t){return Iu(r)?e?r.bind(e)(...t):r(...t):r}function sb(r={}){return Object.keys(r).length===0&&r.constructor===Object}function lb(r){return typeof r!="string"?r:r.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(r):r==="true"?!0:r==="false"?!1:r}function Lu(r,e){return"style"in r?r:{...r,getAttrs:t=>{const o=r.getAttrs?r.getAttrs(t):r.attrs;if(o===!1)return!1;const n=e.reduce((i,a)=>{const l=a.attribute.parseHTML?a.attribute.parseHTML(t):lb(t.getAttribute(a.name));return l==null?i:{...i,[a.name]:l}},{});return{...o,...n}}}}function Ru(r){return Object.fromEntries(Object.entries(r).filter(([e,t])=>e==="attrs"&&sb(t)?!1:t!=null))}function cb(r,e){var t;const o=Du(r),{nodeExtensions:n,markExtensions:i}=ri(r),a=(t=n.find(d=>I(d,"topNode")))===null||t===void 0?void 0:t.name,l=Object.fromEntries(n.map(d=>{const u=o.filter(y=>y.type===d.name),p={name:d.name,options:d.options,storage:d.storage,editor:e},m=r.reduce((y,k)=>{const v=I(k,"extendNodeSchema",p);return{...y,...v?v(d):{}}},{}),h=Ru({...m,content:U(I(d,"content",p)),marks:U(I(d,"marks",p)),group:U(I(d,"group",p)),inline:U(I(d,"inline",p)),atom:U(I(d,"atom",p)),selectable:U(I(d,"selectable",p)),draggable:U(I(d,"draggable",p)),code:U(I(d,"code",p)),whitespace:U(I(d,"whitespace",p)),linebreakReplacement:U(I(d,"linebreakReplacement",p)),defining:U(I(d,"defining",p)),isolating:U(I(d,"isolating",p)),attrs:Object.fromEntries(u.map(y=>{var k;return[y.name,{default:(k=y==null?void 0:y.attribute)===null||k===void 0?void 0:k.default}]}))}),f=U(I(d,"parseHTML",p));f&&(h.parseDOM=f.map(y=>Lu(y,u)));const g=I(d,"renderHTML",p);g&&(h.toDOM=y=>g({node:y,HTMLAttributes:xs(y,u)}));const b=I(d,"renderText",p);return b&&(h.toText=b),[d.name,h]})),c=Object.fromEntries(i.map(d=>{const u=o.filter(b=>b.type===d.name),p={name:d.name,options:d.options,storage:d.storage,editor:e},m=r.reduce((b,y)=>{const k=I(y,"extendMarkSchema",p);return{...b,...k?k(d):{}}},{}),h=Ru({...m,inclusive:U(I(d,"inclusive",p)),excludes:U(I(d,"excludes",p)),group:U(I(d,"group",p)),spanning:U(I(d,"spanning",p)),code:U(I(d,"code",p)),attrs:Object.fromEntries(u.map(b=>{var y;return[b.name,{default:(y=b==null?void 0:b.attribute)===null||y===void 0?void 0:y.default}]}))}),f=U(I(d,"parseHTML",p));f&&(h.parseDOM=f.map(b=>Lu(b,u)));const g=I(d,"renderHTML",p);return g&&(h.toDOM=b=>g({mark:b,HTMLAttributes:xs(b,u)})),[d.name,h]}));return new Bc({topNode:a,nodes:l,marks:c})}function ks(r,e){return e.nodes[r]||e.marks[r]||null}function zu(r,e){return Array.isArray(e)?e.some(t=>(typeof t=="string"?t:t.name)===r.name):e}function Es(r,e){const t=hr.fromSchema(e).serializeFragment(r),n=document.implementation.createHTMLDocument().createElement("div");return n.appendChild(t),n.innerHTML}const db=(r,e=500)=>{let t="";const o=r.parentOffset;return r.parent.nodesBetween(Math.max(0,o-e),o,(n,i,a,l)=>{var c,d;const u=((d=(c=n.type.spec).toText)===null||d===void 0?void 0:d.call(c,{node:n,pos:i,parent:a,index:l}))||n.textContent||"%leaf%";t+=n.isAtom&&!n.isText?u:u.slice(0,Math.max(0,o-i))}),t};function Ss(r){return Object.prototype.toString.call(r)==="[object RegExp]"}class oi{constructor(e){this.find=e.find,this.handler=e.handler}}const ub=(r,e)=>{if(Ss(e))return e.exec(r);const t=e(r);if(!t)return null;const o=[t.text];return o.index=t.index,o.input=r,o.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),o.push(t.replaceWith)),o};function ni(r){var e;const{editor:t,from:o,to:n,text:i,rules:a,plugin:l}=r,{view:c}=t;if(c.composing)return!1;const d=c.state.doc.resolve(o);if(d.parent.type.spec.code||!((e=d.nodeBefore||d.nodeAfter)===null||e===void 0)&&e.marks.find(m=>m.type.spec.code))return!1;let u=!1;const p=db(d)+i;return a.forEach(m=>{if(u)return;const h=ub(p,m.find);if(!h)return;const f=c.state.tr,g=ei({state:c.state,transaction:f}),b={from:o-(h[0].length-i.length),to:n},{commands:y,chain:k,can:v}=new ti({editor:t,state:g});m.handler({state:g,range:b,match:h,commands:y,chain:k,can:v})===null||!f.steps.length||(f.setMeta(l,{transform:f,from:o,to:n,text:i}),c.dispatch(f),u=!0)}),u}function pb(r){const{editor:e,rules:t}=r,o=new he({state:{init(){return null},apply(n,i,a){const l=n.getMeta(o);if(l)return l;const c=n.getMeta("applyInputRules");return!!c&&setTimeout(()=>{let{text:u}=c;typeof u=="string"?u=u:u=Es(M.from(u),a.schema);const{from:p}=c,m=p+u.length;ni({editor:e,from:p,to:m,text:u,rules:t,plugin:o})}),n.selectionSet||n.docChanged?null:i}},props:{handleTextInput(n,i,a,l){return ni({editor:e,from:i,to:a,text:l,rules:t,plugin:o})},handleDOMEvents:{compositionend:n=>(setTimeout(()=>{const{$cursor:i}=n.state.selection;i&&ni({editor:e,from:i.pos,to:i.pos,text:"",rules:t,plugin:o})}),!1)},handleKeyDown(n,i){if(i.key!=="Enter")return!1;const{$cursor:a}=n.state.selection;return a?ni({editor:e,from:a.pos,to:a.pos,text:`
|
|
21
|
+
`,rules:t,plugin:o}):!1}},isInputRules:!0});return o}function mb(r){return Object.prototype.toString.call(r).slice(8,-1)}function ii(r){return mb(r)!=="Object"?!1:r.constructor===Object&&Object.getPrototypeOf(r)===Object.prototype}function ai(r,e){const t={...r};return ii(r)&&ii(e)&&Object.keys(e).forEach(o=>{ii(e[o])&&ii(r[o])?t[o]=ai(r[o],e[o]):t[o]=e[o]}),t}class Ot{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.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=U(I(this,"addOptions",{name:this.name}))),this.storage=U(I(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Ot(e)}configure(e={}){const t=this.extend({...this.config,addOptions:()=>ai(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){const t=new Ot(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=U(I(t,"addOptions",{name:t.name})),t.storage=U(I(t,"addStorage",{name:t.name,options:t.options})),t}static handleExit({editor:e,mark:t}){const{tr:o}=e.state,n=e.state.selection.$from;if(n.pos===n.end()){const a=n.marks();if(!!!a.find(d=>(d==null?void 0:d.type.name)===t.name))return!1;const c=a.find(d=>(d==null?void 0:d.type.name)===t.name);return c&&o.removeStoredMark(c),o.insertText(" ",n.pos),e.view.dispatch(o),!0}return!1}}function hb(r){return typeof r=="number"}class fb{constructor(e){this.find=e.find,this.handler=e.handler}}const gb=(r,e,t)=>{if(Ss(e))return[...r.matchAll(e)];const o=e(r,t);return o?o.map(n=>{const i=[n.text];return i.index=n.index,i.input=r,i.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),i.push(n.replaceWith)),i}):[]};function bb(r){const{editor:e,state:t,from:o,to:n,rule:i,pasteEvent:a,dropEvent:l}=r,{commands:c,chain:d,can:u}=new ti({editor:e,state:t}),p=[];return t.doc.nodesBetween(o,n,(h,f)=>{if(!h.isTextblock||h.type.spec.code)return;const g=Math.max(o,f),b=Math.min(n,f+h.content.size),y=h.textBetween(g-f,b-f,void 0,"");gb(y,i.find,a).forEach(v=>{if(v.index===void 0)return;const w=g+v.index+1,S=w+v[0].length,x={from:t.tr.mapping.map(w),to:t.tr.mapping.map(S)},C=i.handler({state:t,range:x,match:v,commands:c,chain:d,can:u,pasteEvent:a,dropEvent:l});p.push(C)})}),p.every(h=>h!==null)}let si=null;const wb=r=>{var e;const t=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=t.clipboardData)===null||e===void 0||e.setData("text/html",r),t};function yb(r){const{editor:e,rules:t}=r;let o=null,n=!1,i=!1,a=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,l;try{l=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{l=null}const c=({state:u,from:p,to:m,rule:h,pasteEvt:f})=>{const g=u.tr,b=ei({state:u,transaction:g});if(!(!bb({editor:e,state:b,from:Math.max(p-1,0),to:m.b-1,rule:h,pasteEvent:f,dropEvent:l})||!g.steps.length)){try{l=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{l=null}return a=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,g}};return t.map(u=>new he({view(p){const m=f=>{var g;o=!((g=p.dom.parentElement)===null||g===void 0)&&g.contains(f.target)?p.dom.parentElement:null,o&&(si=e)},h=()=>{si&&(si=null)};return window.addEventListener("dragstart",m),window.addEventListener("dragend",h),{destroy(){window.removeEventListener("dragstart",m),window.removeEventListener("dragend",h)}}},props:{handleDOMEvents:{drop:(p,m)=>{if(i=o===p.dom.parentElement,l=m,!i){const h=si;h&&setTimeout(()=>{const f=h.state.selection;f&&h.commands.deleteRange({from:f.from,to:f.to})},10)}return!1},paste:(p,m)=>{var h;const f=(h=m.clipboardData)===null||h===void 0?void 0:h.getData("text/html");return a=m,n=!!(f!=null&&f.includes("data-pm-slice")),!1}}},appendTransaction:(p,m,h)=>{const f=p[0],g=f.getMeta("uiEvent")==="paste"&&!n,b=f.getMeta("uiEvent")==="drop"&&!i,y=f.getMeta("applyPasteRules"),k=!!y;if(!g&&!b&&!k)return;if(k){let{text:S}=y;typeof S=="string"?S=S:S=Es(M.from(S),h.schema);const{from:x}=y,C=x+S.length,O=wb(S);return c({rule:u,state:h,from:x,to:{b:C},pasteEvt:O})}const v=m.doc.content.findDiffStart(h.doc.content),w=m.doc.content.findDiffEnd(h.doc.content);if(!(!hb(v)||!w||v===w.b))return c({rule:u,state:h,from:v,to:w,pasteEvt:a})}}))}function vb(r){const e=r.filter((t,o)=>r.indexOf(t)!==o);return Array.from(new Set(e))}class Qr{constructor(e,t){this.splittableMarks=[],this.editor=t,this.extensions=Qr.resolve(e),this.schema=cb(this.extensions,t),this.setupExtensions()}static resolve(e){const t=Qr.sort(Qr.flatten(e)),o=vb(t.map(n=>n.name));return o.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${o.map(n=>`'${n}'`).join(", ")}]. This can lead to issues.`),t}static flatten(e){return e.map(t=>{const o={name:t.name,options:t.options,storage:t.storage},n=I(t,"addExtensions",o);return n?[t,...this.flatten(n())]:t}).flat(10)}static sort(e){return e.sort((o,n)=>{const i=I(o,"priority")||100,a=I(n,"priority")||100;return i>a?-1:i<a?1:0})}get commands(){return this.extensions.reduce((e,t)=>{const o={name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:ks(t.name,this.schema)},n=I(t,"addCommands",o);return n?{...e,...n()}:e},{})}get plugins(){const{editor:e}=this,t=Qr.sort([...this.extensions].reverse()),o=[],n=[],i=t.map(a=>{const l={name:a.name,options:a.options,storage:a.storage,editor:e,type:ks(a.name,this.schema)},c=[],d=I(a,"addKeyboardShortcuts",l);let u={};if(a.type==="mark"&&I(a,"exitable",l)&&(u.ArrowRight=()=>Ot.handleExit({editor:e,mark:a})),d){const g=Object.fromEntries(Object.entries(d()).map(([b,y])=>[b,()=>y({editor:e})]));u={...u,...g}}const p=_0(u);c.push(p);const m=I(a,"addInputRules",l);zu(a,e.options.enableInputRules)&&m&&o.push(...m());const h=I(a,"addPasteRules",l);zu(a,e.options.enablePasteRules)&&h&&n.push(...h());const f=I(a,"addProseMirrorPlugins",l);if(f){const g=f();c.push(...g)}return c}).flat();return[pb({editor:e,rules:o}),...yb({editor:e,rules:n}),...i]}get attributes(){return Du(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:t}=ri(this.extensions);return Object.fromEntries(t.filter(o=>!!I(o,"addNodeView")).map(o=>{const n=this.attributes.filter(c=>c.type===o.name),i={name:o.name,options:o.options,storage:o.storage,editor:e,type:ye(o.name,this.schema)},a=I(o,"addNodeView",i);if(!a)return[];const l=(c,d,u,p,m)=>{const h=xs(c,n);return a()({node:c,view:d,getPos:u,decorations:p,innerDecorations:m,editor:e,extension:o,HTMLAttributes:h})};return[o.name,l]}))}setupExtensions(){this.extensions.forEach(e=>{var t;this.editor.extensionStorage[e.name]=e.storage;const o={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:ks(e.name,this.schema)};e.type==="mark"&&(!((t=U(I(e,"keepOnSplit",o)))!==null&&t!==void 0)||t)&&this.splittableMarks.push(e.name);const n=I(e,"onBeforeCreate",o),i=I(e,"onCreate",o),a=I(e,"onUpdate",o),l=I(e,"onSelectionUpdate",o),c=I(e,"onTransaction",o),d=I(e,"onFocus",o),u=I(e,"onBlur",o),p=I(e,"onDestroy",o);n&&this.editor.on("beforeCreate",n),i&&this.editor.on("create",i),a&&this.editor.on("update",a),l&&this.editor.on("selectionUpdate",l),c&&this.editor.on("transaction",c),d&&this.editor.on("focus",d),u&&this.editor.on("blur",u),p&&this.editor.on("destroy",p)})}}class Be{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.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=U(I(this,"addOptions",{name:this.name}))),this.storage=U(I(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Be(e)}configure(e={}){const t=this.extend({...this.config,addOptions:()=>ai(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){const t=new Be({...this.config,...e});return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=U(I(t,"addOptions",{name:t.name})),t.storage=U(I(t,"addStorage",{name:t.name,options:t.options})),t}}function _u(r,e,t){const{from:o,to:n}=e,{blockSeparator:i=`
|
|
22
|
+
|
|
23
|
+
`,textSerializers:a={}}=t||{};let l="";return r.nodesBetween(o,n,(c,d,u,p)=>{var m;c.isBlock&&d>o&&(l+=i);const h=a==null?void 0:a[c.type.name];if(h)return u&&(l+=h({node:c,pos:d,parent:u,index:p,range:e})),!1;c.isText&&(l+=(m=c==null?void 0:c.text)===null||m===void 0?void 0:m.slice(Math.max(o,d)-d,n-d))}),l}function Cs(r){return Object.fromEntries(Object.entries(r.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}const xb=Be.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new he({key:new Ae("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:r}=this,{state:e,schema:t}=r,{doc:o,selection:n}=e,{ranges:i}=n,a=Math.min(...i.map(u=>u.$from.pos)),l=Math.max(...i.map(u=>u.$to.pos)),c=Cs(t);return _u(o,{from:a,to:l},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:c})}}})]}}),kb=()=>({editor:r,view:e})=>(requestAnimationFrame(()=>{var t;r.isDestroyed||(e.dom.blur(),(t=window==null?void 0:window.getSelection())===null||t===void 0||t.removeAllRanges())}),!0),Eb=(r=!1)=>({commands:e})=>e.setContent("",r),Sb=()=>({state:r,tr:e,dispatch:t})=>{const{selection:o}=e,{ranges:n}=o;return t&&n.forEach(({$from:i,$to:a})=>{r.doc.nodesBetween(i.pos,a.pos,(l,c)=>{if(l.type.isText)return;const{doc:d,mapping:u}=e,p=d.resolve(u.map(c)),m=d.resolve(u.map(c+l.nodeSize)),h=p.blockRange(m);if(!h)return;const f=_r(h);if(l.type.isTextblock){const{defaultType:g}=p.parent.contentMatchAt(p.index());e.setNodeMarkup(h.start,g)}(f||f===0)&&e.lift(h,f)})}),!0},Cb=r=>e=>r(e),Nb=()=>({state:r,dispatch:e})=>Tu(r,e),Bb=(r,e)=>({editor:t,tr:o})=>{const{state:n}=t,i=n.doc.slice(r.from,r.to);o.deleteRange(r.from,r.to);const a=o.mapping.map(e);return o.insert(a,i.content),o.setSelection(new j(o.doc.resolve(a-1))),!0},Mb=()=>({tr:r,dispatch:e})=>{const{selection:t}=r,o=t.$anchor.node();if(o.content.size>0)return!1;const n=r.selection.$anchor;for(let i=n.depth;i>0;i-=1)if(n.node(i).type===o.type){if(e){const l=n.before(i),c=n.after(i);r.delete(l,c).scrollIntoView()}return!0}return!1},Tb=r=>({tr:e,state:t,dispatch:o})=>{const n=ye(r,t.schema),i=e.selection.$anchor;for(let a=i.depth;a>0;a-=1)if(i.node(a).type===n){if(o){const c=i.before(a),d=i.after(a);e.delete(c,d).scrollIntoView()}return!0}return!1},Ob=r=>({tr:e,dispatch:t})=>{const{from:o,to:n}=r;return t&&e.delete(o,n),!0},Vb=()=>({state:r,dispatch:e})=>gs(r,e),Pb=()=>({commands:r})=>r.keyboardShortcut("Enter"),Ab=()=>({state:r,dispatch:e})=>U0(r,e);function li(r,e,t={strict:!0}){const o=Object.keys(e);return o.length?o.every(n=>t.strict?e[n]===r[n]:Ss(e[n])?e[n].test(r[n]):e[n]===r[n]):!0}function Fu(r,e,t={}){return r.find(o=>o.type===e&&li(Object.fromEntries(Object.keys(t).map(n=>[n,o.attrs[n]])),t))}function ju(r,e,t={}){return!!Fu(r,e,t)}function Ns(r,e,t){var o;if(!r||!e)return;let n=r.parent.childAfter(r.parentOffset);if((!n.node||!n.node.marks.some(u=>u.type===e))&&(n=r.parent.childBefore(r.parentOffset)),!n.node||!n.node.marks.some(u=>u.type===e)||(t=t||((o=n.node.marks[0])===null||o===void 0?void 0:o.attrs),!Fu([...n.node.marks],e,t)))return;let a=n.index,l=r.start()+n.offset,c=a+1,d=l+n.node.nodeSize;for(;a>0&&ju([...r.parent.child(a-1).marks],e,t);)a-=1,l-=r.parent.child(a).nodeSize;for(;c<r.parent.childCount&&ju([...r.parent.child(c).marks],e,t);)d+=r.parent.child(c).nodeSize,c+=1;return{from:l,to:d}}function tr(r,e){if(typeof r=="string"){if(!e.marks[r])throw Error(`There is no mark type named '${r}'. Maybe you forgot to add the extension?`);return e.marks[r]}return r}const Db=(r,e={})=>({tr:t,state:o,dispatch:n})=>{const i=tr(r,o.schema),{doc:a,selection:l}=t,{$from:c,from:d,to:u}=l;if(n){const p=Ns(c,i,e);if(p&&p.from<=d&&p.to>=u){const m=j.create(a,p.from,p.to);t.setSelection(m)}}return!0},Ib=r=>e=>{const t=typeof r=="function"?r(e):r;for(let o=0;o<t.length;o+=1)if(t[o](e))return!0;return!1};function Bs(r){return r instanceof j}function Vt(r=0,e=0,t=0){return Math.min(Math.max(r,e),t)}function Hu(r,e=null){if(!e)return null;const t=W.atStart(r),o=W.atEnd(r);if(e==="start"||e===!0)return t;if(e==="end")return o;const n=t.from,i=o.to;return e==="all"?j.create(r,Vt(0,n,i),Vt(r.content.size,n,i)):j.create(r,Vt(e,n,i),Vt(e,n,i))}function Lb(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}function Ms(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const Rb=(r=null,e={})=>({editor:t,view:o,tr:n,dispatch:i})=>{e={scrollIntoView:!0,...e};const a=()=>{(Ms()||Lb())&&o.dom.focus(),requestAnimationFrame(()=>{t.isDestroyed||(o.focus(),e!=null&&e.scrollIntoView&&t.commands.scrollIntoView())})};if(o.hasFocus()&&r===null||r===!1)return!0;if(i&&r===null&&!Bs(t.state.selection))return a(),!0;const l=Hu(n.doc,r)||t.state.selection,c=t.state.selection.eq(l);return i&&(c||n.setSelection(l),c&&n.storedMarks&&n.setStoredMarks(n.storedMarks),a()),!0},zb=(r,e)=>t=>r.every((o,n)=>e(o,{...t,index:n})),_b=(r,e)=>({tr:t,commands:o})=>o.insertContentAt({from:t.selection.from,to:t.selection.to},r,e),Wu=r=>{const e=r.childNodes;for(let t=e.length-1;t>=0;t-=1){const o=e[t];o.nodeType===3&&o.nodeValue&&/^(\n\s\s|\n)$/.test(o.nodeValue)?r.removeChild(o):o.nodeType===1&&Wu(o)}return r};function ci(r){const e=`<body>${r}</body>`,t=new window.DOMParser().parseFromString(e,"text/html").body;return Wu(t)}function _o(r,e,t){if(r instanceof Ht||r instanceof M)return r;t={slice:!0,parseOptions:{},...t};const o=typeof r=="object"&&r!==null,n=typeof r=="string";if(o)try{if(Array.isArray(r)&&r.length>0)return M.fromArray(r.map(l=>e.nodeFromJSON(l)));const a=e.nodeFromJSON(r);return t.errorOnInvalidContent&&a.check(),a}catch(i){if(t.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:i});return console.warn("[tiptap warn]: Invalid content.","Passed value:",r,"Error:",i),_o("",e,t)}if(n){if(t.errorOnInvalidContent){let a=!1,l="";const c=new Bc({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:d=>(a=!0,l=typeof d=="string"?d:d.outerHTML,null)}]}})});if(t.slice?ko.fromSchema(c).parseSlice(ci(r),t.parseOptions):ko.fromSchema(c).parse(ci(r),t.parseOptions),t.errorOnInvalidContent&&a)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${l}`)})}const i=ko.fromSchema(e);return t.slice?i.parseSlice(ci(r),t.parseOptions).content:i.parse(ci(r),t.parseOptions)}return _o("",e,t)}function Fb(r,e,t){const o=r.steps.length-1;if(o<e)return;const n=r.steps[o];if(!(n instanceof be||n instanceof we))return;const i=r.mapping.maps[o];let a=0;i.forEach((l,c,d,u)=>{a===0&&(a=u)}),r.setSelection(W.near(r.doc.resolve(a),t))}const jb=r=>!("type"in r),Hb=(r,e,t)=>({tr:o,dispatch:n,editor:i})=>{var a;if(n){t={parseOptions:i.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...t};let l;const c=b=>{i.emit("contentError",{editor:i,error:b,disableCollaboration:()=>{i.storage.collaboration&&(i.storage.collaboration.isDisabled=!0)}})},d={preserveWhitespace:"full",...t.parseOptions};if(!t.errorOnInvalidContent&&!i.options.enableContentCheck&&i.options.emitContentError)try{_o(e,i.schema,{parseOptions:d,errorOnInvalidContent:!0})}catch(b){c(b)}try{l=_o(e,i.schema,{parseOptions:d,errorOnInvalidContent:(a=t.errorOnInvalidContent)!==null&&a!==void 0?a:i.options.enableContentCheck})}catch(b){return c(b),!1}let{from:u,to:p}=typeof r=="number"?{from:r,to:r}:{from:r.from,to:r.to},m=!0,h=!0;if((jb(l)?l:[l]).forEach(b=>{b.check(),m=m?b.isText&&b.marks.length===0:!1,h=h?b.isBlock:!1}),u===p&&h){const{parent:b}=o.doc.resolve(u);b.isTextblock&&!b.type.spec.code&&!b.childCount&&(u-=1,p+=1)}let g;if(m){if(Array.isArray(e))g=e.map(b=>b.text||"").join("");else if(e instanceof M){let b="";e.forEach(y=>{y.text&&(b+=y.text)}),g=b}else typeof e=="object"&&e&&e.text?g=e.text:g=e;o.insertText(g,u,p)}else g=l,o.replaceWith(u,p,g);t.updateSelection&&Fb(o,o.steps.length-1,-1),t.applyInputRules&&o.setMeta("applyInputRules",{from:u,text:g}),t.applyPasteRules&&o.setMeta("applyPasteRules",{from:u,text:g})}return!0},Wb=()=>({state:r,dispatch:e})=>H0(r,e),qb=()=>({state:r,dispatch:e})=>W0(r,e),Ub=()=>({state:r,dispatch:e})=>ku(r,e),Kb=()=>({state:r,dispatch:e})=>Nu(r,e),Jb=()=>({state:r,dispatch:e,tr:t})=>{try{const o=jn(r.doc,r.selection.$from.pos,-1);return o==null?!1:(t.join(o,2),e&&e(t),!0)}catch{return!1}},Gb=()=>({state:r,dispatch:e,tr:t})=>{try{const o=jn(r.doc,r.selection.$from.pos,1);return o==null?!1:(t.join(o,2),e&&e(t),!0)}catch{return!1}},Yb=()=>({state:r,dispatch:e})=>F0(r,e),Xb=()=>({state:r,dispatch:e})=>j0(r,e);function qu(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function Qb(r){const e=r.split(/-(?!$)/);let t=e[e.length-1];t==="Space"&&(t=" ");let o,n,i,a;for(let l=0;l<e.length-1;l+=1){const c=e[l];if(/^(cmd|meta|m)$/i.test(c))a=!0;else if(/^a(lt)?$/i.test(c))o=!0;else if(/^(c|ctrl|control)$/i.test(c))n=!0;else if(/^s(hift)?$/i.test(c))i=!0;else if(/^mod$/i.test(c))Ms()||qu()?a=!0:n=!0;else throw new Error(`Unrecognized modifier name: ${c}`)}return o&&(t=`Alt-${t}`),n&&(t=`Ctrl-${t}`),a&&(t=`Meta-${t}`),i&&(t=`Shift-${t}`),t}const Zb=r=>({editor:e,view:t,tr:o,dispatch:n})=>{const i=Qb(r).split(/-(?!$)/),a=i.find(d=>!["Alt","Ctrl","Meta","Shift"].includes(d)),l=new KeyboardEvent("keydown",{key:a==="Space"?" ":a,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),c=e.captureTransaction(()=>{t.someProp("handleKeyDown",d=>d(t,l))});return c==null||c.steps.forEach(d=>{const u=d.map(o.mapping);u&&n&&o.maybeStep(u)}),!0};function Fo(r,e,t={}){const{from:o,to:n,empty:i}=r.selection,a=e?ye(e,r.schema):null,l=[];r.doc.nodesBetween(o,n,(p,m)=>{if(p.isText)return;const h=Math.max(o,m),f=Math.min(n,m+p.nodeSize);l.push({node:p,from:h,to:f})});const c=n-o,d=l.filter(p=>a?a.name===p.node.type.name:!0).filter(p=>li(p.node.attrs,t,{strict:!1}));return i?!!d.length:d.reduce((p,m)=>p+m.to-m.from,0)>=c}const $b=(r,e={})=>({state:t,dispatch:o})=>{const n=ye(r,t.schema);return Fo(t,n,e)?q0(t,o):!1},ew=()=>({state:r,dispatch:e})=>Ou(r,e),tw=r=>({state:e,dispatch:t})=>{const o=ye(r,e.schema);return rb(o)(e,t)},rw=()=>({state:r,dispatch:e})=>Mu(r,e);function di(r,e){return e.nodes[r]?"node":e.marks[r]?"mark":null}function Uu(r,e){const t=typeof e=="string"?[e]:e;return Object.keys(r).reduce((o,n)=>(t.includes(n)||(o[n]=r[n]),o),{})}const ow=(r,e)=>({tr:t,state:o,dispatch:n})=>{let i=null,a=null;const l=di(typeof r=="string"?r:r.name,o.schema);return l?(l==="node"&&(i=ye(r,o.schema)),l==="mark"&&(a=tr(r,o.schema)),n&&t.selection.ranges.forEach(c=>{o.doc.nodesBetween(c.$from.pos,c.$to.pos,(d,u)=>{i&&i===d.type&&t.setNodeMarkup(u,void 0,Uu(d.attrs,e)),a&&d.marks.length&&d.marks.forEach(p=>{a===p.type&&t.addMark(u,u+d.nodeSize,a.create(Uu(p.attrs,e)))})})}),!0):!1},nw=()=>({tr:r,dispatch:e})=>(e&&r.scrollIntoView(),!0),iw=()=>({tr:r,dispatch:e})=>{if(e){const t=new qe(r.doc);r.setSelection(t)}return!0},aw=()=>({state:r,dispatch:e})=>Su(r,e),sw=()=>({state:r,dispatch:e})=>Bu(r,e),lw=()=>({state:r,dispatch:e})=>G0(r,e),cw=()=>({state:r,dispatch:e})=>Q0(r,e),dw=()=>({state:r,dispatch:e})=>X0(r,e);function Ts(r,e,t={},o={}){return _o(r,e,{slice:!1,parseOptions:t,errorOnInvalidContent:o.errorOnInvalidContent})}const uw=(r,e=!1,t={},o={})=>({editor:n,tr:i,dispatch:a,commands:l})=>{var c,d;const{doc:u}=i;if(t.preserveWhitespace!=="full"){const p=Ts(r,n.schema,t,{errorOnInvalidContent:(c=o.errorOnInvalidContent)!==null&&c!==void 0?c:n.options.enableContentCheck});return a&&i.replaceWith(0,u.content.size,p).setMeta("preventUpdate",!e),!0}return a&&i.setMeta("preventUpdate",!e),l.insertContentAt({from:0,to:u.content.size},r,{parseOptions:t,errorOnInvalidContent:(d=o.errorOnInvalidContent)!==null&&d!==void 0?d:n.options.enableContentCheck})};function Ku(r,e){const t=tr(e,r.schema),{from:o,to:n,empty:i}=r.selection,a=[];i?(r.storedMarks&&a.push(...r.storedMarks),a.push(...r.selection.$head.marks())):r.doc.nodesBetween(o,n,c=>{a.push(...c.marks)});const l=a.find(c=>c.type.name===t.name);return l?{...l.attrs}:{}}function pw(r,e){const t=new Zc(r);return e.forEach(o=>{o.steps.forEach(n=>{t.step(n)})}),t}function mw(r){for(let e=0;e<r.edgeCount;e+=1){const{type:t}=r.edge(e);if(t.isTextblock&&!t.hasRequiredAttrs())return t}return null}function hw(r,e,t){const o=[];return r.nodesBetween(e.from,e.to,(n,i)=>{t(n)&&o.push({node:n,pos:i})}),o}function fw(r,e){for(let t=r.depth;t>0;t-=1){const o=r.node(t);if(e(o))return{pos:t>0?r.before(t):0,start:r.start(t),depth:t,node:o}}}function Os(r){return e=>fw(e.$from,r)}function Ju(r,e){const t={from:0,to:r.content.size};return _u(r,t,e)}function gw(r,e){const t=ye(e,r.schema),{from:o,to:n}=r.selection,i=[];r.doc.nodesBetween(o,n,l=>{i.push(l)});const a=i.reverse().find(l=>l.type.name===t.name);return a?{...a.attrs}:{}}function Gu(r,e){const t=di(typeof e=="string"?e:e.name,r.schema);return t==="node"?gw(r,e):t==="mark"?Ku(r,e):{}}function bw(r,e=JSON.stringify){const t={};return r.filter(o=>{const n=e(o);return Object.prototype.hasOwnProperty.call(t,n)?!1:t[n]=!0})}function ww(r){const e=bw(r);return e.length===1?e:e.filter((t,o)=>!e.filter((i,a)=>a!==o).some(i=>t.oldRange.from>=i.oldRange.from&&t.oldRange.to<=i.oldRange.to&&t.newRange.from>=i.newRange.from&&t.newRange.to<=i.newRange.to))}function yw(r){const{mapping:e,steps:t}=r,o=[];return e.maps.forEach((n,i)=>{const a=[];if(n.ranges.length)n.forEach((l,c)=>{a.push({from:l,to:c})});else{const{from:l,to:c}=t[i];if(l===void 0||c===void 0)return;a.push({from:l,to:c})}a.forEach(({from:l,to:c})=>{const d=e.slice(i).map(l,-1),u=e.slice(i).map(c),p=e.invert().map(d,-1),m=e.invert().map(u);o.push({oldRange:{from:p,to:m},newRange:{from:d,to:u}})})}),ww(o)}function Vs(r,e,t){const o=[];return r===e?t.resolve(r).marks().forEach(n=>{const i=t.resolve(r),a=Ns(i,n.type);a&&o.push({mark:n,...a})}):t.nodesBetween(r,e,(n,i)=>{!n||(n==null?void 0:n.nodeSize)===void 0||o.push(...n.marks.map(a=>({from:i,to:i+n.nodeSize,mark:a})))}),o}function ui(r,e,t){return Object.fromEntries(Object.entries(t).filter(([o])=>{const n=r.find(i=>i.type===e&&i.name===o);return n?n.attribute.keepOnSplit:!1}))}function Ps(r,e,t={}){const{empty:o,ranges:n}=r.selection,i=e?tr(e,r.schema):null;if(o)return!!(r.storedMarks||r.selection.$from.marks()).filter(p=>i?i.name===p.type.name:!0).find(p=>li(p.attrs,t,{strict:!1}));let a=0;const l=[];if(n.forEach(({$from:p,$to:m})=>{const h=p.pos,f=m.pos;r.doc.nodesBetween(h,f,(g,b)=>{if(!g.isText&&!g.marks.length)return;const y=Math.max(h,b),k=Math.min(f,b+g.nodeSize),v=k-y;a+=v,l.push(...g.marks.map(w=>({mark:w,from:y,to:k})))})}),a===0)return!1;const c=l.filter(p=>i?i.name===p.mark.type.name:!0).filter(p=>li(p.mark.attrs,t,{strict:!1})).reduce((p,m)=>p+m.to-m.from,0),d=l.filter(p=>i?p.mark.type!==i&&p.mark.type.excludes(i):!0).reduce((p,m)=>p+m.to-m.from,0);return(c>0?c+d:c)>=a}function vw(r,e,t={}){if(!e)return Fo(r,null,t)||Ps(r,null,t);const o=di(e,r.schema);return o==="node"?Fo(r,e,t):o==="mark"?Ps(r,e,t):!1}function Yu(r,e){const{nodeExtensions:t}=ri(e),o=t.find(a=>a.name===r);if(!o)return!1;const n={name:o.name,options:o.options,storage:o.storage},i=U(I(o,"group",n));return typeof i!="string"?!1:i.split(" ").includes("list")}function As(r,{checkChildren:e=!0,ignoreWhitespace:t=!1}={}){var o;if(t){if(r.type.name==="hardBreak")return!0;if(r.isText)return/^\s*$/m.test((o=r.text)!==null&&o!==void 0?o:"")}if(r.isText)return!r.text;if(r.isAtom||r.isLeaf)return!1;if(r.content.childCount===0)return!0;if(e){let n=!0;return r.content.forEach(i=>{n!==!1&&(As(i,{ignoreWhitespace:t,checkChildren:e})||(n=!1))}),n}return!1}function Xu(r){return r instanceof R}function Qu(r,e,t){const n=r.state.doc.content.size,i=Vt(e,0,n),a=Vt(t,0,n),l=r.coordsAtPos(i),c=r.coordsAtPos(a,-1),d=Math.min(l.top,c.top),u=Math.max(l.bottom,c.bottom),p=Math.min(l.left,c.left),m=Math.max(l.right,c.right),h=m-p,f=u-d,y={top:d,bottom:u,left:p,right:m,width:h,height:f,x:p,y:d};return{...y,toJSON:()=>y}}function xw(r,e,t){var o;const{selection:n}=e;let i=null;if(Bs(n)&&(i=n.$cursor),i){const l=(o=r.storedMarks)!==null&&o!==void 0?o:i.marks();return!!t.isInSet(l)||!l.some(c=>c.type.excludes(t))}const{ranges:a}=n;return a.some(({$from:l,$to:c})=>{let d=l.depth===0?r.doc.inlineContent&&r.doc.type.allowsMarkType(t):!1;return r.doc.nodesBetween(l.pos,c.pos,(u,p,m)=>{if(d)return!1;if(u.isInline){const h=!m||m.type.allowsMarkType(t),f=!!t.isInSet(u.marks)||!u.marks.some(g=>g.type.excludes(t));d=h&&f}return!d}),d})}const kw=(r,e={})=>({tr:t,state:o,dispatch:n})=>{const{selection:i}=t,{empty:a,ranges:l}=i,c=tr(r,o.schema);if(n)if(a){const d=Ku(o,c);t.addStoredMark(c.create({...d,...e}))}else l.forEach(d=>{const u=d.$from.pos,p=d.$to.pos;o.doc.nodesBetween(u,p,(m,h)=>{const f=Math.max(h,u),g=Math.min(h+m.nodeSize,p);m.marks.find(y=>y.type===c)?m.marks.forEach(y=>{c===y.type&&t.addMark(f,g,c.create({...y.attrs,...e}))}):t.addMark(f,g,c.create(e))})});return xw(o,t,c)},Ew=(r,e)=>({tr:t})=>(t.setMeta(r,e),!0),Sw=(r,e={})=>({state:t,dispatch:o,chain:n})=>{const i=ye(r,t.schema);let a;return t.selection.$anchor.sameParent(t.selection.$head)&&(a=t.selection.$anchor.parent.attrs),i.isTextblock?n().command(({commands:l})=>Au(i,{...a,...e})(t)?!0:l.clearNodes()).command(({state:l})=>Au(i,{...a,...e})(l,o)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},Cw=r=>({tr:e,dispatch:t})=>{if(t){const{doc:o}=e,n=Vt(r,0,o.content.size),i=R.create(o,n);e.setSelection(i)}return!0},Nw=r=>({tr:e,dispatch:t})=>{if(t){const{doc:o}=e,{from:n,to:i}=typeof r=="number"?{from:r,to:r}:r,a=j.atStart(o).from,l=j.atEnd(o).to,c=Vt(n,a,l),d=Vt(i,a,l),u=j.create(o,c,d);e.setSelection(u)}return!0},Bw=r=>({state:e,dispatch:t})=>{const o=ye(r,e.schema);return ib(o)(e,t)};function Zu(r,e){const t=r.storedMarks||r.selection.$to.parentOffset&&r.selection.$from.marks();if(t){const o=t.filter(n=>e==null?void 0:e.includes(n.type.name));r.tr.ensureMarks(o)}}const Mw=({keepMarks:r=!0}={})=>({tr:e,state:t,dispatch:o,editor:n})=>{const{selection:i,doc:a}=e,{$from:l,$to:c}=i,d=n.extensionManager.attributes,u=ui(d,l.node().type.name,l.node().attrs);if(i instanceof R&&i.node.isBlock)return!l.parentOffset||!Ct(a,l.pos)?!1:(o&&(r&&Zu(t,n.extensionManager.splittableMarks),e.split(l.pos).scrollIntoView()),!0);if(!l.parent.isBlock)return!1;const p=c.parentOffset===c.parent.content.size,m=l.depth===0?void 0:mw(l.node(-1).contentMatchAt(l.indexAfter(-1)));let h=p&&m?[{type:m,attrs:u}]:void 0,f=Ct(e.doc,e.mapping.map(l.pos),1,h);if(!h&&!f&&Ct(e.doc,e.mapping.map(l.pos),1,m?[{type:m}]:void 0)&&(f=!0,h=m?[{type:m,attrs:u}]:void 0),o){if(f&&(i instanceof j&&e.deleteSelection(),e.split(e.mapping.map(l.pos),1,h),m&&!p&&!l.parentOffset&&l.parent.type!==m)){const g=e.mapping.map(l.before()),b=e.doc.resolve(g);l.node(-1).canReplaceWith(b.index(),b.index()+1,m)&&e.setNodeMarkup(e.mapping.map(l.before()),m)}r&&Zu(t,n.extensionManager.splittableMarks),e.scrollIntoView()}return f},Tw=(r,e={})=>({tr:t,state:o,dispatch:n,editor:i})=>{var a;const l=ye(r,o.schema),{$from:c,$to:d}=o.selection,u=o.selection.node;if(u&&u.isBlock||c.depth<2||!c.sameParent(d))return!1;const p=c.node(-1);if(p.type!==l)return!1;const m=i.extensionManager.attributes;if(c.parent.content.size===0&&c.node(-1).childCount===c.indexAfter(-1)){if(c.depth===2||c.node(-3).type!==l||c.index(-2)!==c.node(-2).childCount-1)return!1;if(n){let y=M.empty;const k=c.index(-1)?1:c.index(-2)?2:3;for(let O=c.depth-k;O>=c.depth-3;O-=1)y=M.from(c.node(O).copy(y));const v=c.indexAfter(-1)<c.node(-2).childCount?1:c.indexAfter(-2)<c.node(-3).childCount?2:3,w={...ui(m,c.node().type.name,c.node().attrs),...e},S=((a=l.contentMatch.defaultType)===null||a===void 0?void 0:a.createAndFill(w))||void 0;y=y.append(M.from(l.createAndFill(null,S)||void 0));const x=c.before(c.depth-(k-1));t.replace(x,c.after(-v),new A(y,4-k,0));let C=-1;t.doc.nodesBetween(x,t.doc.content.size,(O,D)=>{if(C>-1)return!1;O.isTextblock&&O.content.size===0&&(C=D+1)}),C>-1&&t.setSelection(j.near(t.doc.resolve(C))),t.scrollIntoView()}return!0}const h=d.pos===c.end()?p.contentMatchAt(0).defaultType:null,f={...ui(m,p.type.name,p.attrs),...e},g={...ui(m,c.node().type.name,c.node().attrs),...e};t.delete(c.pos,d.pos);const b=h?[{type:l,attrs:f},{type:h,attrs:g}]:[{type:l,attrs:f}];if(!Ct(t.doc,c.pos,2))return!1;if(n){const{selection:y,storedMarks:k}=o,{splittableMarks:v}=i.extensionManager,w=k||y.$to.parentOffset&&y.$from.marks();if(t.split(c.pos,2,b).scrollIntoView(),!w||!n)return!0;const S=w.filter(x=>v.includes(x.type.name));t.ensureMarks(S)}return!0},Ds=(r,e)=>{const t=Os(a=>a.type===e)(r.selection);if(!t)return!0;const o=r.doc.resolve(Math.max(0,t.pos-1)).before(t.depth);if(o===void 0)return!0;const n=r.doc.nodeAt(o);return t.node.type===(n==null?void 0:n.type)&&Ut(r.doc,t.pos)&&r.join(t.pos),!0},Is=(r,e)=>{const t=Os(a=>a.type===e)(r.selection);if(!t)return!0;const o=r.doc.resolve(t.start).after(t.depth);if(o===void 0)return!0;const n=r.doc.nodeAt(o);return t.node.type===(n==null?void 0:n.type)&&Ut(r.doc,o)&&r.join(o),!0};var Ow=Object.freeze({__proto__:null,blur:kb,clearContent:Eb,clearNodes:Sb,command:Cb,createParagraphNear:Nb,cut:Bb,deleteCurrentNode:Mb,deleteNode:Tb,deleteRange:Ob,deleteSelection:Vb,enter:Pb,exitCode:Ab,extendMarkRange:Db,first:Ib,focus:Rb,forEach:zb,insertContent:_b,insertContentAt:Hb,joinBackward:Ub,joinDown:qb,joinForward:Kb,joinItemBackward:Jb,joinItemForward:Gb,joinTextblockBackward:Yb,joinTextblockForward:Xb,joinUp:Wb,keyboardShortcut:Zb,lift:$b,liftEmptyBlock:ew,liftListItem:tw,newlineInCode:rw,resetAttributes:ow,scrollIntoView:nw,selectAll:iw,selectNodeBackward:aw,selectNodeForward:sw,selectParentNode:lw,selectTextblockEnd:cw,selectTextblockStart:dw,setContent:uw,setMark:kw,setMeta:Ew,setNode:Sw,setNodeSelection:Cw,setTextSelection:Nw,sinkListItem:Bw,splitBlock:Mw,splitListItem:Tw,toggleList:(r,e,t,o={})=>({editor:n,tr:i,state:a,dispatch:l,chain:c,commands:d,can:u})=>{const{extensions:p,splittableMarks:m}=n.extensionManager,h=ye(r,a.schema),f=ye(e,a.schema),{selection:g,storedMarks:b}=a,{$from:y,$to:k}=g,v=y.blockRange(k),w=b||g.$to.parentOffset&&g.$from.marks();if(!v)return!1;const S=Os(x=>Yu(x.type.name,p))(g);if(v.depth>=1&&S&&v.depth-S.depth<=1){if(S.node.type===h)return d.liftListItem(f);if(Yu(S.node.type.name,p)&&h.validContent(S.node.content)&&l)return c().command(()=>(i.setNodeMarkup(S.pos,h),!0)).command(()=>Ds(i,h)).command(()=>Is(i,h)).run()}return!t||!w||!l?c().command(()=>u().wrapInList(h,o)?!0:d.clearNodes()).wrapInList(h,o).command(()=>Ds(i,h)).command(()=>Is(i,h)).run():c().command(()=>{const x=u().wrapInList(h,o),C=w.filter(O=>m.includes(O.type.name));return i.ensureMarks(C),x?!0:d.clearNodes()}).wrapInList(h,o).command(()=>Ds(i,h)).command(()=>Is(i,h)).run()},toggleMark:(r,e={},t={})=>({state:o,commands:n})=>{const{extendEmptyMarkRange:i=!1}=t,a=tr(r,o.schema);return Ps(o,a,e)?n.unsetMark(a,{extendEmptyMarkRange:i}):n.setMark(a,e)},toggleNode:(r,e,t={})=>({state:o,commands:n})=>{const i=ye(r,o.schema),a=ye(e,o.schema),l=Fo(o,i,t);let c;return o.selection.$anchor.sameParent(o.selection.$head)&&(c=o.selection.$anchor.parent.attrs),l?n.setNode(a,c):n.setNode(i,{...c,...t})},toggleWrap:(r,e={})=>({state:t,commands:o})=>{const n=ye(r,t.schema);return Fo(t,n,e)?o.lift(n):o.wrapIn(n,e)},undoInputRule:()=>({state:r,dispatch:e})=>{const t=r.plugins;for(let o=0;o<t.length;o+=1){const n=t[o];let i;if(n.spec.isInputRules&&(i=n.getState(r))){if(e){const a=r.tr,l=i.transform;for(let c=l.steps.length-1;c>=0;c-=1)a.step(l.steps[c].invert(l.docs[c]));if(i.text){const c=a.doc.resolve(i.from).marks();a.replaceWith(i.from,i.to,r.schema.text(i.text,c))}else a.delete(i.from,i.to)}return!0}}return!1},unsetAllMarks:()=>({tr:r,dispatch:e})=>{const{selection:t}=r,{empty:o,ranges:n}=t;return o||e&&n.forEach(i=>{r.removeMark(i.$from.pos,i.$to.pos)}),!0},unsetMark:(r,e={})=>({tr:t,state:o,dispatch:n})=>{var i;const{extendEmptyMarkRange:a=!1}=e,{selection:l}=t,c=tr(r,o.schema),{$from:d,empty:u,ranges:p}=l;if(!n)return!0;if(u&&a){let{from:m,to:h}=l;const f=(i=d.marks().find(b=>b.type===c))===null||i===void 0?void 0:i.attrs,g=Ns(d,c,f);g&&(m=g.from,h=g.to),t.removeMark(m,h,c)}else p.forEach(m=>{t.removeMark(m.$from.pos,m.$to.pos,c)});return t.removeStoredMark(c),!0},updateAttributes:(r,e={})=>({tr:t,state:o,dispatch:n})=>{let i=null,a=null;const l=di(typeof r=="string"?r:r.name,o.schema);return l?(l==="node"&&(i=ye(r,o.schema)),l==="mark"&&(a=tr(r,o.schema)),n&&t.selection.ranges.forEach(c=>{const d=c.$from.pos,u=c.$to.pos;let p,m,h,f;t.selection.empty?o.doc.nodesBetween(d,u,(g,b)=>{i&&i===g.type&&(h=Math.max(b,d),f=Math.min(b+g.nodeSize,u),p=b,m=g)}):o.doc.nodesBetween(d,u,(g,b)=>{b<d&&i&&i===g.type&&(h=Math.max(b,d),f=Math.min(b+g.nodeSize,u),p=b,m=g),b>=d&&b<=u&&(i&&i===g.type&&t.setNodeMarkup(b,void 0,{...g.attrs,...e}),a&&g.marks.length&&g.marks.forEach(y=>{if(a===y.type){const k=Math.max(b,d),v=Math.min(b+g.nodeSize,u);t.addMark(k,v,a.create({...y.attrs,...e}))}}))}),m&&(p!==void 0&&t.setNodeMarkup(p,void 0,{...m.attrs,...e}),a&&m.marks.length&&m.marks.forEach(g=>{a===g.type&&t.addMark(h,f,a.create({...g.attrs,...e}))}))}),!0):!1},wrapIn:(r,e={})=>({state:t,dispatch:o})=>{const n=ye(r,t.schema);return Z0(n,e)(t,o)},wrapInList:(r,e={})=>({state:t,dispatch:o})=>{const n=ye(r,t.schema);return $0(n,e)(t,o)}});const Vw=Be.create({name:"commands",addCommands(){return{...Ow}}}),Pw=Be.create({name:"drop",addProseMirrorPlugins(){return[new he({key:new Ae("tiptapDrop"),props:{handleDrop:(r,e,t,o)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:t,moved:o})}}})]}}),Aw=Be.create({name:"editable",addProseMirrorPlugins(){return[new he({key:new Ae("editable"),props:{editable:()=>this.editor.options.editable}})]}}),Dw=new Ae("focusEvents"),Iw=Be.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:r}=this;return[new he({key:Dw,props:{handleDOMEvents:{focus:(e,t)=>{r.isFocused=!0;const o=r.state.tr.setMeta("focus",{event:t}).setMeta("addToHistory",!1);return e.dispatch(o),!1},blur:(e,t)=>{r.isFocused=!1;const o=r.state.tr.setMeta("blur",{event:t}).setMeta("addToHistory",!1);return e.dispatch(o),!1}}}})]}}),Lw=Be.create({name:"keymap",addKeyboardShortcuts(){const r=()=>this.editor.commands.first(({commands:a})=>[()=>a.undoInputRule(),()=>a.command(({tr:l})=>{const{selection:c,doc:d}=l,{empty:u,$anchor:p}=c,{pos:m,parent:h}=p,f=p.parent.isTextblock&&m>0?l.doc.resolve(m-1):p,g=f.parent.type.spec.isolating,b=p.pos-p.parentOffset,y=g&&f.parent.childCount===1?b===p.pos:W.atStart(d).from===m;return!u||!h.type.isTextblock||h.textContent.length||!y||y&&p.parent.type.name==="paragraph"?!1:a.clearNodes()}),()=>a.deleteSelection(),()=>a.joinBackward(),()=>a.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:a})=>[()=>a.deleteSelection(),()=>a.deleteCurrentNode(),()=>a.joinForward(),()=>a.selectNodeForward()]),o={Enter:()=>this.editor.commands.first(({commands:a})=>[()=>a.newlineInCode(),()=>a.createParagraphNear(),()=>a.liftEmptyBlock(),()=>a.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:r,"Mod-Backspace":r,"Shift-Backspace":r,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},n={...o},i={...o,"Ctrl-h":r,"Alt-Backspace":r,"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 Ms()||qu()?i:n},addProseMirrorPlugins(){return[new he({key:new Ae("clearDocument"),appendTransaction:(r,e,t)=>{if(r.some(g=>g.getMeta("composition")))return;const o=r.some(g=>g.docChanged)&&!e.doc.eq(t.doc),n=r.some(g=>g.getMeta("preventClearDocument"));if(!o||n)return;const{empty:i,from:a,to:l}=e.selection,c=W.atStart(e.doc).from,d=W.atEnd(e.doc).to;if(i||!(a===c&&l===d)||!As(t.doc))return;const m=t.tr,h=ei({state:t,transaction:m}),{commands:f}=new ti({editor:this.editor,state:h});if(f.clearNodes(),!!m.steps.length)return m}})]}}),Rw=Be.create({name:"paste",addProseMirrorPlugins(){return[new he({key:new Ae("tiptapPaste"),props:{handlePaste:(r,e,t)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:t})}}})]}}),zw=Be.create({name:"tabindex",addProseMirrorPlugins(){return[new he({key:new Ae("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class Er{get name(){return this.node.type.name}constructor(e,t,o=!1,n=null){this.currentNode=null,this.actualDepth=null,this.isBlock=o,this.resolvedPos=e,this.editor=t,this.currentNode=n}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!==null&&e!==void 0?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let t=this.from,o=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}t=this.from+1,o=this.to-1}this.editor.commands.insertContentAt({from:t,to:o},e)}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(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),t=this.resolvedPos.doc.resolve(e);return new Er(t,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new Er(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new Er(e,this.editor)}get children(){const e=[];return this.node.content.forEach((t,o)=>{const n=t.isBlock&&!t.isTextblock,i=t.isAtom&&!t.isText,a=this.pos+o+(i?0:1),l=this.resolvedPos.doc.resolve(a);if(!n&&l.depth<=this.depth)return;const c=new Er(l,this.editor,n,n?t:null);n&&(c.actualDepth=this.depth+1),e.push(new Er(l,this.editor,n,n?t:null))}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,t={}){let o=null,n=this.parent;for(;n&&!o;){if(n.node.type.name===e)if(Object.keys(t).length>0){const i=n.node.attrs,a=Object.keys(t);for(let l=0;l<a.length;l+=1){const c=a[l];if(i[c]!==t[c])break}}else o=n;n=n.parent}return o}querySelector(e,t={}){return this.querySelectorAll(e,t,!0)[0]||null}querySelectorAll(e,t={},o=!1){let n=[];if(!this.children||this.children.length===0)return n;const i=Object.keys(t);return this.children.forEach(a=>{o&&n.length>0||(a.node.type.name===e&&i.every(c=>t[c]===a.node.attrs[c])&&n.push(a),!(o&&n.length>0)&&(n=n.concat(a.querySelectorAll(e,t,o))))}),n}setAttribute(e){const{tr:t}=this.editor.state;t.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(t)}}const _w=`.ProseMirror {
|
|
24
24
|
position: relative;
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -94,40 +94,40 @@ img.ProseMirror-separator {
|
|
|
94
94
|
|
|
95
95
|
.tippy-box[data-animation=fade][data-state=hidden] {
|
|
96
96
|
opacity: 0
|
|
97
|
-
}`;function Fw(r,e,t){const o=document.querySelector("style[data-tiptap-style]");if(o!==null)return o;const n=document.createElement("style");return e&&n.setAttribute("nonce",e),n.setAttribute("data-tiptap-style",""),n.innerHTML=r,document.getElementsByTagName("head")[0].appendChild(n),n}let jw=class extends ab{constructor(e={}){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(e),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:o,moved:n})=>this.options.onDrop(t,o,n)),this.on("paste",({event:t,slice:o})=>this.options.onPaste(t,o)),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=Fw(_w,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}),t&&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(e,t){const o=
|
|
97
|
+
}`;function Fw(r,e,t){const o=document.querySelector("style[data-tiptap-style]");if(o!==null)return o;const n=document.createElement("style");return e&&n.setAttribute("nonce",e),n.setAttribute("data-tiptap-style",""),n.innerHTML=r,document.getElementsByTagName("head")[0].appendChild(n),n}let jw=class extends ab{constructor(e={}){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(e),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:o,moved:n})=>this.options.onDrop(t,o,n)),this.on("paste",({event:t,slice:o})=>this.options.onPaste(t,o)),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=Fw(_w,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}),t&&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(e,t){const o=Iu(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],n=this.state.reconfigure({plugins:o});return this.view.updateState(n),n}unregisterPlugin(e){if(this.isDestroyed)return;const t=this.state.plugins;let o=t;if([].concat(e).forEach(i=>{const a=typeof i=="string"?`${i}$`:i.key;o=o.filter(l=>!l.key.startsWith(a))}),t.length===o.length)return;const n=this.state.reconfigure({plugins:o});return this.view.updateState(n),n}createExtensionManager(){var e,t;const n=[...this.options.enableCoreExtensions?[Aw,xb.configure({blockSeparator:(t=(e=this.options.coreExtensionOptions)===null||e===void 0?void 0:e.clipboardTextSerializer)===null||t===void 0?void 0:t.blockSeparator}),Vw,Iw,Lw,zw,Pw,Rw].filter(i=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[i.name]!==!1:!0):[],...this.options.extensions].filter(i=>["extension","node","mark"].includes(i==null?void 0:i.type));this.extensionManager=new Qr(n,this)}createCommandManager(){this.commandManager=new ti({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){var e;let t;try{t=Ts(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(a){if(!(a instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(a.message))throw a;this.emit("contentError",{editor:this,error:a,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(l=>l.name!=="collaboration"),this.createExtensionManager()}}),t=Ts(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const o=Hu(t,this.options.autofocus);this.view=new hu(this.options.element,{...this.options.editorProps,attributes:{role:"textbox",...(e=this.options.editorProps)===null||e===void 0?void 0:e.attributes},dispatchTransaction:this.dispatchTransaction.bind(this),state:Wr.create({doc:t,selection:o||void 0})});const n=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(n),this.createNodeViews(),this.prependClass();const i=this.view.dom;i.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(a=>{var l;return(l=this.capturedTransaction)===null||l===void 0?void 0:l.step(a)});return}const t=this.state.apply(e),o=!this.state.selection.eq(t.selection);this.emit("beforeTransaction",{editor:this,transaction:e,nextState:t}),this.view.updateState(t),this.emit("transaction",{editor:this,transaction:e}),o&&this.emit("selectionUpdate",{editor:this,transaction:e});const n=e.getMeta("focus"),i=e.getMeta("blur");n&&this.emit("focus",{editor:this,event:n.event,transaction:e}),i&&this.emit("blur",{editor:this,event:i.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return Gu(this.state,e)}isActive(e,t){const o=typeof e=="string"?e:null,n=typeof e=="string"?t:e;return vw(this.state,o,n)}getJSON(){return this.state.doc.toJSON()}getHTML(){return Es(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:t=`
|
|
98
98
|
|
|
99
|
-
`,textSerializers:o={}}=e||{};return Jp(this.state.doc,{blockSeparator:t,textSerializers:{...Cs(this.schema),...o}})}get isEmpty(){return As(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 e=this.view.dom;e&&e.editor&&delete e.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,t){var o;return((o=this.$doc)===null||o===void 0?void 0:o.querySelector(e,t))||null}$nodes(e,t){var o;return((o=this.$doc)===null||o===void 0?void 0:o.querySelectorAll(e,t))||null}$pos(e){const t=this.state.doc.resolve(e);return new Er(t,this)}get $doc(){return this.$pos(0)}};function Zr(r){return new oi({find:r.find,handler:({state:e,range:t,match:o})=>{const n=U(r.getAttributes,void 0,o);if(n===!1||n===null)return null;const{tr:i}=e,a=o[o.length-1],l=o[0];if(a){const d=l.search(/\S/),c=t.from+l.indexOf(a),p=c+a.length;if(Vs(t.from,t.to,e.doc).filter(h=>h.mark.type.excluded.find(f=>f===r.type&&f!==h.mark.type)).filter(h=>h.to>c).length)return null;p<t.to&&i.delete(p,t.to),c>t.from&&i.delete(t.from+d,c);const m=t.from+d+a.length;i.addMark(t.from+d,m,r.type.create(n||{})),i.removeStoredMark(r.type)}}})}function Hw(r){return new oi({find:r.find,handler:({state:e,range:t,match:o})=>{const n=U(r.getAttributes,void 0,o)||{},{tr:i}=e,a=t.from;let l=t.to;const d=r.type.create(n);if(o[1]){const c=o[0].lastIndexOf(o[1]);let p=a+c;p>l?p=l:l=p+o[1].length;const u=o[0][o[0].length-1];i.insertText(u,a+o[0].length-1),i.replaceWith(p,l,d)}else if(o[0]){const c=r.type.isInline?a:a-1;i.insert(c,r.type.create(n)).delete(i.mapping.map(a),i.mapping.map(l))}i.scrollIntoView()}})}function Ls(r){return new oi({find:r.find,handler:({state:e,range:t,match:o})=>{const n=e.doc.resolve(t.from),i=U(r.getAttributes,void 0,o)||{};if(!n.node(-1).canReplaceWith(n.index(-1),n.indexAfter(-1),r.type))return null;e.tr.delete(t.from,t.to).setBlockType(t.from,t.from,r.type,i)}})}function jo(r){return new oi({find:r.find,handler:({state:e,range:t,match:o,chain:n})=>{const i=U(r.getAttributes,void 0,o)||{},a=e.tr.delete(t.from,t.to),d=a.doc.resolve(t.from).blockRange(),c=d&&La(d,r.type,i);if(!c)return null;if(a.wrap(d,c),r.keepMarks&&r.editor){const{selection:u,storedMarks:m}=e,{splittableMarks:h}=r.editor.extensionManager,g=m||u.$to.parentOffset&&u.$from.marks();if(g){const f=g.filter(b=>h.includes(b.type.name));a.ensureMarks(f)}}if(r.keepAttributes){const u=r.type.name==="bulletList"||r.type.name==="orderedList"?"listItem":"taskList";n().updateAttributes(u,i).run()}const p=a.doc.resolve(t.from-1).nodeBefore;p&&p.type===r.type&&Ut(a.doc,t.from-1)&&(!r.joinPredicate||r.joinPredicate(o,p))&&a.join(t.from-1)}})}let lt=class zl{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.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=U(I(this,"addOptions",{name:this.name}))),this.storage=U(I(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new zl(e)}configure(e={}){const t=this.extend({...this.config,addOptions:()=>ai(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){const t=new zl(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=U(I(t,"addOptions",{name:t.name})),t.storage=U(I(t,"addStorage",{name:t.name,options:t.options})),t}};function Sr(r){return new gb({find:r.find,handler:({state:e,range:t,match:o,pasteEvent:n})=>{const i=U(r.getAttributes,void 0,o,n);if(i===!1||i===null)return null;const{tr:a}=e,l=o[o.length-1],d=o[0];let c=t.to;if(l){const p=d.search(/\S/),u=t.from+d.indexOf(l),m=u+l.length;if(Vs(t.from,t.to,e.doc).filter(g=>g.mark.type.excluded.find(b=>b===r.type&&b!==g.mark.type)).filter(g=>g.to>u).length)return null;m<t.to&&a.delete(m,t.to),u>t.from&&a.delete(t.from+p,u),c=t.from+p+l.length,a.addMark(t.from+p,c,r.type.create(i||{})),a.removeStoredMark(r.type)}}})}var Fe="top",$e="bottom",et="right",je="left",Rs="auto",Ho=[Fe,$e,et,je],$r="start",Wo="end",Ww="clippingParents",$p="viewport",qo="popper",qw="reference",eu=Ho.reduce(function(r,e){return r.concat([e+"-"+$r,e+"-"+Wo])},[]),tu=[].concat(Ho,[Rs]).reduce(function(r,e){return r.concat([e,e+"-"+$r,e+"-"+Wo])},[]),Uw="beforeRead",Kw="read",Jw="afterRead",Gw="beforeMain",Yw="main",Xw="afterMain",Qw="beforeWrite",Zw="write",$w="afterWrite",ey=[Uw,Kw,Jw,Gw,Yw,Xw,Qw,Zw,$w];function bt(r){return r?(r.nodeName||"").toLowerCase():null}function Ue(r){if(r==null)return window;if(r.toString()!=="[object Window]"){var e=r.ownerDocument;return e&&e.defaultView||window}return r}function Cr(r){var e=Ue(r).Element;return r instanceof e||r instanceof Element}function tt(r){var e=Ue(r).HTMLElement;return r instanceof e||r instanceof HTMLElement}function zs(r){if(typeof ShadowRoot>"u")return!1;var e=Ue(r).ShadowRoot;return r instanceof e||r instanceof ShadowRoot}function ty(r){var e=r.state;Object.keys(e.elements).forEach(function(t){var o=e.styles[t]||{},n=e.attributes[t]||{},i=e.elements[t];!tt(i)||!bt(i)||(Object.assign(i.style,o),Object.keys(n).forEach(function(a){var l=n[a];l===!1?i.removeAttribute(a):i.setAttribute(a,l===!0?"":l)}))})}function ry(r){var e=r.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(o){var n=e.elements[o],i=e.attributes[o]||{},a=Object.keys(e.styles.hasOwnProperty(o)?e.styles[o]:t[o]),l=a.reduce(function(d,c){return d[c]="",d},{});!tt(n)||!bt(n)||(Object.assign(n.style,l),Object.keys(i).forEach(function(d){n.removeAttribute(d)}))})}}const ru={name:"applyStyles",enabled:!0,phase:"write",fn:ty,effect:ry,requires:["computeStyles"]};function wt(r){return r.split("-")[0]}var Nr=Math.max,ui=Math.min,eo=Math.round;function _s(){var r=navigator.userAgentData;return r!=null&&r.brands&&Array.isArray(r.brands)?r.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function ou(){return!/^((?!chrome|android).)*safari/i.test(_s())}function to(r,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var o=r.getBoundingClientRect(),n=1,i=1;e&&tt(r)&&(n=r.offsetWidth>0&&eo(o.width)/r.offsetWidth||1,i=r.offsetHeight>0&&eo(o.height)/r.offsetHeight||1);var a=Cr(r)?Ue(r):window,l=a.visualViewport,d=!ou()&&t,c=(o.left+(d&&l?l.offsetLeft:0))/n,p=(o.top+(d&&l?l.offsetTop:0))/i,u=o.width/n,m=o.height/i;return{width:u,height:m,top:p,right:c+u,bottom:p+m,left:c,x:c,y:p}}function Fs(r){var e=to(r),t=r.offsetWidth,o=r.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:r.offsetLeft,y:r.offsetTop,width:t,height:o}}function nu(r,e){var t=e.getRootNode&&e.getRootNode();if(r.contains(e))return!0;if(t&&zs(t)){var o=e;do{if(o&&r.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Pt(r){return Ue(r).getComputedStyle(r)}function oy(r){return["table","td","th"].indexOf(bt(r))>=0}function rr(r){return((Cr(r)?r.ownerDocument:r.document)||window.document).documentElement}function mi(r){return bt(r)==="html"?r:r.assignedSlot||r.parentNode||(zs(r)?r.host:null)||rr(r)}function iu(r){return!tt(r)||Pt(r).position==="fixed"?null:r.offsetParent}function ny(r){var e=/firefox/i.test(_s()),t=/Trident/i.test(_s());if(t&&tt(r)){var o=Pt(r);if(o.position==="fixed")return null}var n=mi(r);for(zs(n)&&(n=n.host);tt(n)&&["html","body"].indexOf(bt(n))<0;){var i=Pt(n);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return n;n=n.parentNode}return null}function Uo(r){for(var e=Ue(r),t=iu(r);t&&oy(t)&&Pt(t).position==="static";)t=iu(t);return t&&(bt(t)==="html"||bt(t)==="body"&&Pt(t).position==="static")?e:t||ny(r)||e}function js(r){return["top","bottom"].indexOf(r)>=0?"x":"y"}function Ko(r,e,t){return Nr(r,ui(e,t))}function iy(r,e,t){var o=Ko(r,e,t);return o>t?t:o}function au(){return{top:0,right:0,bottom:0,left:0}}function su(r){return Object.assign({},au(),r)}function lu(r,e){return e.reduce(function(t,o){return t[o]=r,t},{})}var ay=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,su(typeof e!="number"?e:lu(e,Ho))};function sy(r){var e,t=r.state,o=r.name,n=r.options,i=t.elements.arrow,a=t.modifiersData.popperOffsets,l=wt(t.placement),d=js(l),c=[je,et].indexOf(l)>=0,p=c?"height":"width";if(!(!i||!a)){var u=ay(n.padding,t),m=Fs(i),h=d==="y"?Fe:je,g=d==="y"?$e:et,f=t.rects.reference[p]+t.rects.reference[d]-a[d]-t.rects.popper[p],b=a[d]-t.rects.reference[d],y=Uo(i),k=y?d==="y"?y.clientHeight||0:y.clientWidth||0:0,x=f/2-b/2,w=u[h],S=k-m[p]-u[g],v=k/2-m[p]/2+x,C=Ko(w,v,S),O=d;t.modifiersData[o]=(e={},e[O]=C,e.centerOffset=C-v,e)}}function ly(r){var e=r.state,t=r.options,o=t.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=e.elements.popper.querySelector(n),!n)||nu(e.elements.popper,n)&&(e.elements.arrow=n))}const dy={name:"arrow",enabled:!0,phase:"main",fn:sy,effect:ly,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ro(r){return r.split("-")[1]}var cy={top:"auto",right:"auto",bottom:"auto",left:"auto"};function py(r,e){var t=r.x,o=r.y,n=e.devicePixelRatio||1;return{x:eo(t*n)/n||0,y:eo(o*n)/n||0}}function du(r){var e,t=r.popper,o=r.popperRect,n=r.placement,i=r.variation,a=r.offsets,l=r.position,d=r.gpuAcceleration,c=r.adaptive,p=r.roundOffsets,u=r.isFixed,m=a.x,h=m===void 0?0:m,g=a.y,f=g===void 0?0:g,b=typeof p=="function"?p({x:h,y:f}):{x:h,y:f};h=b.x,f=b.y;var y=a.hasOwnProperty("x"),k=a.hasOwnProperty("y"),x=je,w=Fe,S=window;if(c){var v=Uo(t),C="clientHeight",O="clientWidth";if(v===Ue(t)&&(v=rr(t),Pt(v).position!=="static"&&l==="absolute"&&(C="scrollHeight",O="scrollWidth")),v=v,n===Fe||(n===je||n===et)&&i===Wo){w=$e;var D=u&&v===S&&S.visualViewport?S.visualViewport.height:v[C];f-=D-o.height,f*=d?1:-1}if(n===je||(n===Fe||n===$e)&&i===Wo){x=et;var B=u&&v===S&&S.visualViewport?S.visualViewport.width:v[O];h-=B-o.width,h*=d?1:-1}}var E=Object.assign({position:l},c&&cy),P=p===!0?py({x:h,y:f},Ue(t)):{x:h,y:f};if(h=P.x,f=P.y,d){var _;return Object.assign({},E,(_={},_[w]=k?"0":"",_[x]=y?"0":"",_.transform=(S.devicePixelRatio||1)<=1?"translate("+h+"px, "+f+"px)":"translate3d("+h+"px, "+f+"px, 0)",_))}return Object.assign({},E,(e={},e[w]=k?f+"px":"",e[x]=y?h+"px":"",e.transform="",e))}function uy(r){var e=r.state,t=r.options,o=t.gpuAcceleration,n=o===void 0?!0:o,i=t.adaptive,a=i===void 0?!0:i,l=t.roundOffsets,d=l===void 0?!0:l,c={placement:wt(e.placement),variation:ro(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,du(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:d})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,du(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const my={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:uy,data:{}};var hi={passive:!0};function hy(r){var e=r.state,t=r.instance,o=r.options,n=o.scroll,i=n===void 0?!0:n,a=o.resize,l=a===void 0?!0:a,d=Ue(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach(function(p){p.addEventListener("scroll",t.update,hi)}),l&&d.addEventListener("resize",t.update,hi),function(){i&&c.forEach(function(p){p.removeEventListener("scroll",t.update,hi)}),l&&d.removeEventListener("resize",t.update,hi)}}const gy={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:hy,data:{}};var fy={left:"right",right:"left",bottom:"top",top:"bottom"};function gi(r){return r.replace(/left|right|bottom|top/g,function(e){return fy[e]})}var by={start:"end",end:"start"};function cu(r){return r.replace(/start|end/g,function(e){return by[e]})}function Hs(r){var e=Ue(r),t=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:t,scrollTop:o}}function Ws(r){return to(rr(r)).left+Hs(r).scrollLeft}function wy(r,e){var t=Ue(r),o=rr(r),n=t.visualViewport,i=o.clientWidth,a=o.clientHeight,l=0,d=0;if(n){i=n.width,a=n.height;var c=ou();(c||!c&&e==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}return{width:i,height:a,x:l+Ws(r),y:d}}function yy(r){var e,t=rr(r),o=Hs(r),n=(e=r.ownerDocument)==null?void 0:e.body,i=Nr(t.scrollWidth,t.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),a=Nr(t.scrollHeight,t.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),l=-o.scrollLeft+Ws(r),d=-o.scrollTop;return Pt(n||t).direction==="rtl"&&(l+=Nr(t.clientWidth,n?n.clientWidth:0)-i),{width:i,height:a,x:l,y:d}}function qs(r){var e=Pt(r),t=e.overflow,o=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+n+o)}function pu(r){return["html","body","#document"].indexOf(bt(r))>=0?r.ownerDocument.body:tt(r)&&qs(r)?r:pu(mi(r))}function Jo(r,e){var t;e===void 0&&(e=[]);var o=pu(r),n=o===((t=r.ownerDocument)==null?void 0:t.body),i=Ue(o),a=n?[i].concat(i.visualViewport||[],qs(o)?o:[]):o,l=e.concat(a);return n?l:l.concat(Jo(mi(a)))}function Us(r){return Object.assign({},r,{left:r.x,top:r.y,right:r.x+r.width,bottom:r.y+r.height})}function xy(r,e){var t=to(r,!1,e==="fixed");return t.top=t.top+r.clientTop,t.left=t.left+r.clientLeft,t.bottom=t.top+r.clientHeight,t.right=t.left+r.clientWidth,t.width=r.clientWidth,t.height=r.clientHeight,t.x=t.left,t.y=t.top,t}function uu(r,e,t){return e===$p?Us(wy(r,t)):Cr(e)?xy(e,t):Us(yy(rr(r)))}function vy(r){var e=Jo(mi(r)),t=["absolute","fixed"].indexOf(Pt(r).position)>=0,o=t&&tt(r)?Uo(r):r;return Cr(o)?e.filter(function(n){return Cr(n)&&nu(n,o)&&bt(n)!=="body"}):[]}function ky(r,e,t,o){var n=e==="clippingParents"?vy(r):[].concat(e),i=[].concat(n,[t]),a=i[0],l=i.reduce(function(d,c){var p=uu(r,c,o);return d.top=Nr(p.top,d.top),d.right=ui(p.right,d.right),d.bottom=ui(p.bottom,d.bottom),d.left=Nr(p.left,d.left),d},uu(r,a,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function mu(r){var e=r.reference,t=r.element,o=r.placement,n=o?wt(o):null,i=o?ro(o):null,a=e.x+e.width/2-t.width/2,l=e.y+e.height/2-t.height/2,d;switch(n){case Fe:d={x:a,y:e.y-t.height};break;case $e:d={x:a,y:e.y+e.height};break;case et:d={x:e.x+e.width,y:l};break;case je:d={x:e.x-t.width,y:l};break;default:d={x:e.x,y:e.y}}var c=n?js(n):null;if(c!=null){var p=c==="y"?"height":"width";switch(i){case $r:d[c]=d[c]-(e[p]/2-t[p]/2);break;case Wo:d[c]=d[c]+(e[p]/2-t[p]/2);break}}return d}function Go(r,e){e===void 0&&(e={});var t=e,o=t.placement,n=o===void 0?r.placement:o,i=t.strategy,a=i===void 0?r.strategy:i,l=t.boundary,d=l===void 0?Ww:l,c=t.rootBoundary,p=c===void 0?$p:c,u=t.elementContext,m=u===void 0?qo:u,h=t.altBoundary,g=h===void 0?!1:h,f=t.padding,b=f===void 0?0:f,y=su(typeof b!="number"?b:lu(b,Ho)),k=m===qo?qw:qo,x=r.rects.popper,w=r.elements[g?k:m],S=ky(Cr(w)?w:w.contextElement||rr(r.elements.popper),d,p,a),v=to(r.elements.reference),C=mu({reference:v,element:x,placement:n}),O=Us(Object.assign({},x,C)),D=m===qo?O:v,B={top:S.top-D.top+y.top,bottom:D.bottom-S.bottom+y.bottom,left:S.left-D.left+y.left,right:D.right-S.right+y.right},E=r.modifiersData.offset;if(m===qo&&E){var P=E[n];Object.keys(B).forEach(function(_){var ee=[et,$e].indexOf(_)>=0?1:-1,re=[Fe,$e].indexOf(_)>=0?"y":"x";B[_]+=P[re]*ee})}return B}function Ey(r,e){e===void 0&&(e={});var t=e,o=t.placement,n=t.boundary,i=t.rootBoundary,a=t.padding,l=t.flipVariations,d=t.allowedAutoPlacements,c=d===void 0?tu:d,p=ro(o),u=p?l?eu:eu.filter(function(g){return ro(g)===p}):Ho,m=u.filter(function(g){return c.indexOf(g)>=0});m.length===0&&(m=u);var h=m.reduce(function(g,f){return g[f]=Go(r,{placement:f,boundary:n,rootBoundary:i,padding:a})[wt(f)],g},{});return Object.keys(h).sort(function(g,f){return h[g]-h[f]})}function Sy(r){if(wt(r)===Rs)return[];var e=gi(r);return[cu(r),e,cu(e)]}function Cy(r){var e=r.state,t=r.options,o=r.name;if(!e.modifiersData[o]._skip){for(var n=t.mainAxis,i=n===void 0?!0:n,a=t.altAxis,l=a===void 0?!0:a,d=t.fallbackPlacements,c=t.padding,p=t.boundary,u=t.rootBoundary,m=t.altBoundary,h=t.flipVariations,g=h===void 0?!0:h,f=t.allowedAutoPlacements,b=e.options.placement,y=wt(b),k=y===b,x=d||(k||!g?[gi(b)]:Sy(b)),w=[b].concat(x).reduce(function(V,oe){return V.concat(wt(oe)===Rs?Ey(e,{placement:oe,boundary:p,rootBoundary:u,padding:c,flipVariations:g,allowedAutoPlacements:f}):oe)},[]),S=e.rects.reference,v=e.rects.popper,C=new Map,O=!0,D=w[0],B=0;B<w.length;B++){var E=w[B],P=wt(E),_=ro(E)===$r,ee=[Fe,$e].indexOf(P)>=0,re=ee?"width":"height",J=Go(e,{placement:E,boundary:p,rootBoundary:u,altBoundary:m,padding:c}),z=ee?_?et:je:_?$e:Fe;S[re]>v[re]&&(z=gi(z));var X=gi(z),ne=[];if(i&&ne.push(J[P]<=0),l&&ne.push(J[z]<=0,J[X]<=0),ne.every(function(V){return V})){D=E,O=!1;break}C.set(E,ne)}if(O)for(var Je=g?3:1,pt=function(oe){var Et=w.find(function(uo){var Rt=C.get(uo);if(Rt)return Rt.slice(0,oe).every(function(mo){return mo})});if(Et)return D=Et,"break"},nt=Je;nt>0;nt--){var H=pt(nt);if(H==="break")break}e.placement!==D&&(e.modifiersData[o]._skip=!0,e.placement=D,e.reset=!0)}}const Ny={name:"flip",enabled:!0,phase:"main",fn:Cy,requiresIfExists:["offset"],data:{_skip:!1}};function hu(r,e,t){return t===void 0&&(t={x:0,y:0}),{top:r.top-e.height-t.y,right:r.right-e.width+t.x,bottom:r.bottom-e.height+t.y,left:r.left-e.width-t.x}}function gu(r){return[Fe,et,$e,je].some(function(e){return r[e]>=0})}function By(r){var e=r.state,t=r.name,o=e.rects.reference,n=e.rects.popper,i=e.modifiersData.preventOverflow,a=Go(e,{elementContext:"reference"}),l=Go(e,{altBoundary:!0}),d=hu(a,o),c=hu(l,n,i),p=gu(d),u=gu(c);e.modifiersData[t]={referenceClippingOffsets:d,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":u})}const My={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:By};function Ty(r,e,t){var o=wt(r),n=[je,Fe].indexOf(o)>=0?-1:1,i=typeof t=="function"?t(Object.assign({},e,{placement:r})):t,a=i[0],l=i[1];return a=a||0,l=(l||0)*n,[je,et].indexOf(o)>=0?{x:l,y:a}:{x:a,y:l}}function Oy(r){var e=r.state,t=r.options,o=r.name,n=t.offset,i=n===void 0?[0,0]:n,a=tu.reduce(function(p,u){return p[u]=Ty(u,e.rects,i),p},{}),l=a[e.placement],d=l.x,c=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=d,e.modifiersData.popperOffsets.y+=c),e.modifiersData[o]=a}const Vy={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Oy};function Py(r){var e=r.state,t=r.name;e.modifiersData[t]=mu({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const Ay={name:"popperOffsets",enabled:!0,phase:"read",fn:Py,data:{}};function Dy(r){return r==="x"?"y":"x"}function Iy(r){var e=r.state,t=r.options,o=r.name,n=t.mainAxis,i=n===void 0?!0:n,a=t.altAxis,l=a===void 0?!1:a,d=t.boundary,c=t.rootBoundary,p=t.altBoundary,u=t.padding,m=t.tether,h=m===void 0?!0:m,g=t.tetherOffset,f=g===void 0?0:g,b=Go(e,{boundary:d,rootBoundary:c,padding:u,altBoundary:p}),y=wt(e.placement),k=ro(e.placement),x=!k,w=js(y),S=Dy(w),v=e.modifiersData.popperOffsets,C=e.rects.reference,O=e.rects.popper,D=typeof f=="function"?f(Object.assign({},e.rects,{placement:e.placement})):f,B=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),E=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,P={x:0,y:0};if(v){if(i){var _,ee=w==="y"?Fe:je,re=w==="y"?$e:et,J=w==="y"?"height":"width",z=v[w],X=z+b[ee],ne=z-b[re],Je=h?-O[J]/2:0,pt=k===$r?C[J]:O[J],nt=k===$r?-O[J]:-C[J],H=e.elements.arrow,V=h&&H?Fs(H):{width:0,height:0},oe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:au(),Et=oe[ee],uo=oe[re],Rt=Ko(0,C[J],V[J]),mo=x?C[J]/2-Je-Rt-Et-B.mainAxis:pt-Rt-Et-B.mainAxis,sr=x?-C[J]/2+Je+Rt+uo+B.mainAxis:nt+Rt+uo+B.mainAxis,ho=e.elements.arrow&&Uo(e.elements.arrow),ia=ho?w==="y"?ho.clientTop||0:ho.clientLeft||0:0,gn=(_=E==null?void 0:E[w])!=null?_:0,aa=z+mo-gn-ia,sa=z+sr-gn,fn=Ko(h?ui(X,aa):X,z,h?Nr(ne,sa):ne);v[w]=fn,P[w]=fn-z}if(l){var bn,la=w==="x"?Fe:je,da=w==="x"?$e:et,zt=v[S],lr=S==="y"?"height":"width",wn=zt+b[la],Vr=zt-b[da],yn=[Fe,je].indexOf(y)!==-1,ca=(bn=E==null?void 0:E[S])!=null?bn:0,pa=yn?wn:zt-C[lr]-O[lr]-ca+B.altAxis,ua=yn?zt+C[lr]+O[lr]-ca-B.altAxis:Vr,ma=h&&yn?iy(pa,zt,ua):Ko(h?pa:wn,zt,h?ua:Vr);v[S]=ma,P[S]=ma-zt}e.modifiersData[o]=P}}const Ly={name:"preventOverflow",enabled:!0,phase:"main",fn:Iy,requiresIfExists:["offset"]};function Ry(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}function zy(r){return r===Ue(r)||!tt(r)?Hs(r):Ry(r)}function _y(r){var e=r.getBoundingClientRect(),t=eo(e.width)/r.offsetWidth||1,o=eo(e.height)/r.offsetHeight||1;return t!==1||o!==1}function Fy(r,e,t){t===void 0&&(t=!1);var o=tt(e),n=tt(e)&&_y(e),i=rr(e),a=to(r,n,t),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(o||!o&&!t)&&((bt(e)!=="body"||qs(i))&&(l=zy(e)),tt(e)?(d=to(e,!0),d.x+=e.clientLeft,d.y+=e.clientTop):i&&(d.x=Ws(i))),{x:a.left+l.scrollLeft-d.x,y:a.top+l.scrollTop-d.y,width:a.width,height:a.height}}function jy(r){var e=new Map,t=new Set,o=[];r.forEach(function(i){e.set(i.name,i)});function n(i){t.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(l){if(!t.has(l)){var d=e.get(l);d&&n(d)}}),o.push(i)}return r.forEach(function(i){t.has(i.name)||n(i)}),o}function Hy(r){var e=jy(r);return ey.reduce(function(t,o){return t.concat(e.filter(function(n){return n.phase===o}))},[])}function Wy(r){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(r())})})),e}}function qy(r){var e=r.reduce(function(t,o){var n=t[o.name];return t[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,t},{});return Object.keys(e).map(function(t){return e[t]})}var fu={placement:"bottom",modifiers:[],strategy:"absolute"};function bu(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return!e.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function Uy(r){r===void 0&&(r={});var e=r,t=e.defaultModifiers,o=t===void 0?[]:t,n=e.defaultOptions,i=n===void 0?fu:n;return function(l,d,c){c===void 0&&(c=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},fu,i),modifiersData:{},elements:{reference:l,popper:d},attributes:{},styles:{}},u=[],m=!1,h={state:p,setOptions:function(y){var k=typeof y=="function"?y(p.options):y;f(),p.options=Object.assign({},i,p.options,k),p.scrollParents={reference:Cr(l)?Jo(l):l.contextElement?Jo(l.contextElement):[],popper:Jo(d)};var x=Hy(qy([].concat(o,p.options.modifiers)));return p.orderedModifiers=x.filter(function(w){return w.enabled}),g(),h.update()},forceUpdate:function(){if(!m){var y=p.elements,k=y.reference,x=y.popper;if(bu(k,x)){p.rects={reference:Fy(k,Uo(x),p.options.strategy==="fixed"),popper:Fs(x)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(B){return p.modifiersData[B.name]=Object.assign({},B.data)});for(var w=0;w<p.orderedModifiers.length;w++){if(p.reset===!0){p.reset=!1,w=-1;continue}var S=p.orderedModifiers[w],v=S.fn,C=S.options,O=C===void 0?{}:C,D=S.name;typeof v=="function"&&(p=v({state:p,options:O,name:D,instance:h})||p)}}}},update:Wy(function(){return new Promise(function(b){h.forceUpdate(),b(p)})}),destroy:function(){f(),m=!0}};if(!bu(l,d))return h;h.setOptions(c).then(function(b){!m&&c.onFirstUpdate&&c.onFirstUpdate(b)});function g(){p.orderedModifiers.forEach(function(b){var y=b.name,k=b.options,x=k===void 0?{}:k,w=b.effect;if(typeof w=="function"){var S=w({state:p,name:y,instance:h,options:x}),v=function(){};u.push(S||v)}})}function f(){u.forEach(function(b){return b()}),u=[]}return h}}var Ky=[gy,Ay,my,ru,Vy,Ny,Ly,dy,My],Jy=Uy({defaultModifiers:Ky}),Gy="tippy-box",wu="tippy-content",Yy="tippy-backdrop",yu="tippy-arrow",xu="tippy-svg-arrow",Br={passive:!0,capture:!0},vu=function(){return document.body};function Xy(r,e){return{}.hasOwnProperty.call(r,e)}function Ks(r,e,t){if(Array.isArray(r)){var o=r[e];return o??(Array.isArray(t)?t[e]:t)}return r}function Js(r,e){var t={}.toString.call(r);return t.indexOf("[object")===0&&t.indexOf(e+"]")>-1}function ku(r,e){return typeof r=="function"?r.apply(void 0,e):r}function Eu(r,e){if(e===0)return r;var t;return function(o){clearTimeout(t),t=setTimeout(function(){r(o)},e)}}function Qy(r,e){var t=Object.assign({},r);return e.forEach(function(o){delete t[o]}),t}function Zy(r){return r.split(/\s+/).filter(Boolean)}function oo(r){return[].concat(r)}function Su(r,e){r.indexOf(e)===-1&&r.push(e)}function $y(r){return r.filter(function(e,t){return r.indexOf(e)===t})}function e1(r){return r.split("-")[0]}function fi(r){return[].slice.call(r)}function Cu(r){return Object.keys(r).reduce(function(e,t){return r[t]!==void 0&&(e[t]=r[t]),e},{})}function Yo(){return document.createElement("div")}function Xo(r){return["Element","Fragment"].some(function(e){return Js(r,e)})}function t1(r){return Js(r,"NodeList")}function r1(r){return Js(r,"MouseEvent")}function o1(r){return!!(r&&r._tippy&&r._tippy.reference===r)}function n1(r){return Xo(r)?[r]:t1(r)?fi(r):Array.isArray(r)?r:fi(document.querySelectorAll(r))}function Gs(r,e){r.forEach(function(t){t&&(t.style.transitionDuration=e+"ms")})}function Nu(r,e){r.forEach(function(t){t&&t.setAttribute("data-state",e)})}function i1(r){var e,t=oo(r),o=t[0];return o!=null&&(e=o.ownerDocument)!=null&&e.body?o.ownerDocument:document}function a1(r,e){var t=e.clientX,o=e.clientY;return r.every(function(n){var i=n.popperRect,a=n.popperState,l=n.props,d=l.interactiveBorder,c=e1(a.placement),p=a.modifiersData.offset;if(!p)return!0;var u=c==="bottom"?p.top.y:0,m=c==="top"?p.bottom.y:0,h=c==="right"?p.left.x:0,g=c==="left"?p.right.x:0,f=i.top-o+u>d,b=o-i.bottom-m>d,y=i.left-t+h>d,k=t-i.right-g>d;return f||b||y||k})}function Ys(r,e,t){var o=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(n){r[o](n,t)})}function Bu(r,e){for(var t=e;t;){var o;if(r.contains(t))return!0;t=t.getRootNode==null||(o=t.getRootNode())==null?void 0:o.host}return!1}var yt={isTouch:!1},Mu=0;function s1(){yt.isTouch||(yt.isTouch=!0,window.performance&&document.addEventListener("mousemove",Tu))}function Tu(){var r=performance.now();r-Mu<20&&(yt.isTouch=!1,document.removeEventListener("mousemove",Tu)),Mu=r}function l1(){var r=document.activeElement;if(o1(r)){var e=r._tippy;r.blur&&!e.state.isVisible&&r.blur()}}function d1(){document.addEventListener("touchstart",s1,Br),window.addEventListener("blur",l1)}var c1=typeof window<"u"&&typeof document<"u",p1=c1?!!window.msCrypto:!1;function no(r){var e=r==="destroy"?"n already-":" ";return[r+"() was called on a"+e+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function Ou(r){var e=/[ \t]{2,}/g,t=/^[ \t]*/gm;return r.replace(e," ").replace(t,"").trim()}function u1(r){return Ou(`
|
|
99
|
+
`,textSerializers:o={}}=e||{};return Ju(this.state.doc,{blockSeparator:t,textSerializers:{...Cs(this.schema),...o}})}get isEmpty(){return As(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 e=this.view.dom;e&&e.editor&&delete e.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,t){var o;return((o=this.$doc)===null||o===void 0?void 0:o.querySelector(e,t))||null}$nodes(e,t){var o;return((o=this.$doc)===null||o===void 0?void 0:o.querySelectorAll(e,t))||null}$pos(e){const t=this.state.doc.resolve(e);return new Er(t,this)}get $doc(){return this.$pos(0)}};function Zr(r){return new oi({find:r.find,handler:({state:e,range:t,match:o})=>{const n=U(r.getAttributes,void 0,o);if(n===!1||n===null)return null;const{tr:i}=e,a=o[o.length-1],l=o[0];if(a){const c=l.search(/\S/),d=t.from+l.indexOf(a),u=d+a.length;if(Vs(t.from,t.to,e.doc).filter(h=>h.mark.type.excluded.find(g=>g===r.type&&g!==h.mark.type)).filter(h=>h.to>d).length)return null;u<t.to&&i.delete(u,t.to),d>t.from&&i.delete(t.from+c,d);const m=t.from+c+a.length;i.addMark(t.from+c,m,r.type.create(n||{})),i.removeStoredMark(r.type)}}})}function Hw(r){return new oi({find:r.find,handler:({state:e,range:t,match:o})=>{const n=U(r.getAttributes,void 0,o)||{},{tr:i}=e,a=t.from;let l=t.to;const c=r.type.create(n);if(o[1]){const d=o[0].lastIndexOf(o[1]);let u=a+d;u>l?u=l:l=u+o[1].length;const p=o[0][o[0].length-1];i.insertText(p,a+o[0].length-1),i.replaceWith(u,l,c)}else if(o[0]){const d=r.type.isInline?a:a-1;i.insert(d,r.type.create(n)).delete(i.mapping.map(a),i.mapping.map(l))}i.scrollIntoView()}})}function Ls(r){return new oi({find:r.find,handler:({state:e,range:t,match:o})=>{const n=e.doc.resolve(t.from),i=U(r.getAttributes,void 0,o)||{};if(!n.node(-1).canReplaceWith(n.index(-1),n.indexAfter(-1),r.type))return null;e.tr.delete(t.from,t.to).setBlockType(t.from,t.from,r.type,i)}})}function jo(r){return new oi({find:r.find,handler:({state:e,range:t,match:o,chain:n})=>{const i=U(r.getAttributes,void 0,o)||{},a=e.tr.delete(t.from,t.to),c=a.doc.resolve(t.from).blockRange(),d=c&&La(c,r.type,i);if(!d)return null;if(a.wrap(c,d),r.keepMarks&&r.editor){const{selection:p,storedMarks:m}=e,{splittableMarks:h}=r.editor.extensionManager,f=m||p.$to.parentOffset&&p.$from.marks();if(f){const g=f.filter(b=>h.includes(b.type.name));a.ensureMarks(g)}}if(r.keepAttributes){const p=r.type.name==="bulletList"||r.type.name==="orderedList"?"listItem":"taskList";n().updateAttributes(p,i).run()}const u=a.doc.resolve(t.from-1).nodeBefore;u&&u.type===r.type&&Ut(a.doc,t.from-1)&&(!r.joinPredicate||r.joinPredicate(o,u))&&a.join(t.from-1)}})}let lt=class zl{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.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=U(I(this,"addOptions",{name:this.name}))),this.storage=U(I(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new zl(e)}configure(e={}){const t=this.extend({...this.config,addOptions:()=>ai(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){const t=new zl(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=U(I(t,"addOptions",{name:t.name})),t.storage=U(I(t,"addStorage",{name:t.name,options:t.options})),t}};function Sr(r){return new fb({find:r.find,handler:({state:e,range:t,match:o,pasteEvent:n})=>{const i=U(r.getAttributes,void 0,o,n);if(i===!1||i===null)return null;const{tr:a}=e,l=o[o.length-1],c=o[0];let d=t.to;if(l){const u=c.search(/\S/),p=t.from+c.indexOf(l),m=p+l.length;if(Vs(t.from,t.to,e.doc).filter(f=>f.mark.type.excluded.find(b=>b===r.type&&b!==f.mark.type)).filter(f=>f.to>p).length)return null;m<t.to&&a.delete(m,t.to),p>t.from&&a.delete(t.from+u,p),d=t.from+u+l.length,a.addMark(t.from+u,d,r.type.create(i||{})),a.removeStoredMark(r.type)}}})}var Fe="top",$e="bottom",et="right",je="left",Rs="auto",Ho=[Fe,$e,et,je],$r="start",Wo="end",Ww="clippingParents",$u="viewport",qo="popper",qw="reference",ep=Ho.reduce(function(r,e){return r.concat([e+"-"+$r,e+"-"+Wo])},[]),tp=[].concat(Ho,[Rs]).reduce(function(r,e){return r.concat([e,e+"-"+$r,e+"-"+Wo])},[]),Uw="beforeRead",Kw="read",Jw="afterRead",Gw="beforeMain",Yw="main",Xw="afterMain",Qw="beforeWrite",Zw="write",$w="afterWrite",ey=[Uw,Kw,Jw,Gw,Yw,Xw,Qw,Zw,$w];function bt(r){return r?(r.nodeName||"").toLowerCase():null}function Ue(r){if(r==null)return window;if(r.toString()!=="[object Window]"){var e=r.ownerDocument;return e&&e.defaultView||window}return r}function Cr(r){var e=Ue(r).Element;return r instanceof e||r instanceof Element}function tt(r){var e=Ue(r).HTMLElement;return r instanceof e||r instanceof HTMLElement}function zs(r){if(typeof ShadowRoot>"u")return!1;var e=Ue(r).ShadowRoot;return r instanceof e||r instanceof ShadowRoot}function ty(r){var e=r.state;Object.keys(e.elements).forEach(function(t){var o=e.styles[t]||{},n=e.attributes[t]||{},i=e.elements[t];!tt(i)||!bt(i)||(Object.assign(i.style,o),Object.keys(n).forEach(function(a){var l=n[a];l===!1?i.removeAttribute(a):i.setAttribute(a,l===!0?"":l)}))})}function ry(r){var e=r.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(o){var n=e.elements[o],i=e.attributes[o]||{},a=Object.keys(e.styles.hasOwnProperty(o)?e.styles[o]:t[o]),l=a.reduce(function(c,d){return c[d]="",c},{});!tt(n)||!bt(n)||(Object.assign(n.style,l),Object.keys(i).forEach(function(c){n.removeAttribute(c)}))})}}const rp={name:"applyStyles",enabled:!0,phase:"write",fn:ty,effect:ry,requires:["computeStyles"]};function wt(r){return r.split("-")[0]}var Nr=Math.max,pi=Math.min,eo=Math.round;function _s(){var r=navigator.userAgentData;return r!=null&&r.brands&&Array.isArray(r.brands)?r.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function op(){return!/^((?!chrome|android).)*safari/i.test(_s())}function to(r,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var o=r.getBoundingClientRect(),n=1,i=1;e&&tt(r)&&(n=r.offsetWidth>0&&eo(o.width)/r.offsetWidth||1,i=r.offsetHeight>0&&eo(o.height)/r.offsetHeight||1);var a=Cr(r)?Ue(r):window,l=a.visualViewport,c=!op()&&t,d=(o.left+(c&&l?l.offsetLeft:0))/n,u=(o.top+(c&&l?l.offsetTop:0))/i,p=o.width/n,m=o.height/i;return{width:p,height:m,top:u,right:d+p,bottom:u+m,left:d,x:d,y:u}}function Fs(r){var e=to(r),t=r.offsetWidth,o=r.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:r.offsetLeft,y:r.offsetTop,width:t,height:o}}function np(r,e){var t=e.getRootNode&&e.getRootNode();if(r.contains(e))return!0;if(t&&zs(t)){var o=e;do{if(o&&r.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Pt(r){return Ue(r).getComputedStyle(r)}function oy(r){return["table","td","th"].indexOf(bt(r))>=0}function rr(r){return((Cr(r)?r.ownerDocument:r.document)||window.document).documentElement}function mi(r){return bt(r)==="html"?r:r.assignedSlot||r.parentNode||(zs(r)?r.host:null)||rr(r)}function ip(r){return!tt(r)||Pt(r).position==="fixed"?null:r.offsetParent}function ny(r){var e=/firefox/i.test(_s()),t=/Trident/i.test(_s());if(t&&tt(r)){var o=Pt(r);if(o.position==="fixed")return null}var n=mi(r);for(zs(n)&&(n=n.host);tt(n)&&["html","body"].indexOf(bt(n))<0;){var i=Pt(n);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return n;n=n.parentNode}return null}function Uo(r){for(var e=Ue(r),t=ip(r);t&&oy(t)&&Pt(t).position==="static";)t=ip(t);return t&&(bt(t)==="html"||bt(t)==="body"&&Pt(t).position==="static")?e:t||ny(r)||e}function js(r){return["top","bottom"].indexOf(r)>=0?"x":"y"}function Ko(r,e,t){return Nr(r,pi(e,t))}function iy(r,e,t){var o=Ko(r,e,t);return o>t?t:o}function ap(){return{top:0,right:0,bottom:0,left:0}}function sp(r){return Object.assign({},ap(),r)}function lp(r,e){return e.reduce(function(t,o){return t[o]=r,t},{})}var ay=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,sp(typeof e!="number"?e:lp(e,Ho))};function sy(r){var e,t=r.state,o=r.name,n=r.options,i=t.elements.arrow,a=t.modifiersData.popperOffsets,l=wt(t.placement),c=js(l),d=[je,et].indexOf(l)>=0,u=d?"height":"width";if(!(!i||!a)){var p=ay(n.padding,t),m=Fs(i),h=c==="y"?Fe:je,f=c==="y"?$e:et,g=t.rects.reference[u]+t.rects.reference[c]-a[c]-t.rects.popper[u],b=a[c]-t.rects.reference[c],y=Uo(i),k=y?c==="y"?y.clientHeight||0:y.clientWidth||0:0,v=g/2-b/2,w=p[h],S=k-m[u]-p[f],x=k/2-m[u]/2+v,C=Ko(w,x,S),O=c;t.modifiersData[o]=(e={},e[O]=C,e.centerOffset=C-x,e)}}function ly(r){var e=r.state,t=r.options,o=t.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=e.elements.popper.querySelector(n),!n)||np(e.elements.popper,n)&&(e.elements.arrow=n))}const cy={name:"arrow",enabled:!0,phase:"main",fn:sy,effect:ly,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ro(r){return r.split("-")[1]}var dy={top:"auto",right:"auto",bottom:"auto",left:"auto"};function uy(r,e){var t=r.x,o=r.y,n=e.devicePixelRatio||1;return{x:eo(t*n)/n||0,y:eo(o*n)/n||0}}function cp(r){var e,t=r.popper,o=r.popperRect,n=r.placement,i=r.variation,a=r.offsets,l=r.position,c=r.gpuAcceleration,d=r.adaptive,u=r.roundOffsets,p=r.isFixed,m=a.x,h=m===void 0?0:m,f=a.y,g=f===void 0?0:f,b=typeof u=="function"?u({x:h,y:g}):{x:h,y:g};h=b.x,g=b.y;var y=a.hasOwnProperty("x"),k=a.hasOwnProperty("y"),v=je,w=Fe,S=window;if(d){var x=Uo(t),C="clientHeight",O="clientWidth";if(x===Ue(t)&&(x=rr(t),Pt(x).position!=="static"&&l==="absolute"&&(C="scrollHeight",O="scrollWidth")),x=x,n===Fe||(n===je||n===et)&&i===Wo){w=$e;var D=p&&x===S&&S.visualViewport?S.visualViewport.height:x[C];g-=D-o.height,g*=c?1:-1}if(n===je||(n===Fe||n===$e)&&i===Wo){v=et;var B=p&&x===S&&S.visualViewport?S.visualViewport.width:x[O];h-=B-o.width,h*=c?1:-1}}var E=Object.assign({position:l},d&&dy),P=u===!0?uy({x:h,y:g},Ue(t)):{x:h,y:g};if(h=P.x,g=P.y,c){var _;return Object.assign({},E,(_={},_[w]=k?"0":"",_[v]=y?"0":"",_.transform=(S.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",_))}return Object.assign({},E,(e={},e[w]=k?g+"px":"",e[v]=y?h+"px":"",e.transform="",e))}function py(r){var e=r.state,t=r.options,o=t.gpuAcceleration,n=o===void 0?!0:o,i=t.adaptive,a=i===void 0?!0:i,l=t.roundOffsets,c=l===void 0?!0:l,d={placement:wt(e.placement),variation:ro(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,cp(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,cp(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const my={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:py,data:{}};var hi={passive:!0};function hy(r){var e=r.state,t=r.instance,o=r.options,n=o.scroll,i=n===void 0?!0:n,a=o.resize,l=a===void 0?!0:a,c=Ue(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&d.forEach(function(u){u.addEventListener("scroll",t.update,hi)}),l&&c.addEventListener("resize",t.update,hi),function(){i&&d.forEach(function(u){u.removeEventListener("scroll",t.update,hi)}),l&&c.removeEventListener("resize",t.update,hi)}}const fy={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:hy,data:{}};var gy={left:"right",right:"left",bottom:"top",top:"bottom"};function fi(r){return r.replace(/left|right|bottom|top/g,function(e){return gy[e]})}var by={start:"end",end:"start"};function dp(r){return r.replace(/start|end/g,function(e){return by[e]})}function Hs(r){var e=Ue(r),t=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:t,scrollTop:o}}function Ws(r){return to(rr(r)).left+Hs(r).scrollLeft}function wy(r,e){var t=Ue(r),o=rr(r),n=t.visualViewport,i=o.clientWidth,a=o.clientHeight,l=0,c=0;if(n){i=n.width,a=n.height;var d=op();(d||!d&&e==="fixed")&&(l=n.offsetLeft,c=n.offsetTop)}return{width:i,height:a,x:l+Ws(r),y:c}}function yy(r){var e,t=rr(r),o=Hs(r),n=(e=r.ownerDocument)==null?void 0:e.body,i=Nr(t.scrollWidth,t.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),a=Nr(t.scrollHeight,t.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),l=-o.scrollLeft+Ws(r),c=-o.scrollTop;return Pt(n||t).direction==="rtl"&&(l+=Nr(t.clientWidth,n?n.clientWidth:0)-i),{width:i,height:a,x:l,y:c}}function qs(r){var e=Pt(r),t=e.overflow,o=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+n+o)}function up(r){return["html","body","#document"].indexOf(bt(r))>=0?r.ownerDocument.body:tt(r)&&qs(r)?r:up(mi(r))}function Jo(r,e){var t;e===void 0&&(e=[]);var o=up(r),n=o===((t=r.ownerDocument)==null?void 0:t.body),i=Ue(o),a=n?[i].concat(i.visualViewport||[],qs(o)?o:[]):o,l=e.concat(a);return n?l:l.concat(Jo(mi(a)))}function Us(r){return Object.assign({},r,{left:r.x,top:r.y,right:r.x+r.width,bottom:r.y+r.height})}function vy(r,e){var t=to(r,!1,e==="fixed");return t.top=t.top+r.clientTop,t.left=t.left+r.clientLeft,t.bottom=t.top+r.clientHeight,t.right=t.left+r.clientWidth,t.width=r.clientWidth,t.height=r.clientHeight,t.x=t.left,t.y=t.top,t}function pp(r,e,t){return e===$u?Us(wy(r,t)):Cr(e)?vy(e,t):Us(yy(rr(r)))}function xy(r){var e=Jo(mi(r)),t=["absolute","fixed"].indexOf(Pt(r).position)>=0,o=t&&tt(r)?Uo(r):r;return Cr(o)?e.filter(function(n){return Cr(n)&&np(n,o)&&bt(n)!=="body"}):[]}function ky(r,e,t,o){var n=e==="clippingParents"?xy(r):[].concat(e),i=[].concat(n,[t]),a=i[0],l=i.reduce(function(c,d){var u=pp(r,d,o);return c.top=Nr(u.top,c.top),c.right=pi(u.right,c.right),c.bottom=pi(u.bottom,c.bottom),c.left=Nr(u.left,c.left),c},pp(r,a,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function mp(r){var e=r.reference,t=r.element,o=r.placement,n=o?wt(o):null,i=o?ro(o):null,a=e.x+e.width/2-t.width/2,l=e.y+e.height/2-t.height/2,c;switch(n){case Fe:c={x:a,y:e.y-t.height};break;case $e:c={x:a,y:e.y+e.height};break;case et:c={x:e.x+e.width,y:l};break;case je:c={x:e.x-t.width,y:l};break;default:c={x:e.x,y:e.y}}var d=n?js(n):null;if(d!=null){var u=d==="y"?"height":"width";switch(i){case $r:c[d]=c[d]-(e[u]/2-t[u]/2);break;case Wo:c[d]=c[d]+(e[u]/2-t[u]/2);break}}return c}function Go(r,e){e===void 0&&(e={});var t=e,o=t.placement,n=o===void 0?r.placement:o,i=t.strategy,a=i===void 0?r.strategy:i,l=t.boundary,c=l===void 0?Ww:l,d=t.rootBoundary,u=d===void 0?$u:d,p=t.elementContext,m=p===void 0?qo:p,h=t.altBoundary,f=h===void 0?!1:h,g=t.padding,b=g===void 0?0:g,y=sp(typeof b!="number"?b:lp(b,Ho)),k=m===qo?qw:qo,v=r.rects.popper,w=r.elements[f?k:m],S=ky(Cr(w)?w:w.contextElement||rr(r.elements.popper),c,u,a),x=to(r.elements.reference),C=mp({reference:x,element:v,placement:n}),O=Us(Object.assign({},v,C)),D=m===qo?O:x,B={top:S.top-D.top+y.top,bottom:D.bottom-S.bottom+y.bottom,left:S.left-D.left+y.left,right:D.right-S.right+y.right},E=r.modifiersData.offset;if(m===qo&&E){var P=E[n];Object.keys(B).forEach(function(_){var ee=[et,$e].indexOf(_)>=0?1:-1,re=[Fe,$e].indexOf(_)>=0?"y":"x";B[_]+=P[re]*ee})}return B}function Ey(r,e){e===void 0&&(e={});var t=e,o=t.placement,n=t.boundary,i=t.rootBoundary,a=t.padding,l=t.flipVariations,c=t.allowedAutoPlacements,d=c===void 0?tp:c,u=ro(o),p=u?l?ep:ep.filter(function(f){return ro(f)===u}):Ho,m=p.filter(function(f){return d.indexOf(f)>=0});m.length===0&&(m=p);var h=m.reduce(function(f,g){return f[g]=Go(r,{placement:g,boundary:n,rootBoundary:i,padding:a})[wt(g)],f},{});return Object.keys(h).sort(function(f,g){return h[f]-h[g]})}function Sy(r){if(wt(r)===Rs)return[];var e=fi(r);return[dp(r),e,dp(e)]}function Cy(r){var e=r.state,t=r.options,o=r.name;if(!e.modifiersData[o]._skip){for(var n=t.mainAxis,i=n===void 0?!0:n,a=t.altAxis,l=a===void 0?!0:a,c=t.fallbackPlacements,d=t.padding,u=t.boundary,p=t.rootBoundary,m=t.altBoundary,h=t.flipVariations,f=h===void 0?!0:h,g=t.allowedAutoPlacements,b=e.options.placement,y=wt(b),k=y===b,v=c||(k||!f?[fi(b)]:Sy(b)),w=[b].concat(v).reduce(function(V,oe){return V.concat(wt(oe)===Rs?Ey(e,{placement:oe,boundary:u,rootBoundary:p,padding:d,flipVariations:f,allowedAutoPlacements:g}):oe)},[]),S=e.rects.reference,x=e.rects.popper,C=new Map,O=!0,D=w[0],B=0;B<w.length;B++){var E=w[B],P=wt(E),_=ro(E)===$r,ee=[Fe,$e].indexOf(P)>=0,re=ee?"width":"height",J=Go(e,{placement:E,boundary:u,rootBoundary:p,altBoundary:m,padding:d}),z=ee?_?et:je:_?$e:Fe;S[re]>x[re]&&(z=fi(z));var X=fi(z),ne=[];if(i&&ne.push(J[P]<=0),l&&ne.push(J[z]<=0,J[X]<=0),ne.every(function(V){return V})){D=E,O=!1;break}C.set(E,ne)}if(O)for(var Je=f?3:1,ut=function(oe){var Et=w.find(function(po){var Rt=C.get(po);if(Rt)return Rt.slice(0,oe).every(function(mo){return mo})});if(Et)return D=Et,"break"},nt=Je;nt>0;nt--){var H=ut(nt);if(H==="break")break}e.placement!==D&&(e.modifiersData[o]._skip=!0,e.placement=D,e.reset=!0)}}const Ny={name:"flip",enabled:!0,phase:"main",fn:Cy,requiresIfExists:["offset"],data:{_skip:!1}};function hp(r,e,t){return t===void 0&&(t={x:0,y:0}),{top:r.top-e.height-t.y,right:r.right-e.width+t.x,bottom:r.bottom-e.height+t.y,left:r.left-e.width-t.x}}function fp(r){return[Fe,et,$e,je].some(function(e){return r[e]>=0})}function By(r){var e=r.state,t=r.name,o=e.rects.reference,n=e.rects.popper,i=e.modifiersData.preventOverflow,a=Go(e,{elementContext:"reference"}),l=Go(e,{altBoundary:!0}),c=hp(a,o),d=hp(l,n,i),u=fp(c),p=fp(d);e.modifiersData[t]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}const My={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:By};function Ty(r,e,t){var o=wt(r),n=[je,Fe].indexOf(o)>=0?-1:1,i=typeof t=="function"?t(Object.assign({},e,{placement:r})):t,a=i[0],l=i[1];return a=a||0,l=(l||0)*n,[je,et].indexOf(o)>=0?{x:l,y:a}:{x:a,y:l}}function Oy(r){var e=r.state,t=r.options,o=r.name,n=t.offset,i=n===void 0?[0,0]:n,a=tp.reduce(function(u,p){return u[p]=Ty(p,e.rects,i),u},{}),l=a[e.placement],c=l.x,d=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=d),e.modifiersData[o]=a}const Vy={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Oy};function Py(r){var e=r.state,t=r.name;e.modifiersData[t]=mp({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const Ay={name:"popperOffsets",enabled:!0,phase:"read",fn:Py,data:{}};function Dy(r){return r==="x"?"y":"x"}function Iy(r){var e=r.state,t=r.options,o=r.name,n=t.mainAxis,i=n===void 0?!0:n,a=t.altAxis,l=a===void 0?!1:a,c=t.boundary,d=t.rootBoundary,u=t.altBoundary,p=t.padding,m=t.tether,h=m===void 0?!0:m,f=t.tetherOffset,g=f===void 0?0:f,b=Go(e,{boundary:c,rootBoundary:d,padding:p,altBoundary:u}),y=wt(e.placement),k=ro(e.placement),v=!k,w=js(y),S=Dy(w),x=e.modifiersData.popperOffsets,C=e.rects.reference,O=e.rects.popper,D=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,B=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),E=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,P={x:0,y:0};if(x){if(i){var _,ee=w==="y"?Fe:je,re=w==="y"?$e:et,J=w==="y"?"height":"width",z=x[w],X=z+b[ee],ne=z-b[re],Je=h?-O[J]/2:0,ut=k===$r?C[J]:O[J],nt=k===$r?-O[J]:-C[J],H=e.elements.arrow,V=h&&H?Fs(H):{width:0,height:0},oe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:ap(),Et=oe[ee],po=oe[re],Rt=Ko(0,C[J],V[J]),mo=v?C[J]/2-Je-Rt-Et-B.mainAxis:ut-Rt-Et-B.mainAxis,sr=v?-C[J]/2+Je+Rt+po+B.mainAxis:nt+Rt+po+B.mainAxis,ho=e.elements.arrow&&Uo(e.elements.arrow),ia=ho?w==="y"?ho.clientTop||0:ho.clientLeft||0:0,fn=(_=E==null?void 0:E[w])!=null?_:0,aa=z+mo-fn-ia,sa=z+sr-fn,gn=Ko(h?pi(X,aa):X,z,h?Nr(ne,sa):ne);x[w]=gn,P[w]=gn-z}if(l){var bn,la=w==="x"?Fe:je,ca=w==="x"?$e:et,zt=x[S],lr=S==="y"?"height":"width",wn=zt+b[la],Vr=zt-b[ca],yn=[Fe,je].indexOf(y)!==-1,da=(bn=E==null?void 0:E[S])!=null?bn:0,ua=yn?wn:zt-C[lr]-O[lr]-da+B.altAxis,pa=yn?zt+C[lr]+O[lr]-da-B.altAxis:Vr,ma=h&&yn?iy(ua,zt,pa):Ko(h?ua:wn,zt,h?pa:Vr);x[S]=ma,P[S]=ma-zt}e.modifiersData[o]=P}}const Ly={name:"preventOverflow",enabled:!0,phase:"main",fn:Iy,requiresIfExists:["offset"]};function Ry(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}function zy(r){return r===Ue(r)||!tt(r)?Hs(r):Ry(r)}function _y(r){var e=r.getBoundingClientRect(),t=eo(e.width)/r.offsetWidth||1,o=eo(e.height)/r.offsetHeight||1;return t!==1||o!==1}function Fy(r,e,t){t===void 0&&(t=!1);var o=tt(e),n=tt(e)&&_y(e),i=rr(e),a=to(r,n,t),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!t)&&((bt(e)!=="body"||qs(i))&&(l=zy(e)),tt(e)?(c=to(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):i&&(c.x=Ws(i))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function jy(r){var e=new Map,t=new Set,o=[];r.forEach(function(i){e.set(i.name,i)});function n(i){t.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(l){if(!t.has(l)){var c=e.get(l);c&&n(c)}}),o.push(i)}return r.forEach(function(i){t.has(i.name)||n(i)}),o}function Hy(r){var e=jy(r);return ey.reduce(function(t,o){return t.concat(e.filter(function(n){return n.phase===o}))},[])}function Wy(r){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(r())})})),e}}function qy(r){var e=r.reduce(function(t,o){var n=t[o.name];return t[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,t},{});return Object.keys(e).map(function(t){return e[t]})}var gp={placement:"bottom",modifiers:[],strategy:"absolute"};function bp(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return!e.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function Uy(r){r===void 0&&(r={});var e=r,t=e.defaultModifiers,o=t===void 0?[]:t,n=e.defaultOptions,i=n===void 0?gp:n;return function(l,c,d){d===void 0&&(d=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},gp,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},p=[],m=!1,h={state:u,setOptions:function(y){var k=typeof y=="function"?y(u.options):y;g(),u.options=Object.assign({},i,u.options,k),u.scrollParents={reference:Cr(l)?Jo(l):l.contextElement?Jo(l.contextElement):[],popper:Jo(c)};var v=Hy(qy([].concat(o,u.options.modifiers)));return u.orderedModifiers=v.filter(function(w){return w.enabled}),f(),h.update()},forceUpdate:function(){if(!m){var y=u.elements,k=y.reference,v=y.popper;if(bp(k,v)){u.rects={reference:Fy(k,Uo(v),u.options.strategy==="fixed"),popper:Fs(v)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(B){return u.modifiersData[B.name]=Object.assign({},B.data)});for(var w=0;w<u.orderedModifiers.length;w++){if(u.reset===!0){u.reset=!1,w=-1;continue}var S=u.orderedModifiers[w],x=S.fn,C=S.options,O=C===void 0?{}:C,D=S.name;typeof x=="function"&&(u=x({state:u,options:O,name:D,instance:h})||u)}}}},update:Wy(function(){return new Promise(function(b){h.forceUpdate(),b(u)})}),destroy:function(){g(),m=!0}};if(!bp(l,c))return h;h.setOptions(d).then(function(b){!m&&d.onFirstUpdate&&d.onFirstUpdate(b)});function f(){u.orderedModifiers.forEach(function(b){var y=b.name,k=b.options,v=k===void 0?{}:k,w=b.effect;if(typeof w=="function"){var S=w({state:u,name:y,instance:h,options:v}),x=function(){};p.push(S||x)}})}function g(){p.forEach(function(b){return b()}),p=[]}return h}}var Ky=[fy,Ay,my,rp,Vy,Ny,Ly,cy,My],Jy=Uy({defaultModifiers:Ky}),Gy="tippy-box",wp="tippy-content",Yy="tippy-backdrop",yp="tippy-arrow",vp="tippy-svg-arrow",Br={passive:!0,capture:!0},xp=function(){return document.body};function Xy(r,e){return{}.hasOwnProperty.call(r,e)}function Ks(r,e,t){if(Array.isArray(r)){var o=r[e];return o??(Array.isArray(t)?t[e]:t)}return r}function Js(r,e){var t={}.toString.call(r);return t.indexOf("[object")===0&&t.indexOf(e+"]")>-1}function kp(r,e){return typeof r=="function"?r.apply(void 0,e):r}function Ep(r,e){if(e===0)return r;var t;return function(o){clearTimeout(t),t=setTimeout(function(){r(o)},e)}}function Qy(r,e){var t=Object.assign({},r);return e.forEach(function(o){delete t[o]}),t}function Zy(r){return r.split(/\s+/).filter(Boolean)}function oo(r){return[].concat(r)}function Sp(r,e){r.indexOf(e)===-1&&r.push(e)}function $y(r){return r.filter(function(e,t){return r.indexOf(e)===t})}function e1(r){return r.split("-")[0]}function gi(r){return[].slice.call(r)}function Cp(r){return Object.keys(r).reduce(function(e,t){return r[t]!==void 0&&(e[t]=r[t]),e},{})}function Yo(){return document.createElement("div")}function Xo(r){return["Element","Fragment"].some(function(e){return Js(r,e)})}function t1(r){return Js(r,"NodeList")}function r1(r){return Js(r,"MouseEvent")}function o1(r){return!!(r&&r._tippy&&r._tippy.reference===r)}function n1(r){return Xo(r)?[r]:t1(r)?gi(r):Array.isArray(r)?r:gi(document.querySelectorAll(r))}function Gs(r,e){r.forEach(function(t){t&&(t.style.transitionDuration=e+"ms")})}function Np(r,e){r.forEach(function(t){t&&t.setAttribute("data-state",e)})}function i1(r){var e,t=oo(r),o=t[0];return o!=null&&(e=o.ownerDocument)!=null&&e.body?o.ownerDocument:document}function a1(r,e){var t=e.clientX,o=e.clientY;return r.every(function(n){var i=n.popperRect,a=n.popperState,l=n.props,c=l.interactiveBorder,d=e1(a.placement),u=a.modifiersData.offset;if(!u)return!0;var p=d==="bottom"?u.top.y:0,m=d==="top"?u.bottom.y:0,h=d==="right"?u.left.x:0,f=d==="left"?u.right.x:0,g=i.top-o+p>c,b=o-i.bottom-m>c,y=i.left-t+h>c,k=t-i.right-f>c;return g||b||y||k})}function Ys(r,e,t){var o=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(n){r[o](n,t)})}function Bp(r,e){for(var t=e;t;){var o;if(r.contains(t))return!0;t=t.getRootNode==null||(o=t.getRootNode())==null?void 0:o.host}return!1}var yt={isTouch:!1},Mp=0;function s1(){yt.isTouch||(yt.isTouch=!0,window.performance&&document.addEventListener("mousemove",Tp))}function Tp(){var r=performance.now();r-Mp<20&&(yt.isTouch=!1,document.removeEventListener("mousemove",Tp)),Mp=r}function l1(){var r=document.activeElement;if(o1(r)){var e=r._tippy;r.blur&&!e.state.isVisible&&r.blur()}}function c1(){document.addEventListener("touchstart",s1,Br),window.addEventListener("blur",l1)}var d1=typeof window<"u"&&typeof document<"u",u1=d1?!!window.msCrypto:!1;function no(r){var e=r==="destroy"?"n already-":" ";return[r+"() was called on a"+e+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function Op(r){var e=/[ \t]{2,}/g,t=/^[ \t]*/gm;return r.replace(e," ").replace(t,"").trim()}function p1(r){return Op(`
|
|
100
100
|
%ctippy.js
|
|
101
101
|
|
|
102
|
-
%c`+
|
|
102
|
+
%c`+Op(r)+`
|
|
103
103
|
|
|
104
104
|
%c👷 This is a development-only message. It will be removed in production.
|
|
105
|
-
`)}function
|
|
105
|
+
`)}function Vp(r){return[p1(r),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var Qo;process.env.NODE_ENV!=="production"&&m1();function m1(){Qo=new Set}function At(r,e){if(r&&!Qo.has(e)){var t;Qo.add(e),(t=console).warn.apply(t,Vp(e))}}function Xs(r,e){if(r&&!Qo.has(e)){var t;Qo.add(e),(t=console).error.apply(t,Vp(e))}}function h1(r){var e=!r,t=Object.prototype.toString.call(r)==="[object Object]"&&!r.addEventListener;Xs(e,["tippy() was passed","`"+String(r)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),Xs(t,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var Pp={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},f1={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Ke=Object.assign({appendTo:xp,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Pp,f1),g1=Object.keys(Ke),b1=function(e){process.env.NODE_ENV!=="production"&&Ip(e,[]);var t=Object.keys(e);t.forEach(function(o){Ke[o]=e[o]})};function Ap(r){var e=r.plugins||[],t=e.reduce(function(o,n){var i=n.name,a=n.defaultValue;if(i){var l;o[i]=r[i]!==void 0?r[i]:(l=Ke[i])!=null?l:a}return o},{});return Object.assign({},r,t)}function w1(r,e){var t=e?Object.keys(Ap(Object.assign({},Ke,{plugins:e}))):g1,o=t.reduce(function(n,i){var a=(r.getAttribute("data-tippy-"+i)||"").trim();if(!a)return n;if(i==="content")n[i]=a;else try{n[i]=JSON.parse(a)}catch{n[i]=a}return n},{});return o}function Dp(r,e){var t=Object.assign({},e,{content:kp(e.content,[r])},e.ignoreAttributes?{}:w1(r,e.plugins));return t.aria=Object.assign({},Ke.aria,t.aria),t.aria={expanded:t.aria.expanded==="auto"?e.interactive:t.aria.expanded,content:t.aria.content==="auto"?e.interactive?null:"describedby":t.aria.content},t}function Ip(r,e){r===void 0&&(r={}),e===void 0&&(e=[]);var t=Object.keys(r);t.forEach(function(o){var n=Qy(Ke,Object.keys(Pp)),i=!Xy(n,o);i&&(i=e.filter(function(a){return a.name===o}).length===0),At(i,["`"+o+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",`
|
|
106
106
|
|
|
107
107
|
`,`All props: https://atomiks.github.io/tippyjs/v6/all-props/
|
|
108
|
-
`,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var y1=function(){return"innerHTML"};function Qs(r,e){r[y1()]=e}function
|
|
108
|
+
`,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var y1=function(){return"innerHTML"};function Qs(r,e){r[y1()]=e}function Lp(r){var e=Yo();return r===!0?e.className=yp:(e.className=vp,Xo(r)?e.appendChild(r):Qs(e,r)),e}function Rp(r,e){Xo(e.content)?(Qs(r,""),r.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?Qs(r,e.content):r.textContent=e.content)}function Zs(r){var e=r.firstElementChild,t=gi(e.children);return{box:e,content:t.find(function(o){return o.classList.contains(wp)}),arrow:t.find(function(o){return o.classList.contains(yp)||o.classList.contains(vp)}),backdrop:t.find(function(o){return o.classList.contains(Yy)})}}function zp(r){var e=Yo(),t=Yo();t.className=Gy,t.setAttribute("data-state","hidden"),t.setAttribute("tabindex","-1");var o=Yo();o.className=wp,o.setAttribute("data-state","hidden"),Rp(o,r.props),e.appendChild(t),t.appendChild(o),n(r.props,r.props);function n(i,a){var l=Zs(e),c=l.box,d=l.content,u=l.arrow;a.theme?c.setAttribute("data-theme",a.theme):c.removeAttribute("data-theme"),typeof a.animation=="string"?c.setAttribute("data-animation",a.animation):c.removeAttribute("data-animation"),a.inertia?c.setAttribute("data-inertia",""):c.removeAttribute("data-inertia"),c.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?c.setAttribute("role",a.role):c.removeAttribute("role"),(i.content!==a.content||i.allowHTML!==a.allowHTML)&&Rp(d,r.props),a.arrow?u?i.arrow!==a.arrow&&(c.removeChild(u),c.appendChild(Lp(a.arrow))):c.appendChild(Lp(a.arrow)):u&&c.removeChild(u)}return{popper:e,onUpdate:n}}zp.$$tippy=!0;var v1=1,bi=[],$s=[];function x1(r,e){var t=Dp(r,Object.assign({},Ke,Ap(Cp(e)))),o,n,i,a=!1,l=!1,c=!1,d=!1,u,p,m,h=[],f=Ep(aa,t.interactiveDebounce),g,b=v1++,y=null,k=$y(t.plugins),v={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},w={id:b,reference:r,popper:Yo(),popperInstance:y,props:t,state:v,plugins:k,clearDelayTimeouts:ua,setProps:pa,setContent:ma,show:KE,hide:JE,hideWithInteractivity:GE,enable:yn,disable:da,unmount:YE,destroy:XE};if(!t.render)return process.env.NODE_ENV!=="production"&&Xs(!0,"render() function has not been supplied."),w;var S=t.render(w),x=S.popper,C=S.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+w.id,w.popper=x,r._tippy=w,x._tippy=w;var O=k.map(function(N){return N.fn(w)}),D=r.hasAttribute("aria-expanded");return ho(),Je(),z(),X("onCreate",[w]),t.showOnCreate&&wn(),x.addEventListener("mouseenter",function(){w.props.interactive&&w.state.isVisible&&w.clearDelayTimeouts()}),x.addEventListener("mouseleave",function(){w.props.interactive&&w.props.trigger.indexOf("mouseenter")>=0&&ee().addEventListener("mousemove",f)}),w;function B(){var N=w.props.touch;return Array.isArray(N)?N:[N,0]}function E(){return B()[0]==="hold"}function P(){var N;return!!((N=w.props.render)!=null&&N.$$tippy)}function _(){return g||r}function ee(){var N=_().parentNode;return N?i1(N):document}function re(){return Zs(x)}function J(N){return w.state.isMounted&&!w.state.isVisible||yt.isTouch||u&&u.type==="focus"?0:Ks(w.props.delay,N?0:1,Ke.delay)}function z(N){N===void 0&&(N=!1),x.style.pointerEvents=w.props.interactive&&!N?"":"none",x.style.zIndex=""+w.props.zIndex}function X(N,L,F){if(F===void 0&&(F=!0),O.forEach(function(Y){Y[N]&&Y[N].apply(Y,L)}),F){var Q;(Q=w.props)[N].apply(Q,L)}}function ne(){var N=w.props.aria;if(N.content){var L="aria-"+N.content,F=x.id,Q=oo(w.props.triggerTarget||r);Q.forEach(function(Y){var ze=Y.getAttribute(L);if(w.state.isVisible)Y.setAttribute(L,ze?ze+" "+F:F);else{var it=ze&&ze.replace(F,"").trim();it?Y.setAttribute(L,it):Y.removeAttribute(L)}})}}function Je(){if(!(D||!w.props.aria.expanded)){var N=oo(w.props.triggerTarget||r);N.forEach(function(L){w.props.interactive?L.setAttribute("aria-expanded",w.state.isVisible&&L===_()?"true":"false"):L.removeAttribute("aria-expanded")})}}function ut(){ee().removeEventListener("mousemove",f),bi=bi.filter(function(N){return N!==f})}function nt(N){if(!(yt.isTouch&&(c||N.type==="mousedown"))){var L=N.composedPath&&N.composedPath()[0]||N.target;if(!(w.props.interactive&&Bp(x,L))){if(oo(w.props.triggerTarget||r).some(function(F){return Bp(F,L)})){if(yt.isTouch||w.state.isVisible&&w.props.trigger.indexOf("click")>=0)return}else X("onClickOutside",[w,N]);w.props.hideOnClick===!0&&(w.clearDelayTimeouts(),w.hide(),l=!0,setTimeout(function(){l=!1}),w.state.isMounted||Et())}}}function H(){c=!0}function V(){c=!1}function oe(){var N=ee();N.addEventListener("mousedown",nt,!0),N.addEventListener("touchend",nt,Br),N.addEventListener("touchstart",V,Br),N.addEventListener("touchmove",H,Br)}function Et(){var N=ee();N.removeEventListener("mousedown",nt,!0),N.removeEventListener("touchend",nt,Br),N.removeEventListener("touchstart",V,Br),N.removeEventListener("touchmove",H,Br)}function po(N,L){mo(N,function(){!w.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&L()})}function Rt(N,L){mo(N,L)}function mo(N,L){var F=re().box;function Q(Y){Y.target===F&&(Ys(F,"remove",Q),L())}if(N===0)return L();Ys(F,"remove",p),Ys(F,"add",Q),p=Q}function sr(N,L,F){F===void 0&&(F=!1);var Q=oo(w.props.triggerTarget||r);Q.forEach(function(Y){Y.addEventListener(N,L,F),h.push({node:Y,eventType:N,handler:L,options:F})})}function ho(){E()&&(sr("touchstart",fn,{passive:!0}),sr("touchend",sa,{passive:!0})),Zy(w.props.trigger).forEach(function(N){if(N!=="manual")switch(sr(N,fn),N){case"mouseenter":sr("mouseleave",sa);break;case"focus":sr(u1?"focusout":"blur",gn);break;case"focusin":sr("focusout",gn);break}})}function ia(){h.forEach(function(N){var L=N.node,F=N.eventType,Q=N.handler,Y=N.options;L.removeEventListener(F,Q,Y)}),h=[]}function fn(N){var L,F=!1;if(!(!w.state.isEnabled||bn(N)||l)){var Q=((L=u)==null?void 0:L.type)==="focus";u=N,g=N.currentTarget,Je(),!w.state.isVisible&&r1(N)&&bi.forEach(function(Y){return Y(N)}),N.type==="click"&&(w.props.trigger.indexOf("mouseenter")<0||a)&&w.props.hideOnClick!==!1&&w.state.isVisible?F=!0:wn(N),N.type==="click"&&(a=!F),F&&!Q&&Vr(N)}}function aa(N){var L=N.target,F=_().contains(L)||x.contains(L);if(!(N.type==="mousemove"&&F)){var Q=lr().concat(x).map(function(Y){var ze,it=Y._tippy,fo=(ze=it.popperInstance)==null?void 0:ze.state;return fo?{popperRect:Y.getBoundingClientRect(),popperState:fo,props:t}:null}).filter(Boolean);a1(Q,N)&&(ut(),Vr(N))}}function sa(N){var L=bn(N)||w.props.trigger.indexOf("click")>=0&&a;if(!L){if(w.props.interactive){w.hideWithInteractivity(N);return}Vr(N)}}function gn(N){w.props.trigger.indexOf("focusin")<0&&N.target!==_()||w.props.interactive&&N.relatedTarget&&x.contains(N.relatedTarget)||Vr(N)}function bn(N){return yt.isTouch?E()!==N.type.indexOf("touch")>=0:!1}function la(){ca();var N=w.props,L=N.popperOptions,F=N.placement,Q=N.offset,Y=N.getReferenceClientRect,ze=N.moveTransition,it=P()?Zs(x).arrow:null,fo=Y?{getBoundingClientRect:Y,contextElement:Y.contextElement||_()}:r,Am={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(ha){var go=ha.state;if(P()){var QE=re(),Al=QE.box;["placement","reference-hidden","escaped"].forEach(function(fa){fa==="placement"?Al.setAttribute("data-placement",go.placement):go.attributes.popper["data-popper-"+fa]?Al.setAttribute("data-"+fa,""):Al.removeAttribute("data-"+fa)}),go.attributes.popper={}}}},Pr=[{name:"offset",options:{offset:Q}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!ze}},Am];P()&&it&&Pr.push({name:"arrow",options:{element:it,padding:3}}),Pr.push.apply(Pr,(L==null?void 0:L.modifiers)||[]),w.popperInstance=Jy(fo,x,Object.assign({},L,{placement:F,onFirstUpdate:m,modifiers:Pr}))}function ca(){w.popperInstance&&(w.popperInstance.destroy(),w.popperInstance=null)}function zt(){var N=w.props.appendTo,L,F=_();w.props.interactive&&N===xp||N==="parent"?L=F.parentNode:L=kp(N,[F]),L.contains(x)||L.appendChild(x),w.state.isMounted=!0,la(),process.env.NODE_ENV!=="production"&&At(w.props.interactive&&N===Ke.appendTo&&F.nextElementSibling!==x,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
|
|
109
109
|
|
|
110
110
|
`,"Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.",`
|
|
111
111
|
|
|
112
112
|
`,"Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.",`
|
|
113
113
|
|
|
114
|
-
`,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function lr(){return
|
|
114
|
+
`,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function lr(){return gi(x.querySelectorAll("[data-tippy-root]"))}function wn(N){w.clearDelayTimeouts(),N&&X("onTrigger",[w,N]),oe();var L=J(!0),F=B(),Q=F[0],Y=F[1];yt.isTouch&&Q==="hold"&&Y&&(L=Y),L?o=setTimeout(function(){w.show()},L):w.show()}function Vr(N){if(w.clearDelayTimeouts(),X("onUntrigger",[w,N]),!w.state.isVisible){Et();return}if(!(w.props.trigger.indexOf("mouseenter")>=0&&w.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(N.type)>=0&&a)){var L=J(!1);L?n=setTimeout(function(){w.state.isVisible&&w.hide()},L):i=requestAnimationFrame(function(){w.hide()})}}function yn(){w.state.isEnabled=!0}function da(){w.hide(),w.state.isEnabled=!1}function ua(){clearTimeout(o),clearTimeout(n),cancelAnimationFrame(i)}function pa(N){if(process.env.NODE_ENV!=="production"&&At(w.state.isDestroyed,no("setProps")),!w.state.isDestroyed){X("onBeforeUpdate",[w,N]),ia();var L=w.props,F=Dp(r,Object.assign({},L,Cp(N),{ignoreAttributes:!0}));w.props=F,ho(),L.interactiveDebounce!==F.interactiveDebounce&&(ut(),f=Ep(aa,F.interactiveDebounce)),L.triggerTarget&&!F.triggerTarget?oo(L.triggerTarget).forEach(function(Q){Q.removeAttribute("aria-expanded")}):F.triggerTarget&&r.removeAttribute("aria-expanded"),Je(),z(),C&&C(L,F),w.popperInstance&&(la(),lr().forEach(function(Q){requestAnimationFrame(Q._tippy.popperInstance.forceUpdate)})),X("onAfterUpdate",[w,N])}}function ma(N){w.setProps({content:N})}function KE(){process.env.NODE_ENV!=="production"&&At(w.state.isDestroyed,no("show"));var N=w.state.isVisible,L=w.state.isDestroyed,F=!w.state.isEnabled,Q=yt.isTouch&&!w.props.touch,Y=Ks(w.props.duration,0,Ke.duration);if(!(N||L||F||Q)&&!_().hasAttribute("disabled")&&(X("onShow",[w],!1),w.props.onShow(w)!==!1)){if(w.state.isVisible=!0,P()&&(x.style.visibility="visible"),z(),oe(),w.state.isMounted||(x.style.transition="none"),P()){var ze=re(),it=ze.box,fo=ze.content;Gs([it,fo],0)}m=function(){var Pr;if(!(!w.state.isVisible||d)){if(d=!0,x.offsetHeight,x.style.transition=w.props.moveTransition,P()&&w.props.animation){var Pl=re(),ha=Pl.box,go=Pl.content;Gs([ha,go],Y),Np([ha,go],"visible")}ne(),Je(),Sp($s,w),(Pr=w.popperInstance)==null||Pr.forceUpdate(),X("onMount",[w]),w.props.animation&&P()&&Rt(Y,function(){w.state.isShown=!0,X("onShown",[w])})}},zt()}}function JE(){process.env.NODE_ENV!=="production"&&At(w.state.isDestroyed,no("hide"));var N=!w.state.isVisible,L=w.state.isDestroyed,F=!w.state.isEnabled,Q=Ks(w.props.duration,1,Ke.duration);if(!(N||L||F)&&(X("onHide",[w],!1),w.props.onHide(w)!==!1)){if(w.state.isVisible=!1,w.state.isShown=!1,d=!1,a=!1,P()&&(x.style.visibility="hidden"),ut(),Et(),z(!0),P()){var Y=re(),ze=Y.box,it=Y.content;w.props.animation&&(Gs([ze,it],Q),Np([ze,it],"hidden"))}ne(),Je(),w.props.animation?P()&&po(Q,w.unmount):w.unmount()}}function GE(N){process.env.NODE_ENV!=="production"&&At(w.state.isDestroyed,no("hideWithInteractivity")),ee().addEventListener("mousemove",f),Sp(bi,f),f(N)}function YE(){process.env.NODE_ENV!=="production"&&At(w.state.isDestroyed,no("unmount")),w.state.isVisible&&w.hide(),w.state.isMounted&&(ca(),lr().forEach(function(N){N._tippy.unmount()}),x.parentNode&&x.parentNode.removeChild(x),$s=$s.filter(function(N){return N!==w}),w.state.isMounted=!1,X("onHidden",[w]))}function XE(){process.env.NODE_ENV!=="production"&&At(w.state.isDestroyed,no("destroy")),!w.state.isDestroyed&&(w.clearDelayTimeouts(),w.unmount(),ia(),delete r._tippy,w.state.isDestroyed=!0,X("onDestroy",[w]))}}function io(r,e){e===void 0&&(e={});var t=Ke.plugins.concat(e.plugins||[]);process.env.NODE_ENV!=="production"&&(h1(r),Ip(e,t)),c1();var o=Object.assign({},e,{plugins:t}),n=n1(r);if(process.env.NODE_ENV!=="production"){var i=Xo(o.content),a=n.length>1;At(i&&a,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.",`
|
|
115
115
|
|
|
116
116
|
`,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
|
|
117
117
|
|
|
118
118
|
`,`1) content: element.innerHTML
|
|
119
|
-
`,"2) content: () => element.cloneNode(true)"].join(" "))}var l=n.reduce(function(d,c){var p=c&&v1(c,o);return p&&d.push(p),d},[]);return Xo(r)?l[0]:l}io.defaultProps=Ke,io.setDefaultProps=b1,io.currentInput=yt,Object.assign({},ru,{effect:function(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow)}}),io.setDefaultProps({render:zu});class k1{constructor({editor:e,element:t,view:o,tippyOptions:n={},updateDelay:i=250,shouldShow:a}){this.preventHide=!1,this.shouldShow=({view:l,state:d,from:c,to:p})=>{const{doc:u,selection:m}=d,{empty:h}=m,g=!u.textBetween(c,p).length&&Bs(d.selection),f=this.element.contains(document.activeElement);return!(!(l.hasFocus()||f)||h||g||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:l})=>{var d;if(this.preventHide){this.preventHide=!1;return}l!=null&&l.relatedTarget&&(!((d=this.element.parentNode)===null||d===void 0)&&d.contains(l.relatedTarget))||(l==null?void 0:l.relatedTarget)!==this.editor.view.dom&&this.hide()},this.tippyBlurHandler=l=>{this.blurHandler({event:l})},this.handleDebouncedUpdate=(l,d)=>{const c=!(d!=null&&d.selection.eq(l.state.selection)),p=!(d!=null&&d.doc.eq(l.state.doc));!c&&!p||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(l,c,p,d)},this.updateDelay))},this.updateHandler=(l,d,c,p)=>{var u,m,h;const{state:g,composing:f}=l,{selection:b}=g;if(f||!d&&!c)return;this.createTooltip();const{ranges:k}=b,x=Math.min(...k.map(v=>v.$from.pos)),w=Math.max(...k.map(v=>v.$to.pos));if(!((u=this.shouldShow)===null||u===void 0?void 0:u.call(this,{editor:this.editor,element:this.element,view:l,state:g,oldState:p,from:x,to:w}))){this.hide();return}(m=this.tippy)===null||m===void 0||m.setProps({getReferenceClientRect:((h=this.tippyOptions)===null||h===void 0?void 0:h.getReferenceClientRect)||(()=>{if(Xp(g.selection)){let v=l.nodeDOM(x);if(v){const C=v.dataset.nodeViewWrapper?v:v.querySelector("[data-node-view-wrapper]");if(C&&(v=C.firstChild),v)return v.getBoundingClientRect()}}return Qp(l,x,w)})}),this.show()},this.editor=e,this.element=t,this.view=o,this.updateDelay=i,a&&(this.shouldShow=a),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=n,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;this.tippy||!t||(this.tippy=io(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){const{state:o}=e,n=o.selection.from!==o.selection.to;if(this.updateDelay>0&&n){this.handleDebouncedUpdate(e,t);return}const i=!(t!=null&&t.selection.eq(e.state.selection)),a=!(t!=null&&t.doc.eq(e.state.doc));this.updateHandler(e,i,a,t)}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,t;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(t=this.tippy)===null||t===void 0||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const _u=r=>new he({key:typeof r.pluginKey=="string"?new Ae(r.pluginKey):r.pluginKey,view:e=>new k1({view:e,...r})});Be.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[_u({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class E1{getTextContent(e){return Jp(e,{textSerializers:Cs(this.editor.schema)})}constructor({editor:e,element:t,view:o,tippyOptions:n={},shouldShow:i}){this.preventHide=!1,this.shouldShow=({view:a,state:l})=>{const{selection:d}=l,{$anchor:c,empty:p}=d,u=c.depth===1,m=c.parent.isTextblock&&!c.parent.type.spec.code&&!c.parent.textContent&&c.parent.childCount===0&&!this.getTextContent(c.parent);return!(!a.hasFocus()||!p||!u||!m||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:a})=>{var l;if(this.preventHide){this.preventHide=!1;return}a!=null&&a.relatedTarget&&(!((l=this.element.parentNode)===null||l===void 0)&&l.contains(a.relatedTarget))||(a==null?void 0:a.relatedTarget)!==this.editor.view.dom&&this.hide()},this.tippyBlurHandler=a=>{this.blurHandler({event:a})},this.editor=e,this.element=t,this.view=o,i&&(this.shouldShow=i),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=n,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;this.tippy||!t||(this.tippy=io(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){var o,n,i;const{state:a}=e,{doc:l,selection:d}=a,{from:c,to:p}=d;if(t&&t.doc.eq(l)&&t.selection.eq(d))return;if(this.createTooltip(),!((o=this.shouldShow)===null||o===void 0?void 0:o.call(this,{editor:this.editor,view:e,state:a,oldState:t}))){this.hide();return}(n=this.tippy)===null||n===void 0||n.setProps({getReferenceClientRect:((i=this.tippyOptions)===null||i===void 0?void 0:i.getReferenceClientRect)||(()=>Qp(e,c,p))}),this.show()}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,t;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(t=this.tippy)===null||t===void 0||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const Fu=r=>new he({key:typeof r.pluginKey=="string"?new Ae(r.pluginKey):r.pluginKey,view:e=>new E1({view:e,...r})});Be.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[Fu({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}}),s.defineComponent({name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(r,{slots:e}){const t=s.ref(null);return s.onMounted(()=>{const{updateDelay:o,editor:n,pluginKey:i,shouldShow:a,tippyOptions:l}=r;n.registerPlugin(_u({updateDelay:o,editor:n,element:t.value,pluginKey:i,shouldShow:a,tippyOptions:l}))}),s.onBeforeUnmount(()=>{const{pluginKey:o,editor:n}=r;n.unregisterPlugin(o)}),()=>{var o;return s.h("div",{ref:t},(o=e.default)===null||o===void 0?void 0:o.call(e))}}});function ju(r){return s.customRef((e,t)=>({get(){return e(),r},set(o){r=o,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t()})})}}))}class S1 extends jw{constructor(e={}){return super(e),this.contentComponent=null,this.appContext=null,this.reactiveState=ju(this.view.state),this.reactiveExtensionStorage=ju(this.extensionStorage),this.on("beforeTransaction",({nextState:t})=>{this.reactiveState.value=t,this.reactiveExtensionStorage.value=this.extensionStorage}),s.markRaw(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(e,t){const o=super.registerPlugin(e,t);return this.reactiveState&&(this.reactiveState.value=o),o}unregisterPlugin(e){const t=super.unregisterPlugin(e);return this.reactiveState&&t&&(this.reactiveState.value=t),t}}const C1=s.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(r){const e=s.ref(),t=s.getCurrentInstance();return s.watchEffect(()=>{const o=r.editor;o&&o.options.element&&e.value&&s.nextTick(()=>{if(!e.value||!o.options.element.firstChild)return;const n=s.unref(e.value);e.value.append(...o.options.element.childNodes),o.contentComponent=t.ctx._,t&&(o.appContext={...t.appContext,provides:t.provides}),o.setOptions({element:n}),o.createNodeViews()})}),s.onBeforeUnmount(()=>{const o=r.editor;o&&(o.contentComponent=null,o.appContext=null)}),{rootEl:e}},render(){return s.h("div",{ref:r=>{this.rootEl=r}})}});s.defineComponent({name:"FloatingMenu",props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(r,{slots:e}){const t=s.ref(null);return s.onMounted(()=>{const{pluginKey:o,editor:n,tippyOptions:i,shouldShow:a}=r;n.registerPlugin(Fu({pluginKey:o,editor:n,element:t.value,tippyOptions:i,shouldShow:a}))}),s.onBeforeUnmount(()=>{const{pluginKey:o,editor:n}=r;n.unregisterPlugin(o)}),()=>{var o;return s.h("div",{ref:t},(o=e.default)===null||o===void 0?void 0:o.call(e))}}}),s.defineComponent({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return s.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}}),s.defineComponent({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var r,e;return s.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(e=(r=this.$slots).default)===null||e===void 0?void 0:e.call(r))}});const N1=(r={})=>{const e=s.shallowRef();return s.onMounted(()=>{e.value=new S1(r)}),s.onBeforeUnmount(()=>{var t,o,n;const i=(t=e.value)===null||t===void 0?void 0:t.options.element,a=i==null?void 0:i.cloneNode(!0);(o=i==null?void 0:i.parentNode)===null||o===void 0||o.replaceChild(a,i),(n=e.value)===null||n===void 0||n.destroy()}),e},B1=/^\s*>\s$/,M1=lt.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:r}){return["blockquote",Ne(this.options.HTMLAttributes,r),0]},addCommands(){return{setBlockquote:()=>({commands:r})=>r.wrapIn(this.name),toggleBlockquote:()=>({commands:r})=>r.toggleWrap(this.name),unsetBlockquote:()=>({commands:r})=>r.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[jo({find:B1,type:this.type})]}}),T1=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,O1=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,V1=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,P1=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,A1=Ot.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:r=>r.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:r=>r.type.name===this.name},{style:"font-weight",getAttrs:r=>/^(bold(er)?|[5-9]\d{2,})$/.test(r)&&null}]},renderHTML({HTMLAttributes:r}){return["strong",Ne(this.options.HTMLAttributes,r),0]},addCommands(){return{setBold:()=>({commands:r})=>r.setMark(this.name),toggleBold:()=>({commands:r})=>r.toggleMark(this.name),unsetBold:()=>({commands:r})=>r.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[Zr({find:T1,type:this.type}),Zr({find:V1,type:this.type})]},addPasteRules(){return[Sr({find:O1,type:this.type}),Sr({find:P1,type:this.type})]}}),D1="listItem",Hu="textStyle",Wu=/^\s*([-+*])\s$/,I1=lt.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:r}){return["ul",Ne(this.options.HTMLAttributes,r),0]},addCommands(){return{toggleBulletList:()=>({commands:r,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(D1,this.editor.getAttributes(Hu)).run():r.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let r=jo({find:Wu,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(r=jo({find:Wu,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Hu),editor:this.editor})),[r]}}),L1=/(^|[^`])`([^`]+)`(?!`)/,R1=/(^|[^`])`([^`]+)`(?!`)/g,z1=Ot.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:r}){return["code",Ne(this.options.HTMLAttributes,r),0]},addCommands(){return{setCode:()=>({commands:r})=>r.setMark(this.name),toggleCode:()=>({commands:r})=>r.toggleMark(this.name),unsetCode:()=>({commands:r})=>r.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[Zr({find:L1,type:this.type})]},addPasteRules(){return[Sr({find:R1,type:this.type})]}}),_1=/^```([a-z]+)?[\s\n]$/,F1=/^~~~([a-z]+)?[\s\n]$/,j1=lt.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:r=>{var e;const{languageClassPrefix:t}=this.options,i=[...((e=r.firstElementChild)===null||e===void 0?void 0:e.classList)||[]].filter(a=>a.startsWith(t)).map(a=>a.replace(t,""))[0];return i||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:r,HTMLAttributes:e}){return["pre",Ne(this.options.HTMLAttributes,e),["code",{class:r.attrs.language?this.options.languageClassPrefix+r.attrs.language:null},0]]},addCommands(){return{setCodeBlock:r=>({commands:e})=>e.setNode(this.name,r),toggleCodeBlock:r=>({commands:e})=>e.toggleNode(this.name,"paragraph",r)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:r,$anchor:e}=this.editor.state.selection,t=e.pos===1;return!r||e.parent.type.name!==this.name?!1:t||!e.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:r})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=r,{selection:t}=e,{$from:o,empty:n}=t;if(!n||o.parent.type!==this.type)return!1;const i=o.parentOffset===o.parent.nodeSize-2,a=o.parent.textContent.endsWith(`
|
|
119
|
+
`,"2) content: () => element.cloneNode(true)"].join(" "))}var l=n.reduce(function(c,d){var u=d&&x1(d,o);return u&&c.push(u),c},[]);return Xo(r)?l[0]:l}io.defaultProps=Ke,io.setDefaultProps=b1,io.currentInput=yt,Object.assign({},rp,{effect:function(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow)}}),io.setDefaultProps({render:zp});class k1{constructor({editor:e,element:t,view:o,tippyOptions:n={},updateDelay:i=250,shouldShow:a}){this.preventHide=!1,this.shouldShow=({view:l,state:c,from:d,to:u})=>{const{doc:p,selection:m}=c,{empty:h}=m,f=!p.textBetween(d,u).length&&Bs(c.selection),g=this.element.contains(document.activeElement);return!(!(l.hasFocus()||g)||h||f||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:l})=>{var c;if(this.preventHide){this.preventHide=!1;return}l!=null&&l.relatedTarget&&(!((c=this.element.parentNode)===null||c===void 0)&&c.contains(l.relatedTarget))||(l==null?void 0:l.relatedTarget)!==this.editor.view.dom&&this.hide()},this.tippyBlurHandler=l=>{this.blurHandler({event:l})},this.handleDebouncedUpdate=(l,c)=>{const d=!(c!=null&&c.selection.eq(l.state.selection)),u=!(c!=null&&c.doc.eq(l.state.doc));!d&&!u||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(l,d,u,c)},this.updateDelay))},this.updateHandler=(l,c,d,u)=>{var p,m,h;const{state:f,composing:g}=l,{selection:b}=f;if(g||!c&&!d)return;this.createTooltip();const{ranges:k}=b,v=Math.min(...k.map(x=>x.$from.pos)),w=Math.max(...k.map(x=>x.$to.pos));if(!((p=this.shouldShow)===null||p===void 0?void 0:p.call(this,{editor:this.editor,element:this.element,view:l,state:f,oldState:u,from:v,to:w}))){this.hide();return}(m=this.tippy)===null||m===void 0||m.setProps({getReferenceClientRect:((h=this.tippyOptions)===null||h===void 0?void 0:h.getReferenceClientRect)||(()=>{if(Xu(f.selection)){let x=l.nodeDOM(v);if(x){const C=x.dataset.nodeViewWrapper?x:x.querySelector("[data-node-view-wrapper]");if(C&&(x=C.firstChild),x)return x.getBoundingClientRect()}}return Qu(l,v,w)})}),this.show()},this.editor=e,this.element=t,this.view=o,this.updateDelay=i,a&&(this.shouldShow=a),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=n,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;this.tippy||!t||(this.tippy=io(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){const{state:o}=e,n=o.selection.from!==o.selection.to;if(this.updateDelay>0&&n){this.handleDebouncedUpdate(e,t);return}const i=!(t!=null&&t.selection.eq(e.state.selection)),a=!(t!=null&&t.doc.eq(e.state.doc));this.updateHandler(e,i,a,t)}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,t;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(t=this.tippy)===null||t===void 0||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const _p=r=>new he({key:typeof r.pluginKey=="string"?new Ae(r.pluginKey):r.pluginKey,view:e=>new k1({view:e,...r})});Be.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[_p({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class E1{getTextContent(e){return Ju(e,{textSerializers:Cs(this.editor.schema)})}constructor({editor:e,element:t,view:o,tippyOptions:n={},shouldShow:i}){this.preventHide=!1,this.shouldShow=({view:a,state:l})=>{const{selection:c}=l,{$anchor:d,empty:u}=c,p=d.depth===1,m=d.parent.isTextblock&&!d.parent.type.spec.code&&!d.parent.textContent&&d.parent.childCount===0&&!this.getTextContent(d.parent);return!(!a.hasFocus()||!u||!p||!m||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:a})=>{var l;if(this.preventHide){this.preventHide=!1;return}a!=null&&a.relatedTarget&&(!((l=this.element.parentNode)===null||l===void 0)&&l.contains(a.relatedTarget))||(a==null?void 0:a.relatedTarget)!==this.editor.view.dom&&this.hide()},this.tippyBlurHandler=a=>{this.blurHandler({event:a})},this.editor=e,this.element=t,this.view=o,i&&(this.shouldShow=i),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=n,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;this.tippy||!t||(this.tippy=io(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){var o,n,i;const{state:a}=e,{doc:l,selection:c}=a,{from:d,to:u}=c;if(t&&t.doc.eq(l)&&t.selection.eq(c))return;if(this.createTooltip(),!((o=this.shouldShow)===null||o===void 0?void 0:o.call(this,{editor:this.editor,view:e,state:a,oldState:t}))){this.hide();return}(n=this.tippy)===null||n===void 0||n.setProps({getReferenceClientRect:((i=this.tippyOptions)===null||i===void 0?void 0:i.getReferenceClientRect)||(()=>Qu(e,d,u))}),this.show()}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,t;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(t=this.tippy)===null||t===void 0||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const Fp=r=>new he({key:typeof r.pluginKey=="string"?new Ae(r.pluginKey):r.pluginKey,view:e=>new E1({view:e,...r})});Be.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[Fp({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}}),s.defineComponent({name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(r,{slots:e}){const t=s.ref(null);return s.onMounted(()=>{const{updateDelay:o,editor:n,pluginKey:i,shouldShow:a,tippyOptions:l}=r;n.registerPlugin(_p({updateDelay:o,editor:n,element:t.value,pluginKey:i,shouldShow:a,tippyOptions:l}))}),s.onBeforeUnmount(()=>{const{pluginKey:o,editor:n}=r;n.unregisterPlugin(o)}),()=>{var o;return s.h("div",{ref:t},(o=e.default)===null||o===void 0?void 0:o.call(e))}}});function jp(r){return s.customRef((e,t)=>({get(){return e(),r},set(o){r=o,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t()})})}}))}class S1 extends jw{constructor(e={}){return super(e),this.contentComponent=null,this.appContext=null,this.reactiveState=jp(this.view.state),this.reactiveExtensionStorage=jp(this.extensionStorage),this.on("beforeTransaction",({nextState:t})=>{this.reactiveState.value=t,this.reactiveExtensionStorage.value=this.extensionStorage}),s.markRaw(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(e,t){const o=super.registerPlugin(e,t);return this.reactiveState&&(this.reactiveState.value=o),o}unregisterPlugin(e){const t=super.unregisterPlugin(e);return this.reactiveState&&t&&(this.reactiveState.value=t),t}}const C1=s.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(r){const e=s.ref(),t=s.getCurrentInstance();return s.watchEffect(()=>{const o=r.editor;o&&o.options.element&&e.value&&s.nextTick(()=>{if(!e.value||!o.options.element.firstChild)return;const n=s.unref(e.value);e.value.append(...o.options.element.childNodes),o.contentComponent=t.ctx._,t&&(o.appContext={...t.appContext,provides:t.provides}),o.setOptions({element:n}),o.createNodeViews()})}),s.onBeforeUnmount(()=>{const o=r.editor;o&&(o.contentComponent=null,o.appContext=null)}),{rootEl:e}},render(){return s.h("div",{ref:r=>{this.rootEl=r}})}});s.defineComponent({name:"FloatingMenu",props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(r,{slots:e}){const t=s.ref(null);return s.onMounted(()=>{const{pluginKey:o,editor:n,tippyOptions:i,shouldShow:a}=r;n.registerPlugin(Fp({pluginKey:o,editor:n,element:t.value,tippyOptions:i,shouldShow:a}))}),s.onBeforeUnmount(()=>{const{pluginKey:o,editor:n}=r;n.unregisterPlugin(o)}),()=>{var o;return s.h("div",{ref:t},(o=e.default)===null||o===void 0?void 0:o.call(e))}}}),s.defineComponent({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return s.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}}),s.defineComponent({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var r,e;return s.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(e=(r=this.$slots).default)===null||e===void 0?void 0:e.call(r))}});const N1=(r={})=>{const e=s.shallowRef();return s.onMounted(()=>{e.value=new S1(r)}),s.onBeforeUnmount(()=>{var t,o,n;const i=(t=e.value)===null||t===void 0?void 0:t.options.element,a=i==null?void 0:i.cloneNode(!0);(o=i==null?void 0:i.parentNode)===null||o===void 0||o.replaceChild(a,i),(n=e.value)===null||n===void 0||n.destroy()}),e},B1=/^\s*>\s$/,M1=lt.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:r}){return["blockquote",Ne(this.options.HTMLAttributes,r),0]},addCommands(){return{setBlockquote:()=>({commands:r})=>r.wrapIn(this.name),toggleBlockquote:()=>({commands:r})=>r.toggleWrap(this.name),unsetBlockquote:()=>({commands:r})=>r.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[jo({find:B1,type:this.type})]}}),T1=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,O1=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,V1=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,P1=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,A1=Ot.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:r=>r.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:r=>r.type.name===this.name},{style:"font-weight",getAttrs:r=>/^(bold(er)?|[5-9]\d{2,})$/.test(r)&&null}]},renderHTML({HTMLAttributes:r}){return["strong",Ne(this.options.HTMLAttributes,r),0]},addCommands(){return{setBold:()=>({commands:r})=>r.setMark(this.name),toggleBold:()=>({commands:r})=>r.toggleMark(this.name),unsetBold:()=>({commands:r})=>r.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[Zr({find:T1,type:this.type}),Zr({find:V1,type:this.type})]},addPasteRules(){return[Sr({find:O1,type:this.type}),Sr({find:P1,type:this.type})]}}),D1="listItem",Hp="textStyle",Wp=/^\s*([-+*])\s$/,I1=lt.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:r}){return["ul",Ne(this.options.HTMLAttributes,r),0]},addCommands(){return{toggleBulletList:()=>({commands:r,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(D1,this.editor.getAttributes(Hp)).run():r.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let r=jo({find:Wp,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(r=jo({find:Wp,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Hp),editor:this.editor})),[r]}}),L1=/(^|[^`])`([^`]+)`(?!`)/,R1=/(^|[^`])`([^`]+)`(?!`)/g,z1=Ot.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:r}){return["code",Ne(this.options.HTMLAttributes,r),0]},addCommands(){return{setCode:()=>({commands:r})=>r.setMark(this.name),toggleCode:()=>({commands:r})=>r.toggleMark(this.name),unsetCode:()=>({commands:r})=>r.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[Zr({find:L1,type:this.type})]},addPasteRules(){return[Sr({find:R1,type:this.type})]}}),_1=/^```([a-z]+)?[\s\n]$/,F1=/^~~~([a-z]+)?[\s\n]$/,j1=lt.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:r=>{var e;const{languageClassPrefix:t}=this.options,i=[...((e=r.firstElementChild)===null||e===void 0?void 0:e.classList)||[]].filter(a=>a.startsWith(t)).map(a=>a.replace(t,""))[0];return i||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:r,HTMLAttributes:e}){return["pre",Ne(this.options.HTMLAttributes,e),["code",{class:r.attrs.language?this.options.languageClassPrefix+r.attrs.language:null},0]]},addCommands(){return{setCodeBlock:r=>({commands:e})=>e.setNode(this.name,r),toggleCodeBlock:r=>({commands:e})=>e.toggleNode(this.name,"paragraph",r)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:r,$anchor:e}=this.editor.state.selection,t=e.pos===1;return!r||e.parent.type.name!==this.name?!1:t||!e.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:r})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=r,{selection:t}=e,{$from:o,empty:n}=t;if(!n||o.parent.type!==this.type)return!1;const i=o.parentOffset===o.parent.nodeSize-2,a=o.parent.textContent.endsWith(`
|
|
120
120
|
|
|
121
|
-
`);return!i||!a?!1:r.chain().command(({tr:l})=>(l.delete(o.pos-2,o.pos),!0)).exitCode().run()},ArrowDown:({editor:r})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=r,{selection:t,doc:o}=e,{$from:n,empty:i}=t;if(!i||n.parent.type!==this.type||!(n.parentOffset===n.parent.nodeSize-2))return!1;const l=n.after();return l===void 0?!1:o.nodeAt(l)?r.commands.command(({tr:
|
|
122
|
-
`));return a.replaceSelectionWith(this.type.create({language:i},
|
|
123
|
-
`},addCommands(){return{setHardBreak:()=>({commands:r,chain:e,state:t,editor:o})=>r.first([()=>r.exitCode(),()=>r.command(()=>{const{selection:n,storedMarks:i}=t;if(n.$from.parent.type.spec.isolating)return!1;const{keepMarks:a}=this.options,{splittableMarks:l}=o.extensionManager,d=i||n.$to.parentOffset&&n.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:p})=>{if(p&&d&&a){const u=d.filter(m=>l.includes(m.type.name));c.ensureMarks(u)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),tx=lt.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(r=>({tag:`h${r}`,attrs:{level:r}}))},renderHTML({node:r,HTMLAttributes:e}){return[`h${this.options.levels.includes(r.attrs.level)?r.attrs.level:this.options.levels[0]}`,Ne(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:r=>({commands:e})=>this.options.levels.includes(r.level)?e.setNode(this.name,r):!1,toggleHeading:r=>({commands:e})=>this.options.levels.includes(r.level)?e.toggleNode(this.name,"paragraph",r):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((r,e)=>({...r,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})}),{})},addInputRules(){return this.options.levels.map(r=>Ls({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${r}})\\s$`),type:this.type,getAttributes:{level:r}}))}});var yi=200,xe=function(){};xe.prototype.append=function(e){return e.length?(e=xe.from(e),!this.length&&e||e.length<yi&&this.leafAppend(e)||this.length<yi&&e.leafPrepend(this)||this.appendInner(e)):this},xe.prototype.prepend=function(e){return e.length?xe.from(e).append(this):this},xe.prototype.appendInner=function(e){return new rx(this,e)},xe.prototype.slice=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.length),e>=t?xe.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},xe.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},xe.prototype.forEach=function(e,t,o){t===void 0&&(t=0),o===void 0&&(o=this.length),t<=o?this.forEachInner(e,t,o,0):this.forEachInvertedInner(e,t,o,0)},xe.prototype.map=function(e,t,o){t===void 0&&(t=0),o===void 0&&(o=this.length);var n=[];return this.forEach(function(i,a){return n.push(e(i,a))},t,o),n},xe.from=function(e){return e instanceof xe?e:e&&e.length?new qu(e):xe.empty};var qu=function(r){function e(o){r.call(this),this.values=o}r&&(e.__proto__=r),e.prototype=Object.create(r&&r.prototype),e.prototype.constructor=e;var t={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(n,i){return n==0&&i==this.length?this:new e(this.values.slice(n,i))},e.prototype.getInner=function(n){return this.values[n]},e.prototype.forEachInner=function(n,i,a,l){for(var d=i;d<a;d++)if(n(this.values[d],l+d)===!1)return!1},e.prototype.forEachInvertedInner=function(n,i,a,l){for(var d=i-1;d>=a;d--)if(n(this.values[d],l+d)===!1)return!1},e.prototype.leafAppend=function(n){if(this.length+n.length<=yi)return new e(this.values.concat(n.flatten()))},e.prototype.leafPrepend=function(n){if(this.length+n.length<=yi)return new e(n.flatten().concat(this.values))},t.length.get=function(){return this.values.length},t.depth.get=function(){return 0},Object.defineProperties(e.prototype,t),e}(xe);xe.empty=new qu([]);var rx=function(r){function e(t,o){r.call(this),this.left=t,this.right=o,this.length=t.length+o.length,this.depth=Math.max(t.depth,o.depth)+1}return r&&(e.__proto__=r),e.prototype=Object.create(r&&r.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(o){return o<this.left.length?this.left.get(o):this.right.get(o-this.left.length)},e.prototype.forEachInner=function(o,n,i,a){var l=this.left.length;if(n<l&&this.left.forEachInner(o,n,Math.min(i,l),a)===!1||i>l&&this.right.forEachInner(o,Math.max(n-l,0),Math.min(this.length,i)-l,a+l)===!1)return!1},e.prototype.forEachInvertedInner=function(o,n,i,a){var l=this.left.length;if(n>l&&this.right.forEachInvertedInner(o,n-l,Math.max(i,l)-l,a+l)===!1||i<l&&this.left.forEachInvertedInner(o,Math.min(n,l),i,a)===!1)return!1},e.prototype.sliceInner=function(o,n){if(o==0&&n==this.length)return this;var i=this.left.length;return n<=i?this.left.slice(o,n):o>=i?this.right.slice(o-i,n-i):this.left.slice(o,i).append(this.right.slice(0,n-i))},e.prototype.leafAppend=function(o){var n=this.right.leafAppend(o);if(n)return new e(this.left,n)},e.prototype.leafPrepend=function(o){var n=this.left.leafPrepend(o);if(n)return new e(n,this.right)},e.prototype.appendInner=function(o){return this.left.depth>=Math.max(this.right.depth,o.depth)+1?new e(this.left,new e(this.right,o)):new e(this,o)},e}(xe);const ox=500;class dt{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){if(this.eventCount==0)return null;let o=this.items.length;for(;;o--)if(this.items.get(o-1).selection){--o;break}let n,i;t&&(n=this.remapping(o,this.items.length),i=n.maps.length);let a=e.tr,l,d,c=[],p=[];return this.items.forEach((u,m)=>{if(!u.step){n||(n=this.remapping(o,m+1),i=n.maps.length),i--,p.push(u);return}if(n){p.push(new xt(u.map));let h=u.step.map(n.slice(i)),g;h&&a.maybeStep(h).doc&&(g=a.mapping.maps[a.mapping.maps.length-1],c.push(new xt(g,void 0,void 0,c.length+p.length))),i--,g&&n.appendMap(g,i)}else a.maybeStep(u.step);if(u.selection)return l=n?u.selection.map(n.slice(i)):u.selection,d=new dt(this.items.slice(0,o).append(p.reverse().concat(c)),this.eventCount-1),!1},this.items.length,0),{remaining:d,transform:a,selection:l}}addTransform(e,t,o,n){let i=[],a=this.eventCount,l=this.items,d=!n&&l.length?l.get(l.length-1):null;for(let p=0;p<e.steps.length;p++){let u=e.steps[p].invert(e.docs[p]),m=new xt(e.mapping.maps[p],u,t),h;(h=d&&d.merge(m))&&(m=h,p?i.pop():l=l.slice(0,l.length-1)),i.push(m),t&&(a++,t=void 0),n||(d=m)}let c=a-o.depth;return c>ix&&(l=nx(l,c),a-=c),new dt(l.append(i),a)}remapping(e,t){let o=new Co;return this.items.forEach((n,i)=>{let a=n.mirrorOffset!=null&&i-n.mirrorOffset>=e?o.maps.length-n.mirrorOffset:void 0;o.appendMap(n.map,a)},e,t),o}addMaps(e){return this.eventCount==0?this:new dt(this.items.append(e.map(t=>new xt(t))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let o=[],n=Math.max(0,this.items.length-t),i=e.mapping,a=e.steps.length,l=this.eventCount;this.items.forEach(m=>{m.selection&&l--},n);let d=t;this.items.forEach(m=>{let h=i.getMirror(--d);if(h==null)return;a=Math.min(a,h);let g=i.maps[h];if(m.step){let f=e.steps[h].invert(e.docs[h]),b=m.selection&&m.selection.map(i.slice(d+1,h));b&&l++,o.push(new xt(g,f,b))}else o.push(new xt(g))},n);let c=[];for(let m=t;m<a;m++)c.push(new xt(i.maps[m]));let p=this.items.slice(0,n).append(c).append(o),u=new dt(p,l);return u.emptyItemCount()>ox&&(u=u.compress(this.items.length-o.length)),u}emptyItemCount(){let e=0;return this.items.forEach(t=>{t.step||e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),o=t.maps.length,n=[],i=0;return this.items.forEach((a,l)=>{if(l>=e)n.push(a),a.selection&&i++;else if(a.step){let d=a.step.map(t.slice(o)),c=d&&d.getMap();if(o--,c&&t.appendMap(c,o),d){let p=a.selection&&a.selection.map(t.slice(o));p&&i++;let u=new xt(c.invert(),d,p),m,h=n.length-1;(m=n.length&&n[h].merge(u))?n[h]=m:n.push(u)}}else a.map&&o--},this.items.length,0),new dt(xe.from(n.reverse()),i)}}dt.empty=new dt(xe.empty,0);function nx(r,e){let t;return r.forEach((o,n)=>{if(o.selection&&e--==0)return t=n,!1}),r.slice(t)}class xt{constructor(e,t,o,n){this.map=e,this.step=t,this.selection=o,this.mirrorOffset=n}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new xt(t.getMap().invert(),t,this.selection)}}}class or{constructor(e,t,o,n,i){this.done=e,this.undone=t,this.prevRanges=o,this.prevTime=n,this.prevComposition=i}}const ix=20;function ax(r,e,t,o){let n=t.getMeta(Mr),i;if(n)return n.historyState;t.getMeta(dx)&&(r=new or(r.done,r.undone,null,0,-1));let a=t.getMeta("appendedTransaction");if(t.steps.length==0)return r;if(a&&a.getMeta(Mr))return a.getMeta(Mr).redo?new or(r.done.addTransform(t,void 0,o,xi(e)),r.undone,Uu(t.mapping.maps),r.prevTime,r.prevComposition):new or(r.done,r.undone.addTransform(t,void 0,o,xi(e)),null,r.prevTime,r.prevComposition);if(t.getMeta("addToHistory")!==!1&&!(a&&a.getMeta("addToHistory")===!1)){let l=t.getMeta("composition"),d=r.prevTime==0||!a&&r.prevComposition!=l&&(r.prevTime<(t.time||0)-o.newGroupDelay||!sx(t,r.prevRanges)),c=a?tl(r.prevRanges,t.mapping):Uu(t.mapping.maps);return new or(r.done.addTransform(t,d?e.selection.getBookmark():void 0,o,xi(e)),dt.empty,c,t.time,l??r.prevComposition)}else return(i=t.getMeta("rebased"))?new or(r.done.rebased(t,i),r.undone.rebased(t,i),tl(r.prevRanges,t.mapping),r.prevTime,r.prevComposition):new or(r.done.addMaps(t.mapping.maps),r.undone.addMaps(t.mapping.maps),tl(r.prevRanges,t.mapping),r.prevTime,r.prevComposition)}function sx(r,e){if(!e)return!1;if(!r.docChanged)return!0;let t=!1;return r.mapping.maps[0].forEach((o,n)=>{for(let i=0;i<e.length;i+=2)o<=e[i+1]&&n>=e[i]&&(t=!0)}),t}function Uu(r){let e=[];for(let t=r.length-1;t>=0&&e.length==0;t--)r[t].forEach((o,n,i,a)=>e.push(i,a));return e}function tl(r,e){if(!r)return null;let t=[];for(let o=0;o<r.length;o+=2){let n=e.map(r[o],1),i=e.map(r[o+1],-1);n<=i&&t.push(n,i)}return t}function lx(r,e,t){let o=xi(e),n=Mr.get(e).spec.config,i=(t?r.undone:r.done).popEvent(e,o);if(!i)return null;let a=i.selection.resolve(i.transform.doc),l=(t?r.done:r.undone).addTransform(i.transform,e.selection.getBookmark(),n,o),d=new or(t?l:i.remaining,t?i.remaining:l,null,0,-1);return i.transform.setSelection(a).setMeta(Mr,{redo:t,historyState:d})}let rl=!1,Ku=null;function xi(r){let e=r.plugins;if(Ku!=e){rl=!1,Ku=e;for(let t=0;t<e.length;t++)if(e[t].spec.historyPreserveItems){rl=!0;break}}return rl}const Mr=new Ae("history"),dx=new Ae("closeHistory");function cx(r={}){return r={depth:r.depth||100,newGroupDelay:r.newGroupDelay||500},new he({key:Mr,state:{init(){return new or(dt.empty,dt.empty,null,0,-1)},apply(e,t,o){return ax(t,o,e,r)}},config:r,props:{handleDOMEvents:{beforeinput(e,t){let o=t.inputType,n=o=="historyUndo"?Gu:o=="historyRedo"?Yu:null;return n?(t.preventDefault(),n(e.state,e.dispatch)):!1}}}})}function Ju(r,e){return(t,o)=>{let n=Mr.getState(t);if(!n||(r?n.undone:n.done).eventCount==0)return!1;if(o){let i=lx(n,t,r);i&&o(e?i.scrollIntoView():i)}return!0}}const Gu=Ju(!1,!0),Yu=Ju(!0,!0),px=Be.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:r,dispatch:e})=>Gu(r,e),redo:()=>({state:r,dispatch:e})=>Yu(r,e)}},addProseMirrorPlugins(){return[cx(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),ux=lt.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:r}){return["hr",Ne(this.options.HTMLAttributes,r)]},addCommands(){return{setHorizontalRule:()=>({chain:r,state:e})=>{const{selection:t}=e,{$from:o,$to:n}=t,i=r();return o.parentOffset===0?i.insertContentAt({from:Math.max(o.pos-1,0),to:n.pos},{type:this.name}):Xp(t)?i.insertContentAt(n.pos,{type:this.name}):i.insertContent({type:this.name}),i.command(({tr:a,dispatch:l})=>{var d;if(l){const{$to:c}=a.selection,p=c.end();if(c.nodeAfter)c.nodeAfter.isTextblock?a.setSelection(j.create(a.doc,c.pos+1)):c.nodeAfter.isBlock?a.setSelection(R.create(a.doc,c.pos)):a.setSelection(j.create(a.doc,c.pos));else{const u=(d=c.parent.type.contentMatch.defaultType)===null||d===void 0?void 0:d.create();u&&(a.insert(p,u),a.setSelection(j.create(a.doc,p+1)))}a.scrollIntoView()}return!0}).run()}}},addInputRules(){return[Hw({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),mx=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,hx=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,gx=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,fx=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,bx=Ot.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:r=>r.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:r=>r.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:r}){return["em",Ne(this.options.HTMLAttributes,r),0]},addCommands(){return{setItalic:()=>({commands:r})=>r.setMark(this.name),toggleItalic:()=>({commands:r})=>r.toggleMark(this.name),unsetItalic:()=>({commands:r})=>r.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[Zr({find:mx,type:this.type}),Zr({find:gx,type:this.type})]},addPasteRules(){return[Sr({find:hx,type:this.type}),Sr({find:fx,type:this.type})]}}),wx=lt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:r}){return["li",Ne(this.options.HTMLAttributes,r),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),yx="listItem",Xu="textStyle",Qu=/^(\d+)\.\s$/,xx=lt.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:r=>r.hasAttribute("start")?parseInt(r.getAttribute("start")||"",10):1},type:{default:null,parseHTML:r=>r.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:r}){const{start:e,...t}=r;return e===1?["ol",Ne(this.options.HTMLAttributes,t),0]:["ol",Ne(this.options.HTMLAttributes,r),0]},addCommands(){return{toggleOrderedList:()=>({commands:r,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(yx,this.editor.getAttributes(Xu)).run():r.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let r=jo({find:Qu,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(r=jo({find:Qu,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(Xu)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[r]}}),vx=lt.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:r}){return["p",Ne(this.options.HTMLAttributes,r),0]},addCommands(){return{setParagraph:()=>({commands:r})=>r.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),kx=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,Ex=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,Sx=Ot.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:r=>r.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:r}){return["s",Ne(this.options.HTMLAttributes,r),0]},addCommands(){return{setStrike:()=>({commands:r})=>r.setMark(this.name),toggleStrike:()=>({commands:r})=>r.toggleMark(this.name),unsetStrike:()=>({commands:r})=>r.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[Zr({find:kx,type:this.type})]},addPasteRules(){return[Sr({find:Ex,type:this.type})]}}),Cx=lt.create({name:"text",group:"inline"}),Nx=Be.create({name:"starterKit",addExtensions(){const r=[];return this.options.bold!==!1&&r.push(A1.configure(this.options.bold)),this.options.blockquote!==!1&&r.push(M1.configure(this.options.blockquote)),this.options.bulletList!==!1&&r.push(I1.configure(this.options.bulletList)),this.options.code!==!1&&r.push(z1.configure(this.options.code)),this.options.codeBlock!==!1&&r.push(j1.configure(this.options.codeBlock)),this.options.document!==!1&&r.push(H1.configure(this.options.document)),this.options.dropcursor!==!1&&r.push(U1.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&r.push($1.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&r.push(ex.configure(this.options.hardBreak)),this.options.heading!==!1&&r.push(tx.configure(this.options.heading)),this.options.history!==!1&&r.push(px.configure(this.options.history)),this.options.horizontalRule!==!1&&r.push(ux.configure(this.options.horizontalRule)),this.options.italic!==!1&&r.push(bx.configure(this.options.italic)),this.options.listItem!==!1&&r.push(wx.configure(this.options.listItem)),this.options.orderedList!==!1&&r.push(xx.configure(this.options.orderedList)),this.options.paragraph!==!1&&r.push(vx.configure(this.options.paragraph)),this.options.strike!==!1&&r.push(Sx.configure(this.options.strike)),this.options.text!==!1&&r.push(Cx.configure(this.options.text)),r}}),Bx="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",Mx="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",ao=(r,e)=>{for(const t in e)r[t]=e[t];return r},ol="numeric",nl="ascii",il="alpha",Zo="asciinumeric",$o="alphanumeric",al="domain",Zu="emoji",Tx="scheme",Ox="slashscheme",sl="whitespace";function Vx(r,e){return r in e||(e[r]=[]),e[r]}function Tr(r,e,t){e[ol]&&(e[Zo]=!0,e[$o]=!0),e[nl]&&(e[Zo]=!0,e[il]=!0),e[Zo]&&(e[$o]=!0),e[il]&&(e[$o]=!0),e[$o]&&(e[al]=!0),e[Zu]&&(e[al]=!0);for(const o in e){const n=Vx(o,t);n.indexOf(r)<0&&n.push(r)}}function Px(r,e){const t={};for(const o in e)e[o].indexOf(r)>=0&&(t[o]=!0);return t}function He(r=null){this.j={},this.jr=[],this.jd=null,this.t=r}He.groups={},He.prototype={accepts(){return!!this.t},go(r){const e=this,t=e.j[r];if(t)return t;for(let o=0;o<e.jr.length;o++){const n=e.jr[o][0],i=e.jr[o][1];if(i&&n.test(r))return i}return e.jd},has(r,e=!1){return e?r in this.j:!!this.go(r)},ta(r,e,t,o){for(let n=0;n<r.length;n++)this.tt(r[n],e,t,o)},tr(r,e,t,o){o=o||He.groups;let n;return e&&e.j?n=e:(n=new He(e),t&&o&&Tr(e,t,o)),this.jr.push([r,n]),n},ts(r,e,t,o){let n=this;const i=r.length;if(!i)return n;for(let a=0;a<i-1;a++)n=n.tt(r[a]);return n.tt(r[i-1],e,t,o)},tt(r,e,t,o){o=o||He.groups;const n=this;if(e&&e.j)return n.j[r]=e,e;const i=e;let a,l=n.go(r);if(l?(a=new He,ao(a.j,l.j),a.jr.push.apply(a.jr,l.jr),a.jd=l.jd,a.t=l.t):a=new He,i){if(o)if(a.t&&typeof a.t=="string"){const d=ao(Px(a.t,o),t);Tr(i,d,o)}else t&&Tr(i,t,o);a.t=i}return n.j[r]=a,a}};const q=(r,e,t,o,n)=>r.ta(e,t,o,n),de=(r,e,t,o,n)=>r.tr(e,t,o,n),$u=(r,e,t,o,n)=>r.ts(e,t,o,n),T=(r,e,t,o,n)=>r.tt(e,t,o,n),Dt="WORD",ll="UWORD",em="ASCIINUMERICAL",tm="ALPHANUMERICAL",en="LOCALHOST",dl="TLD",cl="UTLD",vi="SCHEME",so="SLASH_SCHEME",pl="NUM",ul="WS",ml="NL",tn="OPENBRACE",rn="CLOSEBRACE",ki="OPENBRACKET",Ei="CLOSEBRACKET",Si="OPENPAREN",Ci="CLOSEPAREN",Ni="OPENANGLEBRACKET",Bi="CLOSEANGLEBRACKET",Mi="FULLWIDTHLEFTPAREN",Ti="FULLWIDTHRIGHTPAREN",Oi="LEFTCORNERBRACKET",Vi="RIGHTCORNERBRACKET",Pi="LEFTWHITECORNERBRACKET",Ai="RIGHTWHITECORNERBRACKET",Di="FULLWIDTHLESSTHAN",Ii="FULLWIDTHGREATERTHAN",Li="AMPERSAND",Ri="APOSTROPHE",zi="ASTERISK",nr="AT",_i="BACKSLASH",Fi="BACKTICK",ji="CARET",ir="COLON",hl="COMMA",Hi="DOLLAR",vt="DOT",Wi="EQUALS",gl="EXCLAMATION",rt="HYPHEN",on="PERCENT",qi="PIPE",Ui="PLUS",Ki="POUND",nn="QUERY",fl="QUOTE",rm="FULLWIDTHMIDDLEDOT",bl="SEMI",kt="SLASH",an="TILDE",Ji="UNDERSCORE",om="EMOJI",Gi="SYM";var nm=Object.freeze({__proto__:null,ALPHANUMERICAL:tm,AMPERSAND:Li,APOSTROPHE:Ri,ASCIINUMERICAL:em,ASTERISK:zi,AT:nr,BACKSLASH:_i,BACKTICK:Fi,CARET:ji,CLOSEANGLEBRACKET:Bi,CLOSEBRACE:rn,CLOSEBRACKET:Ei,CLOSEPAREN:Ci,COLON:ir,COMMA:hl,DOLLAR:Hi,DOT:vt,EMOJI:om,EQUALS:Wi,EXCLAMATION:gl,FULLWIDTHGREATERTHAN:Ii,FULLWIDTHLEFTPAREN:Mi,FULLWIDTHLESSTHAN:Di,FULLWIDTHMIDDLEDOT:rm,FULLWIDTHRIGHTPAREN:Ti,HYPHEN:rt,LEFTCORNERBRACKET:Oi,LEFTWHITECORNERBRACKET:Pi,LOCALHOST:en,NL:ml,NUM:pl,OPENANGLEBRACKET:Ni,OPENBRACE:tn,OPENBRACKET:ki,OPENPAREN:Si,PERCENT:on,PIPE:qi,PLUS:Ui,POUND:Ki,QUERY:nn,QUOTE:fl,RIGHTCORNERBRACKET:Vi,RIGHTWHITECORNERBRACKET:Ai,SCHEME:vi,SEMI:bl,SLASH:kt,SLASH_SCHEME:so,SYM:Gi,TILDE:an,TLD:dl,UNDERSCORE:Ji,UTLD:cl,UWORD:ll,WORD:Dt,WS:ul});const It=/[a-z]/,sn=new RegExp("\\p{L}","u"),wl=new RegExp("\\p{Emoji}","u"),Lt=/\d/,yl=/\s/,im="\r",xl=`
|
|
124
|
-
`,
|
|
121
|
+
`);return!i||!a?!1:r.chain().command(({tr:l})=>(l.delete(o.pos-2,o.pos),!0)).exitCode().run()},ArrowDown:({editor:r})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=r,{selection:t,doc:o}=e,{$from:n,empty:i}=t;if(!i||n.parent.type!==this.type||!(n.parentOffset===n.parent.nodeSize-2))return!1;const l=n.after();return l===void 0?!1:o.nodeAt(l)?r.commands.command(({tr:d})=>(d.setSelection(W.near(o.resolve(l))),!0)):r.commands.exitCode()}}},addInputRules(){return[Ls({find:_1,type:this.type,getAttributes:r=>({language:r[1]})}),Ls({find:F1,type:this.type,getAttributes:r=>({language:r[1]})})]},addProseMirrorPlugins(){return[new he({key:new Ae("codeBlockVSCodeHandler"),props:{handlePaste:(r,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;const t=e.clipboardData.getData("text/plain"),o=e.clipboardData.getData("vscode-editor-data"),n=o?JSON.parse(o):void 0,i=n==null?void 0:n.mode;if(!t||!i)return!1;const{tr:a,schema:l}=r.state,c=l.text(t.replace(/\r\n?/g,`
|
|
122
|
+
`));return a.replaceSelectionWith(this.type.create({language:i},c)),a.selection.$from.parent.type!==this.type&&a.setSelection(j.near(a.doc.resolve(Math.max(0,a.selection.from-2)))),a.setMeta("paste",!0),r.dispatch(a),!0}}})]}}),H1=lt.create({name:"doc",topNode:!0,content:"block+"});function W1(r={}){return new he({view(e){return new q1(e,r)}})}class q1{constructor(e,t){var o;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(o=t.width)!==null&&o!==void 0?o:1,this.color=t.color===!1?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(n=>{let i=a=>{this[n](a)};return e.dom.addEventListener(n,i),{name:n,handler:i}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){this.cursorPos!=null&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),t=!e.parent.inlineContent,o,n=this.editorView.dom,i=n.getBoundingClientRect(),a=i.width/n.offsetWidth,l=i.height/n.offsetHeight;if(t){let p=e.nodeBefore,m=e.nodeAfter;if(p||m){let h=this.editorView.nodeDOM(this.cursorPos-(p?p.nodeSize:0));if(h){let f=h.getBoundingClientRect(),g=p?f.bottom:f.top;p&&m&&(g=(g+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let b=this.width/2*l;o={left:f.left,right:f.right,top:g-b,bottom:g+b}}}}if(!o){let p=this.editorView.coordsAtPos(this.cursorPos),m=this.width/2*a;o={left:p.left-m,right:p.left+m,top:p.top,bottom:p.bottom}}let c=this.editorView.dom.offsetParent;this.element||(this.element=c.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",t),this.element.classList.toggle("prosemirror-dropcursor-inline",!t);let d,u;if(!c||c==document.body&&getComputedStyle(c).position=="static")d=-pageXOffset,u=-pageYOffset;else{let p=c.getBoundingClientRect(),m=p.width/c.offsetWidth,h=p.height/c.offsetHeight;d=p.left-c.scrollLeft*m,u=p.top-c.scrollTop*h}this.element.style.left=(o.left-d)/a+"px",this.element.style.top=(o.top-u)/l+"px",this.element.style.width=(o.right-o.left)/a+"px",this.element.style.height=(o.bottom-o.top)/l+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),o=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),n=o&&o.type.spec.disableDropCursor,i=typeof n=="function"?n(this.editorView,t,e):n;if(t&&!i){let a=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let l=Jc(this.editorView.state.doc,a,this.editorView.dragging.slice);l!=null&&(a=l)}this.setCursor(a),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}const U1=Be.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[W1(this.options)]}});class le extends W{constructor(e){super(e,e)}map(e,t){let o=e.resolve(t.map(this.head));return le.valid(o)?new le(o):W.near(o)}content(){return A.empty}eq(e){return e instanceof le&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new le(e.resolve(t.pos))}getBookmark(){return new el(this.anchor)}static valid(e){let t=e.parent;if(t.isTextblock||!K1(e)||!J1(e))return!1;let o=t.type.spec.allowGapCursor;if(o!=null)return o;let n=t.contentMatchAt(e.index()).defaultType;return n&&n.isTextblock}static findGapCursorFrom(e,t,o=!1){e:for(;;){if(!o&&le.valid(e))return e;let n=e.pos,i=null;for(let a=e.depth;;a--){let l=e.node(a);if(t>0?e.indexAfter(a)<l.childCount:e.index(a)>0){i=l.child(t>0?e.indexAfter(a):e.index(a)-1);break}else if(a==0)return null;n+=t;let c=e.doc.resolve(n);if(le.valid(c))return c}for(;;){let a=t>0?i.firstChild:i.lastChild;if(!a){if(i.isAtom&&!i.isText&&!R.isSelectable(i)){e=e.doc.resolve(n+i.nodeSize*t),o=!1;continue e}break}i=a,n+=t;let l=e.doc.resolve(n);if(le.valid(l))return l}return null}}}le.prototype.visible=!1,le.findFrom=le.findGapCursorFrom,W.jsonID("gapcursor",le);class el{constructor(e){this.pos=e}map(e){return new el(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return le.valid(t)?new le(t):W.near(t)}}function K1(r){for(let e=r.depth;e>=0;e--){let t=r.index(e),o=r.node(e);if(t==0){if(o.type.spec.isolating)return!0;continue}for(let n=o.child(t-1);;n=n.lastChild){if(n.childCount==0&&!n.inlineContent||n.isAtom||n.type.spec.isolating)return!0;if(n.inlineContent)return!1}}return!0}function J1(r){for(let e=r.depth;e>=0;e--){let t=r.indexAfter(e),o=r.node(e);if(t==o.childCount){if(o.type.spec.isolating)return!0;continue}for(let n=o.child(t);;n=n.firstChild){if(n.childCount==0&&!n.inlineContent||n.isAtom||n.type.spec.isolating)return!0;if(n.inlineContent)return!1}}return!0}function G1(){return new he({props:{decorations:Z1,createSelectionBetween(r,e,t){return e.pos==t.pos&&le.valid(t)?new le(t):null},handleClick:X1,handleKeyDown:Y1,handleDOMEvents:{beforeinput:Q1}}})}const Y1=vu({ArrowLeft:wi("horiz",-1),ArrowRight:wi("horiz",1),ArrowUp:wi("vert",-1),ArrowDown:wi("vert",1)});function wi(r,e){const t=r=="vert"?e>0?"down":"up":e>0?"right":"left";return function(o,n,i){let a=o.selection,l=e>0?a.$to:a.$from,c=a.empty;if(a instanceof j){if(!i.endOfTextblock(t)||l.depth==0)return!1;c=!1,l=o.doc.resolve(e>0?l.after():l.before())}let d=le.findGapCursorFrom(l,e,c);return d?(n&&n(o.tr.setSelection(new le(d))),!0):!1}}function X1(r,e,t){if(!r||!r.editable)return!1;let o=r.state.doc.resolve(e);if(!le.valid(o))return!1;let n=r.posAtCoords({left:t.clientX,top:t.clientY});return n&&n.inside>-1&&R.isSelectable(r.state.doc.nodeAt(n.inside))?!1:(r.dispatch(r.state.tr.setSelection(new le(o))),!0)}function Q1(r,e){if(e.inputType!="insertCompositionText"||!(r.state.selection instanceof le))return!1;let{$from:t}=r.state.selection,o=t.parent.contentMatchAt(t.index()).findWrapping(r.state.schema.nodes.text);if(!o)return!1;let n=M.empty;for(let a=o.length-1;a>=0;a--)n=M.from(o[a].createAndFill(null,n));let i=r.state.tr.replace(t.pos,t.pos,new A(n,0,0));return i.setSelection(j.near(i.doc.resolve(t.pos+1))),r.dispatch(i),!1}function Z1(r){if(!(r.selection instanceof le))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",fe.create(r.doc,[Ze.widget(r.selection.head,e,{key:"gapcursor"})])}const $1=Be.create({name:"gapCursor",addProseMirrorPlugins(){return[G1()]},extendNodeSchema(r){var e;const t={name:r.name,options:r.options,storage:r.storage};return{allowGapCursor:(e=U(I(r,"allowGapCursor",t)))!==null&&e!==void 0?e:null}}}),ev=lt.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:r}){return["br",Ne(this.options.HTMLAttributes,r)]},renderText(){return`
|
|
123
|
+
`},addCommands(){return{setHardBreak:()=>({commands:r,chain:e,state:t,editor:o})=>r.first([()=>r.exitCode(),()=>r.command(()=>{const{selection:n,storedMarks:i}=t;if(n.$from.parent.type.spec.isolating)return!1;const{keepMarks:a}=this.options,{splittableMarks:l}=o.extensionManager,c=i||n.$to.parentOffset&&n.$from.marks();return e().insertContent({type:this.name}).command(({tr:d,dispatch:u})=>{if(u&&c&&a){const p=c.filter(m=>l.includes(m.type.name));d.ensureMarks(p)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),tv=lt.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(r=>({tag:`h${r}`,attrs:{level:r}}))},renderHTML({node:r,HTMLAttributes:e}){return[`h${this.options.levels.includes(r.attrs.level)?r.attrs.level:this.options.levels[0]}`,Ne(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:r=>({commands:e})=>this.options.levels.includes(r.level)?e.setNode(this.name,r):!1,toggleHeading:r=>({commands:e})=>this.options.levels.includes(r.level)?e.toggleNode(this.name,"paragraph",r):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((r,e)=>({...r,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})}),{})},addInputRules(){return this.options.levels.map(r=>Ls({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${r}})\\s$`),type:this.type,getAttributes:{level:r}}))}});var yi=200,ve=function(){};ve.prototype.append=function(e){return e.length?(e=ve.from(e),!this.length&&e||e.length<yi&&this.leafAppend(e)||this.length<yi&&e.leafPrepend(this)||this.appendInner(e)):this},ve.prototype.prepend=function(e){return e.length?ve.from(e).append(this):this},ve.prototype.appendInner=function(e){return new rv(this,e)},ve.prototype.slice=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.length),e>=t?ve.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},ve.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},ve.prototype.forEach=function(e,t,o){t===void 0&&(t=0),o===void 0&&(o=this.length),t<=o?this.forEachInner(e,t,o,0):this.forEachInvertedInner(e,t,o,0)},ve.prototype.map=function(e,t,o){t===void 0&&(t=0),o===void 0&&(o=this.length);var n=[];return this.forEach(function(i,a){return n.push(e(i,a))},t,o),n},ve.from=function(e){return e instanceof ve?e:e&&e.length?new qp(e):ve.empty};var qp=function(r){function e(o){r.call(this),this.values=o}r&&(e.__proto__=r),e.prototype=Object.create(r&&r.prototype),e.prototype.constructor=e;var t={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(n,i){return n==0&&i==this.length?this:new e(this.values.slice(n,i))},e.prototype.getInner=function(n){return this.values[n]},e.prototype.forEachInner=function(n,i,a,l){for(var c=i;c<a;c++)if(n(this.values[c],l+c)===!1)return!1},e.prototype.forEachInvertedInner=function(n,i,a,l){for(var c=i-1;c>=a;c--)if(n(this.values[c],l+c)===!1)return!1},e.prototype.leafAppend=function(n){if(this.length+n.length<=yi)return new e(this.values.concat(n.flatten()))},e.prototype.leafPrepend=function(n){if(this.length+n.length<=yi)return new e(n.flatten().concat(this.values))},t.length.get=function(){return this.values.length},t.depth.get=function(){return 0},Object.defineProperties(e.prototype,t),e}(ve);ve.empty=new qp([]);var rv=function(r){function e(t,o){r.call(this),this.left=t,this.right=o,this.length=t.length+o.length,this.depth=Math.max(t.depth,o.depth)+1}return r&&(e.__proto__=r),e.prototype=Object.create(r&&r.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(o){return o<this.left.length?this.left.get(o):this.right.get(o-this.left.length)},e.prototype.forEachInner=function(o,n,i,a){var l=this.left.length;if(n<l&&this.left.forEachInner(o,n,Math.min(i,l),a)===!1||i>l&&this.right.forEachInner(o,Math.max(n-l,0),Math.min(this.length,i)-l,a+l)===!1)return!1},e.prototype.forEachInvertedInner=function(o,n,i,a){var l=this.left.length;if(n>l&&this.right.forEachInvertedInner(o,n-l,Math.max(i,l)-l,a+l)===!1||i<l&&this.left.forEachInvertedInner(o,Math.min(n,l),i,a)===!1)return!1},e.prototype.sliceInner=function(o,n){if(o==0&&n==this.length)return this;var i=this.left.length;return n<=i?this.left.slice(o,n):o>=i?this.right.slice(o-i,n-i):this.left.slice(o,i).append(this.right.slice(0,n-i))},e.prototype.leafAppend=function(o){var n=this.right.leafAppend(o);if(n)return new e(this.left,n)},e.prototype.leafPrepend=function(o){var n=this.left.leafPrepend(o);if(n)return new e(n,this.right)},e.prototype.appendInner=function(o){return this.left.depth>=Math.max(this.right.depth,o.depth)+1?new e(this.left,new e(this.right,o)):new e(this,o)},e}(ve);const ov=500;class ct{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){if(this.eventCount==0)return null;let o=this.items.length;for(;;o--)if(this.items.get(o-1).selection){--o;break}let n,i;t&&(n=this.remapping(o,this.items.length),i=n.maps.length);let a=e.tr,l,c,d=[],u=[];return this.items.forEach((p,m)=>{if(!p.step){n||(n=this.remapping(o,m+1),i=n.maps.length),i--,u.push(p);return}if(n){u.push(new vt(p.map));let h=p.step.map(n.slice(i)),f;h&&a.maybeStep(h).doc&&(f=a.mapping.maps[a.mapping.maps.length-1],d.push(new vt(f,void 0,void 0,d.length+u.length))),i--,f&&n.appendMap(f,i)}else a.maybeStep(p.step);if(p.selection)return l=n?p.selection.map(n.slice(i)):p.selection,c=new ct(this.items.slice(0,o).append(u.reverse().concat(d)),this.eventCount-1),!1},this.items.length,0),{remaining:c,transform:a,selection:l}}addTransform(e,t,o,n){let i=[],a=this.eventCount,l=this.items,c=!n&&l.length?l.get(l.length-1):null;for(let u=0;u<e.steps.length;u++){let p=e.steps[u].invert(e.docs[u]),m=new vt(e.mapping.maps[u],p,t),h;(h=c&&c.merge(m))&&(m=h,u?i.pop():l=l.slice(0,l.length-1)),i.push(m),t&&(a++,t=void 0),n||(c=m)}let d=a-o.depth;return d>iv&&(l=nv(l,d),a-=d),new ct(l.append(i),a)}remapping(e,t){let o=new Co;return this.items.forEach((n,i)=>{let a=n.mirrorOffset!=null&&i-n.mirrorOffset>=e?o.maps.length-n.mirrorOffset:void 0;o.appendMap(n.map,a)},e,t),o}addMaps(e){return this.eventCount==0?this:new ct(this.items.append(e.map(t=>new vt(t))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let o=[],n=Math.max(0,this.items.length-t),i=e.mapping,a=e.steps.length,l=this.eventCount;this.items.forEach(m=>{m.selection&&l--},n);let c=t;this.items.forEach(m=>{let h=i.getMirror(--c);if(h==null)return;a=Math.min(a,h);let f=i.maps[h];if(m.step){let g=e.steps[h].invert(e.docs[h]),b=m.selection&&m.selection.map(i.slice(c+1,h));b&&l++,o.push(new vt(f,g,b))}else o.push(new vt(f))},n);let d=[];for(let m=t;m<a;m++)d.push(new vt(i.maps[m]));let u=this.items.slice(0,n).append(d).append(o),p=new ct(u,l);return p.emptyItemCount()>ov&&(p=p.compress(this.items.length-o.length)),p}emptyItemCount(){let e=0;return this.items.forEach(t=>{t.step||e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),o=t.maps.length,n=[],i=0;return this.items.forEach((a,l)=>{if(l>=e)n.push(a),a.selection&&i++;else if(a.step){let c=a.step.map(t.slice(o)),d=c&&c.getMap();if(o--,d&&t.appendMap(d,o),c){let u=a.selection&&a.selection.map(t.slice(o));u&&i++;let p=new vt(d.invert(),c,u),m,h=n.length-1;(m=n.length&&n[h].merge(p))?n[h]=m:n.push(p)}}else a.map&&o--},this.items.length,0),new ct(ve.from(n.reverse()),i)}}ct.empty=new ct(ve.empty,0);function nv(r,e){let t;return r.forEach((o,n)=>{if(o.selection&&e--==0)return t=n,!1}),r.slice(t)}class vt{constructor(e,t,o,n){this.map=e,this.step=t,this.selection=o,this.mirrorOffset=n}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new vt(t.getMap().invert(),t,this.selection)}}}class or{constructor(e,t,o,n,i){this.done=e,this.undone=t,this.prevRanges=o,this.prevTime=n,this.prevComposition=i}}const iv=20;function av(r,e,t,o){let n=t.getMeta(Mr),i;if(n)return n.historyState;t.getMeta(cv)&&(r=new or(r.done,r.undone,null,0,-1));let a=t.getMeta("appendedTransaction");if(t.steps.length==0)return r;if(a&&a.getMeta(Mr))return a.getMeta(Mr).redo?new or(r.done.addTransform(t,void 0,o,vi(e)),r.undone,Up(t.mapping.maps),r.prevTime,r.prevComposition):new or(r.done,r.undone.addTransform(t,void 0,o,vi(e)),null,r.prevTime,r.prevComposition);if(t.getMeta("addToHistory")!==!1&&!(a&&a.getMeta("addToHistory")===!1)){let l=t.getMeta("composition"),c=r.prevTime==0||!a&&r.prevComposition!=l&&(r.prevTime<(t.time||0)-o.newGroupDelay||!sv(t,r.prevRanges)),d=a?tl(r.prevRanges,t.mapping):Up(t.mapping.maps);return new or(r.done.addTransform(t,c?e.selection.getBookmark():void 0,o,vi(e)),ct.empty,d,t.time,l??r.prevComposition)}else return(i=t.getMeta("rebased"))?new or(r.done.rebased(t,i),r.undone.rebased(t,i),tl(r.prevRanges,t.mapping),r.prevTime,r.prevComposition):new or(r.done.addMaps(t.mapping.maps),r.undone.addMaps(t.mapping.maps),tl(r.prevRanges,t.mapping),r.prevTime,r.prevComposition)}function sv(r,e){if(!e)return!1;if(!r.docChanged)return!0;let t=!1;return r.mapping.maps[0].forEach((o,n)=>{for(let i=0;i<e.length;i+=2)o<=e[i+1]&&n>=e[i]&&(t=!0)}),t}function Up(r){let e=[];for(let t=r.length-1;t>=0&&e.length==0;t--)r[t].forEach((o,n,i,a)=>e.push(i,a));return e}function tl(r,e){if(!r)return null;let t=[];for(let o=0;o<r.length;o+=2){let n=e.map(r[o],1),i=e.map(r[o+1],-1);n<=i&&t.push(n,i)}return t}function lv(r,e,t){let o=vi(e),n=Mr.get(e).spec.config,i=(t?r.undone:r.done).popEvent(e,o);if(!i)return null;let a=i.selection.resolve(i.transform.doc),l=(t?r.done:r.undone).addTransform(i.transform,e.selection.getBookmark(),n,o),c=new or(t?l:i.remaining,t?i.remaining:l,null,0,-1);return i.transform.setSelection(a).setMeta(Mr,{redo:t,historyState:c})}let rl=!1,Kp=null;function vi(r){let e=r.plugins;if(Kp!=e){rl=!1,Kp=e;for(let t=0;t<e.length;t++)if(e[t].spec.historyPreserveItems){rl=!0;break}}return rl}const Mr=new Ae("history"),cv=new Ae("closeHistory");function dv(r={}){return r={depth:r.depth||100,newGroupDelay:r.newGroupDelay||500},new he({key:Mr,state:{init(){return new or(ct.empty,ct.empty,null,0,-1)},apply(e,t,o){return av(t,o,e,r)}},config:r,props:{handleDOMEvents:{beforeinput(e,t){let o=t.inputType,n=o=="historyUndo"?Gp:o=="historyRedo"?Yp:null;return n?(t.preventDefault(),n(e.state,e.dispatch)):!1}}}})}function Jp(r,e){return(t,o)=>{let n=Mr.getState(t);if(!n||(r?n.undone:n.done).eventCount==0)return!1;if(o){let i=lv(n,t,r);i&&o(e?i.scrollIntoView():i)}return!0}}const Gp=Jp(!1,!0),Yp=Jp(!0,!0),uv=Be.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:r,dispatch:e})=>Gp(r,e),redo:()=>({state:r,dispatch:e})=>Yp(r,e)}},addProseMirrorPlugins(){return[dv(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),pv=lt.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:r}){return["hr",Ne(this.options.HTMLAttributes,r)]},addCommands(){return{setHorizontalRule:()=>({chain:r,state:e})=>{const{selection:t}=e,{$from:o,$to:n}=t,i=r();return o.parentOffset===0?i.insertContentAt({from:Math.max(o.pos-1,0),to:n.pos},{type:this.name}):Xu(t)?i.insertContentAt(n.pos,{type:this.name}):i.insertContent({type:this.name}),i.command(({tr:a,dispatch:l})=>{var c;if(l){const{$to:d}=a.selection,u=d.end();if(d.nodeAfter)d.nodeAfter.isTextblock?a.setSelection(j.create(a.doc,d.pos+1)):d.nodeAfter.isBlock?a.setSelection(R.create(a.doc,d.pos)):a.setSelection(j.create(a.doc,d.pos));else{const p=(c=d.parent.type.contentMatch.defaultType)===null||c===void 0?void 0:c.create();p&&(a.insert(u,p),a.setSelection(j.create(a.doc,u+1)))}a.scrollIntoView()}return!0}).run()}}},addInputRules(){return[Hw({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),mv=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,hv=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,fv=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,gv=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,bv=Ot.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:r=>r.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:r=>r.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:r}){return["em",Ne(this.options.HTMLAttributes,r),0]},addCommands(){return{setItalic:()=>({commands:r})=>r.setMark(this.name),toggleItalic:()=>({commands:r})=>r.toggleMark(this.name),unsetItalic:()=>({commands:r})=>r.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[Zr({find:mv,type:this.type}),Zr({find:fv,type:this.type})]},addPasteRules(){return[Sr({find:hv,type:this.type}),Sr({find:gv,type:this.type})]}}),wv=lt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:r}){return["li",Ne(this.options.HTMLAttributes,r),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),yv="listItem",Xp="textStyle",Qp=/^(\d+)\.\s$/,vv=lt.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:r=>r.hasAttribute("start")?parseInt(r.getAttribute("start")||"",10):1},type:{default:null,parseHTML:r=>r.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:r}){const{start:e,...t}=r;return e===1?["ol",Ne(this.options.HTMLAttributes,t),0]:["ol",Ne(this.options.HTMLAttributes,r),0]},addCommands(){return{toggleOrderedList:()=>({commands:r,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(yv,this.editor.getAttributes(Xp)).run():r.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let r=jo({find:Qp,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(r=jo({find:Qp,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(Xp)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[r]}}),xv=lt.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:r}){return["p",Ne(this.options.HTMLAttributes,r),0]},addCommands(){return{setParagraph:()=>({commands:r})=>r.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),kv=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,Ev=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,Sv=Ot.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:r=>r.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:r}){return["s",Ne(this.options.HTMLAttributes,r),0]},addCommands(){return{setStrike:()=>({commands:r})=>r.setMark(this.name),toggleStrike:()=>({commands:r})=>r.toggleMark(this.name),unsetStrike:()=>({commands:r})=>r.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[Zr({find:kv,type:this.type})]},addPasteRules(){return[Sr({find:Ev,type:this.type})]}}),Cv=lt.create({name:"text",group:"inline"}),Nv=Be.create({name:"starterKit",addExtensions(){const r=[];return this.options.bold!==!1&&r.push(A1.configure(this.options.bold)),this.options.blockquote!==!1&&r.push(M1.configure(this.options.blockquote)),this.options.bulletList!==!1&&r.push(I1.configure(this.options.bulletList)),this.options.code!==!1&&r.push(z1.configure(this.options.code)),this.options.codeBlock!==!1&&r.push(j1.configure(this.options.codeBlock)),this.options.document!==!1&&r.push(H1.configure(this.options.document)),this.options.dropcursor!==!1&&r.push(U1.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&r.push($1.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&r.push(ev.configure(this.options.hardBreak)),this.options.heading!==!1&&r.push(tv.configure(this.options.heading)),this.options.history!==!1&&r.push(uv.configure(this.options.history)),this.options.horizontalRule!==!1&&r.push(pv.configure(this.options.horizontalRule)),this.options.italic!==!1&&r.push(bv.configure(this.options.italic)),this.options.listItem!==!1&&r.push(wv.configure(this.options.listItem)),this.options.orderedList!==!1&&r.push(vv.configure(this.options.orderedList)),this.options.paragraph!==!1&&r.push(xv.configure(this.options.paragraph)),this.options.strike!==!1&&r.push(Sv.configure(this.options.strike)),this.options.text!==!1&&r.push(Cv.configure(this.options.text)),r}}),Bv="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",Mv="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",ao=(r,e)=>{for(const t in e)r[t]=e[t];return r},ol="numeric",nl="ascii",il="alpha",Zo="asciinumeric",$o="alphanumeric",al="domain",Zp="emoji",Tv="scheme",Ov="slashscheme",sl="whitespace";function Vv(r,e){return r in e||(e[r]=[]),e[r]}function Tr(r,e,t){e[ol]&&(e[Zo]=!0,e[$o]=!0),e[nl]&&(e[Zo]=!0,e[il]=!0),e[Zo]&&(e[$o]=!0),e[il]&&(e[$o]=!0),e[$o]&&(e[al]=!0),e[Zp]&&(e[al]=!0);for(const o in e){const n=Vv(o,t);n.indexOf(r)<0&&n.push(r)}}function Pv(r,e){const t={};for(const o in e)e[o].indexOf(r)>=0&&(t[o]=!0);return t}function He(r=null){this.j={},this.jr=[],this.jd=null,this.t=r}He.groups={},He.prototype={accepts(){return!!this.t},go(r){const e=this,t=e.j[r];if(t)return t;for(let o=0;o<e.jr.length;o++){const n=e.jr[o][0],i=e.jr[o][1];if(i&&n.test(r))return i}return e.jd},has(r,e=!1){return e?r in this.j:!!this.go(r)},ta(r,e,t,o){for(let n=0;n<r.length;n++)this.tt(r[n],e,t,o)},tr(r,e,t,o){o=o||He.groups;let n;return e&&e.j?n=e:(n=new He(e),t&&o&&Tr(e,t,o)),this.jr.push([r,n]),n},ts(r,e,t,o){let n=this;const i=r.length;if(!i)return n;for(let a=0;a<i-1;a++)n=n.tt(r[a]);return n.tt(r[i-1],e,t,o)},tt(r,e,t,o){o=o||He.groups;const n=this;if(e&&e.j)return n.j[r]=e,e;const i=e;let a,l=n.go(r);if(l?(a=new He,ao(a.j,l.j),a.jr.push.apply(a.jr,l.jr),a.jd=l.jd,a.t=l.t):a=new He,i){if(o)if(a.t&&typeof a.t=="string"){const c=ao(Pv(a.t,o),t);Tr(i,c,o)}else t&&Tr(i,t,o);a.t=i}return n.j[r]=a,a}};const q=(r,e,t,o,n)=>r.ta(e,t,o,n),ce=(r,e,t,o,n)=>r.tr(e,t,o,n),$p=(r,e,t,o,n)=>r.ts(e,t,o,n),T=(r,e,t,o,n)=>r.tt(e,t,o,n),Dt="WORD",ll="UWORD",em="ASCIINUMERICAL",tm="ALPHANUMERICAL",en="LOCALHOST",cl="TLD",dl="UTLD",xi="SCHEME",so="SLASH_SCHEME",ul="NUM",pl="WS",ml="NL",tn="OPENBRACE",rn="CLOSEBRACE",ki="OPENBRACKET",Ei="CLOSEBRACKET",Si="OPENPAREN",Ci="CLOSEPAREN",Ni="OPENANGLEBRACKET",Bi="CLOSEANGLEBRACKET",Mi="FULLWIDTHLEFTPAREN",Ti="FULLWIDTHRIGHTPAREN",Oi="LEFTCORNERBRACKET",Vi="RIGHTCORNERBRACKET",Pi="LEFTWHITECORNERBRACKET",Ai="RIGHTWHITECORNERBRACKET",Di="FULLWIDTHLESSTHAN",Ii="FULLWIDTHGREATERTHAN",Li="AMPERSAND",Ri="APOSTROPHE",zi="ASTERISK",nr="AT",_i="BACKSLASH",Fi="BACKTICK",ji="CARET",ir="COLON",hl="COMMA",Hi="DOLLAR",xt="DOT",Wi="EQUALS",fl="EXCLAMATION",rt="HYPHEN",on="PERCENT",qi="PIPE",Ui="PLUS",Ki="POUND",nn="QUERY",gl="QUOTE",rm="FULLWIDTHMIDDLEDOT",bl="SEMI",kt="SLASH",an="TILDE",Ji="UNDERSCORE",om="EMOJI",Gi="SYM";var nm=Object.freeze({__proto__:null,ALPHANUMERICAL:tm,AMPERSAND:Li,APOSTROPHE:Ri,ASCIINUMERICAL:em,ASTERISK:zi,AT:nr,BACKSLASH:_i,BACKTICK:Fi,CARET:ji,CLOSEANGLEBRACKET:Bi,CLOSEBRACE:rn,CLOSEBRACKET:Ei,CLOSEPAREN:Ci,COLON:ir,COMMA:hl,DOLLAR:Hi,DOT:xt,EMOJI:om,EQUALS:Wi,EXCLAMATION:fl,FULLWIDTHGREATERTHAN:Ii,FULLWIDTHLEFTPAREN:Mi,FULLWIDTHLESSTHAN:Di,FULLWIDTHMIDDLEDOT:rm,FULLWIDTHRIGHTPAREN:Ti,HYPHEN:rt,LEFTCORNERBRACKET:Oi,LEFTWHITECORNERBRACKET:Pi,LOCALHOST:en,NL:ml,NUM:ul,OPENANGLEBRACKET:Ni,OPENBRACE:tn,OPENBRACKET:ki,OPENPAREN:Si,PERCENT:on,PIPE:qi,PLUS:Ui,POUND:Ki,QUERY:nn,QUOTE:gl,RIGHTCORNERBRACKET:Vi,RIGHTWHITECORNERBRACKET:Ai,SCHEME:xi,SEMI:bl,SLASH:kt,SLASH_SCHEME:so,SYM:Gi,TILDE:an,TLD:cl,UNDERSCORE:Ji,UTLD:dl,UWORD:ll,WORD:Dt,WS:pl});const It=/[a-z]/,sn=new RegExp("\\p{L}","u"),wl=new RegExp("\\p{Emoji}","u"),Lt=/\d/,yl=/\s/,im="\r",vl=`
|
|
124
|
+
`,Av="️",Dv="",xl="";let Yi=null,Xi=null;function Iv(r=[]){const e={};He.groups=e;const t=new He;Yi==null&&(Yi=sm(Bv)),Xi==null&&(Xi=sm(Mv)),T(t,"'",Ri),T(t,"{",tn),T(t,"}",rn),T(t,"[",ki),T(t,"]",Ei),T(t,"(",Si),T(t,")",Ci),T(t,"<",Ni),T(t,">",Bi),T(t,"(",Mi),T(t,")",Ti),T(t,"「",Oi),T(t,"」",Vi),T(t,"『",Pi),T(t,"』",Ai),T(t,"<",Di),T(t,">",Ii),T(t,"&",Li),T(t,"*",zi),T(t,"@",nr),T(t,"`",Fi),T(t,"^",ji),T(t,":",ir),T(t,",",hl),T(t,"$",Hi),T(t,".",xt),T(t,"=",Wi),T(t,"!",fl),T(t,"-",rt),T(t,"%",on),T(t,"|",qi),T(t,"+",Ui),T(t,"#",Ki),T(t,"?",nn),T(t,'"',gl),T(t,"/",kt),T(t,";",bl),T(t,"~",an),T(t,"_",Ji),T(t,"\\",_i),T(t,"・",rm);const o=ce(t,Lt,ul,{[ol]:!0});ce(o,Lt,o);const n=ce(o,It,em,{[Zo]:!0}),i=ce(o,sn,tm,{[$o]:!0}),a=ce(t,It,Dt,{[nl]:!0});ce(a,Lt,n),ce(a,It,a),ce(n,Lt,n),ce(n,It,n);const l=ce(t,sn,ll,{[il]:!0});ce(l,It),ce(l,Lt,i),ce(l,sn,l),ce(i,Lt,i),ce(i,It),ce(i,sn,i);const c=T(t,vl,ml,{[sl]:!0}),d=T(t,im,pl,{[sl]:!0}),u=ce(t,yl,pl,{[sl]:!0});T(t,xl,u),T(d,vl,c),T(d,xl,u),ce(d,yl,u),T(u,im),T(u,vl),ce(u,yl,u),T(u,xl,u);const p=ce(t,wl,om,{[Zp]:!0});T(p,"#"),ce(p,wl,p),T(p,Av,p);const m=T(p,Dv);T(m,"#"),ce(m,wl,p);const h=[[It,a],[Lt,n]],f=[[It,null],[sn,l],[Lt,i]];for(let g=0;g<Yi.length;g++)ar(t,Yi[g],cl,Dt,h);for(let g=0;g<Xi.length;g++)ar(t,Xi[g],dl,ll,f);Tr(cl,{tld:!0,ascii:!0},e),Tr(dl,{utld:!0,alpha:!0},e),ar(t,"file",xi,Dt,h),ar(t,"mailto",xi,Dt,h),ar(t,"http",so,Dt,h),ar(t,"https",so,Dt,h),ar(t,"ftp",so,Dt,h),ar(t,"ftps",so,Dt,h),Tr(xi,{scheme:!0,ascii:!0},e),Tr(so,{slashscheme:!0,ascii:!0},e),r=r.sort((g,b)=>g[0]>b[0]?1:-1);for(let g=0;g<r.length;g++){const b=r[g][0],k=r[g][1]?{[Tv]:!0}:{[Ov]:!0};b.indexOf("-")>=0?k[al]=!0:It.test(b)?Lt.test(b)?k[Zo]=!0:k[nl]=!0:k[ol]=!0,$p(t,b,b,k)}return $p(t,"localhost",en,{ascii:!0}),t.jd=new He(Gi),{start:t,tokens:ao({groups:e},nm)}}function am(r,e){const t=Lv(e.replace(/[A-Z]/g,l=>l.toLowerCase())),o=t.length,n=[];let i=0,a=0;for(;a<o;){let l=r,c=null,d=0,u=null,p=-1,m=-1;for(;a<o&&(c=l.go(t[a]));)l=c,l.accepts()?(p=0,m=0,u=l):p>=0&&(p+=t[a].length,m++),d+=t[a].length,i+=t[a].length,a++;i-=p,a-=m,d-=p,n.push({t:u.t,v:e.slice(i-d,i),s:i-d,e:i})}return n}function Lv(r){const e=[],t=r.length;let o=0;for(;o<t;){let n=r.charCodeAt(o),i,a=n<55296||n>56319||o+1===t||(i=r.charCodeAt(o+1))<56320||i>57343?r[o]:r.slice(o,o+2);e.push(a),o+=a.length}return e}function ar(r,e,t,o,n){let i;const a=e.length;for(let l=0;l<a-1;l++){const c=e[l];r.j[c]?i=r.j[c]:(i=new He(o),i.jr=n.slice(),r.j[c]=i),r=i}return i=new He(t),i.jr=n.slice(),r.j[e[a-1]]=i,i}function sm(r){const e=[],t=[];let o=0,n="0123456789";for(;o<r.length;){let i=0;for(;n.indexOf(r[o+i])>=0;)i++;if(i>0){e.push(t.join(""));for(let a=parseInt(r.substring(o,o+i),10);a>0;a--)t.pop();o+=i}else t.push(r[o]),o++}return e}const ln={defaultProtocol:"http",events:null,format:lm,formatHref:lm,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function kl(r,e=null){let t=ao({},ln);r&&(t=ao(t,r instanceof kl?r.o:r));const o=t.ignoreTags,n=[];for(let i=0;i<o.length;i++)n.push(o[i].toUpperCase());this.o=t,e&&(this.defaultRender=e),this.ignoreTags=n}kl.prototype={o:ln,ignoreTags:[],defaultRender(r){return r},check(r){return this.get("validate",r.toString(),r)},get(r,e,t){const o=e!=null;let n=this.o[r];return n&&(typeof n=="object"?(n=t.t in n?n[t.t]:ln[r],typeof n=="function"&&o&&(n=n(e,t))):typeof n=="function"&&o&&(n=n(e,t.t,t)),n)},getObj(r,e,t){let o=this.o[r];return typeof o=="function"&&e!=null&&(o=o(e,t.t,t)),o},render(r){const e=r.render(this);return(this.get("render",null,r)||this.defaultRender)(e,r.t,r)}};function lm(r){return r}function cm(r,e){this.t="token",this.v=r,this.tk=e}cm.prototype={isLink:!1,toString(){return this.v},toHref(r){return this.toString()},toFormattedString(r){const e=this.toString(),t=r.get("truncate",e,this),o=r.get("format",e,this);return t&&o.length>t?o.substring(0,t)+"…":o},toFormattedHref(r){return r.get("formatHref",this.toHref(r.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(r=ln.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(r),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(r){return{type:this.t,value:this.toFormattedString(r),isLink:this.isLink,href:this.toFormattedHref(r),start:this.startIndex(),end:this.endIndex()}},validate(r){return r.get("validate",this.toString(),this)},render(r){const e=this,t=this.toHref(r.get("defaultProtocol")),o=r.get("formatHref",t,this),n=r.get("tagName",t,e),i=this.toFormattedString(r),a={},l=r.get("className",t,e),c=r.get("target",t,e),d=r.get("rel",t,e),u=r.getObj("attributes",t,e),p=r.getObj("events",t,e);return a.href=o,l&&(a.class=l),c&&(a.target=c),d&&(a.rel=d),u&&ao(a,u),{tagName:n,attributes:a,content:i,eventListeners:p}}};function Qi(r,e){class t extends cm{constructor(n,i){super(n,i),this.t=r}}for(const o in e)t.prototype[o]=e[o];return t.t=r,t}const dm=Qi("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),um=Qi("text"),Rv=Qi("nl"),Zi=Qi("url",{isLink:!0,toHref(r=ln.defaultProtocol){return this.hasProtocol()?this.v:`${r}://${this.v}`},hasProtocol(){const r=this.tk;return r.length>=2&&r[0].t!==en&&r[1].t===ir}}),ot=r=>new He(r);function zv({groups:r}){const e=r.domain.concat([Li,zi,nr,_i,Fi,ji,Hi,Wi,rt,ul,on,qi,Ui,Ki,kt,Gi,an,Ji]),t=[Ri,ir,hl,xt,fl,on,nn,gl,bl,Ni,Bi,tn,rn,Ei,ki,Si,Ci,Mi,Ti,Oi,Vi,Pi,Ai,Di,Ii],o=[Li,Ri,zi,_i,Fi,ji,Hi,Wi,rt,tn,rn,on,qi,Ui,Ki,nn,kt,Gi,an,Ji],n=ot(),i=T(n,an);q(i,o,i),q(i,r.domain,i);const a=ot(),l=ot(),c=ot();q(n,r.domain,a),q(n,r.scheme,l),q(n,r.slashscheme,c),q(a,o,i),q(a,r.domain,a);const d=T(a,nr);T(i,nr,d),T(l,nr,d),T(c,nr,d);const u=T(i,xt);q(u,o,i),q(u,r.domain,i);const p=ot();q(d,r.domain,p),q(p,r.domain,p);const m=T(p,xt);q(m,r.domain,p);const h=ot(dm);q(m,r.tld,h),q(m,r.utld,h),T(d,en,h);const f=T(p,rt);T(f,rt,f),q(f,r.domain,p),q(h,r.domain,p),T(h,xt,m),T(h,rt,f);const g=T(h,ir);q(g,r.numeric,dm);const b=T(a,rt),y=T(a,xt);T(b,rt,b),q(b,r.domain,a),q(y,o,i),q(y,r.domain,a);const k=ot(Zi);q(y,r.tld,k),q(y,r.utld,k),q(k,r.domain,a),q(k,o,i),T(k,xt,y),T(k,rt,b),T(k,nr,d);const v=T(k,ir),w=ot(Zi);q(v,r.numeric,w);const S=ot(Zi),x=ot();q(S,e,S),q(S,t,x),q(x,e,S),q(x,t,x),T(k,kt,S),T(w,kt,S);const C=T(l,ir),O=T(c,ir),D=T(O,kt),B=T(D,kt);q(l,r.domain,a),T(l,xt,y),T(l,rt,b),q(c,r.domain,a),T(c,xt,y),T(c,rt,b),q(C,r.domain,S),T(C,kt,S),T(C,nn,S),q(B,r.domain,S),q(B,e,S),T(B,kt,S);const E=[[tn,rn],[ki,Ei],[Si,Ci],[Ni,Bi],[Mi,Ti],[Oi,Vi],[Pi,Ai],[Di,Ii]];for(let P=0;P<E.length;P++){const[_,ee]=E[P],re=T(S,_);T(x,_,re),T(re,ee,S);const J=ot(Zi);q(re,e,J);const z=ot();q(re,t),q(J,e,J),q(J,t,z),q(z,e,J),q(z,t,z),T(J,ee,S),T(z,ee,S)}return T(n,en,k),T(n,ml,Rv),{start:n,tokens:nm}}function _v(r,e,t){let o=t.length,n=0,i=[],a=[];for(;n<o;){let l=r,c=null,d=null,u=0,p=null,m=-1;for(;n<o&&!(c=l.go(t[n].t));)a.push(t[n++]);for(;n<o&&(d=c||l.go(t[n].t));)c=null,l=d,l.accepts()?(m=0,p=l):m>=0&&m++,n++,u++;if(m<0)n-=u,n<o&&(a.push(t[n]),n++);else{a.length>0&&(i.push(El(um,e,a)),a=[]),n-=m,u-=m;const h=p.t,f=t.slice(n-u,n);i.push(El(h,e,f))}}return a.length>0&&i.push(El(um,e,a)),i}function El(r,e,t){const o=t[0].s,n=t[t.length-1].e,i=e.slice(o,n);return new r(i,t)}const Fv=typeof console<"u"&&console&&console.warn||(()=>{}),jv="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",ie={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function Hv(){return He.groups={},ie.scanner=null,ie.parser=null,ie.tokenQueue=[],ie.pluginQueue=[],ie.customSchemes=[],ie.initialized=!1,ie}function pm(r,e=!1){if(ie.initialized&&Fv(`linkifyjs: already initialized - will not register custom scheme "${r}" ${jv}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(r))throw new Error(`linkifyjs: incorrect scheme format.
|
|
125
125
|
1. Must only contain digits, lowercase ASCII letters or "-"
|
|
126
126
|
2. Cannot start or end with "-"
|
|
127
|
-
3. "-" cannot repeat`);ie.customSchemes.push([r,e])}function Wx(){ie.scanner=Ix(ie.customSchemes);for(let r=0;r<ie.tokenQueue.length;r++)ie.tokenQueue[r][1]({scanner:ie.scanner});ie.parser=zx(ie.scanner.tokens);for(let r=0;r<ie.pluginQueue.length;r++)ie.pluginQueue[r][1]({scanner:ie.scanner,parser:ie.parser});return ie.initialized=!0,ie}function Sl(r){return ie.initialized||Wx(),_x(ie.parser.start,r,am(ie.scanner.start,r))}Sl.scan=am;function mm(r,e=null,t=null){if(e&&typeof e=="object"){if(t)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);t=e,e=null}const o=new kl(t),n=Sl(r),i=[];for(let a=0;a<n.length;a++){const l=n[a];l.isLink&&(!e||l.t===e)&&o.check(l)&&i.push(l.toFormattedObject(o))}return i}function qx(r){return r.length===1?r[0].isLink:r.length===3&&r[1].isLink?["()","[]"].includes(r[0].value+r[2].value):!1}function Ux(r){return new he({key:new Ae("autolink"),appendTransaction:(e,t,o)=>{const n=e.some(c=>c.docChanged)&&!t.doc.eq(o.doc),i=e.some(c=>c.getMeta("preventAutolink"));if(!n||i)return;const{tr:a}=o,l=uw(t.doc,[...e]);if(yw(l).forEach(({newRange:c})=>{const p=hw(o.doc,c,h=>h.isTextblock);let u,m;if(p.length>1?(u=p[0],m=o.doc.textBetween(u.pos,u.pos+u.node.nodeSize,void 0," ")):p.length&&o.doc.textBetween(c.from,c.to," "," ").endsWith(" ")&&(u=p[0],m=o.doc.textBetween(u.pos,c.to,void 0," ")),u&&m){const h=m.split(" ").filter(y=>y!=="");if(h.length<=0)return!1;const g=h[h.length-1],f=u.pos+m.lastIndexOf(g);if(!g)return!1;const b=Sl(g).map(y=>y.toObject(r.defaultProtocol));if(!qx(b))return!1;b.filter(y=>y.isLink).map(y=>({...y,from:f+y.start+1,to:f+y.end+1})).filter(y=>o.schema.marks.code?!o.doc.rangeHasMark(y.from,y.to,o.schema.marks.code):!0).filter(y=>r.validate(y.value)).filter(y=>r.shouldAutoLink(y.value)).forEach(y=>{Vs(y.from,y.to,o.doc).some(k=>k.mark.type===r.type)||a.addMark(y.from,y.to,r.type.create({href:y.href}))})}}),!!a.steps.length)return a}})}function Kx(r){return new he({key:new Ae("handleClickLink"),props:{handleClick:(e,t,o)=>{var n,i;if(o.button!==0||!e.editable)return!1;let a=o.target;const l=[];for(;a.nodeName!=="DIV";)l.push(a),a=a.parentNode;if(!l.find(m=>m.nodeName==="A"))return!1;const d=Gp(e.state,r.type.name),c=o.target,p=(n=c==null?void 0:c.href)!==null&&n!==void 0?n:d.href,u=(i=c==null?void 0:c.target)!==null&&i!==void 0?i:d.target;return c&&p?(window.open(p,u),!0):!1}}})}function Jx(r){return new he({key:new Ae("handlePasteLink"),props:{handlePaste:(e,t,o)=>{const{state:n}=e,{selection:i}=n,{empty:a}=i;if(a)return!1;let l="";o.content.forEach(c=>{l+=c.textContent});const d=mm(l,{defaultProtocol:r.defaultProtocol}).find(c=>c.isLink&&c.value===l);return!l||!d?!1:r.editor.commands.setMark(r.type,{href:d.href})}}})}const Gx=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;function Or(r,e){const t=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(o=>{const n=typeof o=="string"?o:o.scheme;n&&t.push(n)}),!r||r.replace(Gx,"").match(new RegExp(`^(?:(?:${t.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}const Yx=Ot.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(r=>{if(typeof r=="string"){um(r);return}um(r.scheme,r.optionalSlashes)})},onDestroy(){Hx()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(r,e)=>!!Or(r,e.protocols),validate:r=>!!r,shouldAutoLink:r=>!!r}},addAttributes(){return{href:{default:null,parseHTML(r){return r.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:r=>{const e=r.getAttribute("href");return!e||!this.options.isAllowedUri(e,{defaultValidate:t=>!!Or(t,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:r}){return this.options.isAllowedUri(r.href,{defaultValidate:e=>!!Or(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",Ne(this.options.HTMLAttributes,r),0]:["a",Ne(this.options.HTMLAttributes,{...r,href:""}),0]},addCommands(){return{setLink:r=>({chain:e})=>{const{href:t}=r;return this.options.isAllowedUri(t,{defaultValidate:o=>!!Or(o,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().setMark(this.name,r).setMeta("preventAutolink",!0).run():!1},toggleLink:r=>({chain:e})=>{const{href:t}=r;return this.options.isAllowedUri(t,{defaultValidate:o=>!!Or(o,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().toggleMark(this.name,r,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run():!1},unsetLink:()=>({chain:r})=>r().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Sr({find:r=>{const e=[];if(r){const{protocols:t,defaultProtocol:o}=this.options,n=mm(r).filter(i=>i.isLink&&this.options.isAllowedUri(i.value,{defaultValidate:a=>!!Or(a,t),protocols:t,defaultProtocol:o}));n.length&&n.forEach(i=>e.push({text:i.value,data:{href:i.href},index:i.start}))}return e},type:this.type,getAttributes:r=>{var e;return{href:(e=r.data)===null||e===void 0?void 0:e.href}}})]},addProseMirrorPlugins(){const r=[],{protocols:e,defaultProtocol:t}=this.options;return this.options.autolink&&r.push(Ux({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:o=>this.options.isAllowedUri(o,{defaultValidate:n=>!!Or(n,e),protocols:e,defaultProtocol:t}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&r.push(Kx({type:this.type})),this.options.linkOnPaste&&r.push(Jx({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),r}}),Xx={class:"myInputGroup"},Qx={key:0,class:"min-h-[2.5rem] flex items-center justify-start"},Zx={class:"myPrimaryInputError mt-2 mb-0 py-0 self-start"},$x={class:"blockease-linear duration-200 block ease-linear"},ev={key:0},tv={class:"relative rounded-lg"},rv={class:"flex justify-between myPrimaryGap items-center py-4 px-4 overflow-x-auto border-b border-gray-200"},ov={class:"px-2 flex items-center justify-start gap-2 w-max p-1 rounded-full border border-gray-200 shadow-sm"},nv={class:"flex items-center p-1 rounded-full border border-gray-200 shadow-sm"},iv={class:"px-2 flex items-center justify-start gap-2 w-max"},av={class:"px-2 flex items-center justify-start gap-2 w-max"},sv={class:"px-2 flex items-center justify-start gap-2 w-max"},lv={class:"px-2 flex items-center justify-start gap-2 w-max"},dv={class:"px-2 flex items-center justify-start gap-2 w-max"},cv={class:"px-2 flex items-center justify-start gap-2 w-max"},pv={__name:"TipTapInput",setup(r){const e=se,t=s.ref(!1),o=s.ref(""),n=s.ref(1),i=s.ref(""),a=s.ref(""),l=s.ref(""),d=s.ref(null),c=s.ref(null),p=s.ref(null),u=s.ref(null),m=s.ref(null),h=new ce(e),g=s.computed(()=>e.getElement),f=s.ref(""),b=s.computed(()=>{if(k.value)return k.value.getHTML()}),y=s.ref(0);s.watch(g,B=>{const E=document.createElement("div");if(B){E.innerHTML=B;const P=E.textContent;y.value=P.length}});const k=N1({content:"",extensions:[Nx,Yx.configure({openOnClick:!1})],editorProps:{attributes:{class:"prose-sm sm:prose-sm lg:prose-sm focus:outline-none"}}});s.watch(b,async B=>{h.isSelectedElementValidText()&&g.value&&(e.setTextAreaVueModel(B),typeof B=="string"&&B!==f.value&&await h.handleTextInput(B))});const x=function(){h.isSelectedElementValidText()&&k.value&&k.value.commands.setContent(g.value.innerHTML)};s.watch(g,()=>{x()});const w=s.ref(""),S=s.ref(""),v=s.ref(null);s.watch(w,B=>{S.value=B});const C=function(){w.value=k.value.getAttributes("link").href,t.value=!0,o.value="success",n.value=2,i.value="Enter URL",a.value="Add a valid URL to transform the selected text into a clickable hyperlink that directs users to the specified web address.",l.value="Close",d.value=w.value?"Remove url":null,c.value="Save",p.value=function(){t.value=!1,v.value=null},u.value=function(){k.value.chain().focus().extendMarkRange("link").unsetLink().run(),t.value=!1},m.value=function(){const B=O();B||(B||D(),t.value=!1)}},O=function(){v.value=null;const B=/^https?:\/\//,E=s.ref(!0);return E.value=B.test(S.value),E.value===!1?(v.value="The provided URL is invalid. Please ensure that it begins with 'https://' for proper formatting and security.",!0):!1},D=function(){k.value.chain().focus().extendMarkRange("link").setLink({href:S.value}).run()};return s.onBeforeMount(()=>{var B;(B=k.value)==null||B.destroy()}),s.onMounted(()=>{x()}),(B,E)=>(s.openBlock(),s.createElementBlock("div",null,[s.createVNode(zr,{maxWidth:"4xl",showDynamicModalBuilder:t.value,type:o.value,gridColumnAmount:n.value,title:i.value,description:a.value,firstButtonText:l.value,secondButtonText:d.value,thirdButtonText:c.value,onFirstModalButtonFunctionDynamicModalBuilder:p.value,onSecondModalButtonFunctionDynamicModalBuilder:u.value,onThirdModalButtonFunctionDynamicModalBuilder:m.value},{default:s.withCtx(()=>[E[8]||(E[8]=s.createElementVNode("header",null,null,-1)),s.createElementVNode("main",null,[s.createElementVNode("div",Xx,[E[7]||(E[7]=s.createElementVNode("label",{class:"myPrimaryInputLabel",for:"roles"},[s.createElementVNode("span",null,"Enter URL")],-1)),s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":E[0]||(E[0]=P=>w.value=P),class:"myPrimaryInput mt-1",type:"url",placeholder:"url"},null,512),[[s.vModelText,w.value]]),v.value?(s.openBlock(),s.createElementBlock("div",Qx,[s.createElementVNode("p",Zx,s.toDisplayString(v.value),1)])):s.createCommentVNode("",!0)])])]),_:1,__:[8]},8,["showDynamicModalBuilder","type","gridColumnAmount","title","description","firstButtonText","secondButtonText","thirdButtonText","onFirstModalButtonFunctionDynamicModalBuilder","onSecondModalButtonFunctionDynamicModalBuilder","onThirdModalButtonFunctionDynamicModalBuilder"]),s.createElementVNode("div",$x,[s.unref(h).isSelectedElementValidText()&&s.unref(k)?(s.openBlock(),s.createElementBlock("div",ev,[s.createElementVNode("div",tv,[s.createElementVNode("div",rv,[s.createElementVNode("div",null,[s.createElementVNode("div",null,[s.createElementVNode("div",ov,[s.createElementVNode("button",{onClick:E[1]||(E[1]=P=>s.unref(h).toggleTipTapModal(!1)),type:"button",class:"myPrimaryTag"},E[9]||(E[9]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," Save ",-1),s.createElementVNode("span",null,"Save",-1)]))])])]),s.createElementVNode("div",nv,[s.createElementVNode("div",iv,[s.createElementVNode("button",{onClick:E[2]||(E[2]=P=>s.unref(k).chain().focus().setHardBreak().run()),type:"button",class:"myPrimaryTag"},E[10]||(E[10]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," keyboard_return ",-1),s.createElementVNode("span",null,"Line break",-1)]))]),s.createElementVNode("div",av,[s.createElementVNode("button",{onClick:E[3]||(E[3]=P=>s.unref(k).chain().focus().toggleBold().run()),type:"button",class:s.normalizeClass(["myPrimaryTag",{"bg-myPrimaryLinkColor text-white":s.unref(k).isActive("bold")}])},E[11]||(E[11]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," format_bold ",-1),s.createElementVNode("span",null,"Bold",-1)]),2)]),s.createElementVNode("div",sv,[s.createElementVNode("button",{onClick:C,type:"button",class:s.normalizeClass(["myPrimaryTag",{"bg-myPrimaryLinkColor text-white":s.unref(k).isActive("link")}])},E[12]||(E[12]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," link ",-1),s.createElementVNode("span",null,"Link",-1)]),2)]),s.createElementVNode("div",lv,[s.createElementVNode("button",{onClick:E[4]||(E[4]=P=>s.unref(k).chain().focus().toggleHeading({level:2}).run()),type:"button",class:s.normalizeClass(["myPrimaryTag",{"bg-myPrimaryLinkColor text-white":s.unref(k).isActive("heading",{level:2})}])},E[13]||(E[13]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," titlecase ",-1),s.createElementVNode("span",null,"Header 2",-1)]),2)]),s.createElementVNode("div",dv,[s.createElementVNode("button",{onClick:E[5]||(E[5]=P=>s.unref(k).chain().focus().toggleHeading({level:3}).run()),type:"button",class:s.normalizeClass(["myPrimaryTag",{"bg-myPrimaryLinkColor text-white":s.unref(k).isActive("heading",{level:3})}])},E[14]||(E[14]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," titlecase ",-1),s.createElementVNode("span",null,"Header 3",-1)]),2)]),s.createElementVNode("div",cv,[s.createElementVNode("button",{onClick:E[6]||(E[6]=P=>s.unref(k).chain().focus().toggleBulletList().run()),type:"button",class:s.normalizeClass(["myPrimaryTag",{"bg-myPrimaryLinkColor text-white":s.unref(k).isActive("bulletList")}])},E[15]||(E[15]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," list ",-1),s.createElementVNode("span",null,"List",-1)]),2)])])]),s.createVNode(s.unref(C1),{id:"page-builder-editor",editor:s.unref(k),class:"p-2 prounded-lg lg:min-h-[20rem] lg:max-h-[30rem] md:min-h-[20rem] md:max-h-[20rem] min-h-[20rem] max-h-[20rem] overflow-y-auto"},null,8,["editor"])])])):s.createCommentVNode("",!0)])]))}},Cl=(r,e)=>{const t=r.__vccOpts||r;for(const[o,n]of e)t[o]=n;return t},uv={},mv={class:"min-h-40"};function hv(r,e){return s.openBlock(),s.createElementBlock("div",mv,e[0]||(e[0]=[s.createElementVNode("p",{class:"myPrimaryParagraph"},[s.createTextVNode(" Provide your own Media Library Component to integrate a custom media picker into the Page Builder. "),s.createElementVNode("br"),s.createTextVNode(" This allows full control over how media is selected and inserted. ")],-1)]))}const gv=Cl(uv,[["render",hv]]),fv={key:0,class:"w-full"},bv={key:1},hm={__name:"MediaLibraryModal",props:{title:{type:String,required:!0},description:{required:!0},firstButtonText:{type:String},secondButtonText:{type:String},thirdButtonText:{type:String},open:{required:!0},customMediaComponent:{type:Object,default:null}},emits:["firstMediaButtonFunction"],setup(r,{emit:e}){const t=e,o=function(){t("firstMediaButtonFunction")},n=()=>{o()};return s.provide("closeMediaLibraryModal",n),(i,a)=>(s.openBlock(),s.createBlock(Dr,{title:r.title,showModalBuilder:r.open,onCloseMainModalBuilder:o,maxWidth:"7xl"},{default:s.withCtx(()=>[r.customMediaComponent?(s.openBlock(),s.createElementBlock("div",fv,[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(r.customMediaComponent)))])):(s.openBlock(),s.createElementBlock("div",bv,[s.createVNode(gv)]))]),_:1},8,["title","showModalBuilder"]))}};function wv(r,e,t){let o=s.ref(t==null?void 0:t.value),n=s.computed(()=>r.value!==void 0);return[s.computed(()=>n.value?r.value:o.value),function(i){return n.value||(o.value=i),e==null?void 0:e(i)}]}var gm;let yv=Symbol("headlessui.useid"),xv=0;const $i=(gm=_l.useId)!=null?gm:function(){return _l.inject(yv,()=>`${++xv}`)()};function pe(r){var e;if(r==null||r.value==null)return null;let t=(e=r.value.$el)!=null?e:r.value;return t instanceof Node?t:null}function ct(r,e,...t){if(r in e){let n=e[r];return typeof n=="function"?n(...t):n}let o=new Error(`Tried to handle "${r}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map(n=>`"${n}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,ct),o}var vv=Object.defineProperty,kv=(r,e,t)=>e in r?vv(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,fm=(r,e,t)=>(kv(r,typeof e!="symbol"?e+"":e,t),t);let Ev=class{constructor(){fm(this,"current",this.detect()),fm(this,"currentId",0)}set(e){this.current!==e&&(this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},Nl=new Ev;function Sv(r){if(Nl.isServer)return null;if(r instanceof Node)return r.ownerDocument;if(r!=null&&r.hasOwnProperty("value")){let e=pe(r);if(e)return e.ownerDocument}return document}let bm=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(r=>`${r}:not([tabindex='-1'])`).join(",");var Cv=(r=>(r[r.First=1]="First",r[r.Previous=2]="Previous",r[r.Next=4]="Next",r[r.Last=8]="Last",r[r.WrapAround=16]="WrapAround",r[r.NoScroll=32]="NoScroll",r))(Cv||{}),Nv=(r=>(r[r.Error=0]="Error",r[r.Overflow=1]="Overflow",r[r.Success=2]="Success",r[r.Underflow=3]="Underflow",r))(Nv||{}),Bv=(r=>(r[r.Previous=-1]="Previous",r[r.Next=1]="Next",r))(Bv||{}),Bl=(r=>(r[r.Strict=0]="Strict",r[r.Loose=1]="Loose",r))(Bl||{});function wm(r,e=0){var t;return r===((t=Sv(r))==null?void 0:t.body)?!1:ct(e,{0(){return r.matches(bm)},1(){let o=r;for(;o!==null;){if(o.matches(bm))return!0;o=o.parentElement}return!1}})}var Mv=(r=>(r[r.Keyboard=0]="Keyboard",r[r.Mouse=1]="Mouse",r))(Mv||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",r=>{r.metaKey||r.altKey||r.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",r=>{r.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:r.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Tv(r,e=t=>t){return r.slice().sort((t,o)=>{let n=e(t),i=e(o);if(n===null||i===null)return 0;let a=n.compareDocumentPosition(i);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Ov(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Vv(){return/Android/gi.test(window.navigator.userAgent)}function Pv(){return Ov()||Vv()}function ea(r,e,t){Nl.isServer||s.watchEffect(o=>{document.addEventListener(r,e,t),o(()=>document.removeEventListener(r,e,t))})}function Av(r,e,t){Nl.isServer||s.watchEffect(o=>{window.addEventListener(r,e,t),o(()=>window.removeEventListener(r,e,t))})}function Dv(r,e,t=s.computed(()=>!0)){function o(i,a){if(!t.value||i.defaultPrevented)return;let l=a(i);if(l===null||!l.getRootNode().contains(l))return;let d=function c(p){return typeof p=="function"?c(p()):Array.isArray(p)||p instanceof Set?p:[p]}(r);for(let c of d){if(c===null)continue;let p=c instanceof HTMLElement?c:pe(c);if(p!=null&&p.contains(l)||i.composed&&i.composedPath().includes(p))return}return!wm(l,Bl.Loose)&&l.tabIndex!==-1&&i.preventDefault(),e(i,l)}let n=s.ref(null);ea("pointerdown",i=>{var a,l;t.value&&(n.value=((l=(a=i.composedPath)==null?void 0:a.call(i))==null?void 0:l[0])||i.target)},!0),ea("mousedown",i=>{var a,l;t.value&&(n.value=((l=(a=i.composedPath)==null?void 0:a.call(i))==null?void 0:l[0])||i.target)},!0),ea("click",i=>{Pv()||n.value&&(o(i,()=>n.value),n.value=null)},!0),ea("touchend",i=>o(i,()=>i.target instanceof HTMLElement?i.target:null),!0),Av("blur",i=>o(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function ym(r,e){if(r)return r;let t=e??"button";if(typeof t=="string"&&t.toLowerCase()==="button")return"button"}function Iv(r,e){let t=s.ref(ym(r.value.type,r.value.as));return s.onMounted(()=>{t.value=ym(r.value.type,r.value.as)}),s.watchEffect(()=>{var o;t.value||pe(e)&&pe(e)instanceof HTMLButtonElement&&!((o=pe(e))!=null&&o.hasAttribute("type"))&&(t.value="button")}),t}function xm(r){return[r.screenX,r.screenY]}function Lv(){let r=s.ref([-1,-1]);return{wasMoved(e){let t=xm(e);return r.value[0]===t[0]&&r.value[1]===t[1]?!1:(r.value=t,!0)},update(e){r.value=xm(e)}}}var Ml=(r=>(r[r.None=0]="None",r[r.RenderStrategy=1]="RenderStrategy",r[r.Static=2]="Static",r))(Ml||{}),Rv=(r=>(r[r.Unmount=0]="Unmount",r[r.Hidden=1]="Hidden",r))(Rv||{});function lo({visible:r=!0,features:e=0,ourProps:t,theirProps:o,...n}){var i;let a=km(o,t),l=Object.assign(n,{props:a});if(r||e&2&&a.static)return Tl(l);if(e&1){let d=(i=a.unmount)==null||i?0:1;return ct(d,{0(){return null},1(){return Tl({...n,props:{...a,hidden:!0,style:{display:"none"}}})}})}return Tl(l)}function Tl({props:r,attrs:e,slots:t,slot:o,name:n}){var i,a;let{as:l,...d}=Em(r,["unmount","static"]),c=(i=t.default)==null?void 0:i.call(t,o),p={};if(o){let u=!1,m=[];for(let[h,g]of Object.entries(o))typeof g=="boolean"&&(u=!0),g===!0&&m.push(h);u&&(p["data-headlessui-state"]=m.join(" "))}if(l==="template"){if(c=vm(c??[]),Object.keys(d).length>0||Object.keys(e).length>0){let[u,...m]=c??[];if(!_v(u)||m.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${n} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(d).concat(Object.keys(e)).map(f=>f.trim()).filter((f,b,y)=>y.indexOf(f)===b).sort((f,b)=>f.localeCompare(b)).map(f=>` - ${f}`).join(`
|
|
128
|
-
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(
|
|
127
|
+
3. "-" cannot repeat`);ie.customSchemes.push([r,e])}function Wv(){ie.scanner=Iv(ie.customSchemes);for(let r=0;r<ie.tokenQueue.length;r++)ie.tokenQueue[r][1]({scanner:ie.scanner});ie.parser=zv(ie.scanner.tokens);for(let r=0;r<ie.pluginQueue.length;r++)ie.pluginQueue[r][1]({scanner:ie.scanner,parser:ie.parser});return ie.initialized=!0,ie}function Sl(r){return ie.initialized||Wv(),_v(ie.parser.start,r,am(ie.scanner.start,r))}Sl.scan=am;function mm(r,e=null,t=null){if(e&&typeof e=="object"){if(t)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);t=e,e=null}const o=new kl(t),n=Sl(r),i=[];for(let a=0;a<n.length;a++){const l=n[a];l.isLink&&(!e||l.t===e)&&o.check(l)&&i.push(l.toFormattedObject(o))}return i}function qv(r){return r.length===1?r[0].isLink:r.length===3&&r[1].isLink?["()","[]"].includes(r[0].value+r[2].value):!1}function Uv(r){return new he({key:new Ae("autolink"),appendTransaction:(e,t,o)=>{const n=e.some(d=>d.docChanged)&&!t.doc.eq(o.doc),i=e.some(d=>d.getMeta("preventAutolink"));if(!n||i)return;const{tr:a}=o,l=pw(t.doc,[...e]);if(yw(l).forEach(({newRange:d})=>{const u=hw(o.doc,d,h=>h.isTextblock);let p,m;if(u.length>1?(p=u[0],m=o.doc.textBetween(p.pos,p.pos+p.node.nodeSize,void 0," ")):u.length&&o.doc.textBetween(d.from,d.to," "," ").endsWith(" ")&&(p=u[0],m=o.doc.textBetween(p.pos,d.to,void 0," ")),p&&m){const h=m.split(" ").filter(y=>y!=="");if(h.length<=0)return!1;const f=h[h.length-1],g=p.pos+m.lastIndexOf(f);if(!f)return!1;const b=Sl(f).map(y=>y.toObject(r.defaultProtocol));if(!qv(b))return!1;b.filter(y=>y.isLink).map(y=>({...y,from:g+y.start+1,to:g+y.end+1})).filter(y=>o.schema.marks.code?!o.doc.rangeHasMark(y.from,y.to,o.schema.marks.code):!0).filter(y=>r.validate(y.value)).filter(y=>r.shouldAutoLink(y.value)).forEach(y=>{Vs(y.from,y.to,o.doc).some(k=>k.mark.type===r.type)||a.addMark(y.from,y.to,r.type.create({href:y.href}))})}}),!!a.steps.length)return a}})}function Kv(r){return new he({key:new Ae("handleClickLink"),props:{handleClick:(e,t,o)=>{var n,i;if(o.button!==0||!e.editable)return!1;let a=o.target;const l=[];for(;a.nodeName!=="DIV";)l.push(a),a=a.parentNode;if(!l.find(m=>m.nodeName==="A"))return!1;const c=Gu(e.state,r.type.name),d=o.target,u=(n=d==null?void 0:d.href)!==null&&n!==void 0?n:c.href,p=(i=d==null?void 0:d.target)!==null&&i!==void 0?i:c.target;return d&&u?(window.open(u,p),!0):!1}}})}function Jv(r){return new he({key:new Ae("handlePasteLink"),props:{handlePaste:(e,t,o)=>{const{state:n}=e,{selection:i}=n,{empty:a}=i;if(a)return!1;let l="";o.content.forEach(d=>{l+=d.textContent});const c=mm(l,{defaultProtocol:r.defaultProtocol}).find(d=>d.isLink&&d.value===l);return!l||!c?!1:r.editor.commands.setMark(r.type,{href:c.href})}}})}const Gv=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;function Or(r,e){const t=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(o=>{const n=typeof o=="string"?o:o.scheme;n&&t.push(n)}),!r||r.replace(Gv,"").match(new RegExp(`^(?:(?:${t.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}const Yv=Ot.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(r=>{if(typeof r=="string"){pm(r);return}pm(r.scheme,r.optionalSlashes)})},onDestroy(){Hv()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(r,e)=>!!Or(r,e.protocols),validate:r=>!!r,shouldAutoLink:r=>!!r}},addAttributes(){return{href:{default:null,parseHTML(r){return r.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:r=>{const e=r.getAttribute("href");return!e||!this.options.isAllowedUri(e,{defaultValidate:t=>!!Or(t,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:r}){return this.options.isAllowedUri(r.href,{defaultValidate:e=>!!Or(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",Ne(this.options.HTMLAttributes,r),0]:["a",Ne(this.options.HTMLAttributes,{...r,href:""}),0]},addCommands(){return{setLink:r=>({chain:e})=>{const{href:t}=r;return this.options.isAllowedUri(t,{defaultValidate:o=>!!Or(o,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().setMark(this.name,r).setMeta("preventAutolink",!0).run():!1},toggleLink:r=>({chain:e})=>{const{href:t}=r;return this.options.isAllowedUri(t,{defaultValidate:o=>!!Or(o,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().toggleMark(this.name,r,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run():!1},unsetLink:()=>({chain:r})=>r().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Sr({find:r=>{const e=[];if(r){const{protocols:t,defaultProtocol:o}=this.options,n=mm(r).filter(i=>i.isLink&&this.options.isAllowedUri(i.value,{defaultValidate:a=>!!Or(a,t),protocols:t,defaultProtocol:o}));n.length&&n.forEach(i=>e.push({text:i.value,data:{href:i.href},index:i.start}))}return e},type:this.type,getAttributes:r=>{var e;return{href:(e=r.data)===null||e===void 0?void 0:e.href}}})]},addProseMirrorPlugins(){const r=[],{protocols:e,defaultProtocol:t}=this.options;return this.options.autolink&&r.push(Uv({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:o=>this.options.isAllowedUri(o,{defaultValidate:n=>!!Or(n,e),protocols:e,defaultProtocol:t}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&r.push(Kv({type:this.type})),this.options.linkOnPaste&&r.push(Jv({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),r}}),Xv={class:"myInputGroup"},Qv={key:0,class:"min-h-[2.5rem] flex items-center justify-start"},Zv={class:"myPrimaryInputError mt-2 mb-0 py-0 self-start"},$v={class:"blockease-linear duration-200 block ease-linear"},ex={key:0},tx={class:"relative rounded-lg"},rx={class:"flex justify-between myPrimaryGap items-center py-4 px-4 overflow-x-auto border-b border-gray-200"},ox={class:"px-2 flex items-center justify-start gap-2 w-max p-1 rounded-full border border-gray-200 shadow-sm"},nx={class:"flex items-center p-1 rounded-full border border-gray-200 shadow-sm"},ix={class:"px-2 flex items-center justify-start gap-2 w-max"},ax={class:"px-2 flex items-center justify-start gap-2 w-max"},sx={class:"px-2 flex items-center justify-start gap-2 w-max"},lx={class:"px-2 flex items-center justify-start gap-2 w-max"},cx={class:"px-2 flex items-center justify-start gap-2 w-max"},dx={class:"px-2 flex items-center justify-start gap-2 w-max"},ux={__name:"TipTapInput",setup(r){const e=se,t=s.ref(!1),o=s.ref(""),n=s.ref(1),i=s.ref(""),a=s.ref(""),l=s.ref(""),c=s.ref(null),d=s.ref(null),u=s.ref(null),p=s.ref(null),m=s.ref(null),h=new de(e),f=s.computed(()=>e.getElement),g=s.ref(""),b=s.computed(()=>{if(k.value)return k.value.getHTML()}),y=s.ref(0);s.watch(f,B=>{const E=document.createElement("div");if(B){E.innerHTML=B;const P=E.textContent;y.value=P.length}});const k=N1({content:"",extensions:[Nv,Yv.configure({openOnClick:!1})],editorProps:{attributes:{class:"prose-sm sm:prose-sm lg:prose-sm focus:outline-none"}}});s.watch(b,async B=>{h.isSelectedElementValidText()&&f.value&&(e.setTextAreaVueModel(B),typeof B=="string"&&B!==g.value&&await h.handleTextInput(B))});const v=function(){h.isSelectedElementValidText()&&k.value&&k.value.commands.setContent(f.value.innerHTML)};s.watch(f,()=>{v()});const w=s.ref(""),S=s.ref(""),x=s.ref(null);s.watch(w,B=>{S.value=B});const C=function(){w.value=k.value.getAttributes("link").href,t.value=!0,o.value="success",n.value=2,i.value="Enter URL",a.value="Add a valid URL to transform the selected text into a clickable hyperlink that directs users to the specified web address.",l.value="Close",c.value=w.value?"Remove url":null,d.value="Save",u.value=function(){t.value=!1,x.value=null},p.value=function(){k.value.chain().focus().extendMarkRange("link").unsetLink().run(),t.value=!1},m.value=function(){const B=O();B||(B||D(),t.value=!1)}},O=function(){x.value=null;const B=/^https?:\/\//,E=s.ref(!0);return E.value=B.test(S.value),E.value===!1?(x.value="The provided URL is invalid. Please ensure that it begins with 'https://' for proper formatting and security.",!0):!1},D=function(){k.value.chain().focus().extendMarkRange("link").setLink({href:S.value}).run()};return s.onBeforeMount(()=>{var B;(B=k.value)==null||B.destroy()}),s.onMounted(()=>{v()}),(B,E)=>(s.openBlock(),s.createElementBlock("div",null,[s.createVNode(zr,{maxWidth:"4xl",showDynamicModalBuilder:t.value,type:o.value,gridColumnAmount:n.value,title:i.value,description:a.value,firstButtonText:l.value,secondButtonText:c.value,thirdButtonText:d.value,onFirstModalButtonFunctionDynamicModalBuilder:u.value,onSecondModalButtonFunctionDynamicModalBuilder:p.value,onThirdModalButtonFunctionDynamicModalBuilder:m.value},{default:s.withCtx(()=>[E[8]||(E[8]=s.createElementVNode("header",null,null,-1)),s.createElementVNode("main",null,[s.createElementVNode("div",Xv,[E[7]||(E[7]=s.createElementVNode("label",{class:"myPrimaryInputLabel",for:"roles"},[s.createElementVNode("span",null,"Enter URL")],-1)),s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":E[0]||(E[0]=P=>w.value=P),class:"myPrimaryInput mt-1",type:"url",placeholder:"url"},null,512),[[s.vModelText,w.value]]),x.value?(s.openBlock(),s.createElementBlock("div",Qv,[s.createElementVNode("p",Zv,s.toDisplayString(x.value),1)])):s.createCommentVNode("",!0)])])]),_:1,__:[8]},8,["showDynamicModalBuilder","type","gridColumnAmount","title","description","firstButtonText","secondButtonText","thirdButtonText","onFirstModalButtonFunctionDynamicModalBuilder","onSecondModalButtonFunctionDynamicModalBuilder","onThirdModalButtonFunctionDynamicModalBuilder"]),s.createElementVNode("div",$v,[s.unref(h).isSelectedElementValidText()&&s.unref(k)?(s.openBlock(),s.createElementBlock("div",ex,[s.createElementVNode("div",tx,[s.createElementVNode("div",rx,[s.createElementVNode("div",null,[s.createElementVNode("div",null,[s.createElementVNode("div",ox,[s.createElementVNode("button",{onClick:E[1]||(E[1]=P=>s.unref(h).toggleTipTapModal(!1)),type:"button",class:"myPrimaryTag"},E[9]||(E[9]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," Save ",-1),s.createElementVNode("span",null,"Save",-1)]))])])]),s.createElementVNode("div",nx,[s.createElementVNode("div",ix,[s.createElementVNode("button",{onClick:E[2]||(E[2]=P=>s.unref(k).chain().focus().setHardBreak().run()),type:"button",class:"myPrimaryTag"},E[10]||(E[10]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," keyboard_return ",-1),s.createElementVNode("span",null,"Line break",-1)]))]),s.createElementVNode("div",ax,[s.createElementVNode("button",{onClick:E[3]||(E[3]=P=>s.unref(k).chain().focus().toggleBold().run()),type:"button",class:s.normalizeClass(["myPrimaryTag",{"bg-myPrimaryLinkColor text-white":s.unref(k).isActive("bold")}])},E[11]||(E[11]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," format_bold ",-1),s.createElementVNode("span",null,"Bold",-1)]),2)]),s.createElementVNode("div",sx,[s.createElementVNode("button",{onClick:C,type:"button",class:s.normalizeClass(["myPrimaryTag",{"bg-myPrimaryLinkColor text-white":s.unref(k).isActive("link")}])},E[12]||(E[12]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," link ",-1),s.createElementVNode("span",null,"Link",-1)]),2)]),s.createElementVNode("div",lx,[s.createElementVNode("button",{onClick:E[4]||(E[4]=P=>s.unref(k).chain().focus().toggleHeading({level:2}).run()),type:"button",class:s.normalizeClass(["myPrimaryTag",{"bg-myPrimaryLinkColor text-white":s.unref(k).isActive("heading",{level:2})}])},E[13]||(E[13]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," titlecase ",-1),s.createElementVNode("span",null,"Header 2",-1)]),2)]),s.createElementVNode("div",cx,[s.createElementVNode("button",{onClick:E[5]||(E[5]=P=>s.unref(k).chain().focus().toggleHeading({level:3}).run()),type:"button",class:s.normalizeClass(["myPrimaryTag",{"bg-myPrimaryLinkColor text-white":s.unref(k).isActive("heading",{level:3})}])},E[14]||(E[14]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," titlecase ",-1),s.createElementVNode("span",null,"Header 3",-1)]),2)]),s.createElementVNode("div",dx,[s.createElementVNode("button",{onClick:E[6]||(E[6]=P=>s.unref(k).chain().focus().toggleBulletList().run()),type:"button",class:s.normalizeClass(["myPrimaryTag",{"bg-myPrimaryLinkColor text-white":s.unref(k).isActive("bulletList")}])},E[15]||(E[15]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," list ",-1),s.createElementVNode("span",null,"List",-1)]),2)])])]),s.createVNode(s.unref(C1),{id:"page-builder-editor",editor:s.unref(k),class:"p-2 prounded-lg lg:min-h-[20rem] lg:max-h-[30rem] md:min-h-[20rem] md:max-h-[20rem] min-h-[20rem] max-h-[20rem] overflow-y-auto"},null,8,["editor"])])])):s.createCommentVNode("",!0)])]))}},Cl=(r,e)=>{const t=r.__vccOpts||r;for(const[o,n]of e)t[o]=n;return t},px={},mx={class:"min-h-40"};function hx(r,e){return s.openBlock(),s.createElementBlock("div",mx,e[0]||(e[0]=[s.createElementVNode("p",{class:"myPrimaryParagraph"},[s.createTextVNode(" Provide your own Media Library Component to integrate a custom media picker into the Page Builder. "),s.createElementVNode("br"),s.createTextVNode(" This allows full control over how media is selected and inserted. ")],-1)]))}const fx=Cl(px,[["render",hx]]),gx={key:0,class:"w-full"},bx={key:1},hm={__name:"MediaLibraryModal",props:{title:{type:String,required:!0},description:{required:!0},firstButtonText:{type:String},secondButtonText:{type:String},thirdButtonText:{type:String},open:{required:!0},customMediaComponent:{type:Object,default:null}},emits:["firstMediaButtonFunction"],setup(r,{emit:e}){const t=e,o=function(){t("firstMediaButtonFunction")},n=()=>{o()};return s.provide("closeMediaLibraryModal",n),(i,a)=>(s.openBlock(),s.createBlock(Dr,{title:r.title,showModalBuilder:r.open,onCloseMainModalBuilder:o,maxWidth:"7xl"},{default:s.withCtx(()=>[r.customMediaComponent?(s.openBlock(),s.createElementBlock("div",gx,[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(r.customMediaComponent)))])):(s.openBlock(),s.createElementBlock("div",bx,[s.createVNode(fx)]))]),_:1},8,["title","showModalBuilder"]))}};function wx(r,e,t){let o=s.ref(t==null?void 0:t.value),n=s.computed(()=>r.value!==void 0);return[s.computed(()=>n.value?r.value:o.value),function(i){return n.value||(o.value=i),e==null?void 0:e(i)}]}var fm;let yx=Symbol("headlessui.useid"),vx=0;const $i=(fm=_l.useId)!=null?fm:function(){return _l.inject(yx,()=>`${++vx}`)()};function ue(r){var e;if(r==null||r.value==null)return null;let t=(e=r.value.$el)!=null?e:r.value;return t instanceof Node?t:null}function dt(r,e,...t){if(r in e){let n=e[r];return typeof n=="function"?n(...t):n}let o=new Error(`Tried to handle "${r}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map(n=>`"${n}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,dt),o}var xx=Object.defineProperty,kx=(r,e,t)=>e in r?xx(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,gm=(r,e,t)=>(kx(r,typeof e!="symbol"?e+"":e,t),t);let Ex=class{constructor(){gm(this,"current",this.detect()),gm(this,"currentId",0)}set(e){this.current!==e&&(this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},Nl=new Ex;function Sx(r){if(Nl.isServer)return null;if(r instanceof Node)return r.ownerDocument;if(r!=null&&r.hasOwnProperty("value")){let e=ue(r);if(e)return e.ownerDocument}return document}let bm=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(r=>`${r}:not([tabindex='-1'])`).join(",");var Cx=(r=>(r[r.First=1]="First",r[r.Previous=2]="Previous",r[r.Next=4]="Next",r[r.Last=8]="Last",r[r.WrapAround=16]="WrapAround",r[r.NoScroll=32]="NoScroll",r))(Cx||{}),Nx=(r=>(r[r.Error=0]="Error",r[r.Overflow=1]="Overflow",r[r.Success=2]="Success",r[r.Underflow=3]="Underflow",r))(Nx||{}),Bx=(r=>(r[r.Previous=-1]="Previous",r[r.Next=1]="Next",r))(Bx||{}),Bl=(r=>(r[r.Strict=0]="Strict",r[r.Loose=1]="Loose",r))(Bl||{});function wm(r,e=0){var t;return r===((t=Sx(r))==null?void 0:t.body)?!1:dt(e,{0(){return r.matches(bm)},1(){let o=r;for(;o!==null;){if(o.matches(bm))return!0;o=o.parentElement}return!1}})}var Mx=(r=>(r[r.Keyboard=0]="Keyboard",r[r.Mouse=1]="Mouse",r))(Mx||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",r=>{r.metaKey||r.altKey||r.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",r=>{r.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:r.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Tx(r,e=t=>t){return r.slice().sort((t,o)=>{let n=e(t),i=e(o);if(n===null||i===null)return 0;let a=n.compareDocumentPosition(i);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Ox(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Vx(){return/Android/gi.test(window.navigator.userAgent)}function Px(){return Ox()||Vx()}function ea(r,e,t){Nl.isServer||s.watchEffect(o=>{document.addEventListener(r,e,t),o(()=>document.removeEventListener(r,e,t))})}function Ax(r,e,t){Nl.isServer||s.watchEffect(o=>{window.addEventListener(r,e,t),o(()=>window.removeEventListener(r,e,t))})}function Dx(r,e,t=s.computed(()=>!0)){function o(i,a){if(!t.value||i.defaultPrevented)return;let l=a(i);if(l===null||!l.getRootNode().contains(l))return;let c=function d(u){return typeof u=="function"?d(u()):Array.isArray(u)||u instanceof Set?u:[u]}(r);for(let d of c){if(d===null)continue;let u=d instanceof HTMLElement?d:ue(d);if(u!=null&&u.contains(l)||i.composed&&i.composedPath().includes(u))return}return!wm(l,Bl.Loose)&&l.tabIndex!==-1&&i.preventDefault(),e(i,l)}let n=s.ref(null);ea("pointerdown",i=>{var a,l;t.value&&(n.value=((l=(a=i.composedPath)==null?void 0:a.call(i))==null?void 0:l[0])||i.target)},!0),ea("mousedown",i=>{var a,l;t.value&&(n.value=((l=(a=i.composedPath)==null?void 0:a.call(i))==null?void 0:l[0])||i.target)},!0),ea("click",i=>{Px()||n.value&&(o(i,()=>n.value),n.value=null)},!0),ea("touchend",i=>o(i,()=>i.target instanceof HTMLElement?i.target:null),!0),Ax("blur",i=>o(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function ym(r,e){if(r)return r;let t=e??"button";if(typeof t=="string"&&t.toLowerCase()==="button")return"button"}function Ix(r,e){let t=s.ref(ym(r.value.type,r.value.as));return s.onMounted(()=>{t.value=ym(r.value.type,r.value.as)}),s.watchEffect(()=>{var o;t.value||ue(e)&&ue(e)instanceof HTMLButtonElement&&!((o=ue(e))!=null&&o.hasAttribute("type"))&&(t.value="button")}),t}function vm(r){return[r.screenX,r.screenY]}function Lx(){let r=s.ref([-1,-1]);return{wasMoved(e){let t=vm(e);return r.value[0]===t[0]&&r.value[1]===t[1]?!1:(r.value=t,!0)},update(e){r.value=vm(e)}}}var Ml=(r=>(r[r.None=0]="None",r[r.RenderStrategy=1]="RenderStrategy",r[r.Static=2]="Static",r))(Ml||{}),Rx=(r=>(r[r.Unmount=0]="Unmount",r[r.Hidden=1]="Hidden",r))(Rx||{});function lo({visible:r=!0,features:e=0,ourProps:t,theirProps:o,...n}){var i;let a=km(o,t),l=Object.assign(n,{props:a});if(r||e&2&&a.static)return Tl(l);if(e&1){let c=(i=a.unmount)==null||i?0:1;return dt(c,{0(){return null},1(){return Tl({...n,props:{...a,hidden:!0,style:{display:"none"}}})}})}return Tl(l)}function Tl({props:r,attrs:e,slots:t,slot:o,name:n}){var i,a;let{as:l,...c}=Em(r,["unmount","static"]),d=(i=t.default)==null?void 0:i.call(t,o),u={};if(o){let p=!1,m=[];for(let[h,f]of Object.entries(o))typeof f=="boolean"&&(p=!0),f===!0&&m.push(h);p&&(u["data-headlessui-state"]=m.join(" "))}if(l==="template"){if(d=xm(d??[]),Object.keys(c).length>0||Object.keys(e).length>0){let[p,...m]=d??[];if(!_x(p)||m.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${n} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(c).concat(Object.keys(e)).map(g=>g.trim()).filter((g,b,y)=>y.indexOf(g)===b).sort((g,b)=>g.localeCompare(b)).map(g=>` - ${g}`).join(`
|
|
128
|
+
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(g=>` - ${g}`).join(`
|
|
129
129
|
`)].join(`
|
|
130
|
-
`));let h=km((a=u.props)!=null?a:{},d,p),g=s.cloneVNode(u,h,!0);for(let f in h)f.startsWith("on")&&(g.props||(g.props={}),g.props[f]=h[f]);return g}return Array.isArray(c)&&c.length===1?c[0]:c}return s.h(l,Object.assign({},d,p),{default:()=>c})}function vm(r){return r.flatMap(e=>e.type===s.Fragment?vm(e.children):[e])}function km(...r){if(r.length===0)return{};if(r.length===1)return r[0];let e={},t={};for(let o of r)for(let n in o)n.startsWith("on")&&typeof o[n]=="function"?(t[n]!=null||(t[n]=[]),t[n].push(o[n])):e[n]=o[n];if(e.disabled||e["aria-disabled"])return Object.assign(e,Object.fromEntries(Object.keys(t).map(o=>[o,void 0])));for(let o in t)Object.assign(e,{[o](n,...i){let a=t[o];for(let l of a){if(n instanceof Event&&n.defaultPrevented)return;l(n,...i)}}});return e}function zv(r){let e=Object.assign({},r);for(let t in e)e[t]===void 0&&delete e[t];return e}function Em(r,e=[]){let t=Object.assign({},r);for(let o of e)o in t&&delete t[o];return t}function _v(r){return r==null?!1:typeof r.type=="string"||typeof r.type=="object"||typeof r.type=="function"}var Sm=(r=>(r[r.None=1]="None",r[r.Focusable=2]="Focusable",r[r.Hidden=4]="Hidden",r))(Sm||{});let Fv=s.defineComponent({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(r,{slots:e,attrs:t}){return()=>{var o;let{features:n,...i}=r,a={"aria-hidden":(n&2)===2?!0:(o=i["aria-hidden"])!=null?o:void 0,hidden:(n&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return lo({ourProps:a,theirProps:i,slot:{},attrs:t,slots:e,name:"Hidden"})}}}),Cm=Symbol("Context");var dn=(r=>(r[r.Open=1]="Open",r[r.Closed=2]="Closed",r[r.Closing=4]="Closing",r[r.Opening=8]="Opening",r))(dn||{});function jv(){return s.inject(Cm,null)}function Hv(r){s.provide(Cm,r)}var ve=(r=>(r.Space=" ",r.Enter="Enter",r.Escape="Escape",r.Backspace="Backspace",r.Delete="Delete",r.ArrowLeft="ArrowLeft",r.ArrowUp="ArrowUp",r.ArrowRight="ArrowRight",r.ArrowDown="ArrowDown",r.Home="Home",r.End="End",r.PageUp="PageUp",r.PageDown="PageDown",r.Tab="Tab",r))(ve||{});function Wv(r){throw new Error("Unexpected object: "+r)}var Re=(r=>(r[r.First=0]="First",r[r.Previous=1]="Previous",r[r.Next=2]="Next",r[r.Last=3]="Last",r[r.Specific=4]="Specific",r[r.Nothing=5]="Nothing",r))(Re||{});function qv(r,e){let t=e.resolveItems();if(t.length<=0)return null;let o=e.resolveActiveIndex(),n=o??-1;switch(r.focus){case 0:{for(let i=0;i<t.length;++i)if(!e.resolveDisabled(t[i],i,t))return i;return o}case 1:{n===-1&&(n=t.length);for(let i=n-1;i>=0;--i)if(!e.resolveDisabled(t[i],i,t))return i;return o}case 2:{for(let i=n+1;i<t.length;++i)if(!e.resolveDisabled(t[i],i,t))return i;return o}case 3:{for(let i=t.length-1;i>=0;--i)if(!e.resolveDisabled(t[i],i,t))return i;return o}case 4:{for(let i=0;i<t.length;++i)if(e.resolveId(t[i],i,t)===r.id)return i;return o}case 5:return null;default:Wv(r)}}function Nm(r={},e=null,t=[]){for(let[o,n]of Object.entries(r))Mm(t,Bm(e,o),n);return t}function Bm(r,e){return r?r+"["+e+"]":e}function Mm(r,e,t){if(Array.isArray(t))for(let[o,n]of t.entries())Mm(r,Bm(e,o.toString()),n);else t instanceof Date?r.push([e,t.toISOString()]):typeof t=="boolean"?r.push([e,t?"1":"0"]):typeof t=="string"?r.push([e,t]):typeof t=="number"?r.push([e,`${t}`]):t==null?r.push([e,""]):Nm(t,e,r)}let Tm=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Om(r){var e,t;let o=(e=r.innerText)!=null?e:"",n=r.cloneNode(!0);if(!(n instanceof HTMLElement))return o;let i=!1;for(let l of n.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))l.remove(),i=!0;let a=i?(t=n.innerText)!=null?t:"":o;return Tm.test(a)&&(a=a.replace(Tm,"")),a}function Uv(r){let e=r.getAttribute("aria-label");if(typeof e=="string")return e.trim();let t=r.getAttribute("aria-labelledby");if(t){let o=t.split(" ").map(n=>{let i=document.getElementById(n);if(i){let a=i.getAttribute("aria-label");return typeof a=="string"?a.trim():Om(i).trim()}return null}).filter(Boolean);if(o.length>0)return o.join(", ")}return Om(r).trim()}function Kv(r){let e=s.ref(""),t=s.ref("");return()=>{let o=pe(r);if(!o)return"";let n=o.innerText;if(e.value===n)return t.value;let i=Uv(o).trim().toLowerCase();return e.value=n,t.value=i,i}}function Jv(r,e){return r===e}var Gv=(r=>(r[r.Open=0]="Open",r[r.Closed=1]="Closed",r))(Gv||{}),Yv=(r=>(r[r.Single=0]="Single",r[r.Multi=1]="Multi",r))(Yv||{}),Xv=(r=>(r[r.Pointer=0]="Pointer",r[r.Other=1]="Other",r))(Xv||{});function Qv(r){requestAnimationFrame(()=>requestAnimationFrame(r))}let Vm=Symbol("ListboxContext");function cn(r){let e=s.inject(Vm,null);if(e===null){let t=new Error(`<${r} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,cn),t}return e}let pn=s.defineComponent({name:"Listbox",emits:{"update:modelValue":r=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>Jv},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(r,{slots:e,attrs:t,emit:o}){let n=s.ref(1),i=s.ref(null),a=s.ref(null),l=s.ref(null),d=s.ref([]),c=s.ref(""),p=s.ref(null),u=s.ref(1);function m(x=w=>w){let w=p.value!==null?d.value[p.value]:null,S=Tv(x(d.value.slice()),C=>pe(C.dataRef.domRef)),v=w?S.indexOf(w):null;return v===-1&&(v=null),{options:S,activeOptionIndex:v}}let h=s.computed(()=>r.multiple?1:0),[g,f]=wv(s.computed(()=>r.modelValue),x=>o("update:modelValue",x),s.computed(()=>r.defaultValue)),b=s.computed(()=>g.value===void 0?ct(h.value,{1:[],0:void 0}):g.value),y={listboxState:n,value:b,mode:h,compare(x,w){if(typeof r.by=="string"){let S=r.by;return(x==null?void 0:x[S])===(w==null?void 0:w[S])}return r.by(x,w)},orientation:s.computed(()=>r.horizontal?"horizontal":"vertical"),labelRef:i,buttonRef:a,optionsRef:l,disabled:s.computed(()=>r.disabled),options:d,searchQuery:c,activeOptionIndex:p,activationTrigger:u,closeListbox(){r.disabled||n.value!==1&&(n.value=1,p.value=null)},openListbox(){r.disabled||n.value!==0&&(n.value=0)},goToOption(x,w,S){if(r.disabled||n.value===1)return;let v=m(),C=qv(x===Re.Specific?{focus:Re.Specific,id:w}:{focus:x},{resolveItems:()=>v.options,resolveActiveIndex:()=>v.activeOptionIndex,resolveId:O=>O.id,resolveDisabled:O=>O.dataRef.disabled});c.value="",p.value=C,u.value=S??1,d.value=v.options},search(x){if(r.disabled||n.value===1)return;let w=c.value!==""?0:1;c.value+=x.toLowerCase();let S=(p.value!==null?d.value.slice(p.value+w).concat(d.value.slice(0,p.value+w)):d.value).find(C=>C.dataRef.textValue.startsWith(c.value)&&!C.dataRef.disabled),v=S?d.value.indexOf(S):-1;v===-1||v===p.value||(p.value=v,u.value=1)},clearSearch(){r.disabled||n.value!==1&&c.value!==""&&(c.value="")},registerOption(x,w){let S=m(v=>[...v,{id:x,dataRef:w}]);d.value=S.options,p.value=S.activeOptionIndex},unregisterOption(x){let w=m(S=>{let v=S.findIndex(C=>C.id===x);return v!==-1&&S.splice(v,1),S});d.value=w.options,p.value=w.activeOptionIndex,u.value=1},theirOnChange(x){r.disabled||f(x)},select(x){r.disabled||f(ct(h.value,{0:()=>x,1:()=>{let w=s.toRaw(y.value.value).slice(),S=s.toRaw(x),v=w.findIndex(C=>y.compare(S,s.toRaw(C)));return v===-1?w.push(S):w.splice(v,1),w}}))}};Dv([a,l],(x,w)=>{var S;y.closeListbox(),wm(w,Bl.Loose)||(x.preventDefault(),(S=pe(a))==null||S.focus())},s.computed(()=>n.value===0)),s.provide(Vm,y),Hv(s.computed(()=>ct(n.value,{0:dn.Open,1:dn.Closed})));let k=s.computed(()=>{var x;return(x=pe(a))==null?void 0:x.closest("form")});return s.onMounted(()=>{s.watch([k],()=>{if(!k.value||r.defaultValue===void 0)return;function x(){y.theirOnChange(r.defaultValue)}return k.value.addEventListener("reset",x),()=>{var w;(w=k.value)==null||w.removeEventListener("reset",x)}},{immediate:!0})}),()=>{let{name:x,modelValue:w,disabled:S,form:v,...C}=r,O={open:n.value===0,disabled:S,value:b.value};return s.h(s.Fragment,[...x!=null&&b.value!=null?Nm({[x]:b.value}).map(([D,B])=>s.h(Fv,zv({features:Sm.Hidden,key:D,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:v,disabled:S,name:D,value:B}))):[],lo({ourProps:{},theirProps:{...t,...Em(C,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:O,slots:e,attrs:t,name:"Listbox"})])}}});s.defineComponent({name:"ListboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(r,{attrs:e,slots:t}){var o;let n=(o=r.id)!=null?o:`headlessui-listbox-label-${$i()}`,i=cn("ListboxLabel");function a(){var l;(l=pe(i.buttonRef))==null||l.focus({preventScroll:!0})}return()=>{let l={open:i.listboxState.value===0,disabled:i.disabled.value},{...d}=r,c={id:n,ref:i.labelRef,onClick:a};return lo({ourProps:c,theirProps:d,slot:l,attrs:e,slots:t,name:"ListboxLabel"})}}});let un=s.defineComponent({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(r,{attrs:e,slots:t,expose:o}){var n;let i=(n=r.id)!=null?n:`headlessui-listbox-button-${$i()}`,a=cn("ListboxButton");o({el:a.buttonRef,$el:a.buttonRef});function l(u){switch(u.key){case ve.Space:case ve.Enter:case ve.ArrowDown:u.preventDefault(),a.openListbox(),s.nextTick(()=>{var m;(m=pe(a.optionsRef))==null||m.focus({preventScroll:!0}),a.value.value||a.goToOption(Re.First)});break;case ve.ArrowUp:u.preventDefault(),a.openListbox(),s.nextTick(()=>{var m;(m=pe(a.optionsRef))==null||m.focus({preventScroll:!0}),a.value.value||a.goToOption(Re.Last)});break}}function d(u){switch(u.key){case ve.Space:u.preventDefault();break}}function c(u){a.disabled.value||(a.listboxState.value===0?(a.closeListbox(),s.nextTick(()=>{var m;return(m=pe(a.buttonRef))==null?void 0:m.focus({preventScroll:!0})})):(u.preventDefault(),a.openListbox(),Qv(()=>{var m;return(m=pe(a.optionsRef))==null?void 0:m.focus({preventScroll:!0})})))}let p=Iv(s.computed(()=>({as:r.as,type:e.type})),a.buttonRef);return()=>{var u,m;let h={open:a.listboxState.value===0,disabled:a.disabled.value,value:a.value.value},{...g}=r,f={ref:a.buttonRef,id:i,type:p.value,"aria-haspopup":"listbox","aria-controls":(u=pe(a.optionsRef))==null?void 0:u.id,"aria-expanded":a.listboxState.value===0,"aria-labelledby":a.labelRef.value?[(m=pe(a.labelRef))==null?void 0:m.id,i].join(" "):void 0,disabled:a.disabled.value===!0?!0:void 0,onKeydown:l,onKeyup:d,onClick:c};return lo({ourProps:f,theirProps:g,slot:h,attrs:e,slots:t,name:"ListboxButton"})}}}),mn=s.defineComponent({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(r,{attrs:e,slots:t,expose:o}){var n;let i=(n=r.id)!=null?n:`headlessui-listbox-options-${$i()}`,a=cn("ListboxOptions"),l=s.ref(null);o({el:a.optionsRef,$el:a.optionsRef});function d(u){switch(l.value&&clearTimeout(l.value),u.key){case ve.Space:if(a.searchQuery.value!=="")return u.preventDefault(),u.stopPropagation(),a.search(u.key);case ve.Enter:if(u.preventDefault(),u.stopPropagation(),a.activeOptionIndex.value!==null){let m=a.options.value[a.activeOptionIndex.value];a.select(m.dataRef.value)}a.mode.value===0&&(a.closeListbox(),s.nextTick(()=>{var m;return(m=pe(a.buttonRef))==null?void 0:m.focus({preventScroll:!0})}));break;case ct(a.orientation.value,{vertical:ve.ArrowDown,horizontal:ve.ArrowRight}):return u.preventDefault(),u.stopPropagation(),a.goToOption(Re.Next);case ct(a.orientation.value,{vertical:ve.ArrowUp,horizontal:ve.ArrowLeft}):return u.preventDefault(),u.stopPropagation(),a.goToOption(Re.Previous);case ve.Home:case ve.PageUp:return u.preventDefault(),u.stopPropagation(),a.goToOption(Re.First);case ve.End:case ve.PageDown:return u.preventDefault(),u.stopPropagation(),a.goToOption(Re.Last);case ve.Escape:u.preventDefault(),u.stopPropagation(),a.closeListbox(),s.nextTick(()=>{var m;return(m=pe(a.buttonRef))==null?void 0:m.focus({preventScroll:!0})});break;case ve.Tab:u.preventDefault(),u.stopPropagation();break;default:u.key.length===1&&(a.search(u.key),l.value=setTimeout(()=>a.clearSearch(),350));break}}let c=jv(),p=s.computed(()=>c!==null?(c.value&dn.Open)===dn.Open:a.listboxState.value===0);return()=>{var u,m;let h={open:a.listboxState.value===0},{...g}=r,f={"aria-activedescendant":a.activeOptionIndex.value===null||(u=a.options.value[a.activeOptionIndex.value])==null?void 0:u.id,"aria-multiselectable":a.mode.value===1?!0:void 0,"aria-labelledby":(m=pe(a.buttonRef))==null?void 0:m.id,"aria-orientation":a.orientation.value,id:i,onKeydown:d,role:"listbox",tabIndex:0,ref:a.optionsRef};return lo({ourProps:f,theirProps:g,slot:h,attrs:e,slots:t,features:Ml.RenderStrategy|Ml.Static,visible:p.value,name:"ListboxOptions"})}}}),hn=s.defineComponent({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(r,{slots:e,attrs:t,expose:o}){var n;let i=(n=r.id)!=null?n:`headlessui-listbox-option-${$i()}`,a=cn("ListboxOption"),l=s.ref(null);o({el:l,$el:l});let d=s.computed(()=>a.activeOptionIndex.value!==null?a.options.value[a.activeOptionIndex.value].id===i:!1),c=s.computed(()=>ct(a.mode.value,{0:()=>a.compare(s.toRaw(a.value.value),s.toRaw(r.value)),1:()=>s.toRaw(a.value.value).some(x=>a.compare(s.toRaw(x),s.toRaw(r.value)))})),p=s.computed(()=>ct(a.mode.value,{1:()=>{var x;let w=s.toRaw(a.value.value);return((x=a.options.value.find(S=>w.some(v=>a.compare(s.toRaw(v),s.toRaw(S.dataRef.value)))))==null?void 0:x.id)===i},0:()=>c.value})),u=Kv(l),m=s.computed(()=>({disabled:r.disabled,value:r.value,get textValue(){return u()},domRef:l}));s.onMounted(()=>a.registerOption(i,m)),s.onUnmounted(()=>a.unregisterOption(i)),s.onMounted(()=>{s.watch([a.listboxState,c],()=>{a.listboxState.value===0&&c.value&&ct(a.mode.value,{1:()=>{p.value&&a.goToOption(Re.Specific,i)},0:()=>{a.goToOption(Re.Specific,i)}})},{immediate:!0})}),s.watchEffect(()=>{a.listboxState.value===0&&d.value&&a.activationTrigger.value!==0&&s.nextTick(()=>{var x,w;return(w=(x=pe(l))==null?void 0:x.scrollIntoView)==null?void 0:w.call(x,{block:"nearest"})})});function h(x){if(r.disabled)return x.preventDefault();a.select(r.value),a.mode.value===0&&(a.closeListbox(),s.nextTick(()=>{var w;return(w=pe(a.buttonRef))==null?void 0:w.focus({preventScroll:!0})}))}function g(){if(r.disabled)return a.goToOption(Re.Nothing);a.goToOption(Re.Specific,i)}let f=Lv();function b(x){f.update(x)}function y(x){f.wasMoved(x)&&(r.disabled||d.value||a.goToOption(Re.Specific,i,0))}function k(x){f.wasMoved(x)&&(r.disabled||d.value&&a.goToOption(Re.Nothing))}return()=>{let{disabled:x}=r,w={active:d.value,selected:c.value,disabled:x},{value:S,disabled:v,...C}=r,O={id:i,ref:l,role:"option",tabIndex:x===!0?void 0:-1,"aria-disabled":x===!0?!0:void 0,"aria-selected":c.value,disabled:void 0,onClick:h,onFocus:g,onPointerenter:b,onMouseenter:b,onPointermove:y,onMousemove:y,onPointerleave:k,onMouseleave:k};return lo({ourProps:O,theirProps:C,slot:w,attrs:t,slots:e,name:"ListboxOption"})}}});const Zv={class:"relative"},$v={key:0,class:"flex gap-2 items-center"},e2={key:1,class:"flex items-center gap-2"},t2={class:"block truncate text-[12.5px]"},r2={key:0,class:"flex items-center"},o2={key:1,class:"flex items-center"},n2={class:"ml-3"},i2={__name:"TextColorEditor",setup(r){const e=se,t=new ce(e),o=s.ref(null),n=s.computed(()=>e.getTextColor);return s.watch(n,async i=>{o.value=i,await t.initializeElementStyles()},{immediate:!0}),(i,a)=>(s.openBlock(),s.createBlock(s.unref(pn),{as:"div",modelValue:o.value,"onUpdate:modelValue":a[1]||(a[1]=l=>o.value=l)},{default:s.withCtx(()=>[s.createElementVNode("div",Zv,[s.createVNode(s.unref(un),{class:"w-max flex items-center myPrimaryTag"},{default:s.withCtx(()=>{var l;return[n.value==="none"?(s.openBlock(),s.createElementBlock("div",$v,a[2]||(a[2]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," format_color_text ",-1),s.createElementVNode("span",{class:"block truncate text-[12.5px]"},"Text color",-1)]))):s.createCommentVNode("",!0),o.value!=="none"?(s.openBlock(),s.createElementBlock("div",e2,[s.createElementVNode("div",{class:s.normalizeClass(["aspect-square w-6 h-6 border border-gray-800 rounded-sm",`bg-${(l=o.value)==null?void 0:l.replace("text-","")}`])},null,2),s.createElementVNode("span",t2,s.toDisplayString(o.value),1)])):s.createCommentVNode("",!0)]}),_:1}),s.createVNode(s.Transition,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:s.withCtx(()=>[s.createVNode(s.unref(mn),{class:"absolute min-w-[12rem] z-40 mt-1 max-h-56 w-full overflow-auto rounded-md bg-gray-50 py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(vn).textColorVariables,l=>(s.openBlock(),s.createBlock(s.unref(hn),{as:"template",onClick:a[0]||(a[0]=d=>s.unref(t).handleTextColor(o.value)),key:l,value:l},{default:s.withCtx(({active:d,textColor:c})=>[s.createElementVNode("li",{class:s.normalizeClass([d?"bg-myPrimaryLinkColor text-white":"text-myPrimaryDarkGrayColor","relative cursor-default select-none py-2 pl-3 pr-9"])},[l==="none"?(s.openBlock(),s.createElementBlock("div",r2,a[3]||(a[3]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," invert_colors ",-1),s.createElementVNode("span",{class:"ml-3"},"Default black",-1)]))):s.createCommentVNode("",!0),l!=="none"?(s.openBlock(),s.createElementBlock("div",o2,[s.createElementVNode("div",{class:s.normalizeClass(["aspect-square w-6 h-6 border border-gray-100 rounded-sm",`bg-${l.replace("text-","")}`])},null,2),s.createElementVNode("span",n2,s.toDisplayString(l),1)])):s.createCommentVNode("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["modelValue"]))}},a2={class:"relative"},s2={key:0,class:"flex gap-2 items-center"},l2={key:1,class:"flex items-center gap-2"},d2={class:"block truncate"},c2={key:0,class:"flex items-center"},p2={key:1,class:"flex items-center"},u2={class:"ml-3"},m2={__name:"BackgroundColorEditor",setup(r){const e=se,t=new ce(e),o=s.ref(null),n=s.computed(()=>e.getBackgroundColor);return s.watch(n,async i=>{o.value=i,await t.initializeElementStyles()},{immediate:!0}),(i,a)=>(s.openBlock(),s.createBlock(s.unref(pn),{as:"div",modelValue:o.value,"onUpdate:modelValue":a[1]||(a[1]=l=>o.value=l)},{default:s.withCtx(()=>[s.createElementVNode("div",a2,[s.createVNode(s.unref(un),{class:"w-max flex items-center myPrimaryTag"},{default:s.withCtx(()=>{var l;return[n.value==="none"?(s.openBlock(),s.createElementBlock("div",s2,a[2]||(a[2]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," colors ",-1),s.createElementVNode("span",{class:"block truncate text-[12.5px]"},"Background color ",-1)]))):s.createCommentVNode("",!0),o.value!=="none"?(s.openBlock(),s.createElementBlock("div",l2,[s.createElementVNode("div",{class:s.normalizeClass(["aspect-square w-6 h-6 border border-gray-800 rounded-sm",`bg-${(l=o.value)==null?void 0:l.replace("bg-","")}`])},null,2),s.createElementVNode("span",d2,s.toDisplayString(o.value),1)])):s.createCommentVNode("",!0)]}),_:1}),s.createVNode(s.Transition,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:s.withCtx(()=>[s.createVNode(s.unref(mn),{class:"absolute min-w-[12rem] z-40 mt-1 max-h-56 w-full overflow-auto rounded-md bg-gray-50 py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(vn).backgroundColorVariables,l=>(s.openBlock(),s.createBlock(s.unref(hn),{as:"template",onClick:a[0]||(a[0]=d=>s.unref(t).handleBackgroundColor(o.value)),key:l,value:l},{default:s.withCtx(({active:d,backgroundColor:c})=>[s.createElementVNode("li",{class:s.normalizeClass([d?"bg-myPrimaryLinkColor text-white":"text-myPrimaryDarkGrayColor","relative cursor-default select-none py-2 pl-3 pr-9"])},[l==="none"?(s.openBlock(),s.createElementBlock("div",c2,a[3]||(a[3]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ",-1),s.createElementVNode("span",{class:"ml-3"},"Transparent",-1)]))):s.createCommentVNode("",!0),l!=="none"?(s.openBlock(),s.createElementBlock("div",p2,[s.createElementVNode("div",{class:s.normalizeClass(["aspect-square w-6 h-6 border border-gray-100 rounded-sm",`bg-${l.replace("bg-","")}`])},null,2),s.createElementVNode("span",u2,s.toDisplayString(l),1)])):s.createCommentVNode("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["modelValue"]))}},h2={class:"myInputGroup"},g2={class:"myPrimaryFormOrganizationHeaderDescriptionSection"},f2={class:"myPrimaryFormOrganizationHeader"},b2={key:0,class:"min-h-[2.5rem] flex items-center justify-start"},w2={class:"myPrimaryInputError mt-2 mb-0 py-0 self-start"},y2={class:"overflow-y-auto"},x2={class:"z-20 px-2 py-1 h-24 flex items-center justify-center mt-2 mx-2 border-b border-myPrimaryLightGrayColor"},v2={key:0,class:"px-2 flex items-center justify-start gap-2 w-max"},k2={class:"px-2"},E2={key:2,class:"px-2 flex items-center justify-start gap-2 w-max"},S2={key:3,class:"px-2"},C2={__name:"EditGetElement",setup(r){const e=se,t=s.inject("CustomMediaComponent"),o=new ce(e),n=s.computed(()=>e.getElement),i=s.computed(()=>{const J=e.getShowModalTipTap;return J&&y(),J}),a=s.computed(()=>e.getComponent),l=s.ref(""),d=s.ref(1),c=s.ref(""),p=s.ref(""),u=s.ref(""),m=s.ref(null),h=s.ref(null),g=s.ref(null),f=s.ref(null),b=s.ref(null),y=function(){o.toggleTipTapModal(!0),l.value="success",d.value=2,c.value="Manage Content",p.value=null,u.value=null,m.value=null,h.value="Save",g.value=function(){o.toggleTipTapModal(!1)},b.value=function(){o.toggleTipTapModal(!0)}},k=s.computed(()=>e.getBasePrimaryImage),x=s.ref(!1),w=s.ref(""),S=s.ref(""),v=s.ref(""),C=s.ref(null),O=s.ref(null),D=s.ref(null),B=function(){x.value=!0,w.value="Media Library",S.value=null,v.value="Close",C.value="Select image",D.value=function(){x.value=!1}},E=s.ref(null),P=s.ref(""),_=s.ref(!1),ee=function(){E.value=null;const J=/^https?:\/\//,z=s.ref(!0);return z.value=J.test(P.value),z.value===!1?(E.value="The provided URL is invalid. Please ensure that it begins with 'https://' for proper formatting and security.",!0):!1},re=function(){var z;E.value=null;const J=n.value&&((z=n.value.firstElementChild)==null?void 0:z.tagName)==="IFRAME"&&n.value.firstElementChild.hasAttribute("src")&&n.value.firstElementChild.getAttribute("src").trim()!==""?n.value.firstElementChild.src:"";P.value=J,_.value=!0,l.value="success",d.value=2,c.value="Add video url",p.value=null,u.value="Close",m.value="Save",h.value=null,g.value=function(){_.value=!1},f.value=function(){ee()||(n.value&&n.value.firstElementChild&&n.value.firstElementChild.tagName==="IFRAME"&&(P.value=P.value.replace("watch?v=","embed/"),P.value=P.value.replace(/&ab_channel=[^&]*/,"").replace(/&list=[^&]*/,"").replace(/&start_radio=[^&]*/,"").replace(/&t=[^&]*/,""),n.value.firstElementChild.src=P.value),_.value=!1)}};return(J,z)=>(s.openBlock(),s.createElementBlock("div",null,[s.createVNode(zr,{showDynamicModalBuilder:_.value,maxWidth:"2xl",type:l.value,gridColumnAmount:d.value,title:c.value,description:p.value,firstButtonText:u.value,secondButtonText:m.value,thirdButtonText:h.value,onFirstModalButtonFunctionDynamicModalBuilder:g.value,onSecondModalButtonFunctionDynamicModalBuilder:f.value,onThirdModalButtonFunctionDynamicModalBuilder:b.value},{default:s.withCtx(()=>[z[2]||(z[2]=s.createElementVNode("header",null,null,-1)),s.createElementVNode("main",null,[s.createElementVNode("div",h2,[s.createElementVNode("div",g2,[s.createElementVNode("div",f2,[z[1]||(z[1]=s.createElementVNode("label",{for:"video",class:"myPrimaryInputLabel"},"Video url:",-1)),s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":z[0]||(z[0]=X=>P.value=X),type:"text",class:"myPrimaryInput",name:"video"},null,512),[[s.vModelText,P.value]]),E.value?(s.openBlock(),s.createElementBlock("div",b2,[s.createElementVNode("p",w2,s.toDisplayString(E.value),1)])):s.createCommentVNode("",!0)])])])])]),_:1,__:[2]},8,["showDynamicModalBuilder","type","gridColumnAmount","title","description","firstButtonText","secondButtonText","thirdButtonText","onFirstModalButtonFunctionDynamicModalBuilder","onSecondModalButtonFunctionDynamicModalBuilder","onThirdModalButtonFunctionDynamicModalBuilder"]),s.createVNode(zr,{simpleModal:!0,showDynamicModalBuilder:i.value,maxWidth:"6xl",type:l.value,gridColumnAmount:d.value,title:c.value,description:p.value,firstButtonText:u.value,secondButtonText:m.value,thirdButtonText:h.value,onFirstModalButtonFunctionDynamicModalBuilder:g.value,onSecondModalButtonFunctionDynamicModalBuilder:f.value,onThirdModalButtonFunctionDynamicModalBuilder:b.value},{default:s.withCtx(()=>[z[3]||(z[3]=s.createElementVNode("header",null,null,-1)),s.createElementVNode("main",y2,[s.createVNode(pv)])]),_:1,__:[3]},8,["showDynamicModalBuilder","type","gridColumnAmount","title","description","firstButtonText","secondButtonText","thirdButtonText","onFirstModalButtonFunctionDynamicModalBuilder","onSecondModalButtonFunctionDynamicModalBuilder","onThirdModalButtonFunctionDynamicModalBuilder"]),s.createVNode(hm,{open:x.value,title:w.value,description:S.value,firstButtonText:v.value,secondButtonText:C.value,thirdButtonText:O.value,customMediaComponent:s.unref(t),onFirstMediaButtonFunction:D.value},null,8,["open","title","description","firstButtonText","secondButtonText","thirdButtonText","customMediaComponent","onFirstMediaButtonFunction"]),s.createElementVNode("div",x2,[s.createElementVNode("div",{class:s.normalizeClass(["flex items-center justify-center",{"rounded-full border border-gray-200 shadow-sm":n.value}])},[s.unref(o).ElOrFirstChildIsIframe()?(s.openBlock(),s.createElementBlock("div",v2,[s.createElementVNode("button",{onClick:re,type:"button",class:"myPrimaryTag"},z[4]||(z[4]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," play_circle ",-1),s.createElementVNode("span",null,"Add YouTube",-1)]))])):s.createCommentVNode("",!0),s.unref(o).isSelectedElementValidText()&&!s.unref(o).ElOrFirstChildIsIframe()?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("div",{class:"px-2 flex items-center justify-start gap-2 w-max"},[s.createElementVNode("button",{onClick:y,type:"button",class:"myPrimaryTag"},z[5]||(z[5]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," edit ",-1),s.createElementVNode("span",null,"Edit text and links",-1)]))]),s.createElementVNode("div",k2,[s.createVNode(i2)])],64)):s.createCommentVNode("",!0),n.value&&a.value&&k.value!==null&&!s.unref(o).ElOrFirstChildIsIframe()?(s.openBlock(),s.createElementBlock("div",E2,[s.createElementVNode("button",{onClick:B,type:"button",class:"myPrimaryTag"},z[6]||(z[6]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," add_photo_alternate ",-1),s.createElementVNode("span",null,"Update image",-1)]))])):s.createCommentVNode("",!0),n.value&&n.value.nodeType===1&&!k.value&&!s.unref(o).ElOrFirstChildIsIframe()?(s.openBlock(),s.createElementBlock("div",S2,[s.createVNode(m2)])):s.createCommentVNode("",!0)],2)])]))}},N2=[{html_code:`
|
|
130
|
+
`));let h=km((a=p.props)!=null?a:{},c,u),f=s.cloneVNode(p,h,!0);for(let g in h)g.startsWith("on")&&(f.props||(f.props={}),f.props[g]=h[g]);return f}return Array.isArray(d)&&d.length===1?d[0]:d}return s.h(l,Object.assign({},c,u),{default:()=>d})}function xm(r){return r.flatMap(e=>e.type===s.Fragment?xm(e.children):[e])}function km(...r){if(r.length===0)return{};if(r.length===1)return r[0];let e={},t={};for(let o of r)for(let n in o)n.startsWith("on")&&typeof o[n]=="function"?(t[n]!=null||(t[n]=[]),t[n].push(o[n])):e[n]=o[n];if(e.disabled||e["aria-disabled"])return Object.assign(e,Object.fromEntries(Object.keys(t).map(o=>[o,void 0])));for(let o in t)Object.assign(e,{[o](n,...i){let a=t[o];for(let l of a){if(n instanceof Event&&n.defaultPrevented)return;l(n,...i)}}});return e}function zx(r){let e=Object.assign({},r);for(let t in e)e[t]===void 0&&delete e[t];return e}function Em(r,e=[]){let t=Object.assign({},r);for(let o of e)o in t&&delete t[o];return t}function _x(r){return r==null?!1:typeof r.type=="string"||typeof r.type=="object"||typeof r.type=="function"}var Sm=(r=>(r[r.None=1]="None",r[r.Focusable=2]="Focusable",r[r.Hidden=4]="Hidden",r))(Sm||{});let Fx=s.defineComponent({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(r,{slots:e,attrs:t}){return()=>{var o;let{features:n,...i}=r,a={"aria-hidden":(n&2)===2?!0:(o=i["aria-hidden"])!=null?o:void 0,hidden:(n&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return lo({ourProps:a,theirProps:i,slot:{},attrs:t,slots:e,name:"Hidden"})}}}),Cm=Symbol("Context");var cn=(r=>(r[r.Open=1]="Open",r[r.Closed=2]="Closed",r[r.Closing=4]="Closing",r[r.Opening=8]="Opening",r))(cn||{});function jx(){return s.inject(Cm,null)}function Hx(r){s.provide(Cm,r)}var xe=(r=>(r.Space=" ",r.Enter="Enter",r.Escape="Escape",r.Backspace="Backspace",r.Delete="Delete",r.ArrowLeft="ArrowLeft",r.ArrowUp="ArrowUp",r.ArrowRight="ArrowRight",r.ArrowDown="ArrowDown",r.Home="Home",r.End="End",r.PageUp="PageUp",r.PageDown="PageDown",r.Tab="Tab",r))(xe||{});function Wx(r){throw new Error("Unexpected object: "+r)}var Re=(r=>(r[r.First=0]="First",r[r.Previous=1]="Previous",r[r.Next=2]="Next",r[r.Last=3]="Last",r[r.Specific=4]="Specific",r[r.Nothing=5]="Nothing",r))(Re||{});function qx(r,e){let t=e.resolveItems();if(t.length<=0)return null;let o=e.resolveActiveIndex(),n=o??-1;switch(r.focus){case 0:{for(let i=0;i<t.length;++i)if(!e.resolveDisabled(t[i],i,t))return i;return o}case 1:{n===-1&&(n=t.length);for(let i=n-1;i>=0;--i)if(!e.resolveDisabled(t[i],i,t))return i;return o}case 2:{for(let i=n+1;i<t.length;++i)if(!e.resolveDisabled(t[i],i,t))return i;return o}case 3:{for(let i=t.length-1;i>=0;--i)if(!e.resolveDisabled(t[i],i,t))return i;return o}case 4:{for(let i=0;i<t.length;++i)if(e.resolveId(t[i],i,t)===r.id)return i;return o}case 5:return null;default:Wx(r)}}function Nm(r={},e=null,t=[]){for(let[o,n]of Object.entries(r))Mm(t,Bm(e,o),n);return t}function Bm(r,e){return r?r+"["+e+"]":e}function Mm(r,e,t){if(Array.isArray(t))for(let[o,n]of t.entries())Mm(r,Bm(e,o.toString()),n);else t instanceof Date?r.push([e,t.toISOString()]):typeof t=="boolean"?r.push([e,t?"1":"0"]):typeof t=="string"?r.push([e,t]):typeof t=="number"?r.push([e,`${t}`]):t==null?r.push([e,""]):Nm(t,e,r)}let Tm=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Om(r){var e,t;let o=(e=r.innerText)!=null?e:"",n=r.cloneNode(!0);if(!(n instanceof HTMLElement))return o;let i=!1;for(let l of n.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))l.remove(),i=!0;let a=i?(t=n.innerText)!=null?t:"":o;return Tm.test(a)&&(a=a.replace(Tm,"")),a}function Ux(r){let e=r.getAttribute("aria-label");if(typeof e=="string")return e.trim();let t=r.getAttribute("aria-labelledby");if(t){let o=t.split(" ").map(n=>{let i=document.getElementById(n);if(i){let a=i.getAttribute("aria-label");return typeof a=="string"?a.trim():Om(i).trim()}return null}).filter(Boolean);if(o.length>0)return o.join(", ")}return Om(r).trim()}function Kx(r){let e=s.ref(""),t=s.ref("");return()=>{let o=ue(r);if(!o)return"";let n=o.innerText;if(e.value===n)return t.value;let i=Ux(o).trim().toLowerCase();return e.value=n,t.value=i,i}}function Jx(r,e){return r===e}var Gx=(r=>(r[r.Open=0]="Open",r[r.Closed=1]="Closed",r))(Gx||{}),Yx=(r=>(r[r.Single=0]="Single",r[r.Multi=1]="Multi",r))(Yx||{}),Xx=(r=>(r[r.Pointer=0]="Pointer",r[r.Other=1]="Other",r))(Xx||{});function Qx(r){requestAnimationFrame(()=>requestAnimationFrame(r))}let Vm=Symbol("ListboxContext");function dn(r){let e=s.inject(Vm,null);if(e===null){let t=new Error(`<${r} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,dn),t}return e}let un=s.defineComponent({name:"Listbox",emits:{"update:modelValue":r=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>Jx},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(r,{slots:e,attrs:t,emit:o}){let n=s.ref(1),i=s.ref(null),a=s.ref(null),l=s.ref(null),c=s.ref([]),d=s.ref(""),u=s.ref(null),p=s.ref(1);function m(v=w=>w){let w=u.value!==null?c.value[u.value]:null,S=Tx(v(c.value.slice()),C=>ue(C.dataRef.domRef)),x=w?S.indexOf(w):null;return x===-1&&(x=null),{options:S,activeOptionIndex:x}}let h=s.computed(()=>r.multiple?1:0),[f,g]=wx(s.computed(()=>r.modelValue),v=>o("update:modelValue",v),s.computed(()=>r.defaultValue)),b=s.computed(()=>f.value===void 0?dt(h.value,{1:[],0:void 0}):f.value),y={listboxState:n,value:b,mode:h,compare(v,w){if(typeof r.by=="string"){let S=r.by;return(v==null?void 0:v[S])===(w==null?void 0:w[S])}return r.by(v,w)},orientation:s.computed(()=>r.horizontal?"horizontal":"vertical"),labelRef:i,buttonRef:a,optionsRef:l,disabled:s.computed(()=>r.disabled),options:c,searchQuery:d,activeOptionIndex:u,activationTrigger:p,closeListbox(){r.disabled||n.value!==1&&(n.value=1,u.value=null)},openListbox(){r.disabled||n.value!==0&&(n.value=0)},goToOption(v,w,S){if(r.disabled||n.value===1)return;let x=m(),C=qx(v===Re.Specific?{focus:Re.Specific,id:w}:{focus:v},{resolveItems:()=>x.options,resolveActiveIndex:()=>x.activeOptionIndex,resolveId:O=>O.id,resolveDisabled:O=>O.dataRef.disabled});d.value="",u.value=C,p.value=S??1,c.value=x.options},search(v){if(r.disabled||n.value===1)return;let w=d.value!==""?0:1;d.value+=v.toLowerCase();let S=(u.value!==null?c.value.slice(u.value+w).concat(c.value.slice(0,u.value+w)):c.value).find(C=>C.dataRef.textValue.startsWith(d.value)&&!C.dataRef.disabled),x=S?c.value.indexOf(S):-1;x===-1||x===u.value||(u.value=x,p.value=1)},clearSearch(){r.disabled||n.value!==1&&d.value!==""&&(d.value="")},registerOption(v,w){let S=m(x=>[...x,{id:v,dataRef:w}]);c.value=S.options,u.value=S.activeOptionIndex},unregisterOption(v){let w=m(S=>{let x=S.findIndex(C=>C.id===v);return x!==-1&&S.splice(x,1),S});c.value=w.options,u.value=w.activeOptionIndex,p.value=1},theirOnChange(v){r.disabled||g(v)},select(v){r.disabled||g(dt(h.value,{0:()=>v,1:()=>{let w=s.toRaw(y.value.value).slice(),S=s.toRaw(v),x=w.findIndex(C=>y.compare(S,s.toRaw(C)));return x===-1?w.push(S):w.splice(x,1),w}}))}};Dx([a,l],(v,w)=>{var S;y.closeListbox(),wm(w,Bl.Loose)||(v.preventDefault(),(S=ue(a))==null||S.focus())},s.computed(()=>n.value===0)),s.provide(Vm,y),Hx(s.computed(()=>dt(n.value,{0:cn.Open,1:cn.Closed})));let k=s.computed(()=>{var v;return(v=ue(a))==null?void 0:v.closest("form")});return s.onMounted(()=>{s.watch([k],()=>{if(!k.value||r.defaultValue===void 0)return;function v(){y.theirOnChange(r.defaultValue)}return k.value.addEventListener("reset",v),()=>{var w;(w=k.value)==null||w.removeEventListener("reset",v)}},{immediate:!0})}),()=>{let{name:v,modelValue:w,disabled:S,form:x,...C}=r,O={open:n.value===0,disabled:S,value:b.value};return s.h(s.Fragment,[...v!=null&&b.value!=null?Nm({[v]:b.value}).map(([D,B])=>s.h(Fx,zx({features:Sm.Hidden,key:D,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:x,disabled:S,name:D,value:B}))):[],lo({ourProps:{},theirProps:{...t,...Em(C,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:O,slots:e,attrs:t,name:"Listbox"})])}}});s.defineComponent({name:"ListboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(r,{attrs:e,slots:t}){var o;let n=(o=r.id)!=null?o:`headlessui-listbox-label-${$i()}`,i=dn("ListboxLabel");function a(){var l;(l=ue(i.buttonRef))==null||l.focus({preventScroll:!0})}return()=>{let l={open:i.listboxState.value===0,disabled:i.disabled.value},{...c}=r,d={id:n,ref:i.labelRef,onClick:a};return lo({ourProps:d,theirProps:c,slot:l,attrs:e,slots:t,name:"ListboxLabel"})}}});let pn=s.defineComponent({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(r,{attrs:e,slots:t,expose:o}){var n;let i=(n=r.id)!=null?n:`headlessui-listbox-button-${$i()}`,a=dn("ListboxButton");o({el:a.buttonRef,$el:a.buttonRef});function l(p){switch(p.key){case xe.Space:case xe.Enter:case xe.ArrowDown:p.preventDefault(),a.openListbox(),s.nextTick(()=>{var m;(m=ue(a.optionsRef))==null||m.focus({preventScroll:!0}),a.value.value||a.goToOption(Re.First)});break;case xe.ArrowUp:p.preventDefault(),a.openListbox(),s.nextTick(()=>{var m;(m=ue(a.optionsRef))==null||m.focus({preventScroll:!0}),a.value.value||a.goToOption(Re.Last)});break}}function c(p){switch(p.key){case xe.Space:p.preventDefault();break}}function d(p){a.disabled.value||(a.listboxState.value===0?(a.closeListbox(),s.nextTick(()=>{var m;return(m=ue(a.buttonRef))==null?void 0:m.focus({preventScroll:!0})})):(p.preventDefault(),a.openListbox(),Qx(()=>{var m;return(m=ue(a.optionsRef))==null?void 0:m.focus({preventScroll:!0})})))}let u=Ix(s.computed(()=>({as:r.as,type:e.type})),a.buttonRef);return()=>{var p,m;let h={open:a.listboxState.value===0,disabled:a.disabled.value,value:a.value.value},{...f}=r,g={ref:a.buttonRef,id:i,type:u.value,"aria-haspopup":"listbox","aria-controls":(p=ue(a.optionsRef))==null?void 0:p.id,"aria-expanded":a.listboxState.value===0,"aria-labelledby":a.labelRef.value?[(m=ue(a.labelRef))==null?void 0:m.id,i].join(" "):void 0,disabled:a.disabled.value===!0?!0:void 0,onKeydown:l,onKeyup:c,onClick:d};return lo({ourProps:g,theirProps:f,slot:h,attrs:e,slots:t,name:"ListboxButton"})}}}),mn=s.defineComponent({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(r,{attrs:e,slots:t,expose:o}){var n;let i=(n=r.id)!=null?n:`headlessui-listbox-options-${$i()}`,a=dn("ListboxOptions"),l=s.ref(null);o({el:a.optionsRef,$el:a.optionsRef});function c(p){switch(l.value&&clearTimeout(l.value),p.key){case xe.Space:if(a.searchQuery.value!=="")return p.preventDefault(),p.stopPropagation(),a.search(p.key);case xe.Enter:if(p.preventDefault(),p.stopPropagation(),a.activeOptionIndex.value!==null){let m=a.options.value[a.activeOptionIndex.value];a.select(m.dataRef.value)}a.mode.value===0&&(a.closeListbox(),s.nextTick(()=>{var m;return(m=ue(a.buttonRef))==null?void 0:m.focus({preventScroll:!0})}));break;case dt(a.orientation.value,{vertical:xe.ArrowDown,horizontal:xe.ArrowRight}):return p.preventDefault(),p.stopPropagation(),a.goToOption(Re.Next);case dt(a.orientation.value,{vertical:xe.ArrowUp,horizontal:xe.ArrowLeft}):return p.preventDefault(),p.stopPropagation(),a.goToOption(Re.Previous);case xe.Home:case xe.PageUp:return p.preventDefault(),p.stopPropagation(),a.goToOption(Re.First);case xe.End:case xe.PageDown:return p.preventDefault(),p.stopPropagation(),a.goToOption(Re.Last);case xe.Escape:p.preventDefault(),p.stopPropagation(),a.closeListbox(),s.nextTick(()=>{var m;return(m=ue(a.buttonRef))==null?void 0:m.focus({preventScroll:!0})});break;case xe.Tab:p.preventDefault(),p.stopPropagation();break;default:p.key.length===1&&(a.search(p.key),l.value=setTimeout(()=>a.clearSearch(),350));break}}let d=jx(),u=s.computed(()=>d!==null?(d.value&cn.Open)===cn.Open:a.listboxState.value===0);return()=>{var p,m;let h={open:a.listboxState.value===0},{...f}=r,g={"aria-activedescendant":a.activeOptionIndex.value===null||(p=a.options.value[a.activeOptionIndex.value])==null?void 0:p.id,"aria-multiselectable":a.mode.value===1?!0:void 0,"aria-labelledby":(m=ue(a.buttonRef))==null?void 0:m.id,"aria-orientation":a.orientation.value,id:i,onKeydown:c,role:"listbox",tabIndex:0,ref:a.optionsRef};return lo({ourProps:g,theirProps:f,slot:h,attrs:e,slots:t,features:Ml.RenderStrategy|Ml.Static,visible:u.value,name:"ListboxOptions"})}}}),hn=s.defineComponent({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(r,{slots:e,attrs:t,expose:o}){var n;let i=(n=r.id)!=null?n:`headlessui-listbox-option-${$i()}`,a=dn("ListboxOption"),l=s.ref(null);o({el:l,$el:l});let c=s.computed(()=>a.activeOptionIndex.value!==null?a.options.value[a.activeOptionIndex.value].id===i:!1),d=s.computed(()=>dt(a.mode.value,{0:()=>a.compare(s.toRaw(a.value.value),s.toRaw(r.value)),1:()=>s.toRaw(a.value.value).some(v=>a.compare(s.toRaw(v),s.toRaw(r.value)))})),u=s.computed(()=>dt(a.mode.value,{1:()=>{var v;let w=s.toRaw(a.value.value);return((v=a.options.value.find(S=>w.some(x=>a.compare(s.toRaw(x),s.toRaw(S.dataRef.value)))))==null?void 0:v.id)===i},0:()=>d.value})),p=Kx(l),m=s.computed(()=>({disabled:r.disabled,value:r.value,get textValue(){return p()},domRef:l}));s.onMounted(()=>a.registerOption(i,m)),s.onUnmounted(()=>a.unregisterOption(i)),s.onMounted(()=>{s.watch([a.listboxState,d],()=>{a.listboxState.value===0&&d.value&&dt(a.mode.value,{1:()=>{u.value&&a.goToOption(Re.Specific,i)},0:()=>{a.goToOption(Re.Specific,i)}})},{immediate:!0})}),s.watchEffect(()=>{a.listboxState.value===0&&c.value&&a.activationTrigger.value!==0&&s.nextTick(()=>{var v,w;return(w=(v=ue(l))==null?void 0:v.scrollIntoView)==null?void 0:w.call(v,{block:"nearest"})})});function h(v){if(r.disabled)return v.preventDefault();a.select(r.value),a.mode.value===0&&(a.closeListbox(),s.nextTick(()=>{var w;return(w=ue(a.buttonRef))==null?void 0:w.focus({preventScroll:!0})}))}function f(){if(r.disabled)return a.goToOption(Re.Nothing);a.goToOption(Re.Specific,i)}let g=Lx();function b(v){g.update(v)}function y(v){g.wasMoved(v)&&(r.disabled||c.value||a.goToOption(Re.Specific,i,0))}function k(v){g.wasMoved(v)&&(r.disabled||c.value&&a.goToOption(Re.Nothing))}return()=>{let{disabled:v}=r,w={active:c.value,selected:d.value,disabled:v},{value:S,disabled:x,...C}=r,O={id:i,ref:l,role:"option",tabIndex:v===!0?void 0:-1,"aria-disabled":v===!0?!0:void 0,"aria-selected":d.value,disabled:void 0,onClick:h,onFocus:f,onPointerenter:b,onMouseenter:b,onPointermove:y,onMousemove:y,onPointerleave:k,onMouseleave:k};return lo({ourProps:O,theirProps:C,slot:w,attrs:t,slots:e,name:"ListboxOption"})}}});const Zx={class:"relative"},$x={key:0,class:"flex gap-2 items-center"},e2={key:1,class:"flex items-center gap-2"},t2={class:"block truncate text-[12.5px]"},r2={key:0,class:"flex items-center"},o2={key:1,class:"flex items-center"},n2={class:"ml-3"},i2={__name:"TextColorEditor",setup(r){const e=se,t=new de(e),o=s.ref(null),n=s.computed(()=>e.getTextColor);return s.watch(n,async i=>{o.value=i,await t.initializeElementStyles()},{immediate:!0}),(i,a)=>(s.openBlock(),s.createBlock(s.unref(un),{as:"div",modelValue:o.value,"onUpdate:modelValue":a[1]||(a[1]=l=>o.value=l)},{default:s.withCtx(()=>[s.createElementVNode("div",Zx,[s.createVNode(s.unref(pn),{class:"w-max flex items-center myPrimaryTag"},{default:s.withCtx(()=>{var l;return[n.value==="none"?(s.openBlock(),s.createElementBlock("div",$x,a[2]||(a[2]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," format_color_text ",-1),s.createElementVNode("span",{class:"block truncate text-[12.5px]"},"Text color",-1)]))):s.createCommentVNode("",!0),o.value!=="none"?(s.openBlock(),s.createElementBlock("div",e2,[s.createElementVNode("div",{class:s.normalizeClass(["aspect-square w-6 h-6 border border-gray-800 rounded-sm",`bg-${(l=o.value)==null?void 0:l.replace("text-","")}`])},null,2),s.createElementVNode("span",t2,s.toDisplayString(o.value),1)])):s.createCommentVNode("",!0)]}),_:1}),s.createVNode(s.Transition,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:s.withCtx(()=>[s.createVNode(s.unref(mn),{class:"absolute min-w-[12rem] z-40 mt-1 max-h-56 w-full overflow-auto rounded-md bg-gray-50 py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(xn).textColorVariables,l=>(s.openBlock(),s.createBlock(s.unref(hn),{as:"template",onClick:a[0]||(a[0]=c=>s.unref(t).handleTextColor(o.value)),key:l,value:l},{default:s.withCtx(({active:c,textColor:d})=>[s.createElementVNode("li",{class:s.normalizeClass([c?"bg-myPrimaryLinkColor text-white":"text-myPrimaryDarkGrayColor","relative cursor-default select-none py-2 pl-3 pr-9"])},[l==="none"?(s.openBlock(),s.createElementBlock("div",r2,a[3]||(a[3]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," invert_colors ",-1),s.createElementVNode("span",{class:"ml-3"},"Default black",-1)]))):s.createCommentVNode("",!0),l!=="none"?(s.openBlock(),s.createElementBlock("div",o2,[s.createElementVNode("div",{class:s.normalizeClass(["aspect-square w-6 h-6 border border-gray-100 rounded-sm",`bg-${l.replace("text-","")}`])},null,2),s.createElementVNode("span",n2,s.toDisplayString(l),1)])):s.createCommentVNode("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["modelValue"]))}},a2={class:"relative"},s2={key:0,class:"flex gap-2 items-center"},l2={key:1,class:"flex items-center gap-2"},c2={class:"block truncate"},d2={key:0,class:"flex items-center"},u2={key:1,class:"flex items-center"},p2={class:"ml-3"},m2={__name:"BackgroundColorEditor",setup(r){const e=se,t=new de(e),o=s.ref(null),n=s.computed(()=>e.getBackgroundColor);return s.watch(n,async i=>{o.value=i,await t.initializeElementStyles()},{immediate:!0}),(i,a)=>(s.openBlock(),s.createBlock(s.unref(un),{as:"div",modelValue:o.value,"onUpdate:modelValue":a[1]||(a[1]=l=>o.value=l)},{default:s.withCtx(()=>[s.createElementVNode("div",a2,[s.createVNode(s.unref(pn),{class:"w-max flex items-center myPrimaryTag"},{default:s.withCtx(()=>{var l;return[n.value==="none"?(s.openBlock(),s.createElementBlock("div",s2,a[2]||(a[2]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," colors ",-1),s.createElementVNode("span",{class:"block truncate text-[12.5px]"},"Background color ",-1)]))):s.createCommentVNode("",!0),o.value!=="none"?(s.openBlock(),s.createElementBlock("div",l2,[s.createElementVNode("div",{class:s.normalizeClass(["aspect-square w-6 h-6 border border-gray-800 rounded-sm",`bg-${(l=o.value)==null?void 0:l.replace("bg-","")}`])},null,2),s.createElementVNode("span",c2,s.toDisplayString(o.value),1)])):s.createCommentVNode("",!0)]}),_:1}),s.createVNode(s.Transition,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:s.withCtx(()=>[s.createVNode(s.unref(mn),{class:"absolute min-w-[12rem] z-40 mt-1 max-h-56 w-full overflow-auto rounded-md bg-gray-50 py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(xn).backgroundColorVariables,l=>(s.openBlock(),s.createBlock(s.unref(hn),{as:"template",onClick:a[0]||(a[0]=c=>s.unref(t).handleBackgroundColor(o.value)),key:l,value:l},{default:s.withCtx(({active:c,backgroundColor:d})=>[s.createElementVNode("li",{class:s.normalizeClass([c?"bg-myPrimaryLinkColor text-white":"text-myPrimaryDarkGrayColor","relative cursor-default select-none py-2 pl-3 pr-9"])},[l==="none"?(s.openBlock(),s.createElementBlock("div",d2,a[3]||(a[3]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ",-1),s.createElementVNode("span",{class:"ml-3"},"Transparent",-1)]))):s.createCommentVNode("",!0),l!=="none"?(s.openBlock(),s.createElementBlock("div",u2,[s.createElementVNode("div",{class:s.normalizeClass(["aspect-square w-6 h-6 border border-gray-100 rounded-sm",`bg-${l.replace("bg-","")}`])},null,2),s.createElementVNode("span",p2,s.toDisplayString(l),1)])):s.createCommentVNode("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["modelValue"]))}},h2={class:"myInputGroup"},f2={class:"myPrimaryFormOrganizationHeaderDescriptionSection"},g2={class:"myPrimaryFormOrganizationHeader"},b2={key:0,class:"min-h-[2.5rem] flex items-center justify-start"},w2={class:"myPrimaryInputError mt-2 mb-0 py-0 self-start"},y2={class:"overflow-y-auto"},v2={class:"z-20 px-2 py-1 h-24 flex items-center justify-center mt-2 mx-2 border-b border-myPrimaryLightGrayColor"},x2={key:0,class:"px-2 flex items-center justify-start gap-2 w-max"},k2={class:"px-2"},E2={key:2,class:"px-2 flex items-center justify-start gap-2 w-max"},S2={key:3,class:"px-2"},C2={__name:"EditGetElement",setup(r){const e=se,t=s.inject("CustomMediaComponent"),o=new de(e),n=s.computed(()=>e.getElement),i=s.computed(()=>{const J=e.getShowModalTipTap;return J&&y(),J}),a=s.computed(()=>e.getComponent),l=s.ref(""),c=s.ref(1),d=s.ref(""),u=s.ref(""),p=s.ref(""),m=s.ref(null),h=s.ref(null),f=s.ref(null),g=s.ref(null),b=s.ref(null),y=function(){o.toggleTipTapModal(!0),l.value="success",c.value=2,d.value="Manage Content",u.value=null,p.value=null,m.value=null,h.value="Save",f.value=function(){o.toggleTipTapModal(!1)},b.value=function(){o.toggleTipTapModal(!0)}},k=s.computed(()=>e.getBasePrimaryImage),v=s.ref(!1),w=s.ref(""),S=s.ref(""),x=s.ref(""),C=s.ref(null),O=s.ref(null),D=s.ref(null),B=function(){v.value=!0,w.value="Media Library",S.value=null,x.value="Close",C.value="Select image",D.value=function(){v.value=!1}},E=s.ref(null),P=s.ref(""),_=s.ref(!1),ee=function(){E.value=null;const J=/^https?:\/\//,z=s.ref(!0);return z.value=J.test(P.value),z.value===!1?(E.value="The provided URL is invalid. Please ensure that it begins with 'https://' for proper formatting and security.",!0):!1},re=function(){var z;E.value=null;const J=n.value&&((z=n.value.firstElementChild)==null?void 0:z.tagName)==="IFRAME"&&n.value.firstElementChild.hasAttribute("src")&&n.value.firstElementChild.getAttribute("src").trim()!==""?n.value.firstElementChild.src:"";P.value=J,_.value=!0,l.value="success",c.value=2,d.value="Add video url",u.value=null,p.value="Close",m.value="Save",h.value=null,f.value=function(){_.value=!1},g.value=function(){ee()||(n.value&&n.value.firstElementChild&&n.value.firstElementChild.tagName==="IFRAME"&&(P.value=P.value.replace("watch?v=","embed/"),P.value=P.value.replace(/&ab_channel=[^&]*/,"").replace(/&list=[^&]*/,"").replace(/&start_radio=[^&]*/,"").replace(/&t=[^&]*/,""),n.value.firstElementChild.src=P.value),_.value=!1)}};return(J,z)=>(s.openBlock(),s.createElementBlock("div",null,[s.createVNode(zr,{showDynamicModalBuilder:_.value,maxWidth:"2xl",type:l.value,gridColumnAmount:c.value,title:d.value,description:u.value,firstButtonText:p.value,secondButtonText:m.value,thirdButtonText:h.value,onFirstModalButtonFunctionDynamicModalBuilder:f.value,onSecondModalButtonFunctionDynamicModalBuilder:g.value,onThirdModalButtonFunctionDynamicModalBuilder:b.value},{default:s.withCtx(()=>[z[2]||(z[2]=s.createElementVNode("header",null,null,-1)),s.createElementVNode("main",null,[s.createElementVNode("div",h2,[s.createElementVNode("div",f2,[s.createElementVNode("div",g2,[z[1]||(z[1]=s.createElementVNode("label",{for:"video",class:"myPrimaryInputLabel"},"Video url:",-1)),s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":z[0]||(z[0]=X=>P.value=X),type:"text",class:"myPrimaryInput",name:"video"},null,512),[[s.vModelText,P.value]]),E.value?(s.openBlock(),s.createElementBlock("div",b2,[s.createElementVNode("p",w2,s.toDisplayString(E.value),1)])):s.createCommentVNode("",!0)])])])])]),_:1,__:[2]},8,["showDynamicModalBuilder","type","gridColumnAmount","title","description","firstButtonText","secondButtonText","thirdButtonText","onFirstModalButtonFunctionDynamicModalBuilder","onSecondModalButtonFunctionDynamicModalBuilder","onThirdModalButtonFunctionDynamicModalBuilder"]),s.createVNode(zr,{simpleModal:!0,showDynamicModalBuilder:i.value,maxWidth:"6xl",type:l.value,gridColumnAmount:c.value,title:d.value,description:u.value,firstButtonText:p.value,secondButtonText:m.value,thirdButtonText:h.value,onFirstModalButtonFunctionDynamicModalBuilder:f.value,onSecondModalButtonFunctionDynamicModalBuilder:g.value,onThirdModalButtonFunctionDynamicModalBuilder:b.value},{default:s.withCtx(()=>[z[3]||(z[3]=s.createElementVNode("header",null,null,-1)),s.createElementVNode("main",y2,[s.createVNode(ux)])]),_:1,__:[3]},8,["showDynamicModalBuilder","type","gridColumnAmount","title","description","firstButtonText","secondButtonText","thirdButtonText","onFirstModalButtonFunctionDynamicModalBuilder","onSecondModalButtonFunctionDynamicModalBuilder","onThirdModalButtonFunctionDynamicModalBuilder"]),s.createVNode(hm,{open:v.value,title:w.value,description:S.value,firstButtonText:x.value,secondButtonText:C.value,thirdButtonText:O.value,customMediaComponent:s.unref(t),onFirstMediaButtonFunction:D.value},null,8,["open","title","description","firstButtonText","secondButtonText","thirdButtonText","customMediaComponent","onFirstMediaButtonFunction"]),s.createElementVNode("div",v2,[s.createElementVNode("div",{class:s.normalizeClass(["flex items-center justify-center",{"rounded-full border border-gray-200 shadow-sm":n.value}])},[s.unref(o).ElOrFirstChildIsIframe()?(s.openBlock(),s.createElementBlock("div",x2,[s.createElementVNode("button",{onClick:re,type:"button",class:"myPrimaryTag"},z[4]||(z[4]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," play_circle ",-1),s.createElementVNode("span",null,"Add YouTube",-1)]))])):s.createCommentVNode("",!0),s.unref(o).isSelectedElementValidText()&&!s.unref(o).ElOrFirstChildIsIframe()?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("div",{class:"px-2 flex items-center justify-start gap-2 w-max"},[s.createElementVNode("button",{onClick:y,type:"button",class:"myPrimaryTag"},z[5]||(z[5]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," edit ",-1),s.createElementVNode("span",null,"Edit text and links",-1)]))]),s.createElementVNode("div",k2,[s.createVNode(i2)])],64)):s.createCommentVNode("",!0),n.value&&a.value&&k.value!==null&&!s.unref(o).ElOrFirstChildIsIframe()?(s.openBlock(),s.createElementBlock("div",E2,[s.createElementVNode("button",{onClick:B,type:"button",class:"myPrimaryTag"},z[6]||(z[6]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," add_photo_alternate ",-1),s.createElementVNode("span",null,"Update image",-1)]))])):s.createCommentVNode("",!0),n.value&&n.value.nodeType===1&&!k.value&&!s.unref(o).ElOrFirstChildIsIframe()?(s.openBlock(),s.createElementBlock("div",S2,[s.createVNode(m2)])):s.createCommentVNode("",!0)],2)])]))}},N2=[{html_code:`
|
|
131
131
|
<section>
|
|
132
132
|
<div class="relative py-4">
|
|
133
133
|
<div class="mx-auto max-w-7xl lg:px-4 px-2">
|
|
@@ -541,6 +541,6 @@ class="flex items-centre justify-start font-medium text-black bg-gray-200">
|
|
|
541
541
|
<div class="w-full md:pt-12 md:pb-12 pt-4 pb-4 lg:px-4 px-2"><div class="mx-auto max-w-7xl"><div class="myPrimaryGap grid grid-cols-1 sm:grid-cols-3 lg:grid-cols-3"> <div class="flex-1 py-2"> <img class="object-cover w-full object-top aspect-square smooth-transition" src="${$}" alt="provider"> <div class="break-words py-2"><p>Layouts and visual.</p><p>Ullamcorper dignissim cras tincidunt.</p></div> </div> <div class="flex-1 py-2"> <img class="object-cover w-full object-top aspect-square smooth-transition" src="${$}" alt="provider"> <div class="break-words py-2"><p>Layouts and visual.</p><p>Ullamcorper dignissim cras tincidunt.</p></div> </div> <div class="flex-1 py-2"> <img class="object-cover w-full object-top aspect-square smooth-transition" src="${$}" alt="provider"> <div class="break-words py-2"><p>Layouts and visual.</p><p>Ullamcorper dignissim cras tincidunt.</p></div> </div> </div> </div> </div>
|
|
542
542
|
</section>`,cover_image:null},{title:"2 Square Images With Text",html_code:`<section>
|
|
543
543
|
<div class="w-full md:pt-12 md:pb-12 pt-4 pb-4 lg:px-4 px-2"><div class="mx-auto max-w-7xl"><div class="myPrimaryGap grid grid-cols-2 sm:grid-cols-2 lg:grid-cols-2"> <div class="flex-1 py-2"> <img class="object-cover w-full object-top aspect-square smooth-transition" src="${$}" alt="provider"> <div class="break-words py-2"><p>Layouts and visual.</p><p>Ullamcorper dignissim cras tincidunt.</p></div> </div> <div class="flex-1 py-2"> <img class="object-cover w-full object-top aspect-square smooth-transition" src="${$}" alt="provider"> <div class="break-words py-2"><p>Layouts and visual.</p><p>Ullamcorper dignissim cras tincidunt.</p></div> </div> </div> </div> </div>
|
|
544
|
-
</section>`,cover_image:null}]}}];function Pm(){const r=s.inject("closeAddComponentModal",null),e=s.inject("closeMediaLibraryModal",null);return{closeAddComponentModal:r||(()=>{console.warn("closeAddComponentModal function not available. Make sure you are using this within a PageBuilder context.")}),closeMediaLibraryModal:e||(()=>{console.warn("closeMediaLibraryModal function not available. Make sure you are using this within a MediaLibraryModal context.")})}}const O2={class:"mb-8"},V2={class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4"},P2=["onClick"],A2={class:"max-h-72 cursor-pointer object-contain bg-white mx-auto"},D2={class:"myPrimaryParagraph text-base font-medium"},I2={class:"myPrimaryParagraph text-xs font-normal pt-2"},L2={class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4"},R2=["onClick"],z2={class:"overflow-hidden whitespace-pre-line flex-1 h-auto border-b border-gray-200 lg:py-10 py-8 px-2"},_2=["innerHTML"],F2={class:"p-3"},j2={class:"myPrimaryParagraph text-sm font-normal"},H2=Cl(s.defineComponent({__name:"DefaultBuilderComponents",setup(r){const{closeAddComponentModal:e}=Pm(),t=se,o=new ce(t),n=async function(l){await o.addComponent(l),e()},i=function(l){return{id:null,html_code:l.html_code,title:l.title}},a=l=>M2(l);return(l,d)=>(s.openBlock(),s.createElementBlock("div",null,[s.createElementVNode("div",O2,[d[0]||(d[0]=s.createElementVNode("h3",{class:"myQuaternaryHeader mb-4"},"Helper Components",-1)),s.createElementVNode("div",V2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(N2),c=>(s.openBlock(),s.createElementBlock("div",{key:c.title,class:"border border-gray-200 overflow-hidden hover:border-myPrimaryLinkColor duration-100 cursor-pointer p-4",onClick:p=>n(c)},[s.createElementVNode("div",A2,[s.createCommentVNode("",!0),s.createElementVNode("h4",D2,s.toDisplayString(c.title),1)]),s.createElementVNode("div",I2," Click to add "+s.toDisplayString(c.title.toLowerCase())+" component ",1)],8,P2))),128))])]),s.createElementVNode("div",null,[d[2]||(d[2]=s.createElementVNode("h3",{class:"myQuaternaryHeader mb-4"},"Layout Components",-1)),s.createElementVNode("div",L2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(T2)[0].components.data,c=>(s.openBlock(),s.createElementBlock("div",{key:c.title,class:"border border-gray-200 overflow-hidden hover:border-myPrimaryLinkColor duration-100 cursor-pointer",onClick:p=>n(i(c))},[s.createElementVNode("div",z2,[s.createElementVNode("div",{class:"max-h-72 cursor-pointer bg-white mx-auto flex items-center justify-center",innerHTML:a(c.title)},null,8,_2)]),s.createElementVNode("div",F2,[s.createElementVNode("h4",j2,s.toDisplayString(c.title),1),d[1]||(d[1]=s.createElementVNode("div",{class:"myPrimaryParagraph text-xs font-normal pt-2"},"Click to add component",-1))])],8,R2))),128))])])]))}}),[["__scopeId","data-v-f343d494"]]),W2={class:"w-full inset-x-0 bg-white overflow-x-scroll lg:pt-2 pt-2"},q2={key:0},U2={key:1,class:"h-[75vh]"},K2={class:"py-4 flex sm:justify-end justify-center border-t border-gray-200 mt-4"},J2={class:"sm:w-3/6 w-full px-2 my-2 flex gap-2 justify-end"},G2={__name:"BuilderComponents",props:{firstButtonText:{required:!0},title:{required:!0},show:{type:Boolean,default:!1,required:!0},CustomBuilderComponents:{type:Object,default:null}},emits:["firstModalButtonSearchComponentsFunction"],setup(r,{emit:e}){const t=e,o=function(){t("firstModalButtonSearchComponentsFunction")};return(n,i)=>(s.openBlock(),s.createBlock(Dr,{title:r.title,maxWidth:"7xl",showModalBuilder:r.show,onCloseMainModalBuilder:o,minHeight:"",maxHeight:""},{default:s.withCtx(()=>[s.createElementVNode("div",W2,[s.createElementVNode("div",null,[r.CustomBuilderComponents?(s.openBlock(),s.createElementBlock("div",q2,[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(r.CustomBuilderComponents)))])):(s.openBlock(),s.createElementBlock("div",U2,[s.createVNode(H2)]))])]),s.createElementVNode("div",K2,[s.createElementVNode("div",J2,[r.firstButtonText?(s.openBlock(),s.createElementBlock("button",{key:0,ref:"firstButtonRef",class:"mySecondaryButton",type:"button",onClick:o},s.toDisplayString(r.firstButtonText),513)):s.createCommentVNode("",!0)])])]),_:1},8,["title","showModalBuilder"]))}},Y2={setup(){return{expanded:s.ref(!1)}}},X2={class:"myPrimaryParagraph font-medium my-0 py-0"},Q2={key:0,class:"material-symbols-outlined"},Z2={key:1,class:"material-symbols-outlined"};function $2(r,e,t,o,n,i){return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["flex flex-col border border-gray-400",{"pb-8":o.expanded}])},[s.createElementVNode("div",{class:"flex flex-row justify-between items-center pl-3 pr-3 py-5 cursor-pointer duration-200 hover:bg-myPrimaryLightGrayColor border-b border-gray-200",onClick:e[0]||(e[0]=a=>o.expanded=!o.expanded)},[s.createElementVNode("p",X2,[s.renderSlot(r.$slots,"title")]),o.expanded?(s.openBlock(),s.createElementBlock("span",Q2," keyboard_arrow_down ")):s.createCommentVNode("",!0),o.expanded?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("span",Z2," chevron_right "))]),s.createElementVNode("div",{class:s.normalizeClass([[o.expanded?"block":"hidden"],"px-4 ease-linear duration-75"])},[s.renderSlot(r.$slots,"content")],2)],2)}const co=Cl(Y2,[["render",$2]]),e5={class:"flex flex-row flex-wrap gap-2 mt-2 mb-4"},t5=["onClick"],r5={class:"flex items-center gap-1"},o5={class:"mr-1"},n5={class:"flex gap-2 item-center flex-col"},i5={class:"flex gap-2 item-center"},a5={class:"mt-1 relative flex items-center w-full border myPrimaryInput py-0 p-0"},s5={__name:"ClassEditor",setup(r){const e=se,t=new ce(e),o=s.ref(null),n=s.computed(()=>e.getCurrentClasses);s.watch(n,l=>{o.value=l},{immediate:!0});const i=s.ref(""),a=async function(){t.handleAddClasses(i.value),await t.initializeElementStyles(),i.value=""};return(l,d)=>(s.openBlock(),s.createBlock(co,null,{title:s.withCtx(()=>d[2]||(d[2]=[s.createTextVNode("Generated CSS")])),content:s.withCtx(()=>[s.createElementVNode("div",e5,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.value,c=>(s.openBlock(),s.createElementBlock("div",{key:c,class:"myPrimaryTag cursor-pointer hover:bg-myPrimaryErrorColor hover:text-white text-xs py-2 font-medium",onClick:async()=>{s.unref(t).handleRemoveClasses(c),await s.unref(t).initializeElementStyles()}},[s.createElementVNode("div",r5,[s.createElementVNode("span",o5,s.toDisplayString(c),1)])],8,t5))),128))]),s.createElementVNode("div",n5,[s.createElementVNode("div",i5,[s.createElementVNode("div",a5,[s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":d[0]||(d[0]=c=>i.value=c),type:"text",placeholder:"Type class",onKeydown:d[1]||(d[1]=s.withKeys(c=>a(),["enter"])),autocomplete:"off",class:"myPrimaryInput border-none rounded-r-none ml-0 w-full"},null,544),[[s.vModelText,i.value]]),d[3]||(d[3]=s.createElementVNode("div",{class:"border border-gray-200 border-none rounded flex items-center justify-center h-full w-8"},[s.createElementVNode("kbd",{class:"myPrimaryParagraph text-gray-400 border-none"}," ⏎ ")],-1))])]),d[4]||(d[4]=s.createElementVNode("p",{class:"myPrimaryInputError"},null,-1))])]),_:1}))}};function l5(r){return new Promise((e,t)=>{const o=new window.Image;o.onload=e,o.onerror=t,o.src=r})}const d5=["src"],c5={__name:"ImageEditor",setup(r){const e=se,t=s.inject("CustomMediaComponent");new ce(e),s.ref(!1);const o=s.ref(!1),n=s.ref(!1),i=s.ref(""),a=s.ref(""),l=s.ref(""),d=s.ref(null),c=s.ref(null),p=s.ref(null),u=s.computed(()=>(e.getBasePrimaryImage&&h(e.getBasePrimaryImage),e.getBasePrimaryImage));s.computed(()=>e.getElement);const m=function(){n.value=!0,i.value="Media Library",a.value=null,l.value="Close",d.value="Select image",p.value=function(){n.value=!1}},h=async function(g){o.value=!0,g&&typeof g=="string"&&g.length>2&&(await l5(g),await wa(200),o.value=!1)};return(g,f)=>(s.openBlock(),s.createElementBlock("div",null,[s.withDirectives(s.createElementVNode("div",null,f[0]||(f[0]=[s.createElementVNode("div",{class:"flex items-center justify-center mt-4 min-h-80"},[s.createElementVNode("div",{class:"inline-block h-8 w-8 animate-spin rounded-full border-4 border-solid border-current border-r-transparent align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite]"},[s.createElementVNode("span",{class:"!absolute !-m-px !h-px !w-px !overflow-hidden !whitespace-nowrap !border-0 !p-0 ![clip:rect(0,0,0,0)]"},"Loading...")])],-1)]),512),[[s.vShow,o.value]]),s.withDirectives(s.createElementVNode("div",null,[s.createElementVNode("img",{class:"object-cover object-center w-full cursor-pointer",src:u.value,onClick:m,alt:"image"},null,8,d5)],512),[[s.vShow,u.value&&!o.value]]),s.createVNode(hm,{open:n.value,title:i.value,description:a.value,firstButtonText:l.value,secondButtonText:d.value,thirdButtonText:c.value,customMediaComponent:s.unref(t),onFirstMediaButtonFunction:p.value},null,8,["open","title","description","firstButtonText","secondButtonText","thirdButtonText","customMediaComponent","onFirstMediaButtonFunction"])]))}},p5={class:"my-2 py-2"},u5={class:"relative"},m5={class:"flex items-center gap-2"},h5={key:0},g5={class:"flex items-center"},f5={key:0,class:"aspect-square w-6 h-6"},b5={key:2,class:"ml-3"},w5={key:3,class:"ml-3"},y5={__name:"ManageBackgroundOpacity",setup(r){const e=se,t=new ce(e),o=s.ref(null),n=s.computed(()=>e.getBackgroundOpacity);return s.watch(n,async i=>{o.value=i,await t.initializeElementStyles()},{immediate:!0}),(i,a)=>(s.openBlock(),s.createElementBlock("div",p5,[a[4]||(a[4]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Background opacity",-1)),s.createVNode(s.unref(pn),{as:"div",modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=l=>o.value=l)},{default:s.withCtx(()=>[s.createElementVNode("div",u5,[s.createVNode(s.unref(un),{class:"myPrimarySelect"},{default:s.withCtx(()=>[s.createElementVNode("span",m5,[o.value==="none"?(s.openBlock(),s.createElementBlock("div",h5,a[1]||(a[1]=[s.createElementVNode("div",{class:"myPrimaryColorPreview border-none"},[s.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ")],-1)]))):s.createCommentVNode("",!0),o.value!=="none"?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["aspect-square w-6 h-6 bg-gray-950",`${o.value}`])},null,2)):s.createCommentVNode("",!0),s.createElementVNode("span",{class:s.normalizeClass(["block truncate",[(o.value!=="none","")]])},s.toDisplayString(o.value==="none"?"Transparent":o.value),3)]),a[2]||(a[2]=s.createElementVNode("span",{class:"pointer-events-none absolute inset-y-0 right-0 ml-3 flex items-center pr-2"},[s.createElementVNode("span",{class:"material-symbols-outlined"}," keyboard_arrow_down ")],-1))]),_:1,__:[2]}),s.createVNode(s.Transition,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:s.withCtx(()=>[s.createVNode(s.unref(mn),{class:"absolute z-10 mt-1 max-h-56 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(kn).backgroundOpacities,l=>(s.openBlock(),s.createBlock(s.unref(hn),{as:"template",onClick:d=>s.unref(t).handleBackgroundOpacity(l),key:l,value:l},{default:s.withCtx(({active:d})=>[s.createElementVNode("li",{class:s.normalizeClass([d?"bg-myPrimaryLinkColor text-white":"text-myPrimaryDarkGrayColor","relative cursor-default select-none py-2 pl-3 pr-9"])},[s.createElementVNode("div",g5,[l==="none"?(s.openBlock(),s.createElementBlock("div",f5,a[3]||(a[3]=[s.createElementVNode("div",{class:"myPrimaryColorPreview border-none"},[s.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ")],-1)]))):s.createCommentVNode("",!0),l!=="none"?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["aspect-square w-6 h-6 bg-gray-950",`${l}`])},null,2)):s.createCommentVNode("",!0),l!=="none"?(s.openBlock(),s.createElementBlock("span",b5,s.toDisplayString(l),1)):s.createCommentVNode("",!0),l==="none"?(s.openBlock(),s.createElementBlock("span",w5,"Transparent")):s.createCommentVNode("",!0)])],2)]),_:2},1032,["onClick","value"]))),128))]),_:1})]),_:1})])]),_:1},8,["modelValue"])]))}},x5={class:"my-2 py-2"},v5={class:"relative"},k5={class:"flex items-center gap-2"},E5={key:0},S5={class:"flex items-center"},C5={key:0},N5={key:2,class:"ml-3"},B5={key:3,class:"ml-3"},M5={__name:"ManageOpacity",setup(r){const e=se,t=new ce(e),o=s.ref(null),n=s.computed(()=>e.getOpacity);return s.watch(n,async i=>{o.value=i,await t.initializeElementStyles()},{immediate:!0}),(i,a)=>(s.openBlock(),s.createElementBlock("div",x5,[a[4]||(a[4]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Opacity",-1)),s.createVNode(s.unref(pn),{as:"div",modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=l=>o.value=l)},{default:s.withCtx(()=>[s.createElementVNode("div",v5,[s.createVNode(s.unref(un),{class:"myPrimarySelect"},{default:s.withCtx(()=>[s.createElementVNode("span",k5,[o.value==="none"?(s.openBlock(),s.createElementBlock("div",E5,a[1]||(a[1]=[s.createElementVNode("div",{class:"myPrimaryColorPreview border-none"},[s.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ")],-1)]))):s.createCommentVNode("",!0),o.value!=="none"?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["aspect-square w-6 h-6 bg-gray-950",`${o.value}`])},null,2)):s.createCommentVNode("",!0),s.createElementVNode("span",{class:s.normalizeClass(["block truncate",[(o.value!=="none","")]])},s.toDisplayString(o.value==="none"?"Transparent":o.value),3)]),a[2]||(a[2]=s.createElementVNode("span",{class:"pointer-events-none absolute inset-y-0 right-0 ml-3 flex items-center pr-2"},[s.createElementVNode("span",{class:"material-symbols-outlined"}," keyboard_arrow_down ")],-1))]),_:1,__:[2]}),s.createVNode(s.Transition,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:s.withCtx(()=>[s.createVNode(s.unref(mn),{class:"absolute z-10 mt-1 max-h-56 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(kn).opacities,l=>(s.openBlock(),s.createBlock(s.unref(hn),{as:"template",onClick:d=>s.unref(t).handleOpacity(l),key:l,value:l},{default:s.withCtx(({active:d})=>[s.createElementVNode("li",{class:s.normalizeClass([d?"bg-myPrimaryLinkColor text-white":"text-myPrimaryDarkGrayColor","relative cursor-default select-none py-2 pl-3 pr-9"])},[s.createElementVNode("div",S5,[l==="none"?(s.openBlock(),s.createElementBlock("div",C5,a[3]||(a[3]=[s.createElementVNode("div",{class:"myPrimaryColorPreview border-none"},[s.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ")],-1)]))):s.createCommentVNode("",!0),l!=="none"?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["aspect-square w-6 h-6 bg-gray-950",`${l}`])},null,2)):s.createCommentVNode("",!0),l==="none"?(s.openBlock(),s.createElementBlock("span",N5,"Transparent")):s.createCommentVNode("",!0),l!=="none"?(s.openBlock(),s.createElementBlock("span",B5,s.toDisplayString(l),1)):s.createCommentVNode("",!0)])],2)]),_:2},1032,["onClick","value"]))),128))]),_:1})]),_:1})])]),_:1},8,["modelValue"])]))}},T5={__name:"OpacityEditor",setup(r){return(e,t)=>(s.openBlock(),s.createBlock(co,null,{title:s.withCtx(()=>t[0]||(t[0]=[s.createTextVNode("Opacity settings")])),content:s.withCtx(()=>[t[1]||(t[1]=s.createElementVNode("p",{class:"myPrimaryParagraph font-medium py-0 my-4"},"Opacity",-1)),s.createVNode(M5),s.createVNode(y5)]),_:1}))}},O5={class:"my-2 py-2"},V5={class:"my-2 py-2"},P5={class:"my-2 py-2"},A5={class:"my-2 py-2"},D5={__name:"PaddingPlusMargin",setup(r){const e=se,t=new ce(e),o=s.ref(null),n=s.ref(null),i=s.ref(null),a=s.ref(null),l=s.computed(()=>e.getFontVerticalPadding),d=s.computed(()=>e.getFontHorizontalPadding),c=s.computed(()=>e.getFontVerticalMargin),p=s.computed(()=>e.getFontHorizontalMargin);return s.watch(l,async u=>{o.value=u,await t.initializeElementStyles()},{immediate:!0}),s.watch(d,async u=>{n.value=u,await t.initializeElementStyles()},{immediate:!0}),s.watch(c,async u=>{i.value=u,await t.initializeElementStyles()},{immediate:!0}),s.watch(p,async u=>{a.value=u,await t.initializeElementStyles()},{immediate:!0}),(u,m)=>(s.openBlock(),s.createBlock(co,null,{title:s.withCtx(()=>m[8]||(m[8]=[s.createTextVNode("Padding & Margin")])),content:s.withCtx(()=>[m[17]||(m[17]=s.createElementVNode("p",{class:"myPrimaryParagraph font-medium py-0 my-4"},"Padding",-1)),s.createElementVNode("div",O5,[m[10]||(m[10]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Padding Y-axis ",-1)),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":m[0]||(m[0]=h=>o.value=h),class:"myPrimarySelect",onChange:m[1]||(m[1]=h=>s.unref(t).handleVerticalPadding(o.value))},[m[9]||(m[9]=s.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(_t).verticalPadding,h=>(s.openBlock(),s.createElementBlock("option",{key:h},s.toDisplayString(h),1))),128))],544),[[s.vModelSelect,o.value]])]),s.createElementVNode("div",V5,[m[12]||(m[12]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Padding X-axis ",-1)),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":m[2]||(m[2]=h=>n.value=h),class:"myPrimarySelect",onChange:m[3]||(m[3]=h=>s.unref(t).handleHorizontalPadding(n.value))},[m[11]||(m[11]=s.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(_t).horizontalPadding,h=>(s.openBlock(),s.createElementBlock("option",{key:h},s.toDisplayString(h),1))),128))],544),[[s.vModelSelect,n.value]])]),m[18]||(m[18]=s.createElementVNode("p",{class:"myPrimaryParagraph font-medium py-0 my-4"},"Margin",-1)),s.createElementVNode("div",P5,[m[14]||(m[14]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Margin Y-axis ",-1)),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":m[4]||(m[4]=h=>i.value=h),class:"myPrimarySelect",onChange:m[5]||(m[5]=h=>s.unref(t).handleVerticalMargin(i.value))},[m[13]||(m[13]=s.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(_t).verticalMargin,h=>(s.openBlock(),s.createElementBlock("option",{key:h},s.toDisplayString(h),1))),128))],544),[[s.vModelSelect,i.value]])]),s.createElementVNode("div",A5,[m[16]||(m[16]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Margin X-axis ",-1)),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":m[6]||(m[6]=h=>a.value=h),class:"myPrimarySelect",onChange:m[7]||(m[7]=h=>s.unref(t).handleHorizontalMargin(a.value))},[m[15]||(m[15]=s.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(_t).horizontalMargin,h=>(s.openBlock(),s.createElementBlock("option",{key:h},s.toDisplayString(h),1))),128))],544),[[s.vModelSelect,a.value]])])]),_:1}))}},I5={class:"my-2 py-2"},L5={class:"my-2 py-2"},R5={class:"my-2 py-2"},z5={class:"my-2 py-2"},_5={class:"my-2 py-2"},F5={__name:"BorderRadius",setup(r){const e=se,t=new ce(e),o=s.ref(null),n=s.ref(null),i=s.ref(null),a=s.ref(null),l=s.ref(null),d=s.computed(()=>e.getBorderRadiusGlobal),c=s.computed(()=>e.getBorderRadiusTopLeft),p=s.computed(()=>e.getBorderRadiusTopRight),u=s.computed(()=>e.getBorderRadiusBottomleft),m=s.computed(()=>e.getBorderRadiusBottomRight);return s.watch(d,async h=>{o.value=h,await t.initializeElementStyles()},{immediate:!0}),s.watch(c,async h=>{n.value=h,await t.initializeElementStyles()},{immediate:!0}),s.watch(p,async h=>{i.value=h,await t.initializeElementStyles()},{immediate:!0}),s.watch(u,async h=>{a.value=h,await t.initializeElementStyles()},{immediate:!0}),s.watch(m,async h=>{l.value=h,await t.initializeElementStyles()},{immediate:!0}),(h,g)=>(s.openBlock(),s.createBlock(co,null,{title:s.withCtx(()=>g[10]||(g[10]=[s.createTextVNode("Border Radius")])),content:s.withCtx(()=>[g[21]||(g[21]=s.createElementVNode("p",{class:"myPrimaryParagraph font-medium py-0 my-4"},"Global",-1)),s.createElementVNode("div",I5,[g[12]||(g[12]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Border Radius ",-1)),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":g[0]||(g[0]=f=>o.value=f),class:"myPrimarySelect",onChange:g[1]||(g[1]=f=>s.unref(t).handleBorderRadiusGlobal(o.value))},[g[11]||(g[11]=s.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(ut).roundedGlobal,f=>(s.openBlock(),s.createElementBlock("option",{key:f},s.toDisplayString(f),1))),128))],544),[[s.vModelSelect,o.value]])]),g[22]||(g[22]=s.createElementVNode("p",{class:"myPrimaryParagraph font-medium py-0 my-4"},"Specific",-1)),s.createElementVNode("div",L5,[g[14]||(g[14]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Border Radius top left ",-1)),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":g[2]||(g[2]=f=>n.value=f),class:"myPrimarySelect",onChange:g[3]||(g[3]=f=>s.unref(t).handleBorderRadiusTopLeft(n.value))},[g[13]||(g[13]=s.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(ut).roundedTopLeft,f=>(s.openBlock(),s.createElementBlock("option",{key:f},s.toDisplayString(f),1))),128))],544),[[s.vModelSelect,n.value]])]),s.createElementVNode("div",R5,[g[16]||(g[16]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Border Radius top right ",-1)),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":g[4]||(g[4]=f=>i.value=f),class:"myPrimarySelect",onChange:g[5]||(g[5]=f=>s.unref(t).handleBorderRadiusTopRight(i.value))},[g[15]||(g[15]=s.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(ut).roundedTopRight,f=>(s.openBlock(),s.createElementBlock("option",{key:f},s.toDisplayString(f),1))),128))],544),[[s.vModelSelect,i.value]])]),s.createElementVNode("div",z5,[g[18]||(g[18]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Border Radius bottom left ",-1)),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":g[6]||(g[6]=f=>a.value=f),class:"myPrimarySelect",onChange:g[7]||(g[7]=f=>s.unref(t).handleBorderRadiusBottomleft(a.value))},[g[17]||(g[17]=s.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(ut).roundedBottomLeft,f=>(s.openBlock(),s.createElementBlock("option",{key:f},s.toDisplayString(f),1))),128))],544),[[s.vModelSelect,a.value]])]),s.createElementVNode("div",_5,[g[20]||(g[20]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Border Radius bottom right ",-1)),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":g[8]||(g[8]=f=>l.value=f),class:"myPrimarySelect",onChange:g[9]||(g[9]=f=>s.unref(t).handleBorderRadiusBottomRight(l.value))},[g[19]||(g[19]=s.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(ut).roundedBottomRight,f=>(s.openBlock(),s.createElementBlock("option",{key:f},s.toDisplayString(f),1))),128))],544),[[s.vModelSelect,l.value]])])]),_:1}))}},j5={class:"my-2 py-2"},H5={class:"my-2 py-2"},W5={class:"relative mt-2"},q5={class:"flex items-center gap-2"},U5={key:0},K5={class:"block truncate"},J5={class:"flex items-center"},G5={key:0},Y5={key:2,class:"ml-3"},X5={key:3,class:"ml-3"},Q5={__name:"Borders",setup(r){const e=se,t=new ce(e),o=s.ref(null),n=s.ref(null),i=s.ref(null),a=s.computed(()=>e.getBorderStyle),l=s.computed(()=>e.getBorderWidth),d=s.computed(()=>e.getBorderColor);return s.watch(a,async c=>{o.value=c,await t.initializeElementStyles()},{immediate:!0}),s.watch(l,async c=>{n.value=c,await t.initializeElementStyles()},{immediate:!0}),s.watch(d,async c=>{i.value=c,await t.initializeElementStyles()},{immediate:!0}),(c,p)=>(s.openBlock(),s.createBlock(co,null,{title:s.withCtx(()=>p[6]||(p[6]=[s.createTextVNode("Border Style, Width & Color")])),content:s.withCtx(()=>[p[14]||(p[14]=s.createElementVNode("p",{class:"myPrimaryParagraph font-medium py-0 my-4"},"Border",-1)),s.createElementVNode("div",j5,[p[8]||(p[8]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Border Style ",-1)),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":p[0]||(p[0]=u=>o.value=u),class:"myPrimarySelect",onChange:p[1]||(p[1]=u=>s.unref(t).handleBorderStyle(o.value))},[p[7]||(p[7]=s.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(Ar).borderStyle,u=>(s.openBlock(),s.createElementBlock("option",{key:u},s.toDisplayString(u),1))),128))],544),[[s.vModelSelect,o.value]])]),s.createElementVNode("div",H5,[p[10]||(p[10]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Border Width ",-1)),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":p[2]||(p[2]=u=>n.value=u),class:"myPrimarySelect",onChange:p[3]||(p[3]=u=>s.unref(t).handleBorderWidth(n.value))},[p[9]||(p[9]=s.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(Ar).borderWidth,u=>(s.openBlock(),s.createElementBlock("option",{key:u},s.toDisplayString(u),1))),128))],544),[[s.vModelSelect,n.value]])]),p[15]||(p[15]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Border Color ",-1)),s.createVNode(s.unref(pn),{as:"div",modelValue:i.value,"onUpdate:modelValue":p[5]||(p[5]=u=>i.value=u)},{default:s.withCtx(()=>[s.createElementVNode("div",W5,[s.createVNode(s.unref(un),{class:"myPrimarySelect"},{default:s.withCtx(()=>{var u;return[s.createElementVNode("span",q5,[d.value==="none"?(s.openBlock(),s.createElementBlock("div",U5,p[11]||(p[11]=[s.createElementVNode("div",{class:"myPrimaryColorPreview border-none"},[s.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ")],-1)]))):s.createCommentVNode("",!0),i.value!=="none"?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["aspect-square w-6 h-6 border border-gray-100 rounded-sm",`bg-${(u=i.value)==null?void 0:u.replace("border-","")}`])},null,2)):s.createCommentVNode("",!0),s.createElementVNode("span",K5,s.toDisplayString(i.value),1)]),p[12]||(p[12]=s.createElementVNode("span",{class:"pointer-events-none absolute inset-y-0 right-0 ml-3 flex items-center pr-2"},[s.createElementVNode("span",{class:"material-symbols-outlined"}," keyboard_arrow_down ")],-1))]}),_:1,__:[12]}),s.createVNode(s.Transition,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:s.withCtx(()=>[s.createVNode(s.unref(mn),{class:"absolute z-10 mt-1 max-h-56 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(Ar).borderColor,u=>(s.openBlock(),s.createBlock(s.unref(hn),{as:"template",onClick:p[4]||(p[4]=m=>s.unref(t).handleBorderColor(i.value)),key:u,value:u},{default:s.withCtx(({active:m,borderColor:h})=>[s.createElementVNode("li",{class:s.normalizeClass([m?"bg-myPrimaryLinkColor text-white":"text-myPrimaryDarkGrayColor","relative cursor-default select-none py-2 pl-3 pr-9"])},[s.createElementVNode("div",J5,[u==="none"?(s.openBlock(),s.createElementBlock("div",G5,p[13]||(p[13]=[s.createElementVNode("div",{class:"myPrimaryColorPreview border-none"},[s.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ")],-1)]))):s.createCommentVNode("",!0),u!=="none"?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["aspect-square w-6 h-6 bg-gray-950",`bg-${u.replace("border-","")}`])},null,2)):s.createCommentVNode("",!0),u==="none"?(s.openBlock(),s.createElementBlock("span",Y5,"Transparent")):s.createCommentVNode("",!0),u!=="none"?(s.openBlock(),s.createElementBlock("span",X5,s.toDisplayString(u),1)):s.createCommentVNode("",!0)])],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["modelValue"])]),_:1}))}},Z5={class:"blockease-linear duration-200 block ease-linear"},$5={key:0,class:"flex items-center justify-center mb-6"},e3={class:"px-2 flex items-center justify-start gap-2 w-max"},t3=s.defineComponent({__name:"TipTap",setup(r){const e=se,t=new ce(e);return(o,n)=>(s.openBlock(),s.createElementBlock("div",null,[s.createElementVNode("div",Z5,[s.unref(t).isSelectedElementValidText()?(s.openBlock(),s.createElementBlock("div",$5,[s.createElementVNode("div",e3,[s.createElementVNode("button",{onClick:n[0]||(n[0]=i=>s.unref(t).toggleTipTapModal(!0)),type:"button",class:"myPrimaryTag"},n[1]||(n[1]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," edit ",-1),s.createElementVNode("span",null,"Edit text and links",-1)]))])])):s.createCommentVNode("",!0)])]))}}),r3={key:0,class:"border-b border-gray-200 mb-4 pb-8 pt-4"},o3={class:"px-2 flex items-center justify-start gap-2 w-max"},n3={class:"px-2 flex items-center justify-start gap-2 w-max"},i3={__name:"ElementEditor",setup(r){const e=se,t=new ce(e),o=s.computed(()=>e.getElement),n=s.computed(()=>e.getRestoredElement);return(i,a)=>o.value||n.value?(s.openBlock(),s.createBlock(co,{key:0},{title:s.withCtx(()=>a[2]||(a[2]=[s.createTextVNode("Selected HTML Element")])),content:s.withCtx(()=>[a[9]||(a[9]=s.createElementVNode("div",{class:"flex flex-row flex-wrap gap-2 mt-2"},null,-1)),n.value?(s.openBlock(),s.createElementBlock("div",r3,[a[4]||(a[4]=s.createElementVNode("p",{class:"myPrimaryParagraph font-medium py-0"},"Restore",-1)),a[5]||(a[5]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Restore the last deleted HTML element.",-1)),s.createElementVNode("div",o3,[s.createElementVNode("button",{onClick:a[0]||(a[0]=(...l)=>s.unref(t).handleRestoreElement&&s.unref(t).handleRestoreElement(...l)),type:"button",class:"myPrimaryButton w-full mt-4"},a[3]||(a[3]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," undo ",-1),s.createElementVNode("span",null,"Restore",-1)]))])])):s.createCommentVNode("",!0),o.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[a[7]||(a[7]=s.createElementVNode("p",{class:"myPrimaryParagraph font-medium py-0 mb-4 pt-4"},"Delete",-1)),a[8]||(a[8]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Delete the currently selected HTML element from the page.",-1)),s.createElementVNode("div",n3,[s.createElementVNode("button",{onClick:a[1]||(a[1]=(...l)=>s.unref(t).handleDeleteElement&&s.unref(t).handleDeleteElement(...l)),type:"button",class:"myPrimaryDeleteButton w-full mt-4"},a[6]||(a[6]=[s.createElementVNode("span",{class:"hover:text-white"},"Delete element",-1)]))])],64)):s.createCommentVNode("",!0)]),_:1})):s.createCommentVNode("",!0)}},a3={class:"flex max-h-[50rem] flex-col"},s3={class:"flex flex-row justify-between pt-7 pr-4 pl-4 items-center mb-3"},l3={class:"font-medium text-sm"},d3={class:"lowercase"},c3={class:"pl-3 pr-3 mb-4 overflow-y-scroll"},p3={class:"mb-1"},u3={class:"mb-1"},m3={class:"my-1 bg-white"},h3={class:"my-1 bg-white"},g3={class:"my-1 bg-white"},f3={class:"my-1 bg-white"},b3={class:"my-1 bg-white"},w3={class:"my-1 bg-white"},y3={__name:"RightSidebarEditor",emits:["closeEditor"],setup(r,{emit:e}){const t=se,o=new ce(t),n=s.computed(()=>t.getElement),i=s.computed(()=>{var a;return(a=n.value)==null?void 0:a.tagName});return s.computed(()=>n.value instanceof HTMLElement&&n.value.innerText.trim()!==" "||n.value instanceof HTMLImageElement),(a,l)=>(s.openBlock(),s.createElementBlock("div",a3,[s.createElementVNode("div",s3,[s.createElementVNode("button",{type:"button",onClick:l[0]||(l[0]=d=>a.$emit("closeEditor")),class:"h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0"},l[1]||(l[1]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," close ",-1)])),s.createElementVNode("p",l3,[l[2]||(l[2]=s.createTextVNode(" Editing ")),s.createElementVNode("span",d3,"<"+s.toDisplayString(i.value)+">",1)])]),s.createElementVNode("div",c3,[s.withDirectives(s.createElementVNode("div",null,[s.createElementVNode("article",p3,[s.createVNode(c5)]),s.createElementVNode("article",u3,[s.createVNode(t3)]),s.createCommentVNode("",!0),s.createElementVNode("article",m3,[s.createVNode(T5)]),s.createElementVNode("article",h3,[s.createVNode(D5)]),s.createElementVNode("article",g3,[s.createVNode(F5)]),s.createElementVNode("article",f3,[s.createVNode(Q5)]),s.createElementVNode("article",b3,[s.createVNode(s5)])],512),[[s.vShow,n.value&&s.unref(o).isEditableElement(n.value)]]),s.createElementVNode("div",null,[s.createElementVNode("article",w3,[s.createVNode(i3)])]),l[3]||(l[3]=s.createElementVNode("article",{class:"mt-1 bg-white"},null,-1))])]))}},po=function(r){return!r||typeof r=="object"&&r.constructor===Object&&Object.keys(r).length===0},x3=se,Ol=new ce(x3),v3=function(r){if(!r.updateOrCreate||r.updateOrCreate&&typeof r.updateOrCreate.formType!="string"||r.updateOrCreate&&po(r.updateOrCreate)){const e={...r,updateOrCreate:{formType:"create",formName:"post"}};return Ol.applyPageBuilderConfig(e),!0}if(r.updateOrCreate&&typeof r.updateOrCreate.formType=="string"&&r.updateOrCreate.formType!=="create"&&r.updateOrCreate.formType!=="update"&&typeof r.formName!="string"){const e={...r,updateOrCreate:{formType:"create",formName:"post"}};return Ol.applyPageBuilderConfig(e),!0}if(r.updateOrCreate&&typeof r.updateOrCreate.formType=="string"&&(r.updateOrCreate.formType==="create"||r.updateOrCreate.formType==="update")&&typeof r.updateOrCreate.formName!="string"||typeof r.updateOrCreate.formName=="string"&&r.updateOrCreate.formName.length===0){const e={...r,updateOrCreate:{formType:r.updateOrCreate.formType,formName:"post"}};return Ol.applyPageBuilderConfig(e),!0}},k3=`@import"https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100;0,200;0,300;0,400;0,500;1,100;1,200;1,300;1,400;1,500&display=swap";@import"https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&display=swap";@import"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Jost,Raleway,Cormorant,sans-serif,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}@media (forced-colors: active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.myPrimaryWidthScreenModule{margin-bottom:0}@media (min-width: 768px){.myPrimaryWidthScreenModule{margin-bottom:0}}.myPrimaryWidthScreenModule{padding-top:4rem;padding-bottom:4rem}@media (min-width: 768px){.myPrimaryWidthScreenModule{padding-top:7rem;padding-bottom:7rem}}.myPrimaryContentSection{margin-left:auto;margin-right:auto;max-width:80rem;padding-left:1rem;padding-right:1rem;padding-bottom:1.5rem}@media (min-width: 768px){.myPrimaryContentSection{padding-left:1rem;padding-right:1rem;padding-bottom:2rem}}@media (min-width: 1024px){.myPrimaryContentSection{padding-bottom:2.5rem}}.myPrimaryTag{margin-top:.5rem;margin-bottom:.5rem;display:inline-flex;min-height:3rem;align-items:center;justify-content:center;gap:.25rem;word-break:break-all;border-radius:9999px;border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(222 230 240 / var(--tw-bg-opacity, 1));padding:.5rem .75rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.myPrimaryTag:hover{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}@media (min-width: 640px){.myPrimaryTag{width:auto}}.myPrimaryParagraph{font-size:.875rem;line-height:1.25rem;font-weight:400;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}@media (min-width: 1024px){.myPrimaryParagraph{font-size:1rem;line-height:1.5rem}}.myPrimaryParagraphError{font-size:.875rem;line-height:1.25rem;font-weight:400;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}@media (min-width: 1024px){.myPrimaryParagraphError{font-size:1rem;line-height:1.5rem}}.myPrimaryParagraphError{margin-top:.25rem;font-style:italic;--tw-text-opacity: 1;color:rgb(214 0 0 / var(--tw-text-opacity, 1))}.mySecondaryHeader{margin-bottom:.5rem;overflow-wrap:break-word;font-family:Cormorant;font-size:1.875rem;line-height:2.25rem;font-weight:500;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.mySecondaryHeader{margin-bottom:1rem;font-size:2.25rem;line-height:2.5rem}}@media (min-width: 1024px){.mySecondaryHeader{margin-bottom:2rem;font-size:3rem;line-height:1}}.myTertiaryHeader{margin-bottom:.5rem;overflow-wrap:break-word;font-size:1.5rem;line-height:2rem;font-weight:500;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.myTertiaryHeader{margin-bottom:1rem;font-size:1.5rem;line-height:2rem}}@media (min-width: 1024px){.myTertiaryHeader{margin-bottom:2rem;font-size:1.875rem;line-height:2.25rem}}.myQuaternaryHeader{margin-bottom:.5rem;overflow-wrap:break-word;font-size:1rem;line-height:1.5rem;font-weight:500;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.myQuaternaryHeader{margin-bottom:.5rem;font-size:1.125rem;line-height:1.75rem}}@media (min-width: 1024px){.myQuaternaryHeader{margin-bottom:1rem;font-size:1.25rem;line-height:1.75rem}}.myPrimaryLink{cursor:pointer;--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.myPrimaryLink:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1))}.myPrimaryLink:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1))}.myPrimaryButton{display:inline-flex;min-height:3rem;align-items:center;justify-content:center;gap:.25rem;white-space:nowrap;word-break:keep-all;border-radius:9999px;border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1));padding:.75rem;font-size:.75rem;line-height:1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.myPrimaryButton:hover{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.myPrimaryButton:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1));--tw-ring-offset-width: 2px}.myPrimaryButton:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1))}@media (min-width: 640px){.myPrimaryButton{width:auto;font-size:.875rem;line-height:1.25rem}}@media (min-width: 1024px){.myPrimaryButton{padding:.75rem 1rem}}.mySecondaryButton{display:inline-flex;min-height:3rem;align-items:center;justify-content:center;gap:.25rem;white-space:nowrap;word-break:keep-all;border-radius:9999px;border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1));padding:.75rem;font-size:.75rem;line-height:1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.mySecondaryButton:hover{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.mySecondaryButton:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1));--tw-ring-offset-width: 2px}.mySecondaryButton:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1))}@media (min-width: 640px){.mySecondaryButton{width:auto;font-size:.875rem;line-height:1.25rem}}@media (min-width: 1024px){.mySecondaryButton{padding:.75rem 1rem}}.mySecondaryButton{--tw-bg-opacity: 1;background-color:rgb(222 230 240 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.mySecondaryButton:hover{background-color:rgb(222 230 240 / var(--tw-bg-opacity, 1));--tw-bg-opacity: .9;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.mySecondaryButton:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(239 242 246 / var(--tw-ring-opacity, 1))}.myPrimaryDeleteButton{display:inline-flex;min-height:3rem;align-items:center;justify-content:center;gap:.25rem;white-space:nowrap;word-break:keep-all;border-radius:9999px;border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1));padding:.75rem;font-size:.75rem;line-height:1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.myPrimaryDeleteButton:hover{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.myPrimaryDeleteButton:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1));--tw-ring-offset-width: 2px}.myPrimaryDeleteButton:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1))}@media (min-width: 640px){.myPrimaryDeleteButton{width:auto;font-size:.875rem;line-height:1.25rem}}@media (min-width: 1024px){.myPrimaryDeleteButton{padding:.75rem 1rem}}.myPrimaryDeleteButton,.myPrimaryDeleteButton:hover{--tw-bg-opacity: 1;background-color:rgb(214 0 0 / var(--tw-bg-opacity, 1))}.myPrimaryDeleteButton:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(214 0 0 / var(--tw-ring-opacity, 1))}.myMediumIcon{display:flex;height:1.5rem;width:1.5rem;flex-shrink:0;align-items:center;justify-content:center;stroke-width:1.5px}.myPrimaryGap{gap:1rem}.mysearchBarWithOptions{display:flex;gap:.5rem;border-radius:9999px;border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(239 242 246 / var(--tw-bg-opacity, 1));padding-left:1rem}.myPrimarySearchInput:focus{border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1));--tw-ring-offset-width: 2px}.myPrimarySearchInput{display:block;height:100%;width:100%;border-radius:.375rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:.75rem 2rem .75rem .75rem;text-align:left;font-weight:400;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.myPrimarySearchInput::-moz-placeholder{font-weight:400;accent-color:#d1d5db}.myPrimarySearchInput::placeholder{font-weight:400;accent-color:#d1d5db}.myPrimarySearchInput:focus{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));outline:2px solid transparent;outline-offset:2px}@media (min-width: 640px){.myPrimarySearchInput{font-size:.875rem;line-height:1.25rem}}.myPrimarySearchInput{height:100%;border-style:none;background-color:transparent;padding-top:1rem;padding-bottom:1rem;padding-left:2.5rem;font-size:.875rem;line-height:1.25rem;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}.myPrimarySearchInput:focus{border-style:none;background-color:transparent;outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-offset-width: 0px}.myPrimaryFormOrganizationHeaderDescriptionSection{margin-bottom:1rem}.myPrimaryFormOrganizationHeader{margin-bottom:.5rem;overflow-wrap:break-word;font-size:1rem;line-height:1.5rem;font-weight:500;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.myPrimaryFormOrganizationHeader{margin-bottom:.5rem;font-size:1.125rem;line-height:1.75rem}}@media (min-width: 1024px){.myPrimaryFormOrganizationHeader{margin-bottom:1rem;font-size:1.25rem;line-height:1.75rem}}.myPrimaryFormOrganizationHeader{margin:0;padding-top:1rem}.myInputGroup{margin-bottom:.5rem;width:100%;align-self:flex-start;padding-left:.5rem;padding-right:.5rem}.myPrimaryInputLabel{margin-top:0;margin-bottom:0;margin-bottom:.5rem;display:block;text-align:left;font-size:.875rem;line-height:1.25rem;font-weight:400;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.myPrimaryInput:focus{border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1));--tw-ring-offset-width: 2px}.myPrimaryInput{display:block;height:100%;width:100%;border-radius:.375rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:.75rem 2rem .75rem .75rem;text-align:left;font-weight:400;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.myPrimaryInput::-moz-placeholder{font-weight:400;accent-color:#d1d5db}.myPrimaryInput::placeholder{font-weight:400;accent-color:#d1d5db}.myPrimaryInput:focus{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));outline:2px solid transparent;outline-offset:2px}@media (min-width: 640px){.myPrimaryInput{font-size:.875rem;line-height:1.25rem}}.myPrimaryInputError{font-size:.875rem;line-height:1.25rem;font-weight:400;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}@media (min-width: 1024px){.myPrimaryInputError{font-size:1rem;line-height:1.5rem}}.myPrimaryInputError{margin-top:.25rem;display:block;text-align:left;font-weight:400;--tw-text-opacity: 1;color:rgb(214 0 0 / var(--tw-text-opacity, 1))}.myPrimarySelect:focus{border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1));--tw-ring-offset-width: 2px}.myPrimarySelect{display:block;height:100%;width:100%;border-radius:.375rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:.75rem 2rem .75rem .75rem;text-align:left;font-weight:400;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.myPrimarySelect::-moz-placeholder{font-weight:400;accent-color:#d1d5db}.myPrimarySelect::placeholder{font-weight:400;accent-color:#d1d5db}.myPrimarySelect:focus{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));outline:2px solid transparent;outline-offset:2px}@media (min-width: 640px){.myPrimarySelect{font-size:.875rem;line-height:1.25rem}}.myPrimarySelect{position:relative;width:100%}.myPrimaryColorPreview{aspect-ratio:1 / 1;min-height:1.5rem;cursor:pointer;border-radius:.125rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.\\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.top-1\\/3{top:33.333333%}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-auto{z-index:auto}.col-span-1{grid-column:span 1 / span 1}.\\!-m-px{margin:-1px!important}.m-0{margin:0}.m-1{margin:.25rem}.m-4{margin:1rem}.-mx-1\\.5{margin-left:-.375rem;margin-right:-.375rem}.-my-1\\.5{margin-top:-.375rem;margin-bottom:-.375rem}.mx-0{margin-left:0;margin-right:0}.mx-0\\.5{margin-left:.125rem;margin-right:.125rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-1\\.5{margin-left:.375rem;margin-right:.375rem}.mx-10{margin-left:2.5rem;margin-right:2.5rem}.mx-11{margin-left:2.75rem;margin-right:2.75rem}.mx-12{margin-left:3rem;margin-right:3rem}.mx-14{margin-left:3.5rem;margin-right:3.5rem}.mx-16{margin-left:4rem;margin-right:4rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-2\\.5{margin-left:.625rem;margin-right:.625rem}.mx-20{margin-left:5rem;margin-right:5rem}.mx-24{margin-left:6rem;margin-right:6rem}.mx-28{margin-left:7rem;margin-right:7rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-3\\.5{margin-left:.875rem;margin-right:.875rem}.mx-32{margin-left:8rem;margin-right:8rem}.mx-36{margin-left:9rem;margin-right:9rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-40{margin-left:10rem;margin-right:10rem}.mx-44{margin-left:11rem;margin-right:11rem}.mx-48{margin-left:12rem;margin-right:12rem}.mx-5{margin-left:1.25rem;margin-right:1.25rem}.mx-52{margin-left:13rem;margin-right:13rem}.mx-56{margin-left:14rem;margin-right:14rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.mx-60{margin-left:15rem;margin-right:15rem}.mx-64{margin-left:16rem;margin-right:16rem}.mx-7{margin-left:1.75rem;margin-right:1.75rem}.mx-72{margin-left:18rem;margin-right:18rem}.mx-8{margin-left:2rem;margin-right:2rem}.mx-80{margin-left:20rem;margin-right:20rem}.mx-9{margin-left:2.25rem;margin-right:2.25rem}.mx-96{margin-left:24rem;margin-right:24rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0{margin-top:0;margin-bottom:0}.my-0\\.5{margin-top:.125rem;margin-bottom:.125rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-1\\.5{margin-top:.375rem;margin-bottom:.375rem}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.my-11{margin-top:2.75rem;margin-bottom:2.75rem}.my-12{margin-top:3rem;margin-bottom:3rem}.my-14{margin-top:3.5rem;margin-bottom:3.5rem}.my-16{margin-top:4rem;margin-bottom:4rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-2\\.5{margin-top:.625rem;margin-bottom:.625rem}.my-20{margin-top:5rem;margin-bottom:5rem}.my-24{margin-top:6rem;margin-bottom:6rem}.my-28{margin-top:7rem;margin-bottom:7rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-3\\.5{margin-top:.875rem;margin-bottom:.875rem}.my-32{margin-top:8rem;margin-bottom:8rem}.my-36{margin-top:9rem;margin-bottom:9rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-40{margin-top:10rem;margin-bottom:10rem}.my-44{margin-top:11rem;margin-bottom:11rem}.my-48{margin-top:12rem;margin-bottom:12rem}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.my-52{margin-top:13rem;margin-bottom:13rem}.my-56{margin-top:14rem;margin-bottom:14rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.my-60{margin-top:15rem;margin-bottom:15rem}.my-64{margin-top:16rem;margin-bottom:16rem}.my-7{margin-top:1.75rem;margin-bottom:1.75rem}.my-72{margin-top:18rem;margin-bottom:18rem}.my-8{margin-top:2rem;margin-bottom:2rem}.my-80{margin-top:20rem;margin-bottom:20rem}.my-9{margin-top:2.25rem;margin-bottom:2.25rem}.my-96{margin-top:24rem;margin-bottom:24rem}.-mb-px{margin-bottom:-1px}.-ml-16{margin-left:-4rem}.-mt-2{margin-top:-.5rem}.mb-0{margin-bottom:0}.mb-0\\.5{margin-bottom:.125rem}.mb-1{margin-bottom:.25rem}.mb-1\\.5{margin-bottom:.375rem}.mb-10{margin-bottom:2.5rem}.mb-11{margin-bottom:2.75rem}.mb-12{margin-bottom:3rem}.mb-14{margin-bottom:3.5rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-2\\.5{margin-bottom:.625rem}.mb-20{margin-bottom:5rem}.mb-24{margin-bottom:6rem}.mb-28{margin-bottom:7rem}.mb-3{margin-bottom:.75rem}.mb-3\\.5{margin-bottom:.875rem}.mb-32{margin-bottom:8rem}.mb-36{margin-bottom:9rem}.mb-4{margin-bottom:1rem}.mb-40{margin-bottom:10rem}.mb-44{margin-bottom:11rem}.mb-48{margin-bottom:12rem}.mb-5{margin-bottom:1.25rem}.mb-52{margin-bottom:13rem}.mb-56{margin-bottom:14rem}.mb-6{margin-bottom:1.5rem}.mb-60{margin-bottom:15rem}.mb-64{margin-bottom:16rem}.mb-7{margin-bottom:1.75rem}.mb-72{margin-bottom:18rem}.mb-8{margin-bottom:2rem}.mb-80{margin-bottom:20rem}.mb-9{margin-bottom:2.25rem}.mb-96{margin-bottom:24rem}.ml-0{margin-left:0}.ml-0\\.5{margin-left:.125rem}.ml-1{margin-left:.25rem}.ml-1\\.5{margin-left:.375rem}.ml-10{margin-left:2.5rem}.ml-11{margin-left:2.75rem}.ml-12{margin-left:3rem}.ml-14{margin-left:3.5rem}.ml-16{margin-left:4rem}.ml-2{margin-left:.5rem}.ml-2\\.5{margin-left:.625rem}.ml-20{margin-left:5rem}.ml-24{margin-left:6rem}.ml-28{margin-left:7rem}.ml-3{margin-left:.75rem}.ml-3\\.5{margin-left:.875rem}.ml-32{margin-left:8rem}.ml-36{margin-left:9rem}.ml-4{margin-left:1rem}.ml-40{margin-left:10rem}.ml-44{margin-left:11rem}.ml-48{margin-left:12rem}.ml-5{margin-left:1.25rem}.ml-52{margin-left:13rem}.ml-56{margin-left:14rem}.ml-6{margin-left:1.5rem}.ml-60{margin-left:15rem}.ml-64{margin-left:16rem}.ml-7{margin-left:1.75rem}.ml-72{margin-left:18rem}.ml-8{margin-left:2rem}.ml-80{margin-left:20rem}.ml-9{margin-left:2.25rem}.ml-96{margin-left:24rem}.ml-auto{margin-left:auto}.mr-0{margin-right:0}.mr-0\\.5{margin-right:.125rem}.mr-1{margin-right:.25rem}.mr-1\\.5{margin-right:.375rem}.mr-10{margin-right:2.5rem}.mr-11{margin-right:2.75rem}.mr-12{margin-right:3rem}.mr-14{margin-right:3.5rem}.mr-16{margin-right:4rem}.mr-2{margin-right:.5rem}.mr-2\\.5{margin-right:.625rem}.mr-20{margin-right:5rem}.mr-24{margin-right:6rem}.mr-28{margin-right:7rem}.mr-3{margin-right:.75rem}.mr-3\\.5{margin-right:.875rem}.mr-32{margin-right:8rem}.mr-36{margin-right:9rem}.mr-4{margin-right:1rem}.mr-40{margin-right:10rem}.mr-44{margin-right:11rem}.mr-48{margin-right:12rem}.mr-5{margin-right:1.25rem}.mr-52{margin-right:13rem}.mr-56{margin-right:14rem}.mr-6{margin-right:1.5rem}.mr-60{margin-right:15rem}.mr-64{margin-right:16rem}.mr-7{margin-right:1.75rem}.mr-72{margin-right:18rem}.mr-8{margin-right:2rem}.mr-80{margin-right:20rem}.mr-9{margin-right:2.25rem}.mr-96{margin-right:24rem}.mt-0{margin-top:0}.mt-0\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\\.5{margin-top:.375rem}.mt-10{margin-top:2.5rem}.mt-11{margin-top:2.75rem}.mt-12{margin-top:3rem}.mt-14{margin-top:3.5rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-2\\.5{margin-top:.625rem}.mt-20{margin-top:5rem}.mt-24{margin-top:6rem}.mt-28{margin-top:7rem}.mt-3{margin-top:.75rem}.mt-3\\.5{margin-top:.875rem}.mt-32{margin-top:8rem}.mt-36{margin-top:9rem}.mt-4{margin-top:1rem}.mt-40{margin-top:10rem}.mt-44{margin-top:11rem}.mt-48{margin-top:12rem}.mt-5{margin-top:1.25rem}.mt-52{margin-top:13rem}.mt-56{margin-top:14rem}.mt-6{margin-top:1.5rem}.mt-60{margin-top:15rem}.mt-64{margin-top:16rem}.mt-7{margin-top:1.75rem}.mt-72{margin-top:18rem}.mt-8{margin-top:2rem}.mt-80{margin-top:20rem}.mt-9{margin-top:2.25rem}.mt-96{margin-top:24rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.inline-grid{display:inline-grid}.hidden{display:none}.aspect-\\[16\\/9\\]{aspect-ratio:16/9}.aspect-\\[21\\/9\\]{aspect-ratio:21/9}.aspect-\\[4\\/3\\]{aspect-ratio:4/3}.aspect-\\[9\\/16\\]{aspect-ratio:9/16}.aspect-auto{aspect-ratio:auto}.aspect-square{aspect-ratio:1 / 1}.aspect-video{aspect-ratio:16 / 9}.size-3{width:.75rem;height:.75rem}.\\!h-px{height:1px!important}.h-0\\.5{height:.125rem}.h-1{height:.25rem}.h-1\\.5{height:.375rem}.h-1\\/2{height:50%}.h-1\\/3{height:33.333333%}.h-1\\/4{height:25%}.h-1\\/5{height:20%}.h-1\\/6{height:16.666667%}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\\.5{height:.625rem}.h-2\\/3{height:66.666667%}.h-2\\/4{height:50%}.h-2\\/5{height:40%}.h-2\\/6{height:33.333333%}.h-20{height:5rem}.h-24{height:6rem}.h-28{height:7rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-3\\/4{height:75%}.h-3\\/5{height:60%}.h-3\\/6{height:50%}.h-32{height:8rem}.h-36{height:9rem}.h-4{height:1rem}.h-4\\/5{height:80%}.h-4\\/6{height:66.666667%}.h-40{height:10rem}.h-44{height:11rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-5\\/6{height:83.333333%}.h-52{height:13rem}.h-56{height:14rem}.h-6{height:1.5rem}.h-60{height:15rem}.h-64{height:16rem}.h-7{height:1.75rem}.h-72{height:18rem}.h-8{height:2rem}.h-80{height:20rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\\[10vh\\]{height:10vh}.h-\\[39rem\\]{height:39rem}.h-\\[75vh\\]{height:75vh}.h-\\[90vh\\]{height:90vh}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-max{height:-moz-max-content;height:max-content}.h-min{height:-moz-min-content;height:min-content}.h-screen{height:100vh}.max-h-0{max-height:0px}.max-h-0\\.5{max-height:.125rem}.max-h-1{max-height:.25rem}.max-h-1\\.5{max-height:.375rem}.max-h-10{max-height:2.5rem}.max-h-11{max-height:2.75rem}.max-h-12{max-height:3rem}.max-h-14{max-height:3.5rem}.max-h-16{max-height:4rem}.max-h-2{max-height:.5rem}.max-h-2\\.5{max-height:.625rem}.max-h-20{max-height:5rem}.max-h-24{max-height:6rem}.max-h-28{max-height:7rem}.max-h-3{max-height:.75rem}.max-h-3\\.5{max-height:.875rem}.max-h-32{max-height:8rem}.max-h-36{max-height:9rem}.max-h-4{max-height:1rem}.max-h-40{max-height:10rem}.max-h-44{max-height:11rem}.max-h-48{max-height:12rem}.max-h-5{max-height:1.25rem}.max-h-52{max-height:13rem}.max-h-56{max-height:14rem}.max-h-6{max-height:1.5rem}.max-h-60{max-height:15rem}.max-h-64{max-height:16rem}.max-h-7{max-height:1.75rem}.max-h-72{max-height:18rem}.max-h-8{max-height:2rem}.max-h-80{max-height:20rem}.max-h-9{max-height:2.25rem}.max-h-96{max-height:24rem}.max-h-\\[20rem\\]{max-height:20rem}.max-h-\\[33rem\\]{max-height:33rem}.max-h-\\[50rem\\]{max-height:50rem}.max-h-\\[98vh\\]{max-height:98vh}.max-h-fit{max-height:-moz-fit-content;max-height:fit-content}.max-h-full{max-height:100%}.max-h-max{max-height:-moz-max-content;max-height:max-content}.max-h-min{max-height:-moz-min-content;max-height:min-content}.max-h-screen{max-height:100vh}.min-h-0{min-height:0px}.min-h-0\\.5{min-height:.125rem}.min-h-1{min-height:.25rem}.min-h-1\\.5{min-height:.375rem}.min-h-10{min-height:2.5rem}.min-h-11{min-height:2.75rem}.min-h-12{min-height:3rem}.min-h-14{min-height:3.5rem}.min-h-16{min-height:4rem}.min-h-2{min-height:.5rem}.min-h-2\\.5{min-height:.625rem}.min-h-20{min-height:5rem}.min-h-24{min-height:6rem}.min-h-28{min-height:7rem}.min-h-3{min-height:.75rem}.min-h-3\\.5{min-height:.875rem}.min-h-32{min-height:8rem}.min-h-36{min-height:9rem}.min-h-4{min-height:1rem}.min-h-40{min-height:10rem}.min-h-44{min-height:11rem}.min-h-48{min-height:12rem}.min-h-5{min-height:1.25rem}.min-h-52{min-height:13rem}.min-h-56{min-height:14rem}.min-h-6{min-height:1.5rem}.min-h-60{min-height:15rem}.min-h-64{min-height:16rem}.min-h-7{min-height:1.75rem}.min-h-72{min-height:18rem}.min-h-8{min-height:2rem}.min-h-80{min-height:20rem}.min-h-9{min-height:2.25rem}.min-h-96{min-height:24rem}.min-h-\\[12rem\\]{min-height:12rem}.min-h-\\[2\\.5rem\\]{min-height:2.5rem}.min-h-\\[20rem\\]{min-height:20rem}.min-h-\\[33rem\\]{min-height:33rem}.min-h-fit{min-height:-moz-fit-content;min-height:fit-content}.min-h-full{min-height:100%}.min-h-max{min-height:-moz-max-content;min-height:max-content}.min-h-min{min-height:-moz-min-content;min-height:min-content}.min-h-screen{min-height:100vh}.\\!w-px{width:1px!important}.w-0{width:0px}.w-0\\.5{width:.125rem}.w-1{width:.25rem}.w-1\\.5{width:.375rem}.w-1\\/2{width:50%}.w-1\\/3{width:33.333333%}.w-1\\/4{width:25%}.w-1\\/5{width:20%}.w-1\\/6{width:16.666667%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\\.5{width:.625rem}.w-2\\/3{width:66.666667%}.w-2\\/4{width:50%}.w-2\\/5{width:40%}.w-2\\/6{width:33.333333%}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-3\\/12{width:25%}.w-3\\/4{width:75%}.w-3\\/5{width:60%}.w-3\\/6{width:50%}.w-32{width:8rem}.w-36{width:9rem}.w-4{width:1rem}.w-4\\/5{width:80%}.w-4\\/6{width:66.666667%}.w-40{width:10rem}.w-44{width:11rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-5\\/6{width:83.333333%}.w-52{width:13rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-60{width:15rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-9\\/12{width:75%}.w-96{width:24rem}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-min{width:-moz-min-content;width:min-content}.w-screen{width:100vw}.min-w-0{min-width:0px}.min-w-0\\.5{min-width:.125rem}.min-w-1{min-width:.25rem}.min-w-1\\.5{min-width:.375rem}.min-w-10{min-width:2.5rem}.min-w-11{min-width:2.75rem}.min-w-12{min-width:3rem}.min-w-14{min-width:3.5rem}.min-w-16{min-width:4rem}.min-w-2{min-width:.5rem}.min-w-2\\.5{min-width:.625rem}.min-w-20{min-width:5rem}.min-w-24{min-width:6rem}.min-w-28{min-width:7rem}.min-w-3{min-width:.75rem}.min-w-3\\.5{min-width:.875rem}.min-w-32{min-width:8rem}.min-w-36{min-width:9rem}.min-w-4{min-width:1rem}.min-w-40{min-width:10rem}.min-w-44{min-width:11rem}.min-w-48{min-width:12rem}.min-w-5{min-width:1.25rem}.min-w-52{min-width:13rem}.min-w-56{min-width:14rem}.min-w-6{min-width:1.5rem}.min-w-60{min-width:15rem}.min-w-64{min-width:16rem}.min-w-7{min-width:1.75rem}.min-w-72{min-width:18rem}.min-w-8{min-width:2rem}.min-w-80{min-width:20rem}.min-w-9{min-width:2.25rem}.min-w-96{min-width:24rem}.min-w-\\[12rem\\]{min-width:12rem}.min-w-\\[3\\.5rem\\]{min-width:3.5rem}.min-w-\\[30rem\\]{min-width:30rem}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.min-w-full{min-width:100%}.min-w-max{min-width:-moz-max-content;min-width:max-content}.min-w-min{min-width:-moz-min-content;min-width:min-content}.max-w-0\\.5{max-width:.125rem}.max-w-1{max-width:.25rem}.max-w-1\\.5{max-width:.375rem}.max-w-10{max-width:2.5rem}.max-w-11{max-width:2.75rem}.max-w-12{max-width:3rem}.max-w-14{max-width:3.5rem}.max-w-16{max-width:4rem}.max-w-2{max-width:.5rem}.max-w-2\\.5{max-width:.625rem}.max-w-20{max-width:5rem}.max-w-24{max-width:6rem}.max-w-28{max-width:7rem}.max-w-2xl{max-width:42rem}.max-w-3{max-width:.75rem}.max-w-3\\.5{max-width:.875rem}.max-w-32{max-width:8rem}.max-w-36{max-width:9rem}.max-w-3xl{max-width:48rem}.max-w-4{max-width:1rem}.max-w-40{max-width:10rem}.max-w-44{max-width:11rem}.max-w-48{max-width:12rem}.max-w-4xl{max-width:56rem}.max-w-5{max-width:1.25rem}.max-w-52{max-width:13rem}.max-w-56{max-width:14rem}.max-w-5xl{max-width:64rem}.max-w-6{max-width:1.5rem}.max-w-60{max-width:15rem}.max-w-64{max-width:16rem}.max-w-6xl{max-width:72rem}.max-w-7{max-width:1.75rem}.max-w-72{max-width:18rem}.max-w-7xl{max-width:80rem}.max-w-8{max-width:2rem}.max-w-80{max-width:20rem}.max-w-9{max-width:2.25rem}.max-w-96{max-width:24rem}.max-w-\\[96vh\\]{max-width:96vh}.max-w-fit{max-width:-moz-fit-content;max-width:fit-content}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-max{max-width:-moz-max-content;max-width:max-content}.max-w-md{max-width:28rem}.max-w-min{max-width:-moz-min-content;max-width:min-content}.max-w-prose{max-width:65ch}.max-w-screen-2xl{max-width:1536px}.max-w-screen-lg{max-width:1024px}.max-w-screen-md{max-width:768px}.max-w-screen-sm{max-width:640px}.max-w-screen-xl{max-width:1280px}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.grow{flex-grow:1}.-translate-y-2{--tw-translate-y: -.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-5{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-0{--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-0{--tw-scale-x: 0;--tw-scale-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-110{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-125{--tw-scale-x: 1.25;--tw-scale-y: 1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-150{--tw-scale-x: 1.5;--tw-scale-y: 1.5;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-50{--tw-scale-x: .5;--tw-scale-y: .5;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-75{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform-none{transform:none}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}.animate-none{animation:none}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-move{cursor:move}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.cursor-wait{cursor:wait}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.select-text{-webkit-user-select:text;-moz-user-select:text;user-select:text}.select-all{-webkit-user-select:all;-moz-user-select:all;user-select:all}.select-auto{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.resize-none{resize:none}.resize-y{resize:vertical}.resize-x{resize:horizontal}.resize{resize:both}.snap-none{scroll-snap-type:none}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.snap-both{scroll-snap-type:both var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness: mandatory}.snap-proximity{--tw-scroll-snap-strictness: proximity}.snap-start{scroll-snap-align:start}.snap-end{scroll-snap-align:end}.snap-center{scroll-snap-align:center}.snap-align-none{scroll-snap-align:none}.list-inside{list-style-position:inside}.list-outside{list-style-position:outside}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.auto-cols-\\[minmax\\(100px\\,_1fr\\)\\]{grid-auto-columns:minmax(100px,1fr)}.auto-cols-fr{grid-auto-columns:minmax(0,1fr)}.auto-cols-max{grid-auto-columns:max-content}.auto-cols-min{grid-auto-columns:min-content}.grid-flow-col{grid-auto-flow:column}.grid-flow-row-dense{grid-auto-flow:row dense}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.grid-cols-\\[minmax\\(10rem\\,1fr\\)\\]{grid-template-columns:minmax(10rem,1fr)}.grid-cols-\\[minmax\\(14rem\\,1fr\\)\\]{grid-template-columns:minmax(14rem,1fr)}.grid-cols-\\[minmax\\(50px\\,100px\\)\\]{grid-template-columns:minmax(50px,100px)}.grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.grid-rows-10{grid-template-rows:repeat(10,minmax(0,1fr))}.grid-rows-11{grid-template-rows:repeat(11,minmax(0,1fr))}.grid-rows-12{grid-template-rows:repeat(12,minmax(0,1fr))}.grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.flex-wrap-reverse{flex-wrap:wrap-reverse}.flex-nowrap{flex-wrap:nowrap}.place-content-center{place-content:center}.place-content-start{place-content:start}.place-content-end{place-content:end}.place-content-between{place-content:space-between}.place-content-around{place-content:space-around}.place-content-evenly{place-content:space-evenly}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.justify-evenly{justify-content:space-evenly}.gap-0{gap:0px}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.divide-x-0>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(0px * var(--tw-divide-x-reverse));border-left-width:calc(0px * calc(1 - var(--tw-divide-x-reverse)))}.divide-x-2>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(2px * var(--tw-divide-x-reverse));border-left-width:calc(2px * calc(1 - var(--tw-divide-x-reverse)))}.divide-x-4>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(4px * var(--tw-divide-x-reverse));border-left-width:calc(4px * calc(1 - var(--tw-divide-x-reverse)))}.divide-x-8>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(8px * var(--tw-divide-x-reverse));border-left-width:calc(8px * calc(1 - var(--tw-divide-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-y-0>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(0px * var(--tw-divide-y-reverse))}.divide-y-2>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(2px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(2px * var(--tw-divide-y-reverse))}.divide-y-4>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(4px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(4px * var(--tw-divide-y-reverse))}.divide-y-8>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(8px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(8px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity, 1))}.divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(209 213 219 / var(--tw-divide-opacity, 1))}.self-auto{align-self:auto}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.self-stretch{align-self:stretch}.justify-self-auto{justify-self:auto}.justify-self-start{justify-self:start}.justify-self-end{justify-self:end}.justify-self-center{justify-self:center}.justify-self-stretch{justify-self:stretch}.overflow-auto{overflow:auto}.\\!overflow-hidden{overflow:hidden!important}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-scroll{overflow:scroll}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-hidden{overflow-y:hidden}.overflow-x-scroll{overflow-x:scroll}.overflow-y-scroll{overflow-y:scroll}.scroll-auto{scroll-behavior:auto}.scroll-smooth{scroll-behavior:smooth}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-normal{white-space:normal}.\\!whitespace-nowrap{white-space:nowrap!important}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.break-normal{overflow-wrap:normal;word-break:normal}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.break-keep{word-break:keep-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-l-2xl{border-top-left-radius:1rem;border-bottom-left-radius:1rem}.rounded-l-full{border-top-left-radius:9999px;border-bottom-left-radius:9999px}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.rounded-bl{border-bottom-left-radius:.25rem}.rounded-bl-2xl{border-bottom-left-radius:1rem}.rounded-bl-3xl{border-bottom-left-radius:1.5rem}.rounded-bl-full{border-bottom-left-radius:9999px}.rounded-bl-lg{border-bottom-left-radius:.5rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-bl-sm{border-bottom-left-radius:.125rem}.rounded-bl-xl{border-bottom-left-radius:.75rem}.rounded-br{border-bottom-right-radius:.25rem}.rounded-br-2xl{border-bottom-right-radius:1rem}.rounded-br-3xl{border-bottom-right-radius:1.5rem}.rounded-br-full{border-bottom-right-radius:9999px}.rounded-br-lg{border-bottom-right-radius:.5rem}.rounded-br-md{border-bottom-right-radius:.375rem}.rounded-br-sm{border-bottom-right-radius:.125rem}.rounded-br-xl{border-bottom-right-radius:.75rem}.rounded-tl{border-top-left-radius:.25rem}.rounded-tl-2xl{border-top-left-radius:1rem}.rounded-tl-3xl{border-top-left-radius:1.5rem}.rounded-tl-full{border-top-left-radius:9999px}.rounded-tl-lg{border-top-left-radius:.5rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tl-sm{border-top-left-radius:.125rem}.rounded-tl-xl{border-top-left-radius:.75rem}.rounded-tr{border-top-right-radius:.25rem}.rounded-tr-2xl{border-top-right-radius:1rem}.rounded-tr-3xl{border-top-right-radius:1.5rem}.rounded-tr-full{border-top-right-radius:9999px}.rounded-tr-lg{border-top-right-radius:.5rem}.rounded-tr-md{border-top-right-radius:.375rem}.rounded-tr-sm{border-top-right-radius:.125rem}.rounded-tr-xl{border-top-right-radius:.75rem}.\\!border-0{border-width:0px!important}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-4{border-width:4px}.border-8{border-width:8px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-dotted{border-style:dotted}.border-double{border-style:double}.border-hidden{border-style:hidden}.border-none{border-style:none}.border-amber-100{--tw-border-opacity: 1;border-color:rgb(254 243 199 / var(--tw-border-opacity, 1))}.border-amber-200{--tw-border-opacity: 1;border-color:rgb(253 230 138 / var(--tw-border-opacity, 1))}.border-amber-300{--tw-border-opacity: 1;border-color:rgb(252 211 77 / var(--tw-border-opacity, 1))}.border-amber-400{--tw-border-opacity: 1;border-color:rgb(251 191 36 / var(--tw-border-opacity, 1))}.border-amber-50{--tw-border-opacity: 1;border-color:rgb(255 251 235 / var(--tw-border-opacity, 1))}.border-amber-500{--tw-border-opacity: 1;border-color:rgb(245 158 11 / var(--tw-border-opacity, 1))}.border-amber-600{--tw-border-opacity: 1;border-color:rgb(217 119 6 / var(--tw-border-opacity, 1))}.border-amber-700{--tw-border-opacity: 1;border-color:rgb(180 83 9 / var(--tw-border-opacity, 1))}.border-amber-800{--tw-border-opacity: 1;border-color:rgb(146 64 14 / var(--tw-border-opacity, 1))}.border-amber-900{--tw-border-opacity: 1;border-color:rgb(120 53 15 / var(--tw-border-opacity, 1))}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity, 1))}.border-blue-100{--tw-border-opacity: 1;border-color:rgb(219 234 254 / var(--tw-border-opacity, 1))}.border-blue-200{--tw-border-opacity: 1;border-color:rgb(191 219 254 / var(--tw-border-opacity, 1))}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity, 1))}.border-blue-400{--tw-border-opacity: 1;border-color:rgb(96 165 250 / var(--tw-border-opacity, 1))}.border-blue-50{--tw-border-opacity: 1;border-color:rgb(239 246 255 / var(--tw-border-opacity, 1))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(37 99 235 / var(--tw-border-opacity, 1))}.border-blue-700{--tw-border-opacity: 1;border-color:rgb(29 78 216 / var(--tw-border-opacity, 1))}.border-blue-800{--tw-border-opacity: 1;border-color:rgb(30 64 175 / var(--tw-border-opacity, 1))}.border-blue-900{--tw-border-opacity: 1;border-color:rgb(30 58 138 / var(--tw-border-opacity, 1))}.border-current{border-color:currentColor}.border-cyan-100{--tw-border-opacity: 1;border-color:rgb(207 250 254 / var(--tw-border-opacity, 1))}.border-cyan-200{--tw-border-opacity: 1;border-color:rgb(165 243 252 / var(--tw-border-opacity, 1))}.border-cyan-300{--tw-border-opacity: 1;border-color:rgb(103 232 249 / var(--tw-border-opacity, 1))}.border-cyan-400{--tw-border-opacity: 1;border-color:rgb(34 211 238 / var(--tw-border-opacity, 1))}.border-cyan-50{--tw-border-opacity: 1;border-color:rgb(236 254 255 / var(--tw-border-opacity, 1))}.border-cyan-500{--tw-border-opacity: 1;border-color:rgb(6 182 212 / var(--tw-border-opacity, 1))}.border-cyan-600{--tw-border-opacity: 1;border-color:rgb(8 145 178 / var(--tw-border-opacity, 1))}.border-cyan-700{--tw-border-opacity: 1;border-color:rgb(14 116 144 / var(--tw-border-opacity, 1))}.border-cyan-800{--tw-border-opacity: 1;border-color:rgb(21 94 117 / var(--tw-border-opacity, 1))}.border-cyan-900{--tw-border-opacity: 1;border-color:rgb(22 78 99 / var(--tw-border-opacity, 1))}.border-emerald-100{--tw-border-opacity: 1;border-color:rgb(209 250 229 / var(--tw-border-opacity, 1))}.border-emerald-200{--tw-border-opacity: 1;border-color:rgb(167 243 208 / var(--tw-border-opacity, 1))}.border-emerald-300{--tw-border-opacity: 1;border-color:rgb(110 231 183 / var(--tw-border-opacity, 1))}.border-emerald-400{--tw-border-opacity: 1;border-color:rgb(52 211 153 / var(--tw-border-opacity, 1))}.border-emerald-50{--tw-border-opacity: 1;border-color:rgb(236 253 245 / var(--tw-border-opacity, 1))}.border-emerald-500{--tw-border-opacity: 1;border-color:rgb(16 185 129 / var(--tw-border-opacity, 1))}.border-emerald-600{--tw-border-opacity: 1;border-color:rgb(5 150 105 / var(--tw-border-opacity, 1))}.border-emerald-700{--tw-border-opacity: 1;border-color:rgb(4 120 87 / var(--tw-border-opacity, 1))}.border-emerald-800{--tw-border-opacity: 1;border-color:rgb(6 95 70 / var(--tw-border-opacity, 1))}.border-emerald-900{--tw-border-opacity: 1;border-color:rgb(6 78 59 / var(--tw-border-opacity, 1))}.border-fuchsia-100{--tw-border-opacity: 1;border-color:rgb(250 232 255 / var(--tw-border-opacity, 1))}.border-fuchsia-200{--tw-border-opacity: 1;border-color:rgb(245 208 254 / var(--tw-border-opacity, 1))}.border-fuchsia-300{--tw-border-opacity: 1;border-color:rgb(240 171 252 / var(--tw-border-opacity, 1))}.border-fuchsia-400{--tw-border-opacity: 1;border-color:rgb(232 121 249 / var(--tw-border-opacity, 1))}.border-fuchsia-50{--tw-border-opacity: 1;border-color:rgb(253 244 255 / var(--tw-border-opacity, 1))}.border-fuchsia-500{--tw-border-opacity: 1;border-color:rgb(217 70 239 / var(--tw-border-opacity, 1))}.border-fuchsia-600{--tw-border-opacity: 1;border-color:rgb(192 38 211 / var(--tw-border-opacity, 1))}.border-fuchsia-700{--tw-border-opacity: 1;border-color:rgb(162 28 175 / var(--tw-border-opacity, 1))}.border-fuchsia-800{--tw-border-opacity: 1;border-color:rgb(134 25 143 / var(--tw-border-opacity, 1))}.border-fuchsia-900{--tw-border-opacity: 1;border-color:rgb(112 26 117 / var(--tw-border-opacity, 1))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-gray-400{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity, 1))}.border-gray-50{--tw-border-opacity: 1;border-color:rgb(249 250 251 / var(--tw-border-opacity, 1))}.border-gray-500{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}.border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.border-gray-800{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity, 1))}.border-gray-900{--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity, 1))}.border-green-100{--tw-border-opacity: 1;border-color:rgb(220 252 231 / var(--tw-border-opacity, 1))}.border-green-200{--tw-border-opacity: 1;border-color:rgb(187 247 208 / var(--tw-border-opacity, 1))}.border-green-300{--tw-border-opacity: 1;border-color:rgb(134 239 172 / var(--tw-border-opacity, 1))}.border-green-400{--tw-border-opacity: 1;border-color:rgb(74 222 128 / var(--tw-border-opacity, 1))}.border-green-50{--tw-border-opacity: 1;border-color:rgb(240 253 244 / var(--tw-border-opacity, 1))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(34 197 94 / var(--tw-border-opacity, 1))}.border-green-600{--tw-border-opacity: 1;border-color:rgb(22 163 74 / var(--tw-border-opacity, 1))}.border-green-700{--tw-border-opacity: 1;border-color:rgb(21 128 61 / var(--tw-border-opacity, 1))}.border-green-800{--tw-border-opacity: 1;border-color:rgb(22 101 52 / var(--tw-border-opacity, 1))}.border-green-900{--tw-border-opacity: 1;border-color:rgb(20 83 45 / var(--tw-border-opacity, 1))}.border-indigo-100{--tw-border-opacity: 1;border-color:rgb(224 231 255 / var(--tw-border-opacity, 1))}.border-indigo-200{--tw-border-opacity: 1;border-color:rgb(199 210 254 / var(--tw-border-opacity, 1))}.border-indigo-300{--tw-border-opacity: 1;border-color:rgb(165 180 252 / var(--tw-border-opacity, 1))}.border-indigo-400{--tw-border-opacity: 1;border-color:rgb(129 140 248 / var(--tw-border-opacity, 1))}.border-indigo-50{--tw-border-opacity: 1;border-color:rgb(238 242 255 / var(--tw-border-opacity, 1))}.border-indigo-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity, 1))}.border-indigo-600{--tw-border-opacity: 1;border-color:rgb(79 70 229 / var(--tw-border-opacity, 1))}.border-indigo-700{--tw-border-opacity: 1;border-color:rgb(67 56 202 / var(--tw-border-opacity, 1))}.border-indigo-800{--tw-border-opacity: 1;border-color:rgb(55 48 163 / var(--tw-border-opacity, 1))}.border-indigo-900{--tw-border-opacity: 1;border-color:rgb(49 46 129 / var(--tw-border-opacity, 1))}.border-lime-100{--tw-border-opacity: 1;border-color:rgb(236 252 203 / var(--tw-border-opacity, 1))}.border-lime-200{--tw-border-opacity: 1;border-color:rgb(217 249 157 / var(--tw-border-opacity, 1))}.border-lime-300{--tw-border-opacity: 1;border-color:rgb(190 242 100 / var(--tw-border-opacity, 1))}.border-lime-400{--tw-border-opacity: 1;border-color:rgb(163 230 53 / var(--tw-border-opacity, 1))}.border-lime-50{--tw-border-opacity: 1;border-color:rgb(247 254 231 / var(--tw-border-opacity, 1))}.border-lime-500{--tw-border-opacity: 1;border-color:rgb(132 204 22 / var(--tw-border-opacity, 1))}.border-lime-600{--tw-border-opacity: 1;border-color:rgb(101 163 13 / var(--tw-border-opacity, 1))}.border-lime-700{--tw-border-opacity: 1;border-color:rgb(77 124 15 / var(--tw-border-opacity, 1))}.border-lime-800{--tw-border-opacity: 1;border-color:rgb(63 98 18 / var(--tw-border-opacity, 1))}.border-lime-900{--tw-border-opacity: 1;border-color:rgb(54 83 20 / var(--tw-border-opacity, 1))}.border-myPrimaryLightGrayColor{--tw-border-opacity: 1;border-color:rgb(239 242 246 / var(--tw-border-opacity, 1))}.border-myPrimaryMediumGrayColor{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity, 1))}.border-neutral-100{--tw-border-opacity: 1;border-color:rgb(245 245 245 / var(--tw-border-opacity, 1))}.border-neutral-200{--tw-border-opacity: 1;border-color:rgb(229 229 229 / var(--tw-border-opacity, 1))}.border-neutral-300{--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity, 1))}.border-neutral-400{--tw-border-opacity: 1;border-color:rgb(163 163 163 / var(--tw-border-opacity, 1))}.border-neutral-50{--tw-border-opacity: 1;border-color:rgb(250 250 250 / var(--tw-border-opacity, 1))}.border-neutral-500{--tw-border-opacity: 1;border-color:rgb(115 115 115 / var(--tw-border-opacity, 1))}.border-neutral-600{--tw-border-opacity: 1;border-color:rgb(82 82 82 / var(--tw-border-opacity, 1))}.border-neutral-700{--tw-border-opacity: 1;border-color:rgb(64 64 64 / var(--tw-border-opacity, 1))}.border-neutral-800{--tw-border-opacity: 1;border-color:rgb(38 38 38 / var(--tw-border-opacity, 1))}.border-neutral-900{--tw-border-opacity: 1;border-color:rgb(23 23 23 / var(--tw-border-opacity, 1))}.border-orange-100{--tw-border-opacity: 1;border-color:rgb(255 237 213 / var(--tw-border-opacity, 1))}.border-orange-200{--tw-border-opacity: 1;border-color:rgb(254 215 170 / var(--tw-border-opacity, 1))}.border-orange-300{--tw-border-opacity: 1;border-color:rgb(253 186 116 / var(--tw-border-opacity, 1))}.border-orange-400{--tw-border-opacity: 1;border-color:rgb(251 146 60 / var(--tw-border-opacity, 1))}.border-orange-50{--tw-border-opacity: 1;border-color:rgb(255 247 237 / var(--tw-border-opacity, 1))}.border-orange-500{--tw-border-opacity: 1;border-color:rgb(249 115 22 / var(--tw-border-opacity, 1))}.border-orange-600{--tw-border-opacity: 1;border-color:rgb(234 88 12 / var(--tw-border-opacity, 1))}.border-orange-700{--tw-border-opacity: 1;border-color:rgb(194 65 12 / var(--tw-border-opacity, 1))}.border-orange-800{--tw-border-opacity: 1;border-color:rgb(154 52 18 / var(--tw-border-opacity, 1))}.border-orange-900{--tw-border-opacity: 1;border-color:rgb(124 45 18 / var(--tw-border-opacity, 1))}.border-pink-100{--tw-border-opacity: 1;border-color:rgb(252 231 243 / var(--tw-border-opacity, 1))}.border-pink-200{--tw-border-opacity: 1;border-color:rgb(251 207 232 / var(--tw-border-opacity, 1))}.border-pink-300{--tw-border-opacity: 1;border-color:rgb(249 168 212 / var(--tw-border-opacity, 1))}.border-pink-400{--tw-border-opacity: 1;border-color:rgb(244 114 182 / var(--tw-border-opacity, 1))}.border-pink-50{--tw-border-opacity: 1;border-color:rgb(253 242 248 / var(--tw-border-opacity, 1))}.border-pink-500{--tw-border-opacity: 1;border-color:rgb(236 72 153 / var(--tw-border-opacity, 1))}.border-pink-600{--tw-border-opacity: 1;border-color:rgb(219 39 119 / var(--tw-border-opacity, 1))}.border-pink-700{--tw-border-opacity: 1;border-color:rgb(190 24 93 / var(--tw-border-opacity, 1))}.border-pink-800{--tw-border-opacity: 1;border-color:rgb(157 23 77 / var(--tw-border-opacity, 1))}.border-pink-900{--tw-border-opacity: 1;border-color:rgb(131 24 67 / var(--tw-border-opacity, 1))}.border-purple-100{--tw-border-opacity: 1;border-color:rgb(243 232 255 / var(--tw-border-opacity, 1))}.border-purple-200{--tw-border-opacity: 1;border-color:rgb(233 213 255 / var(--tw-border-opacity, 1))}.border-purple-300{--tw-border-opacity: 1;border-color:rgb(216 180 254 / var(--tw-border-opacity, 1))}.border-purple-400{--tw-border-opacity: 1;border-color:rgb(192 132 252 / var(--tw-border-opacity, 1))}.border-purple-50{--tw-border-opacity: 1;border-color:rgb(250 245 255 / var(--tw-border-opacity, 1))}.border-purple-500{--tw-border-opacity: 1;border-color:rgb(168 85 247 / var(--tw-border-opacity, 1))}.border-purple-600{--tw-border-opacity: 1;border-color:rgb(147 51 234 / var(--tw-border-opacity, 1))}.border-purple-700{--tw-border-opacity: 1;border-color:rgb(126 34 206 / var(--tw-border-opacity, 1))}.border-purple-800{--tw-border-opacity: 1;border-color:rgb(107 33 168 / var(--tw-border-opacity, 1))}.border-purple-900{--tw-border-opacity: 1;border-color:rgb(88 28 135 / var(--tw-border-opacity, 1))}.border-red-100{--tw-border-opacity: 1;border-color:rgb(254 226 226 / var(--tw-border-opacity, 1))}.border-red-200{--tw-border-opacity: 1;border-color:rgb(254 202 202 / var(--tw-border-opacity, 1))}.border-red-300{--tw-border-opacity: 1;border-color:rgb(252 165 165 / var(--tw-border-opacity, 1))}.border-red-400{--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity, 1))}.border-red-50{--tw-border-opacity: 1;border-color:rgb(254 242 242 / var(--tw-border-opacity, 1))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.border-red-600{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1))}.border-red-700{--tw-border-opacity: 1;border-color:rgb(185 28 28 / var(--tw-border-opacity, 1))}.border-red-800{--tw-border-opacity: 1;border-color:rgb(153 27 27 / var(--tw-border-opacity, 1))}.border-red-900{--tw-border-opacity: 1;border-color:rgb(127 29 29 / var(--tw-border-opacity, 1))}.border-rose-100{--tw-border-opacity: 1;border-color:rgb(255 228 230 / var(--tw-border-opacity, 1))}.border-rose-200{--tw-border-opacity: 1;border-color:rgb(254 205 211 / var(--tw-border-opacity, 1))}.border-rose-300{--tw-border-opacity: 1;border-color:rgb(253 164 175 / var(--tw-border-opacity, 1))}.border-rose-400{--tw-border-opacity: 1;border-color:rgb(251 113 133 / var(--tw-border-opacity, 1))}.border-rose-50{--tw-border-opacity: 1;border-color:rgb(255 241 242 / var(--tw-border-opacity, 1))}.border-rose-500{--tw-border-opacity: 1;border-color:rgb(244 63 94 / var(--tw-border-opacity, 1))}.border-rose-600{--tw-border-opacity: 1;border-color:rgb(225 29 72 / var(--tw-border-opacity, 1))}.border-rose-700{--tw-border-opacity: 1;border-color:rgb(190 18 60 / var(--tw-border-opacity, 1))}.border-rose-800{--tw-border-opacity: 1;border-color:rgb(159 18 57 / var(--tw-border-opacity, 1))}.border-rose-900{--tw-border-opacity: 1;border-color:rgb(136 19 55 / var(--tw-border-opacity, 1))}.border-sky-100{--tw-border-opacity: 1;border-color:rgb(224 242 254 / var(--tw-border-opacity, 1))}.border-sky-200{--tw-border-opacity: 1;border-color:rgb(186 230 253 / var(--tw-border-opacity, 1))}.border-sky-300{--tw-border-opacity: 1;border-color:rgb(125 211 252 / var(--tw-border-opacity, 1))}.border-sky-400{--tw-border-opacity: 1;border-color:rgb(56 189 248 / var(--tw-border-opacity, 1))}.border-sky-50{--tw-border-opacity: 1;border-color:rgb(240 249 255 / var(--tw-border-opacity, 1))}.border-sky-500{--tw-border-opacity: 1;border-color:rgb(14 165 233 / var(--tw-border-opacity, 1))}.border-sky-600{--tw-border-opacity: 1;border-color:rgb(2 132 199 / var(--tw-border-opacity, 1))}.border-sky-700{--tw-border-opacity: 1;border-color:rgb(3 105 161 / var(--tw-border-opacity, 1))}.border-sky-800{--tw-border-opacity: 1;border-color:rgb(7 89 133 / var(--tw-border-opacity, 1))}.border-sky-900{--tw-border-opacity: 1;border-color:rgb(12 74 110 / var(--tw-border-opacity, 1))}.border-slate-100{--tw-border-opacity: 1;border-color:rgb(241 245 249 / var(--tw-border-opacity, 1))}.border-slate-200{--tw-border-opacity: 1;border-color:rgb(226 232 240 / var(--tw-border-opacity, 1))}.border-slate-300{--tw-border-opacity: 1;border-color:rgb(203 213 225 / var(--tw-border-opacity, 1))}.border-slate-400{--tw-border-opacity: 1;border-color:rgb(148 163 184 / var(--tw-border-opacity, 1))}.border-slate-50{--tw-border-opacity: 1;border-color:rgb(248 250 252 / var(--tw-border-opacity, 1))}.border-slate-500{--tw-border-opacity: 1;border-color:rgb(100 116 139 / var(--tw-border-opacity, 1))}.border-slate-600{--tw-border-opacity: 1;border-color:rgb(71 85 105 / var(--tw-border-opacity, 1))}.border-slate-700{--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity, 1))}.border-slate-800{--tw-border-opacity: 1;border-color:rgb(30 41 59 / var(--tw-border-opacity, 1))}.border-slate-900{--tw-border-opacity: 1;border-color:rgb(15 23 42 / var(--tw-border-opacity, 1))}.border-stone-100{--tw-border-opacity: 1;border-color:rgb(245 245 244 / var(--tw-border-opacity, 1))}.border-stone-200{--tw-border-opacity: 1;border-color:rgb(231 229 228 / var(--tw-border-opacity, 1))}.border-stone-300{--tw-border-opacity: 1;border-color:rgb(214 211 209 / var(--tw-border-opacity, 1))}.border-stone-400{--tw-border-opacity: 1;border-color:rgb(168 162 158 / var(--tw-border-opacity, 1))}.border-stone-50{--tw-border-opacity: 1;border-color:rgb(250 250 249 / var(--tw-border-opacity, 1))}.border-stone-500{--tw-border-opacity: 1;border-color:rgb(120 113 108 / var(--tw-border-opacity, 1))}.border-stone-600{--tw-border-opacity: 1;border-color:rgb(87 83 78 / var(--tw-border-opacity, 1))}.border-stone-700{--tw-border-opacity: 1;border-color:rgb(68 64 60 / var(--tw-border-opacity, 1))}.border-stone-800{--tw-border-opacity: 1;border-color:rgb(41 37 36 / var(--tw-border-opacity, 1))}.border-stone-900{--tw-border-opacity: 1;border-color:rgb(28 25 23 / var(--tw-border-opacity, 1))}.border-teal-100{--tw-border-opacity: 1;border-color:rgb(204 251 241 / var(--tw-border-opacity, 1))}.border-teal-200{--tw-border-opacity: 1;border-color:rgb(153 246 228 / var(--tw-border-opacity, 1))}.border-teal-300{--tw-border-opacity: 1;border-color:rgb(94 234 212 / var(--tw-border-opacity, 1))}.border-teal-400{--tw-border-opacity: 1;border-color:rgb(45 212 191 / var(--tw-border-opacity, 1))}.border-teal-50{--tw-border-opacity: 1;border-color:rgb(240 253 250 / var(--tw-border-opacity, 1))}.border-teal-500{--tw-border-opacity: 1;border-color:rgb(20 184 166 / var(--tw-border-opacity, 1))}.border-teal-600{--tw-border-opacity: 1;border-color:rgb(13 148 136 / var(--tw-border-opacity, 1))}.border-teal-700{--tw-border-opacity: 1;border-color:rgb(15 118 110 / var(--tw-border-opacity, 1))}.border-teal-800{--tw-border-opacity: 1;border-color:rgb(17 94 89 / var(--tw-border-opacity, 1))}.border-teal-900{--tw-border-opacity: 1;border-color:rgb(19 78 74 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.border-violet-100{--tw-border-opacity: 1;border-color:rgb(237 233 254 / var(--tw-border-opacity, 1))}.border-violet-200{--tw-border-opacity: 1;border-color:rgb(221 214 254 / var(--tw-border-opacity, 1))}.border-violet-300{--tw-border-opacity: 1;border-color:rgb(196 181 253 / var(--tw-border-opacity, 1))}.border-violet-400{--tw-border-opacity: 1;border-color:rgb(167 139 250 / var(--tw-border-opacity, 1))}.border-violet-50{--tw-border-opacity: 1;border-color:rgb(245 243 255 / var(--tw-border-opacity, 1))}.border-violet-500{--tw-border-opacity: 1;border-color:rgb(139 92 246 / var(--tw-border-opacity, 1))}.border-violet-600{--tw-border-opacity: 1;border-color:rgb(124 58 237 / var(--tw-border-opacity, 1))}.border-violet-700{--tw-border-opacity: 1;border-color:rgb(109 40 217 / var(--tw-border-opacity, 1))}.border-violet-800{--tw-border-opacity: 1;border-color:rgb(91 33 182 / var(--tw-border-opacity, 1))}.border-violet-900{--tw-border-opacity: 1;border-color:rgb(76 29 149 / var(--tw-border-opacity, 1))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.border-yellow-100{--tw-border-opacity: 1;border-color:rgb(254 249 195 / var(--tw-border-opacity, 1))}.border-yellow-200{--tw-border-opacity: 1;border-color:rgb(254 240 138 / var(--tw-border-opacity, 1))}.border-yellow-300{--tw-border-opacity: 1;border-color:rgb(253 224 71 / var(--tw-border-opacity, 1))}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(250 204 21 / var(--tw-border-opacity, 1))}.border-yellow-50{--tw-border-opacity: 1;border-color:rgb(254 252 232 / var(--tw-border-opacity, 1))}.border-yellow-500{--tw-border-opacity: 1;border-color:rgb(234 179 8 / var(--tw-border-opacity, 1))}.border-yellow-600{--tw-border-opacity: 1;border-color:rgb(202 138 4 / var(--tw-border-opacity, 1))}.border-yellow-700{--tw-border-opacity: 1;border-color:rgb(161 98 7 / var(--tw-border-opacity, 1))}.border-yellow-800{--tw-border-opacity: 1;border-color:rgb(133 77 14 / var(--tw-border-opacity, 1))}.border-yellow-900{--tw-border-opacity: 1;border-color:rgb(113 63 18 / var(--tw-border-opacity, 1))}.border-zinc-100{--tw-border-opacity: 1;border-color:rgb(244 244 245 / var(--tw-border-opacity, 1))}.border-zinc-200{--tw-border-opacity: 1;border-color:rgb(228 228 231 / var(--tw-border-opacity, 1))}.border-zinc-300{--tw-border-opacity: 1;border-color:rgb(212 212 216 / var(--tw-border-opacity, 1))}.border-zinc-400{--tw-border-opacity: 1;border-color:rgb(161 161 170 / var(--tw-border-opacity, 1))}.border-zinc-50{--tw-border-opacity: 1;border-color:rgb(250 250 250 / var(--tw-border-opacity, 1))}.border-zinc-500{--tw-border-opacity: 1;border-color:rgb(113 113 122 / var(--tw-border-opacity, 1))}.border-zinc-600{--tw-border-opacity: 1;border-color:rgb(82 82 91 / var(--tw-border-opacity, 1))}.border-zinc-700{--tw-border-opacity: 1;border-color:rgb(63 63 70 / var(--tw-border-opacity, 1))}.border-zinc-800{--tw-border-opacity: 1;border-color:rgb(39 39 42 / var(--tw-border-opacity, 1))}.border-zinc-900{--tw-border-opacity: 1;border-color:rgb(24 24 27 / var(--tw-border-opacity, 1))}.border-r-transparent{border-right-color:transparent}.bg-amber-100{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}.bg-amber-200{--tw-bg-opacity: 1;background-color:rgb(253 230 138 / var(--tw-bg-opacity, 1))}.bg-amber-300{--tw-bg-opacity: 1;background-color:rgb(252 211 77 / var(--tw-bg-opacity, 1))}.bg-amber-400{--tw-bg-opacity: 1;background-color:rgb(251 191 36 / var(--tw-bg-opacity, 1))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-amber-500{--tw-bg-opacity: 1;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))}.bg-amber-600{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity, 1))}.bg-amber-700{--tw-bg-opacity: 1;background-color:rgb(180 83 9 / var(--tw-bg-opacity, 1))}.bg-amber-800{--tw-bg-opacity: 1;background-color:rgb(146 64 14 / var(--tw-bg-opacity, 1))}.bg-amber-900{--tw-bg-opacity: 1;background-color:rgb(120 53 15 / var(--tw-bg-opacity, 1))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-black\\/0{background-color:#0000}.bg-black\\/50{background-color:#00000080}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.bg-blue-200{--tw-bg-opacity: 1;background-color:rgb(191 219 254 / var(--tw-bg-opacity, 1))}.bg-blue-300{--tw-bg-opacity: 1;background-color:rgb(147 197 253 / var(--tw-bg-opacity, 1))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity, 1))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))}.bg-blue-800{--tw-bg-opacity: 1;background-color:rgb(30 64 175 / var(--tw-bg-opacity, 1))}.bg-blue-900{--tw-bg-opacity: 1;background-color:rgb(30 58 138 / var(--tw-bg-opacity, 1))}.bg-cyan-100{--tw-bg-opacity: 1;background-color:rgb(207 250 254 / var(--tw-bg-opacity, 1))}.bg-cyan-200{--tw-bg-opacity: 1;background-color:rgb(165 243 252 / var(--tw-bg-opacity, 1))}.bg-cyan-300{--tw-bg-opacity: 1;background-color:rgb(103 232 249 / var(--tw-bg-opacity, 1))}.bg-cyan-400{--tw-bg-opacity: 1;background-color:rgb(34 211 238 / var(--tw-bg-opacity, 1))}.bg-cyan-50{--tw-bg-opacity: 1;background-color:rgb(236 254 255 / var(--tw-bg-opacity, 1))}.bg-cyan-500{--tw-bg-opacity: 1;background-color:rgb(6 182 212 / var(--tw-bg-opacity, 1))}.bg-cyan-600{--tw-bg-opacity: 1;background-color:rgb(8 145 178 / var(--tw-bg-opacity, 1))}.bg-cyan-700{--tw-bg-opacity: 1;background-color:rgb(14 116 144 / var(--tw-bg-opacity, 1))}.bg-cyan-800{--tw-bg-opacity: 1;background-color:rgb(21 94 117 / var(--tw-bg-opacity, 1))}.bg-cyan-900{--tw-bg-opacity: 1;background-color:rgb(22 78 99 / var(--tw-bg-opacity, 1))}.bg-emerald-100{--tw-bg-opacity: 1;background-color:rgb(209 250 229 / var(--tw-bg-opacity, 1))}.bg-emerald-200{--tw-bg-opacity: 1;background-color:rgb(167 243 208 / var(--tw-bg-opacity, 1))}.bg-emerald-300{--tw-bg-opacity: 1;background-color:rgb(110 231 183 / var(--tw-bg-opacity, 1))}.bg-emerald-400{--tw-bg-opacity: 1;background-color:rgb(52 211 153 / var(--tw-bg-opacity, 1))}.bg-emerald-50{--tw-bg-opacity: 1;background-color:rgb(236 253 245 / var(--tw-bg-opacity, 1))}.bg-emerald-500{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity, 1))}.bg-emerald-700{--tw-bg-opacity: 1;background-color:rgb(4 120 87 / var(--tw-bg-opacity, 1))}.bg-emerald-800{--tw-bg-opacity: 1;background-color:rgb(6 95 70 / var(--tw-bg-opacity, 1))}.bg-emerald-900{--tw-bg-opacity: 1;background-color:rgb(6 78 59 / var(--tw-bg-opacity, 1))}.bg-fuchsia-100{--tw-bg-opacity: 1;background-color:rgb(250 232 255 / var(--tw-bg-opacity, 1))}.bg-fuchsia-200{--tw-bg-opacity: 1;background-color:rgb(245 208 254 / var(--tw-bg-opacity, 1))}.bg-fuchsia-300{--tw-bg-opacity: 1;background-color:rgb(240 171 252 / var(--tw-bg-opacity, 1))}.bg-fuchsia-400{--tw-bg-opacity: 1;background-color:rgb(232 121 249 / var(--tw-bg-opacity, 1))}.bg-fuchsia-50{--tw-bg-opacity: 1;background-color:rgb(253 244 255 / var(--tw-bg-opacity, 1))}.bg-fuchsia-500{--tw-bg-opacity: 1;background-color:rgb(217 70 239 / var(--tw-bg-opacity, 1))}.bg-fuchsia-600{--tw-bg-opacity: 1;background-color:rgb(192 38 211 / var(--tw-bg-opacity, 1))}.bg-fuchsia-700{--tw-bg-opacity: 1;background-color:rgb(162 28 175 / var(--tw-bg-opacity, 1))}.bg-fuchsia-800{--tw-bg-opacity: 1;background-color:rgb(134 25 143 / var(--tw-bg-opacity, 1))}.bg-fuchsia-900{--tw-bg-opacity: 1;background-color:rgb(112 26 117 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity, 1))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.bg-gray-800\\/40{background-color:#1f293766}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-gray-950{--tw-bg-opacity: 1;background-color:rgb(3 7 18 / var(--tw-bg-opacity, 1))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.bg-green-200{--tw-bg-opacity: 1;background-color:rgb(187 247 208 / var(--tw-bg-opacity, 1))}.bg-green-300{--tw-bg-opacity: 1;background-color:rgb(134 239 172 / var(--tw-bg-opacity, 1))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity, 1))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.bg-green-700{--tw-bg-opacity: 1;background-color:rgb(21 128 61 / var(--tw-bg-opacity, 1))}.bg-green-800{--tw-bg-opacity: 1;background-color:rgb(22 101 52 / var(--tw-bg-opacity, 1))}.bg-green-900{--tw-bg-opacity: 1;background-color:rgb(20 83 45 / var(--tw-bg-opacity, 1))}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(224 231 255 / var(--tw-bg-opacity, 1))}.bg-indigo-200{--tw-bg-opacity: 1;background-color:rgb(199 210 254 / var(--tw-bg-opacity, 1))}.bg-indigo-300{--tw-bg-opacity: 1;background-color:rgb(165 180 252 / var(--tw-bg-opacity, 1))}.bg-indigo-400{--tw-bg-opacity: 1;background-color:rgb(129 140 248 / var(--tw-bg-opacity, 1))}.bg-indigo-50{--tw-bg-opacity: 1;background-color:rgb(238 242 255 / var(--tw-bg-opacity, 1))}.bg-indigo-500{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity, 1))}.bg-indigo-700{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity, 1))}.bg-indigo-800{--tw-bg-opacity: 1;background-color:rgb(55 48 163 / var(--tw-bg-opacity, 1))}.bg-indigo-900{--tw-bg-opacity: 1;background-color:rgb(49 46 129 / var(--tw-bg-opacity, 1))}.bg-lime-100{--tw-bg-opacity: 1;background-color:rgb(236 252 203 / var(--tw-bg-opacity, 1))}.bg-lime-200{--tw-bg-opacity: 1;background-color:rgb(217 249 157 / var(--tw-bg-opacity, 1))}.bg-lime-300{--tw-bg-opacity: 1;background-color:rgb(190 242 100 / var(--tw-bg-opacity, 1))}.bg-lime-400{--tw-bg-opacity: 1;background-color:rgb(163 230 53 / var(--tw-bg-opacity, 1))}.bg-lime-50{--tw-bg-opacity: 1;background-color:rgb(247 254 231 / var(--tw-bg-opacity, 1))}.bg-lime-500{--tw-bg-opacity: 1;background-color:rgb(132 204 22 / var(--tw-bg-opacity, 1))}.bg-lime-600{--tw-bg-opacity: 1;background-color:rgb(101 163 13 / var(--tw-bg-opacity, 1))}.bg-lime-700{--tw-bg-opacity: 1;background-color:rgb(77 124 15 / var(--tw-bg-opacity, 1))}.bg-lime-800{--tw-bg-opacity: 1;background-color:rgb(63 98 18 / var(--tw-bg-opacity, 1))}.bg-lime-900{--tw-bg-opacity: 1;background-color:rgb(54 83 20 / var(--tw-bg-opacity, 1))}.bg-myPrimaryBrandColor{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-myPrimaryErrorColor{--tw-bg-opacity: 1;background-color:rgb(214 0 0 / var(--tw-bg-opacity, 1))}.bg-myPrimaryLightGrayColor{--tw-bg-opacity: 1;background-color:rgb(239 242 246 / var(--tw-bg-opacity, 1))}.bg-myPrimaryLinkColor{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.bg-neutral-100{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity, 1))}.bg-neutral-200{--tw-bg-opacity: 1;background-color:rgb(229 229 229 / var(--tw-bg-opacity, 1))}.bg-neutral-300{--tw-bg-opacity: 1;background-color:rgb(212 212 212 / var(--tw-bg-opacity, 1))}.bg-neutral-400{--tw-bg-opacity: 1;background-color:rgb(163 163 163 / var(--tw-bg-opacity, 1))}.bg-neutral-50{--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity, 1))}.bg-neutral-500{--tw-bg-opacity: 1;background-color:rgb(115 115 115 / var(--tw-bg-opacity, 1))}.bg-neutral-600{--tw-bg-opacity: 1;background-color:rgb(82 82 82 / var(--tw-bg-opacity, 1))}.bg-neutral-700{--tw-bg-opacity: 1;background-color:rgb(64 64 64 / var(--tw-bg-opacity, 1))}.bg-neutral-800{--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity, 1))}.bg-neutral-900{--tw-bg-opacity: 1;background-color:rgb(23 23 23 / var(--tw-bg-opacity, 1))}.bg-orange-100{--tw-bg-opacity: 1;background-color:rgb(255 237 213 / var(--tw-bg-opacity, 1))}.bg-orange-200{--tw-bg-opacity: 1;background-color:rgb(254 215 170 / var(--tw-bg-opacity, 1))}.bg-orange-300{--tw-bg-opacity: 1;background-color:rgb(253 186 116 / var(--tw-bg-opacity, 1))}.bg-orange-400{--tw-bg-opacity: 1;background-color:rgb(251 146 60 / var(--tw-bg-opacity, 1))}.bg-orange-50{--tw-bg-opacity: 1;background-color:rgb(255 247 237 / var(--tw-bg-opacity, 1))}.bg-orange-500{--tw-bg-opacity: 1;background-color:rgb(249 115 22 / var(--tw-bg-opacity, 1))}.bg-orange-600{--tw-bg-opacity: 1;background-color:rgb(234 88 12 / var(--tw-bg-opacity, 1))}.bg-orange-700{--tw-bg-opacity: 1;background-color:rgb(194 65 12 / var(--tw-bg-opacity, 1))}.bg-orange-800{--tw-bg-opacity: 1;background-color:rgb(154 52 18 / var(--tw-bg-opacity, 1))}.bg-orange-900{--tw-bg-opacity: 1;background-color:rgb(124 45 18 / var(--tw-bg-opacity, 1))}.bg-pink-100{--tw-bg-opacity: 1;background-color:rgb(252 231 243 / var(--tw-bg-opacity, 1))}.bg-pink-200{--tw-bg-opacity: 1;background-color:rgb(251 207 232 / var(--tw-bg-opacity, 1))}.bg-pink-300{--tw-bg-opacity: 1;background-color:rgb(249 168 212 / var(--tw-bg-opacity, 1))}.bg-pink-400{--tw-bg-opacity: 1;background-color:rgb(244 114 182 / var(--tw-bg-opacity, 1))}.bg-pink-50{--tw-bg-opacity: 1;background-color:rgb(253 242 248 / var(--tw-bg-opacity, 1))}.bg-pink-500{--tw-bg-opacity: 1;background-color:rgb(236 72 153 / var(--tw-bg-opacity, 1))}.bg-pink-600{--tw-bg-opacity: 1;background-color:rgb(219 39 119 / var(--tw-bg-opacity, 1))}.bg-pink-700{--tw-bg-opacity: 1;background-color:rgb(190 24 93 / var(--tw-bg-opacity, 1))}.bg-pink-800{--tw-bg-opacity: 1;background-color:rgb(157 23 77 / var(--tw-bg-opacity, 1))}.bg-pink-900{--tw-bg-opacity: 1;background-color:rgb(131 24 67 / var(--tw-bg-opacity, 1))}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(243 232 255 / var(--tw-bg-opacity, 1))}.bg-purple-200{--tw-bg-opacity: 1;background-color:rgb(233 213 255 / var(--tw-bg-opacity, 1))}.bg-purple-300{--tw-bg-opacity: 1;background-color:rgb(216 180 254 / var(--tw-bg-opacity, 1))}.bg-purple-400{--tw-bg-opacity: 1;background-color:rgb(192 132 252 / var(--tw-bg-opacity, 1))}.bg-purple-50{--tw-bg-opacity: 1;background-color:rgb(250 245 255 / var(--tw-bg-opacity, 1))}.bg-purple-500{--tw-bg-opacity: 1;background-color:rgb(168 85 247 / var(--tw-bg-opacity, 1))}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(147 51 234 / var(--tw-bg-opacity, 1))}.bg-purple-700{--tw-bg-opacity: 1;background-color:rgb(126 34 206 / var(--tw-bg-opacity, 1))}.bg-purple-800{--tw-bg-opacity: 1;background-color:rgb(107 33 168 / var(--tw-bg-opacity, 1))}.bg-purple-900{--tw-bg-opacity: 1;background-color:rgb(88 28 135 / var(--tw-bg-opacity, 1))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.bg-red-200{--tw-bg-opacity: 1;background-color:rgb(254 202 202 / var(--tw-bg-opacity, 1))}.bg-red-300{--tw-bg-opacity: 1;background-color:rgb(252 165 165 / var(--tw-bg-opacity, 1))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity, 1))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-red-700{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))}.bg-red-800{--tw-bg-opacity: 1;background-color:rgb(153 27 27 / var(--tw-bg-opacity, 1))}.bg-red-900{--tw-bg-opacity: 1;background-color:rgb(127 29 29 / var(--tw-bg-opacity, 1))}.bg-rose-100{--tw-bg-opacity: 1;background-color:rgb(255 228 230 / var(--tw-bg-opacity, 1))}.bg-rose-200{--tw-bg-opacity: 1;background-color:rgb(254 205 211 / var(--tw-bg-opacity, 1))}.bg-rose-300{--tw-bg-opacity: 1;background-color:rgb(253 164 175 / var(--tw-bg-opacity, 1))}.bg-rose-400{--tw-bg-opacity: 1;background-color:rgb(251 113 133 / var(--tw-bg-opacity, 1))}.bg-rose-50{--tw-bg-opacity: 1;background-color:rgb(255 241 242 / var(--tw-bg-opacity, 1))}.bg-rose-500{--tw-bg-opacity: 1;background-color:rgb(244 63 94 / var(--tw-bg-opacity, 1))}.bg-rose-600{--tw-bg-opacity: 1;background-color:rgb(225 29 72 / var(--tw-bg-opacity, 1))}.bg-rose-700{--tw-bg-opacity: 1;background-color:rgb(190 18 60 / var(--tw-bg-opacity, 1))}.bg-rose-800{--tw-bg-opacity: 1;background-color:rgb(159 18 57 / var(--tw-bg-opacity, 1))}.bg-rose-900{--tw-bg-opacity: 1;background-color:rgb(136 19 55 / var(--tw-bg-opacity, 1))}.bg-sky-100{--tw-bg-opacity: 1;background-color:rgb(224 242 254 / var(--tw-bg-opacity, 1))}.bg-sky-200{--tw-bg-opacity: 1;background-color:rgb(186 230 253 / var(--tw-bg-opacity, 1))}.bg-sky-300{--tw-bg-opacity: 1;background-color:rgb(125 211 252 / var(--tw-bg-opacity, 1))}.bg-sky-400{--tw-bg-opacity: 1;background-color:rgb(56 189 248 / var(--tw-bg-opacity, 1))}.bg-sky-50{--tw-bg-opacity: 1;background-color:rgb(240 249 255 / var(--tw-bg-opacity, 1))}.bg-sky-500{--tw-bg-opacity: 1;background-color:rgb(14 165 233 / var(--tw-bg-opacity, 1))}.bg-sky-600{--tw-bg-opacity: 1;background-color:rgb(2 132 199 / var(--tw-bg-opacity, 1))}.bg-sky-700{--tw-bg-opacity: 1;background-color:rgb(3 105 161 / var(--tw-bg-opacity, 1))}.bg-sky-800{--tw-bg-opacity: 1;background-color:rgb(7 89 133 / var(--tw-bg-opacity, 1))}.bg-sky-900{--tw-bg-opacity: 1;background-color:rgb(12 74 110 / var(--tw-bg-opacity, 1))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity, 1))}.bg-slate-200{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity, 1))}.bg-slate-300{--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity, 1))}.bg-slate-400{--tw-bg-opacity: 1;background-color:rgb(148 163 184 / var(--tw-bg-opacity, 1))}.bg-slate-50{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity, 1))}.bg-slate-500{--tw-bg-opacity: 1;background-color:rgb(100 116 139 / var(--tw-bg-opacity, 1))}.bg-slate-600{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity, 1))}.bg-slate-700{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity, 1))}.bg-slate-800{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.bg-slate-900{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity, 1))}.bg-stone-100{--tw-bg-opacity: 1;background-color:rgb(245 245 244 / var(--tw-bg-opacity, 1))}.bg-stone-200{--tw-bg-opacity: 1;background-color:rgb(231 229 228 / var(--tw-bg-opacity, 1))}.bg-stone-300{--tw-bg-opacity: 1;background-color:rgb(214 211 209 / var(--tw-bg-opacity, 1))}.bg-stone-400{--tw-bg-opacity: 1;background-color:rgb(168 162 158 / var(--tw-bg-opacity, 1))}.bg-stone-50{--tw-bg-opacity: 1;background-color:rgb(250 250 249 / var(--tw-bg-opacity, 1))}.bg-stone-500{--tw-bg-opacity: 1;background-color:rgb(120 113 108 / var(--tw-bg-opacity, 1))}.bg-stone-600{--tw-bg-opacity: 1;background-color:rgb(87 83 78 / var(--tw-bg-opacity, 1))}.bg-stone-700{--tw-bg-opacity: 1;background-color:rgb(68 64 60 / var(--tw-bg-opacity, 1))}.bg-stone-800{--tw-bg-opacity: 1;background-color:rgb(41 37 36 / var(--tw-bg-opacity, 1))}.bg-stone-900{--tw-bg-opacity: 1;background-color:rgb(28 25 23 / var(--tw-bg-opacity, 1))}.bg-teal-100{--tw-bg-opacity: 1;background-color:rgb(204 251 241 / var(--tw-bg-opacity, 1))}.bg-teal-200{--tw-bg-opacity: 1;background-color:rgb(153 246 228 / var(--tw-bg-opacity, 1))}.bg-teal-300{--tw-bg-opacity: 1;background-color:rgb(94 234 212 / var(--tw-bg-opacity, 1))}.bg-teal-400{--tw-bg-opacity: 1;background-color:rgb(45 212 191 / var(--tw-bg-opacity, 1))}.bg-teal-50{--tw-bg-opacity: 1;background-color:rgb(240 253 250 / var(--tw-bg-opacity, 1))}.bg-teal-500{--tw-bg-opacity: 1;background-color:rgb(20 184 166 / var(--tw-bg-opacity, 1))}.bg-teal-600{--tw-bg-opacity: 1;background-color:rgb(13 148 136 / var(--tw-bg-opacity, 1))}.bg-teal-700{--tw-bg-opacity: 1;background-color:rgb(15 118 110 / var(--tw-bg-opacity, 1))}.bg-teal-800{--tw-bg-opacity: 1;background-color:rgb(17 94 89 / var(--tw-bg-opacity, 1))}.bg-teal-900{--tw-bg-opacity: 1;background-color:rgb(19 78 74 / var(--tw-bg-opacity, 1))}.bg-violet-100{--tw-bg-opacity: 1;background-color:rgb(237 233 254 / var(--tw-bg-opacity, 1))}.bg-violet-200{--tw-bg-opacity: 1;background-color:rgb(221 214 254 / var(--tw-bg-opacity, 1))}.bg-violet-300{--tw-bg-opacity: 1;background-color:rgb(196 181 253 / var(--tw-bg-opacity, 1))}.bg-violet-400{--tw-bg-opacity: 1;background-color:rgb(167 139 250 / var(--tw-bg-opacity, 1))}.bg-violet-50{--tw-bg-opacity: 1;background-color:rgb(245 243 255 / var(--tw-bg-opacity, 1))}.bg-violet-500{--tw-bg-opacity: 1;background-color:rgb(139 92 246 / var(--tw-bg-opacity, 1))}.bg-violet-600{--tw-bg-opacity: 1;background-color:rgb(124 58 237 / var(--tw-bg-opacity, 1))}.bg-violet-700{--tw-bg-opacity: 1;background-color:rgb(109 40 217 / var(--tw-bg-opacity, 1))}.bg-violet-800{--tw-bg-opacity: 1;background-color:rgb(91 33 182 / var(--tw-bg-opacity, 1))}.bg-violet-900{--tw-bg-opacity: 1;background-color:rgb(76 29 149 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity, 1))}.bg-yellow-200{--tw-bg-opacity: 1;background-color:rgb(254 240 138 / var(--tw-bg-opacity, 1))}.bg-yellow-300{--tw-bg-opacity: 1;background-color:rgb(253 224 71 / var(--tw-bg-opacity, 1))}.bg-yellow-400{--tw-bg-opacity: 1;background-color:rgb(250 204 21 / var(--tw-bg-opacity, 1))}.bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity, 1))}.bg-yellow-500{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity, 1))}.bg-yellow-600{--tw-bg-opacity: 1;background-color:rgb(202 138 4 / var(--tw-bg-opacity, 1))}.bg-yellow-700{--tw-bg-opacity: 1;background-color:rgb(161 98 7 / var(--tw-bg-opacity, 1))}.bg-yellow-800{--tw-bg-opacity: 1;background-color:rgb(133 77 14 / var(--tw-bg-opacity, 1))}.bg-yellow-900{--tw-bg-opacity: 1;background-color:rgb(113 63 18 / var(--tw-bg-opacity, 1))}.bg-zinc-100{--tw-bg-opacity: 1;background-color:rgb(244 244 245 / var(--tw-bg-opacity, 1))}.bg-zinc-200{--tw-bg-opacity: 1;background-color:rgb(228 228 231 / var(--tw-bg-opacity, 1))}.bg-zinc-300{--tw-bg-opacity: 1;background-color:rgb(212 212 216 / var(--tw-bg-opacity, 1))}.bg-zinc-400{--tw-bg-opacity: 1;background-color:rgb(161 161 170 / var(--tw-bg-opacity, 1))}.bg-zinc-50{--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity, 1))}.bg-zinc-500{--tw-bg-opacity: 1;background-color:rgb(113 113 122 / var(--tw-bg-opacity, 1))}.bg-zinc-600{--tw-bg-opacity: 1;background-color:rgb(82 82 91 / var(--tw-bg-opacity, 1))}.bg-zinc-700{--tw-bg-opacity: 1;background-color:rgb(63 63 70 / var(--tw-bg-opacity, 1))}.bg-zinc-800{--tw-bg-opacity: 1;background-color:rgb(39 39 42 / var(--tw-bg-opacity, 1))}.bg-zinc-900{--tw-bg-opacity: 1;background-color:rgb(24 24 27 / var(--tw-bg-opacity, 1))}.bg-opacity-0{--tw-bg-opacity: 0}.bg-opacity-10{--tw-bg-opacity: .1}.bg-opacity-100{--tw-bg-opacity: 1}.bg-opacity-20{--tw-bg-opacity: .2}.bg-opacity-25{--tw-bg-opacity: .25}.bg-opacity-30{--tw-bg-opacity: .3}.bg-opacity-40{--tw-bg-opacity: .4}.bg-opacity-5{--tw-bg-opacity: .05}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-60{--tw-bg-opacity: .6}.bg-opacity-70{--tw-bg-opacity: .7}.bg-opacity-75{--tw-bg-opacity: .75}.bg-opacity-80{--tw-bg-opacity: .8}.bg-opacity-90{--tw-bg-opacity: .9}.bg-opacity-95{--tw-bg-opacity: .95}.fill-gray-800{fill:#1f2937}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.object-fill{-o-object-fit:fill;object-fit:fill}.object-none{-o-object-fit:none;object-fit:none}.object-scale-down{-o-object-fit:scale-down;object-fit:scale-down}.object-bottom{-o-object-position:bottom;object-position:bottom}.object-center{-o-object-position:center;object-position:center}.object-left{-o-object-position:left;object-position:left}.object-left-bottom{-o-object-position:left bottom;object-position:left bottom}.object-left-top{-o-object-position:left top;object-position:left top}.object-right{-o-object-position:right;object-position:right}.object-right-bottom{-o-object-position:right bottom;object-position:right bottom}.object-right-top{-o-object-position:right top;object-position:right top}.object-top{-o-object-position:top;object-position:top}.\\!p-0{padding:0!important}.p-0{padding:0}.p-1{padding:.25rem}.p-1\\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-0{padding-left:0;padding-right:0}.px-0\\.5{padding-left:.125rem;padding-right:.125rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-11{padding-left:2.75rem;padding-right:2.75rem}.px-12{padding-left:3rem;padding-right:3rem}.px-14{padding-left:3.5rem;padding-right:3.5rem}.px-16{padding-left:4rem;padding-right:4rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-20{padding-left:5rem;padding-right:5rem}.px-24{padding-left:6rem;padding-right:6rem}.px-28{padding-left:7rem;padding-right:7rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-32{padding-left:8rem;padding-right:8rem}.px-36{padding-left:9rem;padding-right:9rem}.px-4{padding-left:1rem;padding-right:1rem}.px-40{padding-left:10rem;padding-right:10rem}.px-44{padding-left:11rem;padding-right:11rem}.px-48{padding-left:12rem;padding-right:12rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-52{padding-left:13rem;padding-right:13rem}.px-56{padding-left:14rem;padding-right:14rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-60{padding-left:15rem;padding-right:15rem}.px-64{padding-left:16rem;padding-right:16rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.px-72{padding-left:18rem;padding-right:18rem}.px-8{padding-left:2rem;padding-right:2rem}.px-80{padding-left:20rem;padding-right:20rem}.px-9{padding-left:2.25rem;padding-right:2.25rem}.px-96{padding-left:24rem;padding-right:24rem}.py-0{padding-top:0;padding-bottom:0}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-11{padding-top:2.75rem;padding-bottom:2.75rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-14{padding-top:3.5rem;padding-bottom:3.5rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-24{padding-top:6rem;padding-bottom:6rem}.py-28{padding-top:7rem;padding-bottom:7rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.py-32{padding-top:8rem;padding-bottom:8rem}.py-36{padding-top:9rem;padding-bottom:9rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-40{padding-top:10rem;padding-bottom:10rem}.py-44{padding-top:11rem;padding-bottom:11rem}.py-48{padding-top:12rem;padding-bottom:12rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-52{padding-top:13rem;padding-bottom:13rem}.py-56{padding-top:14rem;padding-bottom:14rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-60{padding-top:15rem;padding-bottom:15rem}.py-64{padding-top:16rem;padding-bottom:16rem}.py-7{padding-top:1.75rem;padding-bottom:1.75rem}.py-72{padding-top:18rem;padding-bottom:18rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-80{padding-top:20rem;padding-bottom:20rem}.py-9{padding-top:2.25rem;padding-bottom:2.25rem}.py-96{padding-top:24rem;padding-bottom:24rem}.pb-0{padding-bottom:0}.pb-0\\.5{padding-bottom:.125rem}.pb-1{padding-bottom:.25rem}.pb-1\\.5{padding-bottom:.375rem}.pb-10{padding-bottom:2.5rem}.pb-11{padding-bottom:2.75rem}.pb-12{padding-bottom:3rem}.pb-14{padding-bottom:3.5rem}.pb-16{padding-bottom:4rem}.pb-2{padding-bottom:.5rem}.pb-2\\.5{padding-bottom:.625rem}.pb-20{padding-bottom:5rem}.pb-24{padding-bottom:6rem}.pb-28{padding-bottom:7rem}.pb-3{padding-bottom:.75rem}.pb-3\\.5{padding-bottom:.875rem}.pb-32{padding-bottom:8rem}.pb-36{padding-bottom:9rem}.pb-4{padding-bottom:1rem}.pb-40{padding-bottom:10rem}.pb-44{padding-bottom:11rem}.pb-48{padding-bottom:12rem}.pb-5{padding-bottom:1.25rem}.pb-52{padding-bottom:13rem}.pb-56{padding-bottom:14rem}.pb-6{padding-bottom:1.5rem}.pb-60{padding-bottom:15rem}.pb-64{padding-bottom:16rem}.pb-7{padding-bottom:1.75rem}.pb-72{padding-bottom:18rem}.pb-8{padding-bottom:2rem}.pb-80{padding-bottom:20rem}.pb-9{padding-bottom:2.25rem}.pb-96{padding-bottom:24rem}.pl-0{padding-left:0}.pl-0\\.5{padding-left:.125rem}.pl-1{padding-left:.25rem}.pl-1\\.5{padding-left:.375rem}.pl-10{padding-left:2.5rem}.pl-11{padding-left:2.75rem}.pl-12{padding-left:3rem}.pl-14{padding-left:3.5rem}.pl-16{padding-left:4rem}.pl-2{padding-left:.5rem}.pl-2\\.5{padding-left:.625rem}.pl-20{padding-left:5rem}.pl-24{padding-left:6rem}.pl-28{padding-left:7rem}.pl-3{padding-left:.75rem}.pl-3\\.5{padding-left:.875rem}.pl-32{padding-left:8rem}.pl-36{padding-left:9rem}.pl-4{padding-left:1rem}.pl-40{padding-left:10rem}.pl-44{padding-left:11rem}.pl-48{padding-left:12rem}.pl-5{padding-left:1.25rem}.pl-52{padding-left:13rem}.pl-56{padding-left:14rem}.pl-6{padding-left:1.5rem}.pl-60{padding-left:15rem}.pl-64{padding-left:16rem}.pl-7{padding-left:1.75rem}.pl-72{padding-left:18rem}.pl-8{padding-left:2rem}.pl-80{padding-left:20rem}.pl-9{padding-left:2.25rem}.pl-96{padding-left:24rem}.pr-0{padding-right:0}.pr-0\\.5{padding-right:.125rem}.pr-1{padding-right:.25rem}.pr-1\\.5{padding-right:.375rem}.pr-10{padding-right:2.5rem}.pr-11{padding-right:2.75rem}.pr-12{padding-right:3rem}.pr-14{padding-right:3.5rem}.pr-16{padding-right:4rem}.pr-2{padding-right:.5rem}.pr-2\\.5{padding-right:.625rem}.pr-20{padding-right:5rem}.pr-24{padding-right:6rem}.pr-28{padding-right:7rem}.pr-3{padding-right:.75rem}.pr-3\\.5{padding-right:.875rem}.pr-32{padding-right:8rem}.pr-36{padding-right:9rem}.pr-4{padding-right:1rem}.pr-40{padding-right:10rem}.pr-44{padding-right:11rem}.pr-48{padding-right:12rem}.pr-5{padding-right:1.25rem}.pr-52{padding-right:13rem}.pr-56{padding-right:14rem}.pr-6{padding-right:1.5rem}.pr-60{padding-right:15rem}.pr-64{padding-right:16rem}.pr-7{padding-right:1.75rem}.pr-72{padding-right:18rem}.pr-8{padding-right:2rem}.pr-80{padding-right:20rem}.pr-9{padding-right:2.25rem}.pr-96{padding-right:24rem}.pt-0{padding-top:0}.pt-0\\.5{padding-top:.125rem}.pt-1{padding-top:.25rem}.pt-1\\.5{padding-top:.375rem}.pt-10{padding-top:2.5rem}.pt-11{padding-top:2.75rem}.pt-12{padding-top:3rem}.pt-14{padding-top:3.5rem}.pt-16{padding-top:4rem}.pt-2{padding-top:.5rem}.pt-2\\.5{padding-top:.625rem}.pt-20{padding-top:5rem}.pt-24{padding-top:6rem}.pt-28{padding-top:7rem}.pt-3{padding-top:.75rem}.pt-3\\.5{padding-top:.875rem}.pt-32{padding-top:8rem}.pt-36{padding-top:9rem}.pt-4{padding-top:1rem}.pt-40{padding-top:10rem}.pt-44{padding-top:11rem}.pt-48{padding-top:12rem}.pt-5{padding-top:1.25rem}.pt-52{padding-top:13rem}.pt-56{padding-top:14rem}.pt-6{padding-top:1.5rem}.pt-60{padding-top:15rem}.pt-64{padding-top:16rem}.pt-7{padding-top:1.75rem}.pt-72{padding-top:18rem}.pt-8{padding-top:2rem}.pt-80{padding-top:20rem}.pt-9{padding-top:2.25rem}.pt-96{padding-top:24rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-justify{text-align:justify}.text-start{text-align:start}.text-end{text-align:end}.indent-0{text-indent:0px}.indent-1{text-indent:.25rem}.indent-2{text-indent:.5rem}.indent-4{text-indent:1rem}.indent-8{text-indent:2rem}.indent-px{text-indent:1px}.align-bottom{vertical-align:bottom}.align-\\[-0\\.125em\\]{vertical-align:-.125em}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:Jost,Raleway,Cormorant,sans-serif,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.font-serif{font-family:ui-serif,Georgia,Cambria,Times New Roman,Times,serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-6xl{font-size:3.75rem;line-height:1}.text-7xl{font-size:4.5rem;line-height:1}.text-8xl{font-size:6rem;line-height:1}.text-9xl{font-size:8rem;line-height:1}.text-\\[12\\.5px\\]{font-size:12.5px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-black{font-weight:900}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-extralight{font-weight:200}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.normal-case{text-transform:none}.italic{font-style:italic}.not-italic{font-style:normal}.leading-none{line-height:1}.tracking-wider{letter-spacing:.05em}.text-amber-100{--tw-text-opacity: 1;color:rgb(254 243 199 / var(--tw-text-opacity, 1))}.text-amber-200{--tw-text-opacity: 1;color:rgb(253 230 138 / var(--tw-text-opacity, 1))}.text-amber-300{--tw-text-opacity: 1;color:rgb(252 211 77 / var(--tw-text-opacity, 1))}.text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.text-amber-50{--tw-text-opacity: 1;color:rgb(255 251 235 / var(--tw-text-opacity, 1))}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity, 1))}.text-amber-600{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}.text-amber-700{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}.text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.text-amber-900{--tw-text-opacity: 1;color:rgb(120 53 15 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-blue-100{--tw-text-opacity: 1;color:rgb(219 234 254 / var(--tw-text-opacity, 1))}.text-blue-200{--tw-text-opacity: 1;color:rgb(191 219 254 / var(--tw-text-opacity, 1))}.text-blue-300{--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity, 1))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.text-blue-50{--tw-text-opacity: 1;color:rgb(239 246 255 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.text-blue-900{--tw-text-opacity: 1;color:rgb(30 58 138 / var(--tw-text-opacity, 1))}.text-cyan-100{--tw-text-opacity: 1;color:rgb(207 250 254 / var(--tw-text-opacity, 1))}.text-cyan-200{--tw-text-opacity: 1;color:rgb(165 243 252 / var(--tw-text-opacity, 1))}.text-cyan-300{--tw-text-opacity: 1;color:rgb(103 232 249 / var(--tw-text-opacity, 1))}.text-cyan-400{--tw-text-opacity: 1;color:rgb(34 211 238 / var(--tw-text-opacity, 1))}.text-cyan-50{--tw-text-opacity: 1;color:rgb(236 254 255 / var(--tw-text-opacity, 1))}.text-cyan-500{--tw-text-opacity: 1;color:rgb(6 182 212 / var(--tw-text-opacity, 1))}.text-cyan-600{--tw-text-opacity: 1;color:rgb(8 145 178 / var(--tw-text-opacity, 1))}.text-cyan-700{--tw-text-opacity: 1;color:rgb(14 116 144 / var(--tw-text-opacity, 1))}.text-cyan-800{--tw-text-opacity: 1;color:rgb(21 94 117 / var(--tw-text-opacity, 1))}.text-cyan-900{--tw-text-opacity: 1;color:rgb(22 78 99 / var(--tw-text-opacity, 1))}.text-emerald-100{--tw-text-opacity: 1;color:rgb(209 250 229 / var(--tw-text-opacity, 1))}.text-emerald-200{--tw-text-opacity: 1;color:rgb(167 243 208 / var(--tw-text-opacity, 1))}.text-emerald-300{--tw-text-opacity: 1;color:rgb(110 231 183 / var(--tw-text-opacity, 1))}.text-emerald-400{--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}.text-emerald-50{--tw-text-opacity: 1;color:rgb(236 253 245 / var(--tw-text-opacity, 1))}.text-emerald-500{--tw-text-opacity: 1;color:rgb(16 185 129 / var(--tw-text-opacity, 1))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-emerald-700{--tw-text-opacity: 1;color:rgb(4 120 87 / var(--tw-text-opacity, 1))}.text-emerald-800{--tw-text-opacity: 1;color:rgb(6 95 70 / var(--tw-text-opacity, 1))}.text-emerald-900{--tw-text-opacity: 1;color:rgb(6 78 59 / var(--tw-text-opacity, 1))}.text-fuchsia-100{--tw-text-opacity: 1;color:rgb(250 232 255 / var(--tw-text-opacity, 1))}.text-fuchsia-200{--tw-text-opacity: 1;color:rgb(245 208 254 / var(--tw-text-opacity, 1))}.text-fuchsia-300{--tw-text-opacity: 1;color:rgb(240 171 252 / var(--tw-text-opacity, 1))}.text-fuchsia-400{--tw-text-opacity: 1;color:rgb(232 121 249 / var(--tw-text-opacity, 1))}.text-fuchsia-50{--tw-text-opacity: 1;color:rgb(253 244 255 / var(--tw-text-opacity, 1))}.text-fuchsia-500{--tw-text-opacity: 1;color:rgb(217 70 239 / var(--tw-text-opacity, 1))}.text-fuchsia-600{--tw-text-opacity: 1;color:rgb(192 38 211 / var(--tw-text-opacity, 1))}.text-fuchsia-700{--tw-text-opacity: 1;color:rgb(162 28 175 / var(--tw-text-opacity, 1))}.text-fuchsia-800{--tw-text-opacity: 1;color:rgb(134 25 143 / var(--tw-text-opacity, 1))}.text-fuchsia-900{--tw-text-opacity: 1;color:rgb(112 26 117 / var(--tw-text-opacity, 1))}.text-gray-100{--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity, 1))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-50{--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-green-100{--tw-text-opacity: 1;color:rgb(220 252 231 / var(--tw-text-opacity, 1))}.text-green-200{--tw-text-opacity: 1;color:rgb(187 247 208 / var(--tw-text-opacity, 1))}.text-green-300{--tw-text-opacity: 1;color:rgb(134 239 172 / var(--tw-text-opacity, 1))}.text-green-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.text-green-50{--tw-text-opacity: 1;color:rgb(240 253 244 / var(--tw-text-opacity, 1))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.text-green-900{--tw-text-opacity: 1;color:rgb(20 83 45 / var(--tw-text-opacity, 1))}.text-indigo-100{--tw-text-opacity: 1;color:rgb(224 231 255 / var(--tw-text-opacity, 1))}.text-indigo-200{--tw-text-opacity: 1;color:rgb(199 210 254 / var(--tw-text-opacity, 1))}.text-indigo-300{--tw-text-opacity: 1;color:rgb(165 180 252 / var(--tw-text-opacity, 1))}.text-indigo-400{--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity, 1))}.text-indigo-50{--tw-text-opacity: 1;color:rgb(238 242 255 / var(--tw-text-opacity, 1))}.text-indigo-500{--tw-text-opacity: 1;color:rgb(99 102 241 / var(--tw-text-opacity, 1))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity, 1))}.text-indigo-700{--tw-text-opacity: 1;color:rgb(67 56 202 / var(--tw-text-opacity, 1))}.text-indigo-800{--tw-text-opacity: 1;color:rgb(55 48 163 / var(--tw-text-opacity, 1))}.text-indigo-900{--tw-text-opacity: 1;color:rgb(49 46 129 / var(--tw-text-opacity, 1))}.text-lime-100{--tw-text-opacity: 1;color:rgb(236 252 203 / var(--tw-text-opacity, 1))}.text-lime-200{--tw-text-opacity: 1;color:rgb(217 249 157 / var(--tw-text-opacity, 1))}.text-lime-300{--tw-text-opacity: 1;color:rgb(190 242 100 / var(--tw-text-opacity, 1))}.text-lime-400{--tw-text-opacity: 1;color:rgb(163 230 53 / var(--tw-text-opacity, 1))}.text-lime-50{--tw-text-opacity: 1;color:rgb(247 254 231 / var(--tw-text-opacity, 1))}.text-lime-500{--tw-text-opacity: 1;color:rgb(132 204 22 / var(--tw-text-opacity, 1))}.text-lime-600{--tw-text-opacity: 1;color:rgb(101 163 13 / var(--tw-text-opacity, 1))}.text-lime-700{--tw-text-opacity: 1;color:rgb(77 124 15 / var(--tw-text-opacity, 1))}.text-lime-800{--tw-text-opacity: 1;color:rgb(63 98 18 / var(--tw-text-opacity, 1))}.text-lime-900{--tw-text-opacity: 1;color:rgb(54 83 20 / var(--tw-text-opacity, 1))}.text-myPrimaryDarkGrayColor{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-myPrimaryErrorColor{--tw-text-opacity: 1;color:rgb(214 0 0 / var(--tw-text-opacity, 1))}.text-myPrimaryLinkColor{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-myPrimaryMediumGrayColor{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-myPrimarySuccesColor{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-neutral-100{--tw-text-opacity: 1;color:rgb(245 245 245 / var(--tw-text-opacity, 1))}.text-neutral-200{--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity, 1))}.text-neutral-300{--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity, 1))}.text-neutral-400{--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity, 1))}.text-neutral-50{--tw-text-opacity: 1;color:rgb(250 250 250 / var(--tw-text-opacity, 1))}.text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity, 1))}.text-neutral-600{--tw-text-opacity: 1;color:rgb(82 82 82 / var(--tw-text-opacity, 1))}.text-neutral-700{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity, 1))}.text-neutral-800{--tw-text-opacity: 1;color:rgb(38 38 38 / var(--tw-text-opacity, 1))}.text-neutral-900{--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}.text-orange-100{--tw-text-opacity: 1;color:rgb(255 237 213 / var(--tw-text-opacity, 1))}.text-orange-200{--tw-text-opacity: 1;color:rgb(254 215 170 / var(--tw-text-opacity, 1))}.text-orange-300{--tw-text-opacity: 1;color:rgb(253 186 116 / var(--tw-text-opacity, 1))}.text-orange-400{--tw-text-opacity: 1;color:rgb(251 146 60 / var(--tw-text-opacity, 1))}.text-orange-50{--tw-text-opacity: 1;color:rgb(255 247 237 / var(--tw-text-opacity, 1))}.text-orange-500{--tw-text-opacity: 1;color:rgb(249 115 22 / var(--tw-text-opacity, 1))}.text-orange-600{--tw-text-opacity: 1;color:rgb(234 88 12 / var(--tw-text-opacity, 1))}.text-orange-700{--tw-text-opacity: 1;color:rgb(194 65 12 / var(--tw-text-opacity, 1))}.text-orange-800{--tw-text-opacity: 1;color:rgb(154 52 18 / var(--tw-text-opacity, 1))}.text-orange-900{--tw-text-opacity: 1;color:rgb(124 45 18 / var(--tw-text-opacity, 1))}.text-pink-100{--tw-text-opacity: 1;color:rgb(252 231 243 / var(--tw-text-opacity, 1))}.text-pink-200{--tw-text-opacity: 1;color:rgb(251 207 232 / var(--tw-text-opacity, 1))}.text-pink-300{--tw-text-opacity: 1;color:rgb(249 168 212 / var(--tw-text-opacity, 1))}.text-pink-400{--tw-text-opacity: 1;color:rgb(244 114 182 / var(--tw-text-opacity, 1))}.text-pink-50{--tw-text-opacity: 1;color:rgb(253 242 248 / var(--tw-text-opacity, 1))}.text-pink-500{--tw-text-opacity: 1;color:rgb(236 72 153 / var(--tw-text-opacity, 1))}.text-pink-600{--tw-text-opacity: 1;color:rgb(219 39 119 / var(--tw-text-opacity, 1))}.text-pink-700{--tw-text-opacity: 1;color:rgb(190 24 93 / var(--tw-text-opacity, 1))}.text-pink-800{--tw-text-opacity: 1;color:rgb(157 23 77 / var(--tw-text-opacity, 1))}.text-pink-900{--tw-text-opacity: 1;color:rgb(131 24 67 / var(--tw-text-opacity, 1))}.text-purple-100{--tw-text-opacity: 1;color:rgb(243 232 255 / var(--tw-text-opacity, 1))}.text-purple-200{--tw-text-opacity: 1;color:rgb(233 213 255 / var(--tw-text-opacity, 1))}.text-purple-300{--tw-text-opacity: 1;color:rgb(216 180 254 / var(--tw-text-opacity, 1))}.text-purple-400{--tw-text-opacity: 1;color:rgb(192 132 252 / var(--tw-text-opacity, 1))}.text-purple-50{--tw-text-opacity: 1;color:rgb(250 245 255 / var(--tw-text-opacity, 1))}.text-purple-500{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity, 1))}.text-purple-600{--tw-text-opacity: 1;color:rgb(147 51 234 / var(--tw-text-opacity, 1))}.text-purple-700{--tw-text-opacity: 1;color:rgb(126 34 206 / var(--tw-text-opacity, 1))}.text-purple-800{--tw-text-opacity: 1;color:rgb(107 33 168 / var(--tw-text-opacity, 1))}.text-purple-900{--tw-text-opacity: 1;color:rgb(88 28 135 / var(--tw-text-opacity, 1))}.text-red-100{--tw-text-opacity: 1;color:rgb(254 226 226 / var(--tw-text-opacity, 1))}.text-red-200{--tw-text-opacity: 1;color:rgb(254 202 202 / var(--tw-text-opacity, 1))}.text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.text-red-50{--tw-text-opacity: 1;color:rgb(254 242 242 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.text-red-900{--tw-text-opacity: 1;color:rgb(127 29 29 / var(--tw-text-opacity, 1))}.text-rose-100{--tw-text-opacity: 1;color:rgb(255 228 230 / var(--tw-text-opacity, 1))}.text-rose-200{--tw-text-opacity: 1;color:rgb(254 205 211 / var(--tw-text-opacity, 1))}.text-rose-300{--tw-text-opacity: 1;color:rgb(253 164 175 / var(--tw-text-opacity, 1))}.text-rose-400{--tw-text-opacity: 1;color:rgb(251 113 133 / var(--tw-text-opacity, 1))}.text-rose-50{--tw-text-opacity: 1;color:rgb(255 241 242 / var(--tw-text-opacity, 1))}.text-rose-500{--tw-text-opacity: 1;color:rgb(244 63 94 / var(--tw-text-opacity, 1))}.text-rose-600{--tw-text-opacity: 1;color:rgb(225 29 72 / var(--tw-text-opacity, 1))}.text-rose-700{--tw-text-opacity: 1;color:rgb(190 18 60 / var(--tw-text-opacity, 1))}.text-rose-800{--tw-text-opacity: 1;color:rgb(159 18 57 / var(--tw-text-opacity, 1))}.text-rose-900{--tw-text-opacity: 1;color:rgb(136 19 55 / var(--tw-text-opacity, 1))}.text-sky-100{--tw-text-opacity: 1;color:rgb(224 242 254 / var(--tw-text-opacity, 1))}.text-sky-200{--tw-text-opacity: 1;color:rgb(186 230 253 / var(--tw-text-opacity, 1))}.text-sky-300{--tw-text-opacity: 1;color:rgb(125 211 252 / var(--tw-text-opacity, 1))}.text-sky-400{--tw-text-opacity: 1;color:rgb(56 189 248 / var(--tw-text-opacity, 1))}.text-sky-50{--tw-text-opacity: 1;color:rgb(240 249 255 / var(--tw-text-opacity, 1))}.text-sky-500{--tw-text-opacity: 1;color:rgb(14 165 233 / var(--tw-text-opacity, 1))}.text-sky-600{--tw-text-opacity: 1;color:rgb(2 132 199 / var(--tw-text-opacity, 1))}.text-sky-700{--tw-text-opacity: 1;color:rgb(3 105 161 / var(--tw-text-opacity, 1))}.text-sky-800{--tw-text-opacity: 1;color:rgb(7 89 133 / var(--tw-text-opacity, 1))}.text-sky-900{--tw-text-opacity: 1;color:rgb(12 74 110 / var(--tw-text-opacity, 1))}.text-slate-100{--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity, 1))}.text-slate-200{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity, 1))}.text-slate-300{--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity, 1))}.text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity, 1))}.text-slate-50{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity, 1))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.text-slate-600{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.text-slate-700{--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity, 1))}.text-slate-800{--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity, 1))}.text-slate-900{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity, 1))}.text-stone-100{--tw-text-opacity: 1;color:rgb(245 245 244 / var(--tw-text-opacity, 1))}.text-stone-200{--tw-text-opacity: 1;color:rgb(231 229 228 / var(--tw-text-opacity, 1))}.text-stone-300{--tw-text-opacity: 1;color:rgb(214 211 209 / var(--tw-text-opacity, 1))}.text-stone-400{--tw-text-opacity: 1;color:rgb(168 162 158 / var(--tw-text-opacity, 1))}.text-stone-50{--tw-text-opacity: 1;color:rgb(250 250 249 / var(--tw-text-opacity, 1))}.text-stone-500{--tw-text-opacity: 1;color:rgb(120 113 108 / var(--tw-text-opacity, 1))}.text-stone-600{--tw-text-opacity: 1;color:rgb(87 83 78 / var(--tw-text-opacity, 1))}.text-stone-700{--tw-text-opacity: 1;color:rgb(68 64 60 / var(--tw-text-opacity, 1))}.text-stone-800{--tw-text-opacity: 1;color:rgb(41 37 36 / var(--tw-text-opacity, 1))}.text-stone-900{--tw-text-opacity: 1;color:rgb(28 25 23 / var(--tw-text-opacity, 1))}.text-teal-100{--tw-text-opacity: 1;color:rgb(204 251 241 / var(--tw-text-opacity, 1))}.text-teal-200{--tw-text-opacity: 1;color:rgb(153 246 228 / var(--tw-text-opacity, 1))}.text-teal-300{--tw-text-opacity: 1;color:rgb(94 234 212 / var(--tw-text-opacity, 1))}.text-teal-400{--tw-text-opacity: 1;color:rgb(45 212 191 / var(--tw-text-opacity, 1))}.text-teal-50{--tw-text-opacity: 1;color:rgb(240 253 250 / var(--tw-text-opacity, 1))}.text-teal-500{--tw-text-opacity: 1;color:rgb(20 184 166 / var(--tw-text-opacity, 1))}.text-teal-600{--tw-text-opacity: 1;color:rgb(13 148 136 / var(--tw-text-opacity, 1))}.text-teal-700{--tw-text-opacity: 1;color:rgb(15 118 110 / var(--tw-text-opacity, 1))}.text-teal-800{--tw-text-opacity: 1;color:rgb(17 94 89 / var(--tw-text-opacity, 1))}.text-teal-900{--tw-text-opacity: 1;color:rgb(19 78 74 / var(--tw-text-opacity, 1))}.text-violet-100{--tw-text-opacity: 1;color:rgb(237 233 254 / var(--tw-text-opacity, 1))}.text-violet-200{--tw-text-opacity: 1;color:rgb(221 214 254 / var(--tw-text-opacity, 1))}.text-violet-300{--tw-text-opacity: 1;color:rgb(196 181 253 / var(--tw-text-opacity, 1))}.text-violet-400{--tw-text-opacity: 1;color:rgb(167 139 250 / var(--tw-text-opacity, 1))}.text-violet-50{--tw-text-opacity: 1;color:rgb(245 243 255 / var(--tw-text-opacity, 1))}.text-violet-500{--tw-text-opacity: 1;color:rgb(139 92 246 / var(--tw-text-opacity, 1))}.text-violet-600{--tw-text-opacity: 1;color:rgb(124 58 237 / var(--tw-text-opacity, 1))}.text-violet-700{--tw-text-opacity: 1;color:rgb(109 40 217 / var(--tw-text-opacity, 1))}.text-violet-800{--tw-text-opacity: 1;color:rgb(91 33 182 / var(--tw-text-opacity, 1))}.text-violet-900{--tw-text-opacity: 1;color:rgb(76 29 149 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-100{--tw-text-opacity: 1;color:rgb(254 249 195 / var(--tw-text-opacity, 1))}.text-yellow-200{--tw-text-opacity: 1;color:rgb(254 240 138 / var(--tw-text-opacity, 1))}.text-yellow-300{--tw-text-opacity: 1;color:rgb(253 224 71 / var(--tw-text-opacity, 1))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity, 1))}.text-yellow-50{--tw-text-opacity: 1;color:rgb(254 252 232 / var(--tw-text-opacity, 1))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity, 1))}.text-yellow-600{--tw-text-opacity: 1;color:rgb(202 138 4 / var(--tw-text-opacity, 1))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(161 98 7 / var(--tw-text-opacity, 1))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity, 1))}.text-yellow-900{--tw-text-opacity: 1;color:rgb(113 63 18 / var(--tw-text-opacity, 1))}.text-zinc-100{--tw-text-opacity: 1;color:rgb(244 244 245 / var(--tw-text-opacity, 1))}.text-zinc-200{--tw-text-opacity: 1;color:rgb(228 228 231 / var(--tw-text-opacity, 1))}.text-zinc-300{--tw-text-opacity: 1;color:rgb(212 212 216 / var(--tw-text-opacity, 1))}.text-zinc-400{--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}.text-zinc-50{--tw-text-opacity: 1;color:rgb(250 250 250 / var(--tw-text-opacity, 1))}.text-zinc-500{--tw-text-opacity: 1;color:rgb(113 113 122 / var(--tw-text-opacity, 1))}.text-zinc-600{--tw-text-opacity: 1;color:rgb(82 82 91 / var(--tw-text-opacity, 1))}.text-zinc-700{--tw-text-opacity: 1;color:rgb(63 63 70 / var(--tw-text-opacity, 1))}.text-zinc-800{--tw-text-opacity: 1;color:rgb(39 39 42 / var(--tw-text-opacity, 1))}.text-zinc-900{--tw-text-opacity: 1;color:rgb(24 24 27 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.decoration-solid{text-decoration-style:solid}.decoration-double{text-decoration-style:double}.decoration-dotted{text-decoration-style:dotted}.decoration-dashed{text-decoration-style:dashed}.decoration-wavy{text-decoration-style:wavy}.placeholder-gray-400::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}.placeholder-gray-400::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}.placeholder-opacity-50::-moz-placeholder{--tw-placeholder-opacity: .5}.placeholder-opacity-50::placeholder{--tw-placeholder-opacity: .5}.opacity-0{opacity:0}.opacity-10{opacity:.1}.opacity-100{opacity:1}.opacity-20{opacity:.2}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.opacity-40{opacity:.4}.opacity-5{opacity:.05}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-90{opacity:.9}.opacity-95{opacity:.95}.mix-blend-normal{mix-blend-mode:normal}.mix-blend-multiply{mix-blend-mode:multiply}.mix-blend-screen{mix-blend-mode:screen}.mix-blend-overlay{mix-blend-mode:overlay}.mix-blend-darken{mix-blend-mode:darken}.mix-blend-lighten{mix-blend-mode:lighten}.mix-blend-color-dodge{mix-blend-mode:color-dodge}.mix-blend-color-burn{mix-blend-mode:color-burn}.mix-blend-hard-light{mix-blend-mode:hard-light}.mix-blend-soft-light{mix-blend-mode:soft-light}.mix-blend-difference{mix-blend-mode:difference}.mix-blend-exclusion{mix-blend-mode:exclusion}.mix-blend-hue{mix-blend-mode:hue}.mix-blend-saturation{mix-blend-mode:saturation}.mix-blend-color{mix-blend-mode:color}.mix-blend-luminosity{mix-blend-mode:luminosity}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-inner{--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / .05);--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-0{outline-width:0px}.outline-1{outline-width:1px}.outline-2{outline-width:2px}.outline-4{outline-width:4px}.outline-8{outline-width:8px}.outline-offset-8{outline-offset:8px}.outline-yellow-400{outline-color:#facc15}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-8{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(8px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-inset{--tw-ring-inset: inset}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity, 1))}.ring-white\\/5{--tw-ring-color: rgb(255 255 255 / .05)}.ring-opacity-5{--tw-ring-opacity: .05}.ring-offset-0{--tw-ring-offset-width: 0px}.ring-offset-1{--tw-ring-offset-width: 1px}.ring-offset-2{--tw-ring-offset-width: 2px}.ring-offset-4{--tw-ring-offset-width: 4px}.ring-offset-8{--tw-ring-offset-width: 8px}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-2xl{--tw-blur: blur(40px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-3xl{--tw-blur: blur(64px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-lg{--tw-blur: blur(16px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-md{--tw-blur: blur(12px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-sm{--tw-blur: blur(4px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-xl{--tw-blur: blur(24px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-sm{--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter-none{filter:none}.backdrop-blur{--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-2xl{--tw-backdrop-blur: blur(40px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-3xl{--tw-backdrop-blur: blur(64px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-lg{--tw-backdrop-blur: blur(16px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-md{--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-xl{--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-none{transition-property:none}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-1000{transition-duration:1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.duration-700{transition-duration:.7s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.\\!\\[clip\\:rect\\(0\\,0\\,0\\,0\\)\\]{clip:rect(0,0,0,0)!important}.ql-toolbar.ql-snow{border-top-right-radius:10px;border-top-left-radius:10px}.ql-editor{min-height:200px}.table-enter-active,.table-leave-active{transition:opacity .3s ease}.table-enter-from,.table-leave-to{opacity:0}.tags-enter-from{opacity:.6;transform:translate(10px)}.tags-enter-active{transition:all .2s ease}.tags-leave-to{opacity:.1;transform:translate(5px)}.tags-leave-active{transition:all .1s ease;position:absolute}.tags-move{transition:all .1s ease}*{scrollbar-width:thin;scrollbar-color:black transparent}*::-webkit-scrollbar-track{background:transparent;border-radius:25px}*::-webkit-scrollbar{width:6px;height:6px}*::-webkit-scrollbar-thumb{background-color:#000;border-radius:25px;border:none}.scrollable{overflow-x:auto;overflow-y:auto}.tailwind-pagination-package{box-shadow:none!important;display:flex;flex-direction:row;flex-wrap:wrap;gap:6px 0px;justify-content:center}.tailwind-pagination-package>:first-child,.tailwind-pagination-package>:last-child{border-radius:100%}.smooth-transition{transition:opacity .3s ease-in-out}p{font-size:1rem;line-height:1.5rem;font-weight:400}@media (min-width: 1024px){p{font-size:1rem;line-height:1.5rem}}a{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}h2{margin-top:1rem;margin-bottom:.75rem;font-size:1.875rem;line-height:2.25rem;font-weight:500}h3{margin-top:1rem;margin-bottom:.75rem;font-size:1.5rem;line-height:2rem;font-weight:500}#pagebuilder a{pointer-events:none}#page-builder-editor .tiptap{background:#fff;min-height:25rem}#pagebuilder #youtube-video:before{content:"Select Video Element";font-family:Jost;background:#16a34a!important;color:#fff;text-decoration:none;margin-right:8px;vertical-align:middle;min-height:3rem;padding:.75rem;white-space:nowrap;word-break:keep-all;font-weight:500;display:inline-flex;gap:.25rem;align-items:center;justify-content:center;border-radius:9999px;border:1px solid transparent;margin-bottom:20px;font-size:.8rem!important}@media (min-width: 640px){#pagebuilder #youtube-video:before{font-size:.9rem!important;width:auto}}#pagebuilder #youtube-video:hover:before{text-decoration:none;cursor:pointer}#page-builder-editor a,#pagebuilder a{text-decoration:underline}#page-builder-editor #linktree p,#pagebuilder #linktree p{width:100%}#page-builder-editor #linktree a,#pagebuilder #linktree a{display:block;padding:1rem .5rem;text-decoration:none;font-weight:500;color:inherit!important;width:100%;cursor:pointer}#page-builder-editor strong,#pagebuilder strong{font-weight:500}#page-builder-editor ol,#pagebuilder ol,#page-builder-editor ul,#pagebuilder ul{list-style:disc!important;padding:1rem 0rem}#page-builder-editor li,#pagebuilder li{line-height:2.2rem;margin-left:1.5em}:root{--dp-border-radius: 40px;--dp-cell-border-radius: 4px;--dp-common-transition: all .1s ease-in}.dp__action_row{display:flex!important;align-items:center!important;justify-content:center;margin:0 0 10px}.dp__today{background:transparent!important;border:2px solid #ff5252!important;color:#ff5252!important;border-radius:100%!important}.dp__active_date{background:#ff5252!important;border:#ff5252!important;color:#fff!important;border-radius:100%!important}.dp__date_hover:hover{background:#f1f1f1!important;border:#f1f1f1!important;color:#000!important;border-radius:100%!important}.dp__action_button{background:#ff5252!important;border:#000!important;color:#fff!important;border-radius:8px!important;padding:1rem!important;font-weight:500}.dp__overlay_cell_active{background:#ff5252!important;border:#000!important;color:#fff!important}@media (min-width: 640px){.sm\\:prose-sm{font-size:.875rem;line-height:1.7142857}.sm\\:prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.sm\\:prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.sm\\:prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.sm\\:prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.sm\\:prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.sm\\:prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.sm\\:prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.sm\\:prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.sm\\:prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.sm\\:prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.sm\\:prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.sm\\:prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.sm\\:prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.sm\\:prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.sm\\:prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.sm\\:prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.sm\\:prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.sm\\:prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.sm\\:prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.sm\\:prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.sm\\:prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.sm\\:prose-sm :where(.sm\\:prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.sm\\:prose-sm :where(.sm\\:prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.sm\\:prose-sm :where(.sm\\:prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.sm\\:prose-sm :where(.sm\\:prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.sm\\:prose-sm :where(.sm\\:prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.sm\\:prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.sm\\:prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.sm\\:prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.sm\\:prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.sm\\:prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.sm\\:prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.sm\\:prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.sm\\:prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.sm\\:prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.sm\\:prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.sm\\:prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.sm\\:prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.sm\\:prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.sm\\:prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.sm\\:prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.sm\\:prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.sm\\:prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.sm\\:prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.sm\\:prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.sm\\:prose-sm :where(.sm\\:prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.sm\\:prose-sm :where(.sm\\:prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}}@media (min-width: 1024px){.lg\\:prose-sm{font-size:.875rem;line-height:1.7142857}.lg\\:prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.lg\\:prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.lg\\:prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.lg\\:prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.lg\\:prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.lg\\:prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.lg\\:prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.lg\\:prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.lg\\:prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.lg\\:prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.lg\\:prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.lg\\:prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.lg\\:prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.lg\\:prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.lg\\:prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.lg\\:prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.lg\\:prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.lg\\:prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.lg\\:prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.lg\\:prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.lg\\:prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.lg\\:prose-sm :where(.lg\\:prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.lg\\:prose-sm :where(.lg\\:prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.lg\\:prose-sm :where(.lg\\:prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.lg\\:prose-sm :where(.lg\\:prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.lg\\:prose-sm :where(.lg\\:prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.lg\\:prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.lg\\:prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.lg\\:prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.lg\\:prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.lg\\:prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.lg\\:prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.lg\\:prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.lg\\:prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.lg\\:prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.lg\\:prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.lg\\:prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.lg\\:prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.lg\\:prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.lg\\:prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.lg\\:prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.lg\\:prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.lg\\:prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.lg\\:prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.lg\\:prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.lg\\:prose-sm :where(.lg\\:prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.lg\\:prose-sm :where(.lg\\:prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.lg\\:myPrimaryTag{margin-top:.5rem;margin-bottom:.5rem;display:inline-flex;min-height:3rem;align-items:center;justify-content:center;gap:.25rem;word-break:break-all;border-radius:9999px;border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(222 230 240 / var(--tw-bg-opacity, 1));padding:.5rem .75rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.lg\\:myPrimaryTag:hover{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}@media (min-width: 640px){.lg\\:myPrimaryTag{width:auto}}}.placeholder\\:text-sm::-moz-placeholder{font-size:.875rem;line-height:1.25rem}.placeholder\\:text-sm::placeholder{font-size:.875rem;line-height:1.25rem}.hover\\:border-myPrimaryLinkColor:hover{--tw-border-opacity: 1;border-color:rgb(22 163 74 / var(--tw-border-opacity, 1))}.hover\\:bg-green-100:hover{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.hover\\:bg-myPrimaryErrorColor:hover{--tw-bg-opacity: 1;background-color:rgb(214 0 0 / var(--tw-bg-opacity, 1))}.hover\\:bg-myPrimaryLightGrayColor:hover{--tw-bg-opacity: 1;background-color:rgb(239 242 246 / var(--tw-bg-opacity, 1))}.hover\\:bg-myPrimaryLinkColor:hover{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.hover\\:bg-red-600:hover{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.hover\\:bg-yellow-400:hover{--tw-bg-opacity: 1;background-color:rgb(250 204 21 / var(--tw-bg-opacity, 1))}.hover\\:bg-opacity-10:hover{--tw-bg-opacity: .1}.hover\\:fill-white:hover{fill:#fff}.hover\\:text-myPrimaryDarkGrayColor:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-green-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1))}.focus\\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity, 1))}.focus\\:ring-myPrimaryErrorColor:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(214 0 0 / var(--tw-ring-opacity, 1))}.focus\\:ring-myPrimaryLinkColor:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1))}.focus\\:ring-yellow-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 204 21 / var(--tw-ring-opacity, 1))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus\\:ring-offset-green-50:focus{--tw-ring-offset-color: #f0fdf4}.focus-visible\\:ring-0:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-myPrimaryLinkColor:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1))}.group:hover .group-hover\\:pointer-events-auto{pointer-events:auto}.group:hover .group-hover\\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\\:opacity-100{opacity:1}.aria-checked\\:bg-blue-500[aria-checked=true]{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.aria-disabled\\:opacity-50[aria-disabled=true]{opacity:.5}.aria-selected\\:bg-blue-100[aria-selected=true]{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}@media (prefers-reduced-motion: reduce){@keyframes spin{to{transform:rotate(360deg)}}.motion-reduce\\:animate-\\[spin_1\\.5s_linear_infinite\\]{animation:spin 1.5s linear infinite}}@media (min-width: 640px){.sm\\:flex{display:flex}.sm\\:grid{display:grid}.sm\\:h-0\\.5{height:.125rem}.sm\\:h-1{height:.25rem}.sm\\:h-1\\.5{height:.375rem}.sm\\:h-1\\/2{height:50%}.sm\\:h-1\\/3{height:33.333333%}.sm\\:h-1\\/4{height:25%}.sm\\:h-1\\/5{height:20%}.sm\\:h-1\\/6{height:16.666667%}.sm\\:h-10{height:2.5rem}.sm\\:h-11{height:2.75rem}.sm\\:h-12{height:3rem}.sm\\:h-14{height:3.5rem}.sm\\:h-16{height:4rem}.sm\\:h-2{height:.5rem}.sm\\:h-2\\.5{height:.625rem}.sm\\:h-2\\/3{height:66.666667%}.sm\\:h-2\\/4{height:50%}.sm\\:h-2\\/5{height:40%}.sm\\:h-2\\/6{height:33.333333%}.sm\\:h-20{height:5rem}.sm\\:h-24{height:6rem}.sm\\:h-28{height:7rem}.sm\\:h-3{height:.75rem}.sm\\:h-3\\.5{height:.875rem}.sm\\:h-3\\/4{height:75%}.sm\\:h-3\\/5{height:60%}.sm\\:h-3\\/6{height:50%}.sm\\:h-32{height:8rem}.sm\\:h-36{height:9rem}.sm\\:h-4{height:1rem}.sm\\:h-4\\/5{height:80%}.sm\\:h-4\\/6{height:66.666667%}.sm\\:h-40{height:10rem}.sm\\:h-44{height:11rem}.sm\\:h-48{height:12rem}.sm\\:h-5{height:1.25rem}.sm\\:h-5\\/6{height:83.333333%}.sm\\:h-52{height:13rem}.sm\\:h-56{height:14rem}.sm\\:h-6{height:1.5rem}.sm\\:h-60{height:15rem}.sm\\:h-64{height:16rem}.sm\\:h-7{height:1.75rem}.sm\\:h-72{height:18rem}.sm\\:h-8{height:2rem}.sm\\:h-80{height:20rem}.sm\\:h-9{height:2.25rem}.sm\\:h-96{height:24rem}.sm\\:h-auto{height:auto}.sm\\:h-fit{height:-moz-fit-content;height:fit-content}.sm\\:h-full{height:100%}.sm\\:h-max{height:-moz-max-content;height:max-content}.sm\\:h-min{height:-moz-min-content;height:min-content}.sm\\:h-screen{height:100vh}.sm\\:w-0\\.5{width:.125rem}.sm\\:w-1{width:.25rem}.sm\\:w-1\\.5{width:.375rem}.sm\\:w-1\\/2{width:50%}.sm\\:w-1\\/3{width:33.333333%}.sm\\:w-1\\/4{width:25%}.sm\\:w-1\\/5{width:20%}.sm\\:w-1\\/6{width:16.666667%}.sm\\:w-10{width:2.5rem}.sm\\:w-11{width:2.75rem}.sm\\:w-12{width:3rem}.sm\\:w-14{width:3.5rem}.sm\\:w-16{width:4rem}.sm\\:w-2{width:.5rem}.sm\\:w-2\\.5{width:.625rem}.sm\\:w-2\\/3{width:66.666667%}.sm\\:w-2\\/4{width:50%}.sm\\:w-2\\/5{width:40%}.sm\\:w-2\\/6{width:33.333333%}.sm\\:w-20{width:5rem}.sm\\:w-24{width:6rem}.sm\\:w-28{width:7rem}.sm\\:w-3{width:.75rem}.sm\\:w-3\\.5{width:.875rem}.sm\\:w-3\\/4{width:75%}.sm\\:w-3\\/5{width:60%}.sm\\:w-3\\/6{width:50%}.sm\\:w-32{width:8rem}.sm\\:w-36{width:9rem}.sm\\:w-4{width:1rem}.sm\\:w-4\\/5{width:80%}.sm\\:w-4\\/6{width:66.666667%}.sm\\:w-40{width:10rem}.sm\\:w-44{width:11rem}.sm\\:w-48{width:12rem}.sm\\:w-5{width:1.25rem}.sm\\:w-5\\/6{width:83.333333%}.sm\\:w-52{width:13rem}.sm\\:w-56{width:14rem}.sm\\:w-6{width:1.5rem}.sm\\:w-60{width:15rem}.sm\\:w-64{width:16rem}.sm\\:w-7{width:1.75rem}.sm\\:w-72{width:18rem}.sm\\:w-8{width:2rem}.sm\\:w-80{width:20rem}.sm\\:w-9{width:2.25rem}.sm\\:w-96{width:24rem}.sm\\:w-auto{width:auto}.sm\\:w-fit{width:-moz-fit-content;width:fit-content}.sm\\:w-full{width:100%}.sm\\:w-max{width:-moz-max-content;width:max-content}.sm\\:w-min{width:-moz-min-content;width:min-content}.sm\\:w-screen{width:100vw}.sm\\:max-w-none{max-width:none}.sm\\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.sm\\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.sm\\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.sm\\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.sm\\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.sm\\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.sm\\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.sm\\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.sm\\:grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.sm\\:grid-rows-10{grid-template-rows:repeat(10,minmax(0,1fr))}.sm\\:grid-rows-11{grid-template-rows:repeat(11,minmax(0,1fr))}.sm\\:grid-rows-12{grid-template-rows:repeat(12,minmax(0,1fr))}.sm\\:grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.sm\\:grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.sm\\:grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.sm\\:grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.sm\\:grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.sm\\:grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.sm\\:grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.sm\\:grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}.sm\\:flex-row{flex-direction:row}.sm\\:items-end{align-items:flex-end}.sm\\:justify-end{justify-content:flex-end}.sm\\:pb-0{padding-bottom:0}.sm\\:pb-0\\.5{padding-bottom:.125rem}.sm\\:pb-1{padding-bottom:.25rem}.sm\\:pb-1\\.5{padding-bottom:.375rem}.sm\\:pb-10{padding-bottom:2.5rem}.sm\\:pb-11{padding-bottom:2.75rem}.sm\\:pb-12{padding-bottom:3rem}.sm\\:pb-14{padding-bottom:3.5rem}.sm\\:pb-16{padding-bottom:4rem}.sm\\:pb-2{padding-bottom:.5rem}.sm\\:pb-2\\.5{padding-bottom:.625rem}.sm\\:pb-20{padding-bottom:5rem}.sm\\:pb-24{padding-bottom:6rem}.sm\\:pb-28{padding-bottom:7rem}.sm\\:pb-3{padding-bottom:.75rem}.sm\\:pb-3\\.5{padding-bottom:.875rem}.sm\\:pb-32{padding-bottom:8rem}.sm\\:pb-36{padding-bottom:9rem}.sm\\:pb-4{padding-bottom:1rem}.sm\\:pb-40{padding-bottom:10rem}.sm\\:pb-44{padding-bottom:11rem}.sm\\:pb-48{padding-bottom:12rem}.sm\\:pb-5{padding-bottom:1.25rem}.sm\\:pb-52{padding-bottom:13rem}.sm\\:pb-56{padding-bottom:14rem}.sm\\:pb-6{padding-bottom:1.5rem}.sm\\:pb-60{padding-bottom:15rem}.sm\\:pb-64{padding-bottom:16rem}.sm\\:pb-7{padding-bottom:1.75rem}.sm\\:pb-72{padding-bottom:18rem}.sm\\:pb-8{padding-bottom:2rem}.sm\\:pb-80{padding-bottom:20rem}.sm\\:pb-9{padding-bottom:2.25rem}.sm\\:pb-96{padding-bottom:24rem}.sm\\:pl-0{padding-left:0}.sm\\:pl-0\\.5{padding-left:.125rem}.sm\\:pl-1{padding-left:.25rem}.sm\\:pl-1\\.5{padding-left:.375rem}.sm\\:pl-10{padding-left:2.5rem}.sm\\:pl-11{padding-left:2.75rem}.sm\\:pl-12{padding-left:3rem}.sm\\:pl-14{padding-left:3.5rem}.sm\\:pl-16{padding-left:4rem}.sm\\:pl-2{padding-left:.5rem}.sm\\:pl-2\\.5{padding-left:.625rem}.sm\\:pl-20{padding-left:5rem}.sm\\:pl-24{padding-left:6rem}.sm\\:pl-28{padding-left:7rem}.sm\\:pl-3{padding-left:.75rem}.sm\\:pl-3\\.5{padding-left:.875rem}.sm\\:pl-32{padding-left:8rem}.sm\\:pl-36{padding-left:9rem}.sm\\:pl-4{padding-left:1rem}.sm\\:pl-40{padding-left:10rem}.sm\\:pl-44{padding-left:11rem}.sm\\:pl-48{padding-left:12rem}.sm\\:pl-5{padding-left:1.25rem}.sm\\:pl-52{padding-left:13rem}.sm\\:pl-56{padding-left:14rem}.sm\\:pl-6{padding-left:1.5rem}.sm\\:pl-60{padding-left:15rem}.sm\\:pl-64{padding-left:16rem}.sm\\:pl-7{padding-left:1.75rem}.sm\\:pl-72{padding-left:18rem}.sm\\:pl-8{padding-left:2rem}.sm\\:pl-80{padding-left:20rem}.sm\\:pl-9{padding-left:2.25rem}.sm\\:pl-96{padding-left:24rem}.sm\\:pr-0{padding-right:0}.sm\\:pr-0\\.5{padding-right:.125rem}.sm\\:pr-1{padding-right:.25rem}.sm\\:pr-1\\.5{padding-right:.375rem}.sm\\:pr-10{padding-right:2.5rem}.sm\\:pr-11{padding-right:2.75rem}.sm\\:pr-12{padding-right:3rem}.sm\\:pr-14{padding-right:3.5rem}.sm\\:pr-16{padding-right:4rem}.sm\\:pr-2{padding-right:.5rem}.sm\\:pr-2\\.5{padding-right:.625rem}.sm\\:pr-20{padding-right:5rem}.sm\\:pr-24{padding-right:6rem}.sm\\:pr-28{padding-right:7rem}.sm\\:pr-3{padding-right:.75rem}.sm\\:pr-3\\.5{padding-right:.875rem}.sm\\:pr-32{padding-right:8rem}.sm\\:pr-36{padding-right:9rem}.sm\\:pr-4{padding-right:1rem}.sm\\:pr-40{padding-right:10rem}.sm\\:pr-44{padding-right:11rem}.sm\\:pr-48{padding-right:12rem}.sm\\:pr-5{padding-right:1.25rem}.sm\\:pr-52{padding-right:13rem}.sm\\:pr-56{padding-right:14rem}.sm\\:pr-6{padding-right:1.5rem}.sm\\:pr-60{padding-right:15rem}.sm\\:pr-64{padding-right:16rem}.sm\\:pr-7{padding-right:1.75rem}.sm\\:pr-72{padding-right:18rem}.sm\\:pr-8{padding-right:2rem}.sm\\:pr-80{padding-right:20rem}.sm\\:pr-9{padding-right:2.25rem}.sm\\:pr-96{padding-right:24rem}.sm\\:pt-0{padding-top:0}.sm\\:pt-0\\.5{padding-top:.125rem}.sm\\:pt-1{padding-top:.25rem}.sm\\:pt-1\\.5{padding-top:.375rem}.sm\\:pt-10{padding-top:2.5rem}.sm\\:pt-11{padding-top:2.75rem}.sm\\:pt-12{padding-top:3rem}.sm\\:pt-14{padding-top:3.5rem}.sm\\:pt-16{padding-top:4rem}.sm\\:pt-2{padding-top:.5rem}.sm\\:pt-2\\.5{padding-top:.625rem}.sm\\:pt-20{padding-top:5rem}.sm\\:pt-24{padding-top:6rem}.sm\\:pt-28{padding-top:7rem}.sm\\:pt-3{padding-top:.75rem}.sm\\:pt-3\\.5{padding-top:.875rem}.sm\\:pt-32{padding-top:8rem}.sm\\:pt-36{padding-top:9rem}.sm\\:pt-4{padding-top:1rem}.sm\\:pt-40{padding-top:10rem}.sm\\:pt-44{padding-top:11rem}.sm\\:pt-48{padding-top:12rem}.sm\\:pt-5{padding-top:1.25rem}.sm\\:pt-52{padding-top:13rem}.sm\\:pt-56{padding-top:14rem}.sm\\:pt-6{padding-top:1.5rem}.sm\\:pt-60{padding-top:15rem}.sm\\:pt-64{padding-top:16rem}.sm\\:pt-7{padding-top:1.75rem}.sm\\:pt-72{padding-top:18rem}.sm\\:pt-8{padding-top:2rem}.sm\\:pt-80{padding-top:20rem}.sm\\:pt-9{padding-top:2.25rem}.sm\\:pt-96{padding-top:24rem}.sm\\:align-middle{vertical-align:middle}.sm\\:text-2xl{font-size:1.5rem;line-height:2rem}.sm\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.sm\\:text-4xl{font-size:2.25rem;line-height:2.5rem}.sm\\:text-5xl{font-size:3rem;line-height:1}.sm\\:text-6xl{font-size:3.75rem;line-height:1}.sm\\:text-7xl{font-size:4.5rem;line-height:1}.sm\\:text-8xl{font-size:6rem;line-height:1}.sm\\:text-9xl{font-size:8rem;line-height:1}.sm\\:text-base{font-size:1rem;line-height:1.5rem}.sm\\:text-lg{font-size:1.125rem;line-height:1.75rem}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\\:text-xl{font-size:1.25rem;line-height:1.75rem}.sm\\:text-xs{font-size:.75rem;line-height:1rem}}@media (min-width: 768px){.md\\:flex{display:flex}.md\\:grid{display:grid}.md\\:h-0\\.5{height:.125rem}.md\\:h-1{height:.25rem}.md\\:h-1\\.5{height:.375rem}.md\\:h-1\\/2{height:50%}.md\\:h-1\\/3{height:33.333333%}.md\\:h-1\\/4{height:25%}.md\\:h-1\\/5{height:20%}.md\\:h-1\\/6{height:16.666667%}.md\\:h-10{height:2.5rem}.md\\:h-11{height:2.75rem}.md\\:h-12{height:3rem}.md\\:h-14{height:3.5rem}.md\\:h-16{height:4rem}.md\\:h-2{height:.5rem}.md\\:h-2\\.5{height:.625rem}.md\\:h-2\\/3{height:66.666667%}.md\\:h-2\\/4{height:50%}.md\\:h-2\\/5{height:40%}.md\\:h-2\\/6{height:33.333333%}.md\\:h-20{height:5rem}.md\\:h-24{height:6rem}.md\\:h-28{height:7rem}.md\\:h-3{height:.75rem}.md\\:h-3\\.5{height:.875rem}.md\\:h-3\\/4{height:75%}.md\\:h-3\\/5{height:60%}.md\\:h-3\\/6{height:50%}.md\\:h-32{height:8rem}.md\\:h-36{height:9rem}.md\\:h-4{height:1rem}.md\\:h-4\\/5{height:80%}.md\\:h-4\\/6{height:66.666667%}.md\\:h-40{height:10rem}.md\\:h-44{height:11rem}.md\\:h-48{height:12rem}.md\\:h-5{height:1.25rem}.md\\:h-5\\/6{height:83.333333%}.md\\:h-52{height:13rem}.md\\:h-56{height:14rem}.md\\:h-6{height:1.5rem}.md\\:h-60{height:15rem}.md\\:h-64{height:16rem}.md\\:h-7{height:1.75rem}.md\\:h-72{height:18rem}.md\\:h-8{height:2rem}.md\\:h-80{height:20rem}.md\\:h-9{height:2.25rem}.md\\:h-96{height:24rem}.md\\:h-auto{height:auto}.md\\:h-fit{height:-moz-fit-content;height:fit-content}.md\\:h-full{height:100%}.md\\:h-max{height:-moz-max-content;height:max-content}.md\\:h-min{height:-moz-min-content;height:min-content}.md\\:h-screen{height:100vh}.md\\:max-h-\\[20rem\\]{max-height:20rem}.md\\:min-h-\\[20rem\\]{min-height:20rem}.md\\:w-0\\.5{width:.125rem}.md\\:w-1{width:.25rem}.md\\:w-1\\.5{width:.375rem}.md\\:w-1\\/2{width:50%}.md\\:w-1\\/3{width:33.333333%}.md\\:w-1\\/4{width:25%}.md\\:w-1\\/5{width:20%}.md\\:w-1\\/6{width:16.666667%}.md\\:w-10{width:2.5rem}.md\\:w-11{width:2.75rem}.md\\:w-12{width:3rem}.md\\:w-14{width:3.5rem}.md\\:w-16{width:4rem}.md\\:w-2{width:.5rem}.md\\:w-2\\.5{width:.625rem}.md\\:w-2\\/3{width:66.666667%}.md\\:w-2\\/4{width:50%}.md\\:w-2\\/5{width:40%}.md\\:w-2\\/6{width:33.333333%}.md\\:w-20{width:5rem}.md\\:w-24{width:6rem}.md\\:w-28{width:7rem}.md\\:w-3{width:.75rem}.md\\:w-3\\.5{width:.875rem}.md\\:w-3\\/4{width:75%}.md\\:w-3\\/5{width:60%}.md\\:w-3\\/6{width:50%}.md\\:w-32{width:8rem}.md\\:w-36{width:9rem}.md\\:w-4{width:1rem}.md\\:w-4\\/5{width:80%}.md\\:w-4\\/6{width:66.666667%}.md\\:w-40{width:10rem}.md\\:w-44{width:11rem}.md\\:w-48{width:12rem}.md\\:w-5{width:1.25rem}.md\\:w-5\\/6{width:83.333333%}.md\\:w-52{width:13rem}.md\\:w-56{width:14rem}.md\\:w-6{width:1.5rem}.md\\:w-60{width:15rem}.md\\:w-64{width:16rem}.md\\:w-7{width:1.75rem}.md\\:w-72{width:18rem}.md\\:w-8{width:2rem}.md\\:w-80{width:20rem}.md\\:w-9{width:2.25rem}.md\\:w-96{width:24rem}.md\\:w-auto{width:auto}.md\\:w-fit{width:-moz-fit-content;width:fit-content}.md\\:w-full{width:100%}.md\\:w-max{width:-moz-max-content;width:max-content}.md\\:w-min{width:-moz-min-content;width:min-content}.md\\:w-screen{width:100vw}.md\\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.md\\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.md\\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.md\\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.md\\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.md\\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.md\\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.md\\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.md\\:grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.md\\:grid-rows-10{grid-template-rows:repeat(10,minmax(0,1fr))}.md\\:grid-rows-11{grid-template-rows:repeat(11,minmax(0,1fr))}.md\\:grid-rows-12{grid-template-rows:repeat(12,minmax(0,1fr))}.md\\:grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.md\\:grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.md\\:grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.md\\:grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.md\\:grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.md\\:grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.md\\:grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.md\\:grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}.md\\:rounded-lg{border-radius:.5rem}.md\\:px-3{padding-left:.75rem;padding-right:.75rem}.md\\:pb-0{padding-bottom:0}.md\\:pb-0\\.5{padding-bottom:.125rem}.md\\:pb-1{padding-bottom:.25rem}.md\\:pb-1\\.5{padding-bottom:.375rem}.md\\:pb-10{padding-bottom:2.5rem}.md\\:pb-11{padding-bottom:2.75rem}.md\\:pb-12{padding-bottom:3rem}.md\\:pb-14{padding-bottom:3.5rem}.md\\:pb-16{padding-bottom:4rem}.md\\:pb-2{padding-bottom:.5rem}.md\\:pb-2\\.5{padding-bottom:.625rem}.md\\:pb-20{padding-bottom:5rem}.md\\:pb-24{padding-bottom:6rem}.md\\:pb-28{padding-bottom:7rem}.md\\:pb-3{padding-bottom:.75rem}.md\\:pb-3\\.5{padding-bottom:.875rem}.md\\:pb-32{padding-bottom:8rem}.md\\:pb-36{padding-bottom:9rem}.md\\:pb-4{padding-bottom:1rem}.md\\:pb-40{padding-bottom:10rem}.md\\:pb-44{padding-bottom:11rem}.md\\:pb-48{padding-bottom:12rem}.md\\:pb-5{padding-bottom:1.25rem}.md\\:pb-52{padding-bottom:13rem}.md\\:pb-56{padding-bottom:14rem}.md\\:pb-6{padding-bottom:1.5rem}.md\\:pb-60{padding-bottom:15rem}.md\\:pb-64{padding-bottom:16rem}.md\\:pb-7{padding-bottom:1.75rem}.md\\:pb-72{padding-bottom:18rem}.md\\:pb-8{padding-bottom:2rem}.md\\:pb-80{padding-bottom:20rem}.md\\:pb-9{padding-bottom:2.25rem}.md\\:pb-96{padding-bottom:24rem}.md\\:pl-0{padding-left:0}.md\\:pl-0\\.5{padding-left:.125rem}.md\\:pl-1{padding-left:.25rem}.md\\:pl-1\\.5{padding-left:.375rem}.md\\:pl-10{padding-left:2.5rem}.md\\:pl-11{padding-left:2.75rem}.md\\:pl-12{padding-left:3rem}.md\\:pl-14{padding-left:3.5rem}.md\\:pl-16{padding-left:4rem}.md\\:pl-2{padding-left:.5rem}.md\\:pl-2\\.5{padding-left:.625rem}.md\\:pl-20{padding-left:5rem}.md\\:pl-24{padding-left:6rem}.md\\:pl-28{padding-left:7rem}.md\\:pl-3{padding-left:.75rem}.md\\:pl-3\\.5{padding-left:.875rem}.md\\:pl-32{padding-left:8rem}.md\\:pl-36{padding-left:9rem}.md\\:pl-4{padding-left:1rem}.md\\:pl-40{padding-left:10rem}.md\\:pl-44{padding-left:11rem}.md\\:pl-48{padding-left:12rem}.md\\:pl-5{padding-left:1.25rem}.md\\:pl-52{padding-left:13rem}.md\\:pl-56{padding-left:14rem}.md\\:pl-6{padding-left:1.5rem}.md\\:pl-60{padding-left:15rem}.md\\:pl-64{padding-left:16rem}.md\\:pl-7{padding-left:1.75rem}.md\\:pl-72{padding-left:18rem}.md\\:pl-8{padding-left:2rem}.md\\:pl-80{padding-left:20rem}.md\\:pl-9{padding-left:2.25rem}.md\\:pl-96{padding-left:24rem}.md\\:pr-0{padding-right:0}.md\\:pr-0\\.5{padding-right:.125rem}.md\\:pr-1{padding-right:.25rem}.md\\:pr-1\\.5{padding-right:.375rem}.md\\:pr-10{padding-right:2.5rem}.md\\:pr-11{padding-right:2.75rem}.md\\:pr-12{padding-right:3rem}.md\\:pr-14{padding-right:3.5rem}.md\\:pr-16{padding-right:4rem}.md\\:pr-2{padding-right:.5rem}.md\\:pr-2\\.5{padding-right:.625rem}.md\\:pr-20{padding-right:5rem}.md\\:pr-24{padding-right:6rem}.md\\:pr-28{padding-right:7rem}.md\\:pr-3{padding-right:.75rem}.md\\:pr-3\\.5{padding-right:.875rem}.md\\:pr-32{padding-right:8rem}.md\\:pr-36{padding-right:9rem}.md\\:pr-4{padding-right:1rem}.md\\:pr-40{padding-right:10rem}.md\\:pr-44{padding-right:11rem}.md\\:pr-48{padding-right:12rem}.md\\:pr-5{padding-right:1.25rem}.md\\:pr-52{padding-right:13rem}.md\\:pr-56{padding-right:14rem}.md\\:pr-6{padding-right:1.5rem}.md\\:pr-60{padding-right:15rem}.md\\:pr-64{padding-right:16rem}.md\\:pr-7{padding-right:1.75rem}.md\\:pr-72{padding-right:18rem}.md\\:pr-8{padding-right:2rem}.md\\:pr-80{padding-right:20rem}.md\\:pr-9{padding-right:2.25rem}.md\\:pr-96{padding-right:24rem}.md\\:pt-0{padding-top:0}.md\\:pt-0\\.5{padding-top:.125rem}.md\\:pt-1{padding-top:.25rem}.md\\:pt-1\\.5{padding-top:.375rem}.md\\:pt-10{padding-top:2.5rem}.md\\:pt-11{padding-top:2.75rem}.md\\:pt-12{padding-top:3rem}.md\\:pt-14{padding-top:3.5rem}.md\\:pt-16{padding-top:4rem}.md\\:pt-2{padding-top:.5rem}.md\\:pt-2\\.5{padding-top:.625rem}.md\\:pt-20{padding-top:5rem}.md\\:pt-24{padding-top:6rem}.md\\:pt-28{padding-top:7rem}.md\\:pt-3{padding-top:.75rem}.md\\:pt-3\\.5{padding-top:.875rem}.md\\:pt-32{padding-top:8rem}.md\\:pt-36{padding-top:9rem}.md\\:pt-4{padding-top:1rem}.md\\:pt-40{padding-top:10rem}.md\\:pt-44{padding-top:11rem}.md\\:pt-48{padding-top:12rem}.md\\:pt-5{padding-top:1.25rem}.md\\:pt-52{padding-top:13rem}.md\\:pt-56{padding-top:14rem}.md\\:pt-6{padding-top:1.5rem}.md\\:pt-60{padding-top:15rem}.md\\:pt-64{padding-top:16rem}.md\\:pt-7{padding-top:1.75rem}.md\\:pt-72{padding-top:18rem}.md\\:pt-8{padding-top:2rem}.md\\:pt-80{padding-top:20rem}.md\\:pt-9{padding-top:2.25rem}.md\\:pt-96{padding-top:24rem}.md\\:text-2xl{font-size:1.5rem;line-height:2rem}.md\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\\:text-4xl{font-size:2.25rem;line-height:2.5rem}.md\\:text-5xl{font-size:3rem;line-height:1}.md\\:text-6xl{font-size:3.75rem;line-height:1}.md\\:text-7xl{font-size:4.5rem;line-height:1}.md\\:text-8xl{font-size:6rem;line-height:1}.md\\:text-9xl{font-size:8rem;line-height:1}.md\\:text-base{font-size:1rem;line-height:1.5rem}.md\\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\\:text-sm{font-size:.875rem;line-height:1.25rem}.md\\:text-xl{font-size:1.25rem;line-height:1.75rem}.md\\:text-xs{font-size:.75rem;line-height:1rem}}@media (min-width: 1024px){.lg\\:mr-10{margin-right:2.5rem}.lg\\:block{display:block}.lg\\:flex{display:flex}.lg\\:grid{display:grid}.lg\\:h-0\\.5{height:.125rem}.lg\\:h-1{height:.25rem}.lg\\:h-1\\.5{height:.375rem}.lg\\:h-1\\/2{height:50%}.lg\\:h-1\\/3{height:33.333333%}.lg\\:h-1\\/4{height:25%}.lg\\:h-1\\/5{height:20%}.lg\\:h-1\\/6{height:16.666667%}.lg\\:h-10{height:2.5rem}.lg\\:h-11{height:2.75rem}.lg\\:h-12{height:3rem}.lg\\:h-14{height:3.5rem}.lg\\:h-16{height:4rem}.lg\\:h-2{height:.5rem}.lg\\:h-2\\.5{height:.625rem}.lg\\:h-2\\/3{height:66.666667%}.lg\\:h-2\\/4{height:50%}.lg\\:h-2\\/5{height:40%}.lg\\:h-2\\/6{height:33.333333%}.lg\\:h-20{height:5rem}.lg\\:h-24{height:6rem}.lg\\:h-28{height:7rem}.lg\\:h-3{height:.75rem}.lg\\:h-3\\.5{height:.875rem}.lg\\:h-3\\/4{height:75%}.lg\\:h-3\\/5{height:60%}.lg\\:h-3\\/6{height:50%}.lg\\:h-32{height:8rem}.lg\\:h-36{height:9rem}.lg\\:h-4{height:1rem}.lg\\:h-4\\/5{height:80%}.lg\\:h-4\\/6{height:66.666667%}.lg\\:h-40{height:10rem}.lg\\:h-44{height:11rem}.lg\\:h-48{height:12rem}.lg\\:h-5{height:1.25rem}.lg\\:h-5\\/6{height:83.333333%}.lg\\:h-52{height:13rem}.lg\\:h-56{height:14rem}.lg\\:h-6{height:1.5rem}.lg\\:h-60{height:15rem}.lg\\:h-64{height:16rem}.lg\\:h-7{height:1.75rem}.lg\\:h-72{height:18rem}.lg\\:h-8{height:2rem}.lg\\:h-80{height:20rem}.lg\\:h-9{height:2.25rem}.lg\\:h-96{height:24rem}.lg\\:h-\\[10vh\\]{height:10vh}.lg\\:h-auto{height:auto}.lg\\:h-fit{height:-moz-fit-content;height:fit-content}.lg\\:h-full{height:100%}.lg\\:h-max{height:-moz-max-content;height:max-content}.lg\\:h-min{height:-moz-min-content;height:min-content}.lg\\:h-screen{height:100vh}.lg\\:max-h-\\[30rem\\]{max-height:30rem}.lg\\:min-h-\\[20rem\\]{min-height:20rem}.lg\\:w-0\\.5{width:.125rem}.lg\\:w-1{width:.25rem}.lg\\:w-1\\.5{width:.375rem}.lg\\:w-1\\/2{width:50%}.lg\\:w-1\\/3{width:33.333333%}.lg\\:w-1\\/4{width:25%}.lg\\:w-1\\/5{width:20%}.lg\\:w-1\\/6{width:16.666667%}.lg\\:w-10{width:2.5rem}.lg\\:w-11{width:2.75rem}.lg\\:w-12{width:3rem}.lg\\:w-14{width:3.5rem}.lg\\:w-16{width:4rem}.lg\\:w-2{width:.5rem}.lg\\:w-2\\.5{width:.625rem}.lg\\:w-2\\/3{width:66.666667%}.lg\\:w-2\\/4{width:50%}.lg\\:w-2\\/5{width:40%}.lg\\:w-2\\/6{width:33.333333%}.lg\\:w-20{width:5rem}.lg\\:w-24{width:6rem}.lg\\:w-28{width:7rem}.lg\\:w-3{width:.75rem}.lg\\:w-3\\.5{width:.875rem}.lg\\:w-3\\/4{width:75%}.lg\\:w-3\\/5{width:60%}.lg\\:w-3\\/6{width:50%}.lg\\:w-32{width:8rem}.lg\\:w-36{width:9rem}.lg\\:w-4{width:1rem}.lg\\:w-4\\/5{width:80%}.lg\\:w-4\\/6{width:66.666667%}.lg\\:w-40{width:10rem}.lg\\:w-44{width:11rem}.lg\\:w-48{width:12rem}.lg\\:w-5{width:1.25rem}.lg\\:w-5\\/6{width:83.333333%}.lg\\:w-52{width:13rem}.lg\\:w-56{width:14rem}.lg\\:w-6{width:1.5rem}.lg\\:w-60{width:15rem}.lg\\:w-64{width:16rem}.lg\\:w-7{width:1.75rem}.lg\\:w-72{width:18rem}.lg\\:w-8{width:2rem}.lg\\:w-80{width:20rem}.lg\\:w-9{width:2.25rem}.lg\\:w-96{width:24rem}.lg\\:w-auto{width:auto}.lg\\:w-fit{width:-moz-fit-content;width:fit-content}.lg\\:w-full{width:100%}.lg\\:w-max{width:-moz-max-content;width:max-content}.lg\\:w-min{width:-moz-min-content;width:min-content}.lg\\:w-screen{width:100vw}.lg\\:max-w-2xl{max-width:42rem}.lg\\:max-w-3xl{max-width:48rem}.lg\\:max-w-4xl{max-width:56rem}.lg\\:max-w-5xl{max-width:64rem}.lg\\:max-w-6xl{max-width:72rem}.lg\\:max-w-7xl{max-width:80rem}.lg\\:max-w-full{max-width:100%}.lg\\:max-w-lg{max-width:32rem}.lg\\:max-w-md{max-width:28rem}.lg\\:max-w-sm{max-width:24rem}.lg\\:max-w-xl{max-width:36rem}.lg\\:auto-cols-\\[minmax\\(100px\\,_4fr\\)\\]{grid-auto-columns:minmax(100px,4fr)}.lg\\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.lg\\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.lg\\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.lg\\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.lg\\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.lg\\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.lg\\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.lg\\:grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.lg\\:grid-rows-10{grid-template-rows:repeat(10,minmax(0,1fr))}.lg\\:grid-rows-11{grid-template-rows:repeat(11,minmax(0,1fr))}.lg\\:grid-rows-12{grid-template-rows:repeat(12,minmax(0,1fr))}.lg\\:grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.lg\\:grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.lg\\:grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.lg\\:grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.lg\\:grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.lg\\:grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.lg\\:grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.lg\\:grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}.lg\\:justify-center{justify-content:center}.lg\\:justify-between{justify-content:space-between}.lg\\:gap-x-12{-moz-column-gap:3rem;column-gap:3rem}.lg\\:border{border-width:1px}.lg\\:border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.lg\\:px-12{padding-left:3rem;padding-right:3rem}.lg\\:px-4{padding-left:1rem;padding-right:1rem}.lg\\:py-10{padding-top:2.5rem;padding-bottom:2.5rem}.lg\\:pb-0{padding-bottom:0}.lg\\:pb-0\\.5{padding-bottom:.125rem}.lg\\:pb-1{padding-bottom:.25rem}.lg\\:pb-1\\.5{padding-bottom:.375rem}.lg\\:pb-10{padding-bottom:2.5rem}.lg\\:pb-11{padding-bottom:2.75rem}.lg\\:pb-12{padding-bottom:3rem}.lg\\:pb-14{padding-bottom:3.5rem}.lg\\:pb-16{padding-bottom:4rem}.lg\\:pb-2{padding-bottom:.5rem}.lg\\:pb-2\\.5{padding-bottom:.625rem}.lg\\:pb-20{padding-bottom:5rem}.lg\\:pb-24{padding-bottom:6rem}.lg\\:pb-28{padding-bottom:7rem}.lg\\:pb-3{padding-bottom:.75rem}.lg\\:pb-3\\.5{padding-bottom:.875rem}.lg\\:pb-32{padding-bottom:8rem}.lg\\:pb-36{padding-bottom:9rem}.lg\\:pb-4{padding-bottom:1rem}.lg\\:pb-40{padding-bottom:10rem}.lg\\:pb-44{padding-bottom:11rem}.lg\\:pb-48{padding-bottom:12rem}.lg\\:pb-5{padding-bottom:1.25rem}.lg\\:pb-52{padding-bottom:13rem}.lg\\:pb-56{padding-bottom:14rem}.lg\\:pb-6{padding-bottom:1.5rem}.lg\\:pb-60{padding-bottom:15rem}.lg\\:pb-64{padding-bottom:16rem}.lg\\:pb-7{padding-bottom:1.75rem}.lg\\:pb-72{padding-bottom:18rem}.lg\\:pb-8{padding-bottom:2rem}.lg\\:pb-80{padding-bottom:20rem}.lg\\:pb-9{padding-bottom:2.25rem}.lg\\:pb-96{padding-bottom:24rem}.lg\\:pl-0{padding-left:0}.lg\\:pl-0\\.5{padding-left:.125rem}.lg\\:pl-1{padding-left:.25rem}.lg\\:pl-1\\.5{padding-left:.375rem}.lg\\:pl-10{padding-left:2.5rem}.lg\\:pl-11{padding-left:2.75rem}.lg\\:pl-12{padding-left:3rem}.lg\\:pl-14{padding-left:3.5rem}.lg\\:pl-16{padding-left:4rem}.lg\\:pl-2{padding-left:.5rem}.lg\\:pl-2\\.5{padding-left:.625rem}.lg\\:pl-20{padding-left:5rem}.lg\\:pl-24{padding-left:6rem}.lg\\:pl-28{padding-left:7rem}.lg\\:pl-3{padding-left:.75rem}.lg\\:pl-3\\.5{padding-left:.875rem}.lg\\:pl-32{padding-left:8rem}.lg\\:pl-36{padding-left:9rem}.lg\\:pl-4{padding-left:1rem}.lg\\:pl-40{padding-left:10rem}.lg\\:pl-44{padding-left:11rem}.lg\\:pl-48{padding-left:12rem}.lg\\:pl-5{padding-left:1.25rem}.lg\\:pl-52{padding-left:13rem}.lg\\:pl-56{padding-left:14rem}.lg\\:pl-6{padding-left:1.5rem}.lg\\:pl-60{padding-left:15rem}.lg\\:pl-64{padding-left:16rem}.lg\\:pl-7{padding-left:1.75rem}.lg\\:pl-72{padding-left:18rem}.lg\\:pl-8{padding-left:2rem}.lg\\:pl-80{padding-left:20rem}.lg\\:pl-9{padding-left:2.25rem}.lg\\:pl-96{padding-left:24rem}.lg\\:pr-0{padding-right:0}.lg\\:pr-0\\.5{padding-right:.125rem}.lg\\:pr-1{padding-right:.25rem}.lg\\:pr-1\\.5{padding-right:.375rem}.lg\\:pr-10{padding-right:2.5rem}.lg\\:pr-11{padding-right:2.75rem}.lg\\:pr-12{padding-right:3rem}.lg\\:pr-14{padding-right:3.5rem}.lg\\:pr-16{padding-right:4rem}.lg\\:pr-2{padding-right:.5rem}.lg\\:pr-2\\.5{padding-right:.625rem}.lg\\:pr-20{padding-right:5rem}.lg\\:pr-24{padding-right:6rem}.lg\\:pr-28{padding-right:7rem}.lg\\:pr-3{padding-right:.75rem}.lg\\:pr-3\\.5{padding-right:.875rem}.lg\\:pr-32{padding-right:8rem}.lg\\:pr-36{padding-right:9rem}.lg\\:pr-4{padding-right:1rem}.lg\\:pr-40{padding-right:10rem}.lg\\:pr-44{padding-right:11rem}.lg\\:pr-48{padding-right:12rem}.lg\\:pr-5{padding-right:1.25rem}.lg\\:pr-52{padding-right:13rem}.lg\\:pr-56{padding-right:14rem}.lg\\:pr-6{padding-right:1.5rem}.lg\\:pr-60{padding-right:15rem}.lg\\:pr-64{padding-right:16rem}.lg\\:pr-7{padding-right:1.75rem}.lg\\:pr-72{padding-right:18rem}.lg\\:pr-8{padding-right:2rem}.lg\\:pr-80{padding-right:20rem}.lg\\:pr-9{padding-right:2.25rem}.lg\\:pr-96{padding-right:24rem}.lg\\:pt-0{padding-top:0}.lg\\:pt-0\\.5{padding-top:.125rem}.lg\\:pt-1{padding-top:.25rem}.lg\\:pt-1\\.5{padding-top:.375rem}.lg\\:pt-10{padding-top:2.5rem}.lg\\:pt-11{padding-top:2.75rem}.lg\\:pt-12{padding-top:3rem}.lg\\:pt-14{padding-top:3.5rem}.lg\\:pt-16{padding-top:4rem}.lg\\:pt-2{padding-top:.5rem}.lg\\:pt-2\\.5{padding-top:.625rem}.lg\\:pt-20{padding-top:5rem}.lg\\:pt-24{padding-top:6rem}.lg\\:pt-28{padding-top:7rem}.lg\\:pt-3{padding-top:.75rem}.lg\\:pt-3\\.5{padding-top:.875rem}.lg\\:pt-32{padding-top:8rem}.lg\\:pt-36{padding-top:9rem}.lg\\:pt-4{padding-top:1rem}.lg\\:pt-40{padding-top:10rem}.lg\\:pt-44{padding-top:11rem}.lg\\:pt-48{padding-top:12rem}.lg\\:pt-5{padding-top:1.25rem}.lg\\:pt-52{padding-top:13rem}.lg\\:pt-56{padding-top:14rem}.lg\\:pt-6{padding-top:1.5rem}.lg\\:pt-60{padding-top:15rem}.lg\\:pt-64{padding-top:16rem}.lg\\:pt-7{padding-top:1.75rem}.lg\\:pt-72{padding-top:18rem}.lg\\:pt-8{padding-top:2rem}.lg\\:pt-80{padding-top:20rem}.lg\\:pt-9{padding-top:2.25rem}.lg\\:pt-96{padding-top:24rem}.lg\\:text-2xl{font-size:1.5rem;line-height:2rem}.lg\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.lg\\:text-4xl{font-size:2.25rem;line-height:2.5rem}.lg\\:text-5xl{font-size:3rem;line-height:1}.lg\\:text-6xl{font-size:3.75rem;line-height:1}.lg\\:text-7xl{font-size:4.5rem;line-height:1}.lg\\:text-8xl{font-size:6rem;line-height:1}.lg\\:text-9xl{font-size:8rem;line-height:1}.lg\\:text-base{font-size:1rem;line-height:1.5rem}.lg\\:text-lg{font-size:1.125rem;line-height:1.75rem}.lg\\:text-sm{font-size:.875rem;line-height:1.25rem}.lg\\:text-xl{font-size:1.25rem;line-height:1.75rem}.lg\\:text-xs{font-size:.75rem;line-height:1rem}.lg\\:shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}}@media (min-width: 1280px){.xl\\:flex{display:flex}.xl\\:grid{display:grid}.xl\\:h-0\\.5{height:.125rem}.xl\\:h-1{height:.25rem}.xl\\:h-1\\.5{height:.375rem}.xl\\:h-1\\/2{height:50%}.xl\\:h-1\\/3{height:33.333333%}.xl\\:h-1\\/4{height:25%}.xl\\:h-1\\/5{height:20%}.xl\\:h-1\\/6{height:16.666667%}.xl\\:h-10{height:2.5rem}.xl\\:h-11{height:2.75rem}.xl\\:h-12{height:3rem}.xl\\:h-14{height:3.5rem}.xl\\:h-16{height:4rem}.xl\\:h-2{height:.5rem}.xl\\:h-2\\.5{height:.625rem}.xl\\:h-2\\/3{height:66.666667%}.xl\\:h-2\\/4{height:50%}.xl\\:h-2\\/5{height:40%}.xl\\:h-2\\/6{height:33.333333%}.xl\\:h-20{height:5rem}.xl\\:h-24{height:6rem}.xl\\:h-28{height:7rem}.xl\\:h-3{height:.75rem}.xl\\:h-3\\.5{height:.875rem}.xl\\:h-3\\/4{height:75%}.xl\\:h-3\\/5{height:60%}.xl\\:h-3\\/6{height:50%}.xl\\:h-32{height:8rem}.xl\\:h-36{height:9rem}.xl\\:h-4{height:1rem}.xl\\:h-4\\/5{height:80%}.xl\\:h-4\\/6{height:66.666667%}.xl\\:h-40{height:10rem}.xl\\:h-44{height:11rem}.xl\\:h-48{height:12rem}.xl\\:h-5{height:1.25rem}.xl\\:h-5\\/6{height:83.333333%}.xl\\:h-52{height:13rem}.xl\\:h-56{height:14rem}.xl\\:h-6{height:1.5rem}.xl\\:h-60{height:15rem}.xl\\:h-64{height:16rem}.xl\\:h-7{height:1.75rem}.xl\\:h-72{height:18rem}.xl\\:h-8{height:2rem}.xl\\:h-80{height:20rem}.xl\\:h-9{height:2.25rem}.xl\\:h-96{height:24rem}.xl\\:h-auto{height:auto}.xl\\:h-fit{height:-moz-fit-content;height:fit-content}.xl\\:h-full{height:100%}.xl\\:h-max{height:-moz-max-content;height:max-content}.xl\\:h-min{height:-moz-min-content;height:min-content}.xl\\:h-screen{height:100vh}.xl\\:w-0\\.5{width:.125rem}.xl\\:w-1{width:.25rem}.xl\\:w-1\\.5{width:.375rem}.xl\\:w-1\\/2{width:50%}.xl\\:w-1\\/3{width:33.333333%}.xl\\:w-1\\/4{width:25%}.xl\\:w-1\\/5{width:20%}.xl\\:w-1\\/6{width:16.666667%}.xl\\:w-10{width:2.5rem}.xl\\:w-11{width:2.75rem}.xl\\:w-12{width:3rem}.xl\\:w-14{width:3.5rem}.xl\\:w-16{width:4rem}.xl\\:w-2{width:.5rem}.xl\\:w-2\\.5{width:.625rem}.xl\\:w-2\\/3{width:66.666667%}.xl\\:w-2\\/4{width:50%}.xl\\:w-2\\/5{width:40%}.xl\\:w-2\\/6{width:33.333333%}.xl\\:w-20{width:5rem}.xl\\:w-24{width:6rem}.xl\\:w-28{width:7rem}.xl\\:w-3{width:.75rem}.xl\\:w-3\\.5{width:.875rem}.xl\\:w-3\\/4{width:75%}.xl\\:w-3\\/5{width:60%}.xl\\:w-3\\/6{width:50%}.xl\\:w-32{width:8rem}.xl\\:w-36{width:9rem}.xl\\:w-4{width:1rem}.xl\\:w-4\\/5{width:80%}.xl\\:w-4\\/6{width:66.666667%}.xl\\:w-40{width:10rem}.xl\\:w-44{width:11rem}.xl\\:w-48{width:12rem}.xl\\:w-5{width:1.25rem}.xl\\:w-5\\/6{width:83.333333%}.xl\\:w-52{width:13rem}.xl\\:w-56{width:14rem}.xl\\:w-6{width:1.5rem}.xl\\:w-60{width:15rem}.xl\\:w-64{width:16rem}.xl\\:w-7{width:1.75rem}.xl\\:w-72{width:18rem}.xl\\:w-8{width:2rem}.xl\\:w-80{width:20rem}.xl\\:w-9{width:2.25rem}.xl\\:w-96{width:24rem}.xl\\:w-auto{width:auto}.xl\\:w-fit{width:-moz-fit-content;width:fit-content}.xl\\:w-full{width:100%}.xl\\:w-max{width:-moz-max-content;width:max-content}.xl\\:w-min{width:-moz-min-content;width:min-content}.xl\\:w-screen{width:100vw}.xl\\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.xl\\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.xl\\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.xl\\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.xl\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.xl\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.xl\\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.xl\\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.xl\\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.xl\\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.xl\\:grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.xl\\:grid-rows-10{grid-template-rows:repeat(10,minmax(0,1fr))}.xl\\:grid-rows-11{grid-template-rows:repeat(11,minmax(0,1fr))}.xl\\:grid-rows-12{grid-template-rows:repeat(12,minmax(0,1fr))}.xl\\:grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.xl\\:grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.xl\\:grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.xl\\:grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.xl\\:grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.xl\\:grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.xl\\:grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.xl\\:grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}.xl\\:pb-0{padding-bottom:0}.xl\\:pb-0\\.5{padding-bottom:.125rem}.xl\\:pb-1{padding-bottom:.25rem}.xl\\:pb-1\\.5{padding-bottom:.375rem}.xl\\:pb-10{padding-bottom:2.5rem}.xl\\:pb-11{padding-bottom:2.75rem}.xl\\:pb-12{padding-bottom:3rem}.xl\\:pb-14{padding-bottom:3.5rem}.xl\\:pb-16{padding-bottom:4rem}.xl\\:pb-2{padding-bottom:.5rem}.xl\\:pb-2\\.5{padding-bottom:.625rem}.xl\\:pb-20{padding-bottom:5rem}.xl\\:pb-24{padding-bottom:6rem}.xl\\:pb-28{padding-bottom:7rem}.xl\\:pb-3{padding-bottom:.75rem}.xl\\:pb-3\\.5{padding-bottom:.875rem}.xl\\:pb-32{padding-bottom:8rem}.xl\\:pb-36{padding-bottom:9rem}.xl\\:pb-4{padding-bottom:1rem}.xl\\:pb-40{padding-bottom:10rem}.xl\\:pb-44{padding-bottom:11rem}.xl\\:pb-48{padding-bottom:12rem}.xl\\:pb-5{padding-bottom:1.25rem}.xl\\:pb-52{padding-bottom:13rem}.xl\\:pb-56{padding-bottom:14rem}.xl\\:pb-6{padding-bottom:1.5rem}.xl\\:pb-60{padding-bottom:15rem}.xl\\:pb-64{padding-bottom:16rem}.xl\\:pb-7{padding-bottom:1.75rem}.xl\\:pb-72{padding-bottom:18rem}.xl\\:pb-8{padding-bottom:2rem}.xl\\:pb-80{padding-bottom:20rem}.xl\\:pb-9{padding-bottom:2.25rem}.xl\\:pb-96{padding-bottom:24rem}.xl\\:pl-0{padding-left:0}.xl\\:pl-0\\.5{padding-left:.125rem}.xl\\:pl-1{padding-left:.25rem}.xl\\:pl-1\\.5{padding-left:.375rem}.xl\\:pl-10{padding-left:2.5rem}.xl\\:pl-11{padding-left:2.75rem}.xl\\:pl-12{padding-left:3rem}.xl\\:pl-14{padding-left:3.5rem}.xl\\:pl-16{padding-left:4rem}.xl\\:pl-2{padding-left:.5rem}.xl\\:pl-2\\.5{padding-left:.625rem}.xl\\:pl-20{padding-left:5rem}.xl\\:pl-24{padding-left:6rem}.xl\\:pl-28{padding-left:7rem}.xl\\:pl-3{padding-left:.75rem}.xl\\:pl-3\\.5{padding-left:.875rem}.xl\\:pl-32{padding-left:8rem}.xl\\:pl-36{padding-left:9rem}.xl\\:pl-4{padding-left:1rem}.xl\\:pl-40{padding-left:10rem}.xl\\:pl-44{padding-left:11rem}.xl\\:pl-48{padding-left:12rem}.xl\\:pl-5{padding-left:1.25rem}.xl\\:pl-52{padding-left:13rem}.xl\\:pl-56{padding-left:14rem}.xl\\:pl-6{padding-left:1.5rem}.xl\\:pl-60{padding-left:15rem}.xl\\:pl-64{padding-left:16rem}.xl\\:pl-7{padding-left:1.75rem}.xl\\:pl-72{padding-left:18rem}.xl\\:pl-8{padding-left:2rem}.xl\\:pl-80{padding-left:20rem}.xl\\:pl-9{padding-left:2.25rem}.xl\\:pl-96{padding-left:24rem}.xl\\:pr-0{padding-right:0}.xl\\:pr-0\\.5{padding-right:.125rem}.xl\\:pr-1{padding-right:.25rem}.xl\\:pr-1\\.5{padding-right:.375rem}.xl\\:pr-10{padding-right:2.5rem}.xl\\:pr-11{padding-right:2.75rem}.xl\\:pr-12{padding-right:3rem}.xl\\:pr-14{padding-right:3.5rem}.xl\\:pr-16{padding-right:4rem}.xl\\:pr-2{padding-right:.5rem}.xl\\:pr-2\\.5{padding-right:.625rem}.xl\\:pr-20{padding-right:5rem}.xl\\:pr-24{padding-right:6rem}.xl\\:pr-28{padding-right:7rem}.xl\\:pr-3{padding-right:.75rem}.xl\\:pr-3\\.5{padding-right:.875rem}.xl\\:pr-32{padding-right:8rem}.xl\\:pr-36{padding-right:9rem}.xl\\:pr-4{padding-right:1rem}.xl\\:pr-40{padding-right:10rem}.xl\\:pr-44{padding-right:11rem}.xl\\:pr-48{padding-right:12rem}.xl\\:pr-5{padding-right:1.25rem}.xl\\:pr-52{padding-right:13rem}.xl\\:pr-56{padding-right:14rem}.xl\\:pr-6{padding-right:1.5rem}.xl\\:pr-60{padding-right:15rem}.xl\\:pr-64{padding-right:16rem}.xl\\:pr-7{padding-right:1.75rem}.xl\\:pr-72{padding-right:18rem}.xl\\:pr-8{padding-right:2rem}.xl\\:pr-80{padding-right:20rem}.xl\\:pr-9{padding-right:2.25rem}.xl\\:pr-96{padding-right:24rem}.xl\\:pt-0{padding-top:0}.xl\\:pt-0\\.5{padding-top:.125rem}.xl\\:pt-1{padding-top:.25rem}.xl\\:pt-1\\.5{padding-top:.375rem}.xl\\:pt-10{padding-top:2.5rem}.xl\\:pt-11{padding-top:2.75rem}.xl\\:pt-12{padding-top:3rem}.xl\\:pt-14{padding-top:3.5rem}.xl\\:pt-16{padding-top:4rem}.xl\\:pt-2{padding-top:.5rem}.xl\\:pt-2\\.5{padding-top:.625rem}.xl\\:pt-20{padding-top:5rem}.xl\\:pt-24{padding-top:6rem}.xl\\:pt-28{padding-top:7rem}.xl\\:pt-3{padding-top:.75rem}.xl\\:pt-3\\.5{padding-top:.875rem}.xl\\:pt-32{padding-top:8rem}.xl\\:pt-36{padding-top:9rem}.xl\\:pt-4{padding-top:1rem}.xl\\:pt-40{padding-top:10rem}.xl\\:pt-44{padding-top:11rem}.xl\\:pt-48{padding-top:12rem}.xl\\:pt-5{padding-top:1.25rem}.xl\\:pt-52{padding-top:13rem}.xl\\:pt-56{padding-top:14rem}.xl\\:pt-6{padding-top:1.5rem}.xl\\:pt-60{padding-top:15rem}.xl\\:pt-64{padding-top:16rem}.xl\\:pt-7{padding-top:1.75rem}.xl\\:pt-72{padding-top:18rem}.xl\\:pt-8{padding-top:2rem}.xl\\:pt-80{padding-top:20rem}.xl\\:pt-9{padding-top:2.25rem}.xl\\:pt-96{padding-top:24rem}}@media (min-width: 1536px){.\\32xl\\:flex{display:flex}.\\32xl\\:grid{display:grid}.\\32xl\\:h-0\\.5{height:.125rem}.\\32xl\\:h-1{height:.25rem}.\\32xl\\:h-1\\.5{height:.375rem}.\\32xl\\:h-1\\/2{height:50%}.\\32xl\\:h-1\\/3{height:33.333333%}.\\32xl\\:h-1\\/4{height:25%}.\\32xl\\:h-1\\/5{height:20%}.\\32xl\\:h-1\\/6{height:16.666667%}.\\32xl\\:h-10{height:2.5rem}.\\32xl\\:h-11{height:2.75rem}.\\32xl\\:h-12{height:3rem}.\\32xl\\:h-14{height:3.5rem}.\\32xl\\:h-16{height:4rem}.\\32xl\\:h-2{height:.5rem}.\\32xl\\:h-2\\.5{height:.625rem}.\\32xl\\:h-2\\/3{height:66.666667%}.\\32xl\\:h-2\\/4{height:50%}.\\32xl\\:h-2\\/5{height:40%}.\\32xl\\:h-2\\/6{height:33.333333%}.\\32xl\\:h-20{height:5rem}.\\32xl\\:h-24{height:6rem}.\\32xl\\:h-28{height:7rem}.\\32xl\\:h-3{height:.75rem}.\\32xl\\:h-3\\.5{height:.875rem}.\\32xl\\:h-3\\/4{height:75%}.\\32xl\\:h-3\\/5{height:60%}.\\32xl\\:h-3\\/6{height:50%}.\\32xl\\:h-32{height:8rem}.\\32xl\\:h-36{height:9rem}.\\32xl\\:h-4{height:1rem}.\\32xl\\:h-4\\/5{height:80%}.\\32xl\\:h-4\\/6{height:66.666667%}.\\32xl\\:h-40{height:10rem}.\\32xl\\:h-44{height:11rem}.\\32xl\\:h-48{height:12rem}.\\32xl\\:h-5{height:1.25rem}.\\32xl\\:h-5\\/6{height:83.333333%}.\\32xl\\:h-52{height:13rem}.\\32xl\\:h-56{height:14rem}.\\32xl\\:h-6{height:1.5rem}.\\32xl\\:h-60{height:15rem}.\\32xl\\:h-64{height:16rem}.\\32xl\\:h-7{height:1.75rem}.\\32xl\\:h-72{height:18rem}.\\32xl\\:h-8{height:2rem}.\\32xl\\:h-80{height:20rem}.\\32xl\\:h-9{height:2.25rem}.\\32xl\\:h-96{height:24rem}.\\32xl\\:h-auto{height:auto}.\\32xl\\:h-fit{height:-moz-fit-content;height:fit-content}.\\32xl\\:h-full{height:100%}.\\32xl\\:h-max{height:-moz-max-content;height:max-content}.\\32xl\\:h-min{height:-moz-min-content;height:min-content}.\\32xl\\:h-screen{height:100vh}.\\32xl\\:w-0\\.5{width:.125rem}.\\32xl\\:w-1{width:.25rem}.\\32xl\\:w-1\\.5{width:.375rem}.\\32xl\\:w-1\\/2{width:50%}.\\32xl\\:w-1\\/3{width:33.333333%}.\\32xl\\:w-1\\/4{width:25%}.\\32xl\\:w-1\\/5{width:20%}.\\32xl\\:w-1\\/6{width:16.666667%}.\\32xl\\:w-10{width:2.5rem}.\\32xl\\:w-11{width:2.75rem}.\\32xl\\:w-12{width:3rem}.\\32xl\\:w-14{width:3.5rem}.\\32xl\\:w-16{width:4rem}.\\32xl\\:w-2{width:.5rem}.\\32xl\\:w-2\\.5{width:.625rem}.\\32xl\\:w-2\\/3{width:66.666667%}.\\32xl\\:w-2\\/4{width:50%}.\\32xl\\:w-2\\/5{width:40%}.\\32xl\\:w-2\\/6{width:33.333333%}.\\32xl\\:w-20{width:5rem}.\\32xl\\:w-24{width:6rem}.\\32xl\\:w-28{width:7rem}.\\32xl\\:w-3{width:.75rem}.\\32xl\\:w-3\\.5{width:.875rem}.\\32xl\\:w-3\\/4{width:75%}.\\32xl\\:w-3\\/5{width:60%}.\\32xl\\:w-3\\/6{width:50%}.\\32xl\\:w-32{width:8rem}.\\32xl\\:w-36{width:9rem}.\\32xl\\:w-4{width:1rem}.\\32xl\\:w-4\\/5{width:80%}.\\32xl\\:w-4\\/6{width:66.666667%}.\\32xl\\:w-40{width:10rem}.\\32xl\\:w-44{width:11rem}.\\32xl\\:w-48{width:12rem}.\\32xl\\:w-5{width:1.25rem}.\\32xl\\:w-5\\/6{width:83.333333%}.\\32xl\\:w-52{width:13rem}.\\32xl\\:w-56{width:14rem}.\\32xl\\:w-6{width:1.5rem}.\\32xl\\:w-60{width:15rem}.\\32xl\\:w-64{width:16rem}.\\32xl\\:w-7{width:1.75rem}.\\32xl\\:w-72{width:18rem}.\\32xl\\:w-8{width:2rem}.\\32xl\\:w-80{width:20rem}.\\32xl\\:w-9{width:2.25rem}.\\32xl\\:w-96{width:24rem}.\\32xl\\:w-auto{width:auto}.\\32xl\\:w-fit{width:-moz-fit-content;width:fit-content}.\\32xl\\:w-full{width:100%}.\\32xl\\:w-max{width:-moz-max-content;width:max-content}.\\32xl\\:w-min{width:-moz-min-content;width:min-content}.\\32xl\\:w-screen{width:100vw}.\\32xl\\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.\\32xl\\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.\\32xl\\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.\\32xl\\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.\\32xl\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.\\32xl\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.\\32xl\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.\\32xl\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.\\32xl\\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.\\32xl\\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.\\32xl\\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.\\32xl\\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.\\32xl\\:grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.\\32xl\\:grid-rows-10{grid-template-rows:repeat(10,minmax(0,1fr))}.\\32xl\\:grid-rows-11{grid-template-rows:repeat(11,minmax(0,1fr))}.\\32xl\\:grid-rows-12{grid-template-rows:repeat(12,minmax(0,1fr))}.\\32xl\\:grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.\\32xl\\:grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.\\32xl\\:grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.\\32xl\\:grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.\\32xl\\:grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.\\32xl\\:grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.\\32xl\\:grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.\\32xl\\:grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}.\\32xl\\:pb-0{padding-bottom:0}.\\32xl\\:pb-0\\.5{padding-bottom:.125rem}.\\32xl\\:pb-1{padding-bottom:.25rem}.\\32xl\\:pb-1\\.5{padding-bottom:.375rem}.\\32xl\\:pb-10{padding-bottom:2.5rem}.\\32xl\\:pb-11{padding-bottom:2.75rem}.\\32xl\\:pb-12{padding-bottom:3rem}.\\32xl\\:pb-14{padding-bottom:3.5rem}.\\32xl\\:pb-16{padding-bottom:4rem}.\\32xl\\:pb-2{padding-bottom:.5rem}.\\32xl\\:pb-2\\.5{padding-bottom:.625rem}.\\32xl\\:pb-20{padding-bottom:5rem}.\\32xl\\:pb-24{padding-bottom:6rem}.\\32xl\\:pb-28{padding-bottom:7rem}.\\32xl\\:pb-3{padding-bottom:.75rem}.\\32xl\\:pb-3\\.5{padding-bottom:.875rem}.\\32xl\\:pb-32{padding-bottom:8rem}.\\32xl\\:pb-36{padding-bottom:9rem}.\\32xl\\:pb-4{padding-bottom:1rem}.\\32xl\\:pb-40{padding-bottom:10rem}.\\32xl\\:pb-44{padding-bottom:11rem}.\\32xl\\:pb-48{padding-bottom:12rem}.\\32xl\\:pb-5{padding-bottom:1.25rem}.\\32xl\\:pb-52{padding-bottom:13rem}.\\32xl\\:pb-56{padding-bottom:14rem}.\\32xl\\:pb-6{padding-bottom:1.5rem}.\\32xl\\:pb-60{padding-bottom:15rem}.\\32xl\\:pb-64{padding-bottom:16rem}.\\32xl\\:pb-7{padding-bottom:1.75rem}.\\32xl\\:pb-72{padding-bottom:18rem}.\\32xl\\:pb-8{padding-bottom:2rem}.\\32xl\\:pb-80{padding-bottom:20rem}.\\32xl\\:pb-9{padding-bottom:2.25rem}.\\32xl\\:pb-96{padding-bottom:24rem}.\\32xl\\:pl-0{padding-left:0}.\\32xl\\:pl-0\\.5{padding-left:.125rem}.\\32xl\\:pl-1{padding-left:.25rem}.\\32xl\\:pl-1\\.5{padding-left:.375rem}.\\32xl\\:pl-10{padding-left:2.5rem}.\\32xl\\:pl-11{padding-left:2.75rem}.\\32xl\\:pl-12{padding-left:3rem}.\\32xl\\:pl-14{padding-left:3.5rem}.\\32xl\\:pl-16{padding-left:4rem}.\\32xl\\:pl-2{padding-left:.5rem}.\\32xl\\:pl-2\\.5{padding-left:.625rem}.\\32xl\\:pl-20{padding-left:5rem}.\\32xl\\:pl-24{padding-left:6rem}.\\32xl\\:pl-28{padding-left:7rem}.\\32xl\\:pl-3{padding-left:.75rem}.\\32xl\\:pl-3\\.5{padding-left:.875rem}.\\32xl\\:pl-32{padding-left:8rem}.\\32xl\\:pl-36{padding-left:9rem}.\\32xl\\:pl-4{padding-left:1rem}.\\32xl\\:pl-40{padding-left:10rem}.\\32xl\\:pl-44{padding-left:11rem}.\\32xl\\:pl-48{padding-left:12rem}.\\32xl\\:pl-5{padding-left:1.25rem}.\\32xl\\:pl-52{padding-left:13rem}.\\32xl\\:pl-56{padding-left:14rem}.\\32xl\\:pl-6{padding-left:1.5rem}.\\32xl\\:pl-60{padding-left:15rem}.\\32xl\\:pl-64{padding-left:16rem}.\\32xl\\:pl-7{padding-left:1.75rem}.\\32xl\\:pl-72{padding-left:18rem}.\\32xl\\:pl-8{padding-left:2rem}.\\32xl\\:pl-80{padding-left:20rem}.\\32xl\\:pl-9{padding-left:2.25rem}.\\32xl\\:pl-96{padding-left:24rem}.\\32xl\\:pr-0{padding-right:0}.\\32xl\\:pr-0\\.5{padding-right:.125rem}.\\32xl\\:pr-1{padding-right:.25rem}.\\32xl\\:pr-1\\.5{padding-right:.375rem}.\\32xl\\:pr-10{padding-right:2.5rem}.\\32xl\\:pr-11{padding-right:2.75rem}.\\32xl\\:pr-12{padding-right:3rem}.\\32xl\\:pr-14{padding-right:3.5rem}.\\32xl\\:pr-16{padding-right:4rem}.\\32xl\\:pr-2{padding-right:.5rem}.\\32xl\\:pr-2\\.5{padding-right:.625rem}.\\32xl\\:pr-20{padding-right:5rem}.\\32xl\\:pr-24{padding-right:6rem}.\\32xl\\:pr-28{padding-right:7rem}.\\32xl\\:pr-3{padding-right:.75rem}.\\32xl\\:pr-3\\.5{padding-right:.875rem}.\\32xl\\:pr-32{padding-right:8rem}.\\32xl\\:pr-36{padding-right:9rem}.\\32xl\\:pr-4{padding-right:1rem}.\\32xl\\:pr-40{padding-right:10rem}.\\32xl\\:pr-44{padding-right:11rem}.\\32xl\\:pr-48{padding-right:12rem}.\\32xl\\:pr-5{padding-right:1.25rem}.\\32xl\\:pr-52{padding-right:13rem}.\\32xl\\:pr-56{padding-right:14rem}.\\32xl\\:pr-6{padding-right:1.5rem}.\\32xl\\:pr-60{padding-right:15rem}.\\32xl\\:pr-64{padding-right:16rem}.\\32xl\\:pr-7{padding-right:1.75rem}.\\32xl\\:pr-72{padding-right:18rem}.\\32xl\\:pr-8{padding-right:2rem}.\\32xl\\:pr-80{padding-right:20rem}.\\32xl\\:pr-9{padding-right:2.25rem}.\\32xl\\:pr-96{padding-right:24rem}.\\32xl\\:pt-0{padding-top:0}.\\32xl\\:pt-0\\.5{padding-top:.125rem}.\\32xl\\:pt-1{padding-top:.25rem}.\\32xl\\:pt-1\\.5{padding-top:.375rem}.\\32xl\\:pt-10{padding-top:2.5rem}.\\32xl\\:pt-11{padding-top:2.75rem}.\\32xl\\:pt-12{padding-top:3rem}.\\32xl\\:pt-14{padding-top:3.5rem}.\\32xl\\:pt-16{padding-top:4rem}.\\32xl\\:pt-2{padding-top:.5rem}.\\32xl\\:pt-2\\.5{padding-top:.625rem}.\\32xl\\:pt-20{padding-top:5rem}.\\32xl\\:pt-24{padding-top:6rem}.\\32xl\\:pt-28{padding-top:7rem}.\\32xl\\:pt-3{padding-top:.75rem}.\\32xl\\:pt-3\\.5{padding-top:.875rem}.\\32xl\\:pt-32{padding-top:8rem}.\\32xl\\:pt-36{padding-top:9rem}.\\32xl\\:pt-4{padding-top:1rem}.\\32xl\\:pt-40{padding-top:10rem}.\\32xl\\:pt-44{padding-top:11rem}.\\32xl\\:pt-48{padding-top:12rem}.\\32xl\\:pt-5{padding-top:1.25rem}.\\32xl\\:pt-52{padding-top:13rem}.\\32xl\\:pt-56{padding-top:14rem}.\\32xl\\:pt-6{padding-top:1.5rem}.\\32xl\\:pt-60{padding-top:15rem}.\\32xl\\:pt-64{padding-top:16rem}.\\32xl\\:pt-7{padding-top:1.75rem}.\\32xl\\:pt-72{padding-top:18rem}.\\32xl\\:pt-8{padding-top:2rem}.\\32xl\\:pt-80{padding-top:20rem}.\\32xl\\:pt-9{padding-top:2.25rem}.\\32xl\\:pt-96{padding-top:24rem}}@media (prefers-color-scheme: dark){.dark\\:text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}}`,E3=function(r){return`<!DOCTYPE html><html><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><style>${k3}</style></head><body>${r}</body></html>`},S3={class:"w-full inset-x-0 h-[90vh] bg-white overflow-x-scroll lg:pt-2 pt-2"},C3={class:"flex gap-4 flex-col divide-y divide-gray-300"},N3={class:"mb-4 pb-8 border-b border-myPrimbryLightGrayColor"},B3={class:"px-2"},M3={class:"mt-8"},T3={class:"overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg"},O3={class:"overflow-x-auto"},V3={class:"min-w-full"},P3={class:"bg-white divide-y divide-gray-200"},A3={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},D3={class:"min-w-[30rem] w-max"},I3={class:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800"},L3={key:0,class:"mt-4"},R3={class:"overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg"},z3={class:"overflow-x-auto"},_3={class:"min-w-full"},F3={class:"bg-white divide-y divide-gray-200"},j3={key:0},H3={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},W3={class:"min-w-[30rem] w-max"},q3={key:1},U3={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},K3={class:"min-w-[30rem] w-max"},J3={key:1,class:"mt-8"},G3={class:"overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg"},Y3={class:"overflow-x-auto"},X3={class:"min-w-full"},Q3={class:"bg-white divide-y divide-gray-200"},Z3={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},$3={class:"min-w-[30rem] w-max"},ek={key:0,class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},tk={class:"min-w-[30rem] w-max"},rk={class:"flex items-center space-x-3"},ok=["src"],nk={key:0,class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},ik={class:"min-w-[30rem] w-max"},ak={key:2,class:"mt-8"},sk={class:"overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg"},lk={class:"overflow-x-auto"},dk={class:"min-w-full"},ck={class:"bg-white divide-y divide-gray-200"},pk={key:0},uk={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},mk={class:"min-w-[30rem] w-max"},hk={key:1},gk={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},fk={class:"min-w-[30rem] w-max"},bk={key:2},wk={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},yk={class:"min-w-[30rem] w-max"},xk={key:3},vk={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},kk={class:"min-w-[30rem] w-max"},Ek={key:3,class:"mt-8"},Sk={class:"overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg"},Ck={class:"overflow-x-auto"},Nk={class:"min-w-full"},Bk={class:"bg-white divide-y divide-gray-200"},Mk={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},Tk={class:"min-w-[30rem] w-max"},Ok={class:"flex items-center space-x-3"},Vk=["src"],Pk={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},Ak={class:"min-w-[30rem] w-max"},Dk={class:"flex items-center space-x-3"},Ik={class:"border-r border-gray-200 pr-6"},Lk={class:"flex items-center space-x-3"},Rk={class:"whitespace-nowrap"},zk={key:4,class:"mt-8"},_k={class:"overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg"},Fk={class:"overflow-x-auto"},jk={class:"w-max"},Hk={class:"bg-white divide-y divide-gray-200"},Wk={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},qk={class:"min-w-[30rem] w-max"},Uk={key:0},Kk={key:1},Jk={key:0},Gk={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},Yk={class:"min-w-[30rem] w-max"},Xk={class:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium"},Qk={class:"mt-4 mb-4 py-8 border-b border-myPrimbryLightGrayColor"},Zk={class:"mt-4 whitespace-pre-wrap text-white overflow-hidden bg-gray-900"},$k={class:"px-4 pb-8 pt-4 text-white text-xs break-all"},e4={class:"myPrimaryParagraph text-xs text-white"},t4={__name:"PageBuilderSettings",setup(r){const e="v3.2.84",t=se;new ce(t);const o=s.ref(null),n=s.computed(()=>t.getConfigPageBuilder),i=s.computed(()=>t.getComponents),a=function(d,c){const p=document.createElement("a");p.setAttribute("href","data:text/html;charset=utf-8,"+encodeURIComponent(E3(c))),p.setAttribute("download",d),p.style.display="none",document.body.appendChild(p),p.click(),document.body.removeChild(p)},l=function(){o.value=i.value.map(d=>d.html_code),a("downloaded_html.html",o.value.join(""))};return(d,c)=>{var p,u,m,h,g,f,b,y,k,x,w,S,v,C,O,D;return s.openBlock(),s.createElementBlock("div",S3,[s.createElementVNode("div",C3,[s.createElementVNode("div",N3,[c[26]||(c[26]=s.createElementVNode("div",{class:"flex items-left flex-col gap-1"},[s.createElementVNode("h3",{class:"myQuaternaryHeader"},"Configuration Overview"),s.createElementVNode("p",{class:"myPrimaryParagraph text-xs"}," A summary of current user preferences, application settings, and system metadata including UI theme, language, saved components, and logo configuration. ")],-1)),s.createElementVNode("div",B3,[s.createElementVNode("div",M3,[c[2]||(c[2]=s.createElementVNode("h4",{class:"myQuaternaryHeader text-sm mb-2"},"Version Information",-1)),s.createElementVNode("div",T3,[s.createElementVNode("div",O3,[s.createElementVNode("table",V3,[c[1]||(c[1]=s.createElementVNode("thead",{class:"bg-gray-50"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Component "),s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Version ")])],-1)),s.createElementVNode("tbody",P3,[s.createElementVNode("tr",null,[c[0]||(c[0]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Page Builder")],-1)),s.createElementVNode("td",A3,[s.createElementVNode("div",D3,[s.createElementVNode("span",I3,s.toDisplayString(s.unref(e)),1)])])])])])])])]),(p=n.value)!=null&&p.resourceData&&!s.unref(po)(n.value.resourceData)?(s.openBlock(),s.createElementBlock("div",L3,[c[6]||(c[6]=s.createElementVNode("h4",{class:"myQuaternaryHeader text-sm mb-2"},"Resource Data",-1)),s.createElementVNode("div",R3,[s.createElementVNode("div",z3,[s.createElementVNode("table",_3,[c[5]||(c[5]=s.createElementVNode("thead",{class:"bg-gray-50"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Property "),s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Value ")])],-1)),s.createElementVNode("tbody",F3,[(m=(u=n.value)==null?void 0:u.resourceData)!=null&&m.title?(s.openBlock(),s.createElementBlock("tr",j3,[c[3]||(c[3]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Title")],-1)),s.createElementVNode("td",H3,[s.createElementVNode("div",W3,s.toDisplayString(n.value.resourceData.title),1)])])):s.createCommentVNode("",!0),(g=(h=n.value)==null?void 0:h.resourceData)!=null&&g.id?(s.openBlock(),s.createElementBlock("tr",q3,[c[4]||(c[4]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"ID")],-1)),s.createElementVNode("td",U3,[s.createElementVNode("div",K3,s.toDisplayString(n.value.resourceData.id),1)])])):s.createCommentVNode("",!0)])])])])])):s.createCommentVNode("",!0),(f=n.value)!=null&&f.userForPageBuilder&&!s.unref(po)(n.value.userForPageBuilder)?(s.openBlock(),s.createElementBlock("div",J3,[c[11]||(c[11]=s.createElementVNode("h4",{class:"myQuaternaryHeader text-sm mb-2"},"User Information",-1)),s.createElementVNode("div",G3,[s.createElementVNode("div",Y3,[s.createElementVNode("table",X3,[c[10]||(c[10]=s.createElementVNode("thead",{class:"bg-gray-50"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Property "),s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Value ")])],-1)),s.createElementVNode("tbody",Q3,[s.createElementVNode("tr",null,[c[7]||(c[7]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"User Name")],-1)),s.createElementVNode("td",Z3,[s.createElementVNode("div",$3,s.toDisplayString(n.value.userForPageBuilder.name),1)])]),s.createElementVNode("tr",null,[c[8]||(c[8]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Image")],-1)),n.value.userForPageBuilder.image&&typeof n.value.userForPageBuilder.image=="string"&&n.value.userForPageBuilder.image.length>2?(s.openBlock(),s.createElementBlock("td",ek,[s.createElementVNode("div",tk,[s.createElementVNode("div",rk,[s.createElementVNode("img",{class:"block inset-0 object-top h-10 min-h-10 max-h-10 w-10 min-w-10 max-w-10 object-cover rounded-full",src:n.value.userForPageBuilder.image,alt:"image"},null,8,ok)])])])):s.createCommentVNode("",!0)]),s.createElementVNode("tr",null,[c[9]||(c[9]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Image URL")],-1)),n.value.userForPageBuilder.image&&typeof n.value.userForPageBuilder.image=="string"&&n.value.userForPageBuilder.image.length>2?(s.openBlock(),s.createElementBlock("td",nk,[s.createElementVNode("div",ik,s.toDisplayString(n.value.userForPageBuilder.image),1)])):s.createCommentVNode("",!0)])])])])])])):s.createCommentVNode("",!0),(b=n.value)!=null&&b.userSettings&&!s.unref(po)(n.value.userSettings)?(s.openBlock(),s.createElementBlock("div",ak,[c[17]||(c[17]=s.createElementVNode("h4",{class:"myQuaternaryHeader text-sm mb-2"},"User Settings",-1)),s.createElementVNode("div",sk,[s.createElementVNode("div",lk,[s.createElementVNode("table",dk,[c[16]||(c[16]=s.createElementVNode("thead",{class:"bg-gray-50"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Setting "),s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Value ")])],-1)),s.createElementVNode("tbody",ck,[(k=(y=n.value)==null?void 0:y.userSettings)!=null&&k.theme?(s.openBlock(),s.createElementBlock("tr",pk,[c[12]||(c[12]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Theme")],-1)),s.createElementVNode("td",uk,[s.createElementVNode("div",mk,s.toDisplayString(n.value.userSettings.theme),1)])])):s.createCommentVNode("",!0),(w=(x=n.value)==null?void 0:x.userSettings)!=null&&w.language?(s.openBlock(),s.createElementBlock("tr",hk,[c[13]||(c[13]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Language")],-1)),s.createElementVNode("td",gk,[s.createElementVNode("div",fk,s.toDisplayString(n.value.userSettings.language),1)])])):s.createCommentVNode("",!0),((v=(S=n.value)==null?void 0:S.userSettings)==null?void 0:v.autoSave)!==void 0?(s.openBlock(),s.createElementBlock("tr",bk,[c[14]||(c[14]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Auto Save")],-1)),s.createElementVNode("td",wk,[s.createElementVNode("div",yk,[s.createElementVNode("span",{class:s.normalizeClass(["inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",n.value.userSettings.autoSave?"bg-green-100 text-green-800":"bg-red-100 text-red-800"])},s.toDisplayString(n.value.userSettings.autoSave?"Enabled":"Disabled"),3)])])])):s.createCommentVNode("",!0),((O=(C=n.value)==null?void 0:C.userSettings)==null?void 0:O.notifications)!==void 0?(s.openBlock(),s.createElementBlock("tr",xk,[c[15]||(c[15]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Notifications")],-1)),s.createElementVNode("td",vk,[s.createElementVNode("div",kk,[s.createElementVNode("span",{class:s.normalizeClass(["inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",n.value.userSettings.notifications?"bg-green-100 text-green-800":"bg-red-100 text-red-800"])},s.toDisplayString(n.value.userSettings.notifications?"Enabled":"Disabled"),3)])])])):s.createCommentVNode("",!0)])])])])])):s.createCommentVNode("",!0),n.value.pageBuilderLogo&&!s.unref(po)(n.value.pageBuilderLogo)?(s.openBlock(),s.createElementBlock("div",Ek,[c[21]||(c[21]=s.createElementVNode("h4",{class:"myQuaternaryHeader text-sm mb-2"},"Logo Configuration",-1)),s.createElementVNode("div",Sk,[s.createElementVNode("div",Ck,[s.createElementVNode("table",Nk,[c[20]||(c[20]=s.createElementVNode("thead",{class:"bg-gray-50"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Property "),s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Value ")])],-1)),s.createElementVNode("tbody",Bk,[s.createElementVNode("tr",null,[c[18]||(c[18]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Logo")],-1)),s.createElementVNode("td",Mk,[s.createElementVNode("div",Tk,[s.createElementVNode("div",Ok,[s.createElementVNode("img",{class:"h-4",src:n.value.pageBuilderLogo.src,alt:"Logo"},null,8,Vk)])])])]),s.createElementVNode("tr",null,[c[19]||(c[19]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Logo URL")],-1)),s.createElementVNode("td",Pk,[s.createElementVNode("div",Ak,[s.createElementVNode("div",Dk,[s.createElementVNode("div",Ik,[s.createElementVNode("div",Lk,[s.createElementVNode("span",Rk,s.toDisplayString(n.value.pageBuilderLogo.src),1)])])])])])])])])])])])):s.createCommentVNode("",!0),(D=n.value)!=null&&D.updateOrCreate&&!s.unref(po)(n.value.updateOrCreate)?(s.openBlock(),s.createElementBlock("div",zk,[c[25]||(c[25]=s.createElementVNode("h4",{class:"myQuaternaryHeader text-sm mb-2"},"Form Type",-1)),s.createElementVNode("div",_k,[s.createElementVNode("div",Fk,[s.createElementVNode("table",jk,[c[24]||(c[24]=s.createElementVNode("thead",{class:"bg-gray-50"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Mode "),s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Description ")])],-1)),s.createElementVNode("tbody",Hk,[s.createElementVNode("tr",null,[c[22]||(c[22]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Form Type")],-1)),s.createElementVNode("td",Wk,[s.createElementVNode("div",qk,[s.createElementVNode("span",{class:s.normalizeClass(["inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",n.value.updateOrCreate==="create"?"bg-green-100 text-green-800":"bg-blue-100 text-blue-800"])},[n.value&&n.value.updateOrCreate.formType==="create"?(s.openBlock(),s.createElementBlock("span",Uk,s.toDisplayString(n.value.updateOrCreate.formType),1)):s.createCommentVNode("",!0),n.value&&n.value.updateOrCreate.formType==="update"?(s.openBlock(),s.createElementBlock("span",Kk,s.toDisplayString(n.value.updateOrCreate.formType),1)):s.createCommentVNode("",!0)],2)])])]),n.value.updateOrCreate.formName&&n.value.updateOrCreate.formName.length>0?(s.openBlock(),s.createElementBlock("tr",Jk,[c[23]||(c[23]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Form Name")],-1)),s.createElementVNode("td",Gk,[s.createElementVNode("div",Yk,[s.createElementVNode("span",Xk,s.toDisplayString(n.value.updateOrCreate.formName),1)])])])):s.createCommentVNode("",!0)])])])])])):s.createCommentVNode("",!0)])])]),s.createElementVNode("div",{class:"mt-4 mb-4 py-8 border-b border-myPrimbryLightGrayColor"},[c[27]||(c[27]=s.createElementVNode("div",{class:"flex items-left flex-col gap-1"},[s.createElementVNode("h3",{class:"myQuaternaryHeader"},"Download Page as HTML"),s.createElementVNode("p",{class:"myPrimaryParagraph text-xs"},"Download current page layout.")],-1)),s.createElementVNode("div",{class:"mt-4"},[s.createElementVNode("button",{onClick:l,type:"button",class:"myPrimaryButton"}," Download HTML file ")])]),s.createElementVNode("div",Qk,[c[29]||(c[29]=s.createElementVNode("div",{class:"flex items-left flex-col gap-1"},[s.createElementVNode("h3",{class:"myQuaternaryHeader"},"Complete Configuration Overview"),s.createElementVNode("p",{class:"myPrimaryParagraph text-xs"}," omplete configuration object currently used by the Page Builder. It includes information about the user, form behavior, branding settings, and other context-specific data needed for rendering and managing the builder environment. ")],-1)),s.createElementVNode("div",Zk,[c[28]||(c[28]=s.createElementVNode("div",{class:"flex bg-gray-800/40 ring-1 ring-white/5"},[s.createElementVNode("div",{class:"-mb-px flex text-xs font-medium text-myPrimaryMediumGrayColor"},[s.createElementVNode("div",{class:"px-4 py-4 text-white"},"Configuration")])],-1)),s.createElementVNode("div",$k,[s.createElementVNode("p",e4," config: "+s.toDisplayString(JSON.stringify(n.value,null,4)),1)])])])])}}},r4={class:"w-full inset-x-0 h-[90vh] bg-white overflow-x-scroll lg:pt-2 pt-2"},o4={class:"flex items-left flex-col myPrimaryGap border-myPrimaryMediumGrayColor"},n4={class:"text-gray-100 overflow-hidden bg-stone-800"},i4={class:"px-4 pb-8 pt-4 text-gray-100 text-xs"},a4={class:"text-xs pb-2"},s4={class:"text-xs pb-2"},l4={class:"text-xs pb-2"},d4={class:"overflow-hidden bg-stone-800"},c4={class:"flex bg-stone-800 ring-1 ring-white/5"},p4={class:"-mb-px flex text-xs font-medium text-myPrimaryMediumGrayColor"},u4={class:"px-4 pb-8 pt-4 text-gray-100 text-xs break-all"},m4={key:0},h4={key:0},g4={class:"pb-2 text-xs"},f4={key:1,class:"overflow-hidden border border-gray-100 mb-6"},b4={class:"bg-stone-800 pt-4 pb-1 border-b border-gray-200"},w4={class:"overflow-x-auto"},y4={class:"min-w-full"},x4={class:"bg-stone-800 divide-y divide-gray-200"},v4={class:"px-6 py-3 text-left text-xs text-gray-100 font-normal border-b"},k4={class:"overflow-x-auto"},E4={class:"min-w-full"},S4={class:"bg-stone-800 divide-y divide-gray-200"},C4={class:"px-6 py-3 text-left text-xs text-gray-100 font-normal whitespace-pre-line"},N4={class:"overflow-x-auto"},B4={class:"min-w-full"},M4={class:"bg-stone-800 divide-y divide-gray-200"},T4={class:"px-6 py-3 text-left text-xs text-gray-100 font-normal"},O4={key:1},V4={key:0},P4={class:"pb-2 text-xs"},A4={key:1,class:"overflow-hidden border border-gray-100 mb-6"},D4={class:"bg-stone-800 pt-4 pb-1 border-b border-gray-200"},I4={class:"overflow-x-auto"},L4={class:"min-w-full"},R4={class:"bg-stone-800 divide-y divide-gray-200"},z4={class:"px-6 py-3 text-left text-xs text-gray-100 font-normal"},_4={class:"overflow-x-auto"},F4={class:"min-w-full"},j4={class:"bg-stone-800 divide-y divide-gray-200"},H4={class:"px-6 py-3 text-left text-xs text-gray-100 font-normal whitespace-pre-line"},W4={class:"overflow-x-auto"},q4={class:"min-w-full"},U4={class:"bg-stone-800 divide-y divide-gray-200"},K4={class:"px-6 py-3 text-left text-xs text-gray-100 font-normal"},J4={class:"text-xs text-gray-100 whitespace-pre-lines font-sans flex items-start justify-left"},G4=["innerHTML"],Y4={key:2},X4={class:"pb-2 text-xs"},Q4={key:0},Z4={class:"bg-stone-800 pt-4 pb-1 border-b border-gray-200"},$4={class:"overflow-x-auto"},e6={class:"min-w-full"},t6={class:"bg-stone-800 divide-y divide-gray-200"},r6={class:"px-6 py-3 text-left text-xs text-gray-100 font-normal"},o6={class:"overflow-x-auto"},n6={class:"min-w-full"},i6={class:"bg-stone-800 divide-y divide-gray-200"},a6={class:"px-6 py-3 text-left text-xs text-gray-100 font-normal whitespace-pre-line"},s6={class:"overflow-x-auto"},l6={class:"min-w-full"},d6={class:"bg-stone-800 divide-y divide-gray-200"},c6={class:"px-6 py-3 text-left text-xs text-gray-100 font-normal"},p6={class:"text-xs text-gray-100 whitespace-pre-lines font-sans flex items-start justify-left"},u6=["innerHTML"],m6={__name:"AdvancedPageBuilderSettings",setup(r){const e=se,t=s.computed(()=>e.getElement),o=s.computed(()=>e.getComponent),n=s.computed(()=>e.getComponents),i=s.ref("element"),a=function(d){i.value=d};function l(d){return d?d.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"):""}return(d,c)=>{var p,u,m,h,g,f,b,y,k,x;return s.openBlock(),s.createElementBlock("div",r4,[s.createElementVNode("div",o4,[c[22]||(c[22]=s.createElementVNode("p",{class:"myPrimaryParagraph"}," Overview of Selected Element, Component, and Components. This section provides real-time updates based on your HTML selection. ",-1)),s.createElementVNode("div",null,[c[7]||(c[7]=s.createElementVNode("h4",{class:"myPrimaryParagraph text-xs pb-2"},"Types",-1)),s.createElementVNode("div",n4,[c[6]||(c[6]=s.createElementVNode("div",{class:"flex bg-stone-800 ring-1 ring-white/5"},[s.createElementVNode("div",{class:"-mb-px flex text-xs font-medium text-myPrimaryMediumGrayColor"},[s.createElementVNode("div",{class:"px-4 py-4 text-gray-100"},"Types")])],-1)),s.createElementVNode("div",i4,[s.createElementVNode("p",a4,[c[3]||(c[3]=s.createElementVNode("span",null,"Element type: ",-1)),s.createElementVNode("span",null,s.toDisplayString(typeof t.value),1)]),s.createElementVNode("p",s4,[c[4]||(c[4]=s.createElementVNode("span",null,"Component type: ",-1)),s.createTextVNode(" "+s.toDisplayString(typeof o.value),1)]),s.createElementVNode("p",l4,[c[5]||(c[5]=s.createElementVNode("span",null,"Components: ",-1)),s.createElementVNode("span",null,s.toDisplayString(Array.isArray(n.value)===!0?"array":typeof n.value),1)])])])]),s.createElementVNode("div",null,[c[21]||(c[21]=s.createElementVNode("h4",{class:"myPrimaryParagraph text-xs pb-2"},"Content",-1)),s.createElementVNode("div",d4,[s.createElementVNode("div",c4,[s.createElementVNode("div",p4,[s.createElementVNode("div",{onClick:c[0]||(c[0]=w=>a("element")),class:s.normalizeClass(["px-4 py-4 cursor-pointer",[i.value==="element"?"text-gray-100":""]])}," Element ",2),s.createElementVNode("div",{onClick:c[1]||(c[1]=w=>a("component")),class:s.normalizeClass(["px-4 py-4 cursor-pointer",[i.value==="component"?"text-gray-100":""]])}," Component ",2),s.createElementVNode("div",{onClick:c[2]||(c[2]=w=>a("components")),class:s.normalizeClass(["px-4 py-4 cursor-pointer",[i.value==="components"?"text-gray-100":""]])}," Components "+s.toDisplayString(Array.isArray(n.value)&&n.value.length),3)])]),s.createElementVNode("div",u4,[i.value==="element"?(s.openBlock(),s.createElementBlock("div",m4,[o.value?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",h4,[s.createElementVNode("p",g4,s.toDisplayString(o.value===null?"No Element selected":typeof o.value),1)])),t.value?(s.openBlock(),s.createElementBlock("div",f4,[s.createElementVNode("div",b4,[s.createElementVNode("div",w4,[s.createElementVNode("table",y4,[c[8]||(c[8]=s.createElementVNode("thead",{class:"bg-stone-800"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{class:"px-6 py-3 text-left text-xs text-gray-100 font-normal"}," Selected HTML: ")])],-1)),s.createElementVNode("tbody",x4,[s.createElementVNode("tr",null,[s.createElementVNode("td",v4,s.toDisplayString((p=t.value)==null?void 0:p.outerHTML),1)])])])]),s.createElementVNode("div",k4,[s.createElementVNode("table",E4,[c[9]||(c[9]=s.createElementVNode("thead",{class:"bg-stone-800"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{class:"px-6 py-3 text-left text-xs text-gray-100 font-normal"}," Element src: ")])],-1)),s.createElementVNode("tbody",S4,[s.createElementVNode("tr",null,[s.createElementVNode("td",C4,s.toDisplayString((u=t.value)!=null&&u.src?(m=t.value)==null?void 0:m.src:typeof((h=t.value)==null?void 0:h.src)),1)])])])])]),s.createElementVNode("div",N4,[s.createElementVNode("table",B4,[c[10]||(c[10]=s.createElementVNode("thead",{class:"bg-stone-800"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{class:"px-6 py-3 text-left text-xs text-gray-100 font-normal"}," Element classes: ")])],-1)),s.createElementVNode("tbody",M4,[s.createElementVNode("tr",null,[s.createElementVNode("td",T4,s.toDisplayString((g=t.value)!=null&&g.classList?(f=t.value)==null?void 0:f.classList:typeof((b=t.value)==null?void 0:b.classList)),1)])])])])])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),i.value==="component"?(s.openBlock(),s.createElementBlock("div",O4,[o.value?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",V4,[s.createElementVNode("p",P4,s.toDisplayString(o.value===null?"No Component selected":typeof o.value),1)])),o.value?(s.openBlock(),s.createElementBlock("div",A4,[s.createElementVNode("div",D4,[s.createElementVNode("div",I4,[s.createElementVNode("table",L4,[c[11]||(c[11]=s.createElementVNode("thead",{class:"bg-stone-800"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{class:"px-6 py-3 text-left text-xs text-gray-100 font-normal"},"ID:")])],-1)),s.createElementVNode("tbody",R4,[s.createElementVNode("tr",null,[s.createElementVNode("td",z4,s.toDisplayString((y=o.value)==null?void 0:y.id),1)])])])]),s.createElementVNode("div",_4,[s.createElementVNode("table",F4,[c[12]||(c[12]=s.createElementVNode("thead",{class:"bg-stone-800"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{class:"px-6 py-3 text-left text-xs text-gray-100 font-normal border-t"}," Title: ")])],-1)),s.createElementVNode("tbody",j4,[s.createElementVNode("tr",null,[s.createElementVNode("td",H4,s.toDisplayString((k=o.value)==null?void 0:k.title),1)])])])])]),s.createElementVNode("div",W4,[s.createElementVNode("table",q4,[c[15]||(c[15]=s.createElementVNode("thead",{class:"bg-stone-800"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{class:"px-6 py-3 text-left text-xs text-gray-100 font-normal"}," HTML Code: ")])],-1)),s.createElementVNode("tbody",U4,[s.createElementVNode("tr",null,[s.createElementVNode("td",K4,[s.createElementVNode("pre",J4,[c[13]||(c[13]=s.createTextVNode(" ")),s.createElementVNode("code",{class:"font-sans",innerHTML:l((x=o.value)==null?void 0:x.html_code)},null,8,G4),c[14]||(c[14]=s.createTextVNode(`
|
|
545
|
-
`))])])])])])])])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),i.value==="components"?(s.openBlock(),s.createElementBlock("div",Y4,[s.createElementVNode("div",null,[s.createElementVNode("p",X4,s.toDisplayString(Array.isArray(n.value)&&n.value.length===0?"No Components added yet":""),1)]),n.value?(s.openBlock(),s.createElementBlock("div",Q4,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value,w=>(s.openBlock(),s.createElementBlock("div",{key:w.id,class:"overflow-hidden border border-gray-100 mb-6"},[s.createElementVNode("div",Z4,[s.createElementVNode("div",$4,[s.createElementVNode("table",
|
|
546
|
-
`))])])])])])])]))),128))])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)])])])])])}}},h6={class:"flex gap-2 items-center myPrimaryParagraph font-medium text-xs py-1 px-2 rounded-full lg:border lg:border-gray-200 lg:shadow-sm lg:mr-10"},g6={key:0,class:"flex items-center myPrimaryTag py-0"},f6={class:"text-white rounded-full bg-myPrimaryBrandColor flex justify-center items-center text-xs h-8 min-h-8 max-h-8 w-8 min-w-8 max-w-8 font-normal"},b6={class:"hidden text-xs h-8 lg:flex items-center font-normal"},w6={key:1,class:"flex items-center lg:myPrimaryTag py-0 gap-4 w-max"},y6={class:"text-white flex-shrink-0 h-8 w-8 rounded-full flex justify-center items-center text-xs rounded-l-full"},x6=["src"],v6={class:"hidden text-xs h-8 lg:flex items-center font-normal"},k6={class:"relative group"},E6={class:"absolute left-0 -ml-16 -mt-2 flex flex-col gap-3 shadow-lg bg-white w-max border border-gray-100 rounded-2xl transition-all duration-200 ease-out pt-4 pr-4 pb-4 pl-2 z-30 opacity-0 pointer-events-none -translate-y-2 group-hover:opacity-100 group-hover:pointer-events-auto group-hover:translate-y-0"},S6={__name:"ToolbarOption",setup(r){const e=se,t=s.computed(()=>e.getConfigPageBuilder),o=new ce(e),n=s.ref(!1),i=s.ref(""),a=s.ref(1),l=s.ref(""),d=s.ref(""),c=s.ref(""),p=s.ref(null),u=s.ref(null),m=s.ref(null),h=s.ref(null),g=s.ref(null),f=function(){n.value=!0,i.value="delete",a.value=2,l.value="Remove all Components",d.value="Are you sure you want to remove all Components?",c.value="Close",p.value=null,u.value="Delete",m.value=function(){n.value=!1},g.value=async function(){o.deleteAllComponents(),await o.clearHtmlSelection(),t.value.updateOrCreate&&typeof t.value.updateOrCreate.formType=="string"&&(t.value.updateOrCreate.formType==="create"&&await o.removeItemComponentsLocalStorage(),t.value.updateOrCreate.formType==="update"&&await o.removeItemComponentsLocalStorage()),n.value=!1}},b=s.ref(!1),y=function(){b.value=!1},k=function(){b.value=!0},x=s.ref(!1),w=function(){x.value=!1},S=function(){x.value=!0};return(v,C)=>{var O;return s.openBlock(),s.createElementBlock("div",null,[s.createElementVNode("div",h6,[t.value&&t.value.userForPageBuilder&&t.value.userForPageBuilder.name&&(!t.value.userForPageBuilder.image||typeof t.value.userForPageBuilder.image=="string"&&((O=t.value.userForPageBuilder.image)==null?void 0:O.length)<2)?(s.openBlock(),s.createElementBlock("div",g6,[s.createElementVNode("div",f6,s.toDisplayString(typeof t.value.userForPageBuilder.name=="string"&&t.value.userForPageBuilder.name[0]),1),s.createElementVNode("div",b6,s.toDisplayString(t.value.userForPageBuilder.name),1)])):s.createCommentVNode("",!0),t.value&&t.value.userForPageBuilder&&t.value.userForPageBuilder.name&&t.value.userForPageBuilder.image&&typeof t.value.userForPageBuilder.image=="string"&&t.value.userForPageBuilder.image.length>2?(s.openBlock(),s.createElementBlock("div",w6,[s.createElementVNode("div",y6,[s.createElementVNode("img",{alt:"avatar",src:`${t.value.userForPageBuilder.image}`,class:"block inset-0 object-top h-8 min-h-8 max-h-8 w-8 min-w-8 max-w-8 object-cover rounded-full"},null,8,x6)]),s.createElementVNode("div",v6,s.toDisplayString(t.value.userForPageBuilder.name),1)])):s.createCommentVNode("",!0),s.createElementVNode("div",null,[s.createElementVNode("div",k6,[C[2]||(C[2]=s.createElementVNode("button",{type:"button",class:"cursor-pointer lg:flex myPrimaryTag font-normal w-max text-xs"},[s.createElementVNode("span",null," Options ")],-1)),s.createElementVNode("div",E6,[s.createElementVNode("button",{onClick:C[0]||(C[0]=()=>{s.unref(o).clearHtmlSelection(),k()}),class:"cursor-pointer lg:flex myPrimaryTag font-normal w-max border-none m-0",type:"button"}," Config Overview "),s.createElementVNode("button",{onClick:S,class:"cursor-pointer lg:flex myPrimaryTag font-normal w-max border-none m-0",type:"button"}," HTML Overview "),s.createElementVNode("button",{onClick:C[1]||(C[1]=()=>{s.unref(o).clearHtmlSelection(),f()}),class:"cursor-pointer lg:flex myPrimaryTag font-normal w-max border-none m-0 bg-myPrimaryErrorColor text-white",type:"button"}," Delete Layout ")])])])]),s.createVNode(Dr,{maxWidth:"5xl",showModalBuilder:b.value,title:"Main Settings",onCloseMainModalBuilder:y,minHeight:"",maxHeight:""},{default:s.withCtx(()=>[s.createVNode(t4)]),_:1},8,["showModalBuilder"]),s.createVNode(Dr,{maxWidth:"5xl",showModalBuilder:x.value,title:"Selected HTML",onCloseMainModalBuilder:w,minHeight:"",maxHeight:""},{default:s.withCtx(()=>[s.createVNode(m6)]),_:1},8,["showModalBuilder"]),s.createVNode(zr,{showDynamicModalBuilder:n.value,type:i.value,gridColumnAmount:a.value,title:l.value,description:d.value,firstButtonText:c.value,secondButtonText:p.value,thirdButtonText:u.value,onFirstModalButtonFunctionDynamicModalBuilder:m.value,onSecondModalButtonFunctionDynamicModalBuilder:h.value,onThirdModalButtonFunctionDynamicModalBuilder:g.value},{default:s.withCtx(()=>C[3]||(C[3]=[s.createElementVNode("header",null,null,-1),s.createElementVNode("main",null,null,-1)])),_:1,__:[3]},8,["showDynamicModalBuilder","type","gridColumnAmount","title","description","firstButtonText","secondButtonText","thirdButtonText","onFirstModalButtonFunctionDynamicModalBuilder","onSecondModalButtonFunctionDynamicModalBuilder","onThirdModalButtonFunctionDynamicModalBuilder"])])}}};let Vl=null;function C6(){return(r,e=300)=>{Vl&&clearTimeout(Vl),Vl=setTimeout(r,e)}}const N6={id:"builder-container",class:"font-sans max-w-full m-1 border border-gray-600 inset-x-0 z-10 bg-white overflow-x-scroll"},B6={id:"pagebuilder-top-area",class:"lg:px-4 pt-2 pb-4 mx-4 mb-4 mt-2"},M6={key:0,class:"flex items-center divide-x divide-gray-200"},T6={id:"pagebuilder-logo-main",class:"pr-4"},O6=["src"],V6={key:1},P6={class:"relative h-full flex pb-2 gap-2"},A6={class:"mx-2 flex flex-col myPrimaryGap items-stretch"},D6={class:"flex gap-2 items-center justify-center"},I6={id:"pagebuilder-toolbar-area",class:"flex items-center justify-between rounded-t-2xl bg-myPrimaryLightGrayColor min-w-[30rem]"},L6=["disabled"],R6={key:0,class:"h-10 w-4 cursor-pointer rounded-full flex items-center justify-center"},z6={key:1,class:"h-10 w-4 cursor-pointer rounded-full flex items-center justify-center"},_6={class:"flex items-center justify-center gap-4"},F6={id:"contains-pagebuilder",class:"pl-4 pr-4 pb-4 overflow-y-auto pt-1 h-[39rem]"},j6={id:"pagebuilder"},H6=["onMouseup"],W6=["innerHTML"],q6={class:"mt-6 flex items-center gap-2 justify-center"},U6={__name:"PageBuilder",props:{CustomMediaLibraryComponent:{type:Object,default:null},CustomBuilderComponents:{type:Object,default:null}},setup(r){const e=r,t=Na,o=se,n=new ce(o);s.provide("pageBuilderStateStore",o),s.provide("internalPinia",t),s.provide("CustomMediaComponent",e.CustomMediaLibraryComponent),s.provide("CustomBuilderComponents",e.CustomBuilderComponents);const i=()=>{h.value=!1};s.provide("closeAddComponentModal",i);const a=s.computed(()=>o.getConfigPageBuilder),l=s.computed(()=>o.getIsSaving),d=s.computed(()=>o.getMenuRight),c=function(){n.previewCurrentDesign()},p=s.ref(!1),u=function(){c(),p.value=!0},m=function(){p.value=!1},h=s.ref(!1),g=s.ref(""),f=s.ref(""),b=s.ref(null),y=async function(){await n.clearHtmlSelection(),g.value="Add Components to Page",f.value="Close",h.value=!0,b.value=function(){h.value=!1}},k=s.computed(()=>o.getComponents),x=s.computed(()=>o.getElement),w=s.computed(()=>!x.value||!(x.value instanceof HTMLElement)?"":{src:x.value.getAttribute("src"),href:x.value.getAttribute("href"),style:x.value.getAttribute("style"),class:x.value.getAttribute("class"),dataImage:x.value.getAttribute("data-image")}),S=C6();s.watch(w,async(H,V)=>{((H==null?void 0:H.src)!==(V==null?void 0:V.src)||(H==null?void 0:H.href)!==(V==null?void 0:V.href)||(H==null?void 0:H.style)!==(V==null?void 0:V.style)||(H==null?void 0:H.class)!==(V==null?void 0:V.class)||(H==null?void 0:H.dataImage)!==(V==null?void 0:V.dataImage))&&S(async()=>{await n.handleAutoSave(),await n.initializeElementStyles()},200)});const v=function(H){o.setComponent(H)},C=s.ref(null),O={updateOrCreate:{formType:"create",formName:"post"}},D=function(H){if(H==null||H&&Object.keys(H).length===0&&H.constructor===Object){n.applyPageBuilderConfig(O);return}H&&Object.keys(H).length!==0&&H.constructor===Object&&v3(H)};s.watch(()=>a.value,H=>{n.updateLocalStorageItemName(),H&&H.updateOrCreate&&H.updateOrCreate.formType==="create"&&n.mountComponentsToDOM()},{immediate:!0});const B=s.ref(1),E=s.ref(""),P=s.ref(!1),_=s.ref(""),ee=s.ref(""),re=s.ref(""),J=s.ref(null),z=s.ref(null),X=s.ref(null),ne=s.ref(null),Je=s.ref(null),pt=s.ref(null),nt=async function(){await n.clearHtmlSelection(),E.value="default",_.value="Continue Your Work?",ee.value="We noticed you have some changes that weren’t saved last time. Would you like to pick up where you left off, or use the version that’s currently saved?",re.value="Use Saved Version",J.value=null,z.value="Continue Where I Left Off",P.value=!0,X.value=function(){P.value=!1},ne.value=function(){},Je.value=async function(){pt.value=!0,await wa(600),await n.resumeEditingForUpdate(),pt.value=!1,P.value=!1}};return s.onMounted(async()=>{const H=a.value;D(H),n.updateLocalStorageItemName(),n.deleteOldPageBuilderLocalStorage(),await n.clearHtmlSelection(),await n.addListenersToEditableElements(),await n.hasLocalDraftForUpdate()&&nt()}),(H,V)=>(s.openBlock(),s.createElementBlock("div",N6,[s.createElementVNode("div",B6,[s.createElementVNode("div",{onClick:V[1]||(V[1]=s.withModifiers(oe=>s.unref(n).clearHtmlSelection(),["self"])),class:"flex justify-between items-center pb-2 border-b border-gray-200"},[s.createElementVNode("div",{onClick:V[0]||(V[0]=oe=>s.unref(n).clearHtmlSelection())},[a.value&&a.value.pageBuilderLogo&&a.value.pageBuilderLogo.src?(s.openBlock(),s.createElementBlock("div",M6,[s.createElementVNode("div",T6,[s.createElementVNode("img",{class:"h-6",src:a.value.pageBuilderLogo.src,alt:"Logo"},null,8,O6)]),V[17]||(V[17]=s.createElementVNode("span",{class:"myPrimaryParagraph font-medium pl-4"},"Editing Page ",-1))])):(s.openBlock(),s.createElementBlock("div",V6,V[18]||(V[18]=[s.createElementVNode("div",{class:"pr-6"},[s.createElementVNode("span",{class:"myPrimaryParagraph font-medium"},"Editing Page ")],-1)])))]),s.createElementVNode("div",null,[s.createVNode(S6)])])]),h.value?(s.openBlock(),s.createBlock(G2,{key:0,show:h.value,firstButtonText:f.value,title:g.value,CustomBuilderComponents:e.CustomBuilderComponents,onFirstModalButtonSearchComponentsFunction:b.value},null,8,["show","firstButtonText","title","CustomBuilderComponents","onFirstModalButtonSearchComponentsFunction"])):s.createCommentVNode("",!0),s.createVNode(Dr,{title:"Preview",showModalBuilder:p.value,onCloseMainModalBuilder:m,maxWidth:"screen"},{default:s.withCtx(()=>[s.createVNode(ld)]),_:1},8,["showModalBuilder"]),s.createVNode(zr,{showDynamicModalBuilder:P.value,isLoading:pt.value,type:E.value,gridColumnAmount:B.value,title:_.value,description:ee.value,firstButtonText:re.value,secondButtonText:J.value,thirdButtonText:z.value,onFirstModalButtonFunctionDynamicModalBuilder:X.value,onSecondModalButtonFunctionDynamicModalBuilder:ne.value,onThirdModalButtonFunctionDynamicModalBuilder:Je.value},{default:s.withCtx(()=>V[19]||(V[19]=[s.createElementVNode("header",null,null,-1),s.createElementVNode("main",null,null,-1)])),_:1,__:[19]},8,["showDynamicModalBuilder","isLoading","type","gridColumnAmount","title","description","firstButtonText","secondButtonText","thirdButtonText","onFirstModalButtonFunctionDynamicModalBuilder","onSecondModalButtonFunctionDynamicModalBuilder","onThirdModalButtonFunctionDynamicModalBuilder"]),s.createElementVNode("div",null,[s.createElementVNode("div",P6,[s.createElementVNode("div",{onClick:V[4]||(V[4]=s.withModifiers(oe=>s.unref(n).clearHtmlSelection(),["self"])),id:"pagebuilder-left-area",class:"min-w-[3.5rem] pt-6 pb-2 ml-2 bg-myPrimaryLightGrayColor rounded-full shadow-sm"},[s.createElementVNode("div",A6,[s.createElementVNode("div",D6,[s.createElementVNode("button",{type:"button",onClick:V[2]||(V[2]=()=>{s.unref(o).setComponentArrayAddMethod("unshift"),y()}),class:"h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0"},V[20]||(V[20]=[s.createElementVNode("span",{class:"myMediumIcon material-symbols-outlined"}," interests ",-1)]))]),s.createElementVNode("div",{onClick:V[3]||(V[3]=s.withModifiers(oe=>s.unref(n).clearHtmlSelection(),["self"]))},[x.value?(s.openBlock(),s.createBlock(tg,{key:0})):s.createCommentVNode("",!0)])])]),s.createElementVNode("main",{class:s.normalizeClass(["flex flex-col h-full grow rounded-tr-2xl rounded-tl-2xl border border-gray-200 items-stretch",{"mr-2":!d.value,"":d.value}])},[s.createElementVNode("div",I6,[s.createElementVNode("div",{onClick:V[6]||(V[6]=s.withModifiers(oe=>s.unref(n).clearHtmlSelection(),["self"])),class:"flex myPrimaryGap items-center pt-4 pb-2 pl-2 h-24 w-full min-w-36"},[s.createElementVNode("button",{class:"mySecondaryButton h-6 flex gap-2",onClick:V[5]||(V[5]=s.withModifiers(async()=>{await s.unref(n).clearHtmlSelection(),await s.unref(n).handleManualSave()},["stop"])),type:"button",disabled:l.value},[l.value?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",R6,V[21]||(V[21]=[s.createElementVNode("span",{class:"material-symbols-outlined"},"save",-1)]))),l.value?(s.openBlock(),s.createElementBlock("div",z6,V[22]||(V[22]=[s.createElementVNode("span",{class:"relative flex size-3"},[s.createElementVNode("span",{class:"absolute inline-flex h-full w-full animate-ping rounded-full bg-gray-400 opacity-75"}),s.createElementVNode("span",{class:"relative inline-flex size-3 rounded-full bg-green-200"})],-1)]))):s.createCommentVNode("",!0),V[23]||(V[23]=s.createElementVNode("div",null,"Save",-1))],8,L6)]),s.createElementVNode("div",{onClick:V[10]||(V[10]=s.withModifiers(oe=>s.unref(n).clearHtmlSelection(),["self"])),class:"flex justify-end py-2 pr-2 h-24 w-full"},[s.createElementVNode("div",{onClick:V[9]||(V[9]=s.withModifiers(oe=>s.unref(n).clearHtmlSelection(),["self"])),class:"flex items-center justify-center gap-4"},[s.createElementVNode("button",{type:"button",onClick:V[7]||(V[7]=()=>{s.unref(o).setComponentArrayAddMethod("unshift"),y()})},V[24]||(V[24]=[s.createStaticVNode('<div class="flex items-center justify-center gap-2"><span class="lg:block hidden"><div class="whitespace-nowrap">Add new Components</div></span><span class="h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0"><span class="myMediumIcon material-symbols-outlined"> interests </span></span></div>',1)])),s.createElementVNode("div",_6,[s.createElementVNode("button",{type:"button",onClick:V[8]||(V[8]=()=>{s.unref(o).setMenuRight(!1),s.unref(o).setElement(null),s.unref(n).clearHtmlSelection(),u()})},V[25]||(V[25]=[s.createElementVNode("div",{class:"flex items-center justify-center gap-2"},[s.createElementVNode("div",{class:"whitespace-nowrap lg:block hidden"},"Preview"),s.createElementVNode("span",{class:"h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0"},[s.createElementVNode("span",{class:"myMediumIcon material-symbols-outlined"}," visibility ")])],-1)]))])])]),s.createElementVNode("div",{onClick:V[13]||(V[13]=s.withModifiers(oe=>s.unref(n).clearHtmlSelection(),["self"])),class:"flex justify-end py-2 pr-2 w-full h-24"},[s.createElementVNode("div",{onClick:V[12]||(V[12]=s.withModifiers(oe=>s.unref(n).clearHtmlSelection(),["self"])),class:"flex items-center justify-center gap-4"},[d.value===!1?(s.openBlock(),s.createElementBlock("button",{key:0,type:"button",onClick:V[11]||(V[11]=oe=>s.unref(o).setMenuRight(!0))},V[26]||(V[26]=[s.createElementVNode("div",{class:"flex items-center justify-center gap-2"},[s.createElementVNode("span",{class:"lg:block hidden"}," Styling "),s.createElementVNode("span",{class:"h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0"},[s.createElementVNode("span",{class:"myMediumIcon material-symbols-outlined"}," more_vert ")])],-1)]))):s.createCommentVNode("",!0)])])]),s.createVNode(C2),s.createElementVNode("div",F6,[s.createElementVNode("div",j6,[s.createElementVNode("div",{ref_key:"draggableZone",ref:C},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(k.value,oe=>(s.openBlock(),s.createElementBlock("div",{key:oe.id,id:"page-builder-editor-editable-area",class:"bg-white grow"},[s.createElementVNode("div",{onMouseup:Et=>v(oe),class:"relative group"},[s.createElementVNode("div",{innerHTML:oe.html_code},null,8,W6)],40,H6)]))),128))],512),s.createElementVNode("div",{onClick:V[15]||(V[15]=oe=>s.unref(n).clearHtmlSelection()),id:"pagebuilder-bottom-components-area",class:s.normalizeClass(["pt-8 pb-12 text-center focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 my-2 mx-4",{"border-t border-gray-200":k.value.length>0}])},[V[28]||(V[28]=s.createElementVNode("div",{class:"flex items-center justify-center gap-2 font-medium"},[s.createElementVNode("span",{class:"lg:block hidden"},[s.createElementVNode("div",null,"Add new components to the bottom of the page")])],-1)),s.createElementVNode("div",q6,[s.createElementVNode("button",{onClick:V[14]||(V[14]=()=>{s.unref(o).setComponentArrayAddMethod("push"),y()}),type:"button",class:"myPrimaryButton flex items-center gap-2 justify-center"},V[27]||(V[27]=[s.createElementVNode("span",{class:"myMediumIcon material-symbols-outlined"}," interests ",-1),s.createElementVNode("span",{class:"font-medium"}," Add new Components ",-1)]))])],2)])])],2),s.createElementVNode("aside",{"aria-label":"Menu",id:"pagebuilder-right-area",class:s.normalizeClass([{"w-0":!d.value,"w-80 mr-2 bg-myPrimaryLightGrayColor items-stretch":d.value},"duration-300 z-20 flex-shrink-0 overflow-hidden shadow-sm rounded-l-2xl"])},[s.createVNode(y3,{onCloseEditor:V[16]||(V[16]=oe=>s.unref(o).setMenuRight(!1))})],2)])])]))}};G.PageBuilder=U6,G.PageBuilderClass=ce,G.Preview=ld,G.createPinia=ed,G.sharedPageBuilderPinia=Na,G.sharedPageBuilderStore=se,G.usePageBuilderModal=Pm,G.usePageBuilderStateStore=sd,Object.defineProperty(G,Symbol.toStringTag,{value:"Module"})});
|
|
544
|
+
</section>`,cover_image:null}]}}];function Pm(){const r=s.inject("closeAddComponentModal",null),e=s.inject("closeMediaLibraryModal",null);return{closeAddComponentModal:r||(()=>{console.warn("closeAddComponentModal function not available. Make sure you are using this within a PageBuilder context.")}),closeMediaLibraryModal:e||(()=>{console.warn("closeMediaLibraryModal function not available. Make sure you are using this within a MediaLibraryModal context.")})}}const O2={class:"mb-8"},V2={class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4"},P2=["onClick"],A2={class:"max-h-72 cursor-pointer object-contain bg-white mx-auto"},D2={class:"myPrimaryParagraph text-base font-medium"},I2={class:"myPrimaryParagraph text-xs font-normal pt-2"},L2={class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4"},R2=["onClick"],z2={class:"overflow-hidden whitespace-pre-line flex-1 h-auto border-b border-gray-200 lg:py-10 py-8 px-2"},_2=["innerHTML"],F2={class:"p-3"},j2={class:"myPrimaryParagraph text-sm font-normal"},H2=Cl(s.defineComponent({__name:"DefaultBuilderComponents",setup(r){const{closeAddComponentModal:e}=Pm(),t=se,o=new de(t),n=async function(l){await o.addComponent(l),e()},i=function(l){return{id:null,html_code:l.html_code,title:l.title}},a=l=>M2(l);return(l,c)=>(s.openBlock(),s.createElementBlock("div",null,[s.createElementVNode("div",O2,[c[0]||(c[0]=s.createElementVNode("h3",{class:"myQuaternaryHeader mb-4"},"Helper Components",-1)),s.createElementVNode("div",V2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(N2),d=>(s.openBlock(),s.createElementBlock("div",{key:d.title,class:"border border-gray-200 overflow-hidden hover:border-myPrimaryLinkColor duration-100 cursor-pointer p-4",onClick:u=>n(d)},[s.createElementVNode("div",A2,[s.createCommentVNode("",!0),s.createElementVNode("h4",D2,s.toDisplayString(d.title),1)]),s.createElementVNode("div",I2," Click to add "+s.toDisplayString(d.title.toLowerCase())+" component ",1)],8,P2))),128))])]),s.createElementVNode("div",null,[c[2]||(c[2]=s.createElementVNode("h3",{class:"myQuaternaryHeader mb-4"},"Layout Components",-1)),s.createElementVNode("div",L2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(T2)[0].components.data,d=>(s.openBlock(),s.createElementBlock("div",{key:d.title,class:"border border-gray-200 overflow-hidden hover:border-myPrimaryLinkColor duration-100 cursor-pointer",onClick:u=>n(i(d))},[s.createElementVNode("div",z2,[s.createElementVNode("div",{class:"max-h-72 cursor-pointer bg-white mx-auto flex items-center justify-center",innerHTML:a(d.title)},null,8,_2)]),s.createElementVNode("div",F2,[s.createElementVNode("h4",j2,s.toDisplayString(d.title),1),c[1]||(c[1]=s.createElementVNode("div",{class:"myPrimaryParagraph text-xs font-normal pt-2"},"Click to add component",-1))])],8,R2))),128))])])]))}}),[["__scopeId","data-v-f343d494"]]),W2={class:"w-full inset-x-0 bg-white overflow-x-scroll lg:pt-2 pt-2"},q2={key:0},U2={key:1,class:"h-[75vh]"},K2={class:"py-4 flex sm:justify-end justify-center border-t border-gray-200 mt-4"},J2={class:"sm:w-3/6 w-full px-2 my-2 flex gap-2 justify-end"},G2={__name:"BuilderComponents",props:{firstButtonText:{required:!0},title:{required:!0},show:{type:Boolean,default:!1,required:!0},CustomBuilderComponents:{type:Object,default:null}},emits:["firstModalButtonSearchComponentsFunction"],setup(r,{emit:e}){const t=e,o=function(){t("firstModalButtonSearchComponentsFunction")};return(n,i)=>(s.openBlock(),s.createBlock(Dr,{title:r.title,maxWidth:"7xl",showModalBuilder:r.show,onCloseMainModalBuilder:o,minHeight:"",maxHeight:""},{default:s.withCtx(()=>[s.createElementVNode("div",W2,[s.createElementVNode("div",null,[r.CustomBuilderComponents?(s.openBlock(),s.createElementBlock("div",q2,[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(r.CustomBuilderComponents)))])):(s.openBlock(),s.createElementBlock("div",U2,[s.createVNode(H2)]))])]),s.createElementVNode("div",K2,[s.createElementVNode("div",J2,[r.firstButtonText?(s.openBlock(),s.createElementBlock("button",{key:0,ref:"firstButtonRef",class:"mySecondaryButton",type:"button",onClick:o},s.toDisplayString(r.firstButtonText),513)):s.createCommentVNode("",!0)])])]),_:1},8,["title","showModalBuilder"]))}},Y2={setup(){return{expanded:s.ref(!1)}}},X2={class:"myPrimaryParagraph font-medium my-0 py-0"},Q2={key:0,class:"material-symbols-outlined"},Z2={key:1,class:"material-symbols-outlined"};function $2(r,e,t,o,n,i){return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["flex flex-col border border-gray-400",{"pb-8":o.expanded}])},[s.createElementVNode("div",{class:"flex flex-row justify-between items-center pl-3 pr-3 py-5 cursor-pointer duration-200 hover:bg-myPrimaryLightGrayColor border-b border-gray-200",onClick:e[0]||(e[0]=a=>o.expanded=!o.expanded)},[s.createElementVNode("p",X2,[s.renderSlot(r.$slots,"title")]),o.expanded?(s.openBlock(),s.createElementBlock("span",Q2," keyboard_arrow_down ")):s.createCommentVNode("",!0),o.expanded?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("span",Z2," chevron_right "))]),s.createElementVNode("div",{class:s.normalizeClass([[o.expanded?"block":"hidden"],"px-4 ease-linear duration-75"])},[s.renderSlot(r.$slots,"content")],2)],2)}const co=Cl(Y2,[["render",$2]]),e5={class:"flex flex-row flex-wrap gap-2 mt-2 mb-4"},t5=["onClick"],r5={class:"flex items-center gap-1"},o5={class:"mr-1"},n5={class:"flex gap-2 item-center flex-col"},i5={class:"flex gap-2 item-center"},a5={class:"mt-1 relative flex items-center w-full border myPrimaryInput py-0 p-0"},s5={__name:"ClassEditor",setup(r){const e=se,t=new de(e),o=s.ref(null),n=s.computed(()=>e.getCurrentClasses);s.watch(n,l=>{o.value=l},{immediate:!0});const i=s.ref(""),a=async function(){t.handleAddClasses(i.value),await t.initializeElementStyles(),i.value=""};return(l,c)=>(s.openBlock(),s.createBlock(co,null,{title:s.withCtx(()=>c[2]||(c[2]=[s.createTextVNode("Generated CSS")])),content:s.withCtx(()=>[s.createElementVNode("div",e5,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.value,d=>(s.openBlock(),s.createElementBlock("div",{key:d,class:"myPrimaryTag cursor-pointer hover:bg-myPrimaryErrorColor hover:text-white text-xs py-2 font-medium",onClick:async()=>{s.unref(t).handleRemoveClasses(d),await s.unref(t).initializeElementStyles()}},[s.createElementVNode("div",r5,[s.createElementVNode("span",o5,s.toDisplayString(d),1)])],8,t5))),128))]),s.createElementVNode("div",n5,[s.createElementVNode("div",i5,[s.createElementVNode("div",a5,[s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":c[0]||(c[0]=d=>i.value=d),type:"text",placeholder:"Type class",onKeydown:c[1]||(c[1]=s.withKeys(d=>a(),["enter"])),autocomplete:"off",class:"myPrimaryInput border-none rounded-r-none ml-0 w-full"},null,544),[[s.vModelText,i.value]]),c[3]||(c[3]=s.createElementVNode("div",{class:"border border-gray-200 border-none rounded flex items-center justify-center h-full w-8"},[s.createElementVNode("kbd",{class:"myPrimaryParagraph text-gray-400 border-none"}," ⏎ ")],-1))])]),c[4]||(c[4]=s.createElementVNode("p",{class:"myPrimaryInputError"},null,-1))])]),_:1}))}};function l5(r){return new Promise((e,t)=>{const o=new window.Image;o.onload=e,o.onerror=t,o.src=r})}const c5=["src"],d5={__name:"ImageEditor",setup(r){const e=se,t=s.inject("CustomMediaComponent");new de(e),s.ref(!1);const o=s.ref(!1),n=s.ref(!1),i=s.ref(""),a=s.ref(""),l=s.ref(""),c=s.ref(null),d=s.ref(null),u=s.ref(null),p=s.computed(()=>(e.getBasePrimaryImage&&h(e.getBasePrimaryImage),e.getBasePrimaryImage));s.computed(()=>e.getElement);const m=function(){n.value=!0,i.value="Media Library",a.value=null,l.value="Close",c.value="Select image",u.value=function(){n.value=!1}},h=async function(f){o.value=!0,f&&typeof f=="string"&&f.length>2&&(await l5(f),await wa(200),o.value=!1)};return(f,g)=>(s.openBlock(),s.createElementBlock("div",null,[s.withDirectives(s.createElementVNode("div",null,g[0]||(g[0]=[s.createElementVNode("div",{class:"flex items-center justify-center mt-4 min-h-80"},[s.createElementVNode("div",{class:"inline-block h-8 w-8 animate-spin rounded-full border-4 border-solid border-current border-r-transparent align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite]"},[s.createElementVNode("span",{class:"!absolute !-m-px !h-px !w-px !overflow-hidden !whitespace-nowrap !border-0 !p-0 ![clip:rect(0,0,0,0)]"},"Loading...")])],-1)]),512),[[s.vShow,o.value]]),s.withDirectives(s.createElementVNode("div",null,[s.createElementVNode("img",{class:"object-cover object-center w-full cursor-pointer",src:p.value,onClick:m,alt:"image"},null,8,c5)],512),[[s.vShow,p.value&&!o.value]]),s.createVNode(hm,{open:n.value,title:i.value,description:a.value,firstButtonText:l.value,secondButtonText:c.value,thirdButtonText:d.value,customMediaComponent:s.unref(t),onFirstMediaButtonFunction:u.value},null,8,["open","title","description","firstButtonText","secondButtonText","thirdButtonText","customMediaComponent","onFirstMediaButtonFunction"])]))}},u5={class:"my-2 py-2"},p5={class:"relative"},m5={class:"flex items-center gap-2"},h5={key:0},f5={class:"flex items-center"},g5={key:0,class:"aspect-square w-6 h-6"},b5={key:2,class:"ml-3"},w5={key:3,class:"ml-3"},y5={__name:"ManageBackgroundOpacity",setup(r){const e=se,t=new de(e),o=s.ref(null),n=s.computed(()=>e.getBackgroundOpacity);return s.watch(n,async i=>{o.value=i,await t.initializeElementStyles()},{immediate:!0}),(i,a)=>(s.openBlock(),s.createElementBlock("div",u5,[a[4]||(a[4]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Background opacity",-1)),s.createVNode(s.unref(un),{as:"div",modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=l=>o.value=l)},{default:s.withCtx(()=>[s.createElementVNode("div",p5,[s.createVNode(s.unref(pn),{class:"myPrimarySelect"},{default:s.withCtx(()=>[s.createElementVNode("span",m5,[o.value==="none"?(s.openBlock(),s.createElementBlock("div",h5,a[1]||(a[1]=[s.createElementVNode("div",{class:"myPrimaryColorPreview border-none"},[s.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ")],-1)]))):s.createCommentVNode("",!0),o.value!=="none"?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["aspect-square w-6 h-6 bg-gray-950",`${o.value}`])},null,2)):s.createCommentVNode("",!0),s.createElementVNode("span",{class:s.normalizeClass(["block truncate",[(o.value!=="none","")]])},s.toDisplayString(o.value==="none"?"Transparent":o.value),3)]),a[2]||(a[2]=s.createElementVNode("span",{class:"pointer-events-none absolute inset-y-0 right-0 ml-3 flex items-center pr-2"},[s.createElementVNode("span",{class:"material-symbols-outlined"}," keyboard_arrow_down ")],-1))]),_:1,__:[2]}),s.createVNode(s.Transition,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:s.withCtx(()=>[s.createVNode(s.unref(mn),{class:"absolute z-10 mt-1 max-h-56 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(kn).backgroundOpacities,l=>(s.openBlock(),s.createBlock(s.unref(hn),{as:"template",onClick:c=>s.unref(t).handleBackgroundOpacity(l),key:l,value:l},{default:s.withCtx(({active:c})=>[s.createElementVNode("li",{class:s.normalizeClass([c?"bg-myPrimaryLinkColor text-white":"text-myPrimaryDarkGrayColor","relative cursor-default select-none py-2 pl-3 pr-9"])},[s.createElementVNode("div",f5,[l==="none"?(s.openBlock(),s.createElementBlock("div",g5,a[3]||(a[3]=[s.createElementVNode("div",{class:"myPrimaryColorPreview border-none"},[s.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ")],-1)]))):s.createCommentVNode("",!0),l!=="none"?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["aspect-square w-6 h-6 bg-gray-950",`${l}`])},null,2)):s.createCommentVNode("",!0),l!=="none"?(s.openBlock(),s.createElementBlock("span",b5,s.toDisplayString(l),1)):s.createCommentVNode("",!0),l==="none"?(s.openBlock(),s.createElementBlock("span",w5,"Transparent")):s.createCommentVNode("",!0)])],2)]),_:2},1032,["onClick","value"]))),128))]),_:1})]),_:1})])]),_:1},8,["modelValue"])]))}},v5={class:"my-2 py-2"},x5={class:"relative"},k5={class:"flex items-center gap-2"},E5={key:0},S5={class:"flex items-center"},C5={key:0},N5={key:2,class:"ml-3"},B5={key:3,class:"ml-3"},M5={__name:"ManageOpacity",setup(r){const e=se,t=new de(e),o=s.ref(null),n=s.computed(()=>e.getOpacity);return s.watch(n,async i=>{o.value=i,await t.initializeElementStyles()},{immediate:!0}),(i,a)=>(s.openBlock(),s.createElementBlock("div",v5,[a[4]||(a[4]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Opacity",-1)),s.createVNode(s.unref(un),{as:"div",modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=l=>o.value=l)},{default:s.withCtx(()=>[s.createElementVNode("div",x5,[s.createVNode(s.unref(pn),{class:"myPrimarySelect"},{default:s.withCtx(()=>[s.createElementVNode("span",k5,[o.value==="none"?(s.openBlock(),s.createElementBlock("div",E5,a[1]||(a[1]=[s.createElementVNode("div",{class:"myPrimaryColorPreview border-none"},[s.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ")],-1)]))):s.createCommentVNode("",!0),o.value!=="none"?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["aspect-square w-6 h-6 bg-gray-950",`${o.value}`])},null,2)):s.createCommentVNode("",!0),s.createElementVNode("span",{class:s.normalizeClass(["block truncate",[(o.value!=="none","")]])},s.toDisplayString(o.value==="none"?"Transparent":o.value),3)]),a[2]||(a[2]=s.createElementVNode("span",{class:"pointer-events-none absolute inset-y-0 right-0 ml-3 flex items-center pr-2"},[s.createElementVNode("span",{class:"material-symbols-outlined"}," keyboard_arrow_down ")],-1))]),_:1,__:[2]}),s.createVNode(s.Transition,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:s.withCtx(()=>[s.createVNode(s.unref(mn),{class:"absolute z-10 mt-1 max-h-56 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(kn).opacities,l=>(s.openBlock(),s.createBlock(s.unref(hn),{as:"template",onClick:c=>s.unref(t).handleOpacity(l),key:l,value:l},{default:s.withCtx(({active:c})=>[s.createElementVNode("li",{class:s.normalizeClass([c?"bg-myPrimaryLinkColor text-white":"text-myPrimaryDarkGrayColor","relative cursor-default select-none py-2 pl-3 pr-9"])},[s.createElementVNode("div",S5,[l==="none"?(s.openBlock(),s.createElementBlock("div",C5,a[3]||(a[3]=[s.createElementVNode("div",{class:"myPrimaryColorPreview border-none"},[s.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ")],-1)]))):s.createCommentVNode("",!0),l!=="none"?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["aspect-square w-6 h-6 bg-gray-950",`${l}`])},null,2)):s.createCommentVNode("",!0),l==="none"?(s.openBlock(),s.createElementBlock("span",N5,"Transparent")):s.createCommentVNode("",!0),l!=="none"?(s.openBlock(),s.createElementBlock("span",B5,s.toDisplayString(l),1)):s.createCommentVNode("",!0)])],2)]),_:2},1032,["onClick","value"]))),128))]),_:1})]),_:1})])]),_:1},8,["modelValue"])]))}},T5={__name:"OpacityEditor",setup(r){return(e,t)=>(s.openBlock(),s.createBlock(co,null,{title:s.withCtx(()=>t[0]||(t[0]=[s.createTextVNode("Opacity settings")])),content:s.withCtx(()=>[t[1]||(t[1]=s.createElementVNode("p",{class:"myPrimaryParagraph font-medium py-0 my-4"},"Opacity",-1)),s.createVNode(M5),s.createVNode(y5)]),_:1}))}},O5={class:"my-2 py-2"},V5={class:"my-2 py-2"},P5={class:"my-2 py-2"},A5={class:"my-2 py-2"},D5={__name:"PaddingPlusMargin",setup(r){const e=se,t=new de(e),o=s.ref(null),n=s.ref(null),i=s.ref(null),a=s.ref(null),l=s.computed(()=>e.getFontVerticalPadding),c=s.computed(()=>e.getFontHorizontalPadding),d=s.computed(()=>e.getFontVerticalMargin),u=s.computed(()=>e.getFontHorizontalMargin);return s.watch(l,async p=>{o.value=p,await t.initializeElementStyles()},{immediate:!0}),s.watch(c,async p=>{n.value=p,await t.initializeElementStyles()},{immediate:!0}),s.watch(d,async p=>{i.value=p,await t.initializeElementStyles()},{immediate:!0}),s.watch(u,async p=>{a.value=p,await t.initializeElementStyles()},{immediate:!0}),(p,m)=>(s.openBlock(),s.createBlock(co,null,{title:s.withCtx(()=>m[8]||(m[8]=[s.createTextVNode("Padding & Margin")])),content:s.withCtx(()=>[m[17]||(m[17]=s.createElementVNode("p",{class:"myPrimaryParagraph font-medium py-0 my-4"},"Padding",-1)),s.createElementVNode("div",O5,[m[10]||(m[10]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Padding Y-axis ",-1)),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":m[0]||(m[0]=h=>o.value=h),class:"myPrimarySelect",onChange:m[1]||(m[1]=h=>s.unref(t).handleVerticalPadding(o.value))},[m[9]||(m[9]=s.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(_t).verticalPadding,h=>(s.openBlock(),s.createElementBlock("option",{key:h},s.toDisplayString(h),1))),128))],544),[[s.vModelSelect,o.value]])]),s.createElementVNode("div",V5,[m[12]||(m[12]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Padding X-axis ",-1)),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":m[2]||(m[2]=h=>n.value=h),class:"myPrimarySelect",onChange:m[3]||(m[3]=h=>s.unref(t).handleHorizontalPadding(n.value))},[m[11]||(m[11]=s.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(_t).horizontalPadding,h=>(s.openBlock(),s.createElementBlock("option",{key:h},s.toDisplayString(h),1))),128))],544),[[s.vModelSelect,n.value]])]),m[18]||(m[18]=s.createElementVNode("p",{class:"myPrimaryParagraph font-medium py-0 my-4"},"Margin",-1)),s.createElementVNode("div",P5,[m[14]||(m[14]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Margin Y-axis ",-1)),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":m[4]||(m[4]=h=>i.value=h),class:"myPrimarySelect",onChange:m[5]||(m[5]=h=>s.unref(t).handleVerticalMargin(i.value))},[m[13]||(m[13]=s.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(_t).verticalMargin,h=>(s.openBlock(),s.createElementBlock("option",{key:h},s.toDisplayString(h),1))),128))],544),[[s.vModelSelect,i.value]])]),s.createElementVNode("div",A5,[m[16]||(m[16]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Margin X-axis ",-1)),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":m[6]||(m[6]=h=>a.value=h),class:"myPrimarySelect",onChange:m[7]||(m[7]=h=>s.unref(t).handleHorizontalMargin(a.value))},[m[15]||(m[15]=s.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(_t).horizontalMargin,h=>(s.openBlock(),s.createElementBlock("option",{key:h},s.toDisplayString(h),1))),128))],544),[[s.vModelSelect,a.value]])])]),_:1}))}},I5={class:"my-2 py-2"},L5={class:"my-2 py-2"},R5={class:"my-2 py-2"},z5={class:"my-2 py-2"},_5={class:"my-2 py-2"},F5={__name:"BorderRadius",setup(r){const e=se,t=new de(e),o=s.ref(null),n=s.ref(null),i=s.ref(null),a=s.ref(null),l=s.ref(null),c=s.computed(()=>e.getBorderRadiusGlobal),d=s.computed(()=>e.getBorderRadiusTopLeft),u=s.computed(()=>e.getBorderRadiusTopRight),p=s.computed(()=>e.getBorderRadiusBottomleft),m=s.computed(()=>e.getBorderRadiusBottomRight);return s.watch(c,async h=>{o.value=h,await t.initializeElementStyles()},{immediate:!0}),s.watch(d,async h=>{n.value=h,await t.initializeElementStyles()},{immediate:!0}),s.watch(u,async h=>{i.value=h,await t.initializeElementStyles()},{immediate:!0}),s.watch(p,async h=>{a.value=h,await t.initializeElementStyles()},{immediate:!0}),s.watch(m,async h=>{l.value=h,await t.initializeElementStyles()},{immediate:!0}),(h,f)=>(s.openBlock(),s.createBlock(co,null,{title:s.withCtx(()=>f[10]||(f[10]=[s.createTextVNode("Border Radius")])),content:s.withCtx(()=>[f[21]||(f[21]=s.createElementVNode("p",{class:"myPrimaryParagraph font-medium py-0 my-4"},"Global",-1)),s.createElementVNode("div",I5,[f[12]||(f[12]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Border Radius ",-1)),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":f[0]||(f[0]=g=>o.value=g),class:"myPrimarySelect",onChange:f[1]||(f[1]=g=>s.unref(t).handleBorderRadiusGlobal(o.value))},[f[11]||(f[11]=s.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(pt).roundedGlobal,g=>(s.openBlock(),s.createElementBlock("option",{key:g},s.toDisplayString(g),1))),128))],544),[[s.vModelSelect,o.value]])]),f[22]||(f[22]=s.createElementVNode("p",{class:"myPrimaryParagraph font-medium py-0 my-4"},"Specific",-1)),s.createElementVNode("div",L5,[f[14]||(f[14]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Border Radius top left ",-1)),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":f[2]||(f[2]=g=>n.value=g),class:"myPrimarySelect",onChange:f[3]||(f[3]=g=>s.unref(t).handleBorderRadiusTopLeft(n.value))},[f[13]||(f[13]=s.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(pt).roundedTopLeft,g=>(s.openBlock(),s.createElementBlock("option",{key:g},s.toDisplayString(g),1))),128))],544),[[s.vModelSelect,n.value]])]),s.createElementVNode("div",R5,[f[16]||(f[16]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Border Radius top right ",-1)),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":f[4]||(f[4]=g=>i.value=g),class:"myPrimarySelect",onChange:f[5]||(f[5]=g=>s.unref(t).handleBorderRadiusTopRight(i.value))},[f[15]||(f[15]=s.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(pt).roundedTopRight,g=>(s.openBlock(),s.createElementBlock("option",{key:g},s.toDisplayString(g),1))),128))],544),[[s.vModelSelect,i.value]])]),s.createElementVNode("div",z5,[f[18]||(f[18]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Border Radius bottom left ",-1)),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":f[6]||(f[6]=g=>a.value=g),class:"myPrimarySelect",onChange:f[7]||(f[7]=g=>s.unref(t).handleBorderRadiusBottomleft(a.value))},[f[17]||(f[17]=s.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(pt).roundedBottomLeft,g=>(s.openBlock(),s.createElementBlock("option",{key:g},s.toDisplayString(g),1))),128))],544),[[s.vModelSelect,a.value]])]),s.createElementVNode("div",_5,[f[20]||(f[20]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Border Radius bottom right ",-1)),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":f[8]||(f[8]=g=>l.value=g),class:"myPrimarySelect",onChange:f[9]||(f[9]=g=>s.unref(t).handleBorderRadiusBottomRight(l.value))},[f[19]||(f[19]=s.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(pt).roundedBottomRight,g=>(s.openBlock(),s.createElementBlock("option",{key:g},s.toDisplayString(g),1))),128))],544),[[s.vModelSelect,l.value]])])]),_:1}))}},j5={class:"my-2 py-2"},H5={class:"my-2 py-2"},W5={class:"relative mt-2"},q5={class:"flex items-center gap-2"},U5={key:0},K5={class:"block truncate"},J5={class:"flex items-center"},G5={key:0},Y5={key:2,class:"ml-3"},X5={key:3,class:"ml-3"},Q5={__name:"Borders",setup(r){const e=se,t=new de(e),o=s.ref(null),n=s.ref(null),i=s.ref(null),a=s.computed(()=>e.getBorderStyle),l=s.computed(()=>e.getBorderWidth),c=s.computed(()=>e.getBorderColor);return s.watch(a,async d=>{o.value=d,await t.initializeElementStyles()},{immediate:!0}),s.watch(l,async d=>{n.value=d,await t.initializeElementStyles()},{immediate:!0}),s.watch(c,async d=>{i.value=d,await t.initializeElementStyles()},{immediate:!0}),(d,u)=>(s.openBlock(),s.createBlock(co,null,{title:s.withCtx(()=>u[6]||(u[6]=[s.createTextVNode("Border Style, Width & Color")])),content:s.withCtx(()=>[u[14]||(u[14]=s.createElementVNode("p",{class:"myPrimaryParagraph font-medium py-0 my-4"},"Border",-1)),s.createElementVNode("div",j5,[u[8]||(u[8]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Border Style ",-1)),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":u[0]||(u[0]=p=>o.value=p),class:"myPrimarySelect",onChange:u[1]||(u[1]=p=>s.unref(t).handleBorderStyle(o.value))},[u[7]||(u[7]=s.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(Ar).borderStyle,p=>(s.openBlock(),s.createElementBlock("option",{key:p},s.toDisplayString(p),1))),128))],544),[[s.vModelSelect,o.value]])]),s.createElementVNode("div",H5,[u[10]||(u[10]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Border Width ",-1)),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":u[2]||(u[2]=p=>n.value=p),class:"myPrimarySelect",onChange:u[3]||(u[3]=p=>s.unref(t).handleBorderWidth(n.value))},[u[9]||(u[9]=s.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(Ar).borderWidth,p=>(s.openBlock(),s.createElementBlock("option",{key:p},s.toDisplayString(p),1))),128))],544),[[s.vModelSelect,n.value]])]),u[15]||(u[15]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Border Color ",-1)),s.createVNode(s.unref(un),{as:"div",modelValue:i.value,"onUpdate:modelValue":u[5]||(u[5]=p=>i.value=p)},{default:s.withCtx(()=>[s.createElementVNode("div",W5,[s.createVNode(s.unref(pn),{class:"myPrimarySelect"},{default:s.withCtx(()=>{var p;return[s.createElementVNode("span",q5,[c.value==="none"?(s.openBlock(),s.createElementBlock("div",U5,u[11]||(u[11]=[s.createElementVNode("div",{class:"myPrimaryColorPreview border-none"},[s.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ")],-1)]))):s.createCommentVNode("",!0),i.value!=="none"?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["aspect-square w-6 h-6 border border-gray-100 rounded-sm",`bg-${(p=i.value)==null?void 0:p.replace("border-","")}`])},null,2)):s.createCommentVNode("",!0),s.createElementVNode("span",K5,s.toDisplayString(i.value),1)]),u[12]||(u[12]=s.createElementVNode("span",{class:"pointer-events-none absolute inset-y-0 right-0 ml-3 flex items-center pr-2"},[s.createElementVNode("span",{class:"material-symbols-outlined"}," keyboard_arrow_down ")],-1))]}),_:1,__:[12]}),s.createVNode(s.Transition,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:s.withCtx(()=>[s.createVNode(s.unref(mn),{class:"absolute z-10 mt-1 max-h-56 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(Ar).borderColor,p=>(s.openBlock(),s.createBlock(s.unref(hn),{as:"template",onClick:u[4]||(u[4]=m=>s.unref(t).handleBorderColor(i.value)),key:p,value:p},{default:s.withCtx(({active:m,borderColor:h})=>[s.createElementVNode("li",{class:s.normalizeClass([m?"bg-myPrimaryLinkColor text-white":"text-myPrimaryDarkGrayColor","relative cursor-default select-none py-2 pl-3 pr-9"])},[s.createElementVNode("div",J5,[p==="none"?(s.openBlock(),s.createElementBlock("div",G5,u[13]||(u[13]=[s.createElementVNode("div",{class:"myPrimaryColorPreview border-none"},[s.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ")],-1)]))):s.createCommentVNode("",!0),p!=="none"?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["aspect-square w-6 h-6 bg-gray-950",`bg-${p.replace("border-","")}`])},null,2)):s.createCommentVNode("",!0),p==="none"?(s.openBlock(),s.createElementBlock("span",Y5,"Transparent")):s.createCommentVNode("",!0),p!=="none"?(s.openBlock(),s.createElementBlock("span",X5,s.toDisplayString(p),1)):s.createCommentVNode("",!0)])],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["modelValue"])]),_:1}))}},Z5={class:"blockease-linear duration-200 block ease-linear"},$5={key:0,class:"flex items-center justify-center mb-6"},ek={class:"px-2 flex items-center justify-start gap-2 w-max"},tk=s.defineComponent({__name:"TipTap",setup(r){const e=se,t=new de(e);return(o,n)=>(s.openBlock(),s.createElementBlock("div",null,[s.createElementVNode("div",Z5,[s.unref(t).isSelectedElementValidText()?(s.openBlock(),s.createElementBlock("div",$5,[s.createElementVNode("div",ek,[s.createElementVNode("button",{onClick:n[0]||(n[0]=i=>s.unref(t).toggleTipTapModal(!0)),type:"button",class:"myPrimaryTag"},n[1]||(n[1]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," edit ",-1),s.createElementVNode("span",null,"Edit text and links",-1)]))])])):s.createCommentVNode("",!0)])]))}}),rk={key:0,class:"border-b border-gray-200 mb-4 pb-8 pt-4"},ok={class:"px-2 flex items-center justify-start gap-2 w-max"},nk={class:"px-2 flex items-center justify-start gap-2 w-max"},ik={__name:"ElementEditor",setup(r){const e=se,t=new de(e),o=s.computed(()=>e.getElement),n=s.computed(()=>e.getRestoredElement);return(i,a)=>o.value||n.value?(s.openBlock(),s.createBlock(co,{key:0},{title:s.withCtx(()=>a[2]||(a[2]=[s.createTextVNode("Selected HTML Element")])),content:s.withCtx(()=>[a[9]||(a[9]=s.createElementVNode("div",{class:"flex flex-row flex-wrap gap-2 mt-2"},null,-1)),n.value?(s.openBlock(),s.createElementBlock("div",rk,[a[4]||(a[4]=s.createElementVNode("p",{class:"myPrimaryParagraph font-medium py-0"},"Restore",-1)),a[5]||(a[5]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Restore the last deleted HTML element.",-1)),s.createElementVNode("div",ok,[s.createElementVNode("button",{onClick:a[0]||(a[0]=(...l)=>s.unref(t).handleRestoreElement&&s.unref(t).handleRestoreElement(...l)),type:"button",class:"myPrimaryButton w-full mt-4"},a[3]||(a[3]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," undo ",-1),s.createElementVNode("span",null,"Restore",-1)]))])])):s.createCommentVNode("",!0),o.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[a[7]||(a[7]=s.createElementVNode("p",{class:"myPrimaryParagraph font-medium py-0 mb-4 pt-4"},"Delete",-1)),a[8]||(a[8]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Delete the currently selected HTML element from the page.",-1)),s.createElementVNode("div",nk,[s.createElementVNode("button",{onClick:a[1]||(a[1]=(...l)=>s.unref(t).handleDeleteElement&&s.unref(t).handleDeleteElement(...l)),type:"button",class:"myPrimaryDeleteButton w-full mt-4"},a[6]||(a[6]=[s.createElementVNode("span",{class:"hover:text-white"},"Delete element",-1)]))])],64)):s.createCommentVNode("",!0)]),_:1})):s.createCommentVNode("",!0)}},ak={class:"flex max-h-[50rem] flex-col"},sk={class:"flex flex-row justify-between pt-7 pr-4 pl-4 items-center mb-3"},lk={class:"font-medium text-sm"},ck={class:"lowercase"},dk={class:"pl-3 pr-3 mb-4 overflow-y-scroll"},uk={class:"mb-1"},pk={class:"mb-1"},mk={class:"my-1 bg-white"},hk={class:"my-1 bg-white"},fk={class:"my-1 bg-white"},gk={class:"my-1 bg-white"},bk={class:"my-1 bg-white"},wk={class:"my-1 bg-white"},yk={__name:"RightSidebarEditor",emits:["closeEditor"],setup(r,{emit:e}){const t=se,o=new de(t),n=s.computed(()=>t.getElement),i=s.computed(()=>{var a;return(a=n.value)==null?void 0:a.tagName});return s.computed(()=>n.value instanceof HTMLElement&&n.value.innerText.trim()!==" "||n.value instanceof HTMLImageElement),(a,l)=>(s.openBlock(),s.createElementBlock("div",ak,[s.createElementVNode("div",sk,[s.createElementVNode("button",{type:"button",onClick:l[0]||(l[0]=c=>a.$emit("closeEditor")),class:"h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0"},l[1]||(l[1]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," close ",-1)])),s.createElementVNode("p",lk,[l[2]||(l[2]=s.createTextVNode(" Editing ")),s.createElementVNode("span",ck,"<"+s.toDisplayString(i.value)+">",1)])]),s.createElementVNode("div",dk,[s.withDirectives(s.createElementVNode("div",null,[s.createElementVNode("article",uk,[s.createVNode(d5)]),s.createElementVNode("article",pk,[s.createVNode(tk)]),s.createCommentVNode("",!0),s.createElementVNode("article",mk,[s.createVNode(T5)]),s.createElementVNode("article",hk,[s.createVNode(D5)]),s.createElementVNode("article",fk,[s.createVNode(F5)]),s.createElementVNode("article",gk,[s.createVNode(Q5)]),s.createElementVNode("article",bk,[s.createVNode(s5)])],512),[[s.vShow,n.value&&s.unref(o).isEditableElement(n.value)]]),s.createElementVNode("div",null,[s.createElementVNode("article",wk,[s.createVNode(ik)])]),l[3]||(l[3]=s.createElementVNode("article",{class:"mt-1 bg-white"},null,-1))])]))}},uo=function(r){return!r||typeof r=="object"&&r.constructor===Object&&Object.keys(r).length===0},vk=se,Ol=new de(vk),xk=function(r){if(!r.updateOrCreate||r.updateOrCreate&&typeof r.updateOrCreate.formType!="string"||r.updateOrCreate&&uo(r.updateOrCreate)){const e={...r,updateOrCreate:{formType:"create",formName:"post"}};return Ol.applyPageBuilderConfig(e),!0}if(r.updateOrCreate&&typeof r.updateOrCreate.formType=="string"&&r.updateOrCreate.formType!=="create"&&r.updateOrCreate.formType!=="update"&&typeof r.formName!="string"){const e={...r,updateOrCreate:{formType:"create",formName:"post"}};return Ol.applyPageBuilderConfig(e),!0}if(r.updateOrCreate&&typeof r.updateOrCreate.formType=="string"&&(r.updateOrCreate.formType==="create"||r.updateOrCreate.formType==="update")&&typeof r.updateOrCreate.formName!="string"||typeof r.updateOrCreate.formName=="string"&&r.updateOrCreate.formName.length===0){const e={...r,updateOrCreate:{formType:r.updateOrCreate.formType,formName:"post"}};return Ol.applyPageBuilderConfig(e),!0}},kk=`@import"https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100;0,200;0,300;0,400;0,500;1,100;1,200;1,300;1,400;1,500&display=swap";@import"https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&display=swap";@import"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Jost,Raleway,Cormorant,sans-serif,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}@media (forced-colors: active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.myPrimaryWidthScreenModule{margin-bottom:0}@media (min-width: 768px){.myPrimaryWidthScreenModule{margin-bottom:0}}.myPrimaryWidthScreenModule{padding-top:4rem;padding-bottom:4rem}@media (min-width: 768px){.myPrimaryWidthScreenModule{padding-top:7rem;padding-bottom:7rem}}.myPrimaryContentSection{margin-left:auto;margin-right:auto;max-width:80rem;padding-left:1rem;padding-right:1rem;padding-bottom:1.5rem}@media (min-width: 768px){.myPrimaryContentSection{padding-left:1rem;padding-right:1rem;padding-bottom:2rem}}@media (min-width: 1024px){.myPrimaryContentSection{padding-bottom:2.5rem}}.myPrimaryTag{margin-top:.5rem;margin-bottom:.5rem;display:inline-flex;min-height:3rem;align-items:center;justify-content:center;gap:.25rem;word-break:break-all;border-radius:9999px;border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(222 230 240 / var(--tw-bg-opacity, 1));padding:.5rem .75rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.myPrimaryTag:hover{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}@media (min-width: 640px){.myPrimaryTag{width:auto}}.myPrimaryParagraph{font-size:.875rem;line-height:1.25rem;font-weight:400;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}@media (min-width: 1024px){.myPrimaryParagraph{font-size:1rem;line-height:1.5rem}}.myPrimaryParagraphError{font-size:.875rem;line-height:1.25rem;font-weight:400;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}@media (min-width: 1024px){.myPrimaryParagraphError{font-size:1rem;line-height:1.5rem}}.myPrimaryParagraphError{margin-top:.25rem;font-style:italic;--tw-text-opacity: 1;color:rgb(214 0 0 / var(--tw-text-opacity, 1))}.mySecondaryHeader{margin-bottom:.5rem;overflow-wrap:break-word;font-family:Cormorant;font-size:1.875rem;line-height:2.25rem;font-weight:500;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.mySecondaryHeader{margin-bottom:1rem;font-size:2.25rem;line-height:2.5rem}}@media (min-width: 1024px){.mySecondaryHeader{margin-bottom:2rem;font-size:3rem;line-height:1}}.myTertiaryHeader{margin-bottom:.5rem;overflow-wrap:break-word;font-size:1.5rem;line-height:2rem;font-weight:500;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.myTertiaryHeader{margin-bottom:1rem;font-size:1.5rem;line-height:2rem}}@media (min-width: 1024px){.myTertiaryHeader{margin-bottom:2rem;font-size:1.875rem;line-height:2.25rem}}.myQuaternaryHeader{margin-bottom:.5rem;overflow-wrap:break-word;font-size:1rem;line-height:1.5rem;font-weight:500;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.myQuaternaryHeader{margin-bottom:.5rem;font-size:1.125rem;line-height:1.75rem}}@media (min-width: 1024px){.myQuaternaryHeader{margin-bottom:1rem;font-size:1.25rem;line-height:1.75rem}}.myPrimaryLink{cursor:pointer;--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.myPrimaryLink:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1))}.myPrimaryLink:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1))}.myPrimaryButton{display:inline-flex;min-height:3rem;align-items:center;justify-content:center;gap:.25rem;white-space:nowrap;word-break:keep-all;border-radius:9999px;border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1));padding:.75rem;font-size:.75rem;line-height:1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.myPrimaryButton:hover{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.myPrimaryButton:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1));--tw-ring-offset-width: 2px}.myPrimaryButton:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1))}@media (min-width: 640px){.myPrimaryButton{width:auto;font-size:.875rem;line-height:1.25rem}}@media (min-width: 1024px){.myPrimaryButton{padding:.75rem 1rem}}.mySecondaryButton{display:inline-flex;min-height:3rem;align-items:center;justify-content:center;gap:.25rem;white-space:nowrap;word-break:keep-all;border-radius:9999px;border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1));padding:.75rem;font-size:.75rem;line-height:1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.mySecondaryButton:hover{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.mySecondaryButton:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1));--tw-ring-offset-width: 2px}.mySecondaryButton:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1))}@media (min-width: 640px){.mySecondaryButton{width:auto;font-size:.875rem;line-height:1.25rem}}@media (min-width: 1024px){.mySecondaryButton{padding:.75rem 1rem}}.mySecondaryButton{--tw-bg-opacity: 1;background-color:rgb(222 230 240 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.mySecondaryButton:hover{background-color:rgb(222 230 240 / var(--tw-bg-opacity, 1));--tw-bg-opacity: .9;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.mySecondaryButton:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(239 242 246 / var(--tw-ring-opacity, 1))}.myPrimaryDeleteButton{display:inline-flex;min-height:3rem;align-items:center;justify-content:center;gap:.25rem;white-space:nowrap;word-break:keep-all;border-radius:9999px;border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1));padding:.75rem;font-size:.75rem;line-height:1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.myPrimaryDeleteButton:hover{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.myPrimaryDeleteButton:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1));--tw-ring-offset-width: 2px}.myPrimaryDeleteButton:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1))}@media (min-width: 640px){.myPrimaryDeleteButton{width:auto;font-size:.875rem;line-height:1.25rem}}@media (min-width: 1024px){.myPrimaryDeleteButton{padding:.75rem 1rem}}.myPrimaryDeleteButton,.myPrimaryDeleteButton:hover{--tw-bg-opacity: 1;background-color:rgb(214 0 0 / var(--tw-bg-opacity, 1))}.myPrimaryDeleteButton:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(214 0 0 / var(--tw-ring-opacity, 1))}.myMediumIcon{display:flex;height:1.5rem;width:1.5rem;flex-shrink:0;align-items:center;justify-content:center;stroke-width:1.5px}.myPrimaryGap{gap:1rem}.mysearchBarWithOptions{display:flex;gap:.5rem;border-radius:9999px;border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(239 242 246 / var(--tw-bg-opacity, 1));padding-left:1rem}.myPrimarySearchInput:focus{border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1));--tw-ring-offset-width: 2px}.myPrimarySearchInput{display:block;height:100%;width:100%;border-radius:.375rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:.75rem 2rem .75rem .75rem;text-align:left;font-weight:400;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.myPrimarySearchInput::-moz-placeholder{font-weight:400;accent-color:#d1d5db}.myPrimarySearchInput::placeholder{font-weight:400;accent-color:#d1d5db}.myPrimarySearchInput:focus{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));outline:2px solid transparent;outline-offset:2px}@media (min-width: 640px){.myPrimarySearchInput{font-size:.875rem;line-height:1.25rem}}.myPrimarySearchInput{height:100%;border-style:none;background-color:transparent;padding-top:1rem;padding-bottom:1rem;padding-left:2.5rem;font-size:.875rem;line-height:1.25rem;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}.myPrimarySearchInput:focus{border-style:none;background-color:transparent;outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-offset-width: 0px}.myPrimaryFormOrganizationHeaderDescriptionSection{margin-bottom:1rem}.myPrimaryFormOrganizationHeader{margin-bottom:.5rem;overflow-wrap:break-word;font-size:1rem;line-height:1.5rem;font-weight:500;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.myPrimaryFormOrganizationHeader{margin-bottom:.5rem;font-size:1.125rem;line-height:1.75rem}}@media (min-width: 1024px){.myPrimaryFormOrganizationHeader{margin-bottom:1rem;font-size:1.25rem;line-height:1.75rem}}.myPrimaryFormOrganizationHeader{margin:0;padding-top:1rem}.myInputGroup{margin-bottom:.5rem;width:100%;align-self:flex-start;padding-left:.5rem;padding-right:.5rem}.myPrimaryInputLabel{margin-top:0;margin-bottom:0;margin-bottom:.5rem;display:block;text-align:left;font-size:.875rem;line-height:1.25rem;font-weight:400;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.myPrimaryInput:focus{border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1));--tw-ring-offset-width: 2px}.myPrimaryInput{display:block;height:100%;width:100%;border-radius:.375rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:.75rem 2rem .75rem .75rem;text-align:left;font-weight:400;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.myPrimaryInput::-moz-placeholder{font-weight:400;accent-color:#d1d5db}.myPrimaryInput::placeholder{font-weight:400;accent-color:#d1d5db}.myPrimaryInput:focus{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));outline:2px solid transparent;outline-offset:2px}@media (min-width: 640px){.myPrimaryInput{font-size:.875rem;line-height:1.25rem}}.myPrimaryInputError{font-size:.875rem;line-height:1.25rem;font-weight:400;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}@media (min-width: 1024px){.myPrimaryInputError{font-size:1rem;line-height:1.5rem}}.myPrimaryInputError{margin-top:.25rem;display:block;text-align:left;font-weight:400;--tw-text-opacity: 1;color:rgb(214 0 0 / var(--tw-text-opacity, 1))}.myPrimarySelect:focus{border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1));--tw-ring-offset-width: 2px}.myPrimarySelect{display:block;height:100%;width:100%;border-radius:.375rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:.75rem 2rem .75rem .75rem;text-align:left;font-weight:400;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.myPrimarySelect::-moz-placeholder{font-weight:400;accent-color:#d1d5db}.myPrimarySelect::placeholder{font-weight:400;accent-color:#d1d5db}.myPrimarySelect:focus{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));outline:2px solid transparent;outline-offset:2px}@media (min-width: 640px){.myPrimarySelect{font-size:.875rem;line-height:1.25rem}}.myPrimarySelect{position:relative;width:100%}.myPrimaryColorPreview{aspect-ratio:1 / 1;min-height:1.5rem;cursor:pointer;border-radius:.125rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.\\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.top-1\\/3{top:33.333333%}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-auto{z-index:auto}.col-span-1{grid-column:span 1 / span 1}.\\!-m-px{margin:-1px!important}.m-0{margin:0}.m-1{margin:.25rem}.m-4{margin:1rem}.-mx-1\\.5{margin-left:-.375rem;margin-right:-.375rem}.-my-1\\.5{margin-top:-.375rem;margin-bottom:-.375rem}.mx-0{margin-left:0;margin-right:0}.mx-0\\.5{margin-left:.125rem;margin-right:.125rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-1\\.5{margin-left:.375rem;margin-right:.375rem}.mx-10{margin-left:2.5rem;margin-right:2.5rem}.mx-11{margin-left:2.75rem;margin-right:2.75rem}.mx-12{margin-left:3rem;margin-right:3rem}.mx-14{margin-left:3.5rem;margin-right:3.5rem}.mx-16{margin-left:4rem;margin-right:4rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-2\\.5{margin-left:.625rem;margin-right:.625rem}.mx-20{margin-left:5rem;margin-right:5rem}.mx-24{margin-left:6rem;margin-right:6rem}.mx-28{margin-left:7rem;margin-right:7rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-3\\.5{margin-left:.875rem;margin-right:.875rem}.mx-32{margin-left:8rem;margin-right:8rem}.mx-36{margin-left:9rem;margin-right:9rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-40{margin-left:10rem;margin-right:10rem}.mx-44{margin-left:11rem;margin-right:11rem}.mx-48{margin-left:12rem;margin-right:12rem}.mx-5{margin-left:1.25rem;margin-right:1.25rem}.mx-52{margin-left:13rem;margin-right:13rem}.mx-56{margin-left:14rem;margin-right:14rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.mx-60{margin-left:15rem;margin-right:15rem}.mx-64{margin-left:16rem;margin-right:16rem}.mx-7{margin-left:1.75rem;margin-right:1.75rem}.mx-72{margin-left:18rem;margin-right:18rem}.mx-8{margin-left:2rem;margin-right:2rem}.mx-80{margin-left:20rem;margin-right:20rem}.mx-9{margin-left:2.25rem;margin-right:2.25rem}.mx-96{margin-left:24rem;margin-right:24rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0{margin-top:0;margin-bottom:0}.my-0\\.5{margin-top:.125rem;margin-bottom:.125rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-1\\.5{margin-top:.375rem;margin-bottom:.375rem}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.my-11{margin-top:2.75rem;margin-bottom:2.75rem}.my-12{margin-top:3rem;margin-bottom:3rem}.my-14{margin-top:3.5rem;margin-bottom:3.5rem}.my-16{margin-top:4rem;margin-bottom:4rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-2\\.5{margin-top:.625rem;margin-bottom:.625rem}.my-20{margin-top:5rem;margin-bottom:5rem}.my-24{margin-top:6rem;margin-bottom:6rem}.my-28{margin-top:7rem;margin-bottom:7rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-3\\.5{margin-top:.875rem;margin-bottom:.875rem}.my-32{margin-top:8rem;margin-bottom:8rem}.my-36{margin-top:9rem;margin-bottom:9rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-40{margin-top:10rem;margin-bottom:10rem}.my-44{margin-top:11rem;margin-bottom:11rem}.my-48{margin-top:12rem;margin-bottom:12rem}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.my-52{margin-top:13rem;margin-bottom:13rem}.my-56{margin-top:14rem;margin-bottom:14rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.my-60{margin-top:15rem;margin-bottom:15rem}.my-64{margin-top:16rem;margin-bottom:16rem}.my-7{margin-top:1.75rem;margin-bottom:1.75rem}.my-72{margin-top:18rem;margin-bottom:18rem}.my-8{margin-top:2rem;margin-bottom:2rem}.my-80{margin-top:20rem;margin-bottom:20rem}.my-9{margin-top:2.25rem;margin-bottom:2.25rem}.my-96{margin-top:24rem;margin-bottom:24rem}.-mb-px{margin-bottom:-1px}.-ml-16{margin-left:-4rem}.-mt-2{margin-top:-.5rem}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-0{margin-left:0}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.inline-grid{display:inline-grid}.hidden{display:none}.aspect-\\[16\\/9\\]{aspect-ratio:16/9}.aspect-\\[21\\/9\\]{aspect-ratio:21/9}.aspect-\\[4\\/3\\]{aspect-ratio:4/3}.aspect-\\[9\\/16\\]{aspect-ratio:9/16}.aspect-auto{aspect-ratio:auto}.aspect-square{aspect-ratio:1 / 1}.aspect-video{aspect-ratio:16 / 9}.size-3{width:.75rem;height:.75rem}.\\!h-px{height:1px!important}.h-0\\.5{height:.125rem}.h-1{height:.25rem}.h-1\\.5{height:.375rem}.h-1\\/2{height:50%}.h-1\\/3{height:33.333333%}.h-1\\/4{height:25%}.h-1\\/5{height:20%}.h-1\\/6{height:16.666667%}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\\.5{height:.625rem}.h-2\\/3{height:66.666667%}.h-2\\/4{height:50%}.h-2\\/5{height:40%}.h-2\\/6{height:33.333333%}.h-20{height:5rem}.h-24{height:6rem}.h-28{height:7rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-3\\/4{height:75%}.h-3\\/5{height:60%}.h-3\\/6{height:50%}.h-32{height:8rem}.h-36{height:9rem}.h-4{height:1rem}.h-4\\/5{height:80%}.h-4\\/6{height:66.666667%}.h-40{height:10rem}.h-44{height:11rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-5\\/6{height:83.333333%}.h-52{height:13rem}.h-56{height:14rem}.h-6{height:1.5rem}.h-60{height:15rem}.h-64{height:16rem}.h-7{height:1.75rem}.h-72{height:18rem}.h-8{height:2rem}.h-80{height:20rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\\[10vh\\]{height:10vh}.h-\\[39rem\\]{height:39rem}.h-\\[75vh\\]{height:75vh}.h-\\[90vh\\]{height:90vh}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-max{height:-moz-max-content;height:max-content}.h-min{height:-moz-min-content;height:min-content}.h-screen{height:100vh}.max-h-0{max-height:0px}.max-h-0\\.5{max-height:.125rem}.max-h-1{max-height:.25rem}.max-h-1\\.5{max-height:.375rem}.max-h-10{max-height:2.5rem}.max-h-11{max-height:2.75rem}.max-h-12{max-height:3rem}.max-h-14{max-height:3.5rem}.max-h-16{max-height:4rem}.max-h-2{max-height:.5rem}.max-h-2\\.5{max-height:.625rem}.max-h-20{max-height:5rem}.max-h-24{max-height:6rem}.max-h-28{max-height:7rem}.max-h-3{max-height:.75rem}.max-h-3\\.5{max-height:.875rem}.max-h-32{max-height:8rem}.max-h-36{max-height:9rem}.max-h-4{max-height:1rem}.max-h-40{max-height:10rem}.max-h-44{max-height:11rem}.max-h-48{max-height:12rem}.max-h-5{max-height:1.25rem}.max-h-52{max-height:13rem}.max-h-56{max-height:14rem}.max-h-6{max-height:1.5rem}.max-h-60{max-height:15rem}.max-h-64{max-height:16rem}.max-h-7{max-height:1.75rem}.max-h-72{max-height:18rem}.max-h-8{max-height:2rem}.max-h-80{max-height:20rem}.max-h-9{max-height:2.25rem}.max-h-96{max-height:24rem}.max-h-\\[20rem\\]{max-height:20rem}.max-h-\\[33rem\\]{max-height:33rem}.max-h-\\[50rem\\]{max-height:50rem}.max-h-\\[98vh\\]{max-height:98vh}.max-h-fit{max-height:-moz-fit-content;max-height:fit-content}.max-h-full{max-height:100%}.max-h-max{max-height:-moz-max-content;max-height:max-content}.max-h-min{max-height:-moz-min-content;max-height:min-content}.max-h-screen{max-height:100vh}.min-h-0{min-height:0px}.min-h-0\\.5{min-height:.125rem}.min-h-1{min-height:.25rem}.min-h-1\\.5{min-height:.375rem}.min-h-10{min-height:2.5rem}.min-h-11{min-height:2.75rem}.min-h-12{min-height:3rem}.min-h-14{min-height:3.5rem}.min-h-16{min-height:4rem}.min-h-2{min-height:.5rem}.min-h-2\\.5{min-height:.625rem}.min-h-20{min-height:5rem}.min-h-24{min-height:6rem}.min-h-28{min-height:7rem}.min-h-3{min-height:.75rem}.min-h-3\\.5{min-height:.875rem}.min-h-32{min-height:8rem}.min-h-36{min-height:9rem}.min-h-4{min-height:1rem}.min-h-40{min-height:10rem}.min-h-44{min-height:11rem}.min-h-48{min-height:12rem}.min-h-5{min-height:1.25rem}.min-h-52{min-height:13rem}.min-h-56{min-height:14rem}.min-h-6{min-height:1.5rem}.min-h-60{min-height:15rem}.min-h-64{min-height:16rem}.min-h-7{min-height:1.75rem}.min-h-72{min-height:18rem}.min-h-8{min-height:2rem}.min-h-80{min-height:20rem}.min-h-9{min-height:2.25rem}.min-h-96{min-height:24rem}.min-h-\\[12rem\\]{min-height:12rem}.min-h-\\[2\\.5rem\\]{min-height:2.5rem}.min-h-\\[20rem\\]{min-height:20rem}.min-h-\\[33rem\\]{min-height:33rem}.min-h-fit{min-height:-moz-fit-content;min-height:fit-content}.min-h-full{min-height:100%}.min-h-max{min-height:-moz-max-content;min-height:max-content}.min-h-min{min-height:-moz-min-content;min-height:min-content}.min-h-screen{min-height:100vh}.\\!w-px{width:1px!important}.w-0{width:0px}.w-0\\.5{width:.125rem}.w-1{width:.25rem}.w-1\\.5{width:.375rem}.w-1\\/2{width:50%}.w-1\\/3{width:33.333333%}.w-1\\/4{width:25%}.w-1\\/5{width:20%}.w-1\\/6{width:16.666667%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\\.5{width:.625rem}.w-2\\/3{width:66.666667%}.w-2\\/4{width:50%}.w-2\\/5{width:40%}.w-2\\/6{width:33.333333%}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-3\\/12{width:25%}.w-3\\/4{width:75%}.w-3\\/5{width:60%}.w-3\\/6{width:50%}.w-32{width:8rem}.w-36{width:9rem}.w-4{width:1rem}.w-4\\/5{width:80%}.w-4\\/6{width:66.666667%}.w-40{width:10rem}.w-44{width:11rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-5\\/6{width:83.333333%}.w-52{width:13rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-60{width:15rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-9\\/12{width:75%}.w-96{width:24rem}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-min{width:-moz-min-content;width:min-content}.w-screen{width:100vw}.min-w-0{min-width:0px}.min-w-0\\.5{min-width:.125rem}.min-w-1{min-width:.25rem}.min-w-1\\.5{min-width:.375rem}.min-w-10{min-width:2.5rem}.min-w-11{min-width:2.75rem}.min-w-12{min-width:3rem}.min-w-14{min-width:3.5rem}.min-w-16{min-width:4rem}.min-w-2{min-width:.5rem}.min-w-2\\.5{min-width:.625rem}.min-w-20{min-width:5rem}.min-w-24{min-width:6rem}.min-w-28{min-width:7rem}.min-w-3{min-width:.75rem}.min-w-3\\.5{min-width:.875rem}.min-w-32{min-width:8rem}.min-w-36{min-width:9rem}.min-w-4{min-width:1rem}.min-w-40{min-width:10rem}.min-w-44{min-width:11rem}.min-w-48{min-width:12rem}.min-w-5{min-width:1.25rem}.min-w-52{min-width:13rem}.min-w-56{min-width:14rem}.min-w-6{min-width:1.5rem}.min-w-60{min-width:15rem}.min-w-64{min-width:16rem}.min-w-7{min-width:1.75rem}.min-w-72{min-width:18rem}.min-w-8{min-width:2rem}.min-w-80{min-width:20rem}.min-w-9{min-width:2.25rem}.min-w-96{min-width:24rem}.min-w-\\[12rem\\]{min-width:12rem}.min-w-\\[3\\.5rem\\]{min-width:3.5rem}.min-w-\\[30rem\\]{min-width:30rem}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.min-w-full{min-width:100%}.min-w-max{min-width:-moz-max-content;min-width:max-content}.min-w-min{min-width:-moz-min-content;min-width:min-content}.max-w-0\\.5{max-width:.125rem}.max-w-1{max-width:.25rem}.max-w-1\\.5{max-width:.375rem}.max-w-10{max-width:2.5rem}.max-w-11{max-width:2.75rem}.max-w-12{max-width:3rem}.max-w-14{max-width:3.5rem}.max-w-16{max-width:4rem}.max-w-2{max-width:.5rem}.max-w-2\\.5{max-width:.625rem}.max-w-20{max-width:5rem}.max-w-24{max-width:6rem}.max-w-28{max-width:7rem}.max-w-2xl{max-width:42rem}.max-w-3{max-width:.75rem}.max-w-3\\.5{max-width:.875rem}.max-w-32{max-width:8rem}.max-w-36{max-width:9rem}.max-w-3xl{max-width:48rem}.max-w-4{max-width:1rem}.max-w-40{max-width:10rem}.max-w-44{max-width:11rem}.max-w-48{max-width:12rem}.max-w-4xl{max-width:56rem}.max-w-5{max-width:1.25rem}.max-w-52{max-width:13rem}.max-w-56{max-width:14rem}.max-w-5xl{max-width:64rem}.max-w-6{max-width:1.5rem}.max-w-60{max-width:15rem}.max-w-64{max-width:16rem}.max-w-6xl{max-width:72rem}.max-w-7{max-width:1.75rem}.max-w-72{max-width:18rem}.max-w-7xl{max-width:80rem}.max-w-8{max-width:2rem}.max-w-80{max-width:20rem}.max-w-9{max-width:2.25rem}.max-w-96{max-width:24rem}.max-w-\\[96vh\\]{max-width:96vh}.max-w-fit{max-width:-moz-fit-content;max-width:fit-content}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-max{max-width:-moz-max-content;max-width:max-content}.max-w-md{max-width:28rem}.max-w-min{max-width:-moz-min-content;max-width:min-content}.max-w-prose{max-width:65ch}.max-w-screen-2xl{max-width:1536px}.max-w-screen-lg{max-width:1024px}.max-w-screen-md{max-width:768px}.max-w-screen-sm{max-width:640px}.max-w-screen-xl{max-width:1280px}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.grow{flex-grow:1}.-translate-y-2{--tw-translate-y: -.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-5{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-0{--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-0{--tw-scale-x: 0;--tw-scale-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-110{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-125{--tw-scale-x: 1.25;--tw-scale-y: 1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-150{--tw-scale-x: 1.5;--tw-scale-y: 1.5;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-50{--tw-scale-x: .5;--tw-scale-y: .5;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-75{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform-none{transform:none}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}.animate-none{animation:none}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-move{cursor:move}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.cursor-wait{cursor:wait}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.select-text{-webkit-user-select:text;-moz-user-select:text;user-select:text}.select-all{-webkit-user-select:all;-moz-user-select:all;user-select:all}.select-auto{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.resize-none{resize:none}.resize-y{resize:vertical}.resize-x{resize:horizontal}.resize{resize:both}.snap-none{scroll-snap-type:none}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.snap-both{scroll-snap-type:both var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness: mandatory}.snap-proximity{--tw-scroll-snap-strictness: proximity}.snap-start{scroll-snap-align:start}.snap-end{scroll-snap-align:end}.snap-center{scroll-snap-align:center}.snap-align-none{scroll-snap-align:none}.list-inside{list-style-position:inside}.list-outside{list-style-position:outside}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.auto-cols-\\[minmax\\(100px\\,_1fr\\)\\]{grid-auto-columns:minmax(100px,1fr)}.auto-cols-fr{grid-auto-columns:minmax(0,1fr)}.auto-cols-max{grid-auto-columns:max-content}.auto-cols-min{grid-auto-columns:min-content}.grid-flow-col{grid-auto-flow:column}.grid-flow-row-dense{grid-auto-flow:row dense}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.grid-cols-\\[minmax\\(10rem\\,1fr\\)\\]{grid-template-columns:minmax(10rem,1fr)}.grid-cols-\\[minmax\\(14rem\\,1fr\\)\\]{grid-template-columns:minmax(14rem,1fr)}.grid-cols-\\[minmax\\(50px\\,100px\\)\\]{grid-template-columns:minmax(50px,100px)}.grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.grid-rows-10{grid-template-rows:repeat(10,minmax(0,1fr))}.grid-rows-11{grid-template-rows:repeat(11,minmax(0,1fr))}.grid-rows-12{grid-template-rows:repeat(12,minmax(0,1fr))}.grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.flex-wrap-reverse{flex-wrap:wrap-reverse}.flex-nowrap{flex-wrap:nowrap}.place-content-center{place-content:center}.place-content-start{place-content:start}.place-content-end{place-content:end}.place-content-between{place-content:space-between}.place-content-around{place-content:space-around}.place-content-evenly{place-content:space-evenly}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.justify-evenly{justify-content:space-evenly}.gap-0{gap:0px}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.divide-x-0>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(0px * var(--tw-divide-x-reverse));border-left-width:calc(0px * calc(1 - var(--tw-divide-x-reverse)))}.divide-x-2>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(2px * var(--tw-divide-x-reverse));border-left-width:calc(2px * calc(1 - var(--tw-divide-x-reverse)))}.divide-x-4>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(4px * var(--tw-divide-x-reverse));border-left-width:calc(4px * calc(1 - var(--tw-divide-x-reverse)))}.divide-x-8>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(8px * var(--tw-divide-x-reverse));border-left-width:calc(8px * calc(1 - var(--tw-divide-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-y-0>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(0px * var(--tw-divide-y-reverse))}.divide-y-2>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(2px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(2px * var(--tw-divide-y-reverse))}.divide-y-4>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(4px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(4px * var(--tw-divide-y-reverse))}.divide-y-8>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(8px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(8px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity, 1))}.divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(209 213 219 / var(--tw-divide-opacity, 1))}.self-auto{align-self:auto}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.self-stretch{align-self:stretch}.justify-self-auto{justify-self:auto}.justify-self-start{justify-self:start}.justify-self-end{justify-self:end}.justify-self-center{justify-self:center}.justify-self-stretch{justify-self:stretch}.overflow-auto{overflow:auto}.\\!overflow-hidden{overflow:hidden!important}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-scroll{overflow:scroll}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-hidden{overflow-y:hidden}.overflow-x-scroll{overflow-x:scroll}.overflow-y-scroll{overflow-y:scroll}.scroll-auto{scroll-behavior:auto}.scroll-smooth{scroll-behavior:smooth}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-normal{white-space:normal}.\\!whitespace-nowrap{white-space:nowrap!important}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.break-normal{overflow-wrap:normal;word-break:normal}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.break-keep{word-break:keep-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-l-2xl{border-top-left-radius:1rem;border-bottom-left-radius:1rem}.rounded-l-full{border-top-left-radius:9999px;border-bottom-left-radius:9999px}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.rounded-bl{border-bottom-left-radius:.25rem}.rounded-bl-2xl{border-bottom-left-radius:1rem}.rounded-bl-3xl{border-bottom-left-radius:1.5rem}.rounded-bl-full{border-bottom-left-radius:9999px}.rounded-bl-lg{border-bottom-left-radius:.5rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-bl-sm{border-bottom-left-radius:.125rem}.rounded-bl-xl{border-bottom-left-radius:.75rem}.rounded-br{border-bottom-right-radius:.25rem}.rounded-br-2xl{border-bottom-right-radius:1rem}.rounded-br-3xl{border-bottom-right-radius:1.5rem}.rounded-br-full{border-bottom-right-radius:9999px}.rounded-br-lg{border-bottom-right-radius:.5rem}.rounded-br-md{border-bottom-right-radius:.375rem}.rounded-br-sm{border-bottom-right-radius:.125rem}.rounded-br-xl{border-bottom-right-radius:.75rem}.rounded-tl{border-top-left-radius:.25rem}.rounded-tl-2xl{border-top-left-radius:1rem}.rounded-tl-3xl{border-top-left-radius:1.5rem}.rounded-tl-full{border-top-left-radius:9999px}.rounded-tl-lg{border-top-left-radius:.5rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tl-sm{border-top-left-radius:.125rem}.rounded-tl-xl{border-top-left-radius:.75rem}.rounded-tr{border-top-right-radius:.25rem}.rounded-tr-2xl{border-top-right-radius:1rem}.rounded-tr-3xl{border-top-right-radius:1.5rem}.rounded-tr-full{border-top-right-radius:9999px}.rounded-tr-lg{border-top-right-radius:.5rem}.rounded-tr-md{border-top-right-radius:.375rem}.rounded-tr-sm{border-top-right-radius:.125rem}.rounded-tr-xl{border-top-right-radius:.75rem}.\\!border-0{border-width:0px!important}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-4{border-width:4px}.border-8{border-width:8px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-dotted{border-style:dotted}.border-double{border-style:double}.border-hidden{border-style:hidden}.border-none{border-style:none}.border-amber-100{--tw-border-opacity: 1;border-color:rgb(254 243 199 / var(--tw-border-opacity, 1))}.border-amber-200{--tw-border-opacity: 1;border-color:rgb(253 230 138 / var(--tw-border-opacity, 1))}.border-amber-300{--tw-border-opacity: 1;border-color:rgb(252 211 77 / var(--tw-border-opacity, 1))}.border-amber-400{--tw-border-opacity: 1;border-color:rgb(251 191 36 / var(--tw-border-opacity, 1))}.border-amber-50{--tw-border-opacity: 1;border-color:rgb(255 251 235 / var(--tw-border-opacity, 1))}.border-amber-500{--tw-border-opacity: 1;border-color:rgb(245 158 11 / var(--tw-border-opacity, 1))}.border-amber-600{--tw-border-opacity: 1;border-color:rgb(217 119 6 / var(--tw-border-opacity, 1))}.border-amber-700{--tw-border-opacity: 1;border-color:rgb(180 83 9 / var(--tw-border-opacity, 1))}.border-amber-800{--tw-border-opacity: 1;border-color:rgb(146 64 14 / var(--tw-border-opacity, 1))}.border-amber-900{--tw-border-opacity: 1;border-color:rgb(120 53 15 / var(--tw-border-opacity, 1))}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity, 1))}.border-blue-100{--tw-border-opacity: 1;border-color:rgb(219 234 254 / var(--tw-border-opacity, 1))}.border-blue-200{--tw-border-opacity: 1;border-color:rgb(191 219 254 / var(--tw-border-opacity, 1))}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity, 1))}.border-blue-400{--tw-border-opacity: 1;border-color:rgb(96 165 250 / var(--tw-border-opacity, 1))}.border-blue-50{--tw-border-opacity: 1;border-color:rgb(239 246 255 / var(--tw-border-opacity, 1))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(37 99 235 / var(--tw-border-opacity, 1))}.border-blue-700{--tw-border-opacity: 1;border-color:rgb(29 78 216 / var(--tw-border-opacity, 1))}.border-blue-800{--tw-border-opacity: 1;border-color:rgb(30 64 175 / var(--tw-border-opacity, 1))}.border-blue-900{--tw-border-opacity: 1;border-color:rgb(30 58 138 / var(--tw-border-opacity, 1))}.border-current{border-color:currentColor}.border-cyan-100{--tw-border-opacity: 1;border-color:rgb(207 250 254 / var(--tw-border-opacity, 1))}.border-cyan-200{--tw-border-opacity: 1;border-color:rgb(165 243 252 / var(--tw-border-opacity, 1))}.border-cyan-300{--tw-border-opacity: 1;border-color:rgb(103 232 249 / var(--tw-border-opacity, 1))}.border-cyan-400{--tw-border-opacity: 1;border-color:rgb(34 211 238 / var(--tw-border-opacity, 1))}.border-cyan-50{--tw-border-opacity: 1;border-color:rgb(236 254 255 / var(--tw-border-opacity, 1))}.border-cyan-500{--tw-border-opacity: 1;border-color:rgb(6 182 212 / var(--tw-border-opacity, 1))}.border-cyan-600{--tw-border-opacity: 1;border-color:rgb(8 145 178 / var(--tw-border-opacity, 1))}.border-cyan-700{--tw-border-opacity: 1;border-color:rgb(14 116 144 / var(--tw-border-opacity, 1))}.border-cyan-800{--tw-border-opacity: 1;border-color:rgb(21 94 117 / var(--tw-border-opacity, 1))}.border-cyan-900{--tw-border-opacity: 1;border-color:rgb(22 78 99 / var(--tw-border-opacity, 1))}.border-emerald-100{--tw-border-opacity: 1;border-color:rgb(209 250 229 / var(--tw-border-opacity, 1))}.border-emerald-200{--tw-border-opacity: 1;border-color:rgb(167 243 208 / var(--tw-border-opacity, 1))}.border-emerald-300{--tw-border-opacity: 1;border-color:rgb(110 231 183 / var(--tw-border-opacity, 1))}.border-emerald-400{--tw-border-opacity: 1;border-color:rgb(52 211 153 / var(--tw-border-opacity, 1))}.border-emerald-50{--tw-border-opacity: 1;border-color:rgb(236 253 245 / var(--tw-border-opacity, 1))}.border-emerald-500{--tw-border-opacity: 1;border-color:rgb(16 185 129 / var(--tw-border-opacity, 1))}.border-emerald-600{--tw-border-opacity: 1;border-color:rgb(5 150 105 / var(--tw-border-opacity, 1))}.border-emerald-700{--tw-border-opacity: 1;border-color:rgb(4 120 87 / var(--tw-border-opacity, 1))}.border-emerald-800{--tw-border-opacity: 1;border-color:rgb(6 95 70 / var(--tw-border-opacity, 1))}.border-emerald-900{--tw-border-opacity: 1;border-color:rgb(6 78 59 / var(--tw-border-opacity, 1))}.border-fuchsia-100{--tw-border-opacity: 1;border-color:rgb(250 232 255 / var(--tw-border-opacity, 1))}.border-fuchsia-200{--tw-border-opacity: 1;border-color:rgb(245 208 254 / var(--tw-border-opacity, 1))}.border-fuchsia-300{--tw-border-opacity: 1;border-color:rgb(240 171 252 / var(--tw-border-opacity, 1))}.border-fuchsia-400{--tw-border-opacity: 1;border-color:rgb(232 121 249 / var(--tw-border-opacity, 1))}.border-fuchsia-50{--tw-border-opacity: 1;border-color:rgb(253 244 255 / var(--tw-border-opacity, 1))}.border-fuchsia-500{--tw-border-opacity: 1;border-color:rgb(217 70 239 / var(--tw-border-opacity, 1))}.border-fuchsia-600{--tw-border-opacity: 1;border-color:rgb(192 38 211 / var(--tw-border-opacity, 1))}.border-fuchsia-700{--tw-border-opacity: 1;border-color:rgb(162 28 175 / var(--tw-border-opacity, 1))}.border-fuchsia-800{--tw-border-opacity: 1;border-color:rgb(134 25 143 / var(--tw-border-opacity, 1))}.border-fuchsia-900{--tw-border-opacity: 1;border-color:rgb(112 26 117 / var(--tw-border-opacity, 1))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-gray-400{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity, 1))}.border-gray-50{--tw-border-opacity: 1;border-color:rgb(249 250 251 / var(--tw-border-opacity, 1))}.border-gray-500{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}.border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.border-gray-800{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity, 1))}.border-gray-900{--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity, 1))}.border-green-100{--tw-border-opacity: 1;border-color:rgb(220 252 231 / var(--tw-border-opacity, 1))}.border-green-200{--tw-border-opacity: 1;border-color:rgb(187 247 208 / var(--tw-border-opacity, 1))}.border-green-300{--tw-border-opacity: 1;border-color:rgb(134 239 172 / var(--tw-border-opacity, 1))}.border-green-400{--tw-border-opacity: 1;border-color:rgb(74 222 128 / var(--tw-border-opacity, 1))}.border-green-50{--tw-border-opacity: 1;border-color:rgb(240 253 244 / var(--tw-border-opacity, 1))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(34 197 94 / var(--tw-border-opacity, 1))}.border-green-600{--tw-border-opacity: 1;border-color:rgb(22 163 74 / var(--tw-border-opacity, 1))}.border-green-700{--tw-border-opacity: 1;border-color:rgb(21 128 61 / var(--tw-border-opacity, 1))}.border-green-800{--tw-border-opacity: 1;border-color:rgb(22 101 52 / var(--tw-border-opacity, 1))}.border-green-900{--tw-border-opacity: 1;border-color:rgb(20 83 45 / var(--tw-border-opacity, 1))}.border-indigo-100{--tw-border-opacity: 1;border-color:rgb(224 231 255 / var(--tw-border-opacity, 1))}.border-indigo-200{--tw-border-opacity: 1;border-color:rgb(199 210 254 / var(--tw-border-opacity, 1))}.border-indigo-300{--tw-border-opacity: 1;border-color:rgb(165 180 252 / var(--tw-border-opacity, 1))}.border-indigo-400{--tw-border-opacity: 1;border-color:rgb(129 140 248 / var(--tw-border-opacity, 1))}.border-indigo-50{--tw-border-opacity: 1;border-color:rgb(238 242 255 / var(--tw-border-opacity, 1))}.border-indigo-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity, 1))}.border-indigo-600{--tw-border-opacity: 1;border-color:rgb(79 70 229 / var(--tw-border-opacity, 1))}.border-indigo-700{--tw-border-opacity: 1;border-color:rgb(67 56 202 / var(--tw-border-opacity, 1))}.border-indigo-800{--tw-border-opacity: 1;border-color:rgb(55 48 163 / var(--tw-border-opacity, 1))}.border-indigo-900{--tw-border-opacity: 1;border-color:rgb(49 46 129 / var(--tw-border-opacity, 1))}.border-lime-100{--tw-border-opacity: 1;border-color:rgb(236 252 203 / var(--tw-border-opacity, 1))}.border-lime-200{--tw-border-opacity: 1;border-color:rgb(217 249 157 / var(--tw-border-opacity, 1))}.border-lime-300{--tw-border-opacity: 1;border-color:rgb(190 242 100 / var(--tw-border-opacity, 1))}.border-lime-400{--tw-border-opacity: 1;border-color:rgb(163 230 53 / var(--tw-border-opacity, 1))}.border-lime-50{--tw-border-opacity: 1;border-color:rgb(247 254 231 / var(--tw-border-opacity, 1))}.border-lime-500{--tw-border-opacity: 1;border-color:rgb(132 204 22 / var(--tw-border-opacity, 1))}.border-lime-600{--tw-border-opacity: 1;border-color:rgb(101 163 13 / var(--tw-border-opacity, 1))}.border-lime-700{--tw-border-opacity: 1;border-color:rgb(77 124 15 / var(--tw-border-opacity, 1))}.border-lime-800{--tw-border-opacity: 1;border-color:rgb(63 98 18 / var(--tw-border-opacity, 1))}.border-lime-900{--tw-border-opacity: 1;border-color:rgb(54 83 20 / var(--tw-border-opacity, 1))}.border-myPrimaryLightGrayColor{--tw-border-opacity: 1;border-color:rgb(239 242 246 / var(--tw-border-opacity, 1))}.border-myPrimaryMediumGrayColor{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity, 1))}.border-neutral-100{--tw-border-opacity: 1;border-color:rgb(245 245 245 / var(--tw-border-opacity, 1))}.border-neutral-200{--tw-border-opacity: 1;border-color:rgb(229 229 229 / var(--tw-border-opacity, 1))}.border-neutral-300{--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity, 1))}.border-neutral-400{--tw-border-opacity: 1;border-color:rgb(163 163 163 / var(--tw-border-opacity, 1))}.border-neutral-50{--tw-border-opacity: 1;border-color:rgb(250 250 250 / var(--tw-border-opacity, 1))}.border-neutral-500{--tw-border-opacity: 1;border-color:rgb(115 115 115 / var(--tw-border-opacity, 1))}.border-neutral-600{--tw-border-opacity: 1;border-color:rgb(82 82 82 / var(--tw-border-opacity, 1))}.border-neutral-700{--tw-border-opacity: 1;border-color:rgb(64 64 64 / var(--tw-border-opacity, 1))}.border-neutral-800{--tw-border-opacity: 1;border-color:rgb(38 38 38 / var(--tw-border-opacity, 1))}.border-neutral-900{--tw-border-opacity: 1;border-color:rgb(23 23 23 / var(--tw-border-opacity, 1))}.border-orange-100{--tw-border-opacity: 1;border-color:rgb(255 237 213 / var(--tw-border-opacity, 1))}.border-orange-200{--tw-border-opacity: 1;border-color:rgb(254 215 170 / var(--tw-border-opacity, 1))}.border-orange-300{--tw-border-opacity: 1;border-color:rgb(253 186 116 / var(--tw-border-opacity, 1))}.border-orange-400{--tw-border-opacity: 1;border-color:rgb(251 146 60 / var(--tw-border-opacity, 1))}.border-orange-50{--tw-border-opacity: 1;border-color:rgb(255 247 237 / var(--tw-border-opacity, 1))}.border-orange-500{--tw-border-opacity: 1;border-color:rgb(249 115 22 / var(--tw-border-opacity, 1))}.border-orange-600{--tw-border-opacity: 1;border-color:rgb(234 88 12 / var(--tw-border-opacity, 1))}.border-orange-700{--tw-border-opacity: 1;border-color:rgb(194 65 12 / var(--tw-border-opacity, 1))}.border-orange-800{--tw-border-opacity: 1;border-color:rgb(154 52 18 / var(--tw-border-opacity, 1))}.border-orange-900{--tw-border-opacity: 1;border-color:rgb(124 45 18 / var(--tw-border-opacity, 1))}.border-pink-100{--tw-border-opacity: 1;border-color:rgb(252 231 243 / var(--tw-border-opacity, 1))}.border-pink-200{--tw-border-opacity: 1;border-color:rgb(251 207 232 / var(--tw-border-opacity, 1))}.border-pink-300{--tw-border-opacity: 1;border-color:rgb(249 168 212 / var(--tw-border-opacity, 1))}.border-pink-400{--tw-border-opacity: 1;border-color:rgb(244 114 182 / var(--tw-border-opacity, 1))}.border-pink-50{--tw-border-opacity: 1;border-color:rgb(253 242 248 / var(--tw-border-opacity, 1))}.border-pink-500{--tw-border-opacity: 1;border-color:rgb(236 72 153 / var(--tw-border-opacity, 1))}.border-pink-600{--tw-border-opacity: 1;border-color:rgb(219 39 119 / var(--tw-border-opacity, 1))}.border-pink-700{--tw-border-opacity: 1;border-color:rgb(190 24 93 / var(--tw-border-opacity, 1))}.border-pink-800{--tw-border-opacity: 1;border-color:rgb(157 23 77 / var(--tw-border-opacity, 1))}.border-pink-900{--tw-border-opacity: 1;border-color:rgb(131 24 67 / var(--tw-border-opacity, 1))}.border-purple-100{--tw-border-opacity: 1;border-color:rgb(243 232 255 / var(--tw-border-opacity, 1))}.border-purple-200{--tw-border-opacity: 1;border-color:rgb(233 213 255 / var(--tw-border-opacity, 1))}.border-purple-300{--tw-border-opacity: 1;border-color:rgb(216 180 254 / var(--tw-border-opacity, 1))}.border-purple-400{--tw-border-opacity: 1;border-color:rgb(192 132 252 / var(--tw-border-opacity, 1))}.border-purple-50{--tw-border-opacity: 1;border-color:rgb(250 245 255 / var(--tw-border-opacity, 1))}.border-purple-500{--tw-border-opacity: 1;border-color:rgb(168 85 247 / var(--tw-border-opacity, 1))}.border-purple-600{--tw-border-opacity: 1;border-color:rgb(147 51 234 / var(--tw-border-opacity, 1))}.border-purple-700{--tw-border-opacity: 1;border-color:rgb(126 34 206 / var(--tw-border-opacity, 1))}.border-purple-800{--tw-border-opacity: 1;border-color:rgb(107 33 168 / var(--tw-border-opacity, 1))}.border-purple-900{--tw-border-opacity: 1;border-color:rgb(88 28 135 / var(--tw-border-opacity, 1))}.border-red-100{--tw-border-opacity: 1;border-color:rgb(254 226 226 / var(--tw-border-opacity, 1))}.border-red-200{--tw-border-opacity: 1;border-color:rgb(254 202 202 / var(--tw-border-opacity, 1))}.border-red-300{--tw-border-opacity: 1;border-color:rgb(252 165 165 / var(--tw-border-opacity, 1))}.border-red-400{--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity, 1))}.border-red-50{--tw-border-opacity: 1;border-color:rgb(254 242 242 / var(--tw-border-opacity, 1))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.border-red-600{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1))}.border-red-700{--tw-border-opacity: 1;border-color:rgb(185 28 28 / var(--tw-border-opacity, 1))}.border-red-800{--tw-border-opacity: 1;border-color:rgb(153 27 27 / var(--tw-border-opacity, 1))}.border-red-900{--tw-border-opacity: 1;border-color:rgb(127 29 29 / var(--tw-border-opacity, 1))}.border-rose-100{--tw-border-opacity: 1;border-color:rgb(255 228 230 / var(--tw-border-opacity, 1))}.border-rose-200{--tw-border-opacity: 1;border-color:rgb(254 205 211 / var(--tw-border-opacity, 1))}.border-rose-300{--tw-border-opacity: 1;border-color:rgb(253 164 175 / var(--tw-border-opacity, 1))}.border-rose-400{--tw-border-opacity: 1;border-color:rgb(251 113 133 / var(--tw-border-opacity, 1))}.border-rose-50{--tw-border-opacity: 1;border-color:rgb(255 241 242 / var(--tw-border-opacity, 1))}.border-rose-500{--tw-border-opacity: 1;border-color:rgb(244 63 94 / var(--tw-border-opacity, 1))}.border-rose-600{--tw-border-opacity: 1;border-color:rgb(225 29 72 / var(--tw-border-opacity, 1))}.border-rose-700{--tw-border-opacity: 1;border-color:rgb(190 18 60 / var(--tw-border-opacity, 1))}.border-rose-800{--tw-border-opacity: 1;border-color:rgb(159 18 57 / var(--tw-border-opacity, 1))}.border-rose-900{--tw-border-opacity: 1;border-color:rgb(136 19 55 / var(--tw-border-opacity, 1))}.border-sky-100{--tw-border-opacity: 1;border-color:rgb(224 242 254 / var(--tw-border-opacity, 1))}.border-sky-200{--tw-border-opacity: 1;border-color:rgb(186 230 253 / var(--tw-border-opacity, 1))}.border-sky-300{--tw-border-opacity: 1;border-color:rgb(125 211 252 / var(--tw-border-opacity, 1))}.border-sky-400{--tw-border-opacity: 1;border-color:rgb(56 189 248 / var(--tw-border-opacity, 1))}.border-sky-50{--tw-border-opacity: 1;border-color:rgb(240 249 255 / var(--tw-border-opacity, 1))}.border-sky-500{--tw-border-opacity: 1;border-color:rgb(14 165 233 / var(--tw-border-opacity, 1))}.border-sky-600{--tw-border-opacity: 1;border-color:rgb(2 132 199 / var(--tw-border-opacity, 1))}.border-sky-700{--tw-border-opacity: 1;border-color:rgb(3 105 161 / var(--tw-border-opacity, 1))}.border-sky-800{--tw-border-opacity: 1;border-color:rgb(7 89 133 / var(--tw-border-opacity, 1))}.border-sky-900{--tw-border-opacity: 1;border-color:rgb(12 74 110 / var(--tw-border-opacity, 1))}.border-slate-100{--tw-border-opacity: 1;border-color:rgb(241 245 249 / var(--tw-border-opacity, 1))}.border-slate-200{--tw-border-opacity: 1;border-color:rgb(226 232 240 / var(--tw-border-opacity, 1))}.border-slate-300{--tw-border-opacity: 1;border-color:rgb(203 213 225 / var(--tw-border-opacity, 1))}.border-slate-400{--tw-border-opacity: 1;border-color:rgb(148 163 184 / var(--tw-border-opacity, 1))}.border-slate-50{--tw-border-opacity: 1;border-color:rgb(248 250 252 / var(--tw-border-opacity, 1))}.border-slate-500{--tw-border-opacity: 1;border-color:rgb(100 116 139 / var(--tw-border-opacity, 1))}.border-slate-600{--tw-border-opacity: 1;border-color:rgb(71 85 105 / var(--tw-border-opacity, 1))}.border-slate-700{--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity, 1))}.border-slate-800{--tw-border-opacity: 1;border-color:rgb(30 41 59 / var(--tw-border-opacity, 1))}.border-slate-900{--tw-border-opacity: 1;border-color:rgb(15 23 42 / var(--tw-border-opacity, 1))}.border-stone-100{--tw-border-opacity: 1;border-color:rgb(245 245 244 / var(--tw-border-opacity, 1))}.border-stone-200{--tw-border-opacity: 1;border-color:rgb(231 229 228 / var(--tw-border-opacity, 1))}.border-stone-300{--tw-border-opacity: 1;border-color:rgb(214 211 209 / var(--tw-border-opacity, 1))}.border-stone-400{--tw-border-opacity: 1;border-color:rgb(168 162 158 / var(--tw-border-opacity, 1))}.border-stone-50{--tw-border-opacity: 1;border-color:rgb(250 250 249 / var(--tw-border-opacity, 1))}.border-stone-500{--tw-border-opacity: 1;border-color:rgb(120 113 108 / var(--tw-border-opacity, 1))}.border-stone-600{--tw-border-opacity: 1;border-color:rgb(87 83 78 / var(--tw-border-opacity, 1))}.border-stone-700{--tw-border-opacity: 1;border-color:rgb(68 64 60 / var(--tw-border-opacity, 1))}.border-stone-800{--tw-border-opacity: 1;border-color:rgb(41 37 36 / var(--tw-border-opacity, 1))}.border-stone-900{--tw-border-opacity: 1;border-color:rgb(28 25 23 / var(--tw-border-opacity, 1))}.border-teal-100{--tw-border-opacity: 1;border-color:rgb(204 251 241 / var(--tw-border-opacity, 1))}.border-teal-200{--tw-border-opacity: 1;border-color:rgb(153 246 228 / var(--tw-border-opacity, 1))}.border-teal-300{--tw-border-opacity: 1;border-color:rgb(94 234 212 / var(--tw-border-opacity, 1))}.border-teal-400{--tw-border-opacity: 1;border-color:rgb(45 212 191 / var(--tw-border-opacity, 1))}.border-teal-50{--tw-border-opacity: 1;border-color:rgb(240 253 250 / var(--tw-border-opacity, 1))}.border-teal-500{--tw-border-opacity: 1;border-color:rgb(20 184 166 / var(--tw-border-opacity, 1))}.border-teal-600{--tw-border-opacity: 1;border-color:rgb(13 148 136 / var(--tw-border-opacity, 1))}.border-teal-700{--tw-border-opacity: 1;border-color:rgb(15 118 110 / var(--tw-border-opacity, 1))}.border-teal-800{--tw-border-opacity: 1;border-color:rgb(17 94 89 / var(--tw-border-opacity, 1))}.border-teal-900{--tw-border-opacity: 1;border-color:rgb(19 78 74 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.border-violet-100{--tw-border-opacity: 1;border-color:rgb(237 233 254 / var(--tw-border-opacity, 1))}.border-violet-200{--tw-border-opacity: 1;border-color:rgb(221 214 254 / var(--tw-border-opacity, 1))}.border-violet-300{--tw-border-opacity: 1;border-color:rgb(196 181 253 / var(--tw-border-opacity, 1))}.border-violet-400{--tw-border-opacity: 1;border-color:rgb(167 139 250 / var(--tw-border-opacity, 1))}.border-violet-50{--tw-border-opacity: 1;border-color:rgb(245 243 255 / var(--tw-border-opacity, 1))}.border-violet-500{--tw-border-opacity: 1;border-color:rgb(139 92 246 / var(--tw-border-opacity, 1))}.border-violet-600{--tw-border-opacity: 1;border-color:rgb(124 58 237 / var(--tw-border-opacity, 1))}.border-violet-700{--tw-border-opacity: 1;border-color:rgb(109 40 217 / var(--tw-border-opacity, 1))}.border-violet-800{--tw-border-opacity: 1;border-color:rgb(91 33 182 / var(--tw-border-opacity, 1))}.border-violet-900{--tw-border-opacity: 1;border-color:rgb(76 29 149 / var(--tw-border-opacity, 1))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.border-yellow-100{--tw-border-opacity: 1;border-color:rgb(254 249 195 / var(--tw-border-opacity, 1))}.border-yellow-200{--tw-border-opacity: 1;border-color:rgb(254 240 138 / var(--tw-border-opacity, 1))}.border-yellow-300{--tw-border-opacity: 1;border-color:rgb(253 224 71 / var(--tw-border-opacity, 1))}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(250 204 21 / var(--tw-border-opacity, 1))}.border-yellow-50{--tw-border-opacity: 1;border-color:rgb(254 252 232 / var(--tw-border-opacity, 1))}.border-yellow-500{--tw-border-opacity: 1;border-color:rgb(234 179 8 / var(--tw-border-opacity, 1))}.border-yellow-600{--tw-border-opacity: 1;border-color:rgb(202 138 4 / var(--tw-border-opacity, 1))}.border-yellow-700{--tw-border-opacity: 1;border-color:rgb(161 98 7 / var(--tw-border-opacity, 1))}.border-yellow-800{--tw-border-opacity: 1;border-color:rgb(133 77 14 / var(--tw-border-opacity, 1))}.border-yellow-900{--tw-border-opacity: 1;border-color:rgb(113 63 18 / var(--tw-border-opacity, 1))}.border-zinc-100{--tw-border-opacity: 1;border-color:rgb(244 244 245 / var(--tw-border-opacity, 1))}.border-zinc-200{--tw-border-opacity: 1;border-color:rgb(228 228 231 / var(--tw-border-opacity, 1))}.border-zinc-300{--tw-border-opacity: 1;border-color:rgb(212 212 216 / var(--tw-border-opacity, 1))}.border-zinc-400{--tw-border-opacity: 1;border-color:rgb(161 161 170 / var(--tw-border-opacity, 1))}.border-zinc-50{--tw-border-opacity: 1;border-color:rgb(250 250 250 / var(--tw-border-opacity, 1))}.border-zinc-500{--tw-border-opacity: 1;border-color:rgb(113 113 122 / var(--tw-border-opacity, 1))}.border-zinc-600{--tw-border-opacity: 1;border-color:rgb(82 82 91 / var(--tw-border-opacity, 1))}.border-zinc-700{--tw-border-opacity: 1;border-color:rgb(63 63 70 / var(--tw-border-opacity, 1))}.border-zinc-800{--tw-border-opacity: 1;border-color:rgb(39 39 42 / var(--tw-border-opacity, 1))}.border-zinc-900{--tw-border-opacity: 1;border-color:rgb(24 24 27 / var(--tw-border-opacity, 1))}.border-r-transparent{border-right-color:transparent}.bg-amber-100{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}.bg-amber-200{--tw-bg-opacity: 1;background-color:rgb(253 230 138 / var(--tw-bg-opacity, 1))}.bg-amber-300{--tw-bg-opacity: 1;background-color:rgb(252 211 77 / var(--tw-bg-opacity, 1))}.bg-amber-400{--tw-bg-opacity: 1;background-color:rgb(251 191 36 / var(--tw-bg-opacity, 1))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-amber-500{--tw-bg-opacity: 1;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))}.bg-amber-600{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity, 1))}.bg-amber-700{--tw-bg-opacity: 1;background-color:rgb(180 83 9 / var(--tw-bg-opacity, 1))}.bg-amber-800{--tw-bg-opacity: 1;background-color:rgb(146 64 14 / var(--tw-bg-opacity, 1))}.bg-amber-900{--tw-bg-opacity: 1;background-color:rgb(120 53 15 / var(--tw-bg-opacity, 1))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-black\\/0{background-color:#0000}.bg-black\\/50{background-color:#00000080}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.bg-blue-200{--tw-bg-opacity: 1;background-color:rgb(191 219 254 / var(--tw-bg-opacity, 1))}.bg-blue-300{--tw-bg-opacity: 1;background-color:rgb(147 197 253 / var(--tw-bg-opacity, 1))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity, 1))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))}.bg-blue-800{--tw-bg-opacity: 1;background-color:rgb(30 64 175 / var(--tw-bg-opacity, 1))}.bg-blue-900{--tw-bg-opacity: 1;background-color:rgb(30 58 138 / var(--tw-bg-opacity, 1))}.bg-cyan-100{--tw-bg-opacity: 1;background-color:rgb(207 250 254 / var(--tw-bg-opacity, 1))}.bg-cyan-200{--tw-bg-opacity: 1;background-color:rgb(165 243 252 / var(--tw-bg-opacity, 1))}.bg-cyan-300{--tw-bg-opacity: 1;background-color:rgb(103 232 249 / var(--tw-bg-opacity, 1))}.bg-cyan-400{--tw-bg-opacity: 1;background-color:rgb(34 211 238 / var(--tw-bg-opacity, 1))}.bg-cyan-50{--tw-bg-opacity: 1;background-color:rgb(236 254 255 / var(--tw-bg-opacity, 1))}.bg-cyan-500{--tw-bg-opacity: 1;background-color:rgb(6 182 212 / var(--tw-bg-opacity, 1))}.bg-cyan-600{--tw-bg-opacity: 1;background-color:rgb(8 145 178 / var(--tw-bg-opacity, 1))}.bg-cyan-700{--tw-bg-opacity: 1;background-color:rgb(14 116 144 / var(--tw-bg-opacity, 1))}.bg-cyan-800{--tw-bg-opacity: 1;background-color:rgb(21 94 117 / var(--tw-bg-opacity, 1))}.bg-cyan-900{--tw-bg-opacity: 1;background-color:rgb(22 78 99 / var(--tw-bg-opacity, 1))}.bg-emerald-100{--tw-bg-opacity: 1;background-color:rgb(209 250 229 / var(--tw-bg-opacity, 1))}.bg-emerald-200{--tw-bg-opacity: 1;background-color:rgb(167 243 208 / var(--tw-bg-opacity, 1))}.bg-emerald-300{--tw-bg-opacity: 1;background-color:rgb(110 231 183 / var(--tw-bg-opacity, 1))}.bg-emerald-400{--tw-bg-opacity: 1;background-color:rgb(52 211 153 / var(--tw-bg-opacity, 1))}.bg-emerald-50{--tw-bg-opacity: 1;background-color:rgb(236 253 245 / var(--tw-bg-opacity, 1))}.bg-emerald-500{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity, 1))}.bg-emerald-700{--tw-bg-opacity: 1;background-color:rgb(4 120 87 / var(--tw-bg-opacity, 1))}.bg-emerald-800{--tw-bg-opacity: 1;background-color:rgb(6 95 70 / var(--tw-bg-opacity, 1))}.bg-emerald-900{--tw-bg-opacity: 1;background-color:rgb(6 78 59 / var(--tw-bg-opacity, 1))}.bg-fuchsia-100{--tw-bg-opacity: 1;background-color:rgb(250 232 255 / var(--tw-bg-opacity, 1))}.bg-fuchsia-200{--tw-bg-opacity: 1;background-color:rgb(245 208 254 / var(--tw-bg-opacity, 1))}.bg-fuchsia-300{--tw-bg-opacity: 1;background-color:rgb(240 171 252 / var(--tw-bg-opacity, 1))}.bg-fuchsia-400{--tw-bg-opacity: 1;background-color:rgb(232 121 249 / var(--tw-bg-opacity, 1))}.bg-fuchsia-50{--tw-bg-opacity: 1;background-color:rgb(253 244 255 / var(--tw-bg-opacity, 1))}.bg-fuchsia-500{--tw-bg-opacity: 1;background-color:rgb(217 70 239 / var(--tw-bg-opacity, 1))}.bg-fuchsia-600{--tw-bg-opacity: 1;background-color:rgb(192 38 211 / var(--tw-bg-opacity, 1))}.bg-fuchsia-700{--tw-bg-opacity: 1;background-color:rgb(162 28 175 / var(--tw-bg-opacity, 1))}.bg-fuchsia-800{--tw-bg-opacity: 1;background-color:rgb(134 25 143 / var(--tw-bg-opacity, 1))}.bg-fuchsia-900{--tw-bg-opacity: 1;background-color:rgb(112 26 117 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity, 1))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.bg-gray-800\\/40{background-color:#1f293766}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-gray-950{--tw-bg-opacity: 1;background-color:rgb(3 7 18 / var(--tw-bg-opacity, 1))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.bg-green-200{--tw-bg-opacity: 1;background-color:rgb(187 247 208 / var(--tw-bg-opacity, 1))}.bg-green-300{--tw-bg-opacity: 1;background-color:rgb(134 239 172 / var(--tw-bg-opacity, 1))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity, 1))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.bg-green-700{--tw-bg-opacity: 1;background-color:rgb(21 128 61 / var(--tw-bg-opacity, 1))}.bg-green-800{--tw-bg-opacity: 1;background-color:rgb(22 101 52 / var(--tw-bg-opacity, 1))}.bg-green-900{--tw-bg-opacity: 1;background-color:rgb(20 83 45 / var(--tw-bg-opacity, 1))}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(224 231 255 / var(--tw-bg-opacity, 1))}.bg-indigo-200{--tw-bg-opacity: 1;background-color:rgb(199 210 254 / var(--tw-bg-opacity, 1))}.bg-indigo-300{--tw-bg-opacity: 1;background-color:rgb(165 180 252 / var(--tw-bg-opacity, 1))}.bg-indigo-400{--tw-bg-opacity: 1;background-color:rgb(129 140 248 / var(--tw-bg-opacity, 1))}.bg-indigo-50{--tw-bg-opacity: 1;background-color:rgb(238 242 255 / var(--tw-bg-opacity, 1))}.bg-indigo-500{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity, 1))}.bg-indigo-700{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity, 1))}.bg-indigo-800{--tw-bg-opacity: 1;background-color:rgb(55 48 163 / var(--tw-bg-opacity, 1))}.bg-indigo-900{--tw-bg-opacity: 1;background-color:rgb(49 46 129 / var(--tw-bg-opacity, 1))}.bg-lime-100{--tw-bg-opacity: 1;background-color:rgb(236 252 203 / var(--tw-bg-opacity, 1))}.bg-lime-200{--tw-bg-opacity: 1;background-color:rgb(217 249 157 / var(--tw-bg-opacity, 1))}.bg-lime-300{--tw-bg-opacity: 1;background-color:rgb(190 242 100 / var(--tw-bg-opacity, 1))}.bg-lime-400{--tw-bg-opacity: 1;background-color:rgb(163 230 53 / var(--tw-bg-opacity, 1))}.bg-lime-50{--tw-bg-opacity: 1;background-color:rgb(247 254 231 / var(--tw-bg-opacity, 1))}.bg-lime-500{--tw-bg-opacity: 1;background-color:rgb(132 204 22 / var(--tw-bg-opacity, 1))}.bg-lime-600{--tw-bg-opacity: 1;background-color:rgb(101 163 13 / var(--tw-bg-opacity, 1))}.bg-lime-700{--tw-bg-opacity: 1;background-color:rgb(77 124 15 / var(--tw-bg-opacity, 1))}.bg-lime-800{--tw-bg-opacity: 1;background-color:rgb(63 98 18 / var(--tw-bg-opacity, 1))}.bg-lime-900{--tw-bg-opacity: 1;background-color:rgb(54 83 20 / var(--tw-bg-opacity, 1))}.bg-myPrimaryBrandColor{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-myPrimaryErrorColor{--tw-bg-opacity: 1;background-color:rgb(214 0 0 / var(--tw-bg-opacity, 1))}.bg-myPrimaryLightGrayColor{--tw-bg-opacity: 1;background-color:rgb(239 242 246 / var(--tw-bg-opacity, 1))}.bg-myPrimaryLinkColor{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.bg-neutral-100{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity, 1))}.bg-neutral-200{--tw-bg-opacity: 1;background-color:rgb(229 229 229 / var(--tw-bg-opacity, 1))}.bg-neutral-300{--tw-bg-opacity: 1;background-color:rgb(212 212 212 / var(--tw-bg-opacity, 1))}.bg-neutral-400{--tw-bg-opacity: 1;background-color:rgb(163 163 163 / var(--tw-bg-opacity, 1))}.bg-neutral-50{--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity, 1))}.bg-neutral-500{--tw-bg-opacity: 1;background-color:rgb(115 115 115 / var(--tw-bg-opacity, 1))}.bg-neutral-600{--tw-bg-opacity: 1;background-color:rgb(82 82 82 / var(--tw-bg-opacity, 1))}.bg-neutral-700{--tw-bg-opacity: 1;background-color:rgb(64 64 64 / var(--tw-bg-opacity, 1))}.bg-neutral-800{--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity, 1))}.bg-neutral-900{--tw-bg-opacity: 1;background-color:rgb(23 23 23 / var(--tw-bg-opacity, 1))}.bg-orange-100{--tw-bg-opacity: 1;background-color:rgb(255 237 213 / var(--tw-bg-opacity, 1))}.bg-orange-200{--tw-bg-opacity: 1;background-color:rgb(254 215 170 / var(--tw-bg-opacity, 1))}.bg-orange-300{--tw-bg-opacity: 1;background-color:rgb(253 186 116 / var(--tw-bg-opacity, 1))}.bg-orange-400{--tw-bg-opacity: 1;background-color:rgb(251 146 60 / var(--tw-bg-opacity, 1))}.bg-orange-50{--tw-bg-opacity: 1;background-color:rgb(255 247 237 / var(--tw-bg-opacity, 1))}.bg-orange-500{--tw-bg-opacity: 1;background-color:rgb(249 115 22 / var(--tw-bg-opacity, 1))}.bg-orange-600{--tw-bg-opacity: 1;background-color:rgb(234 88 12 / var(--tw-bg-opacity, 1))}.bg-orange-700{--tw-bg-opacity: 1;background-color:rgb(194 65 12 / var(--tw-bg-opacity, 1))}.bg-orange-800{--tw-bg-opacity: 1;background-color:rgb(154 52 18 / var(--tw-bg-opacity, 1))}.bg-orange-900{--tw-bg-opacity: 1;background-color:rgb(124 45 18 / var(--tw-bg-opacity, 1))}.bg-pink-100{--tw-bg-opacity: 1;background-color:rgb(252 231 243 / var(--tw-bg-opacity, 1))}.bg-pink-200{--tw-bg-opacity: 1;background-color:rgb(251 207 232 / var(--tw-bg-opacity, 1))}.bg-pink-300{--tw-bg-opacity: 1;background-color:rgb(249 168 212 / var(--tw-bg-opacity, 1))}.bg-pink-400{--tw-bg-opacity: 1;background-color:rgb(244 114 182 / var(--tw-bg-opacity, 1))}.bg-pink-50{--tw-bg-opacity: 1;background-color:rgb(253 242 248 / var(--tw-bg-opacity, 1))}.bg-pink-500{--tw-bg-opacity: 1;background-color:rgb(236 72 153 / var(--tw-bg-opacity, 1))}.bg-pink-600{--tw-bg-opacity: 1;background-color:rgb(219 39 119 / var(--tw-bg-opacity, 1))}.bg-pink-700{--tw-bg-opacity: 1;background-color:rgb(190 24 93 / var(--tw-bg-opacity, 1))}.bg-pink-800{--tw-bg-opacity: 1;background-color:rgb(157 23 77 / var(--tw-bg-opacity, 1))}.bg-pink-900{--tw-bg-opacity: 1;background-color:rgb(131 24 67 / var(--tw-bg-opacity, 1))}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(243 232 255 / var(--tw-bg-opacity, 1))}.bg-purple-200{--tw-bg-opacity: 1;background-color:rgb(233 213 255 / var(--tw-bg-opacity, 1))}.bg-purple-300{--tw-bg-opacity: 1;background-color:rgb(216 180 254 / var(--tw-bg-opacity, 1))}.bg-purple-400{--tw-bg-opacity: 1;background-color:rgb(192 132 252 / var(--tw-bg-opacity, 1))}.bg-purple-50{--tw-bg-opacity: 1;background-color:rgb(250 245 255 / var(--tw-bg-opacity, 1))}.bg-purple-500{--tw-bg-opacity: 1;background-color:rgb(168 85 247 / var(--tw-bg-opacity, 1))}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(147 51 234 / var(--tw-bg-opacity, 1))}.bg-purple-700{--tw-bg-opacity: 1;background-color:rgb(126 34 206 / var(--tw-bg-opacity, 1))}.bg-purple-800{--tw-bg-opacity: 1;background-color:rgb(107 33 168 / var(--tw-bg-opacity, 1))}.bg-purple-900{--tw-bg-opacity: 1;background-color:rgb(88 28 135 / var(--tw-bg-opacity, 1))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.bg-red-200{--tw-bg-opacity: 1;background-color:rgb(254 202 202 / var(--tw-bg-opacity, 1))}.bg-red-300{--tw-bg-opacity: 1;background-color:rgb(252 165 165 / var(--tw-bg-opacity, 1))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity, 1))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-red-700{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))}.bg-red-800{--tw-bg-opacity: 1;background-color:rgb(153 27 27 / var(--tw-bg-opacity, 1))}.bg-red-900{--tw-bg-opacity: 1;background-color:rgb(127 29 29 / var(--tw-bg-opacity, 1))}.bg-rose-100{--tw-bg-opacity: 1;background-color:rgb(255 228 230 / var(--tw-bg-opacity, 1))}.bg-rose-200{--tw-bg-opacity: 1;background-color:rgb(254 205 211 / var(--tw-bg-opacity, 1))}.bg-rose-300{--tw-bg-opacity: 1;background-color:rgb(253 164 175 / var(--tw-bg-opacity, 1))}.bg-rose-400{--tw-bg-opacity: 1;background-color:rgb(251 113 133 / var(--tw-bg-opacity, 1))}.bg-rose-50{--tw-bg-opacity: 1;background-color:rgb(255 241 242 / var(--tw-bg-opacity, 1))}.bg-rose-500{--tw-bg-opacity: 1;background-color:rgb(244 63 94 / var(--tw-bg-opacity, 1))}.bg-rose-600{--tw-bg-opacity: 1;background-color:rgb(225 29 72 / var(--tw-bg-opacity, 1))}.bg-rose-700{--tw-bg-opacity: 1;background-color:rgb(190 18 60 / var(--tw-bg-opacity, 1))}.bg-rose-800{--tw-bg-opacity: 1;background-color:rgb(159 18 57 / var(--tw-bg-opacity, 1))}.bg-rose-900{--tw-bg-opacity: 1;background-color:rgb(136 19 55 / var(--tw-bg-opacity, 1))}.bg-sky-100{--tw-bg-opacity: 1;background-color:rgb(224 242 254 / var(--tw-bg-opacity, 1))}.bg-sky-200{--tw-bg-opacity: 1;background-color:rgb(186 230 253 / var(--tw-bg-opacity, 1))}.bg-sky-300{--tw-bg-opacity: 1;background-color:rgb(125 211 252 / var(--tw-bg-opacity, 1))}.bg-sky-400{--tw-bg-opacity: 1;background-color:rgb(56 189 248 / var(--tw-bg-opacity, 1))}.bg-sky-50{--tw-bg-opacity: 1;background-color:rgb(240 249 255 / var(--tw-bg-opacity, 1))}.bg-sky-500{--tw-bg-opacity: 1;background-color:rgb(14 165 233 / var(--tw-bg-opacity, 1))}.bg-sky-600{--tw-bg-opacity: 1;background-color:rgb(2 132 199 / var(--tw-bg-opacity, 1))}.bg-sky-700{--tw-bg-opacity: 1;background-color:rgb(3 105 161 / var(--tw-bg-opacity, 1))}.bg-sky-800{--tw-bg-opacity: 1;background-color:rgb(7 89 133 / var(--tw-bg-opacity, 1))}.bg-sky-900{--tw-bg-opacity: 1;background-color:rgb(12 74 110 / var(--tw-bg-opacity, 1))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity, 1))}.bg-slate-200{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity, 1))}.bg-slate-300{--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity, 1))}.bg-slate-400{--tw-bg-opacity: 1;background-color:rgb(148 163 184 / var(--tw-bg-opacity, 1))}.bg-slate-50{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity, 1))}.bg-slate-500{--tw-bg-opacity: 1;background-color:rgb(100 116 139 / var(--tw-bg-opacity, 1))}.bg-slate-600{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity, 1))}.bg-slate-700{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity, 1))}.bg-slate-800{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.bg-slate-900{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity, 1))}.bg-stone-100{--tw-bg-opacity: 1;background-color:rgb(245 245 244 / var(--tw-bg-opacity, 1))}.bg-stone-200{--tw-bg-opacity: 1;background-color:rgb(231 229 228 / var(--tw-bg-opacity, 1))}.bg-stone-300{--tw-bg-opacity: 1;background-color:rgb(214 211 209 / var(--tw-bg-opacity, 1))}.bg-stone-400{--tw-bg-opacity: 1;background-color:rgb(168 162 158 / var(--tw-bg-opacity, 1))}.bg-stone-50{--tw-bg-opacity: 1;background-color:rgb(250 250 249 / var(--tw-bg-opacity, 1))}.bg-stone-500{--tw-bg-opacity: 1;background-color:rgb(120 113 108 / var(--tw-bg-opacity, 1))}.bg-stone-600{--tw-bg-opacity: 1;background-color:rgb(87 83 78 / var(--tw-bg-opacity, 1))}.bg-stone-700{--tw-bg-opacity: 1;background-color:rgb(68 64 60 / var(--tw-bg-opacity, 1))}.bg-stone-800{--tw-bg-opacity: 1;background-color:rgb(41 37 36 / var(--tw-bg-opacity, 1))}.bg-stone-900{--tw-bg-opacity: 1;background-color:rgb(28 25 23 / var(--tw-bg-opacity, 1))}.bg-teal-100{--tw-bg-opacity: 1;background-color:rgb(204 251 241 / var(--tw-bg-opacity, 1))}.bg-teal-200{--tw-bg-opacity: 1;background-color:rgb(153 246 228 / var(--tw-bg-opacity, 1))}.bg-teal-300{--tw-bg-opacity: 1;background-color:rgb(94 234 212 / var(--tw-bg-opacity, 1))}.bg-teal-400{--tw-bg-opacity: 1;background-color:rgb(45 212 191 / var(--tw-bg-opacity, 1))}.bg-teal-50{--tw-bg-opacity: 1;background-color:rgb(240 253 250 / var(--tw-bg-opacity, 1))}.bg-teal-500{--tw-bg-opacity: 1;background-color:rgb(20 184 166 / var(--tw-bg-opacity, 1))}.bg-teal-600{--tw-bg-opacity: 1;background-color:rgb(13 148 136 / var(--tw-bg-opacity, 1))}.bg-teal-700{--tw-bg-opacity: 1;background-color:rgb(15 118 110 / var(--tw-bg-opacity, 1))}.bg-teal-800{--tw-bg-opacity: 1;background-color:rgb(17 94 89 / var(--tw-bg-opacity, 1))}.bg-teal-900{--tw-bg-opacity: 1;background-color:rgb(19 78 74 / var(--tw-bg-opacity, 1))}.bg-violet-100{--tw-bg-opacity: 1;background-color:rgb(237 233 254 / var(--tw-bg-opacity, 1))}.bg-violet-200{--tw-bg-opacity: 1;background-color:rgb(221 214 254 / var(--tw-bg-opacity, 1))}.bg-violet-300{--tw-bg-opacity: 1;background-color:rgb(196 181 253 / var(--tw-bg-opacity, 1))}.bg-violet-400{--tw-bg-opacity: 1;background-color:rgb(167 139 250 / var(--tw-bg-opacity, 1))}.bg-violet-50{--tw-bg-opacity: 1;background-color:rgb(245 243 255 / var(--tw-bg-opacity, 1))}.bg-violet-500{--tw-bg-opacity: 1;background-color:rgb(139 92 246 / var(--tw-bg-opacity, 1))}.bg-violet-600{--tw-bg-opacity: 1;background-color:rgb(124 58 237 / var(--tw-bg-opacity, 1))}.bg-violet-700{--tw-bg-opacity: 1;background-color:rgb(109 40 217 / var(--tw-bg-opacity, 1))}.bg-violet-800{--tw-bg-opacity: 1;background-color:rgb(91 33 182 / var(--tw-bg-opacity, 1))}.bg-violet-900{--tw-bg-opacity: 1;background-color:rgb(76 29 149 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity, 1))}.bg-yellow-200{--tw-bg-opacity: 1;background-color:rgb(254 240 138 / var(--tw-bg-opacity, 1))}.bg-yellow-300{--tw-bg-opacity: 1;background-color:rgb(253 224 71 / var(--tw-bg-opacity, 1))}.bg-yellow-400{--tw-bg-opacity: 1;background-color:rgb(250 204 21 / var(--tw-bg-opacity, 1))}.bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity, 1))}.bg-yellow-500{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity, 1))}.bg-yellow-600{--tw-bg-opacity: 1;background-color:rgb(202 138 4 / var(--tw-bg-opacity, 1))}.bg-yellow-700{--tw-bg-opacity: 1;background-color:rgb(161 98 7 / var(--tw-bg-opacity, 1))}.bg-yellow-800{--tw-bg-opacity: 1;background-color:rgb(133 77 14 / var(--tw-bg-opacity, 1))}.bg-yellow-900{--tw-bg-opacity: 1;background-color:rgb(113 63 18 / var(--tw-bg-opacity, 1))}.bg-zinc-100{--tw-bg-opacity: 1;background-color:rgb(244 244 245 / var(--tw-bg-opacity, 1))}.bg-zinc-200{--tw-bg-opacity: 1;background-color:rgb(228 228 231 / var(--tw-bg-opacity, 1))}.bg-zinc-300{--tw-bg-opacity: 1;background-color:rgb(212 212 216 / var(--tw-bg-opacity, 1))}.bg-zinc-400{--tw-bg-opacity: 1;background-color:rgb(161 161 170 / var(--tw-bg-opacity, 1))}.bg-zinc-50{--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity, 1))}.bg-zinc-500{--tw-bg-opacity: 1;background-color:rgb(113 113 122 / var(--tw-bg-opacity, 1))}.bg-zinc-600{--tw-bg-opacity: 1;background-color:rgb(82 82 91 / var(--tw-bg-opacity, 1))}.bg-zinc-700{--tw-bg-opacity: 1;background-color:rgb(63 63 70 / var(--tw-bg-opacity, 1))}.bg-zinc-800{--tw-bg-opacity: 1;background-color:rgb(39 39 42 / var(--tw-bg-opacity, 1))}.bg-zinc-900{--tw-bg-opacity: 1;background-color:rgb(24 24 27 / var(--tw-bg-opacity, 1))}.bg-opacity-0{--tw-bg-opacity: 0}.bg-opacity-10{--tw-bg-opacity: .1}.bg-opacity-100{--tw-bg-opacity: 1}.bg-opacity-20{--tw-bg-opacity: .2}.bg-opacity-25{--tw-bg-opacity: .25}.bg-opacity-30{--tw-bg-opacity: .3}.bg-opacity-40{--tw-bg-opacity: .4}.bg-opacity-5{--tw-bg-opacity: .05}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-60{--tw-bg-opacity: .6}.bg-opacity-70{--tw-bg-opacity: .7}.bg-opacity-75{--tw-bg-opacity: .75}.bg-opacity-80{--tw-bg-opacity: .8}.bg-opacity-90{--tw-bg-opacity: .9}.bg-opacity-95{--tw-bg-opacity: .95}.fill-gray-800{fill:#1f2937}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.object-fill{-o-object-fit:fill;object-fit:fill}.object-none{-o-object-fit:none;object-fit:none}.object-scale-down{-o-object-fit:scale-down;object-fit:scale-down}.object-bottom{-o-object-position:bottom;object-position:bottom}.object-center{-o-object-position:center;object-position:center}.object-left{-o-object-position:left;object-position:left}.object-left-bottom{-o-object-position:left bottom;object-position:left bottom}.object-left-top{-o-object-position:left top;object-position:left top}.object-right{-o-object-position:right;object-position:right}.object-right-bottom{-o-object-position:right bottom;object-position:right bottom}.object-right-top{-o-object-position:right top;object-position:right top}.object-top{-o-object-position:top;object-position:top}.\\!p-0{padding:0!important}.p-0{padding:0}.p-1{padding:.25rem}.p-1\\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-0{padding-left:0;padding-right:0}.px-0\\.5{padding-left:.125rem;padding-right:.125rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-11{padding-left:2.75rem;padding-right:2.75rem}.px-12{padding-left:3rem;padding-right:3rem}.px-14{padding-left:3.5rem;padding-right:3.5rem}.px-16{padding-left:4rem;padding-right:4rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-20{padding-left:5rem;padding-right:5rem}.px-24{padding-left:6rem;padding-right:6rem}.px-28{padding-left:7rem;padding-right:7rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-32{padding-left:8rem;padding-right:8rem}.px-36{padding-left:9rem;padding-right:9rem}.px-4{padding-left:1rem;padding-right:1rem}.px-40{padding-left:10rem;padding-right:10rem}.px-44{padding-left:11rem;padding-right:11rem}.px-48{padding-left:12rem;padding-right:12rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-52{padding-left:13rem;padding-right:13rem}.px-56{padding-left:14rem;padding-right:14rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-60{padding-left:15rem;padding-right:15rem}.px-64{padding-left:16rem;padding-right:16rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.px-72{padding-left:18rem;padding-right:18rem}.px-8{padding-left:2rem;padding-right:2rem}.px-80{padding-left:20rem;padding-right:20rem}.px-9{padding-left:2.25rem;padding-right:2.25rem}.px-96{padding-left:24rem;padding-right:24rem}.py-0{padding-top:0;padding-bottom:0}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-11{padding-top:2.75rem;padding-bottom:2.75rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-14{padding-top:3.5rem;padding-bottom:3.5rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-24{padding-top:6rem;padding-bottom:6rem}.py-28{padding-top:7rem;padding-bottom:7rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.py-32{padding-top:8rem;padding-bottom:8rem}.py-36{padding-top:9rem;padding-bottom:9rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-40{padding-top:10rem;padding-bottom:10rem}.py-44{padding-top:11rem;padding-bottom:11rem}.py-48{padding-top:12rem;padding-bottom:12rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-52{padding-top:13rem;padding-bottom:13rem}.py-56{padding-top:14rem;padding-bottom:14rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-60{padding-top:15rem;padding-bottom:15rem}.py-64{padding-top:16rem;padding-bottom:16rem}.py-7{padding-top:1.75rem;padding-bottom:1.75rem}.py-72{padding-top:18rem;padding-bottom:18rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-80{padding-top:20rem;padding-bottom:20rem}.py-9{padding-top:2.25rem;padding-bottom:2.25rem}.py-96{padding-top:24rem;padding-bottom:24rem}.pb-1{padding-bottom:.25rem}.pb-12{padding-bottom:3rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-6{padding-right:1.5rem}.pr-9{padding-right:2.25rem}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-6{padding-top:1.5rem}.pt-7{padding-top:1.75rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-justify{text-align:justify}.text-start{text-align:start}.text-end{text-align:end}.indent-0{text-indent:0px}.indent-1{text-indent:.25rem}.indent-2{text-indent:.5rem}.indent-4{text-indent:1rem}.indent-8{text-indent:2rem}.indent-px{text-indent:1px}.align-bottom{vertical-align:bottom}.align-\\[-0\\.125em\\]{vertical-align:-.125em}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:Jost,Raleway,Cormorant,sans-serif,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.font-serif{font-family:ui-serif,Georgia,Cambria,Times New Roman,Times,serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-6xl{font-size:3.75rem;line-height:1}.text-7xl{font-size:4.5rem;line-height:1}.text-8xl{font-size:6rem;line-height:1}.text-9xl{font-size:8rem;line-height:1}.text-\\[12\\.5px\\]{font-size:12.5px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-black{font-weight:900}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-extralight{font-weight:200}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.normal-case{text-transform:none}.italic{font-style:italic}.not-italic{font-style:normal}.leading-none{line-height:1}.tracking-wider{letter-spacing:.05em}.text-amber-100{--tw-text-opacity: 1;color:rgb(254 243 199 / var(--tw-text-opacity, 1))}.text-amber-200{--tw-text-opacity: 1;color:rgb(253 230 138 / var(--tw-text-opacity, 1))}.text-amber-300{--tw-text-opacity: 1;color:rgb(252 211 77 / var(--tw-text-opacity, 1))}.text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.text-amber-50{--tw-text-opacity: 1;color:rgb(255 251 235 / var(--tw-text-opacity, 1))}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity, 1))}.text-amber-600{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}.text-amber-700{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}.text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.text-amber-900{--tw-text-opacity: 1;color:rgb(120 53 15 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-blue-100{--tw-text-opacity: 1;color:rgb(219 234 254 / var(--tw-text-opacity, 1))}.text-blue-200{--tw-text-opacity: 1;color:rgb(191 219 254 / var(--tw-text-opacity, 1))}.text-blue-300{--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity, 1))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.text-blue-50{--tw-text-opacity: 1;color:rgb(239 246 255 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.text-blue-900{--tw-text-opacity: 1;color:rgb(30 58 138 / var(--tw-text-opacity, 1))}.text-cyan-100{--tw-text-opacity: 1;color:rgb(207 250 254 / var(--tw-text-opacity, 1))}.text-cyan-200{--tw-text-opacity: 1;color:rgb(165 243 252 / var(--tw-text-opacity, 1))}.text-cyan-300{--tw-text-opacity: 1;color:rgb(103 232 249 / var(--tw-text-opacity, 1))}.text-cyan-400{--tw-text-opacity: 1;color:rgb(34 211 238 / var(--tw-text-opacity, 1))}.text-cyan-50{--tw-text-opacity: 1;color:rgb(236 254 255 / var(--tw-text-opacity, 1))}.text-cyan-500{--tw-text-opacity: 1;color:rgb(6 182 212 / var(--tw-text-opacity, 1))}.text-cyan-600{--tw-text-opacity: 1;color:rgb(8 145 178 / var(--tw-text-opacity, 1))}.text-cyan-700{--tw-text-opacity: 1;color:rgb(14 116 144 / var(--tw-text-opacity, 1))}.text-cyan-800{--tw-text-opacity: 1;color:rgb(21 94 117 / var(--tw-text-opacity, 1))}.text-cyan-900{--tw-text-opacity: 1;color:rgb(22 78 99 / var(--tw-text-opacity, 1))}.text-emerald-100{--tw-text-opacity: 1;color:rgb(209 250 229 / var(--tw-text-opacity, 1))}.text-emerald-200{--tw-text-opacity: 1;color:rgb(167 243 208 / var(--tw-text-opacity, 1))}.text-emerald-300{--tw-text-opacity: 1;color:rgb(110 231 183 / var(--tw-text-opacity, 1))}.text-emerald-400{--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}.text-emerald-50{--tw-text-opacity: 1;color:rgb(236 253 245 / var(--tw-text-opacity, 1))}.text-emerald-500{--tw-text-opacity: 1;color:rgb(16 185 129 / var(--tw-text-opacity, 1))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-emerald-700{--tw-text-opacity: 1;color:rgb(4 120 87 / var(--tw-text-opacity, 1))}.text-emerald-800{--tw-text-opacity: 1;color:rgb(6 95 70 / var(--tw-text-opacity, 1))}.text-emerald-900{--tw-text-opacity: 1;color:rgb(6 78 59 / var(--tw-text-opacity, 1))}.text-fuchsia-100{--tw-text-opacity: 1;color:rgb(250 232 255 / var(--tw-text-opacity, 1))}.text-fuchsia-200{--tw-text-opacity: 1;color:rgb(245 208 254 / var(--tw-text-opacity, 1))}.text-fuchsia-300{--tw-text-opacity: 1;color:rgb(240 171 252 / var(--tw-text-opacity, 1))}.text-fuchsia-400{--tw-text-opacity: 1;color:rgb(232 121 249 / var(--tw-text-opacity, 1))}.text-fuchsia-50{--tw-text-opacity: 1;color:rgb(253 244 255 / var(--tw-text-opacity, 1))}.text-fuchsia-500{--tw-text-opacity: 1;color:rgb(217 70 239 / var(--tw-text-opacity, 1))}.text-fuchsia-600{--tw-text-opacity: 1;color:rgb(192 38 211 / var(--tw-text-opacity, 1))}.text-fuchsia-700{--tw-text-opacity: 1;color:rgb(162 28 175 / var(--tw-text-opacity, 1))}.text-fuchsia-800{--tw-text-opacity: 1;color:rgb(134 25 143 / var(--tw-text-opacity, 1))}.text-fuchsia-900{--tw-text-opacity: 1;color:rgb(112 26 117 / var(--tw-text-opacity, 1))}.text-gray-100{--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity, 1))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-50{--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-green-100{--tw-text-opacity: 1;color:rgb(220 252 231 / var(--tw-text-opacity, 1))}.text-green-200{--tw-text-opacity: 1;color:rgb(187 247 208 / var(--tw-text-opacity, 1))}.text-green-300{--tw-text-opacity: 1;color:rgb(134 239 172 / var(--tw-text-opacity, 1))}.text-green-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.text-green-50{--tw-text-opacity: 1;color:rgb(240 253 244 / var(--tw-text-opacity, 1))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.text-green-900{--tw-text-opacity: 1;color:rgb(20 83 45 / var(--tw-text-opacity, 1))}.text-indigo-100{--tw-text-opacity: 1;color:rgb(224 231 255 / var(--tw-text-opacity, 1))}.text-indigo-200{--tw-text-opacity: 1;color:rgb(199 210 254 / var(--tw-text-opacity, 1))}.text-indigo-300{--tw-text-opacity: 1;color:rgb(165 180 252 / var(--tw-text-opacity, 1))}.text-indigo-400{--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity, 1))}.text-indigo-50{--tw-text-opacity: 1;color:rgb(238 242 255 / var(--tw-text-opacity, 1))}.text-indigo-500{--tw-text-opacity: 1;color:rgb(99 102 241 / var(--tw-text-opacity, 1))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity, 1))}.text-indigo-700{--tw-text-opacity: 1;color:rgb(67 56 202 / var(--tw-text-opacity, 1))}.text-indigo-800{--tw-text-opacity: 1;color:rgb(55 48 163 / var(--tw-text-opacity, 1))}.text-indigo-900{--tw-text-opacity: 1;color:rgb(49 46 129 / var(--tw-text-opacity, 1))}.text-lime-100{--tw-text-opacity: 1;color:rgb(236 252 203 / var(--tw-text-opacity, 1))}.text-lime-200{--tw-text-opacity: 1;color:rgb(217 249 157 / var(--tw-text-opacity, 1))}.text-lime-300{--tw-text-opacity: 1;color:rgb(190 242 100 / var(--tw-text-opacity, 1))}.text-lime-400{--tw-text-opacity: 1;color:rgb(163 230 53 / var(--tw-text-opacity, 1))}.text-lime-50{--tw-text-opacity: 1;color:rgb(247 254 231 / var(--tw-text-opacity, 1))}.text-lime-500{--tw-text-opacity: 1;color:rgb(132 204 22 / var(--tw-text-opacity, 1))}.text-lime-600{--tw-text-opacity: 1;color:rgb(101 163 13 / var(--tw-text-opacity, 1))}.text-lime-700{--tw-text-opacity: 1;color:rgb(77 124 15 / var(--tw-text-opacity, 1))}.text-lime-800{--tw-text-opacity: 1;color:rgb(63 98 18 / var(--tw-text-opacity, 1))}.text-lime-900{--tw-text-opacity: 1;color:rgb(54 83 20 / var(--tw-text-opacity, 1))}.text-myPrimaryDarkGrayColor{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-myPrimaryErrorColor{--tw-text-opacity: 1;color:rgb(214 0 0 / var(--tw-text-opacity, 1))}.text-myPrimaryLinkColor{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-myPrimaryMediumGrayColor{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-myPrimarySuccesColor{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-neutral-100{--tw-text-opacity: 1;color:rgb(245 245 245 / var(--tw-text-opacity, 1))}.text-neutral-200{--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity, 1))}.text-neutral-300{--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity, 1))}.text-neutral-400{--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity, 1))}.text-neutral-50{--tw-text-opacity: 1;color:rgb(250 250 250 / var(--tw-text-opacity, 1))}.text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity, 1))}.text-neutral-600{--tw-text-opacity: 1;color:rgb(82 82 82 / var(--tw-text-opacity, 1))}.text-neutral-700{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity, 1))}.text-neutral-800{--tw-text-opacity: 1;color:rgb(38 38 38 / var(--tw-text-opacity, 1))}.text-neutral-900{--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}.text-orange-100{--tw-text-opacity: 1;color:rgb(255 237 213 / var(--tw-text-opacity, 1))}.text-orange-200{--tw-text-opacity: 1;color:rgb(254 215 170 / var(--tw-text-opacity, 1))}.text-orange-300{--tw-text-opacity: 1;color:rgb(253 186 116 / var(--tw-text-opacity, 1))}.text-orange-400{--tw-text-opacity: 1;color:rgb(251 146 60 / var(--tw-text-opacity, 1))}.text-orange-50{--tw-text-opacity: 1;color:rgb(255 247 237 / var(--tw-text-opacity, 1))}.text-orange-500{--tw-text-opacity: 1;color:rgb(249 115 22 / var(--tw-text-opacity, 1))}.text-orange-600{--tw-text-opacity: 1;color:rgb(234 88 12 / var(--tw-text-opacity, 1))}.text-orange-700{--tw-text-opacity: 1;color:rgb(194 65 12 / var(--tw-text-opacity, 1))}.text-orange-800{--tw-text-opacity: 1;color:rgb(154 52 18 / var(--tw-text-opacity, 1))}.text-orange-900{--tw-text-opacity: 1;color:rgb(124 45 18 / var(--tw-text-opacity, 1))}.text-pink-100{--tw-text-opacity: 1;color:rgb(252 231 243 / var(--tw-text-opacity, 1))}.text-pink-200{--tw-text-opacity: 1;color:rgb(251 207 232 / var(--tw-text-opacity, 1))}.text-pink-300{--tw-text-opacity: 1;color:rgb(249 168 212 / var(--tw-text-opacity, 1))}.text-pink-400{--tw-text-opacity: 1;color:rgb(244 114 182 / var(--tw-text-opacity, 1))}.text-pink-50{--tw-text-opacity: 1;color:rgb(253 242 248 / var(--tw-text-opacity, 1))}.text-pink-500{--tw-text-opacity: 1;color:rgb(236 72 153 / var(--tw-text-opacity, 1))}.text-pink-600{--tw-text-opacity: 1;color:rgb(219 39 119 / var(--tw-text-opacity, 1))}.text-pink-700{--tw-text-opacity: 1;color:rgb(190 24 93 / var(--tw-text-opacity, 1))}.text-pink-800{--tw-text-opacity: 1;color:rgb(157 23 77 / var(--tw-text-opacity, 1))}.text-pink-900{--tw-text-opacity: 1;color:rgb(131 24 67 / var(--tw-text-opacity, 1))}.text-purple-100{--tw-text-opacity: 1;color:rgb(243 232 255 / var(--tw-text-opacity, 1))}.text-purple-200{--tw-text-opacity: 1;color:rgb(233 213 255 / var(--tw-text-opacity, 1))}.text-purple-300{--tw-text-opacity: 1;color:rgb(216 180 254 / var(--tw-text-opacity, 1))}.text-purple-400{--tw-text-opacity: 1;color:rgb(192 132 252 / var(--tw-text-opacity, 1))}.text-purple-50{--tw-text-opacity: 1;color:rgb(250 245 255 / var(--tw-text-opacity, 1))}.text-purple-500{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity, 1))}.text-purple-600{--tw-text-opacity: 1;color:rgb(147 51 234 / var(--tw-text-opacity, 1))}.text-purple-700{--tw-text-opacity: 1;color:rgb(126 34 206 / var(--tw-text-opacity, 1))}.text-purple-800{--tw-text-opacity: 1;color:rgb(107 33 168 / var(--tw-text-opacity, 1))}.text-purple-900{--tw-text-opacity: 1;color:rgb(88 28 135 / var(--tw-text-opacity, 1))}.text-red-100{--tw-text-opacity: 1;color:rgb(254 226 226 / var(--tw-text-opacity, 1))}.text-red-200{--tw-text-opacity: 1;color:rgb(254 202 202 / var(--tw-text-opacity, 1))}.text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.text-red-50{--tw-text-opacity: 1;color:rgb(254 242 242 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.text-red-900{--tw-text-opacity: 1;color:rgb(127 29 29 / var(--tw-text-opacity, 1))}.text-rose-100{--tw-text-opacity: 1;color:rgb(255 228 230 / var(--tw-text-opacity, 1))}.text-rose-200{--tw-text-opacity: 1;color:rgb(254 205 211 / var(--tw-text-opacity, 1))}.text-rose-300{--tw-text-opacity: 1;color:rgb(253 164 175 / var(--tw-text-opacity, 1))}.text-rose-400{--tw-text-opacity: 1;color:rgb(251 113 133 / var(--tw-text-opacity, 1))}.text-rose-50{--tw-text-opacity: 1;color:rgb(255 241 242 / var(--tw-text-opacity, 1))}.text-rose-500{--tw-text-opacity: 1;color:rgb(244 63 94 / var(--tw-text-opacity, 1))}.text-rose-600{--tw-text-opacity: 1;color:rgb(225 29 72 / var(--tw-text-opacity, 1))}.text-rose-700{--tw-text-opacity: 1;color:rgb(190 18 60 / var(--tw-text-opacity, 1))}.text-rose-800{--tw-text-opacity: 1;color:rgb(159 18 57 / var(--tw-text-opacity, 1))}.text-rose-900{--tw-text-opacity: 1;color:rgb(136 19 55 / var(--tw-text-opacity, 1))}.text-sky-100{--tw-text-opacity: 1;color:rgb(224 242 254 / var(--tw-text-opacity, 1))}.text-sky-200{--tw-text-opacity: 1;color:rgb(186 230 253 / var(--tw-text-opacity, 1))}.text-sky-300{--tw-text-opacity: 1;color:rgb(125 211 252 / var(--tw-text-opacity, 1))}.text-sky-400{--tw-text-opacity: 1;color:rgb(56 189 248 / var(--tw-text-opacity, 1))}.text-sky-50{--tw-text-opacity: 1;color:rgb(240 249 255 / var(--tw-text-opacity, 1))}.text-sky-500{--tw-text-opacity: 1;color:rgb(14 165 233 / var(--tw-text-opacity, 1))}.text-sky-600{--tw-text-opacity: 1;color:rgb(2 132 199 / var(--tw-text-opacity, 1))}.text-sky-700{--tw-text-opacity: 1;color:rgb(3 105 161 / var(--tw-text-opacity, 1))}.text-sky-800{--tw-text-opacity: 1;color:rgb(7 89 133 / var(--tw-text-opacity, 1))}.text-sky-900{--tw-text-opacity: 1;color:rgb(12 74 110 / var(--tw-text-opacity, 1))}.text-slate-100{--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity, 1))}.text-slate-200{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity, 1))}.text-slate-300{--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity, 1))}.text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity, 1))}.text-slate-50{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity, 1))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.text-slate-600{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.text-slate-700{--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity, 1))}.text-slate-800{--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity, 1))}.text-slate-900{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity, 1))}.text-stone-100{--tw-text-opacity: 1;color:rgb(245 245 244 / var(--tw-text-opacity, 1))}.text-stone-200{--tw-text-opacity: 1;color:rgb(231 229 228 / var(--tw-text-opacity, 1))}.text-stone-300{--tw-text-opacity: 1;color:rgb(214 211 209 / var(--tw-text-opacity, 1))}.text-stone-400{--tw-text-opacity: 1;color:rgb(168 162 158 / var(--tw-text-opacity, 1))}.text-stone-50{--tw-text-opacity: 1;color:rgb(250 250 249 / var(--tw-text-opacity, 1))}.text-stone-500{--tw-text-opacity: 1;color:rgb(120 113 108 / var(--tw-text-opacity, 1))}.text-stone-600{--tw-text-opacity: 1;color:rgb(87 83 78 / var(--tw-text-opacity, 1))}.text-stone-700{--tw-text-opacity: 1;color:rgb(68 64 60 / var(--tw-text-opacity, 1))}.text-stone-800{--tw-text-opacity: 1;color:rgb(41 37 36 / var(--tw-text-opacity, 1))}.text-stone-900{--tw-text-opacity: 1;color:rgb(28 25 23 / var(--tw-text-opacity, 1))}.text-teal-100{--tw-text-opacity: 1;color:rgb(204 251 241 / var(--tw-text-opacity, 1))}.text-teal-200{--tw-text-opacity: 1;color:rgb(153 246 228 / var(--tw-text-opacity, 1))}.text-teal-300{--tw-text-opacity: 1;color:rgb(94 234 212 / var(--tw-text-opacity, 1))}.text-teal-400{--tw-text-opacity: 1;color:rgb(45 212 191 / var(--tw-text-opacity, 1))}.text-teal-50{--tw-text-opacity: 1;color:rgb(240 253 250 / var(--tw-text-opacity, 1))}.text-teal-500{--tw-text-opacity: 1;color:rgb(20 184 166 / var(--tw-text-opacity, 1))}.text-teal-600{--tw-text-opacity: 1;color:rgb(13 148 136 / var(--tw-text-opacity, 1))}.text-teal-700{--tw-text-opacity: 1;color:rgb(15 118 110 / var(--tw-text-opacity, 1))}.text-teal-800{--tw-text-opacity: 1;color:rgb(17 94 89 / var(--tw-text-opacity, 1))}.text-teal-900{--tw-text-opacity: 1;color:rgb(19 78 74 / var(--tw-text-opacity, 1))}.text-violet-100{--tw-text-opacity: 1;color:rgb(237 233 254 / var(--tw-text-opacity, 1))}.text-violet-200{--tw-text-opacity: 1;color:rgb(221 214 254 / var(--tw-text-opacity, 1))}.text-violet-300{--tw-text-opacity: 1;color:rgb(196 181 253 / var(--tw-text-opacity, 1))}.text-violet-400{--tw-text-opacity: 1;color:rgb(167 139 250 / var(--tw-text-opacity, 1))}.text-violet-50{--tw-text-opacity: 1;color:rgb(245 243 255 / var(--tw-text-opacity, 1))}.text-violet-500{--tw-text-opacity: 1;color:rgb(139 92 246 / var(--tw-text-opacity, 1))}.text-violet-600{--tw-text-opacity: 1;color:rgb(124 58 237 / var(--tw-text-opacity, 1))}.text-violet-700{--tw-text-opacity: 1;color:rgb(109 40 217 / var(--tw-text-opacity, 1))}.text-violet-800{--tw-text-opacity: 1;color:rgb(91 33 182 / var(--tw-text-opacity, 1))}.text-violet-900{--tw-text-opacity: 1;color:rgb(76 29 149 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-100{--tw-text-opacity: 1;color:rgb(254 249 195 / var(--tw-text-opacity, 1))}.text-yellow-200{--tw-text-opacity: 1;color:rgb(254 240 138 / var(--tw-text-opacity, 1))}.text-yellow-300{--tw-text-opacity: 1;color:rgb(253 224 71 / var(--tw-text-opacity, 1))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity, 1))}.text-yellow-50{--tw-text-opacity: 1;color:rgb(254 252 232 / var(--tw-text-opacity, 1))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity, 1))}.text-yellow-600{--tw-text-opacity: 1;color:rgb(202 138 4 / var(--tw-text-opacity, 1))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(161 98 7 / var(--tw-text-opacity, 1))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity, 1))}.text-yellow-900{--tw-text-opacity: 1;color:rgb(113 63 18 / var(--tw-text-opacity, 1))}.text-zinc-100{--tw-text-opacity: 1;color:rgb(244 244 245 / var(--tw-text-opacity, 1))}.text-zinc-200{--tw-text-opacity: 1;color:rgb(228 228 231 / var(--tw-text-opacity, 1))}.text-zinc-300{--tw-text-opacity: 1;color:rgb(212 212 216 / var(--tw-text-opacity, 1))}.text-zinc-400{--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}.text-zinc-50{--tw-text-opacity: 1;color:rgb(250 250 250 / var(--tw-text-opacity, 1))}.text-zinc-500{--tw-text-opacity: 1;color:rgb(113 113 122 / var(--tw-text-opacity, 1))}.text-zinc-600{--tw-text-opacity: 1;color:rgb(82 82 91 / var(--tw-text-opacity, 1))}.text-zinc-700{--tw-text-opacity: 1;color:rgb(63 63 70 / var(--tw-text-opacity, 1))}.text-zinc-800{--tw-text-opacity: 1;color:rgb(39 39 42 / var(--tw-text-opacity, 1))}.text-zinc-900{--tw-text-opacity: 1;color:rgb(24 24 27 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.decoration-solid{text-decoration-style:solid}.decoration-double{text-decoration-style:double}.decoration-dotted{text-decoration-style:dotted}.decoration-dashed{text-decoration-style:dashed}.decoration-wavy{text-decoration-style:wavy}.placeholder-gray-400::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}.placeholder-gray-400::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}.placeholder-opacity-50::-moz-placeholder{--tw-placeholder-opacity: .5}.placeholder-opacity-50::placeholder{--tw-placeholder-opacity: .5}.opacity-0{opacity:0}.opacity-10{opacity:.1}.opacity-100{opacity:1}.opacity-20{opacity:.2}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.opacity-40{opacity:.4}.opacity-5{opacity:.05}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-90{opacity:.9}.opacity-95{opacity:.95}.mix-blend-normal{mix-blend-mode:normal}.mix-blend-multiply{mix-blend-mode:multiply}.mix-blend-screen{mix-blend-mode:screen}.mix-blend-overlay{mix-blend-mode:overlay}.mix-blend-darken{mix-blend-mode:darken}.mix-blend-lighten{mix-blend-mode:lighten}.mix-blend-color-dodge{mix-blend-mode:color-dodge}.mix-blend-color-burn{mix-blend-mode:color-burn}.mix-blend-hard-light{mix-blend-mode:hard-light}.mix-blend-soft-light{mix-blend-mode:soft-light}.mix-blend-difference{mix-blend-mode:difference}.mix-blend-exclusion{mix-blend-mode:exclusion}.mix-blend-hue{mix-blend-mode:hue}.mix-blend-saturation{mix-blend-mode:saturation}.mix-blend-color{mix-blend-mode:color}.mix-blend-luminosity{mix-blend-mode:luminosity}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-inner{--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / .05);--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-0{outline-width:0px}.outline-1{outline-width:1px}.outline-2{outline-width:2px}.outline-4{outline-width:4px}.outline-8{outline-width:8px}.outline-offset-8{outline-offset:8px}.outline-yellow-400{outline-color:#facc15}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-8{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(8px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-inset{--tw-ring-inset: inset}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity, 1))}.ring-white\\/5{--tw-ring-color: rgb(255 255 255 / .05)}.ring-opacity-5{--tw-ring-opacity: .05}.ring-offset-0{--tw-ring-offset-width: 0px}.ring-offset-1{--tw-ring-offset-width: 1px}.ring-offset-2{--tw-ring-offset-width: 2px}.ring-offset-4{--tw-ring-offset-width: 4px}.ring-offset-8{--tw-ring-offset-width: 8px}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-2xl{--tw-blur: blur(40px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-3xl{--tw-blur: blur(64px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-lg{--tw-blur: blur(16px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-md{--tw-blur: blur(12px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-sm{--tw-blur: blur(4px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-xl{--tw-blur: blur(24px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-sm{--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter-none{filter:none}.backdrop-blur{--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-2xl{--tw-backdrop-blur: blur(40px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-3xl{--tw-backdrop-blur: blur(64px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-lg{--tw-backdrop-blur: blur(16px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-md{--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-xl{--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-none{transition-property:none}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-1000{transition-duration:1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.duration-700{transition-duration:.7s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.\\!\\[clip\\:rect\\(0\\,0\\,0\\,0\\)\\]{clip:rect(0,0,0,0)!important}.ql-toolbar.ql-snow{border-top-right-radius:10px;border-top-left-radius:10px}.ql-editor{min-height:200px}.table-enter-active,.table-leave-active{transition:opacity .3s ease}.table-enter-from,.table-leave-to{opacity:0}.tags-enter-from{opacity:.6;transform:translate(10px)}.tags-enter-active{transition:all .2s ease}.tags-leave-to{opacity:.1;transform:translate(5px)}.tags-leave-active{transition:all .1s ease;position:absolute}.tags-move{transition:all .1s ease}*{scrollbar-width:thin;scrollbar-color:black transparent}*::-webkit-scrollbar-track{background:transparent;border-radius:25px}*::-webkit-scrollbar{width:6px;height:6px}*::-webkit-scrollbar-thumb{background-color:#000;border-radius:25px;border:none}.scrollable{overflow-x:auto;overflow-y:auto}.tailwind-pagination-package{box-shadow:none!important;display:flex;flex-direction:row;flex-wrap:wrap;gap:6px 0px;justify-content:center}.tailwind-pagination-package>:first-child,.tailwind-pagination-package>:last-child{border-radius:100%}.smooth-transition{transition:opacity .3s ease-in-out}p{font-size:1rem;line-height:1.5rem;font-weight:400}@media (min-width: 1024px){p{font-size:1rem;line-height:1.5rem}}a{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}h2{margin-top:1rem;margin-bottom:.75rem;font-size:1.875rem;line-height:2.25rem;font-weight:500}h3{margin-top:1rem;margin-bottom:.75rem;font-size:1.5rem;line-height:2rem;font-weight:500}#pagebuilder a{pointer-events:none}#page-builder-editor .tiptap{background:#fff;min-height:25rem}#pagebuilder #youtube-video:before{content:"Select Video Element";font-family:Jost;background:#16a34a!important;color:#fff;text-decoration:none;margin-right:8px;vertical-align:middle;min-height:3rem;padding:.75rem;white-space:nowrap;word-break:keep-all;font-weight:500;display:inline-flex;gap:.25rem;align-items:center;justify-content:center;border-radius:9999px;border:1px solid transparent;margin-bottom:20px;font-size:.8rem!important}@media (min-width: 640px){#pagebuilder #youtube-video:before{font-size:.9rem!important;width:auto}}#pagebuilder #youtube-video:hover:before{text-decoration:none;cursor:pointer}#page-builder-editor a,#pagebuilder a{text-decoration:underline}#page-builder-editor #linktree p,#pagebuilder #linktree p{width:100%}#page-builder-editor #linktree a,#pagebuilder #linktree a{display:block;padding:1rem .5rem;text-decoration:none;font-weight:500;color:inherit!important;width:100%;cursor:pointer}#page-builder-editor strong,#pagebuilder strong{font-weight:500}#page-builder-editor ol,#pagebuilder ol,#page-builder-editor ul,#pagebuilder ul{list-style:disc!important;padding:1rem 0rem}#page-builder-editor li,#pagebuilder li{line-height:2.2rem;margin-left:1.5em}:root{--dp-border-radius: 40px;--dp-cell-border-radius: 4px;--dp-common-transition: all .1s ease-in}.dp__action_row{display:flex!important;align-items:center!important;justify-content:center;margin:0 0 10px}.dp__today{background:transparent!important;border:2px solid #ff5252!important;color:#ff5252!important;border-radius:100%!important}.dp__active_date{background:#ff5252!important;border:#ff5252!important;color:#fff!important;border-radius:100%!important}.dp__date_hover:hover{background:#f1f1f1!important;border:#f1f1f1!important;color:#000!important;border-radius:100%!important}.dp__action_button{background:#ff5252!important;border:#000!important;color:#fff!important;border-radius:8px!important;padding:1rem!important;font-weight:500}.dp__overlay_cell_active{background:#ff5252!important;border:#000!important;color:#fff!important}@media (min-width: 640px){.sm\\:prose-sm{font-size:.875rem;line-height:1.7142857}.sm\\:prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.sm\\:prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.sm\\:prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.sm\\:prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.sm\\:prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.sm\\:prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.sm\\:prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.sm\\:prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.sm\\:prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.sm\\:prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.sm\\:prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.sm\\:prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.sm\\:prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.sm\\:prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.sm\\:prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.sm\\:prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.sm\\:prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.sm\\:prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.sm\\:prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.sm\\:prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.sm\\:prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.sm\\:prose-sm :where(.sm\\:prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.sm\\:prose-sm :where(.sm\\:prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.sm\\:prose-sm :where(.sm\\:prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.sm\\:prose-sm :where(.sm\\:prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.sm\\:prose-sm :where(.sm\\:prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.sm\\:prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.sm\\:prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.sm\\:prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.sm\\:prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.sm\\:prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.sm\\:prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.sm\\:prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.sm\\:prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.sm\\:prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.sm\\:prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.sm\\:prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.sm\\:prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.sm\\:prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.sm\\:prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.sm\\:prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.sm\\:prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.sm\\:prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.sm\\:prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.sm\\:prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.sm\\:prose-sm :where(.sm\\:prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.sm\\:prose-sm :where(.sm\\:prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}}@media (min-width: 1024px){.lg\\:prose-sm{font-size:.875rem;line-height:1.7142857}.lg\\:prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.lg\\:prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.lg\\:prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.lg\\:prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.lg\\:prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.lg\\:prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.lg\\:prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.lg\\:prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.lg\\:prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.lg\\:prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.lg\\:prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.lg\\:prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.lg\\:prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.lg\\:prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.lg\\:prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.lg\\:prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.lg\\:prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.lg\\:prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.lg\\:prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.lg\\:prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.lg\\:prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.lg\\:prose-sm :where(.lg\\:prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.lg\\:prose-sm :where(.lg\\:prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.lg\\:prose-sm :where(.lg\\:prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.lg\\:prose-sm :where(.lg\\:prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.lg\\:prose-sm :where(.lg\\:prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.lg\\:prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.lg\\:prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.lg\\:prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.lg\\:prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.lg\\:prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.lg\\:prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.lg\\:prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.lg\\:prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.lg\\:prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.lg\\:prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.lg\\:prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.lg\\:prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.lg\\:prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.lg\\:prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.lg\\:prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.lg\\:prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.lg\\:prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.lg\\:prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.lg\\:prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.lg\\:prose-sm :where(.lg\\:prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.lg\\:prose-sm :where(.lg\\:prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.lg\\:myPrimaryTag{margin-top:.5rem;margin-bottom:.5rem;display:inline-flex;min-height:3rem;align-items:center;justify-content:center;gap:.25rem;word-break:break-all;border-radius:9999px;border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(222 230 240 / var(--tw-bg-opacity, 1));padding:.5rem .75rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.lg\\:myPrimaryTag:hover{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}@media (min-width: 640px){.lg\\:myPrimaryTag{width:auto}}}.placeholder\\:text-sm::-moz-placeholder{font-size:.875rem;line-height:1.25rem}.placeholder\\:text-sm::placeholder{font-size:.875rem;line-height:1.25rem}.hover\\:border-myPrimaryLinkColor:hover{--tw-border-opacity: 1;border-color:rgb(22 163 74 / var(--tw-border-opacity, 1))}.hover\\:bg-green-100:hover{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.hover\\:bg-myPrimaryErrorColor:hover{--tw-bg-opacity: 1;background-color:rgb(214 0 0 / var(--tw-bg-opacity, 1))}.hover\\:bg-myPrimaryLightGrayColor:hover{--tw-bg-opacity: 1;background-color:rgb(239 242 246 / var(--tw-bg-opacity, 1))}.hover\\:bg-myPrimaryLinkColor:hover{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.hover\\:bg-red-600:hover{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.hover\\:bg-yellow-400:hover{--tw-bg-opacity: 1;background-color:rgb(250 204 21 / var(--tw-bg-opacity, 1))}.hover\\:bg-opacity-10:hover{--tw-bg-opacity: .1}.hover\\:fill-white:hover{fill:#fff}.hover\\:text-myPrimaryDarkGrayColor:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-green-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1))}.focus\\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity, 1))}.focus\\:ring-myPrimaryErrorColor:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(214 0 0 / var(--tw-ring-opacity, 1))}.focus\\:ring-myPrimaryLinkColor:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1))}.focus\\:ring-yellow-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 204 21 / var(--tw-ring-opacity, 1))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus\\:ring-offset-green-50:focus{--tw-ring-offset-color: #f0fdf4}.focus-visible\\:ring-0:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-myPrimaryLinkColor:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1))}.group:hover .group-hover\\:pointer-events-auto{pointer-events:auto}.group:hover .group-hover\\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\\:opacity-100{opacity:1}.aria-checked\\:bg-blue-500[aria-checked=true]{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.aria-disabled\\:opacity-50[aria-disabled=true]{opacity:.5}.aria-selected\\:bg-blue-100[aria-selected=true]{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}@media (prefers-reduced-motion: reduce){@keyframes spin{to{transform:rotate(360deg)}}.motion-reduce\\:animate-\\[spin_1\\.5s_linear_infinite\\]{animation:spin 1.5s linear infinite}}@media (min-width: 640px){.sm\\:flex{display:flex}.sm\\:grid{display:grid}.sm\\:h-0\\.5{height:.125rem}.sm\\:h-1{height:.25rem}.sm\\:h-1\\.5{height:.375rem}.sm\\:h-1\\/2{height:50%}.sm\\:h-1\\/3{height:33.333333%}.sm\\:h-1\\/4{height:25%}.sm\\:h-1\\/5{height:20%}.sm\\:h-1\\/6{height:16.666667%}.sm\\:h-10{height:2.5rem}.sm\\:h-11{height:2.75rem}.sm\\:h-12{height:3rem}.sm\\:h-14{height:3.5rem}.sm\\:h-16{height:4rem}.sm\\:h-2{height:.5rem}.sm\\:h-2\\.5{height:.625rem}.sm\\:h-2\\/3{height:66.666667%}.sm\\:h-2\\/4{height:50%}.sm\\:h-2\\/5{height:40%}.sm\\:h-2\\/6{height:33.333333%}.sm\\:h-20{height:5rem}.sm\\:h-24{height:6rem}.sm\\:h-28{height:7rem}.sm\\:h-3{height:.75rem}.sm\\:h-3\\.5{height:.875rem}.sm\\:h-3\\/4{height:75%}.sm\\:h-3\\/5{height:60%}.sm\\:h-3\\/6{height:50%}.sm\\:h-32{height:8rem}.sm\\:h-36{height:9rem}.sm\\:h-4{height:1rem}.sm\\:h-4\\/5{height:80%}.sm\\:h-4\\/6{height:66.666667%}.sm\\:h-40{height:10rem}.sm\\:h-44{height:11rem}.sm\\:h-48{height:12rem}.sm\\:h-5{height:1.25rem}.sm\\:h-5\\/6{height:83.333333%}.sm\\:h-52{height:13rem}.sm\\:h-56{height:14rem}.sm\\:h-6{height:1.5rem}.sm\\:h-60{height:15rem}.sm\\:h-64{height:16rem}.sm\\:h-7{height:1.75rem}.sm\\:h-72{height:18rem}.sm\\:h-8{height:2rem}.sm\\:h-80{height:20rem}.sm\\:h-9{height:2.25rem}.sm\\:h-96{height:24rem}.sm\\:h-auto{height:auto}.sm\\:h-fit{height:-moz-fit-content;height:fit-content}.sm\\:h-full{height:100%}.sm\\:h-max{height:-moz-max-content;height:max-content}.sm\\:h-min{height:-moz-min-content;height:min-content}.sm\\:h-screen{height:100vh}.sm\\:w-0\\.5{width:.125rem}.sm\\:w-1{width:.25rem}.sm\\:w-1\\.5{width:.375rem}.sm\\:w-1\\/2{width:50%}.sm\\:w-1\\/3{width:33.333333%}.sm\\:w-1\\/4{width:25%}.sm\\:w-1\\/5{width:20%}.sm\\:w-1\\/6{width:16.666667%}.sm\\:w-10{width:2.5rem}.sm\\:w-11{width:2.75rem}.sm\\:w-12{width:3rem}.sm\\:w-14{width:3.5rem}.sm\\:w-16{width:4rem}.sm\\:w-2{width:.5rem}.sm\\:w-2\\.5{width:.625rem}.sm\\:w-2\\/3{width:66.666667%}.sm\\:w-2\\/4{width:50%}.sm\\:w-2\\/5{width:40%}.sm\\:w-2\\/6{width:33.333333%}.sm\\:w-20{width:5rem}.sm\\:w-24{width:6rem}.sm\\:w-28{width:7rem}.sm\\:w-3{width:.75rem}.sm\\:w-3\\.5{width:.875rem}.sm\\:w-3\\/4{width:75%}.sm\\:w-3\\/5{width:60%}.sm\\:w-3\\/6{width:50%}.sm\\:w-32{width:8rem}.sm\\:w-36{width:9rem}.sm\\:w-4{width:1rem}.sm\\:w-4\\/5{width:80%}.sm\\:w-4\\/6{width:66.666667%}.sm\\:w-40{width:10rem}.sm\\:w-44{width:11rem}.sm\\:w-48{width:12rem}.sm\\:w-5{width:1.25rem}.sm\\:w-5\\/6{width:83.333333%}.sm\\:w-52{width:13rem}.sm\\:w-56{width:14rem}.sm\\:w-6{width:1.5rem}.sm\\:w-60{width:15rem}.sm\\:w-64{width:16rem}.sm\\:w-7{width:1.75rem}.sm\\:w-72{width:18rem}.sm\\:w-8{width:2rem}.sm\\:w-80{width:20rem}.sm\\:w-9{width:2.25rem}.sm\\:w-96{width:24rem}.sm\\:w-auto{width:auto}.sm\\:w-fit{width:-moz-fit-content;width:fit-content}.sm\\:w-full{width:100%}.sm\\:w-max{width:-moz-max-content;width:max-content}.sm\\:w-min{width:-moz-min-content;width:min-content}.sm\\:w-screen{width:100vw}.sm\\:max-w-none{max-width:none}.sm\\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.sm\\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.sm\\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.sm\\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.sm\\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.sm\\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.sm\\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.sm\\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.sm\\:grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.sm\\:grid-rows-10{grid-template-rows:repeat(10,minmax(0,1fr))}.sm\\:grid-rows-11{grid-template-rows:repeat(11,minmax(0,1fr))}.sm\\:grid-rows-12{grid-template-rows:repeat(12,minmax(0,1fr))}.sm\\:grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.sm\\:grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.sm\\:grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.sm\\:grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.sm\\:grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.sm\\:grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.sm\\:grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.sm\\:grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}.sm\\:flex-row{flex-direction:row}.sm\\:items-end{align-items:flex-end}.sm\\:justify-end{justify-content:flex-end}.sm\\:align-middle{vertical-align:middle}.sm\\:text-2xl{font-size:1.5rem;line-height:2rem}.sm\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.sm\\:text-4xl{font-size:2.25rem;line-height:2.5rem}.sm\\:text-5xl{font-size:3rem;line-height:1}.sm\\:text-6xl{font-size:3.75rem;line-height:1}.sm\\:text-7xl{font-size:4.5rem;line-height:1}.sm\\:text-8xl{font-size:6rem;line-height:1}.sm\\:text-9xl{font-size:8rem;line-height:1}.sm\\:text-base{font-size:1rem;line-height:1.5rem}.sm\\:text-lg{font-size:1.125rem;line-height:1.75rem}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\\:text-xl{font-size:1.25rem;line-height:1.75rem}.sm\\:text-xs{font-size:.75rem;line-height:1rem}}@media (min-width: 768px){.md\\:flex{display:flex}.md\\:grid{display:grid}.md\\:h-0\\.5{height:.125rem}.md\\:h-1{height:.25rem}.md\\:h-1\\.5{height:.375rem}.md\\:h-1\\/2{height:50%}.md\\:h-1\\/3{height:33.333333%}.md\\:h-1\\/4{height:25%}.md\\:h-1\\/5{height:20%}.md\\:h-1\\/6{height:16.666667%}.md\\:h-10{height:2.5rem}.md\\:h-11{height:2.75rem}.md\\:h-12{height:3rem}.md\\:h-14{height:3.5rem}.md\\:h-16{height:4rem}.md\\:h-2{height:.5rem}.md\\:h-2\\.5{height:.625rem}.md\\:h-2\\/3{height:66.666667%}.md\\:h-2\\/4{height:50%}.md\\:h-2\\/5{height:40%}.md\\:h-2\\/6{height:33.333333%}.md\\:h-20{height:5rem}.md\\:h-24{height:6rem}.md\\:h-28{height:7rem}.md\\:h-3{height:.75rem}.md\\:h-3\\.5{height:.875rem}.md\\:h-3\\/4{height:75%}.md\\:h-3\\/5{height:60%}.md\\:h-3\\/6{height:50%}.md\\:h-32{height:8rem}.md\\:h-36{height:9rem}.md\\:h-4{height:1rem}.md\\:h-4\\/5{height:80%}.md\\:h-4\\/6{height:66.666667%}.md\\:h-40{height:10rem}.md\\:h-44{height:11rem}.md\\:h-48{height:12rem}.md\\:h-5{height:1.25rem}.md\\:h-5\\/6{height:83.333333%}.md\\:h-52{height:13rem}.md\\:h-56{height:14rem}.md\\:h-6{height:1.5rem}.md\\:h-60{height:15rem}.md\\:h-64{height:16rem}.md\\:h-7{height:1.75rem}.md\\:h-72{height:18rem}.md\\:h-8{height:2rem}.md\\:h-80{height:20rem}.md\\:h-9{height:2.25rem}.md\\:h-96{height:24rem}.md\\:h-auto{height:auto}.md\\:h-fit{height:-moz-fit-content;height:fit-content}.md\\:h-full{height:100%}.md\\:h-max{height:-moz-max-content;height:max-content}.md\\:h-min{height:-moz-min-content;height:min-content}.md\\:h-screen{height:100vh}.md\\:max-h-\\[20rem\\]{max-height:20rem}.md\\:min-h-\\[20rem\\]{min-height:20rem}.md\\:w-0\\.5{width:.125rem}.md\\:w-1{width:.25rem}.md\\:w-1\\.5{width:.375rem}.md\\:w-1\\/2{width:50%}.md\\:w-1\\/3{width:33.333333%}.md\\:w-1\\/4{width:25%}.md\\:w-1\\/5{width:20%}.md\\:w-1\\/6{width:16.666667%}.md\\:w-10{width:2.5rem}.md\\:w-11{width:2.75rem}.md\\:w-12{width:3rem}.md\\:w-14{width:3.5rem}.md\\:w-16{width:4rem}.md\\:w-2{width:.5rem}.md\\:w-2\\.5{width:.625rem}.md\\:w-2\\/3{width:66.666667%}.md\\:w-2\\/4{width:50%}.md\\:w-2\\/5{width:40%}.md\\:w-2\\/6{width:33.333333%}.md\\:w-20{width:5rem}.md\\:w-24{width:6rem}.md\\:w-28{width:7rem}.md\\:w-3{width:.75rem}.md\\:w-3\\.5{width:.875rem}.md\\:w-3\\/4{width:75%}.md\\:w-3\\/5{width:60%}.md\\:w-3\\/6{width:50%}.md\\:w-32{width:8rem}.md\\:w-36{width:9rem}.md\\:w-4{width:1rem}.md\\:w-4\\/5{width:80%}.md\\:w-4\\/6{width:66.666667%}.md\\:w-40{width:10rem}.md\\:w-44{width:11rem}.md\\:w-48{width:12rem}.md\\:w-5{width:1.25rem}.md\\:w-5\\/6{width:83.333333%}.md\\:w-52{width:13rem}.md\\:w-56{width:14rem}.md\\:w-6{width:1.5rem}.md\\:w-60{width:15rem}.md\\:w-64{width:16rem}.md\\:w-7{width:1.75rem}.md\\:w-72{width:18rem}.md\\:w-8{width:2rem}.md\\:w-80{width:20rem}.md\\:w-9{width:2.25rem}.md\\:w-96{width:24rem}.md\\:w-auto{width:auto}.md\\:w-fit{width:-moz-fit-content;width:fit-content}.md\\:w-full{width:100%}.md\\:w-max{width:-moz-max-content;width:max-content}.md\\:w-min{width:-moz-min-content;width:min-content}.md\\:w-screen{width:100vw}.md\\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.md\\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.md\\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.md\\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.md\\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.md\\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.md\\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.md\\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.md\\:grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.md\\:grid-rows-10{grid-template-rows:repeat(10,minmax(0,1fr))}.md\\:grid-rows-11{grid-template-rows:repeat(11,minmax(0,1fr))}.md\\:grid-rows-12{grid-template-rows:repeat(12,minmax(0,1fr))}.md\\:grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.md\\:grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.md\\:grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.md\\:grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.md\\:grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.md\\:grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.md\\:grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.md\\:grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}.md\\:rounded-lg{border-radius:.5rem}.md\\:px-3{padding-left:.75rem;padding-right:.75rem}.md\\:pb-12{padding-bottom:3rem}.md\\:pb-2{padding-bottom:.5rem}.md\\:pt-12{padding-top:3rem}.md\\:pt-2{padding-top:.5rem}.md\\:text-2xl{font-size:1.5rem;line-height:2rem}.md\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\\:text-4xl{font-size:2.25rem;line-height:2.5rem}.md\\:text-5xl{font-size:3rem;line-height:1}.md\\:text-6xl{font-size:3.75rem;line-height:1}.md\\:text-7xl{font-size:4.5rem;line-height:1}.md\\:text-8xl{font-size:6rem;line-height:1}.md\\:text-9xl{font-size:8rem;line-height:1}.md\\:text-base{font-size:1rem;line-height:1.5rem}.md\\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\\:text-sm{font-size:.875rem;line-height:1.25rem}.md\\:text-xl{font-size:1.25rem;line-height:1.75rem}.md\\:text-xs{font-size:.75rem;line-height:1rem}}@media (min-width: 1024px){.lg\\:mr-10{margin-right:2.5rem}.lg\\:block{display:block}.lg\\:flex{display:flex}.lg\\:grid{display:grid}.lg\\:h-0\\.5{height:.125rem}.lg\\:h-1{height:.25rem}.lg\\:h-1\\.5{height:.375rem}.lg\\:h-1\\/2{height:50%}.lg\\:h-1\\/3{height:33.333333%}.lg\\:h-1\\/4{height:25%}.lg\\:h-1\\/5{height:20%}.lg\\:h-1\\/6{height:16.666667%}.lg\\:h-10{height:2.5rem}.lg\\:h-11{height:2.75rem}.lg\\:h-12{height:3rem}.lg\\:h-14{height:3.5rem}.lg\\:h-16{height:4rem}.lg\\:h-2{height:.5rem}.lg\\:h-2\\.5{height:.625rem}.lg\\:h-2\\/3{height:66.666667%}.lg\\:h-2\\/4{height:50%}.lg\\:h-2\\/5{height:40%}.lg\\:h-2\\/6{height:33.333333%}.lg\\:h-20{height:5rem}.lg\\:h-24{height:6rem}.lg\\:h-28{height:7rem}.lg\\:h-3{height:.75rem}.lg\\:h-3\\.5{height:.875rem}.lg\\:h-3\\/4{height:75%}.lg\\:h-3\\/5{height:60%}.lg\\:h-3\\/6{height:50%}.lg\\:h-32{height:8rem}.lg\\:h-36{height:9rem}.lg\\:h-4{height:1rem}.lg\\:h-4\\/5{height:80%}.lg\\:h-4\\/6{height:66.666667%}.lg\\:h-40{height:10rem}.lg\\:h-44{height:11rem}.lg\\:h-48{height:12rem}.lg\\:h-5{height:1.25rem}.lg\\:h-5\\/6{height:83.333333%}.lg\\:h-52{height:13rem}.lg\\:h-56{height:14rem}.lg\\:h-6{height:1.5rem}.lg\\:h-60{height:15rem}.lg\\:h-64{height:16rem}.lg\\:h-7{height:1.75rem}.lg\\:h-72{height:18rem}.lg\\:h-8{height:2rem}.lg\\:h-80{height:20rem}.lg\\:h-9{height:2.25rem}.lg\\:h-96{height:24rem}.lg\\:h-\\[10vh\\]{height:10vh}.lg\\:h-auto{height:auto}.lg\\:h-fit{height:-moz-fit-content;height:fit-content}.lg\\:h-full{height:100%}.lg\\:h-max{height:-moz-max-content;height:max-content}.lg\\:h-min{height:-moz-min-content;height:min-content}.lg\\:h-screen{height:100vh}.lg\\:max-h-\\[30rem\\]{max-height:30rem}.lg\\:min-h-\\[20rem\\]{min-height:20rem}.lg\\:w-0\\.5{width:.125rem}.lg\\:w-1{width:.25rem}.lg\\:w-1\\.5{width:.375rem}.lg\\:w-1\\/2{width:50%}.lg\\:w-1\\/3{width:33.333333%}.lg\\:w-1\\/4{width:25%}.lg\\:w-1\\/5{width:20%}.lg\\:w-1\\/6{width:16.666667%}.lg\\:w-10{width:2.5rem}.lg\\:w-11{width:2.75rem}.lg\\:w-12{width:3rem}.lg\\:w-14{width:3.5rem}.lg\\:w-16{width:4rem}.lg\\:w-2{width:.5rem}.lg\\:w-2\\.5{width:.625rem}.lg\\:w-2\\/3{width:66.666667%}.lg\\:w-2\\/4{width:50%}.lg\\:w-2\\/5{width:40%}.lg\\:w-2\\/6{width:33.333333%}.lg\\:w-20{width:5rem}.lg\\:w-24{width:6rem}.lg\\:w-28{width:7rem}.lg\\:w-3{width:.75rem}.lg\\:w-3\\.5{width:.875rem}.lg\\:w-3\\/4{width:75%}.lg\\:w-3\\/5{width:60%}.lg\\:w-3\\/6{width:50%}.lg\\:w-32{width:8rem}.lg\\:w-36{width:9rem}.lg\\:w-4{width:1rem}.lg\\:w-4\\/5{width:80%}.lg\\:w-4\\/6{width:66.666667%}.lg\\:w-40{width:10rem}.lg\\:w-44{width:11rem}.lg\\:w-48{width:12rem}.lg\\:w-5{width:1.25rem}.lg\\:w-5\\/6{width:83.333333%}.lg\\:w-52{width:13rem}.lg\\:w-56{width:14rem}.lg\\:w-6{width:1.5rem}.lg\\:w-60{width:15rem}.lg\\:w-64{width:16rem}.lg\\:w-7{width:1.75rem}.lg\\:w-72{width:18rem}.lg\\:w-8{width:2rem}.lg\\:w-80{width:20rem}.lg\\:w-9{width:2.25rem}.lg\\:w-96{width:24rem}.lg\\:w-auto{width:auto}.lg\\:w-fit{width:-moz-fit-content;width:fit-content}.lg\\:w-full{width:100%}.lg\\:w-max{width:-moz-max-content;width:max-content}.lg\\:w-min{width:-moz-min-content;width:min-content}.lg\\:w-screen{width:100vw}.lg\\:max-w-2xl{max-width:42rem}.lg\\:max-w-3xl{max-width:48rem}.lg\\:max-w-4xl{max-width:56rem}.lg\\:max-w-5xl{max-width:64rem}.lg\\:max-w-6xl{max-width:72rem}.lg\\:max-w-7xl{max-width:80rem}.lg\\:max-w-full{max-width:100%}.lg\\:max-w-lg{max-width:32rem}.lg\\:max-w-md{max-width:28rem}.lg\\:max-w-sm{max-width:24rem}.lg\\:max-w-xl{max-width:36rem}.lg\\:auto-cols-\\[minmax\\(100px\\,_4fr\\)\\]{grid-auto-columns:minmax(100px,4fr)}.lg\\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.lg\\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.lg\\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.lg\\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.lg\\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.lg\\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.lg\\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.lg\\:grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.lg\\:grid-rows-10{grid-template-rows:repeat(10,minmax(0,1fr))}.lg\\:grid-rows-11{grid-template-rows:repeat(11,minmax(0,1fr))}.lg\\:grid-rows-12{grid-template-rows:repeat(12,minmax(0,1fr))}.lg\\:grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.lg\\:grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.lg\\:grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.lg\\:grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.lg\\:grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.lg\\:grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.lg\\:grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.lg\\:grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}.lg\\:justify-center{justify-content:center}.lg\\:justify-between{justify-content:space-between}.lg\\:gap-x-12{-moz-column-gap:3rem;column-gap:3rem}.lg\\:border{border-width:1px}.lg\\:border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.lg\\:px-12{padding-left:3rem;padding-right:3rem}.lg\\:px-4{padding-left:1rem;padding-right:1rem}.lg\\:py-10{padding-top:2.5rem;padding-bottom:2.5rem}.lg\\:pt-2{padding-top:.5rem}.lg\\:text-2xl{font-size:1.5rem;line-height:2rem}.lg\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.lg\\:text-4xl{font-size:2.25rem;line-height:2.5rem}.lg\\:text-5xl{font-size:3rem;line-height:1}.lg\\:text-6xl{font-size:3.75rem;line-height:1}.lg\\:text-7xl{font-size:4.5rem;line-height:1}.lg\\:text-8xl{font-size:6rem;line-height:1}.lg\\:text-9xl{font-size:8rem;line-height:1}.lg\\:text-base{font-size:1rem;line-height:1.5rem}.lg\\:text-lg{font-size:1.125rem;line-height:1.75rem}.lg\\:text-sm{font-size:.875rem;line-height:1.25rem}.lg\\:text-xl{font-size:1.25rem;line-height:1.75rem}.lg\\:text-xs{font-size:.75rem;line-height:1rem}.lg\\:shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}}@media (min-width: 1280px){.xl\\:flex{display:flex}.xl\\:grid{display:grid}.xl\\:h-0\\.5{height:.125rem}.xl\\:h-1{height:.25rem}.xl\\:h-1\\.5{height:.375rem}.xl\\:h-1\\/2{height:50%}.xl\\:h-1\\/3{height:33.333333%}.xl\\:h-1\\/4{height:25%}.xl\\:h-1\\/5{height:20%}.xl\\:h-1\\/6{height:16.666667%}.xl\\:h-10{height:2.5rem}.xl\\:h-11{height:2.75rem}.xl\\:h-12{height:3rem}.xl\\:h-14{height:3.5rem}.xl\\:h-16{height:4rem}.xl\\:h-2{height:.5rem}.xl\\:h-2\\.5{height:.625rem}.xl\\:h-2\\/3{height:66.666667%}.xl\\:h-2\\/4{height:50%}.xl\\:h-2\\/5{height:40%}.xl\\:h-2\\/6{height:33.333333%}.xl\\:h-20{height:5rem}.xl\\:h-24{height:6rem}.xl\\:h-28{height:7rem}.xl\\:h-3{height:.75rem}.xl\\:h-3\\.5{height:.875rem}.xl\\:h-3\\/4{height:75%}.xl\\:h-3\\/5{height:60%}.xl\\:h-3\\/6{height:50%}.xl\\:h-32{height:8rem}.xl\\:h-36{height:9rem}.xl\\:h-4{height:1rem}.xl\\:h-4\\/5{height:80%}.xl\\:h-4\\/6{height:66.666667%}.xl\\:h-40{height:10rem}.xl\\:h-44{height:11rem}.xl\\:h-48{height:12rem}.xl\\:h-5{height:1.25rem}.xl\\:h-5\\/6{height:83.333333%}.xl\\:h-52{height:13rem}.xl\\:h-56{height:14rem}.xl\\:h-6{height:1.5rem}.xl\\:h-60{height:15rem}.xl\\:h-64{height:16rem}.xl\\:h-7{height:1.75rem}.xl\\:h-72{height:18rem}.xl\\:h-8{height:2rem}.xl\\:h-80{height:20rem}.xl\\:h-9{height:2.25rem}.xl\\:h-96{height:24rem}.xl\\:h-auto{height:auto}.xl\\:h-fit{height:-moz-fit-content;height:fit-content}.xl\\:h-full{height:100%}.xl\\:h-max{height:-moz-max-content;height:max-content}.xl\\:h-min{height:-moz-min-content;height:min-content}.xl\\:h-screen{height:100vh}.xl\\:w-0\\.5{width:.125rem}.xl\\:w-1{width:.25rem}.xl\\:w-1\\.5{width:.375rem}.xl\\:w-1\\/2{width:50%}.xl\\:w-1\\/3{width:33.333333%}.xl\\:w-1\\/4{width:25%}.xl\\:w-1\\/5{width:20%}.xl\\:w-1\\/6{width:16.666667%}.xl\\:w-10{width:2.5rem}.xl\\:w-11{width:2.75rem}.xl\\:w-12{width:3rem}.xl\\:w-14{width:3.5rem}.xl\\:w-16{width:4rem}.xl\\:w-2{width:.5rem}.xl\\:w-2\\.5{width:.625rem}.xl\\:w-2\\/3{width:66.666667%}.xl\\:w-2\\/4{width:50%}.xl\\:w-2\\/5{width:40%}.xl\\:w-2\\/6{width:33.333333%}.xl\\:w-20{width:5rem}.xl\\:w-24{width:6rem}.xl\\:w-28{width:7rem}.xl\\:w-3{width:.75rem}.xl\\:w-3\\.5{width:.875rem}.xl\\:w-3\\/4{width:75%}.xl\\:w-3\\/5{width:60%}.xl\\:w-3\\/6{width:50%}.xl\\:w-32{width:8rem}.xl\\:w-36{width:9rem}.xl\\:w-4{width:1rem}.xl\\:w-4\\/5{width:80%}.xl\\:w-4\\/6{width:66.666667%}.xl\\:w-40{width:10rem}.xl\\:w-44{width:11rem}.xl\\:w-48{width:12rem}.xl\\:w-5{width:1.25rem}.xl\\:w-5\\/6{width:83.333333%}.xl\\:w-52{width:13rem}.xl\\:w-56{width:14rem}.xl\\:w-6{width:1.5rem}.xl\\:w-60{width:15rem}.xl\\:w-64{width:16rem}.xl\\:w-7{width:1.75rem}.xl\\:w-72{width:18rem}.xl\\:w-8{width:2rem}.xl\\:w-80{width:20rem}.xl\\:w-9{width:2.25rem}.xl\\:w-96{width:24rem}.xl\\:w-auto{width:auto}.xl\\:w-fit{width:-moz-fit-content;width:fit-content}.xl\\:w-full{width:100%}.xl\\:w-max{width:-moz-max-content;width:max-content}.xl\\:w-min{width:-moz-min-content;width:min-content}.xl\\:w-screen{width:100vw}.xl\\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.xl\\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.xl\\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.xl\\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.xl\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.xl\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.xl\\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.xl\\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.xl\\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.xl\\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.xl\\:grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.xl\\:grid-rows-10{grid-template-rows:repeat(10,minmax(0,1fr))}.xl\\:grid-rows-11{grid-template-rows:repeat(11,minmax(0,1fr))}.xl\\:grid-rows-12{grid-template-rows:repeat(12,minmax(0,1fr))}.xl\\:grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.xl\\:grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.xl\\:grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.xl\\:grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.xl\\:grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.xl\\:grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.xl\\:grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.xl\\:grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}}@media (min-width: 1536px){.\\32xl\\:flex{display:flex}.\\32xl\\:grid{display:grid}.\\32xl\\:h-0\\.5{height:.125rem}.\\32xl\\:h-1{height:.25rem}.\\32xl\\:h-1\\.5{height:.375rem}.\\32xl\\:h-1\\/2{height:50%}.\\32xl\\:h-1\\/3{height:33.333333%}.\\32xl\\:h-1\\/4{height:25%}.\\32xl\\:h-1\\/5{height:20%}.\\32xl\\:h-1\\/6{height:16.666667%}.\\32xl\\:h-10{height:2.5rem}.\\32xl\\:h-11{height:2.75rem}.\\32xl\\:h-12{height:3rem}.\\32xl\\:h-14{height:3.5rem}.\\32xl\\:h-16{height:4rem}.\\32xl\\:h-2{height:.5rem}.\\32xl\\:h-2\\.5{height:.625rem}.\\32xl\\:h-2\\/3{height:66.666667%}.\\32xl\\:h-2\\/4{height:50%}.\\32xl\\:h-2\\/5{height:40%}.\\32xl\\:h-2\\/6{height:33.333333%}.\\32xl\\:h-20{height:5rem}.\\32xl\\:h-24{height:6rem}.\\32xl\\:h-28{height:7rem}.\\32xl\\:h-3{height:.75rem}.\\32xl\\:h-3\\.5{height:.875rem}.\\32xl\\:h-3\\/4{height:75%}.\\32xl\\:h-3\\/5{height:60%}.\\32xl\\:h-3\\/6{height:50%}.\\32xl\\:h-32{height:8rem}.\\32xl\\:h-36{height:9rem}.\\32xl\\:h-4{height:1rem}.\\32xl\\:h-4\\/5{height:80%}.\\32xl\\:h-4\\/6{height:66.666667%}.\\32xl\\:h-40{height:10rem}.\\32xl\\:h-44{height:11rem}.\\32xl\\:h-48{height:12rem}.\\32xl\\:h-5{height:1.25rem}.\\32xl\\:h-5\\/6{height:83.333333%}.\\32xl\\:h-52{height:13rem}.\\32xl\\:h-56{height:14rem}.\\32xl\\:h-6{height:1.5rem}.\\32xl\\:h-60{height:15rem}.\\32xl\\:h-64{height:16rem}.\\32xl\\:h-7{height:1.75rem}.\\32xl\\:h-72{height:18rem}.\\32xl\\:h-8{height:2rem}.\\32xl\\:h-80{height:20rem}.\\32xl\\:h-9{height:2.25rem}.\\32xl\\:h-96{height:24rem}.\\32xl\\:h-auto{height:auto}.\\32xl\\:h-fit{height:-moz-fit-content;height:fit-content}.\\32xl\\:h-full{height:100%}.\\32xl\\:h-max{height:-moz-max-content;height:max-content}.\\32xl\\:h-min{height:-moz-min-content;height:min-content}.\\32xl\\:h-screen{height:100vh}.\\32xl\\:w-0\\.5{width:.125rem}.\\32xl\\:w-1{width:.25rem}.\\32xl\\:w-1\\.5{width:.375rem}.\\32xl\\:w-1\\/2{width:50%}.\\32xl\\:w-1\\/3{width:33.333333%}.\\32xl\\:w-1\\/4{width:25%}.\\32xl\\:w-1\\/5{width:20%}.\\32xl\\:w-1\\/6{width:16.666667%}.\\32xl\\:w-10{width:2.5rem}.\\32xl\\:w-11{width:2.75rem}.\\32xl\\:w-12{width:3rem}.\\32xl\\:w-14{width:3.5rem}.\\32xl\\:w-16{width:4rem}.\\32xl\\:w-2{width:.5rem}.\\32xl\\:w-2\\.5{width:.625rem}.\\32xl\\:w-2\\/3{width:66.666667%}.\\32xl\\:w-2\\/4{width:50%}.\\32xl\\:w-2\\/5{width:40%}.\\32xl\\:w-2\\/6{width:33.333333%}.\\32xl\\:w-20{width:5rem}.\\32xl\\:w-24{width:6rem}.\\32xl\\:w-28{width:7rem}.\\32xl\\:w-3{width:.75rem}.\\32xl\\:w-3\\.5{width:.875rem}.\\32xl\\:w-3\\/4{width:75%}.\\32xl\\:w-3\\/5{width:60%}.\\32xl\\:w-3\\/6{width:50%}.\\32xl\\:w-32{width:8rem}.\\32xl\\:w-36{width:9rem}.\\32xl\\:w-4{width:1rem}.\\32xl\\:w-4\\/5{width:80%}.\\32xl\\:w-4\\/6{width:66.666667%}.\\32xl\\:w-40{width:10rem}.\\32xl\\:w-44{width:11rem}.\\32xl\\:w-48{width:12rem}.\\32xl\\:w-5{width:1.25rem}.\\32xl\\:w-5\\/6{width:83.333333%}.\\32xl\\:w-52{width:13rem}.\\32xl\\:w-56{width:14rem}.\\32xl\\:w-6{width:1.5rem}.\\32xl\\:w-60{width:15rem}.\\32xl\\:w-64{width:16rem}.\\32xl\\:w-7{width:1.75rem}.\\32xl\\:w-72{width:18rem}.\\32xl\\:w-8{width:2rem}.\\32xl\\:w-80{width:20rem}.\\32xl\\:w-9{width:2.25rem}.\\32xl\\:w-96{width:24rem}.\\32xl\\:w-auto{width:auto}.\\32xl\\:w-fit{width:-moz-fit-content;width:fit-content}.\\32xl\\:w-full{width:100%}.\\32xl\\:w-max{width:-moz-max-content;width:max-content}.\\32xl\\:w-min{width:-moz-min-content;width:min-content}.\\32xl\\:w-screen{width:100vw}.\\32xl\\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.\\32xl\\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.\\32xl\\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.\\32xl\\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.\\32xl\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.\\32xl\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.\\32xl\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.\\32xl\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.\\32xl\\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.\\32xl\\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.\\32xl\\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.\\32xl\\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.\\32xl\\:grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.\\32xl\\:grid-rows-10{grid-template-rows:repeat(10,minmax(0,1fr))}.\\32xl\\:grid-rows-11{grid-template-rows:repeat(11,minmax(0,1fr))}.\\32xl\\:grid-rows-12{grid-template-rows:repeat(12,minmax(0,1fr))}.\\32xl\\:grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.\\32xl\\:grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.\\32xl\\:grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.\\32xl\\:grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.\\32xl\\:grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.\\32xl\\:grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.\\32xl\\:grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.\\32xl\\:grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}}@media (prefers-color-scheme: dark){.dark\\:text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}}`,Ek=function(r){return`<!DOCTYPE html><html><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><style>${kk}</style></head><body>${r}</body></html>`},Sk={class:"w-full inset-x-0 h-[90vh] bg-white overflow-x-scroll lg:pt-2 pt-2"},Ck={class:"flex gap-4 flex-col divide-y divide-gray-300"},Nk={class:"mb-4 pb-8 border-b border-myPrimbryLightGrayColor"},Bk={class:"px-2"},Mk={class:"mt-8"},Tk={class:"overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg"},Ok={class:"overflow-x-auto"},Vk={class:"min-w-full"},Pk={class:"bg-white divide-y divide-gray-200"},Ak={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},Dk={class:"min-w-[30rem] w-max"},Ik={class:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800"},Lk={key:0,class:"mt-4"},Rk={class:"overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg"},zk={class:"overflow-x-auto"},_k={class:"min-w-full"},Fk={class:"bg-white divide-y divide-gray-200"},jk={key:0},Hk={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},Wk={class:"min-w-[30rem] w-max"},qk={key:1},Uk={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},Kk={class:"min-w-[30rem] w-max"},Jk={key:1,class:"mt-8"},Gk={class:"overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg"},Yk={class:"overflow-x-auto"},Xk={class:"min-w-full"},Qk={class:"bg-white divide-y divide-gray-200"},Zk={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},$k={class:"min-w-[30rem] w-max"},e3={key:0,class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},t3={class:"min-w-[30rem] w-max"},r3={class:"flex items-center space-x-3"},o3=["src"],n3={key:0,class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},i3={class:"min-w-[30rem] w-max"},a3={key:2,class:"mt-8"},s3={class:"overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg"},l3={class:"overflow-x-auto"},c3={class:"min-w-full"},d3={class:"bg-white divide-y divide-gray-200"},u3={key:0},p3={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},m3={class:"min-w-[30rem] w-max"},h3={key:1},f3={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},g3={class:"min-w-[30rem] w-max"},b3={key:2},w3={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},y3={class:"min-w-[30rem] w-max"},v3={key:3},x3={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},k3={class:"min-w-[30rem] w-max"},E3={key:3,class:"mt-8"},S3={class:"overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg"},C3={class:"overflow-x-auto"},N3={class:"min-w-full"},B3={class:"bg-white divide-y divide-gray-200"},M3={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},T3={class:"min-w-[30rem] w-max"},O3={class:"flex items-center space-x-3"},V3=["src"],P3={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},A3={class:"min-w-[30rem] w-max"},D3={class:"flex items-center space-x-3"},I3={class:"border-r border-gray-200 pr-6"},L3={class:"flex items-center space-x-3"},R3={class:"whitespace-nowrap"},z3={key:4,class:"mt-8"},_3={class:"overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg"},F3={class:"overflow-x-auto"},j3={class:"w-max"},H3={class:"bg-white divide-y divide-gray-200"},W3={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},q3={class:"min-w-[30rem] w-max"},U3={key:0},K3={key:1},J3={key:0},G3={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},Y3={class:"min-w-[30rem] w-max"},X3={class:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium"},Q3={class:"mt-4 mb-4 py-8 border-b border-myPrimbryLightGrayColor"},Z3={class:"mt-4 whitespace-pre-wrap text-white overflow-hidden bg-gray-900"},$3={class:"px-4 pb-8 pt-4 text-white text-xs break-all"},e4={class:"myPrimaryParagraph text-xs text-white"},t4={__name:"PageBuilderSettings",setup(r){const e="v3.2.86",t=se;new de(t);const o=s.ref(null),n=s.computed(()=>t.getConfigPageBuilder),i=s.computed(()=>t.getComponents),a=function(c,d){const u=document.createElement("a");u.setAttribute("href","data:text/html;charset=utf-8,"+encodeURIComponent(Ek(d))),u.setAttribute("download",c),u.style.display="none",document.body.appendChild(u),u.click(),document.body.removeChild(u)},l=function(){o.value=i.value.map(c=>c.html_code),a("downloaded_html.html",o.value.join(""))};return(c,d)=>{var u,p,m,h,f,g,b,y,k,v,w,S,x,C,O,D;return s.openBlock(),s.createElementBlock("div",Sk,[s.createElementVNode("div",Ck,[s.createElementVNode("div",Nk,[d[26]||(d[26]=s.createElementVNode("div",{class:"flex items-left flex-col gap-1"},[s.createElementVNode("h3",{class:"myQuaternaryHeader"},"Configuration Overview"),s.createElementVNode("p",{class:"myPrimaryParagraph text-xs"}," A summary of current user preferences, application settings, and system metadata including UI theme, language, saved components, and logo configuration. ")],-1)),s.createElementVNode("div",Bk,[s.createElementVNode("div",Mk,[d[2]||(d[2]=s.createElementVNode("h4",{class:"myQuaternaryHeader text-sm mb-2"},"Version Information",-1)),s.createElementVNode("div",Tk,[s.createElementVNode("div",Ok,[s.createElementVNode("table",Vk,[d[1]||(d[1]=s.createElementVNode("thead",{class:"bg-gray-50"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Component "),s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Version ")])],-1)),s.createElementVNode("tbody",Pk,[s.createElementVNode("tr",null,[d[0]||(d[0]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Page Builder")],-1)),s.createElementVNode("td",Ak,[s.createElementVNode("div",Dk,[s.createElementVNode("span",Ik,s.toDisplayString(s.unref(e)),1)])])])])])])])]),(u=n.value)!=null&&u.resourceData&&!s.unref(uo)(n.value.resourceData)?(s.openBlock(),s.createElementBlock("div",Lk,[d[6]||(d[6]=s.createElementVNode("h4",{class:"myQuaternaryHeader text-sm mb-2"},"Resource Data",-1)),s.createElementVNode("div",Rk,[s.createElementVNode("div",zk,[s.createElementVNode("table",_k,[d[5]||(d[5]=s.createElementVNode("thead",{class:"bg-gray-50"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Property "),s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Value ")])],-1)),s.createElementVNode("tbody",Fk,[(m=(p=n.value)==null?void 0:p.resourceData)!=null&&m.title?(s.openBlock(),s.createElementBlock("tr",jk,[d[3]||(d[3]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Title")],-1)),s.createElementVNode("td",Hk,[s.createElementVNode("div",Wk,s.toDisplayString(n.value.resourceData.title),1)])])):s.createCommentVNode("",!0),(f=(h=n.value)==null?void 0:h.resourceData)!=null&&f.id?(s.openBlock(),s.createElementBlock("tr",qk,[d[4]||(d[4]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"ID")],-1)),s.createElementVNode("td",Uk,[s.createElementVNode("div",Kk,s.toDisplayString(n.value.resourceData.id),1)])])):s.createCommentVNode("",!0)])])])])])):s.createCommentVNode("",!0),(g=n.value)!=null&&g.userForPageBuilder&&!s.unref(uo)(n.value.userForPageBuilder)?(s.openBlock(),s.createElementBlock("div",Jk,[d[11]||(d[11]=s.createElementVNode("h4",{class:"myQuaternaryHeader text-sm mb-2"},"User Information",-1)),s.createElementVNode("div",Gk,[s.createElementVNode("div",Yk,[s.createElementVNode("table",Xk,[d[10]||(d[10]=s.createElementVNode("thead",{class:"bg-gray-50"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Property "),s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Value ")])],-1)),s.createElementVNode("tbody",Qk,[s.createElementVNode("tr",null,[d[7]||(d[7]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"User Name")],-1)),s.createElementVNode("td",Zk,[s.createElementVNode("div",$k,s.toDisplayString(n.value.userForPageBuilder.name),1)])]),s.createElementVNode("tr",null,[d[8]||(d[8]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Image")],-1)),n.value.userForPageBuilder.image&&typeof n.value.userForPageBuilder.image=="string"&&n.value.userForPageBuilder.image.length>2?(s.openBlock(),s.createElementBlock("td",e3,[s.createElementVNode("div",t3,[s.createElementVNode("div",r3,[s.createElementVNode("img",{class:"block inset-0 object-top h-10 min-h-10 max-h-10 w-10 min-w-10 max-w-10 object-cover rounded-full",src:n.value.userForPageBuilder.image,alt:"image"},null,8,o3)])])])):s.createCommentVNode("",!0)]),s.createElementVNode("tr",null,[d[9]||(d[9]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Image URL")],-1)),n.value.userForPageBuilder.image&&typeof n.value.userForPageBuilder.image=="string"&&n.value.userForPageBuilder.image.length>2?(s.openBlock(),s.createElementBlock("td",n3,[s.createElementVNode("div",i3,s.toDisplayString(n.value.userForPageBuilder.image),1)])):s.createCommentVNode("",!0)])])])])])])):s.createCommentVNode("",!0),(b=n.value)!=null&&b.userSettings&&!s.unref(uo)(n.value.userSettings)?(s.openBlock(),s.createElementBlock("div",a3,[d[17]||(d[17]=s.createElementVNode("h4",{class:"myQuaternaryHeader text-sm mb-2"},"User Settings",-1)),s.createElementVNode("div",s3,[s.createElementVNode("div",l3,[s.createElementVNode("table",c3,[d[16]||(d[16]=s.createElementVNode("thead",{class:"bg-gray-50"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Setting "),s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Value ")])],-1)),s.createElementVNode("tbody",d3,[(k=(y=n.value)==null?void 0:y.userSettings)!=null&&k.theme?(s.openBlock(),s.createElementBlock("tr",u3,[d[12]||(d[12]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Theme")],-1)),s.createElementVNode("td",p3,[s.createElementVNode("div",m3,s.toDisplayString(n.value.userSettings.theme),1)])])):s.createCommentVNode("",!0),(w=(v=n.value)==null?void 0:v.userSettings)!=null&&w.language?(s.openBlock(),s.createElementBlock("tr",h3,[d[13]||(d[13]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Language")],-1)),s.createElementVNode("td",f3,[s.createElementVNode("div",g3,s.toDisplayString(n.value.userSettings.language),1)])])):s.createCommentVNode("",!0),((x=(S=n.value)==null?void 0:S.userSettings)==null?void 0:x.autoSave)!==void 0?(s.openBlock(),s.createElementBlock("tr",b3,[d[14]||(d[14]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Auto Save")],-1)),s.createElementVNode("td",w3,[s.createElementVNode("div",y3,[s.createElementVNode("span",{class:s.normalizeClass(["inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",n.value.userSettings.autoSave?"bg-green-100 text-green-800":"bg-red-100 text-red-800"])},s.toDisplayString(n.value.userSettings.autoSave?"Enabled":"Disabled"),3)])])])):s.createCommentVNode("",!0),((O=(C=n.value)==null?void 0:C.userSettings)==null?void 0:O.notifications)!==void 0?(s.openBlock(),s.createElementBlock("tr",v3,[d[15]||(d[15]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Notifications")],-1)),s.createElementVNode("td",x3,[s.createElementVNode("div",k3,[s.createElementVNode("span",{class:s.normalizeClass(["inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",n.value.userSettings.notifications?"bg-green-100 text-green-800":"bg-red-100 text-red-800"])},s.toDisplayString(n.value.userSettings.notifications?"Enabled":"Disabled"),3)])])])):s.createCommentVNode("",!0)])])])])])):s.createCommentVNode("",!0),n.value.pageBuilderLogo&&!s.unref(uo)(n.value.pageBuilderLogo)?(s.openBlock(),s.createElementBlock("div",E3,[d[21]||(d[21]=s.createElementVNode("h4",{class:"myQuaternaryHeader text-sm mb-2"},"Logo Configuration",-1)),s.createElementVNode("div",S3,[s.createElementVNode("div",C3,[s.createElementVNode("table",N3,[d[20]||(d[20]=s.createElementVNode("thead",{class:"bg-gray-50"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Property "),s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Value ")])],-1)),s.createElementVNode("tbody",B3,[s.createElementVNode("tr",null,[d[18]||(d[18]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Logo")],-1)),s.createElementVNode("td",M3,[s.createElementVNode("div",T3,[s.createElementVNode("div",O3,[s.createElementVNode("img",{class:"h-4",src:n.value.pageBuilderLogo.src,alt:"Logo"},null,8,V3)])])])]),s.createElementVNode("tr",null,[d[19]||(d[19]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Logo URL")],-1)),s.createElementVNode("td",P3,[s.createElementVNode("div",A3,[s.createElementVNode("div",D3,[s.createElementVNode("div",I3,[s.createElementVNode("div",L3,[s.createElementVNode("span",R3,s.toDisplayString(n.value.pageBuilderLogo.src),1)])])])])])])])])])])])):s.createCommentVNode("",!0),(D=n.value)!=null&&D.updateOrCreate&&!s.unref(uo)(n.value.updateOrCreate)?(s.openBlock(),s.createElementBlock("div",z3,[d[25]||(d[25]=s.createElementVNode("h4",{class:"myQuaternaryHeader text-sm mb-2"},"Form Type",-1)),s.createElementVNode("div",_3,[s.createElementVNode("div",F3,[s.createElementVNode("table",j3,[d[24]||(d[24]=s.createElementVNode("thead",{class:"bg-gray-50"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Mode "),s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Description ")])],-1)),s.createElementVNode("tbody",H3,[s.createElementVNode("tr",null,[d[22]||(d[22]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Form Type")],-1)),s.createElementVNode("td",W3,[s.createElementVNode("div",q3,[s.createElementVNode("span",{class:s.normalizeClass(["inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",n.value.updateOrCreate==="create"?"bg-green-100 text-green-800":"bg-blue-100 text-blue-800"])},[n.value&&n.value.updateOrCreate.formType==="create"?(s.openBlock(),s.createElementBlock("span",U3,s.toDisplayString(n.value.updateOrCreate.formType),1)):s.createCommentVNode("",!0),n.value&&n.value.updateOrCreate.formType==="update"?(s.openBlock(),s.createElementBlock("span",K3,s.toDisplayString(n.value.updateOrCreate.formType),1)):s.createCommentVNode("",!0)],2)])])]),n.value.updateOrCreate.formName&&n.value.updateOrCreate.formName.length>0?(s.openBlock(),s.createElementBlock("tr",J3,[d[23]||(d[23]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Form Name")],-1)),s.createElementVNode("td",G3,[s.createElementVNode("div",Y3,[s.createElementVNode("span",X3,s.toDisplayString(n.value.updateOrCreate.formName),1)])])])):s.createCommentVNode("",!0)])])])])])):s.createCommentVNode("",!0)])])]),s.createElementVNode("div",{class:"mt-4 mb-4 py-8 border-b border-myPrimbryLightGrayColor"},[d[27]||(d[27]=s.createElementVNode("div",{class:"flex items-left flex-col gap-1"},[s.createElementVNode("h3",{class:"myQuaternaryHeader"},"Download Page as HTML"),s.createElementVNode("p",{class:"myPrimaryParagraph text-xs"},"Download current page layout.")],-1)),s.createElementVNode("div",{class:"mt-4"},[s.createElementVNode("button",{onClick:l,type:"button",class:"myPrimaryButton"}," Download HTML file ")])]),s.createElementVNode("div",Q3,[d[29]||(d[29]=s.createElementVNode("div",{class:"flex items-left flex-col gap-1"},[s.createElementVNode("h3",{class:"myQuaternaryHeader"},"Complete Configuration Overview"),s.createElementVNode("p",{class:"myPrimaryParagraph text-xs"}," omplete configuration object currently used by the Page Builder. It includes information about the user, form behavior, branding settings, and other context-specific data needed for rendering and managing the builder environment. ")],-1)),s.createElementVNode("div",Z3,[d[28]||(d[28]=s.createElementVNode("div",{class:"flex bg-gray-800/40 ring-1 ring-white/5"},[s.createElementVNode("div",{class:"-mb-px flex text-xs font-medium text-myPrimaryMediumGrayColor"},[s.createElementVNode("div",{class:"px-4 py-4 text-white"},"Configuration")])],-1)),s.createElementVNode("div",$3,[s.createElementVNode("p",e4," config: "+s.toDisplayString(JSON.stringify(n.value,null,4)),1)])])])])}}},r4={class:"w-full inset-x-0 h-[90vh] bg-white overflow-x-scroll lg:pt-2 pt-2"},o4={class:"flex items-left flex-col myPrimaryGap border-myPrimaryMediumGrayColor"},n4={class:"text-gray-100 overflow-hidden bg-stone-800"},i4={class:"px-4 pb-8 pt-4 text-gray-100 text-xs"},a4={class:"text-xs pb-2"},s4={class:"text-xs pb-2"},l4={class:"text-xs pb-2"},c4={class:"overflow-hidden bg-stone-800"},d4={class:"flex bg-stone-800 ring-1 ring-white/5"},u4={class:"-mb-px flex text-xs font-medium text-myPrimaryMediumGrayColor"},p4={class:"px-4 pb-8 pt-4 text-gray-100 text-xs break-all"},m4={key:0},h4={key:0},f4={class:"pb-2 text-xs"},g4={key:1,class:"overflow-hidden border border-gray-100 mb-6"},b4={class:"bg-stone-800 pt-4 pb-1 border-b border-gray-200"},w4={class:"overflow-x-auto"},y4={class:"min-w-full"},v4={class:"bg-stone-800 divide-y divide-gray-200"},x4={class:"px-6 py-3 text-left text-xs text-gray-100 font-normal border-b"},k4={class:"overflow-x-auto"},E4={class:"min-w-full"},S4={class:"bg-stone-800 divide-y divide-gray-200"},C4={class:"px-6 py-3 text-left text-xs text-gray-100 font-normal whitespace-pre-line"},N4={class:"overflow-x-auto"},B4={class:"min-w-full"},M4={class:"bg-stone-800 divide-y divide-gray-200"},T4={class:"px-6 py-3 text-left text-xs text-gray-100 font-normal"},O4={key:1},V4={key:0},P4={class:"pb-2 text-xs"},A4={key:1,class:"overflow-hidden border border-gray-100 mb-6"},D4={class:"bg-stone-800 pt-4 pb-1 border-b border-gray-200"},I4={class:"overflow-x-auto"},L4={class:"min-w-full"},R4={class:"bg-stone-800 divide-y divide-gray-200"},z4={class:"px-6 py-3 text-left text-xs text-gray-100 font-normal"},_4={class:"overflow-x-auto"},F4={class:"min-w-full"},j4={class:"bg-stone-800 divide-y divide-gray-200"},H4={class:"px-6 py-3 text-left text-xs text-gray-100 font-normal whitespace-pre-line"},W4={class:"overflow-x-auto"},q4={class:"min-w-full"},U4={class:"bg-stone-800 divide-y divide-gray-200"},K4={class:"px-6 py-3 text-left text-xs text-gray-100 font-normal"},J4={class:"text-xs text-gray-100 whitespace-pre-lines font-sans flex items-start justify-left"},G4=["innerHTML"],Y4={key:2},X4={class:"pb-2 text-xs"},Q4={key:0},Z4={class:"bg-stone-800 pt-4 pb-1 border-b border-gray-200"},$4={class:"overflow-x-auto"},eE={class:"min-w-full"},tE={class:"bg-stone-800 divide-y divide-gray-200"},rE={class:"px-6 py-3 text-left text-xs text-gray-100 font-normal"},oE={class:"overflow-x-auto"},nE={class:"min-w-full"},iE={class:"bg-stone-800 divide-y divide-gray-200"},aE={class:"px-6 py-3 text-left text-xs text-gray-100 font-normal whitespace-pre-line"},sE={class:"overflow-x-auto"},lE={class:"min-w-full"},cE={class:"bg-stone-800 divide-y divide-gray-200"},dE={class:"px-6 py-3 text-left text-xs text-gray-100 font-normal"},uE={class:"text-xs text-gray-100 whitespace-pre-lines font-sans flex items-start justify-left"},pE=["innerHTML"],mE={__name:"AdvancedPageBuilderSettings",setup(r){const e=se,t=s.computed(()=>e.getElement),o=s.computed(()=>e.getComponent),n=s.computed(()=>e.getComponents),i=s.ref("element"),a=function(c){i.value=c};function l(c){return c?c.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"):""}return(c,d)=>{var u,p,m,h,f,g,b,y,k,v;return s.openBlock(),s.createElementBlock("div",r4,[s.createElementVNode("div",o4,[d[22]||(d[22]=s.createElementVNode("p",{class:"myPrimaryParagraph"}," Overview of Selected Element, Component, and Components. This section provides real-time updates based on your HTML selection. ",-1)),s.createElementVNode("div",null,[d[7]||(d[7]=s.createElementVNode("h4",{class:"myPrimaryParagraph text-xs pb-2"},"Types",-1)),s.createElementVNode("div",n4,[d[6]||(d[6]=s.createElementVNode("div",{class:"flex bg-stone-800 ring-1 ring-white/5"},[s.createElementVNode("div",{class:"-mb-px flex text-xs font-medium text-myPrimaryMediumGrayColor"},[s.createElementVNode("div",{class:"px-4 py-4 text-gray-100"},"Types")])],-1)),s.createElementVNode("div",i4,[s.createElementVNode("p",a4,[d[3]||(d[3]=s.createElementVNode("span",null,"Element type: ",-1)),s.createElementVNode("span",null,s.toDisplayString(typeof t.value),1)]),s.createElementVNode("p",s4,[d[4]||(d[4]=s.createElementVNode("span",null,"Component type: ",-1)),s.createTextVNode(" "+s.toDisplayString(typeof o.value),1)]),s.createElementVNode("p",l4,[d[5]||(d[5]=s.createElementVNode("span",null,"Components: ",-1)),s.createElementVNode("span",null,s.toDisplayString(Array.isArray(n.value)===!0?"array":typeof n.value),1)])])])]),s.createElementVNode("div",null,[d[21]||(d[21]=s.createElementVNode("h4",{class:"myPrimaryParagraph text-xs pb-2"},"Content",-1)),s.createElementVNode("div",c4,[s.createElementVNode("div",d4,[s.createElementVNode("div",u4,[s.createElementVNode("div",{onClick:d[0]||(d[0]=w=>a("element")),class:s.normalizeClass(["px-4 py-4 cursor-pointer",[i.value==="element"?"text-gray-100":""]])}," Element ",2),s.createElementVNode("div",{onClick:d[1]||(d[1]=w=>a("component")),class:s.normalizeClass(["px-4 py-4 cursor-pointer",[i.value==="component"?"text-gray-100":""]])}," Component ",2),s.createElementVNode("div",{onClick:d[2]||(d[2]=w=>a("components")),class:s.normalizeClass(["px-4 py-4 cursor-pointer",[i.value==="components"?"text-gray-100":""]])}," Components "+s.toDisplayString(Array.isArray(n.value)&&n.value.length),3)])]),s.createElementVNode("div",p4,[i.value==="element"?(s.openBlock(),s.createElementBlock("div",m4,[o.value?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",h4,[s.createElementVNode("p",f4,s.toDisplayString(o.value===null?"No Element selected":typeof o.value),1)])),t.value?(s.openBlock(),s.createElementBlock("div",g4,[s.createElementVNode("div",b4,[s.createElementVNode("div",w4,[s.createElementVNode("table",y4,[d[8]||(d[8]=s.createElementVNode("thead",{class:"bg-stone-800"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{class:"px-6 py-3 text-left text-xs text-gray-100 font-normal"}," Selected HTML: ")])],-1)),s.createElementVNode("tbody",v4,[s.createElementVNode("tr",null,[s.createElementVNode("td",x4,s.toDisplayString((u=t.value)==null?void 0:u.outerHTML),1)])])])]),s.createElementVNode("div",k4,[s.createElementVNode("table",E4,[d[9]||(d[9]=s.createElementVNode("thead",{class:"bg-stone-800"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{class:"px-6 py-3 text-left text-xs text-gray-100 font-normal"}," Element src: ")])],-1)),s.createElementVNode("tbody",S4,[s.createElementVNode("tr",null,[s.createElementVNode("td",C4,s.toDisplayString((p=t.value)!=null&&p.src?(m=t.value)==null?void 0:m.src:typeof((h=t.value)==null?void 0:h.src)),1)])])])])]),s.createElementVNode("div",N4,[s.createElementVNode("table",B4,[d[10]||(d[10]=s.createElementVNode("thead",{class:"bg-stone-800"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{class:"px-6 py-3 text-left text-xs text-gray-100 font-normal"}," Element classes: ")])],-1)),s.createElementVNode("tbody",M4,[s.createElementVNode("tr",null,[s.createElementVNode("td",T4,s.toDisplayString((f=t.value)!=null&&f.classList?(g=t.value)==null?void 0:g.classList:typeof((b=t.value)==null?void 0:b.classList)),1)])])])])])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),i.value==="component"?(s.openBlock(),s.createElementBlock("div",O4,[o.value?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",V4,[s.createElementVNode("p",P4,s.toDisplayString(o.value===null?"No Component selected":typeof o.value),1)])),o.value?(s.openBlock(),s.createElementBlock("div",A4,[s.createElementVNode("div",D4,[s.createElementVNode("div",I4,[s.createElementVNode("table",L4,[d[11]||(d[11]=s.createElementVNode("thead",{class:"bg-stone-800"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{class:"px-6 py-3 text-left text-xs text-gray-100 font-normal"},"ID:")])],-1)),s.createElementVNode("tbody",R4,[s.createElementVNode("tr",null,[s.createElementVNode("td",z4,s.toDisplayString((y=o.value)==null?void 0:y.id),1)])])])]),s.createElementVNode("div",_4,[s.createElementVNode("table",F4,[d[12]||(d[12]=s.createElementVNode("thead",{class:"bg-stone-800"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{class:"px-6 py-3 text-left text-xs text-gray-100 font-normal border-t"}," Title: ")])],-1)),s.createElementVNode("tbody",j4,[s.createElementVNode("tr",null,[s.createElementVNode("td",H4,s.toDisplayString((k=o.value)==null?void 0:k.title),1)])])])])]),s.createElementVNode("div",W4,[s.createElementVNode("table",q4,[d[15]||(d[15]=s.createElementVNode("thead",{class:"bg-stone-800"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{class:"px-6 py-3 text-left text-xs text-gray-100 font-normal"}," HTML Code: ")])],-1)),s.createElementVNode("tbody",U4,[s.createElementVNode("tr",null,[s.createElementVNode("td",K4,[s.createElementVNode("pre",J4,[d[13]||(d[13]=s.createTextVNode(" ")),s.createElementVNode("code",{class:"font-sans",innerHTML:l((v=o.value)==null?void 0:v.html_code)},null,8,G4),d[14]||(d[14]=s.createTextVNode(`
|
|
545
|
+
`))])])])])])])])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),i.value==="components"?(s.openBlock(),s.createElementBlock("div",Y4,[s.createElementVNode("div",null,[s.createElementVNode("p",X4,s.toDisplayString(Array.isArray(n.value)&&n.value.length===0?"No Components added yet":""),1)]),n.value?(s.openBlock(),s.createElementBlock("div",Q4,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value,w=>(s.openBlock(),s.createElementBlock("div",{key:w.id,class:"overflow-hidden border border-gray-100 mb-6"},[s.createElementVNode("div",Z4,[s.createElementVNode("div",$4,[s.createElementVNode("table",eE,[d[16]||(d[16]=s.createElementVNode("thead",{class:"bg-stone-800"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{class:"px-6 py-3 text-left text-xs text-gray-100 font-normal"}," ID: ")])],-1)),s.createElementVNode("tbody",tE,[s.createElementVNode("tr",null,[s.createElementVNode("td",rE,s.toDisplayString(w.id),1)])])])]),s.createElementVNode("div",oE,[s.createElementVNode("table",nE,[d[17]||(d[17]=s.createElementVNode("thead",{class:"bg-stone-800"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{class:"px-6 py-3 text-left text-xs text-gray-100 font-normal border-t"}," Title: ")])],-1)),s.createElementVNode("tbody",iE,[s.createElementVNode("tr",null,[s.createElementVNode("td",aE,s.toDisplayString(w.title),1)])])])])]),s.createElementVNode("div",sE,[s.createElementVNode("table",lE,[d[20]||(d[20]=s.createElementVNode("thead",{class:"bg-stone-800"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{class:"px-6 py-3 text-left text-xs text-gray-100 font-normal"}," HTML Code: ")])],-1)),s.createElementVNode("tbody",cE,[s.createElementVNode("tr",null,[s.createElementVNode("td",dE,[s.createElementVNode("pre",uE,[d[18]||(d[18]=s.createTextVNode(" ")),s.createElementVNode("code",{class:"font-sans",innerHTML:l(w.html_code)},null,8,pE),d[19]||(d[19]=s.createTextVNode(`
|
|
546
|
+
`))])])])])])])]))),128))])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)])])])])])}}},hE={class:"flex gap-2 items-center myPrimaryParagraph font-medium text-xs py-1 px-2 rounded-full lg:border lg:border-gray-200 lg:shadow-sm lg:mr-10"},fE={key:0,class:"flex items-center myPrimaryTag py-0"},gE={class:"text-white rounded-full bg-myPrimaryBrandColor flex justify-center items-center text-xs h-8 min-h-8 max-h-8 w-8 min-w-8 max-w-8 font-normal"},bE={class:"hidden text-xs h-8 lg:flex items-center font-normal"},wE={key:1,class:"flex items-center lg:myPrimaryTag py-0 gap-4 w-max"},yE={class:"text-white flex-shrink-0 h-8 w-8 rounded-full flex justify-center items-center text-xs rounded-l-full"},vE=["src"],xE={class:"hidden text-xs h-8 lg:flex items-center font-normal"},kE={class:"relative group"},EE={class:"absolute left-0 -ml-16 -mt-2 flex flex-col gap-3 shadow-lg bg-white w-max border border-gray-100 rounded-2xl transition-all duration-200 ease-out pt-4 pr-4 pb-4 pl-2 z-30 opacity-0 pointer-events-none -translate-y-2 group-hover:opacity-100 group-hover:pointer-events-auto group-hover:translate-y-0"},SE={__name:"ToolbarOption",setup(r){const e=se,t=s.computed(()=>e.getConfigPageBuilder),o=new de(e),n=s.ref(!1),i=s.ref(""),a=s.ref(1),l=s.ref(""),c=s.ref(""),d=s.ref(""),u=s.ref(null),p=s.ref(null),m=s.ref(null),h=s.ref(null),f=s.ref(null),g=function(){n.value=!0,i.value="delete",a.value=2,l.value="Remove all Components",c.value="Are you sure you want to remove all Components?",d.value="Close",u.value=null,p.value="Delete",m.value=function(){n.value=!1},f.value=async function(){o.deleteAllComponents(),await o.clearHtmlSelection(),t.value.updateOrCreate&&typeof t.value.updateOrCreate.formType=="string"&&(t.value.updateOrCreate.formType==="create"&&await o.removeItemComponentsLocalStorage(),t.value.updateOrCreate.formType==="update"&&await o.removeItemComponentsLocalStorage()),n.value=!1}},b=s.ref(!1),y=function(){b.value=!1},k=function(){b.value=!0},v=s.ref(!1),w=function(){v.value=!1},S=function(){v.value=!0};return(x,C)=>{var O;return s.openBlock(),s.createElementBlock("div",null,[s.createElementVNode("div",hE,[t.value&&t.value.userForPageBuilder&&t.value.userForPageBuilder.name&&(!t.value.userForPageBuilder.image||typeof t.value.userForPageBuilder.image=="string"&&((O=t.value.userForPageBuilder.image)==null?void 0:O.length)<2)?(s.openBlock(),s.createElementBlock("div",fE,[s.createElementVNode("div",gE,s.toDisplayString(typeof t.value.userForPageBuilder.name=="string"&&t.value.userForPageBuilder.name[0]),1),s.createElementVNode("div",bE,s.toDisplayString(t.value.userForPageBuilder.name),1)])):s.createCommentVNode("",!0),t.value&&t.value.userForPageBuilder&&t.value.userForPageBuilder.name&&t.value.userForPageBuilder.image&&typeof t.value.userForPageBuilder.image=="string"&&t.value.userForPageBuilder.image.length>2?(s.openBlock(),s.createElementBlock("div",wE,[s.createElementVNode("div",yE,[s.createElementVNode("img",{alt:"avatar",src:`${t.value.userForPageBuilder.image}`,class:"block inset-0 object-top h-8 min-h-8 max-h-8 w-8 min-w-8 max-w-8 object-cover rounded-full"},null,8,vE)]),s.createElementVNode("div",xE,s.toDisplayString(t.value.userForPageBuilder.name),1)])):s.createCommentVNode("",!0),s.createElementVNode("div",null,[s.createElementVNode("div",kE,[C[2]||(C[2]=s.createElementVNode("button",{type:"button",class:"cursor-pointer lg:flex myPrimaryTag font-normal w-max text-xs"},[s.createElementVNode("span",null," Options ")],-1)),s.createElementVNode("div",EE,[s.createElementVNode("button",{onClick:C[0]||(C[0]=()=>{s.unref(o).clearHtmlSelection(),k()}),class:"cursor-pointer lg:flex myPrimaryTag font-normal w-max border-none m-0",type:"button"}," Config Overview "),s.createElementVNode("button",{onClick:S,class:"cursor-pointer lg:flex myPrimaryTag font-normal w-max border-none m-0",type:"button"}," HTML Overview "),s.createElementVNode("button",{onClick:C[1]||(C[1]=()=>{s.unref(o).clearHtmlSelection(),g()}),class:"cursor-pointer lg:flex myPrimaryTag font-normal w-max border-none m-0 bg-myPrimaryErrorColor text-white",type:"button"}," Delete Layout ")])])])]),s.createVNode(Dr,{maxWidth:"5xl",showModalBuilder:b.value,title:"Main Settings",onCloseMainModalBuilder:y,minHeight:"",maxHeight:""},{default:s.withCtx(()=>[s.createVNode(t4)]),_:1},8,["showModalBuilder"]),s.createVNode(Dr,{maxWidth:"5xl",showModalBuilder:v.value,title:"Selected HTML",onCloseMainModalBuilder:w,minHeight:"",maxHeight:""},{default:s.withCtx(()=>[s.createVNode(mE)]),_:1},8,["showModalBuilder"]),s.createVNode(zr,{showDynamicModalBuilder:n.value,type:i.value,gridColumnAmount:a.value,title:l.value,description:c.value,firstButtonText:d.value,secondButtonText:u.value,thirdButtonText:p.value,onFirstModalButtonFunctionDynamicModalBuilder:m.value,onSecondModalButtonFunctionDynamicModalBuilder:h.value,onThirdModalButtonFunctionDynamicModalBuilder:f.value},{default:s.withCtx(()=>C[3]||(C[3]=[s.createElementVNode("header",null,null,-1),s.createElementVNode("main",null,null,-1)])),_:1,__:[3]},8,["showDynamicModalBuilder","type","gridColumnAmount","title","description","firstButtonText","secondButtonText","thirdButtonText","onFirstModalButtonFunctionDynamicModalBuilder","onSecondModalButtonFunctionDynamicModalBuilder","onThirdModalButtonFunctionDynamicModalBuilder"])])}}};let Vl=null;function CE(){return(r,e=300)=>{Vl&&clearTimeout(Vl),Vl=setTimeout(r,e)}}const NE={id:"builder-container",class:"font-sans max-w-full m-1 border border-gray-600 inset-x-0 z-10 bg-white overflow-x-scroll"},BE={id:"pagebuilder-top-area",class:"lg:px-4 pt-2 pb-4 mx-4 mb-4 mt-2"},ME={key:0,class:"flex items-center divide-x divide-gray-200"},TE={id:"pagebuilder-logo-main",class:"pr-4"},OE=["src"],VE={key:1},PE={class:"relative h-full flex pb-2 gap-2"},AE={class:"mx-2 flex flex-col myPrimaryGap items-stretch"},DE={class:"flex gap-2 items-center justify-center"},IE={id:"pagebuilder-toolbar-area",class:"flex items-center justify-between rounded-t-2xl bg-myPrimaryLightGrayColor min-w-[30rem]"},LE=["disabled"],RE={key:0,class:"h-10 w-4 cursor-pointer rounded-full flex items-center justify-center"},zE={key:1,class:"h-10 w-4 cursor-pointer rounded-full flex items-center justify-center"},_E={class:"flex items-center justify-center gap-4"},FE={id:"contains-pagebuilder",class:"pl-4 pr-4 pb-4 overflow-y-auto pt-1 h-[39rem]"},jE={id:"pagebuilder"},HE=["onMouseup"],WE=["innerHTML"],qE={class:"mt-6 flex items-center gap-2 justify-center"},UE={__name:"PageBuilder",props:{CustomMediaLibraryComponent:{type:Object,default:null},CustomBuilderComponents:{type:Object,default:null}},setup(r){const e=r,t=Na,o=se,n=new de(o);s.provide("pageBuilderStateStore",o),s.provide("internalPinia",t),s.provide("CustomMediaComponent",e.CustomMediaLibraryComponent),s.provide("CustomBuilderComponents",e.CustomBuilderComponents);const i=()=>{h.value=!1};s.provide("closeAddComponentModal",i);const a=s.computed(()=>o.getConfigPageBuilder),l=s.computed(()=>o.getIsSaving),c=s.computed(()=>o.getMenuRight),d=function(){n.previewCurrentDesign()},u=s.ref(!1),p=function(){d(),u.value=!0},m=function(){u.value=!1},h=s.ref(!1),f=s.ref(""),g=s.ref(""),b=s.ref(null),y=async function(){await n.clearHtmlSelection(),f.value="Add Components to Page",g.value="Close",h.value=!0,b.value=function(){h.value=!1}},k=s.computed(()=>o.getComponents),v=s.computed(()=>o.getElement),w=s.computed(()=>!v.value||!(v.value instanceof HTMLElement)?"":{src:v.value.getAttribute("src"),href:v.value.getAttribute("href"),style:v.value.getAttribute("style"),class:v.value.getAttribute("class"),dataImage:v.value.getAttribute("data-image")}),S=CE();s.watch(w,async(H,V)=>{((H==null?void 0:H.src)!==(V==null?void 0:V.src)||(H==null?void 0:H.href)!==(V==null?void 0:V.href)||(H==null?void 0:H.style)!==(V==null?void 0:V.style)||(H==null?void 0:H.class)!==(V==null?void 0:V.class)||(H==null?void 0:H.dataImage)!==(V==null?void 0:V.dataImage))&&S(async()=>{await n.handleAutoSave(),await n.initializeElementStyles()},200)});const x=function(H){o.setComponent(H)},C=s.ref(null),O={updateOrCreate:{formType:"create",formName:"post"}},D=function(H){if(H==null||H&&Object.keys(H).length===0&&H.constructor===Object){n.applyPageBuilderConfig(O);return}H&&Object.keys(H).length!==0&&H.constructor===Object&&xk(H)};s.watch(()=>a.value,H=>{n.updateLocalStorageItemName(),H&&H.updateOrCreate&&H.updateOrCreate.formType==="create"&&n.mountComponentsToDOM()},{immediate:!0});const B=s.ref(1),E=s.ref(""),P=s.ref(!1),_=s.ref(""),ee=s.ref(""),re=s.ref(""),J=s.ref(null),z=s.ref(null),X=s.ref(null),ne=s.ref(null),Je=s.ref(null),ut=s.ref(null),nt=async function(){await n.clearHtmlSelection(),E.value="default",_.value="Continue Your Work?",ee.value="We noticed you have some changes that weren’t saved last time. Would you like to pick up where you left off, or use the version that’s currently saved?",re.value="Use Saved Version",J.value=null,z.value="Continue Where I Left Off",P.value=!0,X.value=function(){P.value=!1},ne.value=function(){},Je.value=async function(){ut.value=!0,await wa(600),await n.resumeEditingForUpdate(),ut.value=!1,P.value=!1}};return s.onMounted(async()=>{const H=a.value;D(H),n.updateLocalStorageItemName(),n.deleteOldPageBuilderLocalStorage(),await n.clearHtmlSelection(),await n.addListenersToEditableElements(),await n.hasLocalDraftForUpdate()&&nt()}),(H,V)=>(s.openBlock(),s.createElementBlock("div",NE,[s.createElementVNode("div",BE,[s.createElementVNode("div",{onClick:V[1]||(V[1]=s.withModifiers(oe=>s.unref(n).clearHtmlSelection(),["self"])),class:"flex justify-between items-center pb-2 border-b border-gray-200"},[s.createElementVNode("div",{onClick:V[0]||(V[0]=oe=>s.unref(n).clearHtmlSelection())},[a.value&&a.value.pageBuilderLogo&&a.value.pageBuilderLogo.src?(s.openBlock(),s.createElementBlock("div",ME,[s.createElementVNode("div",TE,[s.createElementVNode("img",{class:"h-6",src:a.value.pageBuilderLogo.src,alt:"Logo"},null,8,OE)]),V[17]||(V[17]=s.createElementVNode("span",{class:"myPrimaryParagraph font-medium pl-4"},"Editing Page ",-1))])):(s.openBlock(),s.createElementBlock("div",VE,V[18]||(V[18]=[s.createElementVNode("div",{class:"pr-6"},[s.createElementVNode("span",{class:"myPrimaryParagraph font-medium"},"Editing Page ")],-1)])))]),s.createElementVNode("div",null,[s.createVNode(SE)])])]),h.value?(s.openBlock(),s.createBlock(G2,{key:0,show:h.value,firstButtonText:g.value,title:f.value,CustomBuilderComponents:e.CustomBuilderComponents,onFirstModalButtonSearchComponentsFunction:b.value},null,8,["show","firstButtonText","title","CustomBuilderComponents","onFirstModalButtonSearchComponentsFunction"])):s.createCommentVNode("",!0),s.createVNode(Dr,{title:"Preview",showModalBuilder:u.value,onCloseMainModalBuilder:m,maxWidth:"screen"},{default:s.withCtx(()=>[s.createVNode(lc)]),_:1},8,["showModalBuilder"]),s.createVNode(zr,{showDynamicModalBuilder:P.value,isLoading:ut.value,type:E.value,gridColumnAmount:B.value,title:_.value,description:ee.value,firstButtonText:re.value,secondButtonText:J.value,thirdButtonText:z.value,onFirstModalButtonFunctionDynamicModalBuilder:X.value,onSecondModalButtonFunctionDynamicModalBuilder:ne.value,onThirdModalButtonFunctionDynamicModalBuilder:Je.value},{default:s.withCtx(()=>V[19]||(V[19]=[s.createElementVNode("header",null,null,-1),s.createElementVNode("main",null,null,-1)])),_:1,__:[19]},8,["showDynamicModalBuilder","isLoading","type","gridColumnAmount","title","description","firstButtonText","secondButtonText","thirdButtonText","onFirstModalButtonFunctionDynamicModalBuilder","onSecondModalButtonFunctionDynamicModalBuilder","onThirdModalButtonFunctionDynamicModalBuilder"]),s.createElementVNode("div",null,[s.createElementVNode("div",PE,[s.createElementVNode("div",{onClick:V[4]||(V[4]=s.withModifiers(oe=>s.unref(n).clearHtmlSelection(),["self"])),id:"pagebuilder-left-area",class:"min-w-[3.5rem] pt-6 pb-2 ml-2 bg-myPrimaryLightGrayColor rounded-full shadow-sm"},[s.createElementVNode("div",AE,[s.createElementVNode("div",DE,[s.createElementVNode("button",{type:"button",onClick:V[2]||(V[2]=()=>{s.unref(o).setComponentArrayAddMethod("unshift"),y()}),class:"h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0"},V[20]||(V[20]=[s.createElementVNode("span",{class:"myMediumIcon material-symbols-outlined"}," interests ",-1)]))]),s.createElementVNode("div",{onClick:V[3]||(V[3]=s.withModifiers(oe=>s.unref(n).clearHtmlSelection(),["self"]))},[v.value?(s.openBlock(),s.createBlock(tf,{key:0})):s.createCommentVNode("",!0)])])]),s.createElementVNode("main",{class:s.normalizeClass(["flex flex-col h-full grow rounded-tr-2xl rounded-tl-2xl border border-gray-200 items-stretch",{"mr-2":!c.value,"":c.value}])},[s.createElementVNode("div",IE,[s.createElementVNode("div",{onClick:V[6]||(V[6]=s.withModifiers(oe=>s.unref(n).clearHtmlSelection(),["self"])),class:"flex myPrimaryGap items-center pt-4 pb-2 pl-2 h-24 w-full min-w-36"},[s.createElementVNode("button",{class:"mySecondaryButton h-6 flex gap-2",onClick:V[5]||(V[5]=s.withModifiers(async()=>{await s.unref(n).clearHtmlSelection(),await s.unref(n).handleManualSave()},["stop"])),type:"button",disabled:l.value},[l.value?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",RE,V[21]||(V[21]=[s.createElementVNode("span",{class:"material-symbols-outlined"},"save",-1)]))),l.value?(s.openBlock(),s.createElementBlock("div",zE,V[22]||(V[22]=[s.createElementVNode("span",{class:"relative flex size-3"},[s.createElementVNode("span",{class:"absolute inline-flex h-full w-full animate-ping rounded-full bg-gray-400 opacity-75"}),s.createElementVNode("span",{class:"relative inline-flex size-3 rounded-full bg-green-200"})],-1)]))):s.createCommentVNode("",!0),V[23]||(V[23]=s.createElementVNode("div",null,"Save",-1))],8,LE)]),s.createElementVNode("div",{onClick:V[10]||(V[10]=s.withModifiers(oe=>s.unref(n).clearHtmlSelection(),["self"])),class:"flex justify-end py-2 pr-2 h-24 w-full"},[s.createElementVNode("div",{onClick:V[9]||(V[9]=s.withModifiers(oe=>s.unref(n).clearHtmlSelection(),["self"])),class:"flex items-center justify-center gap-4"},[s.createElementVNode("button",{type:"button",onClick:V[7]||(V[7]=()=>{s.unref(o).setComponentArrayAddMethod("unshift"),y()})},V[24]||(V[24]=[s.createStaticVNode('<div class="flex items-center justify-center gap-2"><span class="lg:block hidden"><div class="whitespace-nowrap">Add new Components</div></span><span class="h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0"><span class="myMediumIcon material-symbols-outlined"> interests </span></span></div>',1)])),s.createElementVNode("div",_E,[s.createElementVNode("button",{type:"button",onClick:V[8]||(V[8]=()=>{s.unref(o).setMenuRight(!1),s.unref(o).setElement(null),s.unref(n).clearHtmlSelection(),p()})},V[25]||(V[25]=[s.createElementVNode("div",{class:"flex items-center justify-center gap-2"},[s.createElementVNode("div",{class:"whitespace-nowrap lg:block hidden"},"Preview"),s.createElementVNode("span",{class:"h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0"},[s.createElementVNode("span",{class:"myMediumIcon material-symbols-outlined"}," visibility ")])],-1)]))])])]),s.createElementVNode("div",{onClick:V[13]||(V[13]=s.withModifiers(oe=>s.unref(n).clearHtmlSelection(),["self"])),class:"flex justify-end py-2 pr-2 w-full h-24"},[s.createElementVNode("div",{onClick:V[12]||(V[12]=s.withModifiers(oe=>s.unref(n).clearHtmlSelection(),["self"])),class:"flex items-center justify-center gap-4"},[c.value===!1?(s.openBlock(),s.createElementBlock("button",{key:0,type:"button",onClick:V[11]||(V[11]=oe=>s.unref(o).setMenuRight(!0))},V[26]||(V[26]=[s.createElementVNode("div",{class:"flex items-center justify-center gap-2"},[s.createElementVNode("span",{class:"lg:block hidden"}," Styling "),s.createElementVNode("span",{class:"h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0"},[s.createElementVNode("span",{class:"myMediumIcon material-symbols-outlined"}," more_vert ")])],-1)]))):s.createCommentVNode("",!0)])])]),s.createVNode(C2),s.createElementVNode("div",FE,[s.createElementVNode("div",jE,[s.createElementVNode("div",{ref_key:"draggableZone",ref:C},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(k.value,oe=>(s.openBlock(),s.createElementBlock("div",{key:oe.id,id:"page-builder-editor-editable-area",class:"bg-white grow"},[s.createElementVNode("div",{onMouseup:Et=>x(oe),class:"relative group"},[s.createElementVNode("div",{innerHTML:oe.html_code},null,8,WE)],40,HE)]))),128))],512),s.createElementVNode("div",{onClick:V[15]||(V[15]=oe=>s.unref(n).clearHtmlSelection()),id:"pagebuilder-bottom-components-area",class:s.normalizeClass(["pt-8 pb-12 text-center focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 my-2 mx-4",{"border-t border-gray-200":k.value.length>0}])},[V[28]||(V[28]=s.createElementVNode("div",{class:"flex items-center justify-center gap-2 font-medium"},[s.createElementVNode("span",{class:"lg:block hidden"},[s.createElementVNode("div",null,"Add new components to the bottom of the page")])],-1)),s.createElementVNode("div",qE,[s.createElementVNode("button",{onClick:V[14]||(V[14]=()=>{s.unref(o).setComponentArrayAddMethod("push"),y()}),type:"button",class:"myPrimaryButton flex items-center gap-2 justify-center"},V[27]||(V[27]=[s.createElementVNode("span",{class:"myMediumIcon material-symbols-outlined"}," interests ",-1),s.createElementVNode("span",{class:"font-medium"}," Add new Components ",-1)]))])],2)])])],2),s.createElementVNode("aside",{"aria-label":"Menu",id:"pagebuilder-right-area",class:s.normalizeClass([{"w-0":!c.value,"w-80 mr-2 bg-myPrimaryLightGrayColor items-stretch":c.value},"duration-300 z-20 flex-shrink-0 overflow-hidden shadow-sm rounded-l-2xl"])},[s.createVNode(yk,{onCloseEditor:V[16]||(V[16]=oe=>s.unref(o).setMenuRight(!1))})],2)])])]))}};G.PageBuilder=UE,G.PageBuilderClass=de,G.Preview=lc,G.createPinia=ec,G.sharedPageBuilderPinia=Na,G.sharedPageBuilderStore=se,G.usePageBuilderModal=Pm,G.usePageBuilderStateStore=sc,Object.defineProperty(G,Symbol.toStringTag,{value:"Module"})});
|