(function(ke,K){typeof exports=="object"&&typeof module<"u"?module.exports=K():typeof define=="function"&&define.amd?define(K):(ke=typeof globalThis<"u"?globalThis:ke||self,ke.MarkdownX=K())})(this,function(){"use strict";class ke{constructor(t){this.instance=t,this.debugInfoEl=null,this.debugBackgroundEl=null,this.debugMarkers={lineY:null,lineX:null,infoY:null,infoX:null}}start(){this.addDebugElement(),this.updateDebugInfo(),this.updateDebugMarkers()}stop(){this.removeDebugElementIfExists(),this.removeDebugMarkersIfExists()}addDebugElement(){const t=document.createElement("div");t.className="markdownx-debug-info fixed bottom-0 z-50 hidden rounded-l-lg mb-2 translate-x-full overflow-hidden right-0 bg-black",document.body.appendChild(t),this.debugInfoEl=t,setTimeout(()=>{this.debugInfoEl&&(this.debugInfoEl.classList.remove("hidden"),this.debugInfoEl.classList.add("ease-out","duration-300"),setTimeout(()=>{this.debugInfoEl&&this.debugInfoEl.classList.remove("translate-x-full")},10))},10)}removeDebugElementIfExists(){this.debugInfoEl&&this.debugInfoEl.remove()}updateDebugInfo(){var n,r,i,s,o,a;let t=[["Cursor Offset Left:",this.instance.cursorPos.x+"px"],["Cursor Offset Top:",this.instance.cursorPos.y+"px"],["Cursor Character Start:",this.instance.caret.start],["Cursor Character End:",this.instance.caret.end],["Cursor Selection Start: ",((r=(n=this.instance.cursor)==null?void 0:n.shadow)==null?void 0:r.offsetLeft)??0],["Cursor Selection End: ",(((s=(i=this.instance.cursor)==null?void 0:i.shadow)==null?void 0:s.offsetLeft)??0)+(((a=(o=this.instance.cursor)==null?void 0:o.shadow)==null?void 0:a.offsetWidth)??0)]],u="";for(let l=0;l ${t[l][0]} ${t[l][1]} `;this.debugInfoEl&&(this.debugInfoEl.innerHTML=u)}updateDebugMarkers(){var t,u,n,r,i,s,o,a,l;this.removeDebugMarkersIfExists(),this.debugMarkers.lineY=document.createElement("div"),this.debugMarkers.lineY.className="w-full h-px translate-y-4 z-50 bg-red-400 absolute left-0",this.debugMarkers.lineX=document.createElement("div"),this.debugMarkers.lineX.className="h-full w-px z-50 bg-red-400 absolute top-0",this.debugMarkers.infoX=document.createElement("div"),this.debugMarkers.infoX.className="h-auto w-auto z-50 text-white bg-red-400 -translate-x-5 -translate-y-3 py-1 rounded-full text-xs px-2 text-[10px] ml-1 absolute bottom-0",this.debugMarkers.infoX.innerHTML=this.instance.cursorPos.x+'px from left',this.debugMarkers.infoY=document.createElement("div"),this.debugMarkers.infoY.className="h-auto w-auto z-50 text-white rounded-full ml-1 text-xs absolute right-0 -translate-x-2 translate-y-1 py-1 px-2 text-[10px] bg-red-400",this.debugMarkers.infoY.innerHTML=this.instance.cursorPos.y+'px from top',(t=this.instance.helpers)==null||t.elementOffset(this.instance.elements.canvas),this.debugMarkers.lineY.style.top=this.instance.cursorPos.y+"px",this.debugMarkers.lineX.style.left=this.instance.cursorPos.x+"px",this.debugMarkers.infoX.style.left=this.instance.cursorPos.x+"px",this.debugMarkers.infoY.style.top=this.instance.cursorPos.y+"px",(n=(u=this.instance.element)==null?void 0:u.querySelector(".markdownx-canvas"))==null||n.append(this.debugMarkers.lineY),(i=(r=this.instance.element)==null?void 0:r.querySelector(".markdownx-canvas"))==null||i.append(this.debugMarkers.lineX),(o=(s=this.instance.element)==null?void 0:s.querySelector(".markdownx-canvas"))==null||o.append(this.debugMarkers.infoX),(l=(a=this.instance.element)==null?void 0:a.querySelector(".markdownx-canvas"))==null||l.append(this.debugMarkers.infoY)}removeDebugMarkersIfExists(){this.debugMarkers.lineY&&this.debugMarkers.lineY.remove(),this.debugMarkers.lineX&&this.debugMarkers.lineX.remove(),this.debugMarkers.infoX&&this.debugMarkers.infoX.remove(),this.debugMarkers.infoY&&this.debugMarkers.infoY.remove()}}const K={lastHideTime:0,hideListener:null,showListener:null,registerFloatingToolbarHideListener(e){this.hideListener=t=>{this.hide(e)},window.addEventListener("markdown-x-floating-toolbar-hide",this.hideListener)},registerFloatingToolbarShowListener(e){this.showListener=t=>{this.show(e)},window.addEventListener("markdown-x-floating-toolbar-show",this.showListener)},hide(e){this.hideListener&&(window.removeEventListener("markdown-x-floating-toolbar-hide",this.hideListener),this.hideListener=null),this.registerFloatingToolbarShowListener(e),document.getElementById("MarkdownXfloatingToolbar")&&(document.getElementById("MarkdownXfloatingToolbar").remove(),this.lastHideTime=Date.now())},getToolbarMenuItems(e){var n,r;let t=[];for(let i=0;i{var c;console.log("heyo!"),l&&typeof l.toolbarClick=="function"&&(l.toolbarClick(),(c=e.textarea)==null||c.dispatchEvent(new Event("change")),this.hide(e))}),s.appendChild(o),s.appendChild(a),u.appendChild(s)}return u},show(e){this.hide(e),this.showListener&&(window.removeEventListener("markdown-x-floating-toolbar-show",this.showListener),this.showListener=null),this.registerFloatingToolbarHideListener(e);let t=document.createElement("div");t.id="MarkdownXfloatingToolbar",t.className="w-auto h-[38px] flex p-1 bg-white z-[999] -translate-y-full rounded-md -translate-x-1/2 absolute border border-neutral-200 -mt-2 opacity-100 ease-out duration-500";const u=this.getToolbarMenuItems(e);t.appendChild(u);const n=e.textarea;if(!n)return;const r=n.getBoundingClientRect(),i=e.cursor.shadow,s=i?i.offsetLeft+i.offsetWidth-i.offsetLeft:0,o=e.cursorPos.y+r.top+window.scrollY+"px";t.style.top=o,t.style.left=e.cursorPos.x+r.left+s/2+"px",document.body.appendChild(t)}};class Pr{constructor(t){this.instance=t,this.loadEventListeners()}textareaEvent(t){var x,y,b;let u=t.target,n="";t instanceof KeyboardEvent&&(n=t.key||"");let r=t.type;const{offsetHeight:i,offsetLeft:s,offsetTop:o,offsetWidth:a,scrollLeft:l,scrollTop:c,selectionStart:d,value:p}=u,{paddingRight:h,lineHeight:f}=getComputedStyle(u),m=u.value.charAt(u.selectionStart-1).trim();if(this.instance){if(this.instance.customCursor&&(r=="keydown"&&(n=="Backspace"||n=="Delete"?this.instance.customCursor.classList.remove("duration-[0.25s]"):this.instance.customCursor.classList.add("duration-[0.25s]"),this.instance.userTypingTimeout!==null&&clearTimeout(this.instance.userTypingTimeout),this.instance.state.setState("userTyping",!0)),r=="keyup")){this.instance.userTypingTimeout!==null&&clearTimeout(this.instance.userTypingTimeout);let w=this;this.instance.userTypingTimeout=setTimeout(function(){var k;w.instance.state.setState("userTyping",!1),(k=w.instance.customCursor)==null||k.classList.add("duration-[0.25s]")},1e3)}if(n=="Enter"&&((x=this.instance.helpers)==null||x.handleLists(t,r)),n==" "&&r=="keyup"&&((y=this.instance.helpers)==null||y.handleSpaceFunctionality()),n=="Enter"&&r=="keyup"||this.instance.state.setState("modal",!1),this.instance.elements.placeholder.textareaEvent(t,this.instance),n==="/"&&m==""&&r=="keydown")this.instance.slashDropdown.toggle(this.instance);else if(this.instance.slashMenu)switch(n){case"Escape":this.instance.slashDropdown.hide(this.instance);break;case"Backspace":u.selectionStart<=this.instance.insertionStart?this.instance.slashDropdown.toggle(this.instance):this.instance.slashDropdown.filter(this.instance);break;case"Enter":if(this.instance.selectedListItem){t.preventDefault();const w=(b=this.instance.slashDropdown.dropdownEl)==null?void 0:b.querySelector(".markdownx-item-active");w&&this.instance.slashDropdown.selectItem(w,this.instance),this.instance.elements.placeholder.keydownHiddenFlag=!0,this.instance.slashDropdown.hide(this.instance)}else this.instance.slashDropdown.toggle(this.instance);break;case"ArrowUp":case"ArrowDown":if(r==="keydown"){t.preventDefault();const w=n==="ArrowUp"?"previous":"next";this.instance.slashDropdown.toggleItem(w,this.instance)}break;case"ArrowLeft":case"ArrowRight":u.selectionStart=0;(m&&f.metaKey&&f.code==="KeyP"||!m&&f.ctrlKey&&f.code==="KeyP")&&(f.preventDefault(),t.instance.state.getState("mode")=="markdown"?t.instance.state.setState("mode","preview"):t.instance.state.setState("mode","markdown"))}),document.querySelectorAll(".markdownx-editor").forEach(f=>{f.addEventListener("selectionchange",()=>{if(document.activeElement===f){const m=f;let x=m.selectionStart,y=m.selectionEnd;x!==y?K.show(t.instance):K.hide(t.instance)}})})}}class Rr{constructor(t){this.instance=t}upload(t,u){var r,i;if(!t.target.files||t.target.files.length===0)return null;let n=t.target.files[0];if(n.size>5*1e3*1e3)return null;if(t.target.value.length){this.instance.state.setState("placeholder",!1),(r=this.instance.textarea)==null||r.insertAtCaret("!["+n.name+"](Uploading...)"),(i=this.instance.textarea)==null||i.focus();let s=new FileReader;s.onloadend=()=>{},s.readAsDataURL(n)}}getYoutubeIDFromURL(t){const u=t.split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/);return u[2]!==void 0?u[2].split(/[^0-9a-z_\-]/i)[0]:u[0]}isNormalInteger(t){if(t=t.trim(),!t)return!1;t=t.replace(/^0+/,"")||"0";var u=Math.floor(Number(t));return u!==1/0&&String(u)===t&&u>=0}scrollParentToChild(t,u){const n=t.getBoundingClientRect(),r={height:t.clientHeight,width:t.clientWidth},i=u.getBoundingClientRect();if(!(i.top>=n.top&&i.bottom<=n.top+r.height)){const o=i.top-n.top,a=i.bottom-n.bottom;Math.abs(o)this.loop())}}function Vr(e,t,u){var n;if(e instanceof Element)return[e];if(typeof e=="string"){let r=document;const i=(n=u==null?void 0:u[e])!==null&&n!==void 0?n:r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const X=e=>e;var Or={};let ve=X,W=X;Or.NODE_ENV!=="production"&&(ve=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},W=(e,t)=>{if(!e)throw new Error(t)});const je=(e,t,u)=>{const n=t-e;return n===0?1:(u-e)/n};function ft(e){let t;return()=>(t===void 0&&(t=e()),t)}const Nr=ft(()=>window.ScrollTimeline!==void 0);class qr{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,u){for(let n=0;n{if(Nr()&&r.attachTimeline)return r.attachTimeline(t);if(typeof u=="function")return u(r)});return()=>{n.forEach((r,i)=>{r&&r(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let u=0;uu[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class cu extends qr{then(t,u){return Promise.all(this.animations).then(t).catch(u)}}const q=e=>e*1e3,G=e=>e/1e3,Ue=2e4;function ht(e){let t=0;const u=50;let n=e.next(t);for(;!n.done&&t=Ue?1/0:t}const du=(e,t,u=10)=>{let n="";const r=Math.max(Math.round(t/u),2);for(let i=0;iu>t?t:u{const c=l*s,d=c*e,p=c-u,h=pt(l,s),f=Math.exp(-d);return pu-p/h*f},i=l=>{const d=l*s*e,p=d*u+u,h=Math.pow(s,2)*Math.pow(l,2)*e,f=Math.exp(-d),m=pt(Math.pow(l,2),s);return(-r(l)+pu>0?-1:1)*((p-h)*f)/m}):(r=l=>{const c=Math.exp(-l*e),d=(l-u)*e+1;return-.001+c*d},i=l=>{const c=Math.exp(-l*e),d=(u-l)*(e*e);return c*d});const o=5/e,a=Ur(r,i,o);if(e=q(e),isNaN(a))return{stiffness:T.stiffness,damping:T.damping,duration:e};{const l=Math.pow(a,2)*n;return{stiffness:l,damping:s*2*Math.sqrt(n*l),duration:e}}}const jr=12;function Ur(e,t,u){let n=u;for(let r=1;re[u]!==void 0)}function Kr(e){let t={velocity:T.velocity,stiffness:T.stiffness,damping:T.damping,mass:T.mass,isResolvedFromDuration:!1,...e};if(!mu(e,Gr)&&mu(e,Zr))if(e.visualDuration){const u=e.visualDuration,n=2*Math.PI/(u*1.2),r=n*n,i=2*re(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:T.mass,stiffness:r,damping:i}}else{const u=Hr(e);t={...t,...u,mass:T.mass},t.isResolvedFromDuration=!0}return t}function mt(e=T.visualDuration,t=T.bounce){const u=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:r}=u;const i=u.keyframes[0],s=u.keyframes[u.keyframes.length-1],o={done:!1,value:i},{stiffness:a,damping:l,mass:c,duration:d,velocity:p,isResolvedFromDuration:h}=Kr({...u,velocity:-G(u.velocity||0)}),f=p||0,m=l/(2*Math.sqrt(a*c)),x=s-i,y=G(Math.sqrt(a/c)),b=Math.abs(x)<5;n||(n=b?T.restSpeed.granular:T.restSpeed.default),r||(r=b?T.restDelta.granular:T.restDelta.default);let w;if(m<1){const g=pt(y,m);w=v=>{const E=Math.exp(-m*y*v);return s-E*((f+m*y*x)/g*Math.sin(g*v)+x*Math.cos(g*v))}}else if(m===1)w=g=>s-Math.exp(-y*g)*(x+(f+y*x)*g);else{const g=y*Math.sqrt(m*m-1);w=v=>{const E=Math.exp(-m*y*v),_=Math.min(g*v,300);return s-E*((f+m*y*x)*Math.sinh(_)+g*x*Math.cosh(_))/g}}const k={calculatedDuration:h&&d||null,next:g=>{const v=w(g);if(h)o.done=g>=d;else{let E=0;m<1&&(E=g===0?q(f):hu(w,g,v));const _=Math.abs(E)<=n,A=Math.abs(s-v)<=r;o.done=_&&A}return o.value=o.done?s:v,o},toString:()=>{const g=Math.min(ht(k),Ue),v=du(E=>k.next(g*E).value,g,30);return g+"ms "+v}};return k}function Xr(e,t=100,u){const n=u({...e,keyframes:[0,t]}),r=Math.min(ht(n),Ue);return{type:"keyframes",ease:i=>n.next(r*i).value/t,duration:G(r)}}function Ze(e){return typeof e=="function"}const Wr=(e,t,u)=>{const n=t-e;return((u-e)%n+n)%n+e},bu=e=>Array.isArray(e)&&typeof e[0]!="number";function xu(e,t){return bu(e)?e[Wr(0,e.length,t)]:e}const _e=(e,t,u)=>e+(t-e)*u;function gu(e,t){const u=e[e.length-1];for(let n=1;n<=t;n++){const r=je(0,t,n);e.push(_e(u,1,r))}}function yu(e){const t=[0];return gu(t,e.length-1),t}const B=e=>!!(e&&e.getVelocity);function bt(e){return typeof e=="object"&&!Array.isArray(e)}function wu(e,t,u,n){return typeof e=="string"&&bt(t)?Vr(e,u,n):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function Yr(e,t,u){return e*(t+1)}function ku(e,t,u,n){var r;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?u:(r=n.get(t))!==null&&r!==void 0?r:e}function Qr(e,t){e.indexOf(t)===-1&&e.push(t)}function vu(e,t){const u=e.indexOf(t);u>-1&&e.splice(u,1)}function Jr(e,t,u){for(let n=0;nt&&r.at{const A=si(k),{delay:S=0,times:R=yu(A),type:Ne="keyframes",repeat:oe,repeatType:au,repeatDelay:ae=0,...lu}=g;let{ease:ne=t.ease||"easeOut",duration:N}=g;const Fr=typeof S=="function"?S(E,_):S,Sr=A.length,Lr=Ze(Ne)?Ne:r==null?void 0:r[Ne];if(Sr<=2&&Lr){let qe=100;if(Sr===2&&li(A)){const $e=A[1]-A[0];qe=Math.abs($e)}const ct={...lu};N!==void 0&&(ct.duration=q(N));const dt=Xr(ct,qe,Lr);ne=dt.ease,N=dt.duration}N??(N=i);const Mr=d+Fr;R.length===1&&R[0]===0&&(R[1]=1);const Ir=R.length-A.length;if(Ir>0&&gu(R,Ir),A.length===1&&A.unshift(null),oe){W(oe{for(const m in h){const x=h[m];x.sort(ui);const y=[],b=[],w=[];for(let g=0;gtypeof e=="number",li=e=>e.every(ai),Ce=new WeakMap;function Eu(e,t){return e?e[t]||e.default||e:void 0}const le=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ce=new Set(le),Au=new Set(["width","height","top","left","right","bottom",...le]),ci=e=>Array.isArray(e),di=e=>ci(e)?e[e.length-1]||0:e,fi={useManualTiming:!1},Ge=["read","resolveKeyframes","update","preRender","render","postRender"];function hi(e,t){let u=new Set,n=new Set,r=!1,i=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(c){s.has(c)&&(l.schedule(c),e()),c(o)}const l={schedule:(c,d=!1,p=!1)=>{const f=p&&r?u:n;return d&&s.add(c),f.has(c)||f.add(c),c},cancel:c=>{n.delete(c),s.delete(c)},process:c=>{if(o=c,r){i=!0;return}r=!0,[u,n]=[n,u],u.forEach(a),u.clear(),r=!1,i&&(i=!1,l.process(c))}};return l}const pi=40;function mi(e,t){let u=!1,n=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>u=!0,s=Ge.reduce((y,b)=>(y[b]=hi(i),y),{}),{read:o,resolveKeyframes:a,update:l,preRender:c,render:d,postRender:p}=s,h=()=>{const y=performance.now();u=!1,r.delta=n?1e3/60:Math.max(Math.min(y-r.timestamp,pi),1),r.timestamp=y,r.isProcessing=!0,o.process(r),a.process(r),l.process(r),c.process(r),d.process(r),p.process(r),r.isProcessing=!1,u&&t&&(n=!1,e(h))},f=()=>{u=!0,n=!0,r.isProcessing||e(h)};return{schedule:Ge.reduce((y,b)=>{const w=s[b];return y[b]=(k,g=!1,v=!1)=>(u||f(),w.schedule(k,g,v)),y},{}),cancel:y=>{for(let b=0;b(Xe===void 0&&Y.set(Ke.isProcessing||fi.useManualTiming?Ke.timestamp:performance.now()),Xe),set:e=>{Xe=e,queueMicrotask(bi)}};class Du{constructor(){this.subscriptions=[]}add(t){return Qr(this.subscriptions,t),()=>vu(this.subscriptions,t)}notify(t,u,n){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,u,n);else for(let i=0;i!isNaN(parseFloat(e));class yi{constructor(t,u={}){this.version="12.4.3",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,r=!0)=>{const i=Y.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=u.owner}setCurrent(t){this.current=t,this.updatedAt=Y.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=gi(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return xi.NODE_ENV!=="production"&>(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,u){this.events[t]||(this.events[t]=new Du);const n=this.events[t].add(u);return t==="change"?()=>{n(),$.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,u){this.passiveEffect=t,this.stopPassiveEffect=u}set(t,u=!0){!u||!this.passiveEffect?this.updateAndNotify(t,u):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,u,n){this.set(u),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,u=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,u&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Y.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Fu)return 0;const u=Math.min(this.updatedAt-this.prevUpdatedAt,Fu);return fu(parseFloat(this.current)-parseFloat(this.prevFrameValue),u)}start(t){return this.stop(),new Promise(u=>{this.hasAnimated=!0,this.animation=t(u),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ee(e,t){return new yi(e,t)}function Su(e){const t=[{},{}];return e==null||e.values.forEach((u,n)=>{t[0][n]=u.get(),t[1][n]=u.getVelocity()}),t}function Lu(e,t,u,n){if(typeof t=="function"){const[r,i]=Su(n);t=t(u!==void 0?u:e.custom,r,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,i]=Su(n);t=t(u!==void 0?u:e.custom,r,i)}return t}function wi(e,t,u){const n=e.getProps();return Lu(n,t,n.custom,e)}function ki(e,t,u){e.hasValue(t)?e.getValue(t).set(u):e.addValue(t,Ee(u))}function vi(e,t){const u=wi(e,t);let{transitionEnd:n={},transition:r={},...i}=u||{};i={...i,...n};for(const s in i){const o=di(i[s]);ki(e,s,o)}}function _i(e){return!!(B(e)&&e.add)}function Ci(e,t){const u=e.getValue("willChange");if(_i(u))return u.add(t)}const yt=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ei="data-"+yt("framerAppearId");function Ai(e){return e.props[Ei]}function Mu(e,t){e.timeline=t,e.onfinish=null}const wt=e=>Array.isArray(e)&&typeof e[0]=="number",Di={linearEasing:void 0};function Ti(e,t){const u=ft(e);return()=>{var n;return(n=Di[t])!==null&&n!==void 0?n:u()}}const We=Ti(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function Iu(e){return!!(typeof e=="function"&&We()||!e||typeof e=="string"&&(e in kt||We())||wt(e)||Array.isArray(e)&&e.every(Iu))}const Ae=([e,t,u,n])=>`cubic-bezier(${e}, ${t}, ${u}, ${n})`,kt={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ae([0,.65,.55,1]),circOut:Ae([.55,0,1,.45]),backIn:Ae([.31,.01,.66,-.59]),backOut:Ae([.33,1.53,.69,.99])};function Bu(e,t){if(e)return typeof e=="function"&&We()?du(e,t):wt(e)?Ae(e):Array.isArray(e)?e.map(u=>Bu(u,t)||kt.easeOut):kt[e]}const Pu=(e,t,u)=>(((1-3*u+3*t)*e+(3*u-6*t))*e+3*t)*e,Fi=1e-7,Si=12;function Li(e,t,u,n,r){let i,s,o=0;do s=t+(u-t)/2,i=Pu(s,n,r)-e,i>0?u=s:t=s;while(Math.abs(i)>Fi&&++oLi(i,0,1,e,u);return i=>i===0||i===1?i:Pu(r(i),t,n)}const Ru=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,zu=e=>t=>1-e(1-t),Vu=De(.33,1.53,.69,.99),vt=zu(Vu),Ou=Ru(vt),Nu=e=>(e*=2)<1?.5*vt(e):.5*(2-Math.pow(2,-10*(e-1))),_t=e=>1-Math.sin(Math.acos(e)),Mi=zu(_t),qu=Ru(_t),$u=e=>/^0[^.\s]+$/u.test(e);function Ii(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||$u(e):!0}const de={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Te={...de,transform:e=>re(0,1,e)},Ye={...de,default:1},Fe=e=>Math.round(e*1e5)/1e5,Ct=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Bi(e){return e==null}const Pi=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Et=(e,t)=>u=>!!(typeof u=="string"&&Pi.test(u)&&u.startsWith(e)||t&&!Bi(u)&&Object.prototype.hasOwnProperty.call(u,t)),Hu=(e,t,u)=>n=>{if(typeof n!="string")return n;const[r,i,s,o]=n.match(Ct);return{[e]:parseFloat(r),[t]:parseFloat(i),[u]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},Ri=e=>re(0,255,e),At={...de,transform:e=>Math.round(Ri(e))},ie={test:Et("rgb","red"),parse:Hu("red","green","blue"),transform:({red:e,green:t,blue:u,alpha:n=1})=>"rgba("+At.transform(e)+", "+At.transform(t)+", "+At.transform(u)+", "+Fe(Te.transform(n))+")"};function zi(e){let t="",u="",n="",r="";return e.length>5?(t=e.substring(1,3),u=e.substring(3,5),n=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),u=e.substring(2,3),n=e.substring(3,4),r=e.substring(4,5),t+=t,u+=u,n+=n,r+=r),{red:parseInt(t,16),green:parseInt(u,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}}const Dt={test:Et("#"),parse:zi,transform:ie.transform},Se=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Q=Se("deg"),fe=Se("%"),C=Se("px"),Vi=Se("vh"),Oi=Se("vw"),ju={...fe,parse:e=>fe.parse(e)/100,transform:e=>fe.transform(e*100)},he={test:Et("hsl","hue"),parse:Hu("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:u,alpha:n=1})=>"hsla("+Math.round(e)+", "+fe.transform(Fe(t))+", "+fe.transform(Fe(u))+", "+Fe(Te.transform(n))+")"},I={test:e=>ie.test(e)||Dt.test(e)||he.test(e),parse:e=>ie.test(e)?ie.parse(e):he.test(e)?he.parse(e):Dt.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ie.transform(e):he.transform(e)},Ni=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function qi(e){var t,u;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Ct))===null||t===void 0?void 0:t.length)||0)+(((u=e.match(Ni))===null||u===void 0?void 0:u.length)||0)>0}const Uu="number",Zu="color",$i="var",Hi="var(",Gu="${}",ji=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Le(e){const t=e.toString(),u=[],n={color:[],number:[],var:[]},r=[];let i=0;const o=t.replace(ji,a=>(I.test(a)?(n.color.push(i),r.push(Zu),u.push(I.parse(a))):a.startsWith(Hi)?(n.var.push(i),r.push($i),u.push(a)):(n.number.push(i),r.push(Uu),u.push(parseFloat(a))),++i,Gu)).split(Gu);return{values:u,split:o,indexes:n,types:r}}function Ku(e){return Le(e).values}function Xu(e){const{split:t,types:u}=Le(e),n=t.length;return r=>{let i="";for(let s=0;stypeof e=="number"?0:e;function Zi(e){const t=Ku(e);return Xu(e)(t.map(Ui))}const pe={test:qi,parse:Ku,createTransformer:Xu,getAnimatableNone:Zi},Gi=new Set(["brightness","contrast","saturate","opacity"]);function Ki(e){const[t,u]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=u.match(Ct)||[];if(!n)return e;const r=u.replace(n,"");let i=Gi.has(t)?1:0;return n!==u&&(i*=100),t+"("+i+r+")"}const Xi=/\b([a-z-]*)\(.*?\)/gu,Tt={...pe,getAnimatableNone:e=>{const t=e.match(Xi);return t?t.map(Ki).join(" "):e}},Wi={borderWidth:C,borderTopWidth:C,borderRightWidth:C,borderBottomWidth:C,borderLeftWidth:C,borderRadius:C,radius:C,borderTopLeftRadius:C,borderTopRightRadius:C,borderBottomRightRadius:C,borderBottomLeftRadius:C,width:C,maxWidth:C,height:C,maxHeight:C,top:C,right:C,bottom:C,left:C,padding:C,paddingTop:C,paddingRight:C,paddingBottom:C,paddingLeft:C,margin:C,marginTop:C,marginRight:C,marginBottom:C,marginLeft:C,backgroundPositionX:C,backgroundPositionY:C},Yi={rotate:Q,rotateX:Q,rotateY:Q,rotateZ:Q,scale:Ye,scaleX:Ye,scaleY:Ye,scaleZ:Ye,skew:Q,skewX:Q,skewY:Q,distance:C,translateX:C,translateY:C,translateZ:C,x:C,y:C,z:C,perspective:C,transformPerspective:C,opacity:Te,originX:ju,originY:ju,originZ:C},Wu={...de,transform:Math.round},Ft={...Wi,...Yi,zIndex:Wu,size:C,fillOpacity:Te,strokeOpacity:Te,numOctaves:Wu},Qi={...Ft,color:I,backgroundColor:I,outlineColor:I,fill:I,stroke:I,borderColor:I,borderTopColor:I,borderRightColor:I,borderBottomColor:I,borderLeftColor:I,filter:Tt,WebkitFilter:Tt},St=e=>Qi[e];function Yu(e,t){let u=St(e);return u!==Tt&&(u=pe),u.getAnimatableNone?u.getAnimatableNone(t):void 0}const Ji=new Set(["auto","none","0"]);function es(e,t,u){let n=0,r;for(;ne===de||e===C,Ju=(e,t)=>parseFloat(e.split(", ")[t]),en=(e,t)=>(u,{transform:n})=>{if(n==="none"||!n)return 0;const r=n.match(/^matrix3d\((.+)\)$/u);if(r)return Ju(r[1],t);{const i=n.match(/^matrix\((.+)\)$/u);return i?Ju(i[1],e):0}},ts=new Set(["x","y","z"]),us=le.filter(e=>!ts.has(e));function ns(e){const t=[];return us.forEach(u=>{const n=e.getValue(u);n!==void 0&&(t.push([u,n.get()]),n.set(u.startsWith("scale")?1:0))}),t}const me={width:({x:e},{paddingLeft:t="0",paddingRight:u="0"})=>e.max-e.min-parseFloat(t)-parseFloat(u),height:({y:e},{paddingTop:t="0",paddingBottom:u="0"})=>e.max-e.min-parseFloat(t)-parseFloat(u),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:en(4,13),y:en(5,14)};me.translateX=me.x,me.translateY=me.y;const se=new Set;let Lt=!1,Mt=!1;function tn(){if(Mt){const e=Array.from(se).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),u=new Map;t.forEach(n=>{const r=ns(n);r.length&&(u.set(n,r),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const r=u.get(n);r&&r.forEach(([i,s])=>{var o;(o=n.getValue(i))===null||o===void 0||o.set(s)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}Mt=!1,Lt=!1,se.forEach(e=>e.complete()),se.clear()}function un(){se.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Mt=!0)})}function rs(){un(),tn()}class It{constructor(t,u,n,r,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=u,this.name=n,this.motionValue=r,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(se.add(this),Lt||(Lt=!0,$.read(un),$.resolveKeyframes(tn))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:u,element:n,motionValue:r}=this;for(let i=0;i/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),rn=e=>t=>typeof t=="string"&&t.startsWith(e),sn=rn("--"),is=rn("var(--"),Bt=e=>is(e)?ss.test(e.split("/*")[0].trim()):!1,ss=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,os=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function as(e){const t=os.exec(e);if(!t)return[,];const[,u,n,r]=t;return[`--${u??n}`,r]}const ls=4;function on(e,t,u=1){W(u<=ls,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[n,r]=as(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const s=i.trim();return nn(s)?parseFloat(s):s}return Bt(r)?on(r,t,u+1):r}const an=e=>t=>t.test(e),ln=[de,C,fe,Q,Oi,Vi,{test:e=>e==="auto",parse:e=>e}],cn=e=>ln.find(an(e));class dn extends It{constructor(t,u,n,r,i){super(t,u,n,r,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:u,name:n}=this;if(!u||!u.current)return;super.readKeyframes();for(let a=0;a{u.getValue(a).set(l)}),this.resolveNoneKeyframes()}}const fn=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(pe.test(e)||e==="0")&&!e.startsWith("url("));function cs(e){const t=e[0];if(e.length===1)return!0;for(let u=0;ue!==null;function Qe(e,{repeat:t,repeatType:u="loop"},n){const r=e.filter(fs),i=t&&u!=="loop"&&t%2===1?0:r.length-1;return!i||n===void 0?r[i]:n}const hs=40;class hn{constructor({autoplay:t=!0,delay:u=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Y.now(),this.options={autoplay:t,delay:u,type:n,repeat:r,repeatDelay:i,repeatType:s,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>hs?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&rs(),this._resolved}onKeyframesResolved(t,u){this.resolvedAt=Y.now(),this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:i,delay:s,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!ds(t,n,r,i))if(s)this.options.duration=0;else{a&&a(Qe(t,this.options,u)),o&&o(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,u);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:u,...c},this.onPostResolved())}onPostResolved(){}then(t,u){return this.currentFinishedPromise.then(t,u)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function Pt(e,t,u){return u<0&&(u+=1),u>1&&(u-=1),u<1/6?e+(t-e)*6*u:u<1/2?t:u<2/3?e+(t-e)*(2/3-u)*6:e}function ps({hue:e,saturation:t,lightness:u,alpha:n}){e/=360,t/=100,u/=100;let r=0,i=0,s=0;if(!t)r=i=s=u;else{const o=u<.5?u*(1+t):u+t-u*t,a=2*u-o;r=Pt(a,o,e+1/3),i=Pt(a,o,e),s=Pt(a,o,e-1/3)}return{red:Math.round(r*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:n}}function Je(e,t){return u=>u>0?t:e}const Rt=(e,t,u)=>{const n=e*e,r=u*(t*t-n)+n;return r<0?0:Math.sqrt(r)},ms=[Dt,ie,he],bs=e=>ms.find(t=>t.test(e));function pn(e){const t=bs(e);if(ve(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let u=t.parse(e);return t===he&&(u=ps(u)),u}const mn=(e,t)=>{const u=pn(e),n=pn(t);if(!u||!n)return Je(e,t);const r={...u};return i=>(r.red=Rt(u.red,n.red,i),r.green=Rt(u.green,n.green,i),r.blue=Rt(u.blue,n.blue,i),r.alpha=_e(u.alpha,n.alpha,i),ie.transform(r))},xs=(e,t)=>u=>t(e(u)),zt=(...e)=>e.reduce(xs),Vt=new Set(["none","hidden"]);function gs(e,t){return Vt.has(e)?u=>u<=0?e:t:u=>u>=1?t:e}function ys(e,t){return u=>_e(e,t,u)}function Ot(e){return typeof e=="number"?ys:typeof e=="string"?Bt(e)?Je:I.test(e)?mn:vs:Array.isArray(e)?bn:typeof e=="object"?I.test(e)?mn:ws:Je}function bn(e,t){const u=[...e],n=u.length,r=e.map((i,s)=>Ot(i)(i,t[s]));return i=>{for(let s=0;s{for(const i in n)u[i]=n[i](r);return u}}function ks(e,t){var u;const n=[],r={color:0,var:0,number:0};for(let i=0;i{const u=pe.createTransformer(t),n=Le(e),r=Le(t);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?Vt.has(e)&&!r.values.length||Vt.has(t)&&!n.values.length?gs(e,t):zt(bn(ks(n,r),r.values),u):(ve(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Je(e,t))};function xn(e,t,u){return typeof e=="number"&&typeof t=="number"&&typeof u=="number"?_e(e,t,u):Ot(e)(e,t)}function gn({keyframes:e,velocity:t=0,power:u=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:s,min:o,max:a,restDelta:l=.5,restSpeed:c}){const d=e[0],p={done:!1,value:d},h=_=>o!==void 0&&_a,f=_=>o===void 0?a:a===void 0||Math.abs(o-_)-m*Math.exp(-_/n),w=_=>y+b(_),k=_=>{const A=b(_),S=w(_);p.done=Math.abs(A)<=l,p.value=p.done?y:S};let g,v;const E=_=>{h(p.value)&&(g=_,v=mt({keyframes:[p.value,f(p.value)],velocity:hu(w,_,p.value),damping:r,stiffness:i,restDelta:l,restSpeed:c}))};return E(0),{calculatedDuration:null,next:_=>{let A=!1;return!v&&g===void 0&&(A=!0,k(_),E(_)),g!==void 0&&_>=g?v.next(_-g):(!A&&k(_),p)}}}const _s=De(.42,0,1,1),Cs=De(0,0,.58,1),yn=De(.42,0,.58,1),wn={linear:X,easeIn:_s,easeInOut:yn,easeOut:Cs,circIn:_t,circInOut:qu,circOut:Mi,backIn:vt,backInOut:Ou,backOut:Vu,anticipate:Nu},kn=e=>{if(wt(e)){W(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,u,n,r]=e;return De(t,u,n,r)}else if(typeof e=="string")return W(wn[e]!==void 0,`Invalid easing type '${e}'`),wn[e];return e};function Es(e,t,u){const n=[],r=u||xn,i=e.length-1;for(let s=0;st[0];if(i===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=Es(t,n,r),a=o.length,l=c=>{if(s&&c1)for(;dl(re(e[0],e[i-1],c)):l}function Ds(e,t){return e.map(u=>u*t)}function Ts(e,t){return e.map(()=>t||yn).splice(0,e.length-1)}function Me({duration:e=300,keyframes:t,times:u,ease:n="easeInOut"}){const r=bu(n)?n.map(kn):kn(n),i={done:!1,value:t[0]},s=Ds(u&&u.length===t.length?u:yu(t),e),o=As(s,t,{ease:Array.isArray(r)?r:Ts(t,r)});return{calculatedDuration:e,next:a=>(i.value=o(a),i.done=a>=e,i)}}const Fs=e=>{const t=({timestamp:u})=>e(u);return{start:()=>$.update(t,!0),stop:()=>xt(t),now:()=>Ke.isProcessing?Ke.timestamp:Y.now()}};var Ss={};const Ls={decay:gn,inertia:gn,tween:Me,keyframes:Me,spring:mt},Ms=e=>e/100;class Nt extends hn{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:a}=this.options;a&&a()};const{name:u,motionValue:n,element:r,keyframes:i}=this.options,s=(r==null?void 0:r.KeyframeResolver)||It,o=(a,l)=>this.onKeyframesResolved(a,l);this.resolver=new s(i,o,u,n,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:u="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:s=0}=this.options,o=Ze(u)?u:Ls[u]||Me;let a,l;Ss.NODE_ENV!=="production"&&o!==Me&&W(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),o!==Me&&typeof t[0]!="number"&&(a=zt(Ms,xn(t[0],t[1])),t=[0,100]);const c=o({...this.options,keyframes:t});i==="mirror"&&(l=o({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=ht(c));const{calculatedDuration:d}=c,p=d+r,h=p*(n+1)-r;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:d,resolvedDuration:p,totalDuration:h}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,u=!1){const{resolved:n}=this;if(!n){const{keyframes:_}=this.options;return{done:!0,value:_[_.length-1]}}const{finalKeyframe:r,generator:i,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:c,resolvedDuration:d}=n;if(this.startTime===null)return i.next(0);const{delay:p,repeat:h,repeatType:f,repeatDelay:m,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),u?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const y=this.currentTime-p*(this.speed>=0?1:-1),b=this.speed>=0?y<0:y>c;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let w=this.currentTime,k=i;if(h){const _=Math.min(this.currentTime,c)/d;let A=Math.floor(_),S=_%1;!S&&_>=1&&(S=1),S===1&&A--,A=Math.min(A,h+1),!!(A%2)&&(f==="reverse"?(S=1-S,m&&(S-=m/d)):f==="mirror"&&(k=s)),w=re(0,1,S)*d}const g=b?{done:!1,value:a[0]}:k.next(w);o&&(g.value=o(g.value));let{done:v}=g;!b&&l!==null&&(v=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&v);return E&&r!==void 0&&(g.value=Qe(a,this.options,r)),x&&x(g.value),E&&this.finish(),g}get duration(){const{resolved:t}=this;return t?G(t.calculatedDuration):0}get time(){return G(this.currentTime)}set time(t){t=q(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const u=this.playbackSpeed!==t;this.playbackSpeed=t,u&&(this.time=G(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Fs,onPlay:u,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),u&&u();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=n??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Is=new Set(["opacity","clipPath","filter","transform"]);function Bs(e,t,u,{delay:n=0,duration:r=300,repeat:i=0,repeatType:s="loop",ease:o="easeInOut",times:a}={}){const l={[t]:u};a&&(l.offset=a);const c=Bu(o,r);return Array.isArray(c)&&(l.easing=c),e.animate(l,{delay:n,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}const Ps=ft(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),et=10,Rs=2e4;function zs(e){return Ze(e.type)||e.type==="spring"||!Iu(e.ease)}function Vs(e,t){const u=new Nt({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let n={done:!1,value:e[0]};const r=[];let i=0;for(;!n.done&&ithis.onKeyframesResolved(s,o),u,n,r),this.resolver.scheduleResolve()}initPlayback(t,u){let{duration:n=300,times:r,ease:i,type:s,motionValue:o,name:a,startTime:l}=this.options;if(!o.owner||!o.owner.current)return!1;if(typeof i=="string"&&We()&&Os(i)&&(i=vn[i]),zs(this.options)){const{onComplete:d,onUpdate:p,motionValue:h,element:f,...m}=this.options,x=Vs(t,m);t=x.keyframes,t.length===1&&(t[1]=t[0]),n=x.duration,r=x.times,i=x.ease,s="keyframes"}const c=Bs(o.owner.current,a,t,{...this.options,duration:n,times:r,ease:i});return c.startTime=l??this.calcStartTime(),this.pendingTimeline?(Mu(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:d}=this.options;o.set(Qe(t,this.options,u)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:n,times:r,type:s,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:u}=t;return G(u)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:u}=t;return G(u.currentTime||0)}set time(t){const{resolved:u}=this;if(!u)return;const{animation:n}=u;n.currentTime=q(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:u}=t;return u.playbackRate}set speed(t){const{resolved:u}=this;if(!u)return;const{animation:n}=u;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:u}=t;return u.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:u}=t;return u.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:u}=this;if(!u)return X;const{animation:n}=u;Mu(n,t)}return X}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:u}=t;u.playState==="finished"&&this.updateFinishedPromise(),u.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:u}=t;u.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:u,keyframes:n,duration:r,type:i,ease:s,times:o}=t;if(u.playState==="idle"||u.playState==="finished")return;if(this.time){const{motionValue:l,onUpdate:c,onComplete:d,element:p,...h}=this.options,f=new Nt({...h,keyframes:n,duration:r,type:i,ease:s,times:o,isGenerator:!0}),m=q(this.time);l.setWithVelocity(f.sample(m-et).value,f.sample(m).value,et)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:u,name:n,repeatDelay:r,repeatType:i,damping:s,type:o}=t;if(!u||!u.owner||!(u.owner.current instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:l}=u.owner.getProps();return Ps()&&n&&Is.has(n)&&!a&&!l&&!r&&i!=="mirror"&&s!==0&&o!=="inertia"}}const Ns={type:"spring",stiffness:500,damping:25,restSpeed:10},qs=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),$s={type:"keyframes",duration:.8},Hs={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},js=(e,{keyframes:t})=>t.length>2?$s:ce.has(e)?e.startsWith("scale")?qs(t[1]):Ns:Hs;function Us({when:e,delay:t,delayChildren:u,staggerChildren:n,staggerDirection:r,repeat:i,repeatType:s,repeatDelay:o,from:a,elapsed:l,...c}){return!!Object.keys(c).length}const Cn=(e,t,u,n={},r,i)=>s=>{const o=Eu(n,e)||{},a=o.delay||n.delay||0;let{elapsed:l=0}=n;l=l-q(a);let c={keyframes:Array.isArray(u)?u:[null,u],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-l,onUpdate:p=>{t.set(p),o.onUpdate&&o.onUpdate(p)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:i?void 0:r};Us(o)||(c={...c,...js(e,c)}),c.duration&&(c.duration=q(c.duration)),c.repeatDelay&&(c.repeatDelay=q(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const p=Qe(c.keyframes,o);if(p!==void 0)return $.update(()=>{c.onUpdate(p),c.onComplete()}),new cu([])}return!i&&_n.supports(c)?new _n(c):new Nt(c)};function Zs({protectedKeys:e,needsAnimating:t},u){const n=e.hasOwnProperty(u)&&t[u]!==!0;return t[u]=!1,n}function Gs(e,t,{delay:u=0,transitionOverride:n,type:r}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:o,...a}=t;n&&(s=n);const l=[],c=r&&e.animationState&&e.animationState.getState()[r];for(const d in a){const p=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),h=a[d];if(h===void 0||c&&Zs(c,d))continue;const f={delay:u,...Eu(s||{},d)};let m=!1;if(window.MotionHandoffAnimation){const y=Ai(e);if(y){const b=window.MotionHandoffAnimation(y,d,$);b!==null&&(f.startTime=b,m=!0)}}Ci(e,d),p.start(Cn(d,p,h,e.shouldReduceMotion&&Au.has(d)?{type:!1}:f,e,m));const x=p.animation;x&&l.push(x)}return o&&Promise.all(l).then(()=>{$.update(()=>{o&&vi(e,o)})}),l}function Ks(e){return e instanceof SVGElement&&e.tagName!=="svg"}const En=()=>({min:0,max:0}),qt=()=>({x:En(),y:En()}),An={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},$t={};for(const e in An)$t[e]={isEnabled:t=>An[e].some(u=>!!t[u])};const Xs=typeof window<"u",Ht={current:null},Dn={current:!1};function Ws(){if(Dn.current=!0,!!Xs)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ht.current=e.matches;e.addListener(t),t()}else Ht.current=!1}const Ys=[...ln,I,pe],Qs=e=>Ys.find(an(e));function Js(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function eo(e){return typeof e=="string"||Array.isArray(e)}const to=["initial",...["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"]];function Tn(e){return Js(e.animate)||to.some(t=>eo(e[t]))}function uo(e){return!!(Tn(e)||e.variants)}var no={};function ro(e,t,u){for(const n in t){const r=t[n],i=u[n];if(B(r))e.addValue(n,r),no.NODE_ENV==="development"&>(r.version==="12.4.3",`Attempting to mix Motion versions ${r.version} with 12.4.3 may not work as expected.`);else if(B(i))e.addValue(n,Ee(r,{owner:e}));else if(i!==r)if(e.hasValue(n)){const s=e.getValue(n);s.liveStyle===!0?s.jump(r):s.hasAnimated||s.set(r)}else{const s=e.getStaticValue(n);e.addValue(n,Ee(s!==void 0?s:r,{owner:e}))}}for(const n in u)t[n]===void 0&&e.removeValue(n);return t}var io={};const Fn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Sn{scrapeMotionValuesFromProps(t,u,n){return{}}constructor({parent:t,props:u,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=It,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=Y.now();this.renderScheduledAtthis.bindToMotionValue(n,u)),Dn.current||Ws(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ht.current,io.NODE_ENV!=="production"&>(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),xt(this.notifyUpdate),xt(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const u=this.features[t];u&&(u.unmount(),u.isMounted=!1)}this.current=null}bindToMotionValue(t,u){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=ce.has(t);n&&this.onBindTransform&&this.onBindTransform();const r=u.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&$.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=u.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,u)),this.valueSubscriptions.set(t,()=>{r(),i(),s&&s(),u.owner&&u.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in $t){const u=$t[t];if(!u)continue;const{isEnabled:n,Feature:r}=u;if(!this.features[t]&&r&&n(this.props)&&(this.features[t]=new r(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):qt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,u){this.latestValues[t]=u}update(t,u){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=u;for(let n=0;nu.variantChildren.delete(t)}addValue(t,u){const n=this.values.get(t);u!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,u),this.values.set(t,u),this.latestValues[t]=u.get())}removeValue(t){this.values.delete(t);const u=this.valueSubscriptions.get(t);u&&(u(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,u){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&u!==void 0&&(n=Ee(u===null?void 0:u,{owner:this}),this.addValue(t,n)),n}readValue(t,u){var n;let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(nn(r)||$u(r))?r=parseFloat(r):!Qs(r)&&pe.test(u)&&(r=Yu(t,u)),this.setBaseTarget(t,B(r)?r.get():r)),B(r)?r.get():r}setBaseTarget(t,u){this.baseTarget[t]=u}getBaseTarget(t){var u;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=Lu(this.props,n,(u=this.presenceContext)===null||u===void 0?void 0:u.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!B(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,u){return this.events[t]||(this.events[t]=new Du),this.events[t].add(u)}notify(t,...u){this.events[t]&&this.events[t].notify(...u)}}class Ln extends Sn{constructor(){super(...arguments),this.KeyframeResolver=dn}sortInstanceNodePosition(t,u){return t.compareDocumentPosition(u)&2?1:-1}getBaseTargetFromProps(t,u){return t.style?t.style[u]:void 0}removeValueFromRenderState(t,{vars:u,style:n}){delete u[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;B(t)&&(this.childSubscription=t.on("change",u=>{this.current&&(this.current.textContent=`${u}`)}))}}const Mn=(e,t)=>t&&typeof e=="number"?t.transform(e):e,so={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},oo=le.length;function ao(e,t,u){let n="",r=!0;for(let i=0;itypeof e=="string"&&e.toLowerCase()==="svg";function bo(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function Rn(e,{style:t,vars:u},n,r){Object.assign(e.style,t,r&&r.getProjectionStyles(n));for(const i in u)e.style.setProperty(i,u[i])}function xo(e,t,u,n){Rn(e,t,void 0,n);for(const r in t.attrs)e.setAttribute(Pn.has(r)?r:yt(r),t.attrs[r])}const go={};function yo(e,{layout:t,layoutId:u}){return ce.has(e)||e.startsWith("origin")||(t||u!==void 0)&&(!!go[e]||e==="opacity")}function zn(e,t,u){var n;const{style:r}=e,i={};for(const s in r)(B(r[s])||t.style&&B(t.style[s])||yo(s,e)||((n=u==null?void 0:u.getValue(s))===null||n===void 0?void 0:n.liveStyle)!==void 0)&&(i[s]=r[s]);return i}function wo(e,t,u){const n=zn(e,t,u);for(const r in e)if(B(e[r])||B(t[r])){const i=le.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}class ko extends Ln{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=qt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&bo(this.current,this.renderState)}}getBaseTargetFromProps(t,u){return t[u]}readValueFromInstance(t,u){if(ce.has(u)){const n=St(u);return n&&n.default||0}return u=Pn.has(u)?u:yt(u),t.getAttribute(u)}scrapeMotionValuesFromProps(t,u,n){return wo(t,u,n)}onBindTransform(){this.current&&!this.renderState.dimensions&&$.postRender(this.updateDimensions)}build(t,u,n){po(t,u,this.isSVGTag,n.transformTemplate)}renderInstance(t,u,n,r){xo(t,u,n,r)}mount(t){this.isSVGTag=mo(t.tagName),super.mount(t)}}function vo({top:e,left:t,right:u,bottom:n}){return{x:{min:t,max:u},y:{min:e,max:n}}}function _o(e,t){if(!t)return e;const u=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:u.y,left:u.x,bottom:n.y,right:n.x}}function Co(e,t){return vo(_o(e.getBoundingClientRect(),t))}function Eo(e){return window.getComputedStyle(e)}class Ao extends Ln{constructor(){super(...arguments),this.type="html",this.renderInstance=Rn}readValueFromInstance(t,u){if(ce.has(u)){const n=St(u);return n&&n.default||0}else{const n=Eo(t),r=(sn(u)?n.getPropertyValue(u):n[u])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:u}){return Co(t,u)}build(t,u,n){In(t,u,n.transformTemplate)}scrapeMotionValuesFromProps(t,u,n){return zn(t,u,n)}}function Do(e,t){return e in t}class To extends Sn{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,u){if(Do(u,t)){const n=t[u];if(typeof n=="string"||typeof n=="number")return n}}getBaseTargetFromProps(){}removeValueFromRenderState(t,u){delete u.output[t]}measureInstanceViewportBox(){return qt()}build(t,u){Object.assign(t.output,u)}renderInstance(t,{output:u}){Object.assign(t,u)}sortInstanceNodePosition(){return 0}}function Fo(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},u=Ks(e)?new ko(t):new Ao(t);u.mount(e),Ce.set(e,u)}function So(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},u=new To(t);u.mount(e),Ce.set(e,u)}function Lo(e,t,u){const n=B(e)?e:Ee(e);return n.start(Cn("",n,t,u)),n.animation}function Mo(e,t){return B(e)||typeof e=="number"||typeof e=="string"&&!bt(t)}function Vn(e,t,u,n){const r=[];if(Mo(e,t))r.push(Lo(e,bt(t)&&t.default||t,u&&(u.default||u)));else{const i=wu(e,t,n),s=i.length;W(!!s,"No valid elements provided.");for(let o=0;o{n.push(...Vn(o,i,s))}),n}function Bo(e){return Array.isArray(e)&&e.some(Array.isArray)}function Po(e){function t(u,n,r){let i=[];return Bo(u)?i=Io(u,n,e):i=Vn(u,n,r,e),new cu(i)}return t}const On=Po(),Ro={dropdownEl:null,dropdownClasses:"markdownx-item-dropdown p-1 space-y-0.5",dropdownActiveClasses:"bg-gray-100 rounded-lg markdownx-item-active",dropdownItemClasses:"cursor-pointer rounded-lg",dropdownItemHoverClass:"hover:bg-gray-100",slashListItemElements:[],isCurrentLineEmpty:!1,isOpen:!1,getSlashMenuHTML(e){const t=` [[ icon ]]

[[ title ]]

[[ description ]]

`,u=e.getItems(),n={};for(const[r,i]of Object.entries(u))Object.assign(n,{[r]:t.replace("[[ icon ]]",i.icon).replace("[[ title ]]",i.title).replace("[[ description ]]",i.description).replace("[[ key ]]",r)});return n},selectItem(e,t){let u=e.dataset.markdownxItem,n=t.getBlockFromId(u);t.newLine="",!this.isCurrentLineEmpty&&(n==null?void 0:n.display)=="block"&&(t.newLine=` `),n==null||n.selected()},filter(e){var o,a;let t=(o=e.textarea)==null?void 0:o.value;e.textarea;let u="";t&&(u=t.slice(e.insertionStart+1,(a=e.textarea)==null?void 0:a.selectionStart).toLowerCase());const n=this.getSlashMenuHTML(e),i=Object.keys(n).filter(function(l){return l.replaceAll("_"," ").includes(u)});i.length||(i.push("none"),n.none='
No items found.
');const s=document.createElement("ul");this.slashListItemElements=[],s.className=this.dropdownClasses,s.style.maxHeight="305px",i.forEach(l=>{const c=document.createElement("li");c.dataset.markdownxItem=l,c.className=this.dropdownItemClasses,c.innerHTML=n[l],c.addEventListener("mousedown",d=>{var p,h;d.preventDefault(),d.stopPropagation(),this.hide(e),(p=e.textarea)==null||p.focus(),(h=e.helpers)==null||h.clearSlashText(),this.selectItem(c,e)}),c.addEventListener("click",d=>{console.log("click on item:",l)}),this.slashListItemElements.push(c),s.appendChild(c)}),this.dropdownEl&&(this.dropdownEl.firstChild?this.dropdownEl.replaceChild(s,this.dropdownEl.firstChild):this.dropdownEl.appendChild(s),this.setFirstMenuItemActive(e))},toggle(e){var n,r,i,s;e.insertionStart=((n=e.textarea)==null?void 0:n.selectionStart)??0,e.slashMenu=!e.slashMenu;const{paddingRight:t,lineHeight:u}=getComputedStyle(e.textarea);if(e.slashMenu&&!this.dropdownEl&&document.activeElement==e.textarea?this.show(e):this.hide(e),e.slashMenu){e.slashDropdown.filter(e);const{x:o,y:a}=e.cursor.cursorXY(e),l=(r=e.textarea)==null?void 0:r.getBoundingClientRect();console.log("heyo"),console.log(e.cursorPos.x+((l==null?void 0:l.left)||0));const c=e.cursorPos.x+((l==null?void 0:l.left)||0)+"px",d=a-((i=e.textarea)==null?void 0:i.offsetTop),h=((l==null?void 0:l.top)||0)+d-(((s=e.textarea)==null?void 0:s.scrollTop)+5)+window.scrollY+"px";this.dropdownEl&&(this.dropdownEl.style.left=c,this.dropdownEl.style.top=h,this.dropdownEl.style.transform="translateY(10px)");const f=document.getElementById("MarkdownXdropdown");f&&(f.style.zIndex="999")}},show(e){this.dropdownEl||(this.dropdownEl=this.createDropDownElement(e)),this.isOpen=!0,document.body.append(this.dropdownEl),this.dropdownEl.getBoundingClientRect(),On(this.dropdownEl,{scale:[.9,1],opacity:[0,1],y:["-0.125rem","1.75rem"]},{ease:"backOut",duration:.2}),requestAnimationFrame(()=>{this.dropdownEl&&requestAnimationFrame(()=>{this.dropdownEl})})},hide(e){e.textarea,e.slashMenu=!1,this.dropdownEl&&document.body.removeChild(this.dropdownEl),this.dropdownEl=null,this.isOpen=!1},createDropDownElement(e){const t=document.createElement("div");return t.id="markdownx-slash-dropdown",t.className="absolute z-50 block overflow-x-hidden overflow-y-auto origin-top-left w-[250px] bg-white border border-gray-200/50 rounded-xl shadow-md whitespace-wrap -translate-x-0.5",t},toggleItem(e="next",t){var n;if(!this.dropdownEl)return;const u=this.dropdownEl.querySelector("ul");if(!t.selectedListItem)t.selectedListItem=this.dropdownEl.querySelector("li"),t.selectedListItem&&(t.selectedListItem.className=this.dropdownActiveClasses);else{t.selectedListItem.className="";let r=null;e==="next"?r=t.selectedListItem.nextElementSibling:r=t.selectedListItem.previousElementSibling,!r&&e==="next"?r=u.firstChild:r||(r=u.lastChild),t.selectedListItem=r,r&&(r.className=this.dropdownActiveClasses)}t.selectedListItem&&((n=t.helpers)==null||n.scrollParentToChild(u,t.selectedListItem))},setFirstMenuItemActive(e){this.dropdownEl&&(e.selectedListItem=this.dropdownEl.querySelector("li:first-child"),e.selectedListItem&&(e.selectedListItem.className=this.dropdownActiveClasses))}},zo={changed(e,t){}},Vo={changed(e,t){console.log("changed"),e?(t.debugger&&t.debugger.start(),t.cursor.shadowShow(),t.cursor.containerShow()):(t.debugger&&t.debugger.stop(),t.cursor.containerHide(),t.cursor.shadowHide())}},Oo={changed(e,t){e?t.elements.placeholder.el&&(t.elements.placeholder.el.classList.add("opacity-0"),setTimeout(function(){t.elements.placeholder.el&&(t.elements.placeholder.el.classList.remove("opacity-0"),t.elements.placeholder.el.innerText=t.elements.placeholder.isFocusedText)},100)):t.elements.placeholder.el&&(t.elements.placeholder.el.classList.add("opacity-0"),setTimeout(function(){t.elements.placeholder.el&&(t.elements.placeholder.el.classList.remove("opacity-0"),t.elements.placeholder.el.innerText=t.elements.placeholder.isNotFocusedText)},100))}},No={changed(e,t){var u,n,r,i;t.elements.modal.exists()&&(t.state.getState("modalType")=="code"?((u=t.elements.modal.el)==null||u.classList.add("max-w-4xl","pr-10"),(n=t.elements.modal.el)==null||n.classList.remove("max-w-sm")):((r=t.elements.modal.el)==null||r.classList.remove("max-w-4xl","pr-10"),(i=t.elements.modal.el)==null||i.classList.add("max-w-sm")))}},qo={changed(e,t){}},$o={changed(e,t){t.toolbar&&setTimeout(()=>{var u,n,r,i,s,o,a;t.toolbar.removeAllPreviewActiveStates(),e==="markdown"?((u=t.elements.canvas)==null||u.classList.remove("hidden"),(n=t.elements.wysiwyg)==null||n.classList.add("hidden"),(r=t.toolbar)==null||r.markdownPreviewActive()):(t.elements.wysiwyg&&(t.elements.wysiwyg.innerHTML=t.md.render(((i=t.textarea)==null?void 0:i.value)||"")),(s=t.elements.canvas)==null||s.classList.add("hidden"),(o=t.elements.wysiwyg)==null||o.classList.remove("hidden"),(a=t.toolbar)==null||a.livePreviewActive()),window.dispatchEvent(new CustomEvent("markdownx-state-changed",{detail:{instance:t,property:"mode",value:e}}))},0)}},Ho={changed(e,t){e?t.elements.placeholder.el&&t.elements.show(t.elements.placeholder.el):t.elements.placeholder.el&&t.elements.hide(t.elements.placeholder.el)}},jo={changed(e,t){}},Uo={changed(e,t){var u,n;e?(u=t.elements.toolbar)==null||u.classList.remove("hidden"):(n=t.elements.toolbar)==null||n.classList.add("hidden")}},Zo={changed(e,t){if(e)t.tooltips.create(t);else{const u=document.querySelectorAll(".markdownx-tooltip");for(let n=0;n `,(n=this.instance.element)==null||n.prepend(this.el),this.instance.elements.toolbar=this.el,this.toolbarItemsEl=document.getElementById("markdown-x-toolbar-items");let t="",u=this.instance.items;if(this.instance.config.toolbarItems.length!=0){u=[];for(let r=0;r
';else{const i=u[r];if(!i.title)continue;let s=i.title;t+=``}this.toolbarItemsEl.innerHTML=t,this.startMutationObserver(),this.addToolbarPreviewButtons()}remove(){this.el&&this.el.remove()}addToolbarPreviewButtons(){this.toolbarPreviewMarkdownEl=document.createElement("button"),this.toolbarPreviewMarkdownEl.className="hover:text-gray-900 hover:bg-white text-slate-500 rounded-lg cursor-pointer w-auto h-auto px-2.5 py-1.5 text-xs flex items-center justify-center",this.toolbarPreviewMarkdownEl.onclick=()=>{this.instance.state.setState("mode","markdown")},this.toolbarPreviewMarkdownEl.innerHTML="Write",document.getElementById("markdown-x-toolbar-right").appendChild(this.toolbarPreviewMarkdownEl),this.toolbarPreviewLiveEl=document.createElement("button"),this.toolbarPreviewLiveEl.onclick=()=>{this.instance.state.setState("mode","live")},this.toolbarPreviewLiveEl.className="hover:text-gray-900 hover:bg-white text-slate-500 rounded-lg cursor-pointer w-auto h-auto px-2.5 py-1.5 text-xs flex items-center justify-center",this.toolbarPreviewLiveEl.innerHTML="Preview",document.getElementById("markdown-x-toolbar-right").appendChild(this.toolbarPreviewLiveEl),this.instance.state.getState("mode")=="split"||(this.instance.state.getState("mode")=="markdown"?this.markdownPreviewActive():this.instance.state.getState("mode")=="live"&&this.livePreviewActive())}removeToolbarPreviewItems(){this.toolbarPreviewSplitterEl&&this.toolbarPreviewSplitterEl.remove(),this.toolbarPreviewMarkdownEl&&this.toolbarPreviewMarkdownEl.remove(),this.toolbarPreviewLiveEl&&this.toolbarPreviewLiveEl.remove()}removeAllPreviewActiveStates(){this.toolbarPreviewMarkdownEl!=null&&this.toolbarPreviewMarkdownEl.classList.remove("bg-white","text-slate-900","shadow-sm"),this.toolbarPreviewLiveEl!=null&&this.toolbarPreviewLiveEl.classList.remove("bg-white","text-slate-900","shadow-sm")}splitPreviewActive(){this.toolbarPreviewSplitterEl!=null&&this.toolbarPreviewSplitterEl.classList.add("bg-white","text-slate-900","shadow-sm")}markdownPreviewActive(){this.toolbarPreviewMarkdownEl!=null&&this.toolbarPreviewMarkdownEl.classList.add("bg-white","text-slate-900","shadow-sm")}livePreviewActive(){this.toolbarPreviewLiveEl!=null&&this.toolbarPreviewLiveEl.classList.add("bg-white","text-slate-900","shadow-sm")}startMutationObserver(){const t=this.el;if(!t){console.warn("Toolbar element not found, cannot start MutationObserver");return}const u={attributes:!0,childList:!0,subtree:!0},n=(i,s)=>{i.forEach(o=>{o.addedNodes.forEach(a=>{a.nodeType===1&&a.classList.contains("markdownx-tooltip")||this.instance.state.getState("toolbars")&&this.instance.tooltips.create(this.instance)})})};new MutationObserver(n).observe(t,u)}}const Wo={animatedCursor:{create(e){!e.elements.canvas||!e.textarea||(e.customCursor=document.createElement("div"),e.customCursor.className="markdownx-custom-cursor markdownx-custom-cursor-blinking w-0.5 h-5 ease hidden duration-[0.25s] absolute z-50 bg-black -translate-x-1.5 opacity-100 pointer-events-none cursor-text",e.customCursor.innerHTML='',e.elements.canvas.appendChild(e.customCursor),e.textarea.classList.add("markdownx-hidden-cursor"),e.cursor.repositionCursor(e),setTimeout(function(){e.customCursor&&e.customCursor.classList.remove("hidden")},300))},destroy(e){var t;!window.MarkdownXeditor||!e.customCursor||(e.customCursor.remove(),(t=e.textarea)==null||t.classList.remove("markdownx-hidden-cursor"))},changed(e,t){!window.MarkdownX||!t.elements||(e?this.create(t):this.destroy(t))}},modal:{el:null,children:{cancel:null,content:null,button:null,info:null},create(e,t){this.el=document.createElement("div"),this.el.setAttribute("onkeydown","handleModalEscape(event)"),this.el.className="markdownx-modal absolute z-40 w-full transform rounded-lg shadow-sm",this.el.innerHTML=`
`,document.body.appendChild(this.el),this.children.content=this.el.querySelector(".markdownx-modal-content"),this.children.cancel=this.el.querySelector(".markdownx-modal-cancel-button"),this.children.button=this.el.querySelector(".markdownx-modal-submit-button"),this.children.info=this.el.querySelector(".markdownx-modal-information");let u=t.getBlockFromId(e);this.el.querySelector(".markdownx-modal-submit-button").addEventListener("click",u==null?void 0:u.modal.submit),this.addModalCloseListener(t)},destroy(e){var t;e.cursor.repositionCursor(e),(t=this.el)==null||t.remove(),e.state.setState("modal",!1),document.querySelectorAll(".markdownx-text-overlay").forEach(u=>{u.remove()})},addModalCloseListener(e){var u,n;let t=this;(n=(u=this.el)==null?void 0:u.querySelector(".markdownx-modal-cancel-button"))==null||n.addEventListener("click",function(){t.closeModal(e)})},closeModal(e){var t,u,n,r;(t=e.textarea)==null||t.focus(),(u=e.textarea)==null||u.setCaretPosition(e.caret.start,e.caret.end),e.cursor.repositionCursor(e),this.destroy(e),(n=this.el)==null||n.classList.remove("translate-y-2","scale-100","transition-transform","duration-100","ease-in-out"),(r=this.el)==null||r.classList.add("translate-y-0","scale-95","hidden")},exists(){return!!this.el},modalType:"",setHTML(e,t,u){u.state.setState("modalType",t),this.children.content&&(this.children.content.innerHTML=e)},submitModal(e){e.keyCode===13&&(e.preventDefault(),this.children.button&&this.children.button.click())},searchGIFModal(e){e.keyCode===13&&e.preventDefault()},show(e,t,u,n){var a,l,c,d;if(n.caret={start:((a=n.textarea)==null?void 0:a.selectionStart)||0,end:((l=n.textarea)==null?void 0:l.selectionEnd)||0},this.exists()&&this.destroy(n),typeof e.modal.html>"u"){console.error("This item does not have a modal.html value set. See docs.");return}let r=e.id,i=e.modal.html;this.create(r,n),this.setHTML(i,r,n);const[s,o]=((c=n.helpers)==null?void 0:c.getCursorPosition())||[0,0];(d=this.el)==null||d.setAttribute("style",`left: ${s-10}px; top: ${o}px`),typeof t=="function"&&t(),n.state.setState("modal",!0),On(this.el,{scale:[.9,1],opacity:[0,1],y:["-0.125rem","1.75rem"]},{ease:"backOut",duration:.2}),this.el.classList.remove("hidden"),u()},modalSubmitFunction(e){this.children.button.dataset.markdownxItem,e.textarea,e.state.setState("modal",!1)}},placeholder:{el:null,isFocusedText:"Type your text here. Press / for more options.",isNotFocusedText:"Click here to start writing...",create(e){var t,u;this.el=document.createElement("div"),this.el.onclick=()=>{var n;window.MarkdownXeditor&&((n=e.textarea)==null||n.focus())},this.el.className="markdownx-placeholder hidden absolute z-20 text-gray-400 transition-opacity duration-200 ease-out",this.el.textContent=this.isNotFocusedText,(t=e.elements.canvas)==null||t.prepend(this.el),(u=e.elements.canvas)==null||u.addEventListener("cursorPositionUpdate",n=>{const r=n;this.el.style.top=`${r.detail.y}px`,this.el.style.left=`${r.detail.x}px`}),setTimeout(function(){var n;(n=e.helpers)!=null&&n.isCurrentLineEmpty()?e.state.setState("placeholder",!0):e.state.setState("placeholder",!1)},100)},textareaEvent(e,t){var r,i,s,o,a,l;let u="";e instanceof KeyboardEvent&&(u=e.key||"");let n=e.type;if(t.slashDropdown.isOpen&&!((r=t.helpers)!=null&&r.isCurrentLineEmpty())){t.state.setState("placeholder",!1);return}e.type=="keydown"?((i=t.helpers)!=null&&i.isCurrentLineEmpty()&&u!="Enter"&&u!="Backspace"&&u!="ArrowUp"&&u!="ArrowDown"&&t.state.setState("placeholder",!1),!((s=t.helpers)!=null&&s.isPreviousLineEmpty())&&u!="Enter"&&t.state.setState("placeholder",!1),!((o=t.helpers)!=null&&o.isPreviousLineEmpty())&&(u=="Backspace"||u=="ArrowUp")&&t.state.setState("placeholder",!1),!((a=t.helpers)!=null&&a.isNextLineEmpty())&&(u=="Enter"||u=="ArrowDown")&&t.state.setState("placeholder",!0)):n=="keyup"?((l=t.helpers)==null?void 0:l.isCurrentLineEmpty())??!1?t.state.setState("placeholder",!0):t.state.setState("placeholder",!1):n=="mousedown"?t.state.setState("placeholder",!1):n=="mouseup"&&setTimeout(()=>{var c;((c=t.helpers)==null?void 0:c.isCurrentLineEmpty())??!1?t.state.setState("placeholder",!0):t.state.setState("placeholder",!1)},10)}},toolbar:null,show(e){e.classList.remove("hidden")},hide(e){e.classList.add("hidden")}},Yo={load(e){const t=e.element;t.className="markdownx max-h-screen border border-gray-200 rounded-lg flex flex-col";const u=e.textarea;e.textarea=u,u.className="markdownx-editor p-5 w-full rounded-b-lg focus:outline-none focus:ring-0 h-full mx-auto border-0 outline-none leading-[28px] sm:x-0 text-sm text-gray-600";const n=document.createElement("div");n.className="markdownx-canvas markdownx-width-container rounded-b-lg z-30 h-full relative flex w-full bg-white mx-auto",e.elements.canvas=n,this.assembleStructure(t,u,n);const r=document.createElement("div");r.className="markdownx-dropdown relative z-[999]",e.elements.dropdown=r;const i=document.createElement("input");i.type="file",i.className="markdownx-file-input hidden",e.elements.fileInput=i;const s=document.createElement("div");s.className="markdownx-error absolute top-0 z-40 hidden w-full py-2 text-sm text-center text-red-400 bg-red-50",e.elements.error=s;const o=document.createElement("div");o.className="markdownx-drop-files absolute hidden inset-0 flex items-center justify-center w-full h-full bg-blue-100 bg-opacity-20",o.addEventListener("dragleave",c=>{c.preventDefault(),o.classList.remove("bg-opacity-20")}),o.addEventListener("dragover",c=>{c.preventDefault()}),o.addEventListener("drop",c=>{c.preventDefault()}),e.elements.dropFiles=o;const a=document.createElement("div");a.className="markdownx-wysiwyg w-full relative z-30 px-5 bg-white h-full hidden pt-5 prose prose-md max-w-full mx-auto",a.addEventListener("click",()=>{var c;(c=document.getElementById("editor"))==null||c.focus()}),e.elements.wysiwyg=a;const l=document.createElement("div");l.className="markdownx-cursor-tracker w-full h-full absolute opacity-75 hidden pointer-events-none cursor-text",e.elements.cursorTracker=l,t.append(s),t.prepend(l),t.prepend(r),t.append(a),t.append(o)},assembleStructure(e,t,u){let n=t.parentNode;if(n){const r=window.getComputedStyle(n);e.style.width=r.width,e.style.height=r.height,n.replaceChild(e,t),e.appendChild(u),u.appendChild(t)}else e.style.width="100%",e.style.height="100%"}},Qo={container:null,shadow:null,repositionCursor(e){let t=e.textarea;if(!t)return;let{paddingRight:u,paddingTop:n,lineHeight:r,fontSize:i,fontFamily:s}=getComputedStyle(t);const{x:o,y:a}=e.cursor.cursorXY(e),l=Math.min(o-t.scrollLeft,t.offsetLeft+t.offsetWidth-parseInt(u,10));let c=a-t.scrollTop;e.elements.placeholder.el&&e.elements.placeholder.el.setAttribute("style",`left: ${l+5}px; top: ${c}px; font-size:${i}; font-family:${s}; margin-top:-0.2rem;`),e.customCursor&&e.customCursor.setAttribute("style",`left: ${l+5}px; top: ${c}px; font-size:${i}; font-family:${s}; margin-top:-0.2rem;`)},cursorXY(e){var a,l,c,d,p,h,f,m,x,y,b,w;let t=(a=e.textarea)==null?void 0:a.offsetLeft,u=(l=e.textarea)==null?void 0:l.offsetTop;this.container&&this.container.remove(),this.container=document.createElement("div"),this.container.className=((c=e.textarea)==null?void 0:c.className)??"",this.container.classList.remove("min-h-screen","h-full","w-full"),this.container.classList.add("whitespace-pre-wrap","break-words","markdownx-shadow","pointer-events-none","absolute","inset-0","opacity-50");const n=(p=e.textarea)==null?void 0:p.value.substr(0,(d=e.textarea)==null?void 0:d.selectionStart);this.container.textContent=n??"",this.container.style.height="auto",this.shadow=document.createElement("span"),this.shadow.className="bg-red-400 text-red-900 opacity-0";let r=".";((h=e.textarea)==null?void 0:h.selectionStart)!=((f=e.textarea)==null?void 0:f.selectionEnd)&&(r=(y=e.textarea)==null?void 0:y.value.substring((m=e.textarea)==null?void 0:m.selectionStart,(x=e.textarea)==null?void 0:x.selectionEnd),console.log(r)),this.shadow.textContent=r??".",this.container.appendChild(this.shadow),(b=e.elements.canvas)==null||b.appendChild(this.container),this.refreshElements(e);const{offsetLeft:i,offsetTop:s}=this.shadow,o=getComputedStyle(this.shadow);return parseInt(o.lineHeight,10),(w=e.elements.canvas)==null||w.dispatchEvent(new CustomEvent("cursorPositionUpdate",{detail:{x:(t??0)+i,y:(u??0)+s}})),{x:(t??0)+i,y:(u??0)+s}},refreshElements(e){e.state.getState("debug")&&(this.containerShow(),this.shadowShow())},containerShow(){this.container&&(this.container.classList.add("text-red-400","bg-red-100"),this.container.classList.add("bg-red-100"))},containerHide(){this.container&&this.container.classList.remove("text-red-400","bg-red-100")},shadowShow(){this.shadow&&this.shadow.classList.remove("opacity-0")},shadowHide(){this.shadow&&this.shadow.classList.add("opacity-0")}},Jo={replaceSlashText(e,t){var s;let u=t.textarea;if(!u)return;const n=u.value.slice(0,t.insertionStart),r=u.value.slice(u.selectionStart,u.value.length);let i=`${n}${e}${r}`;window.updateTextareaContent(u,i),(s=t.textarea)==null||s.setCaretPosition(t.insertionStart+e.length,t.insertionStart+e.length)},clearCurrentLine(e){var s;let t=e.textarea;if(!t)return;let u=t.getCaretPosition(),n=t.value.lastIndexOf(` `,u.start)+1,r=t.value.indexOf(` `,u.start);r===-1&&(r=t.value.length);let i=t.value.substring(0,n)+t.value.substring(r,t.value.length);window.updateTextareaContent(t,i),(s=e.textarea)==null||s.setCaretPosition(n,n)},addTextToBeginningOfCurrentLine(e,t){var a;let u=t.textarea;if(!u)return;let n=u.getCaretPosition(),r=u.value.lastIndexOf(` `,n.start)+1,i=u.value.indexOf(` `,n.start);i===-1&&(i=u.value.length);let s=u.value.substring(r,i),o=u.value.substring(0,r)+e+s+u.value.substring(i,u.value.length);window.updateTextareaContent(u,o),(a=t.textarea)==null||a.setCaretPosition(r+e.length,r+e.length)},currentLineIsEmpty(e){let t=e.textarea;if(!t)return;let u=t.getCaretPosition(),n=t.value.lastIndexOf(` `,u.start)+1,r=t.value.indexOf(` `,u.start);if(r===-1&&(r=t.value.length),t.value.substring(n,r).trim()==="")return!0;{let s=r+1;return t.setCaretPosition(s,s),!1}},createNewLineIfNotEmpty(e){var t;if(!this.currentLineIsEmpty(e)){let u=e.textarea;if(!u)return;let n=u.getCaretPosition();u.value.lastIndexOf(` `,n.start)+1;let r=u.value.indexOf(` `,n.start);r===-1&&(r=u.value.length);let i=u.value.substring(0,r)+` `+u.value.substring(r,u.value.length);window.updateTextareaContent(u,i),(t=e.textarea)==null||t.setCaretPosition(r+1,r+1)}}};class F{constructor(t){this.display="block",this.instance=t}addTextToCurrentLine(t){this.instance.content.replaceSlashText(t,this.instance)}addTextToBeginningOfLine(t){this.instance.content.addTextToBeginningOfCurrentLine(t,this.instance),this.instance.state.setState("placeholder",!1)}}class ea extends F{constructor(){super(...arguments),this.id="bold",this.icon='',this.title="Bold",this.description="Add bold text."}selected(){this.addTextToCurrentLine("**Bold text**")}toolbarClick(){var t;(t=this.instance.helpers)==null||t.boldSelection()}}class ta extends F{constructor(){super(...arguments),this.id="italic",this.icon='',this.title="Italic",this.description="Add italic text."}selected(){this.addTextToCurrentLine("*italic text*")}toolbarClick(){var t;(t=this.instance.helpers)==null||t.italicSelection()}}class ua extends F{constructor(){super(...arguments),this.id="underline",this.icon='',this.title="Underline",this.description="Add underline text."}selected(){this.addTextToCurrentLine("underlined text")}toolbarClick(){const t=window.MarkdownXeditor;if(t){const u=t.selectionStart,n=t.selectionEnd,i=""+t.value.substring(u,n)+"";t.setRangeText(i,u,n,"select")}}}class na extends F{constructor(){super(...arguments),this.id="strike_through",this.icon='',this.title="Strike Through",this.description="Add strike through text."}selected(){this.addTextToCurrentLine("~~strikethrough text~~")}toolbarClick(){var t;(t=this.instance.helpers)==null||t.strikethroughSelection()}}class ra extends F{constructor(){super(...arguments),this.id="inline_code",this.icon='',this.title="Inline Code",this.description="Add inline code."}selected(){this.addTextToCurrentLine("`code`")}toolbarClick(){var t;(t=this.instance.helpers)==null||t.inlineCodeSelection()}}class ia extends F{constructor(){super(...arguments),this.id="heading",this.icon='',this.title="Heading",this.description="Large heading text."}selected(){this.addTextToCurrentLine("# ")}toolbarClick(){this.addTextToBeginningOfLine("# ")}}class sa extends F{constructor(){super(...arguments),this.id="heading_2",this.icon='',this.title="Heading 2",this.description="Medium heading text."}selected(){this.addTextToCurrentLine("## ")}toolbarClick(){this.addTextToBeginningOfLine("## ")}}class oa extends F{constructor(){super(...arguments),this.id="heading_3",this.icon='',this.title="Heading 3",this.description="Small heading text."}selected(){this.addTextToCurrentLine("### ")}toolbarClick(){this.addTextToBeginningOfLine("### ")}}class aa extends F{constructor(){super(...arguments),this.id="image",this.icon='',this.title="Image",this.description="Upload or add an image."}selected(){window.MarkdownXfileInput&&window.MarkdownXfileInput.click(),this.addTextToCurrentLine("")}toolbarClick(){this.selected()}}class la extends F{constructor(){super(...arguments),this.id="text",this.icon='',this.title="Text",this.description="Start writing with plain text.",this.display="inline"}selected(){this.addTextToCurrentLine("")}toolbarClick(){this.selected()}}class ca extends F{constructor(){super(...arguments),this.id="code",this.icon='',this.title="Code",this.description="Insert a piece of code.",this.modal={submit:()=>{var u,n,r;let t=((u=this.instance.codeEditor)==null?void 0:u.getValue())||"";(n=this.instance.textarea)==null||n.setCaretPosition(this.instance.caret.start,this.instance.caret.end),(r=this.instance.textarea)==null||r.insertAtCaret("```\n"+t+"\n```\n\n"),this.instance.elements.modal.destroy(this.instance)},html:`
`}}selected(){var t;(t=this.instance.textarea)==null||t.setCaretPosition(this.instance.caret.start,this.instance.caret.end),this.instance.textarea&&window.addNewLineIfAtEnd(this.instance.textarea),this.instance.content.replaceSlashText("",this.instance),this.showModalAndInitializeEditor()}toolbarClick(){this.instance.content.createNewLineIfNotEmpty(this.instance),setTimeout(()=>{this.showModalAndInitializeEditor(()=>{this.instance.state.setState("placeholder",!1)})},10)}showModalAndInitializeEditor(t){this.instance.elements.modal.show(this,()=>{this.initializeAceEditor()},()=>{t&&t(),this.instance.codeEditor&&this.instance.codeEditor.focus()},this.instance)}initializeAceEditor(){typeof window.ace>"u"||!document.getElementById("editor-code")||(this.instance.codeEditor=window.ace.edit("editor-code"),this.instance.codeEditor.setTheme("ace/theme/monokai"),this.instance.codeEditor.session.setMode("ace/mode/javascript"),this.instance.codeEditor.setOptions({maxLines:30,minLines:10,fontSize:14,showLineNumbers:!0,showGutter:!0,showPrintMargin:!1,highlightActiveLine:!0,autoScrollEditorIntoView:!0,copyWithEmptySelection:!0}),this.instance.codeEditor.commands&&this.instance.codeEditor.commands.addCommand({name:"save",bindKey:{win:"Ctrl-Enter",mac:"Cmd-Enter"},exec:()=>{var u,n;(n=(u=this.instance.elements.modal.children)==null?void 0:u.button)==null||n.click()}}))}}class da extends F{constructor(){super(...arguments),this.id="link",this.icon='',this.title="Link",this.description="Insert a link.",this.display="inline",this.modal={submit:()=>{var i,s,o,a;console.log("why is link modal submit called?");const t=(i=this.instance.elements.modal.el)==null?void 0:i.querySelector(".markdownx-link-text"),u=(s=this.instance.elements.modal.el)==null?void 0:s.querySelector(".markdownx-link-url"),n=(t==null?void 0:t.value)||"",r=(u==null?void 0:u.value)||"";document.querySelectorAll(".markdownx-text-overlay").forEach(l=>{l.remove()}),(o=this.instance.helpers)==null||o.replaceSelectedText(`[${n}](${r})`),this.instance.elements.modal.destroy(this.instance),(a=this.instance.textarea)==null||a.focus()},html:` `}}selected(){var u;(u=this.instance.textarea)==null||u.setCaretPosition(this.instance.caret.start,this.instance.caret.end),this.addTextToCurrentLine(""),console.log("selected"),console.log(this.instance.elements.modal);let t=this.instance;this.instance.elements.modal.show(this,()=>{this.createKeyboardListenersForLinkInputs()},()=>{var r;const n=(r=this.instance.elements.modal.el)==null?void 0:r.querySelector(".markdownx-link-text");n&&n.focus()},t)}toolbarClick(){var o,a,l;let t=(o=this.instance.helpers)==null?void 0:o.getSelectedText();if(!t)return;this.instance.elements.modal.show(this,()=>{this.createKeyboardListenersForLinkInputs()},()=>{var p,h;const c=(p=this.instance.elements.modal.el)==null?void 0:p.querySelector(".markdownx-link-text"),d=(h=this.instance.elements.modal.el)==null?void 0:h.querySelector(".markdownx-link-url");c&&(c.value=t.text),d&&d.focus()});const[u,n]=((a=this.instance.helpers)==null?void 0:a.getCursorPosition())||[0,0];let r=document.createElement("div");r.className="absolute z-30 w-auto markdownx-text-overlay",r.style.left=`${u}px`,r.style.top=`${n}px`,r.style.marginTop="-6px",r.style.backgroundColor="#bbd6fb";const i=this.instance.textarea;if(!i)return;const s=((l=this.instance.helpers)==null?void 0:l.getComputedTextStyles(i))??{};Object.entries(s).forEach(([c,d])=>{r.style[c]=d}),r.innerHTML=t.text,document.body.appendChild(r),window.dispatchEvent(new Event("markdown-x-floating-toolbar-hide"))}createKeyboardListenersForLinkInputs(){var n;const t=(n=this.instance.elements.modal.el)==null?void 0:n.querySelectorAll(".markdownx-link-text, .markdownx-link-url");let u=this.instance;t==null||t.forEach(r=>{r.addEventListener("keydown",function(i){if(i.key==="Enter"){const o=u.elements.modal.children.button;o&&o.click()}})})}}class fa extends F{constructor(){super(...arguments),this.id="divider",this.icon='',this.title="Divider",this.description="Insert a divider line.",this.display="block"}selected(){this.addTextToCurrentLine(`--- `)}toolbarClick(){this.selected()}}class ha extends F{constructor(){super(...arguments),this.id="bulleted_list",this.icon='',this.title="Bulleted List",this.description="Add a bulleted list."}selected(){this.addTextToCurrentLine(" - ")}toolbarClick(){this.selected()}}class pa extends F{constructor(){super(...arguments),this.id="numbered_list",this.icon='',this.title="Numbered List",this.description="Add a numbered list."}selected(){this.addTextToCurrentLine(" 1. ")}toolbarClick(){this.selected()}}class ma extends F{constructor(){super(...arguments),this.id="quote",this.icon='',this.title="Quote",this.description="Insert a quote."}selected(){this.addTextToCurrentLine("> ")}toolbarClick(){this.selected()}}class ba extends F{constructor(){super(...arguments),this.id="giphy",this.icon='',this.title="Giphy",this.description="Add an animated GIF",this.display="block",this.modal={submit:()=>{},html:`
`}}selected(){var t;this.instance.elements.modal.setHTML(this.modal.html,this.id,this.instance),this.instance.elements.modal.children.button&&(this.instance.elements.modal.children.button.dataset.markdownxItem=this.id),(t=this.instance.textarea)==null||t.setCaretPosition(this.instance.caret.start,this.instance.caret.end),this.addTextToCurrentLine(""),this.instance.elements.modal.show(this,()=>{},()=>{const u=document.getElementById("editor-giphy-search");u&&u.focus()})}toolbarClick(){this.selected()}populateGiphyResultsContainer(){window.addEventListener("markdownx-giphy-results",t=>{const u=t.detail.results;let n='
';for(const i of u)n+=``;n+="
";const r=document.getElementById("editor-giphy-results");r&&(r.innerHTML=n)})}}class xa extends F{constructor(){super(...arguments),this.id="codepen",this.icon='',this.title="Codepen",this.description="Embed a Codepen.",this.display="block",this.modal={submit:()=>{var u,n;(u=this.instance.textarea)==null||u.setCaretPosition(this.instance.insertionStart,this.instance.insertionStart);const t=document.getElementById("editor-codepen-url").value;(n=this.instance.textarea)==null||n.insertAtCaret(`{% codepen ${t} %} `)},html:` `}}selected(){this.instance.elements.modal.setHTML(this.modal.html,this.id,this.instance),this.instance.elements.modal.children.button&&(this.instance.elements.modal.children.button.dataset.markdownxItem=this.id),this.instance.textarea&&this.instance.caret&&this.instance.textarea.setCaretPosition(this.instance.caret.start,this.instance.caret.end),this.addTextToCurrentLine(""),this.instance.elements.modal.show(this,()=>{},()=>{const t=document.getElementById("editor-codepen-url");t&&t.focus()})}toolbarClick(){this.selected()}}class ga extends F{constructor(){super(...arguments),this.id="codesandbox",this.icon='',this.title="Codesandbox",this.description="Embed a Codesandbox.",this.display="block",this.modal={submit:()=>{var n,r;(n=this.instance.textarea)==null||n.setCaretPosition(this.instance.insertionStart,this.instance.insertionStart);const t=document.getElementById("editor-codesandbox-url"),u=(t==null?void 0:t.value)||"";(r=this.instance.textarea)==null||r.insertAtCaret(`{% codesandbox ${u} %} `)},html:` `}}selected(){this.instance.elements.modal.setHTML(this.modal.html,this.id,this.instance),this.instance.elements.modal.children.button&&(this.instance.elements.modal.children.button.dataset.markdownxItem=this.id),this.instance.textarea&&this.instance.caret&&this.instance.textarea.setCaretPosition(this.instance.caret.start,this.instance.caret.end),this.addTextToCurrentLine(""),this.instance.elements.modal.show(this,()=>{},()=>{const t=document.getElementById("editor-codesandbox-url");t&&t.focus()})}toolbarClick(){this.selected()}}class ya extends F{constructor(){super(...arguments),this.id="youtube",this.icon='',this.title="Youtube",this.description="Embed a Youtube video.",this.display="block",this.modal={getYoutubeIDFromURL:t=>{const u=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/,n=t.match(u);return n&&n[2].length===11?n[2]:t},submit:()=>{var n,r;(n=this.instance.textarea)==null||n.setCaretPosition(this.instance.insertionStart,this.instance.insertionStart);const t=document.getElementById("editor-youtube-url").value,u=this.modal.getYoutubeIDFromURL(t);(r=this.instance.textarea)==null||r.insertAtCaret(`{% youtube ${u} %} `)},html:` `}}selected(){this.instance.elements.modal.setHTML(this.modal.html,this.id,this.instance),this.instance.elements.modal.children.button&&(this.instance.elements.modal.children.button.dataset.markdownxItem=this.id),this.instance.textarea&&this.instance.caret&&this.instance.textarea.setCaretPosition(this.instance.caret.start,this.instance.caret.end),this.addTextToCurrentLine(""),this.instance.elements.modal.show(this,()=>{},()=>{const t=document.getElementById("editor-youtube-url");t&&t.focus()})}toolbarClick(){this.selected()}}class wa extends F{constructor(){super(...arguments),this.id="canva",this.icon='',this.title="Canva",this.description="Embed a Canva Video.",this.display="block"}selected(){}toolbarClick(){this.selected()}modalSubmit(){if(!this.instance||!this.instance.textarea)return;this.instance.textarea.setCaretPosition(this.instance.insertionStart,this.instance.insertionStart);const t=document.getElementById("editor-canva-url").value;this.instance.textarea.insertAtCaret(`{% canva ${t} %} `)}get modalHTML(){return` `}}class ka extends F{constructor(){super(...arguments),this.id="buy_me_a_coffee",this.icon='',this.title="Buy Me a Coffee",this.description="Buy Me a Coffee Link.",this.display="block"}selected(){}toolbarClick(){this.selected()}modalSubmit(){var u,n;(u=this.instance.textarea)==null||u.setCaretPosition(this.instance.insertionStart,this.instance.insertionStart);const t=document.getElementById("editor-buy-me-a-coffee-username").value;(n=this.instance.textarea)==null||n.insertAtCaret(`{% buymeacoffee ${t} %} `)}get modalHTML(){return` `}}function va(e){return{items:[new ea(e),new ta(e),new ua(e),new na(e),new ra(e),new la(e),new ia(e),new sa(e),new oa(e),new aa(e),new ca(e),new da(e),new fa(e),new ha(e),new pa(e),new ma(e),new ba(e),new xa(e),new ga(e),new ya(e),new wa(e),new ka(e)]}}const _a={create(e){const t=document.querySelectorAll("[data-tooltip]");for(let u=0;u"u")return;let n=t[u].getAttribute("data-tooltip");if(t[u].querySelector(".markdownx-tooltip"))continue;let r=document.createElement("span");t[u].classList.add("group"),r.className="markdownx-tooltip pointer-events-none absolute translate-y-full group-hover:ease-out ease-linear mb-0 group-hover:duration-300 duration-0 bottom-0 group-hover:visible invisible group-hover:-mb-1 -translate-x-1/2 left-1/2 whitespace-nowrap "+e.config.tooltip.classes,r.textContent=n,t[u].appendChild(r)}},getTheXYPositionOfElement(e){const t=e.getBoundingClientRect(),u=t.left+window.scrollX,n=t.top+window.scrollY;return{x:u,y:n}}},Nn={};function Ca(e){let t=Nn[e];if(t)return t;t=Nn[e]=[];for(let u=0;u<128;u++){const n=String.fromCharCode(u);t.push(n)}for(let u=0;u=55296&&c<=57343?r+="���":r+=String.fromCharCode(c),i+=6;continue}}if((o&248)===240&&i+91114111?r+="����":(d-=65536,r+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),i+=9;continue}}r+="�"}return r})}be.defaultChars=";/?:@&=+$,#",be.componentChars="";const qn={};function Ea(e){let t=qn[e];if(t)return t;t=qn[e]=[];for(let u=0;u<128;u++){const n=String.fromCharCode(u);/^[0-9a-z]$/i.test(n)?t.push(n):t.push("%"+("0"+u.toString(16).toUpperCase()).slice(-2))}for(let u=0;u"u"&&(u=!0);const n=Ea(t);let r="";for(let i=0,s=e.length;i=55296&&o<=57343){if(o>=55296&&o<=56319&&i+1=56320&&a<=57343){r+=encodeURIComponent(e[i]+e[i+1]),i++;continue}}r+="%EF%BF%BD";continue}r+=encodeURIComponent(e[i])}return r}Ie.defaultChars=";/?:@&=+$,-_.!~*'()#",Ie.componentChars="-_.!~*'()";function jt(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function tt(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const Aa=/^([a-z0-9.+-]+:)/i,Da=/:[0-9]*$/,Ta=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Fa=["<",">",'"',"`"," ","\r",` `," "],Sa=["{","}","|","\\","^","`"].concat(Fa),La=["'"].concat(Sa),$n=["%","/","?",";","#"].concat(La),Hn=["/","?","#"],Ma=255,jn=/^[+a-z0-9A-Z_-]{0,63}$/,Ia=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Un={javascript:!0,"javascript:":!0},Zn={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Ut(e,t){if(e&&e instanceof tt)return e;const u=new tt;return u.parse(e,t),u}tt.prototype.parse=function(e,t){let u,n,r,i=e;if(i=i.trim(),!t&&e.split("#").length===1){const l=Ta.exec(i);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}let s=Aa.exec(i);if(s&&(s=s[0],u=s.toLowerCase(),this.protocol=s,i=i.substr(s.length)),(t||s||i.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r=i.substr(0,2)==="//",r&&!(s&&Un[s])&&(i=i.substr(2),this.slashes=!0)),!Un[s]&&(r||s&&!Zn[s])){let l=-1;for(let f=0;f127?b+="x":b+=y[w];if(!b.match(jn)){const w=f.slice(0,m),k=f.slice(m+1),g=y.match(Ia);g&&(w.push(g[1]),k.unshift(g[2])),k.length&&(i=k.join(".")+i),this.hostname=w.join(".");break}}}}this.hostname.length>Ma&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const o=i.indexOf("#");o!==-1&&(this.hash=i.substr(o),i=i.slice(0,o));const a=i.indexOf("?");return a!==-1&&(this.search=i.substr(a),i=i.slice(0,a)),i&&(this.pathname=i),Zn[u]&&this.hostname&&!this.pathname&&(this.pathname=""),this},tt.prototype.parseHost=function(e){let t=Da.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const Ba=Object.freeze(Object.defineProperty({__proto__:null,decode:be,encode:Ie,format:jt,parse:Ut},Symbol.toStringTag,{value:"Module"})),Gn=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Kn=/[\0-\x1F\x7F-\x9F]/,Pa=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Zt=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Xn=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Wn=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Ra=Object.freeze(Object.defineProperty({__proto__:null,Any:Gn,Cc:Kn,Cf:Pa,P:Zt,S:Xn,Z:Wn},Symbol.toStringTag,{value:"Module"})),za=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Va=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Gt;const Oa=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Na=(Gt=String.fromCodePoint)!==null&&Gt!==void 0?Gt:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function qa(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Oa.get(e))!==null&&t!==void 0?t:e}var L;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(L||(L={}));const $a=32;var J;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(J||(J={}));function Kt(e){return e>=L.ZERO&&e<=L.NINE}function Ha(e){return e>=L.UPPER_A&&e<=L.UPPER_F||e>=L.LOWER_A&&e<=L.LOWER_F}function ja(e){return e>=L.UPPER_A&&e<=L.UPPER_Z||e>=L.LOWER_A&&e<=L.LOWER_Z||Kt(e)}function Ua(e){return e===L.EQUALS||ja(e)}var M;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(M||(M={}));var ee;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ee||(ee={}));class Za{constructor(t,u,n){this.decodeTree=t,this.emitCodePoint=u,this.errors=n,this.state=M.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ee.Strict}startEntity(t){this.decodeMode=t,this.state=M.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,u){switch(this.state){case M.EntityStart:return t.charCodeAt(u)===L.NUM?(this.state=M.NumericStart,this.consumed+=1,this.stateNumericStart(t,u+1)):(this.state=M.NamedEntity,this.stateNamedEntity(t,u));case M.NumericStart:return this.stateNumericStart(t,u);case M.NumericDecimal:return this.stateNumericDecimal(t,u);case M.NumericHex:return this.stateNumericHex(t,u);case M.NamedEntity:return this.stateNamedEntity(t,u)}}stateNumericStart(t,u){return u>=t.length?-1:(t.charCodeAt(u)|$a)===L.LOWER_X?(this.state=M.NumericHex,this.consumed+=1,this.stateNumericHex(t,u+1)):(this.state=M.NumericDecimal,this.stateNumericDecimal(t,u))}addToNumericResult(t,u,n,r){if(u!==n){const i=n-u;this.result=this.result*Math.pow(r,i)+parseInt(t.substr(u,i),r),this.consumed+=i}}stateNumericHex(t,u){const n=u;for(;u>14;for(;u>14,i!==0){if(s===L.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==ee.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:u,decodeTree:n}=this,r=(n[u]&J.VALUE_LENGTH)>>14;return this.emitNamedEntityData(u,r,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,u,n){const{decodeTree:r}=this;return this.emitCodePoint(u===1?r[t]&~J.VALUE_LENGTH:r[t+1],n),u===3&&this.emitCodePoint(r[t+2],n),n}end(){var t;switch(this.state){case M.NamedEntity:return this.result!==0&&(this.decodeMode!==ee.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case M.NumericDecimal:return this.emitNumericEntity(0,2);case M.NumericHex:return this.emitNumericEntity(0,3);case M.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case M.EntityStart:return 0}}}function Yn(e){let t="";const u=new Za(e,n=>t+=Na(n));return function(r,i){let s=0,o=0;for(;(o=r.indexOf("&",o))>=0;){t+=r.slice(s,o),u.startEntity(i);const l=u.write(r,o+1);if(l<0){s=o+u.end();break}s=o+l,o=l===0?s+1:s}const a=t+r.slice(s);return t="",a}}function Ga(e,t,u,n){const r=(t&J.BRANCH_LENGTH)>>7,i=t&J.JUMP_TABLE;if(r===0)return i!==0&&n===i?u:-1;if(i){const a=n-i;return a<0||a>=r?-1:e[u+a]-1}let s=u,o=s+r-1;for(;s<=o;){const a=s+o>>>1,l=e[a];if(ln)o=a-1;else return e[a+r]}return-1}const Ka=Yn(za);Yn(Va);function Qn(e,t=ee.Legacy){return Ka(e,t)}function Xa(e){return Object.prototype.toString.call(e)}function Xt(e){return Xa(e)==="[object String]"}const Wa=Object.prototype.hasOwnProperty;function Ya(e,t){return Wa.call(e,t)}function ut(e){return Array.prototype.slice.call(arguments,1).forEach(function(u){if(u){if(typeof u!="object")throw new TypeError(u+"must be object");Object.keys(u).forEach(function(n){e[n]=u[n]})}}),e}function Jn(e,t,u){return[].concat(e.slice(0,t),u,e.slice(t+1))}function Wt(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function nt(e){if(e>65535){e-=65536;const t=55296+(e>>10),u=56320+(e&1023);return String.fromCharCode(t,u)}return String.fromCharCode(e)}const er=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Qa=/&([a-z#][a-z0-9]{1,31});/gi,Ja=new RegExp(er.source+"|"+Qa.source,"gi"),e0=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function t0(e,t){if(t.charCodeAt(0)===35&&e0.test(t)){const n=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Wt(n)?nt(n):e}const u=Qn(e);return u!==e?u:e}function u0(e){return e.indexOf("\\")<0?e:e.replace(er,"$1")}function xe(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Ja,function(t,u,n){return u||t0(t,n)})}const n0=/[&<>"]/,r0=/[&<>"]/g,i0={"&":"&","<":"<",">":">",'"':"""};function s0(e){return i0[e]}function te(e){return n0.test(e)?e.replace(r0,s0):e}const o0=/[.?*+^$[\]\\(){}|-]/g;function a0(e){return e.replace(o0,"\\$&")}function D(e){switch(e){case 9:case 32:return!0}return!1}function Be(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Pe(e){return Zt.test(e)||Xn.test(e)}function Re(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function rt(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const l0=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:Jn,assign:ut,escapeHtml:te,escapeRE:a0,fromCodePoint:nt,has:Ya,isMdAsciiPunct:Re,isPunctChar:Pe,isSpace:D,isString:Xt,isValidEntityCode:Wt,isWhiteSpace:Be,lib:{mdurl:Ba,ucmicro:Ra},normalizeReference:rt,unescapeAll:xe,unescapeMd:u0},Symbol.toStringTag,{value:"Module"}));function c0(e,t,u){let n,r,i,s;const o=e.posMax,a=e.pos;for(e.pos=t+1,n=1;e.pos32))return i;if(n===41){if(s===0)break;s--}r++}return t===r||s!==0||(i.str=xe(e.slice(t,r)),i.pos=r,i.ok=!0),i}function f0(e,t,u,n){let r,i=t;const s={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(n)s.str=n.str,s.marker=n.marker;else{if(i>=u)return s;let o=e.charCodeAt(i);if(o!==34&&o!==39&&o!==40)return s;t++,i++,o===40&&(o=41),s.marker=o}for(;i"+te(i.content)+""},H.code_block=function(e,t,u,n,r){const i=e[t];return""+te(e[t].content)+` `},H.fence=function(e,t,u,n,r){const i=e[t],s=i.info?xe(i.info).trim():"";let o="",a="";if(s){const c=s.split(/(\s+)/g);o=c[0],a=c.slice(2).join("")}let l;if(u.highlight?l=u.highlight(i.content,o,a)||te(i.content):l=te(i.content),l.indexOf("${l} `}return`
${l}
`},H.image=function(e,t,u,n,r){const i=e[t];return i.attrs[i.attrIndex("alt")][1]=r.renderInlineAsText(i.children,u,n),r.renderToken(e,t,u)},H.hardbreak=function(e,t,u){return u.xhtmlOut?`
`:`
`},H.softbreak=function(e,t,u){return u.breaks?u.xhtmlOut?`
`:`
`:` `},H.text=function(e,t){return te(e[t].content)},H.html_block=function(e,t){return e[t].content},H.html_inline=function(e,t){return e[t].content};function ge(){this.rules=ut({},H)}ge.prototype.renderAttrs=function(t){let u,n,r;if(!t.attrs)return"";for(r="",u=0,n=t.attrs.length;u `:">",i},ge.prototype.renderInline=function(e,t,u){let n="";const r=this.rules;for(let i=0,s=e.length;i=0&&(n=this.attrs[u][1]),n},O.prototype.attrJoin=function(t,u){const n=this.attrIndex(t);n<0?this.attrPush([t,u]):this.attrs[n][1]=this.attrs[n][1]+" "+u};function tr(e,t,u){this.src=e,this.env=u,this.tokens=[],this.inlineMode=!1,this.md=t}tr.prototype.Token=O;const p0=/\r\n?|\n/g,m0=/\0/g;function b0(e){let t;t=e.src.replace(p0,` `),t=t.replace(m0,"�"),e.src=t}function x0(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function g0(e){const t=e.tokens;for(let u=0,n=t.length;u\s]/i.test(e)}function w0(e){return/^<\/a\s*>/i.test(e)}function k0(e){const t=e.tokens;if(e.md.options.linkify)for(let u=0,n=t.length;u=0;s--){const o=r[s];if(o.type==="link_close"){for(s--;r[s].level!==o.level&&r[s].type!=="link_open";)s--;continue}if(o.type==="html_inline"&&(y0(o.content)&&i>0&&i--,w0(o.content)&&i++),!(i>0)&&o.type==="text"&&e.md.linkify.test(o.content)){const a=o.content;let l=e.md.linkify.match(a);const c=[];let d=o.level,p=0;l.length>0&&l[0].index===0&&s>0&&r[s-1].type==="text_special"&&(l=l.slice(1));for(let h=0;hp){const g=new e.Token("text","",0);g.content=a.slice(p,y),g.level=d,c.push(g)}const b=new e.Token("link_open","a",1);b.attrs=[["href",m]],b.level=d++,b.markup="linkify",b.info="auto",c.push(b);const w=new e.Token("text","",0);w.content=x,w.level=d,c.push(w);const k=new e.Token("link_close","a",-1);k.level=--d,k.markup="linkify",k.info="auto",c.push(k),p=l[h].lastIndex}if(p=0;u--){const n=e[u];n.type==="text"&&!t&&(n.content=n.content.replace(_0,E0)),n.type==="link_open"&&n.info==="auto"&&t--,n.type==="link_close"&&n.info==="auto"&&t++}}function D0(e){let t=0;for(let u=e.length-1;u>=0;u--){const n=e[u];n.type==="text"&&!t&&ur.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&t--,n.type==="link_close"&&n.info==="auto"&&t++}}function T0(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(v0.test(e.tokens[t].content)&&A0(e.tokens[t].children),ur.test(e.tokens[t].content)&&D0(e.tokens[t].children))}const F0=/['"]/,nr=/['"]/g,rr="’";function it(e,t,u){return e.slice(0,t)+u+e.slice(t+1)}function S0(e,t){let u;const n=[];for(let r=0;r=0&&!(n[u].level<=s);u--);if(n.length=u+1,i.type!=="text")continue;let o=i.content,a=0,l=o.length;e:for(;a=0)f=o.charCodeAt(c.index-1);else for(u=r-1;u>=0&&!(e[u].type==="softbreak"||e[u].type==="hardbreak");u--)if(e[u].content){f=e[u].content.charCodeAt(e[u].content.length-1);break}let m=32;if(a=48&&f<=57&&(p=d=!1),d&&p&&(d=x,p=y),!d&&!p){h&&(i.content=it(i.content,c.index,rr));continue}if(p)for(u=n.length-1;u>=0;u--){let k=n[u];if(n[u].level=0;t--)e.tokens[t].type!=="inline"||!F0.test(e.tokens[t].content)||S0(e.tokens[t].children,e)}function M0(e){let t,u;const n=e.tokens,r=n.length;for(let i=0;i0&&this.level++,this.tokens.push(n),n},j.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},j.prototype.skipEmptyLines=function(t){for(let u=this.lineMax;tu;)if(!D(this.src.charCodeAt(--t)))return t+1;return t},j.prototype.skipChars=function(t,u){for(let n=this.src.length;tn;)if(u!==this.src.charCodeAt(--t))return t+1;return t},j.prototype.getLines=function(t,u,n,r){if(t>=u)return"";const i=new Array(u-t);for(let s=0,o=t;on?i[s]=new Array(a-n+1).join(" ")+this.src.slice(c,d):i[s]=this.src.slice(c,d)}return i.join("")},j.prototype.Token=O;const I0=65536;function Jt(e,t){const u=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.slice(u,n)}function ir(e){const t=[],u=e.length;let n=0,r=e.charCodeAt(n),i=!1,s=0,o="";for(;nu)return!1;let r=t+1;if(e.sCount[r]=4)return!1;let i=e.bMarks[r]+e.tShift[r];if(i>=e.eMarks[r])return!1;const s=e.src.charCodeAt(i++);if(s!==124&&s!==45&&s!==58||i>=e.eMarks[r])return!1;const o=e.src.charCodeAt(i++);if(o!==124&&o!==45&&o!==58&&!D(o)||s===45&&D(o))return!1;for(;i=4)return!1;l=ir(a),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop();const d=l.length;if(d===0||d!==c.length)return!1;if(n)return!0;const p=e.parentType;e.parentType="table";const h=e.md.block.ruler.getRules("blockquote"),f=e.push("table_open","table",1),m=[t,0];f.map=m;const x=e.push("thead_open","thead",1);x.map=[t,t+1];const y=e.push("tr_open","tr",1);y.map=[t,t+1];for(let k=0;k=4||(l=ir(a),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop(),w+=d-l.length,w>I0))break;if(r===t+2){const v=e.push("tbody_open","tbody",1);v.map=b=[t+2,0]}const g=e.push("tr_open","tr",1);g.map=[r,r+1];for(let v=0;v=4){n++,r=n;continue}break}e.line=r;const i=e.push("code_block","code",0);return i.content=e.getLines(t,r,4+e.blkIndent,!1)+` `,i.map=[t,e.line],!0}function R0(e,t,u,n){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||r+3>i)return!1;const s=e.src.charCodeAt(r);if(s!==126&&s!==96)return!1;let o=r;r=e.skipChars(r,s);let a=r-o;if(a<3)return!1;const l=e.src.slice(o,r),c=e.src.slice(r,i);if(s===96&&c.indexOf(String.fromCharCode(s))>=0)return!1;if(n)return!0;let d=t,p=!1;for(;d++,!(d>=u||(r=o=e.bMarks[d]+e.tShift[d],i=e.eMarks[d],r=4)&&(r=e.skipChars(r,s),!(r-o=4||e.src.charCodeAt(r)!==62)return!1;if(n)return!0;const o=[],a=[],l=[],c=[],d=e.md.block.ruler.getRules("blockquote"),p=e.parentType;e.parentType="blockquote";let h=!1,f;for(f=t;f=i)break;if(e.src.charCodeAt(r++)===62&&!w){let g=e.sCount[f]+1,v,E;e.src.charCodeAt(r)===32?(r++,g++,E=!1,v=!0):e.src.charCodeAt(r)===9?(v=!0,(e.bsCount[f]+g)%4===3?(r++,g++,E=!1):E=!0):v=!1;let _=g;for(o.push(e.bMarks[f]),e.bMarks[f]=r;r=i,a.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(v?1:0),l.push(e.sCount[f]),e.sCount[f]=_-g,c.push(e.tShift[f]),e.tShift[f]=r-e.bMarks[f];continue}if(h)break;let k=!1;for(let g=0,v=d.length;g";const y=[t,0];x.map=y,e.md.block.tokenize(e,t,f);const b=e.push("blockquote_close","blockquote",-1);b.markup=">",e.lineMax=s,e.parentType=p,y[1]=e.line;for(let w=0;w=4)return!1;let i=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(i++);if(s!==42&&s!==45&&s!==95)return!1;let o=1;for(;i=n)return-1;let i=e.src.charCodeAt(r++);if(i<48||i>57)return-1;for(;;){if(r>=n)return-1;if(i=e.src.charCodeAt(r++),i>=48&&i<=57){if(r-u>=10)return-1;continue}if(i===41||i===46)break;return-1}return r=4||e.listIndent>=0&&e.sCount[a]-e.listIndent>=4&&e.sCount[a]=e.blkIndent&&(c=!0);let d,p,h;if((h=or(e,a))>=0){if(d=!0,s=e.bMarks[a]+e.tShift[a],p=Number(e.src.slice(s,h-1)),c&&p!==1)return!1}else if((h=sr(e,a))>=0)d=!1;else return!1;if(c&&e.skipSpaces(h)>=e.eMarks[a])return!1;if(n)return!0;const f=e.src.charCodeAt(h-1),m=e.tokens.length;d?(o=e.push("ordered_list_open","ol",1),p!==1&&(o.attrs=[["start",p]])):o=e.push("bullet_list_open","ul",1);const x=[a,0];o.map=x,o.markup=String.fromCharCode(f);let y=!1;const b=e.md.block.ruler.getRules("list"),w=e.parentType;for(e.parentType="list";a=r?E=1:E=g-k,E>4&&(E=1);const _=k+E;o=e.push("list_item_open","li",1),o.markup=String.fromCharCode(f);const A=[a,0];o.map=A,d&&(o.info=e.src.slice(s,h-1));const S=e.tight,R=e.tShift[a],Ne=e.sCount[a],oe=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=_,e.tight=!0,e.tShift[a]=v-e.bMarks[a],e.sCount[a]=g,v>=r&&e.isEmpty(a+1)?e.line=Math.min(e.line+2,u):e.md.block.tokenize(e,a,u,!0),(!e.tight||y)&&(l=!1),y=e.line-a>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=oe,e.tShift[a]=R,e.sCount[a]=Ne,e.tight=S,o=e.push("list_item_close","li",-1),o.markup=String.fromCharCode(f),a=e.line,A[1]=a,a>=u||e.sCount[a]=4)break;let au=!1;for(let ae=0,lu=b.length;ae=4||e.src.charCodeAt(r)!==91)return!1;function o(b){const w=e.lineMax;if(b>=w||e.isEmpty(b))return null;let k=!1;if(e.sCount[b]-e.blkIndent>3&&(k=!0),e.sCount[b]<0&&(k=!0),!k){const E=e.md.block.ruler.getRules("reference"),_=e.parentType;e.parentType="reference";let A=!1;for(let S=0,R=E.length;S"u"&&(e.env.references={}),typeof e.env.references[y]>"u"&&(e.env.references[y]={title:x,href:d}),e.line=s),!0):!1}const $0=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],H0="[a-zA-Z_:][a-zA-Z0-9:._-]*",j0="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",ar="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+H0+"(?:\\s*=\\s*"+j0+")?)")+"*\\s*\\/?>",lr="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",U0="",Z0="<[?][\\s\\S]*?[?]>",G0="]*>",K0="",X0=new RegExp("^(?:"+ar+"|"+lr+"|"+U0+"|"+Z0+"|"+G0+"|"+K0+")"),W0=new RegExp("^(?:"+ar+"|"+lr+")"),ye=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(W0.source+"\\s*$"),/^$/,!1]];function Y0(e,t,u,n){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(r)!==60)return!1;let s=e.src.slice(r,i),o=0;for(;o=4)return!1;let s=e.src.charCodeAt(r);if(s!==35||r>=i)return!1;let o=1;for(s=e.src.charCodeAt(++r);s===35&&r6||rr&&D(e.src.charCodeAt(a-1))&&(i=a),e.line=t+1;const l=e.push("heading_open","h"+String(o),1);l.markup="########".slice(0,o),l.map=[t,e.line];const c=e.push("inline","",0);c.content=e.src.slice(r,i).trim(),c.map=[t,e.line],c.children=[];const d=e.push("heading_close","h"+String(o),-1);return d.markup="########".slice(0,o),!0}function J0(e,t,u){const n=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const r=e.parentType;e.parentType="paragraph";let i=0,s,o=t+1;for(;o3)continue;if(e.sCount[o]>=e.blkIndent){let h=e.bMarks[o]+e.tShift[o];const f=e.eMarks[o];if(h=f))){i=s===61?1:2;break}}if(e.sCount[o]<0)continue;let p=!1;for(let h=0,f=n.length;h3||e.sCount[i]<0)continue;let l=!1;for(let c=0,d=n.length;c=u||e.sCount[s]=i){e.line=u;break}const a=e.line;let l=!1;for(let c=0;c=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!o,e.isEmpty(e.line-1)&&(o=!0),s=e.line,s0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(r),n},ze.prototype.scanDelims=function(e,t){const u=this.posMax,n=this.src.charCodeAt(e),r=e>0?this.src.charCodeAt(e-1):32;let i=e;for(;i0)return!1;const u=e.pos,n=e.posMax;if(u+3>n||e.src.charCodeAt(u)!==58||e.src.charCodeAt(u+1)!==47||e.src.charCodeAt(u+2)!==47)return!1;const r=e.pending.match(nl);if(!r)return!1;const i=r[1],s=e.md.linkify.matchAtStart(e.src.slice(u-i.length));if(!s)return!1;let o=s.url;if(o.length<=i.length)return!1;o=o.replace(/\*+$/,"");const a=e.md.normalizeLink(o);if(!e.md.validateLink(a))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);const l=e.push("link_open","a",1);l.attrs=[["href",a]],l.markup="linkify",l.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(o);const d=e.push("link_close","a",-1);d.markup="linkify",d.info="auto"}return e.pos+=o.length-i.length,!0}function il(e,t){let u=e.pos;if(e.src.charCodeAt(u)!==10)return!1;const n=e.pending.length-1,r=e.posMax;if(!t)if(n>=0&&e.pending.charCodeAt(n)===32)if(n>=1&&e.pending.charCodeAt(n-1)===32){let i=n-1;for(;i>=1&&e.pending.charCodeAt(i-1)===32;)i--;e.pending=e.pending.slice(0,i),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(u++;u?@[]^_`{|}~-".split("").forEach(function(e){eu[e.charCodeAt(0)]=1});function sl(e,t){let u=e.pos;const n=e.posMax;if(e.src.charCodeAt(u)!==92||(u++,u>=n))return!1;let r=e.src.charCodeAt(u);if(r===10){for(t||e.push("hardbreak","br",0),u++;u=55296&&r<=56319&&u+1=56320&&o<=57343&&(i+=e.src[u+1],u++)}const s="\\"+i;if(!t){const o=e.push("text_special","",0);r<256&&eu[r]!==0?o.content=i:o.content=s,o.markup=s,o.info="escape"}return e.pos=u+1,!0}function ol(e,t){let u=e.pos;if(e.src.charCodeAt(u)!==96)return!1;const r=u;u++;const i=e.posMax;for(;u=0;n--){const r=t[n];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;const i=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1,o=String.fromCharCode(r.marker),a=e.tokens[r.token];a.type=s?"strong_open":"em_open",a.tag=s?"strong":"em",a.nesting=1,a.markup=s?o+o:o,a.content="";const l=e.tokens[i.token];l.type=s?"strong_close":"em_close",l.tag=s?"strong":"em",l.nesting=-1,l.markup=s?o+o:o,l.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--)}}function dl(e){const t=e.tokens_meta,u=e.tokens_meta.length;fr(e,e.delimiters);for(let n=0;n=d)return!1;if(a=f,r=e.md.helpers.parseLinkDestination(e.src,f,e.posMax),r.ok){for(s=e.md.normalizeLink(r.str),e.md.validateLink(s)?f=r.pos:s="",a=f;f=d||e.src.charCodeAt(f)!==41)&&(l=!0),f++}if(l){if(typeof e.env.references>"u")return!1;if(f=0?n=e.src.slice(a,f++):f=h+1):f=h+1,n||(n=e.src.slice(p,h)),i=e.env.references[rt(n)],!i)return e.pos=c,!1;s=i.href,o=i.title}if(!t){e.pos=p,e.posMax=h;const m=e.push("link_open","a",1),x=[["href",s]];m.attrs=x,o&&x.push(["title",o]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=f,e.posMax=d,!0}function hl(e,t){let u,n,r,i,s,o,a,l,c="";const d=e.pos,p=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const h=e.pos+2,f=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(f<0)return!1;if(i=f+1,i=p)return!1;for(l=i,o=e.md.helpers.parseLinkDestination(e.src,i,e.posMax),o.ok&&(c=e.md.normalizeLink(o.str),e.md.validateLink(c)?i=o.pos:c=""),l=i;i=p||e.src.charCodeAt(i)!==41)return e.pos=d,!1;i++}else{if(typeof e.env.references>"u")return!1;if(i=0?r=e.src.slice(l,i++):i=f+1):i=f+1,r||(r=e.src.slice(h,f)),s=e.env.references[rt(r)],!s)return e.pos=d,!1;c=s.href,a=s.title}if(!t){n=e.src.slice(h,f);const m=[];e.md.inline.parse(n,e.md,e.env,m);const x=e.push("image","img",0),y=[["src",c],["alt",""]];x.attrs=y,x.children=m,x.content=n,a&&y.push(["title",a])}return e.pos=i,e.posMax=p,!0}const pl=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,ml=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function bl(e,t){let u=e.pos;if(e.src.charCodeAt(u)!==60)return!1;const n=e.pos,r=e.posMax;for(;;){if(++u>=r)return!1;const s=e.src.charCodeAt(u);if(s===60)return!1;if(s===62)break}const i=e.src.slice(n+1,u);if(ml.test(i)){const s=e.md.normalizeLink(i);if(!e.md.validateLink(s))return!1;if(!t){const o=e.push("link_open","a",1);o.attrs=[["href",s]],o.markup="autolink",o.info="auto";const a=e.push("text","",0);a.content=e.md.normalizeLinkText(i);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=i.length+2,!0}if(pl.test(i)){const s=e.md.normalizeLink("mailto:"+i);if(!e.md.validateLink(s))return!1;if(!t){const o=e.push("link_open","a",1);o.attrs=[["href",s]],o.markup="autolink",o.info="auto";const a=e.push("text","",0);a.content=e.md.normalizeLinkText(i);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=i.length+2,!0}return!1}function xl(e){return/^\s]/i.test(e)}function gl(e){return/^<\/a\s*>/i.test(e)}function yl(e){const t=e|32;return t>=97&&t<=122}function wl(e,t){if(!e.md.options.html)return!1;const u=e.posMax,n=e.pos;if(e.src.charCodeAt(n)!==60||n+2>=u)return!1;const r=e.src.charCodeAt(n+1);if(r!==33&&r!==63&&r!==47&&!yl(r))return!1;const i=e.src.slice(n).match(X0);if(!i)return!1;if(!t){const s=e.push("html_inline","",0);s.content=i[0],xl(s.content)&&e.linkLevel++,gl(s.content)&&e.linkLevel--}return e.pos+=i[0].length,!0}const kl=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,vl=/^&([a-z][a-z0-9]{1,31});/i;function _l(e,t){const u=e.pos,n=e.posMax;if(e.src.charCodeAt(u)!==38||u+1>=n)return!1;if(e.src.charCodeAt(u+1)===35){const i=e.src.slice(u).match(kl);if(i){if(!t){const s=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),o=e.push("text_special","",0);o.content=Wt(s)?nt(s):nt(65533),o.markup=i[0],o.info="entity"}return e.pos+=i[0].length,!0}}else{const i=e.src.slice(u).match(vl);if(i){const s=Qn(i[0]);if(s!==i[0]){if(!t){const o=e.push("text_special","",0);o.content=s,o.markup=i[0],o.info="entity"}return e.pos+=i[0].length,!0}}}return!1}function pr(e){const t={},u=e.length;if(!u)return;let n=0,r=-2;const i=[];for(let s=0;sa;l-=i[l]+1){const d=e[l];if(d.marker===o.marker&&d.open&&d.end<0){let p=!1;if((d.close||o.open)&&(d.length+o.length)%3===0&&(d.length%3!==0||o.length%3!==0)&&(p=!0),!p){const h=l>0&&!e[l-1].open?i[l-1]+1:0;i[s]=s-l+h,i[l]=h,o.open=!1,d.end=s,d.close=!1,c=-1,r=-2;break}}}c!==-1&&(t[o.marker][(o.open?3:0)+(o.length||0)%3]=c)}}function Cl(e){const t=e.tokens_meta,u=e.tokens_meta.length;pr(e.delimiters);for(let n=0;n0&&n++,r[t].type==="text"&&t+1=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;s||e.pos++,i[t]=e.pos},Ve.prototype.tokenize=function(e){const t=this.ruler.getRules(""),u=t.length,n=e.posMax,r=e.md.options.maxNesting;for(;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(s){if(e.pos>=n)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Ve.prototype.parse=function(e,t,u,n){const r=new this.State(e,t,u,n);this.tokenize(r);const i=this.ruler2.getRules(""),s=i.length;for(let o=0;o|$))",t.tpl_email_fuzzy="(^|"+u+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function nu(e){return Array.prototype.slice.call(arguments,1).forEach(function(u){u&&Object.keys(u).forEach(function(n){e[n]=u[n]})}),e}function at(e){return Object.prototype.toString.call(e)}function Dl(e){return at(e)==="[object String]"}function Tl(e){return at(e)==="[object Object]"}function Fl(e){return at(e)==="[object RegExp]"}function mr(e){return at(e)==="[object Function]"}function Sl(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const br={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Ll(e){return Object.keys(e||{}).reduce(function(t,u){return t||br.hasOwnProperty(u)},!1)}const Ml={"http:":{validate:function(e,t,u){const n=e.slice(t);return u.re.http||(u.re.http=new RegExp("^\\/\\/"+u.re.src_auth+u.re.src_host_port_strict+u.re.src_path,"i")),u.re.http.test(n)?n.match(u.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,u){const n=e.slice(t);return u.re.no_http||(u.re.no_http=new RegExp("^"+u.re.src_auth+"(?:localhost|(?:(?:"+u.re.src_domain+")\\.)+"+u.re.src_domain_root+")"+u.re.src_port+u.re.src_host_terminator+u.re.src_path,"i")),u.re.no_http.test(n)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:n.match(u.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,u){const n=e.slice(t);return u.re.mailto||(u.re.mailto=new RegExp("^"+u.re.src_email_name+"@"+u.re.src_host_strict,"i")),u.re.mailto.test(n)?n.match(u.re.mailto)[0].length:0}}},Il="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Bl="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Pl(e){e.__index__=-1,e.__text_cache__=""}function Rl(e){return function(t,u){const n=t.slice(u);return e.test(n)?n.match(e)[0].length:0}}function xr(){return function(e,t){t.normalize(e)}}function lt(e){const t=e.re=Al(e.__opts__),u=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||u.push(Il),u.push(t.src_xn),t.src_tlds=u.join("|");function n(o){return o.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(n(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(n(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(n(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(n(t.tpl_host_fuzzy_test),"i");const r=[];e.__compiled__={};function i(o,a){throw new Error('(LinkifyIt) Invalid schema "'+o+'": '+a)}Object.keys(e.__schemas__).forEach(function(o){const a=e.__schemas__[o];if(a===null)return;const l={validate:null,link:null};if(e.__compiled__[o]=l,Tl(a)){Fl(a.validate)?l.validate=Rl(a.validate):mr(a.validate)?l.validate=a.validate:i(o,a),mr(a.normalize)?l.normalize=a.normalize:a.normalize?i(o,a):l.normalize=xr();return}if(Dl(a)){r.push(o);return}i(o,a)}),r.forEach(function(o){e.__compiled__[e.__schemas__[o]]&&(e.__compiled__[o].validate=e.__compiled__[e.__schemas__[o]].validate,e.__compiled__[o].normalize=e.__compiled__[e.__schemas__[o]].normalize)}),e.__compiled__[""]={validate:null,normalize:xr()};const s=Object.keys(e.__compiled__).filter(function(o){return o.length>0&&e.__compiled__[o]}).map(Sl).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),Pl(e)}function zl(e,t){const u=e.__index__,n=e.__last_index__,r=e.__text_cache__.slice(u,n);this.schema=e.__schema__.toLowerCase(),this.index=u+t,this.lastIndex=n+t,this.raw=r,this.text=r,this.url=r}function ru(e,t){const u=new zl(e,t);return e.__compiled__[u.schema].normalize(u,e),u}function z(e,t){if(!(this instanceof z))return new z(e,t);t||Ll(e)&&(t=e,e={}),this.__opts__=nu({},br,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=nu({},Ml,e),this.__compiled__={},this.__tlds__=Bl,this.__tlds_replaced__=!1,this.re={},lt(this)}z.prototype.add=function(t,u){return this.__schemas__[t]=u,lt(this),this},z.prototype.set=function(t){return this.__opts__=nu(this.__opts__,t),this},z.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let u,n,r,i,s,o,a,l,c;if(this.re.schema_test.test(t)){for(a=this.re.schema_search,a.lastIndex=0;(u=a.exec(t))!==null;)if(i=this.testSchemaAt(t,u[2],a.lastIndex),i){this.__schema__=u[2],this.__index__=u.index+u[1].length,this.__last_index__=u.index+u[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=t.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l=0&&(r=t.match(this.re.email_fuzzy))!==null&&(s=r.index+r[1].length,o=r.index+r[0].length,(this.__index__<0||sthis.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=o))),this.__index__>=0},z.prototype.pretest=function(t){return this.re.pretest.test(t)},z.prototype.testSchemaAt=function(t,u,n){return this.__compiled__[u.toLowerCase()]?this.__compiled__[u.toLowerCase()].validate(t,n,this):0},z.prototype.match=function(t){const u=[];let n=0;this.__index__>=0&&this.__text_cache__===t&&(u.push(ru(this,n)),n=this.__last_index__);let r=n?t.slice(n):t;for(;this.test(r);)u.push(ru(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return u.length?u:null},z.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const u=this.re.schema_at_start.exec(t);if(!u)return null;const n=this.testSchemaAt(t,u[2],u[0].length);return n?(this.__schema__=u[2],this.__index__=u.index+u[1].length,this.__last_index__=u.index+u[0].length+n,ru(this,0)):null},z.prototype.tlds=function(t,u){return t=Array.isArray(t)?t:[t],u?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(n,r,i){return n!==i[r-1]}).reverse(),lt(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,lt(this),this)},z.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)},z.prototype.onCompile=function(){};const we=2147483647,U=36,iu=1,Oe=26,Vl=38,Ol=700,gr=72,yr=128,wr="-",Nl=/^xn--/,ql=/[^\0-\x7F]/,$l=/[\x2E\u3002\uFF0E\uFF61]/g,Hl={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},su=U-iu,Z=Math.floor,ou=String.fromCharCode;function ue(e){throw new RangeError(Hl[e])}function jl(e,t){const u=[];let n=e.length;for(;n--;)u[n]=t(e[n]);return u}function kr(e,t){const u=e.split("@");let n="";u.length>1&&(n=u[0]+"@",e=u[1]),e=e.replace($l,".");const r=e.split("."),i=jl(r,t).join(".");return n+i}function vr(e){const t=[];let u=0;const n=e.length;for(;u=55296&&r<=56319&&uString.fromCodePoint(...e),Zl=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:U},_r=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Cr=function(e,t,u){let n=0;for(e=u?Z(e/Ol):e>>1,e+=Z(e/t);e>su*Oe>>1;n+=U)e=Z(e/su);return Z(n+(su+1)*e/(e+Vl))},Er=function(e){const t=[],u=e.length;let n=0,r=yr,i=gr,s=e.lastIndexOf(wr);s<0&&(s=0);for(let o=0;o=128&&ue("not-basic"),t.push(e.charCodeAt(o));for(let o=s>0?s+1:0;o=u&&ue("invalid-input");const p=Zl(e.charCodeAt(o++));p>=U&&ue("invalid-input"),p>Z((we-n)/c)&&ue("overflow"),n+=p*c;const h=d<=i?iu:d>=i+Oe?Oe:d-i;if(pZ(we/f)&&ue("overflow"),c*=f}const l=t.length+1;i=Cr(n-a,l,a==0),Z(n/l)>we-r&&ue("overflow"),r+=Z(n/l),n%=l,t.splice(n++,0,r)}return String.fromCodePoint(...t)},Ar=function(e){const t=[];e=vr(e);const u=e.length;let n=yr,r=0,i=gr;for(const a of e)a<128&&t.push(ou(a));const s=t.length;let o=s;for(s&&t.push(wr);o=n&&cZ((we-r)/l)&&ue("overflow"),r+=(a-n)*l,n=a;for(const c of e)if(cwe&&ue("overflow"),c===n){let d=r;for(let p=U;;p+=U){const h=p<=i?iu:p>=i+Oe?Oe:p-i;if(d=0))try{t.hostname=Dr.toASCII(t.hostname)}catch{}return Ie(jt(t))}function Ql(e){const t=Ut(e,!0);if(t.hostname&&(!t.protocol||Tr.indexOf(t.protocol)>=0))try{t.hostname=Dr.toUnicode(t.hostname)}catch{}return be(jt(t),be.defaultChars+"%")}function V(e,t){if(!(this instanceof V))return new V(e,t);t||Xt(e)||(t=e||{},e="default"),this.inline=new Ve,this.block=new ot,this.core=new Qt,this.renderer=new ge,this.linkify=new z,this.validateLink=Wl,this.normalizeLink=Yl,this.normalizeLinkText=Ql,this.utils=l0,this.helpers=ut({},h0),this.options={},this.configure(e),t&&this.set(t)}V.prototype.set=function(e){return ut(this.options,e),this},V.prototype.configure=function(e){const t=this;if(Xt(e)){const u=e;if(e=Gl[u],!e)throw new Error('Wrong `markdown-it` preset "'+u+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(u){e.components[u].rules&&t[u].ruler.enableOnly(e.components[u].rules),e.components[u].rules2&&t[u].ruler2.enableOnly(e.components[u].rules2)}),this},V.prototype.enable=function(e,t){let u=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){u=u.concat(this[r].ruler.enable(e,!0))},this),u=u.concat(this.inline.ruler2.enable(e,!0));const n=e.filter(function(r){return u.indexOf(r)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this},V.prototype.disable=function(e,t){let u=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){u=u.concat(this[r].ruler.disable(e,!0))},this),u=u.concat(this.inline.ruler2.disable(e,!0));const n=e.filter(function(r){return u.indexOf(r)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this},V.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},V.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const u=new this.core.State(e,this,t);return this.core.process(u),u.tokens},V.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},V.prototype.parseInline=function(e,t){const u=new this.core.State(e,this,t);return u.inlineMode=!0,this.core.process(u),u.tokens},V.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},HTMLTextAreaElement.prototype.insertAtCaret=function(e){if(e=e||"",document.selection){this.focus();var t=document.selection.createRange();t.text=e}else if(this.selectionStart||this.selectionStart===0){var u=this.selectionStart,n=this.selectionEnd;let r=this.value.substring(0,u)+e+this.value.substring(n,this.value.length);window.updateTextareaContent(this,r),this.selectionStart=u+e.length,this.selectionEnd=u+e.length}else window.updateTextareaContent(this,this.value+e)},HTMLTextAreaElement.prototype.getCaretPosition=function(){if(document.selection){this.focus();var e=document.selection.createRange(),t=e.text.length;e.moveStart("character",-this.value.length);var u=e.text.length-t;return{start:u,end:u+t}}else return this.selectionStart||this.selectionStart===0?{start:this.selectionStart,end:this.selectionEnd}:{start:0,end:0}},HTMLTextAreaElement.prototype.setCaretPosition=function(e,t){if(this.setSelectionRange)this.focus(),this.setSelectionRange(e,t);else if(this.createTextRange){var u=this.createTextRange();u.collapse(!0),u.moveEnd("character",t),u.moveStart("character",e),u.select()}},HTMLTextAreaElement.prototype.restoreCaretPosition=function(){this.setCaretPosition(this.caret.start,this.caret.end)},HTMLTextAreaElement.prototype.trackCaretPosition=function(){const e=()=>{const t=this.getCaretPosition();this.caret.start=t.start,this.caret.end=t.end};this.addEventListener("keyup",e),this.addEventListener("mouseup",e),this.addEventListener("input",e),this.addEventListener("focus",e)},HTMLTextAreaElement.prototype.restoreCaretPosition=function(){this.caret&&typeof this.caret.start=="number"&&typeof this.caret.end=="number"&&this.setCaretPosition(this.caret.start,this.caret.end)},HTMLTextAreaElement.prototype.caret={start:0,end:0},window.addAnimatedGif=function(e,t){},window.loadDynamicScript=function(e,t){if(!document.getElementById(t)){const n=document.createElement("script");n.src=e,n.id=t,document.body.appendChild(n)}},window.updateTextareaContent=function(e,t){const u=e.scrollTop,n={start:e.selectionStart,end:e.selectionEnd};e.focus();const r=e.value;if(r===t)return;let i=0;const s=Math.min(r.length,t.length);for(;i{var u,n;this.state.setState("placeholder",!0),this.cursor.repositionCursor(this),(u=this.textarea)==null||u.focus(),(n=this.textarea)==null||n.trackCaretPosition()},10),window.dispatchEvent(new CustomEvent("markdownx-ready",{detail:this}))}}return Jl});