PageSourceSearch

https://coreframework.com/_next/static/chunks/18edba26-0c345b946d1e0009.js

js coreframework.com collected 2026-10-02 05:18:19 UTC 36,886 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="db8b98ff-9f3d-4b21-8a47-5f9fc6b78740",e._sentryDebugIdIdentifier="sentry-dbid-db8b98ff-9f3d-4b21-8a47-5f9fc6b78740")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8368],{21797:function(e,t,n){n.d(t,{EH:function(){return eM},p:function(){return eO}});var o=n(51946),r=n(33837),i=n(88814);let l=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},s=function(e,t,n,o){return n&&(c(e,t,n,o,-1)||c(e,t,n,o,1))},a=/^(img|br|input|textarea|hr)$/i;function c(e,t,n,o,r){for(;;){if(e==n&&t==o)return!0;if(t==(r<0?0:d(e))){let n=e.parentNode;if(!n||1!=n.nodeType||f(e)||a.test(e.nodeName)||"false"==e.contentEditable)return!1;t=l(e)+(r<0?0:1),e=n}else{if(1!=e.nodeType||"false"==(e=e.childNodes[t+(r<0?-1:0)]).contentEditable)return!1;t=r<0?d(e):0}}}function d(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function f(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}let u=function(e){return e.focusNode&&s(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function p(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}let h="undefined"!=typeof navigator?navigator:null,m="undefined"!=typeof document?document:null,g=h&&h.userAgent||"",b=/Edge\/(\d+)/.exec(g),v=/MSIE \d/.exec(g),y=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(g),w=!!(v||y||b),C=v?document.documentMode:y?+y[1]:b?+b[1]:0,S=!w&&/gecko\/(\d+)/i.test(g);S&&(/Firefox\/(\d+)/.exec(g)||[0,0])[1];let D=!w&&/Chrome\/(\d+)/.exec(g),N=!!D,T=D?+D[1]:0,k=!w&&!!h&&/Apple Computer/.test(h.vendor),x=k&&(/Mobile\/\w+/.test(g)||!!h&&h.maxTouchPoints>2),E=x||!!h&&/Mac/.test(h.platform),O=!!h&&/Win/.test(h.platform),A=/Android \d/.test(g),P=!!m&&"webkitFontSmoothing"in m.documentElement.style,M=P?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,q=function(e){e&&(this.nodeName=e)};function I(e){return e.editable?e.hasFocus():function(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch(e){return!1}}(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function K(e,t=!1){let n=e.state.selection;if(function(e,t){if(t instanceof o.qv){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(z(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else z(e)}(e,n),I(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&N){let t=e.domSelectionRange(),n=e.domObserver.currentSelection;if(t.anchorNode&&n.anchorNode&&s(t.anchorNode,t.anchorOffset,n.anchorNode,n.anchorOffset)){e.input.mouseDown.delayedSelectionSync=!0,e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper){let t,n,o,r;t=e.domSelection(),n=document.createRange(),(r="IMG"==(o=e.cursorWrapper.dom).nodeName)?n.setEnd(o.parentNode,l(o)+1):n.setEnd(o,0),n.collapse(!1),t.removeAllRanges(),t.addRange(n),!r&&!e.state.selection.visible&&w&&C<=11&&(o.disabled=!0,o.disabled=!1)}else{let r,i,l,s,{anchor:a,head:c}=n,d,f;!R||n instanceof o.Bs||(n.$from.parent.inlineContent||(d=V(e,n.from)),n.empty||n.$from.parent.inlineContent||(f=V(e,n.to))),e.docView.setSelection(a,c,e.root,t),R&&(d&&$(d),f&&$(f)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&((r=e.dom.ownerDocument).removeEventListener("selectionchange",e.input.hideSelectionGuard),l=(i=e.domSelectionRange()).anchorNode,s=i.anchorOffset,r.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{(i.anchorNode!=l||i.anchorOffset!=s)&&(r.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!I(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}q.prototype=Object.create(null),new q;let R=k||N&&T<63;function V(e,t){let{node:n,offset:o}=e.docView.domFromPos(t,0),r=o<n.childNodes.length?n.childNodes[o]:null,i=o?n.childNodes[o-1]:null;if(k&&r&&"false"==r.contentEditable)return B(r);if((!r||"false"==r.contentEditable)&&(!i||"false"==i.contentEditable)){if(r)return B(r);if(i)return B(i)}}function B(e){return e.contentEditable="true",k&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function $(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function z(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function L(e,t,n,r){return e.someProp("createSelectionBetween",o=>o(e,t,n))||o.Bs.between(t,n,r)}function F(e,t){let{$anchor:n,$head:r}=e.selection,i=t>0?n.max(r):n.min(r),l=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return l&&o.Y1.findFrom(l,t)}function Y(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function H(e,t,n){let r=e.state.selection;if(r instanceof o.Bs){if(n.indexOf("s")>-1){let{$head:n}=r,i=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let l=e.state.doc.resolve(n.pos+i.nodeSize*(t<0?-1:1));return Y(e,new o.Bs(r.$anchor,l))}if(!r.empty)return!1;if(e.endOfTextblock(t>0?"forward":"backward")){let n=F(e.state,t);return!!n&&n instanceof o.qv&&Y(e,n)}if(!(E&&n.indexOf("m")>-1)){let n=r.$head,i=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter,l;if(!i||i.isText)return!1;let s=t<0?n.pos-i.nodeSize:n.pos;return!!(i.isAtom||(l=e.docView.descAt(s))&&!l.contentDOM)&&(o.qv.isSelectable(i)?Y(e,new o.qv(t<0?e.state.doc.resolve(n.pos-i.nodeSize):n)):!!P&&Y(e,new o.Bs(e.state.doc.resolve(t<0?s:s+i.nodeSize))))}}else{if(r instanceof o.qv&&r.node.isInline)return Y(e,new o.Bs(t>0?r.$to:r.$from));let n=F(e.state,t);return!!n&&Y(e,n)}}function W(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function _(e,t){let n=e.pmViewDesc;return n&&0==n.size&&(t<0||e.nextSibling||"BR"!=e.nodeName)}function j(e,t){return t<0?function(e){let t=e.domSelectionRange(),n=t.focusNode,o=t.focusOffset;if(!n)return;let r,i,s=!1;for(S&&1==n.nodeType&&o<W(n)&&_(n.childNodes[o],-1)&&(s=!0);;)if(o>0){if(1!=n.nodeType)break;{let e=n.childNodes[o-1];if(_(e,-1))r=n,i=--o;else if(3==e.nodeType)o=(n=e).nodeValue.length;else break}}else if(G(n))break;else{let t=n.previousSibling;for(;t&&_(t,-1);)r=n.parentNode,i=l(t),t=t.previousSibling;if(t)o=W(n=t);else{if((n=n.parentNode)==e.dom)break;o=0}}s?U(e,n,o):r&&U(e,r,i)}(e):function(e){let t,n,o=e.domSelectionRange(),r=o.focusNode,i=o.focusOffset;if(!r)return;let s=W(r);for(;;)if(i<s){if(1!=r.nodeType)break;if(_(r.childNodes[i],1))t=r,n=++i;else break}else if(G(r))break;else{let o=r.nextSibling;for(;o&&_(o,1);)t=o.parentNode,n=l(o)+1,o=o.nextSibling;if(o)i=0,s=W(r=o);else{if((r=r.parentNode)==e.dom)break;i=s=0}}
vendor: 4,538 bytes, line 1
1t&&U(e,t,n)}(e)}function G(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function U(e,t,n){if(3!=t.nodeType){let e,o;(o=function(e,t){for(;e&&t==e.childNodes.length&&!f(e);)t=l(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;e=n,t=0}}(t,n))?(t=o,n=0):(e=function(e,t){for(;e&&!t&&!f(e);)t=l(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;t=(e=n).childNodes.length}}(t,n))&&(t=e,n=e.nodeValue.length)}let o=e.domSelection();if(u(o)){let e=document.createRange();e.setEnd(t,n),e.setStart(t,n),o.removeAllRanges(),o.addRange(e)}else o.extend&&o.extend(t,n);e.domObserver.setCurSelection();let{state:r}=e;setTimeout(()=>{e.state==r&&K(e)},50)}function X(e,t){let n=e.state.doc.resolve(t);if(!(N||O)&&n.parent.inlineContent){let o=e.coordsAtPos(t);if(t>n.start()){let n=e.coordsAtPos(t-1),r=(n.top+n.bottom)/2;if(r>o.top&&r<o.bottom&&Math.abs(n.left-o.left)>1)return n.left<o.left?"ltr":"rtl"}if(t<n.end()){let n=e.coordsAtPos(t+1),r=(n.top+n.bottom)/2;if(r>o.top&&r<o.bottom&&Math.abs(n.left-o.left)>1)return n.left>o.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(e.dom).direction?"rtl":"ltr"}function J(e,t,n){let r=e.state.selection;if(r instanceof o.Bs&&!r.empty||n.indexOf("s")>-1||E&&n.indexOf("m")>-1)return!1;let{$from:i,$to:l}=r;if(!i.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let n=F(e.state,t);if(n&&n instanceof o.qv)return Y(e,n)}if(!i.parent.inlineContent){let n=t<0?i:l,s=r instanceof o.C1?o.Y1.near(n,t):o.Y1.findFrom(n,t);return!!s&&Y(e,s)}return!1}function Q(e,t){if(!(e.state.selection instanceof o.Bs))return!0;let{$head:n,$anchor:r,empty:i}=e.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let l=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(l&&!l.isText){let o=e.state.tr;return t<0?o.delete(n.pos-l.nodeSize,n.pos):o.delete(n.pos,n.pos+l.nodeSize),e.dispatch(o),!0}return!1}function Z(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function ee(e,t){e.someProp("transformCopied",n=>{t=n(t,e)});let n=[],{content:o,openStart:i,openEnd:l}=t;for(;i>1&&l>1&&1==o.childCount&&1==o.firstChild.childCount;){i--,l--;let e=o.firstChild;n.push(e.type.name,e.attrs!=e.type.defaultAttrs?e.attrs:null),o=e.content}let s=e.someProp("clipboardSerializer")||r.PW.fromSchema(e.state.schema),a=ea(),c=a.createElement("div");c.appendChild(s.serializeFragment(o,{document:a}));let d=c.firstChild,f,u=0;for(;d&&1==d.nodeType&&(f=el[d.nodeName.toLowerCase()]);){for(let e=f.length-1;e>=0;e--){let t=a.createElement(f[e]);for(;c.firstChild;)t.appendChild(c.firstChild);c.appendChild(t),u++}d=c.firstChild}return d&&1==d.nodeType&&d.setAttribute("data-pm-slice",`${i} ${l}${u?` -${u}`:""} ${JSON.stringify(n)}`),{dom:c,text:e.someProp("clipboardTextSerializer",n=>n(t,e))||t.content.textBetween(0,t.content.size,"\n\n")}}function et(e,t,n,o,i){let l,s,a=i.parent.type.spec.code;if(!n&&!t)return null;let c=t&&(o||a||!n);if(c){if(e.someProp("transformPastedText",n=>{t=n(t,a||o,e)}),a)return t?new r.p2(r.HY.from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0):r.p2.empty;let n=e.someProp("clipboardTextParser",n=>n(t,i,o,e));if(n)s=n;else{let n=i.marks(),{schema:o}=e.state,s=r.PW.fromSchema(o);l=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(e=>{let t=l.appendChild(document.createElement("p"));e&&t.appendChild(s.serializeNode(o.text(e,n)))})}}else e.someProp("transformPastedHTML",t=>{n=t(n,e)}),l=function(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=ea().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(e),r;if((r=o&&el[o[1].toLowerCase()])&&(e=r.map(e=>"<"+e+">").join("")+e+r.map(e=>"</"+e+">").reverse().join("")),n.innerHTML=e,r)for(let e=0;e<r.length;e++)n=n.querySelector(r[e])||n;return n}(n),P&&function(e){let t=e.querySelectorAll(N?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<t.length;n++){let o=t[n];1==o.childNodes.length&&"\xa0"==o.textContent&&o.parentNode&&o.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),o)}}(l);let d=l&&l.querySelector("[data-pm-slice]"),f=d&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(d.getAttribute("data-pm-slice")||"");if(f&&f[3])for(let e=+f[3];e>0;e--){let e=l.firstChild;for(;e&&1!=e.nodeType;)e=e.nextSibling;if(!e)break;l=e}if(s||(s=(e.someProp("clipboardParser")||e.someProp("domParser")||r.aw.fromSc
1hema(e.state.schema)).parseSlice(l,{preserveWhitespace:!!(c||f),context:i,ruleFromNode:e=>"BR"!=e.nodeName||e.nextSibling||!e.parentNode||en.test(e.parentNode.nodeName)?null:{ignore:!0}})),f)s=function(e,t){if(!e.size)return e;let n=e.content.firstChild.type.schema,o;try{o=JSON.parse(t)}catch(t){return e}let{content:i,openStart:l,openEnd:s}=e;for(let e=o.length-2;e>=0;e-=2){let t=n.nodes[o[e]];if(!t||t.hasRequiredAttrs())break;i=r.HY.from(t.create(o[e+1],i)),l++,s++}return new r.p2(i,l,s)}(ei(s,+f[1],+f[2]),f[4]);else if((s=r.p2.maxOpen(function(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let o=t.node(n).contentMatchAt(t.index(n)),i,l=[];if(e.forEach(e=>{if(!l)return;let t=o.findWrapping(e.type),n;if(!t)return l=null;if(n=l.length&&i.length&&function e(t,n,o,i,l){if(l<t.length&&l<n.length&&t[l]==n[l]){let s=e(t,n,o,i.lastChild,l+1);if(s)return i.copy(i.content.replaceChild(i.childCount-1,s));if(i.contentMatchAt(i.childCount).matchType(l==t.length-1?o.type:t[l+1]))return i.copy(i.content.append(r.HY.from(eo(o,t,l+1))))}}(t,i,e,l[l.length-1],0))l[l.length-1]=n;else{l.length&&(l[l.length-1]=function e(t,n){if(0==n)return t;let o=t.content.replaceChild(t.childCount-1,e(t.lastChild,n-1)),i=t.contentMatchAt(t.childCount).fillBefore(r.HY.empty,!0);return t.copy(o.append(i))}(l[l.length-1],i.length));let n=eo(e,t);l.push(n),o=o.matchType(n.type),i=t}}),l)return r.HY.from(l)}return e}(s.content,i),!0)).openStart||s.openEnd){let e=0,t=0;for(let t=s.content.firstChild;e<s.openStart&&!t.type.spec.isolating;e++,t=t.firstChild);for(let e=s.content.lastChild;t<s.openEnd&&!e.type.spec.isolating;t++,e=e.lastChild);s=ei(s,e,t)}return e.someProp("transformPasted",t=>{s=t(s,e)}),s}let en=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function eo(e,t,n=0){for(let o=t.length-1;o>=n;o--)e=t[o].create(null,r.HY.from(e));return e}function er(e,t,n,o,i,l){let s=t<0?e.firstChild:e.lastChild,a=s.content;return e.childCount>1&&(l=0),i<o-1&&(a=er(a,t,n,o,i+1,l)),i>=n&&(a=t<0?s.contentMatchAt(0).fillBefore(a,l<=i).append(a):a.append(s.contentMatchAt(s.childCount).fillBefore(r.HY.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,s.copy(a))}function ei(e,t,n){return t<e.openStart&&(e=new r.p2(er(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new r.p2(er(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}let el={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]},es=null;function ea(){return es||(es=document.implementation.createHTMLDocument("title"))}let ec={},ed={};function ef(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function eu(e){return{left:e.clientX,top:e.clientY}}function ep(e,t,n,o,r){if(-1==o)return!1;let i=e.state.doc.resolve(o);for(let o=i.depth+1;o>0;o--)if(e.someProp(t,t=>o>i.depth?t(e,n,i.nodeAfter,i.before(o),r,!0):t(e,n,i.node(o),i.before(o),r,!1)))return!0;return!1}function eh(e,t,n){e.focused||e.focus();let o=e.state.tr.setSelection(t);"pointer"==n&&o.setMeta("pointer",!0),e.dispatch(o)}ed.keydown=(e,t)=>{if(e.input.shiftKey=16==t.keyCode||t.shiftKey,!eb(e,t)&&(e.input.lastKeyCode=t.keyCode,e.input.lastKeyCodeTime=Date.now(),!A||!N||13!=t.keyCode)){if(229!=t.keyCode&&e.domObserver.forceFlush(),!x||13!=t.keyCode||t.ctrlKey||t.altKey||t.metaKey)e.someProp("handleKeyDown",n=>n(e,t))||function(e,t){let n;let o=t.keyCode,r=(n="",t.ctrlKey&&(n+="c"),t.metaKey&&(n+="m"),t.altKey&&(n+="a"),t.shiftKey&&(n+="s"),n);if(8==o||E&&72==o&&"c"==r)return Q(e,-1)||j(e,-1);if(46==o&&!t.shiftKey||E&&68==o&&"c"==r)return Q(e,1)||j(e,1);if(13==o||27==o)return!0;if(37==o||E&&66==o&&"c"==r){let t=37==o?"ltr"==X(e,e.state.selection.from)?-1:1:-1;return H(e,t,r)||j(e,t)}if(39==o||E&&70==o&&"c"==r){let t=39==o?"ltr"==X(e,e.state.selection.from)?1:-1:1;return H(e,t,r)||j(e,t)}if(38==o||E&&80==o&&"c"==r)return J(e,-1,r)||j(e,-1);if(40==o||E&&78==o&&"c"==r)return function(e){if(!k||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&1==t.nodeType&&0==n&&t.firstChild&&"false"==t.firstChild.contentEditable){let n=t.firstChild;Z(e,n,"true"),setTimeout(()=>Z(e,n,"false"),20)}return!1}(e)||J(e,1,r)||j(e,1);else if(r==(E?"m":"c")&&(66==o||73==o||89==o||90==o))return!0;return!1}(e,t)?t.preventDefault():ef(e,"key");else{let t=Date.now();e.input.lastIOSEnter=t,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==t&&(e.someProp("handleKeyDown",t=>t(e,p(13,"Enter"))),e.input.lastIOSEnter=0)},200)}}},ed.keyup=(e,t)=>{16==t.keyCode&&(e.input.shiftKey=!1)},ed.keypress=(e,t)=>{if(eb(e,t)||!t.charCode||t.ctrlKey&&!t.altKey||E&&t.metaKey)return;if(e.someProp("handleKeyPress",n=>n(e,t))){t.preventDefault();return}let n=e.state.selection;
1if(!(n instanceof o.Bs)||!n.$from.sameParent(n.$to)){let o=String.fromCharCode(t.charCode);/[\r\n]/.test(o)||e.someProp("handleTextInput",t=>t(e,n.$from.pos,n.$to.pos,o))||e.dispatch(e.state.tr.insertText(o).scrollIntoView()),t.preventDefault()}};let em=E?"metaKey":"ctrlKey";ec.mousedown=(e,t)=>{var n;let r,i;e.input.shiftKey=t.shiftKey;let l=ew(e),s=Date.now(),a="singleClick";s-e.input.lastClick.time<500&&(r=(n=e.input.lastClick).x-t.clientX)*r+(i=n.y-t.clientY)*i<100&&!t[em]&&("singleClick"==e.input.lastClick.type?a="doubleClick":"doubleClick"==e.input.lastClick.type&&(a="tripleClick")),e.input.lastClick={time:s,x:t.clientX,y:t.clientY,type:a};let c=e.posAtCoords(eu(t));c&&("singleClick"==a?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new eg(e,c,t,!!l)):("doubleClick"==a?function(e,t,n,o){return ep(e,"handleDoubleClickOn",t,n,o)||e.someProp("handleDoubleClick",n=>n(e,t,o))}:function(e,t,n,r){return ep(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",n=>n(e,t,r))||function(e,t,n){if(0!=n.button)return!1;let r=e.state.doc;if(-1==t)return!!r.inlineContent&&(eh(e,o.Bs.create(r,0,r.content.size),"pointer"),!0);let i=r.resolve(t);for(let t=i.depth+1;t>0;t--){let n=t>i.depth?i.nodeAfter:i.node(t),l=i.before(t);if(n.inlineContent)eh(e,o.Bs.create(r,l+1,l+1+n.content.size),"pointer");else{if(!o.qv.isSelectable(n))continue;eh(e,o.qv.create(r,l),"pointer")}return!0}}(e,n,r)})(e,c.pos,c.inside,t)?t.preventDefault():ef(e,"pointer"))};class eg{constructor(e,t,n,r){let i,l;if(this.view=e,this.pos=t,this.event=n,this.flushed=r,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!n[em],this.allowDefault=n.shiftKey,t.inside>-1)i=e.state.doc.nodeAt(t.inside),l=t.inside;else{let n=e.state.doc.resolve(t.pos);i=n.parent,l=n.depth?n.before():0}let s=r?null:n.target,a=s?e.docView.nearestDesc(s,!0):null;this.target=a?a.dom:null;let{selection:c}=e.state;(0==n.button&&i.type.spec.draggable&&!1!==i.type.spec.selectable||c instanceof o.qv&&c.from<=l&&c.to>l)&&(this.mightDrag={node:i,pos:l,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&S&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),ef(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>K(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;if(this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(eu(e))),this.updateAllowDefault(e),this.allowDefault||!t)ef(this.view,"pointer");else{var n,r,i,l;(n=this.view,r=t.pos,i=t.inside,l=this.selectNode,ep(n,"handleClickOn",r,i,e)||n.someProp("handleClick",t=>t(n,r,e))||(l?function(e,t){if(-1==t)return!1;let n=e.state.selection,r,i;n instanceof o.qv&&(r=n.node);let l=e.state.doc.resolve(t);for(let e=l.depth+1;e>0;e--){let t=e>l.depth?l.nodeAfter:l.node(e);if(o.qv.isSelectable(t)){i=r&&n.$from.depth>0&&e>=n.$from.depth&&l.before(n.$from.depth+1)==n.$from.pos?l.before(n.$from.depth):l.before(e);break}}return null!=i&&(eh(e,o.qv.create(e.state.doc,i),"pointer"),!0)}(n,i):function(e,t){if(-1==t)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return!!(r&&r.isAtom&&o.qv.isSelectable(r))&&(eh(e,new o.qv(n),"pointer"),!0)}(n,i)))?e.preventDefault():0==e.button&&(this.flushed||k&&this.mightDrag&&!this.mightDrag.node.isAtom||N&&!this.view.state.selection.visible&&2>=Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to)))?(eh(this.view,o.Y1.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):ef(this.view,"pointer")}}move(e){this.updateAllowDefault(e),ef(this.view,"pointer"),0==e.buttons&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}function eb(e,t){return!!e.composing||!!(k&&500>Math.abs(t.timeStamp-e.input.compositionEndedAt))&&(e.input.compositionEndedAt=-2e8,!0)}ec.touchstart=e=>{e.input.lastTouch=Date.now(),ew(e),ef(e,"pointer")},ec.touchmove=e=>{e.input.lastTouch=Date.now(),ef(e,"pointer")},ec.contextmenu=e=>ew(e);let ev=A?5e3:-1;function ey(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>ew(e),t))}function ew(e,t=!1){if(!A||!(e.domObserver.flushingSoon>
1=0)){if(e.domObserver.forceFlush(),!function(e){let t;for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=((t=document.createEvent("Event")).initEvent("event",!0,!0),t.timeStamp));e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}(e),t||e.docView&&e.docView.dirty){let t=function(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let i=e.docView.nearestDesc(n.focusNode),s=i&&0==i.size,a=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(a<0)return null;let c=r.resolve(a),f,p;if(u(n)){for(f=c;i&&!i.node;)i=i.parent;let e=i.node;if(i&&e.isAtom&&o.qv.isSelectable(e)&&i.parent&&!(e.isInline&&function(e,t,n){for(let o=0==t,r=t==d(e);o||r;){if(e==n)return!0;let t=l(e);if(!(e=e.parentNode))return!1;o=o&&0==t,r=r&&t==d(e)}}(n.focusNode,n.focusOffset,i.dom))){let e=i.posBefore;p=new o.qv(a==e?c:r.resolve(e))}}else{let t=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(t<0)return null;f=r.resolve(t)}if(!p){let n="pointer"==t||e.state.selection.head<c.pos&&!s?1:-1;p=L(e,f,c,n)}return p}(e);return t&&!t.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(t)):e.updateState(e.state),!0}return!1}}ed.compositionstart=ed.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(e=>!1===e.type.spec.inclusive)))e.markCursor=e.state.storedMarks||n.marks(),ew(e,!0),e.markCursor=null;else if(ew(e),S&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let t=e.domSelectionRange();for(let n=t.focusNode,o=t.focusOffset;n&&1==n.nodeType&&0!=o;){let t=o<0?n.lastChild:n.childNodes[o-1];if(!t)break;if(3==t.nodeType){e.domSelection().collapse(t,t.nodeValue.length);break}n=t,o=-1}}e.input.composing=!0}ey(e,ev)},ed.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,ey(e,20))};let eC=w&&C<15||x&&M<604;function eS(e,t,n,o,i){let l=et(e,t,n,o,e.state.selection.$from);if(e.someProp("handlePaste",t=>t(e,i,l||r.p2.empty)))return!0;if(!l)return!1;let s=0==l.openStart&&0==l.openEnd&&1==l.content.childCount?l.content.firstChild:null,a=s?e.state.tr.replaceSelectionWith(s,o):e.state.tr.replaceSelection(l);return e.dispatch(a.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}ec.copy=ed.cut=(e,t)=>{let n=e.state.selection,o="cut"==t.type;if(n.empty)return;let r=eC?null:t.clipboardData,{dom:i,text:l}=ee(e,n.content());r?(t.preventDefault(),r.clearData(),r.setData("text/html",i.innerHTML),r.setData("text/plain",l)):function(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let o=getSelection(),r=document.createRange();r.selectNodeContents(t),e.dom.blur(),o.removeAllRanges(),o.addRange(r),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}(e,i),o&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},ed.paste=(e,t)=>{if(e.composing&&!A)return;let n=eC?null:t.clipboardData,o=e.input.shiftKey&&45!=e.input.lastKeyCode;n&&eS(e,n.getData("text/plain"),n.getData("text/html"),o,t)?t.preventDefault():function(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,o=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(o.contentEditable="true"),o.style.cssText="position: fixed; left: -10000px; top: 10px",o.focus();let r=e.input.shiftKey&&45!=e.input.lastKeyCode;setTimeout(()=>{e.focus(),o.parentNode&&o.parentNode.removeChild(o),n?eS(e,o.value,null,r,t):eS(e,o.textContent,o.innerHTML,r,t)},50)}(e,t)};class eD{constructor(e,t){this.slice=e,this.move=t}}let eN=E?"altKey":"ctrlKey";for(let e in ec.dragstart=(e,t)=>{let n=e.input.mouseDown;if(n&&n.done(),!t.dataTransfer)return;let r=e.state.selection,i=r.empty?null:e.posAtCoords(eu(t));if(i&&i.pos>=r.from&&i.pos<=(r instanceof o.qv?r.to-1:r.to));else if(n&&n.mightDrag)e.dispatch(e.state.tr.setSelection(o.qv.create(e.state.doc,n.mightDrag.pos)));else if(t.target&&1==t.target.nodeType){let n=e.docView.nearestDesc(t.target,!0);n&&n.node.type.spec.draggable&&n!=e.docView&&e.dispatch(e.state.tr.setSelection(o.qv.create(e.state.doc,n.posBefore)))}let l=e.state.selection.content(),{dom:s,text:a}=ee(e,l);t.dataTransfer.clearData(),t.dataTransfer.setData(eC?"Text":"text/html",s.innerHTML),t.dataTransfer.effectAllowed="copyMove",eC||t.dataTransfer.setData("text/plain",a),e.dragging=new eD(l,!t[eN])},ec.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},ed.dragover=ed.dragenter=(e,t)=>t.preventDefault(),ed.drop=(e,t)=>{let n=e.dragging;if(e.dragging=null,!t.dataTransfer)return;let l=e.posAtCoords(eu(t));if(!l)return;let s=e.state.doc.resolve(l.pos),a=n&&n.slice;a?e.someProp("transformPasted",t=>{a=t(a,e)}
vendor: 6,775 bytes, line 1
1):a=et(e,t.dataTransfer.getData(eC?"Text":"text/plain"),eC?null:t.dataTransfer.getData("text/html"),!1,s);let c=!!(n&&!t[eN]);if(e.someProp("handleDrop",n=>n(e,t,a||r.p2.empty,c))){t.preventDefault();return}if(!a)return;t.preventDefault();let d=a?(0,i.nj)(e.state.doc,s.pos,a):s.pos;null==d&&(d=s.pos);let f=e.state.tr;c&&f.deleteSelection();let u=f.mapping.map(d),p=0==a.openStart&&0==a.openEnd&&1==a.content.childCount,h=f.doc;if(p?f.replaceRangeWith(u,u,a.content.firstChild):f.replaceRange(u,u,a),f.doc.eq(h))return;let m=f.doc.resolve(u);if(p&&o.qv.isSelectable(a.content.firstChild)&&m.nodeAfter&&m.nodeAfter.sameMarkup(a.content.firstChild))f.setSelection(new o.qv(m));else{let t=f.mapping.map(d);f.mapping.maps[f.mapping.maps.length-1].forEach((e,n,o,r)=>t=r),f.setSelection(L(e,m,f.doc.resolve(t)))}e.focus(),e.dispatch(f.setMeta("uiEvent","drop"))},ec.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&K(e)},20))},ec.blur=(e,t)=>{e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),t.relatedTarget&&e.dom.contains(t.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},ec.beforeinput=(e,t)=>{if(N&&A&&"deleteContentBackward"==t.inputType){e.domObserver.flushSoon();let{domChangeCount:t}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=t||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",t=>t(e,p(8,"Backspace")))))return;let{$cursor:n}=e.state.selection;n&&n.pos>0&&e.dispatch(e.state.tr.delete(n.pos-1,n.pos).scrollIntoView())},50)}},ed)ec[e]=ed[e];function eT(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class ek{constructor(e,t){this.toDOM=e,this.spec=t||eP,this.side=this.spec.side||0}map(e,t,n,o){let{pos:r,deleted:i}=e.mapResult(t.from+o,this.side<0?-1:1);return i?null:new eO(r-n,r-n,this)}valid(){return!0}eq(e){return this==e||e instanceof ek&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&eT(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class ex{constructor(e,t){this.attrs=e,this.spec=t||eP}map(e,t,n,o){let r=e.map(t.from+o,this.spec.inclusiveStart?-1:1)-n,i=e.map(t.to+o,this.spec.inclusiveEnd?1:-1)-n;return r>=i?null:new eO(r,i,this)}valid(e,t){return t.from<t.to}eq(e){return this==e||e instanceof ex&&eT(this.attrs,e.attrs)&&eT(this.spec,e.spec)}static is(e){return e.type instanceof ex}destroy(){}}class eE{constructor(e,t){this.attrs=e,this.spec=t||eP}map(e,t,n,o){let r=e.mapResult(t.from+o,1);if(r.deleted)return null;let i=e.mapResult(t.to+o,-1);return i.deleted||i.pos<=r.pos?null:new eO(r.pos-n,i.pos-n,this)}valid(e,t){let{index:n,offset:o}=e.content.findIndex(t.from),r;return o==t.from&&!(r=e.child(n)).isText&&o+r.nodeSize==t.to}eq(e){return this==e||e instanceof eE&&eT(this.attrs,e.attrs)&&eT(this.spec,e.spec)}destroy(){}}class eO{constructor(e,t,n){this.from=e,this.to=t,this.type=n}copy(e,t){return new eO(e,t,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,n){return this.type.map(e,this,t,n)}static widget(e,t,n){return new eO(e,e,new ek(t,n))}static inline(e,t,n,o){return new eO(e,t,new ex(n,o))}static node(e,t,n,o){return new eO(e,t,new eE(n,o))}get spec(){return this.type.spec}get inline(){return this.type instanceof ex}get widget(){return this.type instanceof ek}}let eA=[],eP={};class eM{constructor(e,t){this.local=e.length?e:eA,this.children=t.length?t:eA}static create(e,t){return t.length?eB(t,e,0,eP):eq}find(e,t,n){let o=[];return this.findInner(null==e?0:e,null==t?1e9:t,o,0,n),o}findInner(e,t,n,o,r){for(let i=0;i<this.local.length;i++){let l=this.local[i];l.from<=t&&l.to>=e&&(!r||r(l.spec))&&n.push(l.copy(l.from+o,l.to+o))}for(let i=0;i<this.children.length;i+=3)if(this.children[i]<t&&this.children[i+1]>e){let l=this.children[i]+1;this.children[i+2].findInner(e-l,t-l,n,o+l,r)}}map(e,t,n){return this==eq||0==e.maps.length?this:this.mapInner(e,t,0,0,n||eP)}mapInner(e,t,n,o,r){let i;for(let l=0;l<this.local.length;l++){let s=this.local[l].map(e,n,o);s&&s.type.valid(t,s)?(i||(i=[])).push(s):r.onRemove&&r.onRemove(this.local[l].spec)}return this.children.length?function(e,t,n,o,r,i,l){let s=e.slice();for(let e=0,t=i;e<n.maps.length;e++){let o=0;n.maps[e].forEach((e,n,i,l)=>{let a=l-i-(n-e);for(let l=0;l<s.length;l+=3){let c=s[l+1];if(c<0||e>c+t-o)continue;let d=s[l]+t-o;n>=d?s[l+1]=e<=d?-2:-1:i>=r&&a&&(s[l]+=a,s[l+1]+=a)}o+=a}),t=n.maps[e].map(t,-1)}let a=!1;for(let t=0;t<s.length;t+=3)if(s[t+1]<0){if(-2==s[t+1]){a=!0,s[t+1]=-1;continue}let c=n.map(e[t]+i),d=c-r;if(d<0||d>=o.content.size){a=!0;continue}let f=n.map(e[t+1]+i,-1)-r,{index:u,offset:p}=o.content.findIndex(d),h=o.maybeChild(u);if(h&&p==d&&p+h.nodeSize==f){let o=s[t+2].mapInner(n,h,c+1,e[t]+i+1,l);o!=eq?(s[t]=d,s[t+1]=f,s[t+2]=o):(s[t+1]=-2,a=!0)}else a=!0}if(a){let a=eB(function(e,t,n,o,r,i,l){for(let s=0;s<e.length;s+=3)-1==e[s+1]&&function e(t,i){for(let e=0;e<t.local.length;e++){let s=t.local[e].map(o,r,i);s?n.push(s):l.onRemove&&l.onRemove(t.local[e].spec)}for(let n=0;n<t.children.length;n+=3)e(t.children[n+2],t.children[n]+i+1)}(e[s+2],t[s]+i+1);return n}(s,e,t,n,r,i,l),o,0,l);t=a.local;for(let e=0;e<s.length;e+=3)s[e+1]<0&&(s.splice(e,3),e-=3);for(let e=0,t=0;e<a.children.length;e+=3){let n=a.children[e];for(;t<s.length&&s[t]<n;)t+=3;s.splice(t,0,a.children[e],a.children[e+1],a.children[e+2])}}return new eM(t.sort(e$),s)}(this.children,i||[],e,t,n,o,r):i?new eM(i.sort(e$),eA):eq}add(e,t){return t.length?this==eq?eM.create(e,t):this.addInner(e,t,0):this}addInner(e,t,n){let o,r=0;e.forEach((e,i)=>{let l=i+n,s;if(s=eR(t,e,l)){for(o||(o=this.children.slice());r<o.length&&o[r]<i;)r+=3;o[r]==i?o[r+2]=o[r+2].addInner(e,s,l+1):o.splice(r,0,i,i+e.nodeSize,eB(s,e,l+1,eP)),r+=3}});let i=eK(r?eV(t):t,-n);for(let t=0;t<i.length;t++)i[t].type.valid(e,i[t])||i.splice(t--,1);return new eM(i.length?this.local.concat(i).sort(e$):this.local,o||this.children)}remove(e){return 0==e.length||this==eq?this:this.removeInner(e,0)}removeInner(e,t){let n=this.children,o=this.local;for(let o=0;o<n.length;o+=3){let r;let i=n[o]+t,l=n[o+1]+t;for(let t=0,n;t<e.length;t++)(n=e[t])&&n.from>i&&n.to<l&&(e[t]=null,(r||(r=[])).push(n));if(!r)continue;n==this.children&&(n=this.children.slice());let s=n[o+2].removeInner(r,i+1);s!=eq?n[o+2]=s:(n.splice(o,3),o-=3)}if(o.length){for(let n=0,r;n<e.length;n++)if(r=e[n])for(let e=0;e<o.length;e++)o[e].eq(r,t)&&(o==this.local&&(o=this.local.slice()),o.splice(e--,1))}return n==this.children&&o==this.local?this:o.length||n.length?new eM(o,n):eq}forChild(e,t){let n,o;
vendor: 3,118 bytes, line 1
1if(this==eq)return this;if(t.isLeaf)return eM.empty;for(let t=0;t<this.children.length;t+=3)if(this.children[t]>=e){this.children[t]==e&&(n=this.children[t+2]);break}let r=e+1,i=r+t.content.size;for(let e=0;e<this.local.length;e++){let t=this.local[e];if(t.from<i&&t.to>r&&t.type instanceof ex){let e=Math.max(r,t.from)-r,n=Math.min(i,t.to)-r;e<n&&(o||(o=[])).push(t.copy(e,n))}}if(o){let e=new eM(o.sort(e$),eA);return n?new eI([e,n]):e}return n||eq}eq(e){if(this==e)return!0;if(!(e instanceof eM)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(let t=0;t<this.children.length;t+=3)if(this.children[t]!=e.children[t]||this.children[t+1]!=e.children[t+1]||!this.children[t+2].eq(e.children[t+2]))return!1;return!0}locals(e){return ez(this.localsInner(e))}localsInner(e){if(this==eq)return eA;if(e.inlineContent||!this.local.some(ex.is))return this.local;let t=[];for(let e=0;e<this.local.length;e++)this.local[e].type instanceof ex||t.push(this.local[e]);return t}}eM.empty=new eM([],[]),eM.removeOverlap=ez;let eq=eM.empty;class eI{constructor(e){this.members=e}map(e,t){let n=this.members.map(n=>n.map(e,t,eP));return eI.from(n)}forChild(e,t){if(t.isLeaf)return eM.empty;let n=[];for(let o=0;o<this.members.length;o++){let r=this.members[o].forChild(e,t);r!=eq&&(r instanceof eI?n=n.concat(r.members):n.push(r))}return eI.from(n)}eq(e){if(!(e instanceof eI)||e.members.length!=this.members.length)return!1;for(let t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0}locals(e){let t,n=!0;for(let o=0;o<this.members.length;o++){let r=this.members[o].localsInner(e);if(r.length){if(t){n&&(t=t.slice(),n=!1);for(let e=0;e<r.length;e++)t.push(r[e])}else t=r}}return t?ez(n?t:t.sort(e$)):eA}static from(e){switch(e.length){case 0:return eq;case 1:return e[0];default:return new eI(e.every(e=>e instanceof eM)?e:e.reduce((e,t)=>e.concat(t instanceof eM?t:t.members),[]))}}}function eK(e,t){if(!t||!e.length)return e;let n=[];for(let o=0;o<e.length;o++){let r=e[o];n.push(new eO(r.from+t,r.to+t,r.type))}return n}function eR(e,t,n){if(t.isLeaf)return null;let o=n+t.nodeSize,r=null;for(let t=0,i;t<e.length;t++)(i=e[t])&&i.from>n&&i.to<o&&((r||(r=[])).push(i),e[t]=null);return r}function eV(e){let t=[];for(let n=0;n<e.length;n++)null!=e[n]&&t.push(e[n]);return t}function eB(e,t,n,o){let r=[],i=!1;t.forEach((t,l)=>{let s=eR(e,t,l+n);if(s){i=!0;let e=eB(s,t,n+l+1,o);e!=eq&&r.push(l,l+t.nodeSize,e)}});let l=eK(i?eV(e):e,-n).sort(e$);for(let e=0;e<l.length;e++)l[e].type.valid(t,l[e])||(o.onRemove&&o.onRemove(l[e].spec),l.splice(e--,1));return l.length||r.length?new eM(l,r):eq}function e$(e,t){return e.from-t.from||e.to-t.to}function ez(e){let t=e;for(let n=0;n<t.length-1;n++){let o=t[n];if(o.from!=o.to)for(let r=n+1;r<t.length;r++){let i=t[r];if(i.from==o.from){i.to!=o.to&&(t==e&&(t=e.slice()),t[r]=i.copy(i.from,o.to),eL(t,r+1,i.copy(o.to,i.to)));continue}i.from<o.to&&(t==e&&(t=e.slice()),t[n]=o.copy(o.from,i.from),eL(t,r,o.copy(i.from,o.to)));break}}return t}
1function eL(e,t,n){for(;t<e.length&&e$(n,e[t])>0;)t++;e.splice(t,0,n)}new WeakMap}}]);

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.