vendor: 17,410 bytes, line 1
1var bt=Object.defineProperty;var yt=(r,t,e)=>t in r?bt(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var j=(r,t,e)=>yt(r,typeof t!="symbol"?t+"":t,e);var o=(r=>(r[r.TYPE=3]="TYPE",r[r.LEVEL=12]="LEVEL",r[r.ATTRIBUTE=13]="ATTRIBUTE",r[r.BLOT=14]="BLOT",r[r.INLINE=7]="INLINE",r[r.BLOCK=11]="BLOCK",r[r.BLOCK_BLOT=10]="BLOCK_BLOT",r[r.INLINE_BLOT=6]="INLINE_BLOT",r[r.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",r[r.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",r[r.ANY=15]="ANY",r))(o||{});class f{constructor(t,e,s={}){this.attrName=t,this.keyName=e;const i=o.TYPE&o.ATTRIBUTE;this.scope=s.scope!=null?s.scope&o.LEVEL|i:o.ATTRIBUTE,s.whitelist!=null&&(this.whitelist=s.whitelist)}static keys(t){return Array.from(t.attributes).map(e=>e.name)}add(t,e){return this.canAdd(t,e)?(t.setAttribute(this.keyName,e),!0):!1}canAdd(t,e){return this.whitelist==null?!0:typeof e=="string"?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1}remove(t){t.removeAttribute(this.keyName)}value(t){const e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""}}class v extends Error{constructor(t){t="[Parchment] "+t,super(t),this.message=t,this.name=this.constructor.name}}const st=class z{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(t,e=!1){if(t==null)return null;if(this.blots.has(t))return this.blots.get(t)||null;if(e){let s=null;try{s=t.parentNode}catch{return null}return this.find(s,e)}return null}create(t,e,s){const i=this.query(e);if(i==null)throw new v(`Unable to create ${e} blot`);const a=i,n=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:a.create(s),l=new a(t,n,s);return z.blots.set(l.domNode,l),l}find(t,e=!1){return z.find(t,e)}query(t,e=o.ANY){let s;return typeof t=="string"?s=this.types[t]||this.attributes[t]:t instanceof Text||t.nodeType===Node.TEXT_NODE?s=this.types.text:typeof t=="number"?t&o.LEVEL&o.BLOCK?s=this.types.block:t&o.LEVEL&o.INLINE&&(s=this.types.inline):t instanceof Element&&((t.getAttribute("class")||"").split(/\s+/).some(i=>(s=this.classes[i],!!s)),s=s||this.tags[t.tagName]),s==null?null:"scope"in s&&e&o.LEVEL&s.scope&&e&o.TYPE&s.scope?s:null}register(...t){return t.map(e=>{const s="blotName"in e,i="attrName"in e;if(!s&&!i)throw new v("Invalid definition");if(s&&e.blotName==="abstract")throw new v("Cannot register abstract class");const a=s?e.blotName:i?e.attrName:void 0;return this.types[a]=e,i?typeof e.keyName=="string"&&(this.attributes[e.keyName]=e):s&&(e.className&&(this.classes[e.className]=e),e.tagName&&(Array.isArray(e.tagName)?e.tagName=e.tagName.map(n=>n.toUpperCase()):e.tagName=e.tagName.toUpperCase(),(Array.isArray(e.tagName)?e.tagName:[e.tagName]).forEach(n=>{(this.tags[n]==null||e.className==null)&&(this.tags[n]=e)}))),e})}};st.blots=new WeakMap;let O=st;function V(r,t){return(r.getAttribute("class")||"").split(/\s+/).filter(e=>e.indexOf(`${t}-`)===0)}class vt extends f{static keys(t){return(t.getAttribute("class")||"").split(/\s+/).map(e=>e.split("-").slice(0,-1).join("-"))}add(t,e){return this.canAdd(t,e)?(this.remove(t),t.classList.add(`${this.keyName}-${e}`),!0):!1}remove(t){V(t,this.keyName).forEach(e=>{t.classList.remove(e)}),t.classList.length===0&&t.removeAttribute("class")}value(t){const e=(V(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""}}const rt=vt;function S(r){const t=r.split("-"),e=t.slice(1).map(s=>s[0].toUpperCase()+s.slice(1)).join("");return t[0]+e}class At extends f{static keys(t){return(t.getAttribute("style")||"").split(";").map(e=>e.split(":")[0].trim())}add(t,e){return this.canAdd(t,e)?(t.style[S(this.keyName)]=e,!0):!1}remove(t){t.style[S(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){const e=t.style[S(this.keyName)];return this.canAdd(t,e)?e:""}}const it=At;class _t{constructor(t){this.attributes={},this.domNode=t,this.build()}attribute(t,e){e?t.add(this.domNode,e)&&(t.value(this.domNode)!=null?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])}build(){this.attributes={};const t=O.find(this.domNode);if(t==null)return;const e=f.keys(this.domNode),s=rt.keys(this.domNode),i=it.keys(this.domNode);e.concat(s).concat(i).forEach(a=>{const n=t.scroll.query(a,o.ATTRIBUTE);n instanceof f&&(this.attributes[n.attrName]=n)})}copy(t){Object.keys(this.attributes).forEach(e=>{const s=this.attributes[e].value(this.domNode);t.format(e,s)})}move(t){this.copy(t),Object.keys(this.attributes).forEach(e=>{this.attributes[e].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((t,e)=>(t[e]=this.attributes[e].value(this.domNode),t),{})}}const H=_t,at=class{constructor(t,e){this.scroll=t,this.domNode=e,O.blots.set(e,this),this.prev=null,this.next=null}static create(t){if(this.tagName==null)throw new v("Blot definition missing tagName");let e,s;return Array.isArray(this.tagName)?(typeof t=="string"?(s=t.toUpperCase(),parseInt(s,10).toString()===s&&(s=parseInt(s,10))):typeof t=="number"&&(s=t),typeof s=="number"?e=document.createElement(this.tagName[s-1]):s&&this.tagName.indexOf(s)>-1?e=document.createElement(s):e=document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e}get statics(){return this.constructor}attach(){}clone(){const t=this.domNode.cloneNode(!1);return this.scroll.create(t)}detach(){this.parent!=null&&this.parent.removeChild(this),O.blots.delete(this.domNode)}deleteAt(t,e){this.isolate(t,e).remove()}formatAt(t,e,s,i){const a=this.isolate(t,e);if(this.scroll.query(s,o.BLOT)!=null&&i)a.wrap(s,i);else if(this.scroll.query(s,o.ATTRIBUTE)!=null){const n=this.scroll.create(this.statics.scope);a.wrap(n),n.format(s,i)}}insertAt(t,e,s){const i=s==null?this.scroll.create("text",e):this.scroll.create(e,s),a=this.split(t);this.parent.insertBefore(i,a||void 0)}isolate(t,e){const s=this.split(t);if(s==null)throw new Error("Attempt to isolate at end");return s.split(e),s}length(){return 1}offset(t=this.parent){return this.parent==null||this===t?0:this.parent.children.offset(this)+this.parent.offset(t)}optimize(t){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(t,e){const s=typeof t=="string"?this.scroll.create(t,e):t;return this.parent!=null&&(this.parent.insertBefore(s,this.next||void 0),this.remove()),s}split(t,e){return t===0?this:this.next}update(t,e){}wrap(t,e){const s=typeof t=="string"?this.scroll.create(t,e):t;if(this.parent!=null&&this.parent.insertBefore(s,this.next||void 0),typeof s.appendChild!="function")throw new v(`Cannot wrap ${t}`);return s.appendChild(this),s}};at.blotName="abstract";let nt=at;const ot=class extends nt{static value(t){return!0}index(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1}position(t,e){let s=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return t>0&&(s+=1),[this.parent.domNode,s]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};ot.scope=o.INLINE_BLOT;let Et=ot;const T=Et;class xt{constructor(){this.head=null,this.tail=null,this.length=0}append(...t){if(this.insertBefore(t[0],null),t.length>1){const e=t.slice(1);this.append(...e)}}at(t){const e=this.iterator();let s=e();for(;s&&t>0;)t-=1,s=e();return s}contains(t){const e=this.iterator();let s=e();for(;s;){if(s===t)return!0;s=e()}return!1}indexOf(t){const e=this.iterator();let s=e(),i=0;for(;s;){if(s===t)return i;i+=1,s=e()}return-1}insertBefore(t,e){t!=null&&(this.remove(t),t.next=e,e!=null?(t.prev=e.prev,e.prev!=null&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):this.tail!=null?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)}offset(t){let e=0,s=this.head;for(;s!=null;){if(s===t)return e;e+=s.length(),s=s.next}return-1}remove(t){this.contains(t)&&(t.prev!=null&&(t.prev.next=t.next),t.next!=null&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)}iterator(t=this.head){return()=>{const e=t;return t!=null&&(t=t.next),e}}find(t,e=!1){const s=this.iterator();let i=s();for(;i;){const a=i.length();if(t<a||e&&t===a&&(i.next==null||i.next.length()!==0))return[i,t];t-=a,i=s()}return[null,0]}forEach(t){const e=this.iterator();let s=e();for(;s;)t(s),s=e()}forEachAt(t,e,s){if(e<=0)return;const[i,a]=this.find(t);let n=t-a;const l=this.iterator(i);let h=l();for(;h&&n<t+e;){const c=h.length();t>n?s(h,t-n,Math.min(e,n+c-t)):s(h,0,Math.min(c,t+e-n)),n+=c,h=l()}}map(t){return this.reduce((e,s)=>(e.push(t(s)),e),[])}reduce(t,e){const s=this.iterator();let i=s();for(;i;)e=t(e,i),i=s();return e}}function X(r,t){const e=t.find(r);if(e)return e;try{return t.create(r)}catch{const s=t.create(o.INLINE);return Array.from(r.childNodes).forEach(i=>{s.domNode.appendChild(i)}),r.parentNode&&r.parentNode.replaceChild(s.domNode,r),s.attach(),s}}const lt=class d extends nt{constructor(t,e){super(t,e),this.uiNode=null,this.build()}appendChild(t){this.insertBefore(t)}attach(){super.attach(),this.children.forEach(t=>{t.attach()})}attachUI(t){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=t,d.uiClass&&this.uiNode.classList.add(d.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new xt,Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode).reverse().forEach(t=>{try{const e=X(t,this.scroll);this.insertBefore(e,this.children.head||void 0)}catch(e){if(e instanceof v)return;throw e}})}deleteAt(t,e){if(t===0&&e===this.length())return this.remove();this.children.forEachAt(t,e,(s,i,a)=>{s.deleteAt(i,a)})}descendant(t,e=0){const[s,i]=this.children.find(e);return t.blotName==null&&t(s)||t.blotName!=null&&s instanceof t?[s,i]:s instanceof d?s.descendant(t,i):[null,-1]}descendants(t,e=0,s=Number.MAX_VALUE){let i=[],a=s;return this.children.forEachAt(e,s,(n,l,h)=>{(t.blotName==null&&t(n)||t.blotName!=null&&n instanceof t)&&i.push(n),n instanceof d&&(i=i.concat(n.descendants(t,l,a))),a-=h}),i}detach(){this.children.forEach(t=>{t.detach()}),super.detach()}enforceAllowedChildren(){let t=!1;this.children.forEach(e=>{t||this.statics.allowedChildren.some(s=>e instanceof s)||(e.statics.scope===o.BLOCK_BLOT?(e.next!=null&&this.splitAfter(e),e.prev!=null&&this.splitAfter(e.prev),e.parent.unwrap(),t=!0):e instanceof d?e.unwrap():e.remove())})}formatAt(t,e,s,i){this.children.forEachAt(t,e,(a,n,l)=>{a.formatAt(n,l,s,i)})}insertAt(t,e,s){const[i,a]=this.children.find(t);if(i)i.insertAt(a,e,s);else{const n=s==null?this.scroll.create("text",e):this.scroll.create(e,s);this.appendChild(n)}}insertBefore(t,e){t.parent!=null&&t.parent.children.remove(t);let s=null;this.children.insertBefore(t,e||null),t.parent=this,e!=null&&(s=e.domNode),(this.domNode.parentNode!==t.domNode||this.domNode.nextSibling!==s)&&this.domNode.insertBefore(t.domNode,s),t.attach()}length(){return this.children.reduce((t,e)=>t+e.length(),0)}moveChildren(t,e){this.children.forEach(s=>{t.insertBefore(s,e)})}optimize(t){if(super.optimize(t),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const e=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(e)}else this.remove()}path(t,e=!1){const[s,i]=this.children.find(t,e),a=[[this,t]];return s instanceof d?a.concat(s.path(i,e)):(s!=null&&a.push([s,i]),a)}removeChild(t){this.children.remove(t)}replaceWith(t,e){const s=typeof t=="string"?this.scroll.create(t,e):t;return s instanceof d&&this.moveChildren(s),super.replaceWith(s)}split(t,e=!1){if(!e){if(t===0)return this;if(t===this.length())return this.next}const s=this.clone();return this.parent&&this.parent.insertBefore(s,this.next||void 0),this.children.forEachAt(t,this.length(),(i,a,n)=>{const l=i.split(a,e);l!=null&&s.appendChild(l)}),s}splitAfter(t){const e=this.clone();for(;t.next!=null;)e.appendChild(t.next);return this.parent&&this.parent.insertBefore(e,this.next||void 0),e}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(t,e){const s=[],i=[];t.forEach(a=>{a.target===this.domNode&&a.type==="childList"&&(s.push(...a.addedNodes),i.push(...a.removedNodes))}),i.forEach(a=>{if(a.parentNode!=null&&a.tagName!=="IFRAME"&&document.body.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const n=this.scroll.find(a);n!=null&&(n.domNode.parentNode==null||n.domNode.parentNode===this.domNode)&&n.detach()}),s.filter(a=>a.parentNode===this.domNode&&a!==this.uiNode).sort((a,n)=>a===n?0:a.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(a=>{let n=null;a.nextSibling!=null&&(n=this.scroll.find(a.nextSibling));const l=X(a,this.scroll);(l.next!==n||l.next==null)&&(l.parent!=null&&l.parent.removeChild(this),this.insertBefore(l,n||void 0))}),this.enforceAllowedChildren()}};lt.uiClass="";let Tt=lt;const p=Tt;function Bt(r,t){if(Object.keys(r).length!==Object.keys(t).length)return!1;for(const e in r)if(r[e]!==t[e])return!1;return!0}const N=class g extends p{static create(t){return super.create(t)}static formats(t,e){const s=e.query(g.blotName);if(!(s!=null&&t.tagName===s.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new H(this.domNode)}format(t,e){if(t===this.statics.blotName&&!e)this.children.forEach(s=>{s instanceof g||(s=s.wrap(g.blotName,!0)),this.attributes.copy(s)}),this.unwrap();else{const s=this.scroll.query(t,o.INLINE);if(s==null)return;s instanceof f?this.attributes.attribute(s,e):e&&(t!==this.statics.blotName||this.formats()[t]!==e)&&this.replaceWith(t,e)}}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return e!=null&&(t[this.statics.blotName]=e),t}formatAt(t,e,s,i){this.formats()[s]!=null||this.scroll.query(s,o.ATTRIBUTE)?this.isolate(t,e).format(s,i):super.formatAt(t,e,s,i)}optimize(t){super.optimize(t);const e=this.formats();if(Object.keys(e).length===0)return this.unwrap();const s=this.next;s instanceof g&&s.prev===this&&Bt(e,s.formats())&&(s.moveChildren(this),s.remove())}replaceWith(t,e){const s=super.replaceWith(t,e);return this.attributes.copy(s),s}update(t,e){super.update(t,e),t.some(s=>s.target===this.domNode&&s.type==="attributes")&&this.attributes.build()}wrap(t,e){const s=super.wrap(t,e);return s instanceof g&&this.attributes.move(s),s}};N.allowedChildren=[N,T],N.blotName="inline",N.scope=o.INLINE_BLOT,N.tagName="SPAN";let Ct=N;const K=Ct,b=class M extends p{static create(t){return super.create(t)}static formats(t,e){const s=e.query(M.blotName);if(!(s!=null&&t.tagName===s.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new H(this.domNode)}format(t,e){const s=this.scroll.query(t,o.BLOCK);s!=null&&(s instanceof f?this.attributes.attribute(s,e):t===this.statics.blotName&&!e?this.replaceWith(M.blotName):e&&(t!==this.statics.blotName||this.formats()[t]!==e)&&this.replaceWith(t,e))}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return e!=null&&(t[this.statics.blotName]=e),t}formatAt(t,e,s,i){this.scroll.query(s,o.BLOCK)!=null?this.format(s,i):super.formatAt(t,e,s,i)}insertAt(t,e,s){if(s==null||this.scroll.query(e,o.INLINE)!=null)super.insertAt(t,e,s);else{const i=this.split(t);if(i!=null){const a=this.scroll.create(e,s);i.parent.insertBefore(a,i)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(t,e){const s=super.replaceWith(t,e);return this.attributes.copy(s),s}update(t,e){super.update(t,e),t.some(s=>s.target===this.domNode&&s.type==="attributes")&&this.attributes.build()}};b.blotName="block",b.scope=o.BLOCK_BLOT,b.tagName="P",b.allowedChildren=[K,b,T];let Ot=b;const R=Ot,D=class extends p{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(t,e){super.deleteAt(t,e),this.enforceAllowedChildren()}formatAt(t,e,s,i){super.formatAt(t,e,s,i),this.enforceAllowedChildren()}insertAt(t,e,s){super.insertAt(t,e,s),this.enforceAllowedChildren()}optimize(t){super.optimize(t),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};D.blotName="container",D.scope=o.BLOCK_BLOT;let wt=D;const ht=wt;class Lt extends T{static formats(t,e){}format(t,e){super.formatAt(0,this.length(),t,e)}formatAt(t,e,s,i){t===0&&e===this.length()?this.format(s,i):super.formatAt(t,e,s,i)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const L=Lt,It={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},Pt=100,y=class extends p{constructor(t,e){super(null,e),this.registry=t,this.scroll=this,this.build(),this.observer=new MutationObserver(s=>{this.update(s)}),this.observer.observe(this.domNode,It),this.attach()}create(t,e){return this.registry.create(this,t,e)}find(t,e=!1){const s=this.registry.find(t,e);
1return s?s.scroll===this?s:e?this.find(s.scroll.domNode.parentNode,!0):null:null}query(t,e=o.ANY){return this.registry.query(t,e)}register(...t){return this.registry.register(...t)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(t,e){this.update(),t===0&&e===this.length()?this.children.forEach(s=>{s.remove()}):super.deleteAt(t,e)}formatAt(t,e,s,i){this.update(),super.formatAt(t,e,s,i)}insertAt(t,e,s){this.update(),super.insertAt(t,e,s)}optimize(t=[],e={}){super.optimize(e);const s=e.mutationsMap||new WeakMap;let i=Array.from(this.observer.takeRecords());for(;i.length>0;)t.push(i.pop());const a=(h,c=!0)=>{h==null||h===this||h.domNode.parentNode!=null&&(s.has(h.domNode)||s.set(h.domNode,[]),c&&a(h.parent))},n=h=>{s.has(h.domNode)&&(h instanceof p&&h.children.forEach(n),s.delete(h.domNode),h.optimize(e))};let l=t;for(let h=0;l.length>0;h+=1){if(h>=Pt)throw new Error("[Parchment] Maximum optimize iterations reached");for(l.forEach(c=>{const B=this.find(c.target,!0);B!=null&&(B.domNode===c.target&&(c.type==="childList"?(a(this.find(c.previousSibling,!1)),Array.from(c.addedNodes).forEach(Nt=>{const k=this.find(Nt,!1);a(k,!1),k instanceof p&&k.children.forEach(gt=>{a(gt,!1)})})):c.type==="attributes"&&a(B.prev)),a(B))}),this.children.forEach(n),l=Array.from(this.observer.takeRecords()),i=l.slice();i.length>0;)t.push(i.pop())}}update(t,e={}){t=t||this.observer.takeRecords();const s=new WeakMap;t.map(i=>{const a=this.find(i.target,!0);return a==null?null:s.has(a.domNode)?(s.get(a.domNode).push(i),null):(s.set(a.domNode,[i]),a)}).forEach(i=>{i!=null&&i!==this&&s.has(i.domNode)&&i.update(s.get(i.domNode)||[],e)}),e.mutationsMap=s,s.has(this.domNode)&&super.update(s.get(this.domNode),e),this.optimize(t,e)}};y.blotName="scroll",y.defaultChild=R,y.allowedChildren=[R,ht],y.scope=o.BLOCK_BLOT,y.tagName="DIV";let kt=y;const jt=kt,U=class ct extends T{static create(t){return document.createTextNode(t)}static value(t){return t.data}constructor(t,e){super(t,e),this.text=this.statics.value(this.domNode)}deleteAt(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)}index(t,e){return this.domNode===t?e:-1}insertAt(t,e,s){s==null?(this.text=this.text.slice(0,t)+e+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,e,s)}length(){return this.text.length}optimize(t){super.optimize(t),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof ct&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,e=!1){return[this.domNode,t]}split(t,e=!1){if(!e){if(t===0)return this;if(t===this.length())return this.next}const s=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(s,this.next||void 0),this.text=this.statics.value(this.domNode),s}update(t,e){t.some(s=>s.type==="characterData"&&s.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};U.blotName="text",U.scope=o.INLINE_BLOT;let St=U;const ut=St,rs=Object.freeze(Object.defineProperty({__proto__:null,Attributor:f,AttributorStore:H,BlockBlot:R,ClassAttributor:rt,ContainerBlot:ht,EmbedBlot:L,InlineBlot:K,LeafBlot:T,ParentBlot:p,Registry:O,Scope:o,ScrollBlot:jt,StyleAttributor:it,TextBlot:ut},Symbol.toStringTag,{value:"Module"}));class W extends L{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}W.blotName="break";W.tagName="BR";let G=class extends ut{};function as(r){return r.replace(/[&<>"']/g,t=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[t])}const u=class u extends K{static compare(t,e){const s=u.order.indexOf(t),i=u.order.indexOf(e);return s>=0||i>=0?s-i:t===e?0:t<e?-1:1}formatAt(t,e,s,i){if(u.compare(this.statics.blotName,s)<0&&this.scroll.query(s,o.BLOT)){const a=this.isolate(t,e);i&&a.wrap(s,i)}else super.formatAt(t,e,s,i)}optimize(t){if(super.optimize(t),this.parent instanceof u&&u.compare(this.statics.blotName,this.parent.statics.blotName)>0){const e=this.parent.isolate(this.offset(),this.length());this.moveChildren(e),e.wrap(this)}}};j(u,"allowedChildren",[u,W,L,G]),j(u,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let J=u;var $t=typeof global=="object"&&global&&global.Object===Object&&global,zt=typeof self=="object"&&self&&self.Object===Object&&self,q=$t||zt||Function("return this")(),w=q.Symbol,dt=Object.prototype,Mt=dt.hasOwnProperty,Rt=dt.toString,E=w?w.toStringTag:void 0;function Dt(r){var t=Mt.call(r,E),e=r[E];try{r[E]=void 0;var s=!0}catch{}var i=Rt.call(r);return s&&(t?r[E]=e:delete r[E]),i}var Ut=Object.prototype,Gt=Ut.toString;function Ft(r){return Gt.call(r)}
vendor: 5,090 bytes, line 1
1var Ht="[object Null]",Kt="[object Undefined]",Z=w?w.toStringTag:void 0;function Wt(r){return r==null?r===void 0?Kt:Ht:Z&&Z in Object(r)?Dt(r):Ft(r)}function qt(r){return r!=null&&typeof r=="object"}var ns=Array.isArray;function pt(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}function ft(r){return r}var Yt="[object AsyncFunction]",Vt="[object Function]",Xt="[object GeneratorFunction]",Jt="[object Proxy]";function mt(r){if(!pt(r))return!1;var t=Wt(r);return t==Vt||t==Xt||t==Yt||t==Jt}var $=q["__core-js_shared__"],Q=function(){var r=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function Zt(r){return!!Q&&Q in r}var Qt=Function.prototype,te=Qt.toString;function ee(r){if(r!=null){try{return te.call(r)}catch{}try{return r+""}catch{}}return""}var se=/[\\^$.*+?()[\]{}|]/g,re=/^\[object .+?Constructor\]$/,ie=Function.prototype,ae=Object.prototype,ne=ie.toString,oe=ae.hasOwnProperty,le=RegExp("^"+ne.call(oe).replace(se,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function he(r){if(!pt(r)||Zt(r))return!1;var t=mt(r)?le:re;return t.test(ee(r))}function ce(r,t){return r==null?void 0:r[t]}function Y(r,t){var e=ce(r,t);return he(e)?e:void 0}function ue(r,t,e){switch(e.length){case 0:return r.call(t);case 1:return r.call(t,e[0]);case 2:return r.call(t,e[0],e[1]);case 3:return r.call(t,e[0],e[1],e[2])}return r.apply(t,e)}var de=800,pe=16,fe=Date.now;function me(r){var t=0,e=0;return function(){var s=fe(),i=pe-(s-e);if(e=s,i>0){if(++t>=de)return arguments[0]}else t=0;return r.apply(void 0,arguments)}}function Ne(r){return function(){return r}}var tt=function(){try{var r=Y(Object,"defineProperty");return r({},"",{}),r}catch{}}(),ge=tt?function(r,t){return tt(r,"toString",{configurable:!0,enumerable:!1,value:Ne(t),writable:!0})}:ft,be=me(ge);function ye(r,t){return r===t||r!==r&&t!==t}var et=Math.max;function ve(r,t,e){return t=et(t===void 0?r.length-1:t,0),function(){for(var s=arguments,i=-1,a=et(s.length-t,0),n=Array(a);++i<a;)n[i]=s[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=s[i];return l[t]=e(n),ue(r,this,l)}}function os(r,t){return be(ve(r,t,ft),r+"")}var Ae=9007199254740991;function _e(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=Ae}function Ee(r){return r!=null&&_e(r.length)&&!mt(r)}var x=Y(Object,"create");function xe(){this.__data__=x?x(null):{},this.size=0}function Te(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}var Be="__lodash_hash_undefined__",Ce=Object.prototype,Oe=Ce.hasOwnProperty;function we(r){var t=this.__data__;if(x){var e=t[r];return e===Be?void 0:e}return Oe.call(t,r)?t[r]:void 0}var Le=Object.prototype,Ie=Le.hasOwnProperty;function Pe(r){var t=this.__data__;return x?t[r]!==void 0:Ie.call(t,r)}var ke="__lodash_hash_undefined__";function je(r,t){var e=this.__data__;return this.size+=this.has(r)?0:1,e[r]=x&&t===void 0?ke:t,this}function m(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var s=r[t];this.set(s[0],s[1])}}m.prototype.clear=xe;m.prototype.delete=Te;m.prototype.get=we;m.prototype.has=Pe;m.prototype.set=je;function Se(){this.__data__=[],this.size=0}function I(r,t){for(var e=r.length;e--;)if(ye(r[e][0],t))return e;return-1}var $e=Array.prototype,ze=$e.splice;function Me(r){var t=this.__data__,e=I(t,r);if(e<0)return!1;var s=t.length-1;return e==s?t.pop():ze.call(t,e,1),--this.size,!0}function Re(r){var t=this.__data__,e=I(t,r);return e<0?void 0:t[e][1]}function De(r){return I(this.__data__,r)>-1}function Ue(r,t){var e=this.__data__,s=I(e,r);return s<0?(++this.size,e.push([r,t])):e[s][1]=t,this}function A(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var s=r[t];this.set(s[0],s[1])}}A.prototype.clear=Se;A.prototype.delete=Me;A.prototype.get=Re;A.prototype.has=De;A.prototype.set=Ue;var Ge=Y(q,"Map");function Fe(){this.size=0,this.__data__={hash:new m,map:new(Ge||A),string:new m}}function He(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}function P(r,t){var e=r.__data__;return He(t)?e[typeof t=="string"?"string":"hash"]:e.map}function Ke(r){var t=P(this,r).delete(r);return this.size-=t?1:0,t}function We(r){return P(this,r).get(r)}function qe(r){return P(this,r).has(r)}function Ye(r,t){var e=P(this,r),s=e.size;return e.set(r,t),this.size+=e.size==s?0:1,this}function _(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var s=r[t];this.set(s[0],s[1])}}_.prototype.clear=Fe;_.prototype.delete=Ke;_.prototype.get=We;_.prototype.has=qe;_.prototype.set=Ye;var Ve="__lodash_hash_undefined__";function Xe(r){return this.__data__.set(r,Ve),this}function Je(r){return this.__data__.has(r)}function F(r){var t=-1,e=r==null?0:r.length;for(this.__data__=new _;++t<e;)this.add(r[t])}F.prototype.add=F.prototype.push=Xe;F.prototype.has=Je;function ls(r,t){return r.has(t)}function hs(r){return qt(r)&&Ee(r)}const C="\uFEFF";class cs extends L{constructor(t,e){super(t,e),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEac
1h(s=>{this.contentNode.appendChild(s)}),this.leftGuard=document.createTextNode(C),this.rightGuard=document.createTextNode(C),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(t,e){return t===this.leftGuard?0:t===this.rightGuard?1:super.index(t,e)}restore(t){let e=null,s;const i=t.data.split(C).join("");if(t===this.leftGuard)if(this.prev instanceof G){const a=this.prev.length();this.prev.insertAt(a,i),e={startNode:this.prev.domNode,startOffset:a+i.length}}else s=document.createTextNode(i),this.parent.insertBefore(this.scroll.create(s),this),e={startNode:s,startOffset:i.length};else t===this.rightGuard&&(this.next instanceof G?(this.next.insertAt(0,i),e={startNode:this.next.domNode,startOffset:i.length}):(s=document.createTextNode(i),this.parent.insertBefore(this.scroll.create(s),this.next),e={startNode:s,startOffset:i.length}));return t.data=C,e}update(t,e){t.forEach(s=>{if(s.type==="characterData"&&(s.target===this.leftGuard||s.target===this.rightGuard)){const i=this.restore(s.target);i&&(e.range=i)}})}}export{H as A,W as B,ht as C,rt as D,cs as E,it as F,ut as G,J as I,T as L,Ge as M,p as P,O as R,o as S,G as T,L as a,R as b,Ee as c,tt as d,ye as e,os as f,Y as g,qt as h,pt as i,Wt as j,_e as k,$t as l,ns as m,A as n,_ as o,w as p,F as q,q as r,ls as s,ee as t,hs as u,mt as v,as as w,rs as x,jt as y,f as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.