PageSourceSearch

https://area.rgs.mef.gov.it/7743.5cc70731961ff258.js

js mef.gov.it collected 2026-09-24 08:33:50 UTC 28,317 bytes, 1 lines download raw bytes

1(self.webpackChunkamaMefCatalogoServizi=self.webpackChunkamaMefCatalogoServizi||[]).push([[7743],{77743:(Ft,_t,lt)=>{lt(64489)},64489:()=>{!function(){"use strict";var Ft=tinymce.util.Tools.resolve("tinymce.PluginManager");const at=t=>e=>(t=>{const e=typeof t;return null===t?"null":"object"===e&&Array.isArray(t)?"array":"object"===e&&((t,e,n)=>{var s;return!!((n,s)=>s.isPrototypeOf(n))(t,e.prototype)||(null===(s=t.constructor)||void 0===s?void 0:s.name)===e.name})(t,String)?"string":e})(e)===t,ut=t=>e=>typeof e===t,zt=at("string"),R=at("object"),Qe=at("array"),Ge=ut("boolean"),h=t=>!(t=>null==t)(t),K=ut("function"),Xe=ut("number"),Je=()=>{},Vt=t=>()=>t,jt=(t,e)=>t===e,Wt=t=>e=>!t(e),qt=Vt(!1);class u{constructor(e,n){this.tag=e,this.value=n}static some(e){return new u(!0,e)}static none(){return u.singletonNone}fold(e,n){return this.tag?n(this.value):e()}isSome(){return this.tag}isNone(){return!this.tag}map(e){return this.tag?u.some(e(this.value)):u.none()}bind(e){return this.tag?e(this.value):u.none()}exists(e){return this.tag&&e(this.value)}forall(e){return!this.tag||e(this.value)}filter(e){return!this.tag||e(this.value)?this:u.none()}getOr(e){return this.tag?this.value:e}or(e){return this.tag?this:e}getOrThunk(e){return this.tag?this.value:e()}orThunk(e){return this.tag?this:e()}getOrDie(e){if(this.tag)return this.value;throw new Error(e??"Called getOrDie on None")}static from(e){return h(e)?u.some(e):u.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(e){this.tag&&e(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}u.singletonNone=new u(!1);const en=Array.prototype.slice,nn=Array.prototype.indexOf,sn=Array.prototype.push,mt=(t,e)=>((t,e)=>nn.call(t,e))(t,e)>-1,Kt=(t,e)=>{for(let n=0,s=t.length;n<s;n++)if(e(t[n],n))return!0;return!1},L=(t,e)=>{const n=t.length,s=new Array(n);for(let o=0;o<n;o++)s[o]=e(t[o],o);return s},p=(t,e)=>{for(let n=0,s=t.length;n<s;n++)e(t[n],n)},v=(t,e)=>{const n=[];for(let s=0,o=t.length;s<o;s++){const r=t[s];e(r,s)&&n.push(r)}return n},H=(t,e,n)=>(p(t,(s,o)=>{n=e(n,s,o)}),n),Q=(t,e,n)=>{for(let s=0,o=t.length;s<o;s++){const r=t[s];if(e(r,s))return u.some(r);if(n(r,s))break}return u.none()},G=(t,e)=>Q(t,e,qt),Qt=(t,e)=>(t=>{const e=[];for(let n=0,s=t.length;n<s;++n){if(!Qe(t[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+t);sn.apply(e,t[n])}return e})(L(t,e)),dt=t=>{const e=en.call(t,0);return e.reverse(),e},Gt=(t,e)=>e>=0&&e<t.length?u.some(t[e]):u.none(),Z=t=>Gt(t,0),X=t=>Gt(t,t.length-1),Zt=(t,e)=>{const n=[],s=K(e)?o=>Kt(n,r=>e(r,o)):o=>mt(n,o);for(let o=0,r=t.length;o<r;o++){const i=t[o];s(i)||n.push(i)}return n},Xt=(t,e,n=jt)=>t.exists(s=>n(s,e)),ft=(t,e,n)=>t.isSome()&&e.isSome()?u.some(n(t.getOrDie(),e.getOrDie())):u.none(),U=t=>{if(null==t)throw new Error("Node cannot be null or undefined");return{dom:t}},m_fromHtml=(t,e)=>{const s=(e||document).createElement("div");if(s.innerHTML=t,!s.hasChildNodes()||s.childNodes.length>1){const o="HTML does not have a single root node";throw console.error(o,t),new Error(o)}return U(s.childNodes[0])},m_fromTag=(t,e)=>{const s=(e||document).createElement(t);return U(s)},m_fromDom=U,pt=(t,e)=>{const n=t.dom;if(1!==n.nodeType)return!1;{const s=n;
1if(void 0!==s.matches)return s.matches(e);if(void 0!==s.msMatchesSelector)return s.msMatchesSelector(e);if(void 0!==s.webkitMatchesSelector)return s.webkitMatchesSelector(e);if(void 0!==s.mozMatchesSelector)return s.mozMatchesSelector(e);throw new Error("Browser lacks native selectors")}},J=(t,e)=>t.dom===e.dom,Yt=pt,hn=typeof window<"u"?window:Function("return this;")(),te=(t,e)=>((t,e)=>{let n=e??hn;for(let s=0;s<t.length&&null!=n;++s)n=n[t[s]];return n})(t.split("."),e),Ln=Object.getPrototypeOf,vn=t=>{const e=te("ownerDocument.defaultView",t);return R(t)&&((t=>((t,e)=>{const n=((t,e)=>te(t,e))(t,e);if(null==n)throw new Error(t+" not available on this browser");return n})("HTMLElement",t))(e).prototype.isPrototypeOf(t)||/^HTML\w*Element$/.test(Ln(t).constructor.name))},N=t=>t.dom.nodeName.toLowerCase(),ee=t=>t.dom.nodeType,gt=t=>e=>ee(e)===t,Dn=t=>ht(t)&&vn(t.dom),ht=gt(1),kn=gt(3),Tn=gt(11),ne=t=>e=>ht(e)&&N(e)===t,Y=t=>u.from(t.dom.parentNode).map(m_fromDom),F=t=>L(t.dom.childNodes,m_fromDom),se=(t,e)=>u.from(t.dom.childNodes[e]).map(m_fromDom),tt=t=>se(t,0),yt=t=>se(t,t.dom.childNodes.length-1),In=t=>m_fromDom(t.dom.host),oe=t=>{const e=kn(t)?t.dom.parentNode:t.dom;if(null==e||null===e.ownerDocument)return!1;const n=e.ownerDocument;return(t=>{const e=(t=>m_fromDom(t.dom.getRootNode()))(t);return(t=>Tn(t)&&h(t.dom.host))(e)?u.some(e):u.none()})(m_fromDom(e)).fold(()=>n.body.contains(e),((t,e)=>n=>t(e(n)))(oe,In))};var re=(t,e,n,s,o)=>t(n,s)?u.some(n):K(o)&&o(n)?u.none():e(n,s,o);const bt=(t,e,n)=>{let s=t.dom;const o=K(n)?n:qt;for(;s.parentNode;){s=s.parentNode;const r=m_fromDom(s);if(e(r))return u.some(r);if(o(r))break}return u.none()},ce=(t,e,n)=>re((o,r)=>r(o),bt,t,e,n),$n=(t,e,n)=>bt(t,s=>pt(s,e),n),ie=(t,e)=>{Y(t).each(s=>{s.dom.insertBefore(e.dom,t.dom)})},D=(t,e)=>{t.dom.appendChild(e.dom)},et=(t,e)=>{p(e,n=>{D(t,n)})},le=t=>{t.dom.textContent="",p(F(t),e=>{Ct(e)})},Ct=t=>{const e=t.dom;null!==e.parentNode&&e.parentNode.removeChild(e)};var ae=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),ue=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),nt=tinymce.util.Tools.resolve("tinymce.util.VK");const me=t=>L(t,m_fromDom),_n=Object.keys,Lt=(t,e)=>{const n=_n(t);for(let s=0,o=n.length;s<o;s++){const r=n[s];e(t[r],r)}},_=(t,e)=>{const n=t.dom;Lt(e,(s,o)=>{((t,e,n)=>{if(!(zt(n)||Ge(n)||Xe(n)))throw console.error("Invalid call to Attribute.set. Key ",e,":: Value ",n,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(e,n+"")})(n,o,s)})},St=t=>H(t.dom.attributes,(e,n)=>(e[n.name]=n.value,e),{}),Kn=t=>((t,e)=>m_fromDom(t.dom.cloneNode(!0)))(t),vt=(t,e)=>{const n=((t,e)=>{const n=m_fromTag(e),s=St(t);return _(n,s),n})(t,e);((t,e)=>{(t=>u.from(t.dom.nextSibling).map(m_fromDom))(t).fold(()=>{Y(t).each(o=>{D(o,e)})},s=>{ie(s,e)})})(t,n);const s=F(t);return et(n,s),Ct(t),n};var Nt=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),b=tinymce.util.Tools.resolve("tinymce.util.Tools");const de=t=>e=>h(e)&&e.nodeName.toLowerCase()===t,z=t=>e=>h(e)&&t.test(e.nodeName),C=t=>h(t)&&3===t.nodeType,V=t=>h(t)&&1===t.nodeType,g=z(/^(OL|UL|DL)$/),Gn=z(/^(OL|UL)$/),fe=de("ol"),st=z(/^(LI|DT|DD)$/),Zn=z(/^(DT|DD)$/),Xn=z(/^(TH|TD)$/),k=de("br"),Dt=(t,e)=>h(e)&&e.nodeName in t.schema.getTextBlockElements(),kt=(t,e)=>h(t)&&t.nodeName in e,Yn=(t,e)=>h(e)&&e.nodeName in t.schema.getVoidElements(),T=(t,e,n)=>{const s=t.isEmpty(e);return!(n&&t.select("span[data-mce-type=bookmark]",e).length>0)&&s},pe=(t,e)=>t.isChildOf(e,t.getRoot()),Tt=t=>e=>e.options.get(t),ns=Tt("lists_indent_on_tab"),ge=Tt("forced_root_block"),ss=Tt("forced_root_block_attrs"),he=(t,e,n={})=>{const s=t.dom,o=t.schema.getBlockElements(),r=s.createFragment(),i=ge(t),a=ss(t);let l,c,d=!1;for(c=s.create(i,{...a,...n.style?{style:n.style}:{}}),kt(e.firstChild,o)||r.appendChild(c);l=e.firstChild;){const f=l.nodeName;!d&&("SPAN"!==f||"bookmark"!==l.getAttribute("data-mce-type"))&&(d=!0),kt(l,o)?(r.appendChild(l),c=null):(c||(c=s.create(i,a),r.appendChild(c)),c.appendChild(l))}return!d&&c&&c.appendChild(s.create("br",{"data-mce-bogus":"1"})),r},S=Nt.DOM,rs=ne("dd"),ye=ne("dt"),is=t=>{ye(t)&&vt(t,"dd")},be=(t,e)=>{if(C(t))return{container:t,offset:e};const n=ae.getNode(t,e);return C(n)?{container:n,offset:e>=t.childNodes.length?n.data.length:0}:n.previousSibling&&C(n.previousSibling)?{container:n.previousSibling,offset:n.previousSibling.data.length}:n.nextSibling&&C(n.nextSibling)?{container:n.nextSibling,offset:0}:{container:t,offset:e}},ot=t=>{const e=t.cloneRange(),n=be(t.startContainer,t.startOffset);e.setStart(n.container,n.offset);const s=be(t.endContainer,t.endOffset);return e.setEnd(s.container,s.offset),e},Ce=["OL","UL","DL"],Le=Ce.join(","),E=(t,e)=>{const n=e||t.selection.getStart(!0);return t.dom.getParent(n,Le,j(t,n))},Et=t=>{const e=t.selection.getSelectedBlocks();return v(((t,e)=>{const n=b.map(e,s=>t.dom.getParent(s,"li,dd,dt",j(t,s))||s);return Zt(n)})(t,e),st)},wt=(t,e)=>{const n=t.dom.getParents(e,"TD,TH");return n.length>0?n[0]:t.getBody()},j=(t,e)=>{const n=t.dom.getParents(e,t.dom.isBlock);return G(n,r=>(r=>r.nodeName.toLowerCase()!==ge(t))(r)&&((t,e)=>!g(e)&&!st(e)&&Kt(Ce,n=>t.isValidChild(e.nodeName,n)))(t.schema,r)).getOr(t.getBody())},Se=(t,e)=>{const n=t.dom.getParents(e,"ol,ul",j(t,e));return X(n)},Cs=(t,e)=>{const n=L(e,s=>Se(t,s).getOr(s));return Zt(n)},W=t=>/\btox\-/.test(t.className),ve=(t,e)=>Q(t,g,Xn).exists(n=>n.nodeName===e&&!W(n)),Ne=(t,e)=>null!==e&&!t.dom.isEditable(e),O=(t,e)=>{const n=t.dom.getParent(e,"ol,ul,dl");return Ne(t,n)||!t.selection.isEditable()},De=(t,e)=>{const n=t.selection.getNode();return e({parents:t.dom.getParents(n),element:n}),t.on("NodeChange",e),()=>t.off("NodeChange",e)},ke=(t,e)=>{const s=(e||document).createDocumentFragment();return p(t,o=>{s.appendChild(o.dom)}),m_fromDom(s)},w=(t,e,n)=>t.dispatch("ListMutation",{action:e,element:n}),Ss=(t=/^\s+|\s+$/g,e=>e.replace(t,"")),Ts=(t,e,n)=>{((t,e,n)=>{if(!zt(n))throw console.error("Invalid call to CSS.set. Property ",e,":: Value ",n,":: 
1Element ",t),new Error("CSS value must be a string: "+n);(t=>void 0!==t.style&&K(t.style.getPropertyValue))(t)&&t.style.setProperty(e,n)})(t.dom,e,n)},q=t=>Yt(t,"OL,UL"),Te=t=>tt(t).exists(q),A=t=>"listAttributes"in t,Ee=t=>"isComment"in t,we=t=>t.depth>0,Bs=t=>t.isSelected,Os=t=>{const e=F(t),n=(t=>yt(t).exists(q))(t)?e.slice(0,-1):e;return L(n,Kn)},Ae=(t,e)=>{D(t.item,e.list)},Ps=(t,e)=>{const n={list:m_fromTag(e,t),item:m_fromTag("li",t)};return D(n.list,n.item),n},Be=(t,e,n)=>{const s=e.slice(0,n.depth);return X(s).each(o=>{if(A(n)){const r=((t,e,n)=>{const s=m_fromTag("li",t);return _(s,e),et(s,n),s})(t,n.itemAttributes,n.content);((t,e)=>{D(t.list,e),t.item=e})(o,r),((t,e)=>{N(t.list)!==e.listType&&(t.list=vt(t.list,e.listType)),_(t.list,e.listAttributes)})(o,n)}else if((t=>"isFragment"in t)(n))et(o.item,n.content);else{const r=m_fromHtml(`\x3c!--${n.content}--\x3e`);D(o.list,r)}}),s},zs=(t,e)=>{let n=u.none();const s=H(e,(o,r,i)=>Ee(r)?0===i?(n=u.some(r),o):Be(t,o,r):r.depth>o.length?((t,e,n)=>{const s=((t,e,n)=>{const s=[];for(let o=0;o<n;o++)s.push(Ps(t,A(e)?e.listType:e.parentListType));return s})(t,n,n.depth-e.length);return(t=>{for(let e=1;e<t.length;e++)Ae(t[e-1],t[e])})(s),((t,e)=>{for(let n=0;n<t.length-1;n++)Ts(t[n].item,"list-style-type","none");X(t).each(n=>{A(e)&&(_(n.list,e.listAttributes),_(n.item,e.itemAttributes)),et(n.item,e.content)})})(s,n),((t,e)=>{ft(X(t),Z(e),Ae)})(e,s),e.concat(s)})(t,o,r):Be(t,o,r),[]);return n.each(o=>{const r=m_fromHtml(`\x3c!--${o.content}--\x3e`);Z(s).each(i=>{((t,e)=>{tt(t).fold(()=>{D(t,e)},s=>{t.dom.insertBefore(e.dom,s.dom)})})(i.list,r)})}),Z(s).map(o=>o.list)},Oe=t=>(p(t,(e,n)=>{((t,e)=>{const n=t[e].depth,s=r=>r.depth===n&&!r.dirty,o=r=>r.depth<n;return Q(dt(t.slice(0,e)),s,o).orThunk(()=>Q(t.slice(e+1),s,o))})(t,n).fold(()=>{e.dirty&&A(e)&&(t=>{t.listAttributes=((t,e)=>{const n={};return((t,e,n,s)=>{Lt(t,(o,r)=>{(e(o,r)?n:s)(o,r)})})(t,e,(t=>(e,n)=>{t[n]=e})(n),Je),n})(t.listAttributes,(e,n)=>"start"!==n)})(e)},s=>((t,e)=>{A(t)&&A(e)&&(t.listType=e.listType,t.listAttributes={...e.listAttributes})})(e,s))}),t),Ie=(t,e,n,s)=>{var o;if((t=>8===ee(t)||"#comment"===N(t))(s))return[{depth:t+1,content:null!==(o=s.dom.nodeValue)&&void 0!==o?o:"",dirty:!1,isSelected:!1,isComment:!0}];e.each(a=>{J(a.start,s)&&n.set(!0)});const r=((t,e,n)=>Y(t).filter(ht).map(s=>({depth:e,dirty:!1,isSelected:n,content:Os(t),itemAttributes:St(t),listAttributes:St(s),listType:N(s),isInPreviousLi:!1})))(s,t,n.get());e.each(a=>{J(a.end,s)&&n.set(!1)});const i=yt(s).filter(q).map(a=>rt(t,e,n,a)).getOr([]);return r.toArray().concat(i)},Qs=(t,e,n,s)=>tt(s).filter(q).fold(()=>Ie(t,e,n,s),o=>{const r=H(F(s),(i,a,l)=>{if(0===l)return i;if((t=>Yt(t,"LI"))(a))return i.concat(Ie(t,e,n,a));{const c={isFragment:!0,depth:t,content:[a],isSelected:!1,dirty:!1,parentListType:N(o)};return i.concat(c)}},[]);return rt(t,e,n,o).concat(r)}),rt=(t,e,n,s)=>Qt(F(s),o=>(q(o)?rt:Qs)(t+1,e,n,o)),eo=(t,e,n)=>{const s=((t,e)=>{const n=(t=>{let e=!1;return{get:()=>e,set:o=>{e=o}}})();return L(t,o=>({sourceList:o,entries:rt(0,e,n,o)}))})(e,(t=>{const e=L(Et(t),m_fromDom);return ft(G(e,Wt(Te)),G(dt(e),Wt(Te)),(n,s)=>({start:n,end:s}))})(t));p(s,o=>{((t,e)=>{p(v(t,Bs),n=>((t,e)=>{switch(t){case"Indent":e.depth++;break;case"Outdent":e.depth--;break;case"Flatten":e.depth=0}e.dirty=!0})(e,n))})(o.entries,n);const r=((t,e)=>Qt(((t,e)=>{if(0===t.length)return[];{let n=e(t[0]);const s=[];let o=[];for(let r=0,i=t.length;r<i;r++){const a=t[r],l=e(a);l!==n&&(s.push(o),o=[]),n=l,o.push(a)}return 0!==o.length&&s.push(o),s}})(e,we),n=>Z(n).exists(we)?((t,e)=>{const n=Oe(e);return zs(t.contentDocument,n).toArray()})(t,n):((t,e)=>{const n=Oe(e);return L(n,s=>{const o=Ee(s)?ke([m_fromHtml(`\x3c!--${s.content}--\x3e`)]):ke(s.content),r=A(s)?s.itemAttributes:{};return m_fromDom(he(t,o.dom,r))})})(t,n)))(t,o.entries);p(r,i=>{w(t,"Indent"===n?"IndentList":"OutdentList",i.dom)}),((t,e)=>{p(e,n=>{ie(t,n)})})(o.sourceList,r),Ct(o.sourceList)})},no=(t,e)=>{const n=me((t=>{const e=(t=>{const e=Se(t,t.selection.getStart()),n=v(t.selection.getSelectedBlocks(),Gn);return e.toArray().concat(n)})(t),n=(t=>{const e=t.selection.getStart();return t.dom.getParents(e,"ol,ul",j(t,e))})(t);return G(n,s=>(t=>Y(t).exists(e=>st(e.dom)&&tt(e).exists(n=>!g(n.dom))&&yt(e).exists(n=>!g(n.dom))))(m_fromDom(s))).fold(()=>Cs(t,e),s=>[s])})(t)),s=me((t=>v(Et(t),Zn))(t));let o=!1;if(n.length||s.length){const r=t.selection.getBookmark();eo(t,n,e),((t,e,n)=>{p(n,"Indent"===e?is:s=>((t,e)=>{rs(e)?vt(e,"dt"):ye(e)&&(t=>u.from(t.dom.parentElement).map(m_fromDom))(e).each(n=>((t,e,n)=>{const o=S.select('span[data-mce-type="bookmark"]',e),r=he(t,n),i=S.createRng();i.setStartAfter(n),i.setEndAfter(e);const a=i.extractContents();for(let c=a.firstChild;c;c=c.firstChild)if("LI"===c.nodeName&&t.dom.isEmpty(c)){S.remove(c);break}t.dom.isEmpty(a)||S.insertAfter(a,e),S.insertAfter(r,e);const l=n.parentElement;l&&T(t.dom,l)&&(c=>{const d=c.parentNode;d&&b.each(o,f=>{d.insertBefore(f,n.parentNode)}),S.remove(c)})(l),S.remove(n),T(t.dom,e)&&S.remove(e)})(t,n.dom,e.dom))})(t,s))})(t,e,s),t.selection.moveToBookmark(r),t.selection.setRng(ot(t.selection.getRng())),t.nodeChanged(),o=!0}return o},At=(t,e)=>!(t=>{const e=E(t);return Ne(t,e)||!t.selection.isEditable()})(t)&&no(t,e),$e=t=>At(t,"Indent"),Bt=t=>At(t,"Outdent"),ct=t=>At(t,"Flatten"),Ot=t=>"\ufeff"===t;var t,co=tinymce.util.Tools.resolve("tinymce.dom.BookmarkManager");const I=Nt.DOM,$=t=>{const e={},n=s=>{let o=t[s?"startContainer":"endContainer"],r=t[s?"startOffset":"endOffset"];if(V(o)){const i=I.create("span",{"data-mce-type":"bookmark"});o.hasChildNodes()?(r=Math.min(r,o.childNodes.length-1),s?o.insertBefore(i,o.childNodes[r]):I.insertAfter(i,o.childNodes[r])):o.appendChild(i),o=i,r=0}e[s?"startContainer":"endContainer"]=o,e[s?"startOffset":"endOffset"]=r};return n(!0),t.collapsed||n(),e},x=t=>{const e=s=>{let r=t[s?"startContainer":"endContainer"],i=t[s?"startOffset":"endOffset"];if(r){if(V(r)&&r.parentNode){const a=r;i=(a=>{var l;let c=null===(l=a.parentNode)||void 0===l?void 0:l.firstChild,d=0;for(;c;){if(c===a)return d;(!V(c)||"bookmark"!==c.getAttribute("data-mce-type"))&&d++,c=c.nextSibling}return-1})(r),r=r.parentNode,I.remove(a),!r.hasChildNodes()&&I.isBlock(r)&&r.appendChild(I.create("br"))}t[s?"startContainer":"endContainer"]=r,t[s?"startOffset":"endOffset"]=i}};e(!0),e();const n=I.createRng();return n.setStart(t.startContainer,t.startOffset),t.endContainer&&n.setEnd(t.endContainer,t.endOffset),ot(n)},P=t=>{switch(t){case"UL":return"ToggleUlList";case"OL":return"ToggleOlList";case"DL":return"ToggleDLList"}},xe=(t,e)=>{b.each(e,(n,s)=>{t.setAttribute(s,n)})},M=(t,e,n)=>{((t,e,n)=>{t.setStyle(e,"list-style-type",n["list-style-type"]?n["list-style-type"]:null)})(t,e,n),((t,e,n)=>{xe(e,n["list-attributes"]),b.each(t.select("li",e),s=>{xe(s,n["list-item-attributes"])})})(t,e,n)},it=(t,e)=>h(e)&&!kt(e,t.schema.getBlockElements()),It=(t,e,n,s)=>{let o=e[n?"startContainer":"endContainer"];const r=e[n?"startOffset":"endOffset"];V(o)&&(o=o.childNodes[Math.min(r,o.childNodes.length-1)]||o),!n&&k(o.nextSibling)&&(o=o.nextSibling);const a=(l,c)=>{var d;const f=new ue(l,(l=>{for(;!t.dom.isBlock(l)&&l.parentNode&&s!==l;)l=l.parentNode;return l})(l)),y=c?"next":"prev";let B;for(;B=f[y]();)if(!Yn(t,B)&&!Ot(B.textContent)&&0!==(null===(d=B.textContent)||void 0===d?void 0:d.length))return u.some(B);return u.none()};if(n&&C(o))if(Ot(o.textContent))o=a(o,!1).getOr(o);else for(null!==o.parentNode&&it(t,o.parentNode)&&(o=o.parentNode);null!==o.previousSibling&&(it(t,o.previousSibling)||C(o.previousSibling));)o=o.previousSibling;if(!n&&C(o))if(Ot(o.textContent))o=a(o,!0).getOr(o);else for(null!==o.parentNode&&it(t,o.parentNode)&&(o=o.parentNode);null!==o.nextSibling&&(it(t,o.nextSibling)||C(o.nextSibling));)o=o.nextSibling;for(;o.parentNode!==s;){const l=o.parentNode;if(Dt(t,o)||/^(TD|TH)$/.test(l.nodeName))return o;o=l}return o},$t=(t,e,n)=>{const s=t.selection.getRng();let o="LI";const r=j(t,((t,e)=>{const n=t.selection.getStart(!0),s=It(t,e,!0,t.getBody());return((t,e)=>((t,e,n)=>bt(t,e,void 0).isSome())(t,function tn(t,...e){return(...n)=>{const s=e.concat(n);return t.apply(null,s)}}(J,e)))(m_fromDom(s),m_fromDom(e.commonAncestorContainer))?e.commonAncestorContainer:n})(t,s)),i=t.dom;if("false"===i.getContentEditable(t.selection.getNode()))return;"DL"===(e=e.toUpperCase())&&(o="DT");const a=$(s),l=v(((t,e,n)=>
1{const s=[],o=t.dom,r=It(t,e,!0,n),i=It(t,e,!1,n);let a;const l=[];for(let c=r;c&&(l.push(c),c!==i);c=c.nextSibling);return b.each(l,c=>{var d;if(Dt(t,c))return s.push(c),void(a=null);if(o.isBlock(c)||k(c))return k(c)&&o.remove(c),void(a=null);const f=c.nextSibling;co.isBookmarkNode(c)&&(g(f)||Dt(t,f)||!f&&c.parentNode===n)?a=null:(a||(a=o.create("p"),null===(d=c.parentNode)||void 0===d||d.insertBefore(a,c),s.push(a)),a.appendChild(c))}),s})(t,s,r),t.dom.isEditable);b.each(l,c=>{let d;const f=c.previousSibling,y=c.parentNode;st(y)||(f&&g(f)&&f.nodeName===e&&((t,e,n)=>{const s=t.getStyle(e,"list-style-type");let o=n?n["list-style-type"]:"";return o=null===o?"":o,s===o})(i,f,n)?(d=f,c=i.rename(c,o),f.appendChild(c)):(d=i.create(e),y.insertBefore(d,c),d.appendChild(c),c=i.rename(c,o)),((t,e,n)=>{b.each(["margin","margin-right","margin-bottom","margin-left","margin-top","padding","padding-right","padding-bottom","padding-left","padding-top"],s=>t.setStyle(e,s,""))})(i,c),M(i,d,n),xt(t.dom,d))}),t.selection.setRng(x(a))},Pe=(t,e,n)=>((t,e)=>g(t)&&t.nodeName===(null==e?void 0:e.nodeName))(e,n)&&((t,e,n)=>t.getStyle(e,"list-style-type",!0)===t.getStyle(n,"list-style-type",!0))(t,e,n)&&((t,e)=>t.className===e.className)(e,n),xt=(t,e)=>{let n,s=e.nextSibling;if(Pe(t,e,s)){const o=s;for(;n=o.firstChild;)e.appendChild(n);t.remove(o)}if(s=e.previousSibling,Pe(t,e,s)){const o=s;for(;n=o.lastChild;)e.insertBefore(n,e.firstChild);t.remove(o)}},yo=(t,e,n,s)=>{if(e.nodeName!==n){const o=t.dom.rename(e,n);M(t.dom,o,s),w(t,P(n),o)}else M(t.dom,e,s),w(t,P(n),e)},bo=(t,e,n,s)=>{if(e.classList.forEach((o,r,i)=>{o.startsWith("tox-")&&(i.remove(o),0===i.length&&e.removeAttribute("class"))}),e.nodeName!==n){const o=t.dom.rename(e,n);M(t.dom,o,s),w(t,P(n),o)}else M(t.dom,e,s),w(t,P(n),e)},Me=t=>"list-style-type"in t,Pt=(t,e,n)=>{const s=E(t);if(O(t,s))return;const o=(t=>{const e=E(t),n=t.selection.getSelectedBlocks();return((t,e)=>h(t)&&1===e.length&&e[0]===t)(e,n)?(t=>v(t.querySelectorAll(Le),g))(e):v(n,s=>g(s)&&e!==s)})(t),r=R(n)?n:{};o.length>0?((t,e,n,s,o)=>{const r=g(e);if(!r||e.nodeName!==s||Me(o)||W(e)){$t(t,s,o);const i=$(t.selection.getRng()),a=r?[e,...n]:n,l=r&&W(e)?bo:yo;b.each(a,c=>{l(t,c,s,o)}),t.selection.setRng(x(i))}else ct(t)})(t,s,o,e,r):((t,e,n,s)=>{if(e!==t.getBody())if(e)if(e.nodeName!==n||Me(s)||W(e)){const o=$(t.selection.getRng());W(e)&&e.classList.forEach((i,a,l)=>{i.startsWith("tox-")&&(l.remove(i),0===l.length&&e.removeAttribute("class"))}),M(t.dom,e,s);const r=t.dom.rename(e,n);xt(t.dom,r),t.selection.setRng(x(o)),$t(t,n,s),w(t,P(n),r)}else ct(t);else $t(t,n,s),w(t,P(n),e)})(t,s,e,r)},Re=Nt.DOM,He=(t,e)=>{const n=b.grep(t.select("ol,ul",e));b.each(n,s=>{((t,e)=>{const n=e.parentElement;if(n&&"LI"===n.nodeName&&n.firstChild===e){const s=n.previousSibling;s&&"LI"===s.nodeName?(s.appendChild(e),T(t,n)&&Re.remove(n)):Re.setStyle(n,"listStyleType","none")}if(g(n)){const s=n.previousSibling;s&&"LI"===s.nodeName&&s.appendChild(e)}})(t,s)})},Ue=(t,e,n,s)=>{let o=e.startContainer;const r=e.startOffset;if(C(o)&&(n?r<o.data.length:r>0))return o;const i=t.schema.getNonEmptyElements();V(o)&&(o=ae.getNode(o,r));const a=new ue(o,s);n&&((t,e)=>!!k(e)&&t.isBlock(e.nextSibling)&&!k(e.previousSibling))(t.dom,o)&&a.next();const l=n?a.next.bind(a):a.prev2.bind(a);for(;o=l();)if("LI"===o.nodeName&&!o.hasChildNodes()||i[o.nodeName]||C(o)&&o.data.length>0)return o;return null},Fe=(t,e)=>{const n=e.childNodes;return 1===n.length&&!g(n[0])&&t.isBlock(n[0])},vo=t=>u.from(t).map(m_fromDom).filter(Dn).exists(e=>((t,e=!1)=>oe(t)?t.dom.isContentEditable:(t=>((t,e,n)=>re((o,r)=>pt(o,r),$n,t,"[contenteditable]",void 0))(t))(t).fold(Vt(e),n=>"true"===(t=>t.dom.contentEditable)(n)))(e)&&!mt(["details"],N(e))),_e=(t,e,n)=>{let s;const o=Fe(t,n)?n.firstChild:n;if(((t,e)=>{Fe(t,e)&&vo(e.firstChild)&&t.remove(e.firstChild,!0)})(t,e),!T(t,e,!0))for(;s=e.firstChild;)o.appendChild(s)},Mt=(t,e,n)=>{let s;const o=e.parentNode;if(!pe(t,e)||!pe(t,n))return;g(n.lastChild)&&(s=n.lastChild),o===n.lastChild&&k(o.previousSibling)&&t.remove(o.previousSibling);const r=n.lastChild;r&&k(r)&&e.hasChildNodes()&&t.remove(r),T(t,n,!0)&&le(m_fromDom(n)),_e(t,e,n),s&&n.appendChild(s);const a=((t,e)=>{const n=t.dom,s=e.dom;return n!==s&&n.contains(s)})(m_fromDom(n),m_fromDom(e))?t.getParents(e,g,n):[];t.remove(e),p(a,l=>{T(t,l)&&l!==t.getRoot()&&t.remove(l)})},Eo=(t,e)=>
vendor: 6,150 bytes, line 1
1{const n=t.dom,s=t.selection,o=s.getStart(),r=wt(t,o),i=n.getParent(s.getStart(),"LI",r);if(i){const a=i.parentElement;if(a===t.getBody()&&T(n,a))return!0;const l=ot(s.getRng()),c=n.getParent(Ue(t,l,e,r),"LI",r),d=c&&(e?n.isChildOf(i,c):n.isChildOf(c,i));if(c&&c!==i&&!d)return t.undoManager.transact(()=>{e?((t,e,n,s)=>{const o=t.dom;if(o.isEmpty(s))((t,e,n)=>{le(m_fromDom(n)),Mt(t.dom,e,n),t.selection.setCursorLocation(n,0)})(t,n,s);else{const r=$(e);Mt(o,n,s),t.selection.setRng(x(r))}})(t,l,c,i):(t=>{var e;return(null===(e=t.parentNode)||void 0===e?void 0:e.firstChild)===t})(i)?Bt(t):((t,e,n,s)=>{const o=$(e);Mt(t.dom,n,s);const r=x(o);t.selection.setRng(r)})(t,l,i,c)}),!0;if(d&&!e&&c!==i)return t.undoManager.transact(()=>{if(l.commonAncestorContainer.parentElement){const f=$(l),y=l.commonAncestorContainer.parentElement;_e(n,l.commonAncestorContainer.parentElement,c),y.remove();const B=x(f);t.selection.setRng(B)}}),!0;if(!c&&!e&&0===l.startOffset&&0===l.endOffset)return t.undoManager.transact(()=>{ct(t)}),!0}return!1},ze=t=>{const e=t.selection.getStart(),n=wt(t,e);return t.dom.getParent(e,"LI,DT,DD",n)||Et(t).length>0},Rt=(t,e)=>{const n=t.selection;return!O(t,n.getNode())&&(n.isCollapsed()?((t,e)=>Eo(t,e)||((t,e)=>{const n=t.dom,s=t.selection.getStart(),o=wt(t,s),r=n.getParent(s,n.isBlock,o);if(r&&n.isEmpty(r,void 0,{checkRootAsContent:!0})){const i=ot(t.selection.getRng()),a=n.getParent(Ue(t,i,e,o),"LI",o);if(a){const l=y=>mt(["td","th","caption"],N(y)),c=y=>y.dom===o;return!!((t,e,n=jt)=>ft(t,e,n).getOr(t.isNone()&&e.isNone()))(ce(m_fromDom(a),l,c),ce(m_fromDom(i.startContainer),l,c),J)&&(t.undoManager.transact(()=>{const y=a.parentNode;((t,e,n)=>{const s=t.getParent(e.parentNode,t.isBlock,n);t.remove(e),s&&t.isEmpty(s)&&t.remove(s)})(n,r,o),xt(n,y),t.selection.select(a,!0),t.selection.collapse(e)}),!0)}}return!1})(t,e))(t,e):(t=>!!ze(t)&&(t.undoManager.transact(()=>{let e=!0;const n=()=>e=!1;t.on("input",n),t.execCommand("Delete"),t.off("input",n),e&&t.dispatch("input"),He(t.dom,t.getBody())}),!0))(t))},Ve=t=>{const e=dt(Ss(t).split("")),n=L(e,(s,o)=>{const r=s.toUpperCase().charCodeAt(0)-"A".charCodeAt(0)+1;return Math.pow(26,o)*r});return H(n,(s,o)=>s+o,0)},Ht=t=>{if(--t<0)return"";{const e=t%26,n=Math.floor(t/26);return Ht(n)+String.fromCharCode("A".charCodeAt(0)+e)}},Fo=t=>{const e=parseInt(t.start,10);return Xt(t.listStyleType,"upper-alpha")?Ht(e):Xt(t.listStyleType,"lower-alpha")?Ht(e).toLowerCase():t.start},Ut=(t,e)=>()=>{const n=E(t);return h(n)&&n.nodeName===e},je=t=>{t.addCommand("mceListProps",()=>{(t=>{const e=E(t);!fe(e)||O(t,e)||t.windowManager.open({title:"List Properties",body:{type:"panel",items:[{type:"input",name:"start",label:"Start list at number",inputMode:"numeric"}]},initialData:{start:Fo({start:t.dom.getAttrib(e,"start","1"),listStyleType:u.from(t.dom.getStyle(e,"list-style-type"))})},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:n=>{(t=>{switch((t=>(t=>/^[0-9]+$/.test(t))(t)?2:(t=>/^[A-Z]+$/.test(t))(t)?0:(t=>/^[a-z]+$/.test(t))(t)?1:(t=>!(t=>t.length>0)(t))(t)?3:4)(t)){case 2:return u.some({listStyleType:u.none(),start:t});case 0:return u.some({listStyleType:u.some("upper-alpha"),start:Ve(t).toString()});case 1:return u.some({listStyleType:u.some("lower-alpha"),start:Ve(t).toString()});case 3:return u.some({listStyleType:u.none(),start:""});case 4:return u.none()}})(n.getData().start).each(o=>{t.execCommand("mceListUpdate",!1,{attrs:{start:"1"===o.start?"":o.start},styles:{"list-style-type":o.listStyleType.getOr("")}})}),n.close()}})})(t)})};var Vo=tinymce.util.Tools.resolve("tinymce.html.Node");const We=t=>3===t.type,qe=t=>0===t.length,jo=t=>{const e=(o,r)=>{const i=Vo.create("li");p(o,a=>i.append(a)),r?t.insert(i,r,!0):t.append(i)},s=H(t.children(),(o,r)=>We(r)?[...o,r]:qe(o)||We(r)?o:(e(o,r),[]),[]);qe(s)||e(s)},Ke=(t,e)=>n=>(n.setEnabled(t.selection.isEditable()),De(t,o=>{n.setActive(ve(o.parents,e)),n.setEnabled(!O(t,o.element)&&t.selection.isEditable())})),Go=(t,e)=>n=>De(t,o=>n.setEnabled(ve(o.parents,e)&&!O(t,o.element)));Ft.add("lists",t=>((t=>{t.options.register("lists_indent_on_tab",{processor:"boolean",default:!0})})(t),(t=>{t.on("PreInit",()=>{const{parser:e}=t;e.addNodeFilter("ul,ol",n=>p(n,jo))})})(t),t.hasPlugin("rtc",!0)?je(t):((t=>{ns(t)&&(t=>{t.on("keydown",e=>{e.keyCode!==nt.TAB||nt.metaKeyPressed(e)||t.undoManager.transact(()=>{(e.shiftKey?Bt(t):$e(t))&&e.preventDefault()})})})(t),(t=>{t.on("ExecCommand",e=>{const n=e.command.toLowerCase();("delete"===n||"forwarddelete"===n)&&ze(t)&&He(t.dom,t.getBody())}),t.on("keydown",e=>{e.keyCode===nt.BACKSPACE?Rt(t,!1)&&e.preventDefault():e.keyCode===nt.DELETE&&Rt(t,!0)&&e.preventDefault()})})(t)})(t),(t=>{t.on("BeforeExecCommand",e=>{const n=e.command.toLowerCase();"indent"===n?$e(t):"outdent"===n&&Bt(t)}),t.addCommand("InsertUnorderedList",(e,n)=>{Pt(t,"UL",n)}),t.addCommand("InsertOrderedList",(e,n)=>{Pt(t,"OL",n)}),t.addCommand("InsertDefinitionList",(e,n)=>{Pt(t,"DL",n)}),t.addCommand("RemoveList",()=>{ct(t)}),je(t),t.addCommand("mceListUpdate",(e,n)=>{R(n)&&((t,e)=>{const n=E(t);null===n||O(t,n)||t.undoManager.transact(()=>{R(e.styles)&&t.dom.setStyles(n,e.styles),R(e.attrs)&&Lt(e.attrs,(s,o)=>t.dom.setAttrib(n,o,s))})})(t,n)}),t.addQueryStateHandler("InsertUnorderedList",Ut(t,"UL")),t.addQueryStateHandler("InsertOrderedList",Ut(t,"OL")),t.addQueryStateHandler("InsertDefinitionList",Ut(t,"DL"))})(t)),(t=>{const e=n=>()=>t.execCommand(n);t.hasPlugin("advlist")||(t.ui.registry.addToggleButton("numlist",{icon:"ordered-list",active:!1,tooltip:"Numbered list",onAction:e("InsertOrderedList"),onSetup:Ke(t,"OL")}),t.ui.registry.addToggleButton("bullist",{icon:"unordered-list",active:!1,tooltip:"Bullet list",onAction:e("InsertUnorderedList"),onSetup:Ke(t,"UL")}))})(t),(t=>{const e={text:"List properties...",icon:"ordered-list",onAction:()=>t.execCommand("mceListProps"),onSetup:Go(t,"OL")};t.ui.registry.addMenuItem("listprops",e),t.ui.registry.addContextMenu("lists",{update:n=>{const s=E(t,n);return fe(s)?["listprops"]:[]}})})(t),(t=>({backspaceDelete:e=>{Rt(t,e)}}))(t)))}()}}]);

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.