From 16fe435de49958e5dcf2cc79d1e5b706e16c4f19 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 25 Oct 2018 18:18:31 +0200 Subject: [PATCH] W.I.P. implementing TinyMCE editor and deprecating CKEditor: - Fix language setting - Update TinyMCE --- api/js/etemplate/et2_widget_htmlarea.js | 15 ++++++++++++++- api/js/tinymce/plugins/advlist/plugin.min.js | 2 +- api/js/tinymce/plugins/imagetools/plugin.min.js | 2 +- api/js/tinymce/plugins/link/plugin.min.js | 2 +- api/js/tinymce/plugins/table/plugin.min.js | 2 +- api/js/tinymce/plugins/toc/plugin.min.js | 2 +- api/js/tinymce/skins/oxide/skin.min.css | 2 +- api/js/tinymce/themes/silver/theme.min.js | 2 +- api/js/tinymce/tinymce.min.js | 4 ++-- api/src/Html.php | 13 +++++++++++-- api/src/Mail/Smime.php | 6 ++++++ 11 files changed, 40 insertions(+), 12 deletions(-) diff --git a/api/js/etemplate/et2_widget_htmlarea.js b/api/js/etemplate/et2_widget_htmlarea.js index 0355bbe5ae..5e1201ce28 100644 --- a/api/js/etemplate/et2_widget_htmlarea.js +++ b/api/js/etemplate/et2_widget_htmlarea.js @@ -121,7 +121,7 @@ var et2_htmlarea = (function(){ "use strict"; return et2_inputWidget.extend([et2 height: this.options.height, width: this.options.width, min_height: 100, - language: egw.preference('lang', 'common'), + language: et2_htmlarea.LANGUAGE_CODE[egw.preference('lang', 'common')], paste_data_images: true, browser_spellcheck: true, contextmenu: false, @@ -360,5 +360,18 @@ jQuery.extend(et2_htmlarea, { FONT_SIZE_FORMATS: { pt: "8pt 10pt 12pt 14pt 18pt 24pt 36pt 48pt 72pt", px:"8px 10px 12px 14px 18px 24px 36px 48px 72px" + }, + + /** + * language code represention for TinyMCE lang code + */ + LANGUAGE_CODE: { + bg: "bg_BG", ca: "ca", cs: "cs", da: "da", de: "de", en:"en_CA", + el:"el", "es-es":"es", et: "et", eu: "eu" , fa: "fa_IR", fi: "fi", + fr: "fr_FR", hi:"", hr:"hr", hu:"hu_HU", id: "id", it: "it", iw: "", + ja: "ja", ko: "ko_KR", lo: "", lt: "lt", lv: "lv", nl: "nl", no: "nb_NO", + pl: "pl", pt: "pt_PT", "pt-br": "pt_BR", ru: "ru", sk: "sk", sl: "sl_SI", + sv: "sv_SE", th: "th_TH", tr: "tr_TR", uk: "en_GB", vi: "vi_VN", zh: "zh_CN", + "zh-tw": "zh_TW" } }); \ No newline at end of file diff --git a/api/js/tinymce/plugins/advlist/plugin.min.js b/api/js/tinymce/plugins/advlist/plugin.min.js index c112569196..0150ae0003 100644 --- a/api/js/tinymce/plugins/advlist/plugin.min.js +++ b/api/js/tinymce/plugins/advlist/plugin.min.js @@ -1 +1 @@ -!function(){"use strict";var n,t,e,r,o=tinymce.util.Tools.resolve("tinymce.PluginManager"),v=tinymce.util.Tools.resolve("tinymce.util.Tools"),O=function(n,t,e){var r="UL"===t?"InsertUnorderedList":"InsertOrderedList";n.execCommand(r,!1,!1===e?null:{"list-style-type":e})},u=function(e){e.addCommand("ApplyUnorderedListStyle",function(n,t){O(e,"UL",t["list-style-type"])}),e.addCommand("ApplyOrderedListStyle",function(n,t){O(e,"OL",t["list-style-type"])})},i=function(n){var t=n.getParam("advlist_number_styles","default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman");return t?t.split(/[ ,]/):[]},l=function(n){var t=n.getParam("advlist_bullet_styles","default,circle,square");return t?t.split(/[ ,]/):[]},c=function(n){return function(){return n}},s=c(!1),f=c(!0),a=s,d=f,p=function(){return g},g=(r={fold:function(n,t){return n()},is:a,isSome:a,isNone:d,getOr:e=function(n){return n},getOrThunk:t=function(n){return n()},getOrDie:function(n){throw new Error(n||"error: getOrDie called on none.")},getOrNull:function(){return null},getOrUndefined:function(){return undefined},or:e,orThunk:t,map:p,ap:p,each:function(){},bind:p,flatten:p,exists:a,forall:d,filter:p,equals:n=function(n){return n.isNone()},equals_:n,toArray:function(){return[]},toString:c("none()")},Object.freeze&&Object.freeze(r),r),m=function(e){var n=function(){return e},t=function(){return o},r=function(n){return n(e)},o={fold:function(n,t){return t(e)},is:function(n){return e===n},isSome:d,isNone:a,getOr:n,getOrThunk:n,getOrDie:n,getOrNull:n,getOrUndefined:n,or:t,orThunk:t,map:function(n){return m(n(e))},ap:function(n){return n.fold(p,function(n){return m(n(e))})},each:function(n){n(e)},bind:r,flatten:n,exists:r,forall:r,filter:function(n){return n(e)?o:g},equals:function(n){return n.is(e)},equals_:function(n,t){return n.fold(a,function(n){return t(e,n)})},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},y=function(n){return null===n||n===undefined?g:m(n)},h=function(n){return n&&/^(TH|TD)$/.test(n.nodeName)},L=function(r){return function(n){return n&&/^(OL|UL|DL)$/.test(n.nodeName)&&(e=n,(t=r).$.contains(t.getBody(),e));var t,e}},b=function(n){var t=n.dom.getParent(n.selection.getNode(),"ol,ul"),e=n.dom.getStyle(t,"listStyleType");return y(e)},S=function(n,t,e){var r=function(n,t){for(var e=0;ethis.length())return null;for(var e=this.littleEndian?0:-8*(n-1),r=0,o=0;rthis.length())return null;for(var e=this.littleEndian?0:-8*(n-1),r=0,o=0;r'),o.close()}}var i,u},T=tinymce.util.Tools.resolve("tinymce.util.Tools"),C=function(n,t){var e,r,o=["noopener"],i=n?n.split(/\s+/):[],u=function(n){return n.filter(function(n){return-1===T.inArray(o,n)})};return(i=t?(e=u(e=i)).length?e.concat(o):o:u(i)).length?(r=i,T.trim(r.sort().join(" "))):null},N=function(n,t){return t=t||n.selection.getNode(),D(t)?n.dom.select("a[href]",t)[0]:n.dom.getParent(t,"a[href]")},S=function(n){return n&&"A"===n.nodeName&&n.href},D=function(n){return n&&"FIGURE"===n.nodeName&&/\bimage\b/i.test(n.className)},M=function(n,t){var e,r;(r=n.dom.select("img",t)[0])&&(e=n.dom.getParents(r,"a[href]",t)[0])&&(e.parentNode.insertBefore(r,e),n.dom.remove(e))},z=function(n,t,e){var r,o;(o=n.dom.select("img",t)[0])&&(r=n.dom.create("a",e),o.parentNode.insertBefore(r,o),r.appendChild(o))},U=function(o,i){return function(r){o.undoManager.transact(function(){var n=o.selection.getNode(),t=N(o,n),e={href:r.href,target:r.target?r.target:null,rel:r.rel?r.rel:null,"class":r["class"]?r["class"]:null,title:r.title?r.title:null};m(o.settings)||!1!==b(o.settings)||(e.rel=C(e.rel,"_blank"===e.target)),r.href===i.href&&(i.attach(),i={}),t?(o.focus(),r.hasOwnProperty("text")&&("innerText"in t?t.innerText=r.text:t.textContent=r.text),o.dom.setAttribs(t,e),o.selection.select(t),o.undoManager.add()):D(n)?z(o,n,e):r.hasOwnProperty("text")?o.insertContent(o.dom.createHTML("a",e,o.dom.encode(r.text))):o.execCommand("mceInsertLink",!1,e)})}},E=function(t){return function(){t.undoManager.transact(function(){var n=t.selection.getNode();D(n)?M(t,n):t.execCommand("unlink")})}},P=function(n){return 0]+>[^<]+<\/a>$/.test(n)||-1===n.indexOf("href=")))},R=N,K=function(n,t){var e=t?t.innerText||t.textContent:n.getContent({format:"text"});return e.replace(/\uFEFF/g,"")},q=C,j=function(){for(var n=[],t=0;t"));var r={href:t.url.value,attach:t.url.meta!==undefined&&t.url.meta.attach?t.url.meta.attach:function(){}},o=U(u,r),i=E(u);t.url.value?((c.is(t.text)||a.optNode.isNone()&&!t.text)&&delete e.text,console.log("result data",e),bn(u,l,e).get(function(n){console.log("preprocessed",n),o(n)}),n.close()):i()});return e=d,o=(t=n).anchor.text.map(function(){return{name:"text",type:"input",label:"Text to display"}}).toArray(),i=t.flags.titleEnabled?[{name:"title",type:"input",label:"Title"}]:[],f={url:{value:(r=t).anchor.url.getOr(""),meta:{attach:function(){},text:r.anchor.text.getOr(""),original:{value:r.anchor.url.getOr("")}}},text:r.anchor.text.getOr(""),title:r.anchor.title.getOr(""),anchor:r.anchor.url.getOr(""),link:r.anchor.url.getOr(""),rel:r.anchor.rel.getOr(""),target:r.anchor.target.getOr(""),classz:r.anchor.linkClass.getOr("")},s=dn(f,t),g=t.catalogs,{title:"Insert link",size:"normal",body:{type:"panel",items:en([[{name:"url",type:"urlinput",filetype:"file",label:"Url"}],o,i,function(n){for(var t=[],e=function(n){t.push(n)},r=0;r'),o.close()}}var i,u},T=tinymce.util.Tools.resolve("tinymce.util.Tools"),C=function(n,t){var e,r,o=["noopener"],i=n?n.split(/\s+/):[],u=function(n){return n.filter(function(n){return-1===T.inArray(o,n)})};return(i=t?(e=u(e=i)).length?e.concat(o):o:u(i)).length?(r=i,T.trim(r.sort().join(" "))):null},N=function(n,t){return t=t||n.selection.getNode(),D(t)?n.dom.select("a[href]",t)[0]:n.dom.getParent(t,"a[href]")},S=function(n){return n&&"A"===n.nodeName&&n.href},D=function(n){return n&&"FIGURE"===n.nodeName&&/\bimage\b/i.test(n.className)},M=function(n,t){var e,r;(r=n.dom.select("img",t)[0])&&(e=n.dom.getParents(r,"a[href]",t)[0])&&(e.parentNode.insertBefore(r,e),n.dom.remove(e))},z=function(n,t,e){var r,o;(o=n.dom.select("img",t)[0])&&(r=n.dom.create("a",e),o.parentNode.insertBefore(r,o),r.appendChild(o))},U=function(o,i){return function(r){o.undoManager.transact(function(){var n=o.selection.getNode(),t=N(o,n),e={href:r.href,target:r.target?r.target:null,rel:r.rel?r.rel:null,"class":r["class"]?r["class"]:null,title:r.title?r.title:null};m(o.settings)||!1!==b(o.settings)||(e.rel=C(e.rel,"_blank"===e.target)),r.href===i.href&&(i.attach(),i={}),t?(o.focus(),r.hasOwnProperty("text")&&("innerText"in t?t.innerText=r.text:t.textContent=r.text),o.dom.setAttribs(t,e),o.selection.select(t),o.undoManager.add()):D(n)?z(o,n,e):r.hasOwnProperty("text")?o.insertContent(o.dom.createHTML("a",e,o.dom.encode(r.text))):o.execCommand("mceInsertLink",!1,e)})}},E=function(t){return function(){t.undoManager.transact(function(){var n=t.selection.getNode();D(n)?M(t,n):t.execCommand("unlink")})}},P=function(n){return 0]+>[^<]+<\/a>$/.test(n)||-1===n.indexOf("href=")))},R=N,K=function(n,t){var e=t?t.innerText||t.textContent:n.getContent({format:"text"});return e.replace(/\uFEFF/g,"")},q=C,j=function(){for(var n=[],t=0;t"));var r={href:t.url.value,attach:t.url.meta!==undefined&&t.url.meta.attach?t.url.meta.attach:function(){}},o=U(u,r),i=E(u);t.url.value?((c.is(t.text)||a.optNode.isNone()&&!t.text)&&delete e.text,console.log("result data",e),bn(u,l,e).get(function(n){console.log("preprocessed",n),o(n)}),n.close()):i()});return e=d,o=(t=n).anchor.text.map(function(){return{name:"text",type:"input",label:"Text to display"}}).toArray(),i=t.flags.titleEnabled?[{name:"title",type:"input",label:"Title"}]:[],f={url:{value:(r=t).anchor.url.getOr(""),meta:{attach:function(){},text:r.anchor.text.getOr(""),original:{value:r.anchor.url.getOr("")}}},text:r.anchor.text.getOr(""),title:r.anchor.title.getOr(""),anchor:r.anchor.url.getOr(""),link:r.anchor.url.getOr(""),rel:r.anchor.rel.getOr(""),target:r.anchor.target.getOr(""),classz:r.anchor.linkClass.getOr("")},s=dn(f,t),g=t.catalogs,{title:"Insert link",size:"normal",body:{type:"panel",items:en([[{name:"url",type:"urlinput",filetype:"file",label:"Url"}],o,i,function(n){for(var t=[],e=function(n){t.push(n)},r=0;rt.maxRow()||st.maxCol()||(Un.getAt(n,l,s).filter(r).isNone()?(o=f,i=e[l].element(),u=le.fromTag("td"),et.append(u,le.fromTag("br")),(o?et.append:et.prepend)(i,u)):f=!0)}(m,g,p,d),o=e,f=p,s=I(an.firstLayer(o,"tr"),function(e){return 0===e.dom().childElementCount}),k(s,rt.remove),f.minCol()!==f.maxCol()&&f.minRow()!==f.maxRow()||k(an.firstLayer(o,"th,td"),function(e){yn.remove(e,"rowspan"),yn.remove(e,"colspan")}),yn.remove(o,"width"),yn.remove(o,"height"),Jn.remove(o,"width"),Jn.remove(o,"height"),e},ut=function(e,n){return le.fromDom(e.dom().cloneNode(n))},ct=function(e){return ut(e,!0)},at=function(e,n){var t=le.fromTag(n),r=yn.clone(e);return yn.setAll(t,r),t},lt=function(e){return ut(e,!1)},ft=ct,st=function(e,n){var t=at(e,n),r=un.children(ct(e));return nt.append(t,r),t},dt=function Ts(t,r){var o=function(e){return t(e)?R.from(e.dom().nodeValue):R.none()},e=Ke.detect().browser,n=e.isIE()&&10===e.version.major?function(e){try{return o(e)}catch(n){return R.none()}}:o;return{get:function(e){if(!t(e))throw new Error("Can only get "+r+" value of a "+r+" node");return n(e).getOr("")},getOption:n,set:function(e,n){if(!t(e))throw new Error("Can only set raw "+r+" value of a "+r+" node");e.dom().nodeValue=n}}}(pn.isText,"text"),mt={get:function(e){return dt.get(e)},getOption:function(e){return dt.getOption(e)},set:function(e,n){dt.set(e,n)}},gt=function(e){return"img"===pn.name(e)?1:mt.getOption(e).fold(function(){return un.children(e).length},function(e){return e.length})},pt=["img","br"],ht=gt,vt=function(e){return mt.getOption(e).filter(function(e){return 0!==e.trim().length||-1=e.startCol()&&n.column()+n.colspan()-1<=e.finishCol()&&n.row()>=e.startRow()&&n.row()+n.rowspan()-1<=e.finishRow()},$t=function(e,n){var t=n.column(),r=n.column()+n.colspan()-1,o=n.row(),i=n.row()+n.rowspan()-1;return t<=e.finishCol()&&r>=e.startCol()&&o<=e.finishRow()&&i>=e.startRow()},Jt=function(e,n){for(var t=!0,r=S(Kt,n),o=n.startRow();o<=n.finishRow();o++)for(var i=n.startCol();i<=n.finishCol();i++)t=t&&Un.getAt(e,o,i).exists(r);return t?R.some(n):R.none()},Qt=function(e,n,t){var r=Un.findItem(e,n,Qe.eq),o=Un.findItem(e,t,Qe.eq);return r.bind(function(r){return o.map(function(e){return n=r,t=e,ce.bounds(Math.min(n.row(),t.row()),Math.min(n.column(),t.column()),Math.max(n.row()+n.rowspan()-1,t.row()+t.rowspan()-1),Math.max(n.column()+n.colspan()-1,t.column()+t.colspan()-1));var n,t})})},Zt=Qt,er=function(n,e,t){return Qt(n,e,t).bind(function(e){return Jt(n,e)})},nr=function(r,e,o,i){return Un.findItem(r,e,Qe.eq).bind(function(e){var n=0=n.length-1)return R.none();var e=n[t].fold(function(){var e=H(n.slice(0,t));return Go(e,function(e,n){return e.map(function(e){return{value:e,delta:n+1}})})},function(e){return R.some({value:e,delta:0})}),r=n[t+1].fold(function(){var e=n.slice(t+1);return Go(e,function(e,n){return e.map(function(e){return{value:e,delta:n+1}})})},function(e){return R.some({value:e,delta:1})});return e.bind(function(t){return r.map(function(e){var n=e.delta+t.delta;return Math.abs(e.value-t.value)/n})})},ui=function(e,n,t){var r=e();return M(r,n).orThunk(function(){return R.from(r[0]).orThunk(t)}).map(function(e){return e.element()})},ci=function(t){var e=t.grid(),n=oi(0,e.columns()),r=oi(0,e.rows());return N(n,function(n){return ui(function(){return j(r,function(e){return Un.getAt(t,e,n).filter(function(e){return e.column()===n}).fold(C([]),function(e){return[e]})})},function(e){return 1===e.colspan()},function(){return Un.getAt(t,0,n)})})},ai=function(t){var e=t.grid(),n=oi(0,e.rows()),r=oi(0,e.columns());return N(n,function(n){return ui(function(){return j(r,function(e){return Un.getAt(t,n,e).filter(function(e){return e.row()===n}).fold(C([]),function(e){return[e]})})},function(e){return 1===e.rowspan()},function(){return Un.getAt(t,n,0)})})},li=function(e,n,t,r,o){var i=le.fromTag("div");return Jn.setAll(i,{position:"absolute",left:n-r/2+"px",top:t+"px",height:o+"px",width:r+"px"}),yn.setAll(i,{"data-column":e,role:"presentation"}),i},fi=function(e,n,t,r,o){var i=le.fromTag("div");return Jn.setAll(i,{position:"absolute",left:n+"px",top:t-o/2+"px",height:o+"px",width:r+"px"}),yn.setAll(i,{"data-row":e,role:"presentation"}),i},si=function(e){var n=e.replace(/\./g,"-");return{resolve:function(e){return n+"-"+e}}},di={resolve:si("ephox-snooker").resolve},mi=function(e,n){var t=yn.get(e,n);return t===undefined||""===t?[]:t.split(" ")},gi=mi,pi=function(e,n,t){var r=mi(e,n).concat([t]);return yn.set(e,n,r.join(" ")),!0},hi=function(e,n,t){var r=I(mi(e,n),function(e){return e!==t});return 0=n.length||e.column()>Ko.cellLength(n[0]))return Xi.error("invalid start address out of table bounds, row: "+e.row()+", column: "+e.column());var r=n.slice(e.row()),o=r[0].cells().slice(e.column()),i=Ko.cellLength(t[0]),u=t.length;return Xi.value({rowDelta:C(r.length-u),colDelta:C(o.length-i)})},Zi=function(e,n){var t=Ko.cellLength(e[0]),r=Ko.cellLength(n[0]);return{rowDelta:C(0),colDelta:C(t-r)}},eu=function(e,n,t){var r=n.colDelta()<0?Ji:u;return(n.rowDelta()<0?$i:u)(r(e,Math.abs(n.colDelta()),t),Math.abs(n.rowDelta()),t)},nu=function(e,n,t,r){if(0===e.length)return e;for(var o=n.startRow();o<=n.finishRow();o++)for(var i=n.startCol();i<=n.finishCol();i++)Ko.mutateCell(e[o],i,ce.elementnew(r(),!1));return e},tu=function(e,n,t,r){for(var o=!0,i=0;i',n.insertBefore(r,n.firstChild)),""===i.align?Nc(e,n):Ec(e,n,i.align),e.focus(),e.addVisual()})},da=function(n,e){var t,r=n.dom,o={height:"",width:"100%",cellspacing:"",cellpadding:"",caption:"unchecked","class":"",align:"",type:"",border:""};!1===e?(t=r.getParent(n.selection.getStart(),"table"))?o=zc(n,t,vc(n)):vc(n)&&Ac.extend(o,{borderstyle:"",bordercolor:"",backgroundcolor:""}):(Ac.extend(o,{cols:"1",rows:"1"}),vc(n)&&Ac.extend(o,{borderstyle:"",bordercolor:"",backgroundcolor:""}));var i=0=e.left&&n<=e.right&&t>=e.top&&t<=e.bottom},fl=function(e,n,t,r,o){if(0===o)return 0;if(n===r)return o-1;for(var i=r,u=1;u ("+e.right()+", "+e.bottom()+")"}},sf=function(e){return ff.nu({left:e.left,top:e.top,right:e.right,bottom:e.bottom})},df=function(e,n){return R.some(e.getRect(n))},mf=function(e,n,t){return pn.isElement(n)?df(e,n).map(sf):pn.isText(n)?(r=e,o=n,i=t,0<=i&&it.right();var n,t})})},Pf={point:ff.getTop,adjuster:function(e,n,t,r,o){var i=ff.moveUp(o,5);return Math.abs(t.top()-r.top())<1?If.retry(i):t.bottom()o.bottom()?If.retry(i):t.top()===o.bottom()?If.retry(ff.moveDown(o,1)):Bf(e,n,o)?If.retry(ff.translate(i,5,0)):If.none()},move:ff.moveDown,gather:kf.after},Wf=function(t,r,o,i,u){return 0===u?R.some(i):(a=t,l=i.left(),f=r.point(i),a.elementFromPoint(l,f).filter(function(e){return"table"===pn.name(e)}).isSome()?(n=i,c=u-1,Wf(t,e=r,o,e.move(n,5),c)):t.situsFromPoint(i.left(),r.point(i)).bind(function(e){return e.start().fold(R.none,function(n,e){return gf(t,n,e).bind(function(e){return r.adjuster(t,n,e,o,i).fold(R.none,function(e){return Wf(t,r,o,e,u-1)})}).orThunk(function(){return R.some(i)})},R.none)}));var e,n,c,a,l,f},_f=function(n,t,e){var r,o,i,u=n.move(e,5),c=Wf(t,n,e,u,100).getOr(u);return(r=n,o=c,i=t,r.point(o)>i.getInnerHeight()?R.some(r.point(o)-i.getInnerHeight()):r.point(o)<0?R.some(-r.point(o)):R.none()).fold(function(){return t.situsFromPoint(c.left(),n.point(c))},function(e){return t.scrollBy(0,e),t.situsFromPoint(c.left(),n.point(c)-e)})},Lf={tryUp:S(_f,Pf),tryDown:S(_f,Mf),ieTryUp:function(e,n){return e.situsFromPoint(n.left(),n.top()-5)},ieTryDown:function(e,n){return e.situsFromPoint(n.left(),n.bottom()+5)},getJumpSize:C(5)},qf=Cr([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),jf=function(e){return Bn.closest(e,"tr")},zf={verify:function(c,e,n,t,r,a,o){return Bn.closest(t,"td,th",o).bind(function(u){return Bn.closest(e,"td,th",o).map(function(i){return Qe.eq(u,i)?Qe.eq(t,u)&&ht(u)===r?a(i):qf.none("in same cell"):Xt.sharedOne(jf,[u,i]).fold(function(){return n=i,t=u,r=(e=c).getRect(n),(o=e.getRect(t)).right>r.left&&o.leftt.maxRow()||st.maxCol()||(Xn.getAt(n,l,s).filter(r).isNone()?(o=f,i=e[l].element(),u=de.fromTag("td"),ot.append(u,de.fromTag("br")),(o?ot.append:ot.prepend)(i,u)):f=!0)}(m,g,p,d),o=e,f=p,s=I(dn.firstLayer(o,"tr"),function(e){return 0===e.dom().childElementCount}),k(s,ct.remove),f.minCol()!==f.maxCol()&&f.minRow()!==f.maxRow()||k(dn.firstLayer(o,"th,td"),function(e){Rn.remove(e,"rowspan"),Rn.remove(e,"colspan")}),Rn.remove(o,"width"),Rn.remove(o,"height"),nt.remove(o,"width"),nt.remove(o,"height"),e},ft=function(e,n){return de.fromDom(e.dom().cloneNode(n))},st=function(e){return ft(e,!0)},dt=function(e,n){var t=de.fromTag(n),r=Rn.clone(e);return Rn.setAll(t,r),t},mt=function(e){return ft(e,!1)},gt=st,pt=function(e,n){var t=dt(e,n),r=fn.children(st(e));return it.append(t,r),t},ht=function Is(t,r){var o=function(e){return t(e)?R.from(e.dom().nodeValue):R.none()},e=Ze.detect().browser,n=e.isIE()&&10===e.version.major?function(e){try{return o(e)}catch(n){return R.none()}}:o;return{get:function(e){if(!t(e))throw new Error("Can only get "+r+" value of a "+r+" node");return n(e).getOr("")},getOption:n,set:function(e,n){if(!t(e))throw new Error("Can only set raw "+r+" value of a "+r+" node");e.dom().nodeValue=n}}}(wn.isText,"text"),vt={get:function(e){return ht.get(e)},getOption:function(e){return ht.getOption(e)},set:function(e,n){ht.set(e,n)}},bt=function(e){return"img"===wn.name(e)?1:vt.getOption(e).fold(function(){return fn.children(e).length},function(e){return e.length})},wt=["img","br"],yt=bt,xt=function(e){return vt.getOption(e).filter(function(e){return 0!==e.trim().length||-1=e.startCol()&&n.column()+n.colspan()-1<=e.finishCol()&&n.row()>=e.startRow()&&n.row()+n.rowspan()-1<=e.finishRow()},er=function(e,n){var t=n.column(),r=n.column()+n.colspan()-1,o=n.row(),i=n.row()+n.rowspan()-1;return t<=e.finishCol()&&r>=e.startCol()&&o<=e.finishRow()&&i>=e.startRow()},nr=function(e,n){for(var t=!0,r=S(Zt,n),o=n.startRow();o<=n.finishRow();o++)for(var i=n.startCol();i<=n.finishCol();i++)t=t&&Xn.getAt(e,o,i).exists(r);return t?R.some(n):R.none()},tr=function(e,n,t){var r=Xn.findItem(e,n,tn.eq),o=Xn.findItem(e,t,tn.eq);return r.bind(function(r){return o.map(function(e){return n=r,t=e,fe.bounds(Math.min(n.row(),t.row()),Math.min(n.column(),t.column()),Math.max(n.row()+n.rowspan()-1,t.row()+t.rowspan()-1),Math.max(n.column()+n.colspan()-1,t.column()+t.colspan()-1));var n,t})})},rr=tr,or=function(n,e,t){return tr(n,e,t).bind(function(e){return nr(n,e)})},ir=function(r,e,o,i){return Xn.findItem(r,e,tn.eq).bind(function(e){var n=0=n.length-1)return R.none();var e=n[t].fold(function(){var e=F(n.slice(0,t));return $o(e,function(e,n){return e.map(function(e){return{value:e,delta:n+1}})})},function(e){return R.some({value:e,delta:0})}),r=n[t+1].fold(function(){var e=n.slice(t+1);return $o(e,function(e,n){return e.map(function(e){return{value:e,delta:n+1}})})},function(e){return R.some({value:e,delta:1})});return e.bind(function(t){return r.map(function(e){var n=e.delta+t.delta;return Math.abs(e.value-t.value)/n})})},fi=function(e,n,t){var r=e();return M(r,n).orThunk(function(){return R.from(r[0]).orThunk(t)}).map(function(e){return e.element()})},si=function(t){var e=t.grid(),n=ai(0,e.columns()),r=ai(0,e.rows());return N(n,function(n){return fi(function(){return j(r,function(e){return Xn.getAt(t,e,n).filter(function(e){return e.column()===n}).fold(C([]),function(e){return[e]})})},function(e){return 1===e.colspan()},function(){return Xn.getAt(t,0,n)})})},di=function(t){var e=t.grid(),n=ai(0,e.rows()),r=ai(0,e.columns());return N(n,function(n){return fi(function(){return j(r,function(e){return Xn.getAt(t,n,e).filter(function(e){return e.row()===n}).fold(C([]),function(e){return[e]})})},function(e){return 1===e.rowspan()},function(){return Xn.getAt(t,n,0)})})},mi=function(e,n,t,r,o){var i=de.fromTag("div");return nt.setAll(i,{position:"absolute",left:n-r/2+"px",top:t+"px",height:o+"px",width:r+"px"}),Rn.setAll(i,{"data-column":e,role:"presentation"}),i},gi=function(e,n,t,r,o){var i=de.fromTag("div");return nt.setAll(i,{position:"absolute",left:n+"px",top:t-o/2+"px",height:o+"px",width:r+"px"}),Rn.setAll(i,{"data-row":e,role:"presentation"}),i},pi=function(e){var n=e.replace(/\./g,"-");return{resolve:function(e){return n+"-"+e}}},hi={resolve:pi("ephox-snooker").resolve},vi=function(e,n){var t=Rn.get(e,n);return t===undefined||""===t?[]:t.split(" ")},bi=vi,wi=function(e,n,t){var r=vi(e,n).concat([t]);return Rn.set(e,n,r.join(" ")),!0},yi=function(e,n,t){var r=I(vi(e,n),function(e){return e!==t});return 0=n.length||e.column()>Zo.cellLength(n[0]))return Qi.error("invalid start address out of table bounds, row: "+e.row()+", column: "+e.column());var r=n.slice(e.row()),o=r[0].cells().slice(e.column()),i=Zo.cellLength(t[0]),u=t.length;return Qi.value({rowDelta:C(r.length-u),colDelta:C(o.length-i)})},ru=function(e,n){var t=Zo.cellLength(e[0]),r=Zo.cellLength(n[0]);return{rowDelta:C(0),colDelta:C(t-r)}},ou=function(e,n,t){var r=n.colDelta()<0?nu:u;return(n.rowDelta()<0?eu:u)(r(e,Math.abs(n.colDelta()),t),Math.abs(n.rowDelta()),t)},iu=function(e,n,t,r){if(0===e.length)return e;for(var o=n.startRow();o<=n.finishRow();o++)for(var i=n.startCol();i<=n.finishCol();i++)Zo.mutateCell(e[o],i,fe.elementnew(r(),!1));return e},uu=function(e,n,t,r){for(var o=!0,i=0;i',n.insertBefore(r,n.firstChild)),""===i.align?Wc(e,n):Pc(e,n,i.align),e.focus(),e.addVisual()})},wa=function(n,e){var t,r=n.dom,o=$c(n,Sc(n));!1===e?(t=r.getParent(n.selection.getStart(),"table"))?o=Yc(n,t,Sc(n)):Sc(n)&&Bc.extend(o,{borderstyle:"",bordercolor:"",backgroundcolor:""}):(Bc.extend(o,{cols:"1",rows:"1"}),Sc(n)&&Bc.extend(o,{borderstyle:"",bordercolor:"",backgroundcolor:""}));var i=0=e.left&&n<=e.right&&t>=e.top&&t<=e.bottom},vl=function(e,n,t,r,o){if(0===o)return 0;if(n===r)return o-1;for(var i=r,u=1;u ("+e.right()+", "+e.bottom()+")"}},bf=function(e){return vf.nu({left:e.left,top:e.top,right:e.right,bottom:e.bottom})},wf=function(e,n){return R.some(e.getRect(n))},yf=function(e,n,t){return wn.isElement(n)?wf(e,n).map(bf):wn.isText(n)?(r=e,o=n,i=t,0<=i&&it.right();var n,t})})},zf={point:vf.getTop,adjuster:function(e,n,t,r,o){var i=vf.moveUp(o,5);return Math.abs(t.top()-r.top())<1?qf.retry(i):t.bottom()o.bottom()?qf.retry(i):t.top()===o.bottom()?qf.retry(vf.moveDown(o,1)):jf(e,n,o)?qf.retry(vf.translate(i,5,0)):qf.none()},move:vf.moveDown,gather:Lf.after},Ff=function(t,r,o,i,u){return 0===u?R.some(i):(a=t,l=i.left(),f=r.point(i),a.elementFromPoint(l,f).filter(function(e){return"table"===wn.name(e)}).isSome()?(n=i,c=u-1,Ff(t,e=r,o,e.move(n,5),c)):t.situsFromPoint(i.left(),r.point(i)).bind(function(e){return e.start().fold(R.none,function(n,e){return xf(t,n,e).bind(function(e){return r.adjuster(t,n,e,o,i).fold(R.none,function(e){return Ff(t,r,o,e,u-1)})}).orThunk(function(){return R.some(i)})},R.none)}));var e,n,c,a,l,f},Uf=function(n,t,e){var r,o,i,u=n.move(e,5),c=Ff(t,n,e,u,100).getOr(u);return(r=n,o=c,i=t,r.point(o)>i.getInnerHeight()?R.some(r.point(o)-i.getInnerHeight()):r.point(o)<0?R.some(-r.point(o)):R.none()).fold(function(){return t.situsFromPoint(c.left(),n.point(c))},function(e){return t.scrollBy(0,e),t.situsFromPoint(c.left(),n.point(c)-e)})},Vf={tryUp:S(Uf,zf),tryDown:S(Uf,Hf),ieTryUp:function(e,n){return e.situsFromPoint(n.left(),n.top()-5)},ieTryDown:function(e,n){return e.situsFromPoint(n.left(),n.bottom()+5)},getJumpSize:C(5)},Gf=Dr([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),Yf=function(e){return _n.closest(e,"tr")},Xf={verify:function(c,e,n,t,r,a,o){return _n.closest(t,"td,th",o).bind(function(u){return _n.closest(e,"td,th",o).map(function(i){return tn.eq(u,i)?tn.eq(t,u)&&yt(u)===r?a(i):Gf.none("in same cell"):Qt.sharedOne(Yf,[u,i]).fold(function(){return n=i,t=u,r=(e=c).getRect(n),(o=e.getRect(t)).right>r.left&&o.left","<"+i+' contenteditable="true">'+s.DOM.encode(c)+a),e=0;e";else for(n=d;n
  • ";if(l+=''+o.title+"",r!==o.level&&r)for(n=o.level;r
  • ";else l+="
  • ",r||(l+="");d=o.level}return l},g=function(t){var e=a(t),n=t.$("."+e);n.length&&t.undoManager.transact(function(){n.html(d(t))})},o={hasHeaders:function(t){return 0'+n+"")):g(t)},updateToc:g},r=function(t){t.addCommand("mceInsertToc",function(){o.insertToc(t)}),t.addCommand("mceUpdateToc",function(){o.updateToc(t)})},h=function(t){var n=t.$,o=a(t);t.on("PreProcess",function(t){var e=n("."+o,t.node);e.length&&(e.removeAttr("contentEditable"),e.find("[contenteditable]").removeAttr("contentEditable"))}),t.on("SetContent",function(){var t=n("."+o);t.length&&(t.attr("contentEditable",!1),t.children(":first-child").attr("contentEditable",!0))})},p=function(n){return function(t){var e=t.control;n.on("LoadContent SetContent change",function(){e.disabled(n.readonly||!o.hasHeaders(n))})}},T=function(t){var e;t.ui.registry.addButton("toc",{tooltip:"Table of Contents",onAction:function(){return t.execCommand("mceInsertToc")},icon:"toc",onPostRender:p(t)}),t.ui.registry.addButton("tocupdate",{tooltip:"Update",onAction:function(){return t.execCommand("mceUpdateToc")},icon:"reload"}),t.ui.registry.addMenuItem("toc",{text:"Table of Contents",onAction:function(){return t.execCommand("mceInsertToc")},icon:"toc",onPostRender:p(t)}),t.ui.registry.addContextToolbar("toc",{type:"contexttoolbar",items:["tocupdate"],predicate:(e=t,function(t){return t&&e.dom.is(t,"."+a(e))&&e.getBody().contains(t)}),position:"node"})};t.add("toc",function(t){r(t),T(t),h(t)}),function y(){}}(); \ No newline at end of file +!function(){"use strict";var e,n,t=tinymce.util.Tools.resolve("tinymce.PluginManager"),s=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),f=tinymce.util.Tools.resolve("tinymce.util.I18n"),i=tinymce.util.Tools.resolve("tinymce.util.Tools"),a=function(t){return t.getParam("toc_class","mce-toc")},m=function(t){var e=t.getParam("toc_header","h2");return/^h[1-6]$/.test(e)?e:"h2"},c=function(t){var e=parseInt(t.getParam("toc_depth","3"),10);return 1<=e&&e<=9?e:3},l=(e="mcetoc_",n=0,function(){var t=(new Date).getTime().toString(32);return e+t+(n++).toString(32)}),u=function u(t){var e,n=[];for(e=1;e<=t;e++)n.push("h"+e);return n.join(",")},v=function(n){var o=a(n),t=m(n),e=u(c(n)),r=n.$(e);return r.length&&/^h[1-9]$/i.test(t)&&(r=r.filter(function(t,e){return!n.dom.hasClass(e.parentNode,o)})),i.map(r,function(t){return{id:t.id?t.id:l(),level:parseInt(t.nodeName.replace(/^H/i,""),10),title:n.$.text(t),element:t}})},d=function(t){var e,n,o,r,i,c,a,l="",u=v(t),d=function(t){var e,n=9;for(e=0;e","<"+i+' contenteditable="true">'+s.DOM.encode(c)+a),e=0;e";else for(n=d;n
  • ";if(l+=''+o.title+"",r!==o.level&&r)for(n=o.level;r
  • ";else l+="
  • ",r||(l+="");d=o.level}return l},g=function(t){var e=a(t),n=t.$("."+e);n.length&&t.undoManager.transact(function(){n.html(d(t))})},o={hasHeaders:function(t){return 0'+n+"")):g(t)},updateToc:g},r=function(t){t.addCommand("mceInsertToc",function(){o.insertToc(t)}),t.addCommand("mceUpdateToc",function(){o.updateToc(t)})},h=function(t){var n=t.$,o=a(t);t.on("PreProcess",function(t){var e=n("."+o,t.node);e.length&&(e.removeAttr("contentEditable"),e.find("[contenteditable]").removeAttr("contentEditable"))}),t.on("SetContent",function(){var t=n("."+o);t.length&&(t.attr("contentEditable",!1),t.children(":first-child").attr("contentEditable",!0))})},p=function(n){return function(t){var e=function(){return t.setDisabled(n.readonly||!o.hasHeaders(n))};return e(),n.on("LoadContent SetContent change",e),function(){return n.on("LoadContent SetContent change",e)}}},T=function(t){var e;t.ui.registry.addButton("toc",{icon:"toc",tooltip:"Table of Contents",onAction:function(){return t.execCommand("mceInsertToc")},onSetup:p(t)}),t.ui.registry.addButton("tocupdate",{icon:"reload",tooltip:"Update",onAction:function(){return t.execCommand("mceUpdateToc")}}),t.ui.registry.addMenuItem("toc",{icon:"toc",text:"Table of Contents",onAction:function(){return t.execCommand("mceInsertToc")},onSetup:p(t)}),t.ui.registry.addContextToolbar("toc",{items:["tocupdate"],predicate:(e=t,function(t){return t&&e.dom.is(t,"."+a(e))&&e.getBody().contains(t)}),scope:"node",position:"node"})};t.add("toc",function(t){r(t),T(t),h(t)}),function C(){}}(); \ No newline at end of file diff --git a/api/js/tinymce/skins/oxide/skin.min.css b/api/js/tinymce/skins/oxide/skin.min.css index a618d9fdf2..360c4e672b 100644 --- a/api/js/tinymce/skins/oxide/skin.min.css +++ b/api/js/tinymce/skins/oxide/skin.min.css @@ -1 +1 @@ -.tox,.tox *:not(svg){background:transparent;border:0;box-sizing:content-box;color:#222f3e;cursor:auto;direction:ltr;float:none;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:16px;font-weight:normal;height:auto;line-height:normal;margin:0;max-width:none;outline:0;padding:0;position:static;-webkit-tap-highlight-color:transparent;text-align:left;text-decoration:none;text-shadow:none;vertical-align:initial;white-space:normal;width:auto}.tox *:not(svg){color:inherit;cursor:inherit;font-size:inherit}.tox-tinymce{border:1px solid #cccccc;box-sizing:border-box;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;overflow:hidden;padding:0;visibility:inherit !important}.tox-tinymce-aux{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}.tox-tinymce *:focus,.tox-tinymce-aux *:focus{outline:none}.tox .tox-button{background-color:#3498db;background-image:none;background-position:none;background-repeat:none;border-color:#3498db;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:14px;font-weight:bold;letter-spacing:1;line-height:24px;margin:0;outline:none;padding:4px 16px;text-align:center;text-decoration:none;text-transform:capitalize;white-space:nowrap}.tox .tox-button[disabled]{background-color:#3498db;background-image:none;border-color:#3498db;box-shadow:none;color:rgba(255,255,255,0.5);cursor:not-allowed}.tox .tox-button:focus:not(:disabled){background-color:#258cd1;background-image:none;border-color:#258cd1;box-shadow:none;color:#fff}.tox .tox-button:hover:not(:disabled){background-color:#258cd1;background-image:none;border-color:#258cd1;box-shadow:none;color:#fff}.tox .tox-button:active:not(:disabled){background-color:#217dbb;background-image:none;border-color:#217dbb;box-shadow:none;color:#fff}.tox .tox-button--icon{padding:4px}.tox .tox-button--icon .tox-icon svg{display:block;fill:currentColor}.tox .tox-button-link{background:0;border:none;box-sizing:border-box;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:16px;font-weight:normal;line-height:1.3;margin:0;padding:0;white-space:nowrap}.tox .tox-button-link--sm{font-size:14px}.tox .tox-button--naked{background-color:transparent;border-color:transparent;box-shadow:unset;color:#222f3e}.tox .tox-button--naked:hover:not(:disabled){background-color:#e3e3e3;border-color:#e3e3e3;box-shadow:none;color:#222f3e}.tox .tox-button--naked:focus:not(:disabled){background-color:#e3e3e3;border-color:#e3e3e3;box-shadow:none;color:#222f3e}.tox .tox-button--naked:active:not(:disabled){background-color:#d6d6d6;border-color:#d6d6d6;box-shadow:none;color:#222f3e}.tox .tox-button--naked .tox-icon svg{fill:currentColor}.tox .tox-button--naked.tox-button--icon{color:currentColor}.tox .tox-button--naked.tox-button--icon:hover:not(:disabled){color:#222f3e}.tox .tox-button--secondary{background-color:#f0f0f0;background-image:none;background-position:none;background-repeat:none;border-color:#f0f0f0;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;color:#222f3e;outline:none;padding:4px 16px;text-decoration:none;text-transform:capitalize}.tox .tox-button--secondary[disabled]{background-color:#f0f0f0;background-image:none;border-color:#f0f0f0;box-shadow:none;color:rgba(34,47,62,0.5)}.tox .tox-button--secondary:focus:not(:disabled){background-color:#e3e3e3;background-image:none;border-color:#e3e3e3;box-shadow:none;color:#222f3e}.tox .tox-button--secondary:hover:not(:disabled){background-color:#e3e3e3;background-image:none;border-color:#e3e3e3;box-shadow:none;color:#222f3e}.tox .tox-button--secondary:active:not(:disabled){background-color:#d6d6d6;background-image:none;border-color:#d6d6d6;box-shadow:none;color:#222f3e}.tox .tox-checkbox{align-items:center;border-radius:3px;cursor:pointer;display:flex;height:36px;min-width:36px}.tox .tox-checkbox__input{height:1px;left:-10000px;overflow:hidden;position:absolute;top:auto;width:1px}.tox .tox-checkbox__icons{height:24px;width:24px}.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:block;fill:rgba(34,47,62,0.3)}.tox .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:none;fill:#3498db}.tox .tox-checkbox__icons .tox-checkbox-icon__checked svg{display:none;fill:#3498db}.tox .tox-checkbox__label{margin-left:4px}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__checked svg{display:block}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:block}.tox input.tox-checkbox__input:focus+.tox-checkbox__icons{border-radius:3px;box-shadow:0 0 0 1px #3498db;padding:calc(3px)}.tox .tox-slider{align-items:center;display:flex;height:24px;justify-content:center;position:relative;width:100%}.tox .tox-slider__rail{background-color:transparent;border:1px solid #cccccc;border-radius:6px;height:6px;min-width:120px;width:100%}.tox .tox-slider__handle{background-color:#3498db;border-radius:1.5px;box-shadow:none;height:24px;left:50%;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%);width:3px}.tox .tox-spinner{display:flex}.tox .tox-spinner>div{animation:tam-bouncing-dots 1.5s ease-in-out 0s infinite both;background-color:rgba(34,47,62,0.6);border-radius:100%;height:8px;width:8px}.tox .tox-spinner>div:nth-child(1){animation-delay:-0.32s}.tox .tox-spinner>div:nth-child(2){animation-delay:-0.16s}.tox .tox-spinner>div:not(:first-child){margin-left:4px}@keyframes tam-bouncing-dots{0%,80%,100%{transform:scale(0)}40%{transform:scale(1)}}.tox .tox-tooltip{display:inline-block;padding:8px;position:relative}.tox .tox-tooltip__body{background-color:#222f3e;border-radius:3px;box-shadow:0 2px 4px rgba(34,47,62,0.3);color:rgba(255,255,255,0.75);font-size:14px;padding:4px 8px}.tox .tox-tooltip__arrow{position:absolute}.tox .tox-tooltip--down .tox-tooltip__arrow{border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #222f3e;bottom:0;left:50%;position:absolute;transform:translateX(-50%)}.tox .tox-tooltip--up .tox-tooltip__arrow{border-bottom:8px solid #222f3e;border-left:8px solid transparent;border-right:8px solid transparent;left:50%;position:absolute;top:0;transform:translateX(-50%)}.tox .tox-tooltip--right .tox-tooltip__arrow{border-bottom:8px solid transparent;border-left:8px solid #222f3e;border-top:8px solid transparent;position:absolute;right:0;top:50%;transform:translateY(-50%)}.tox .tox-tooltip--left .tox-tooltip__arrow{border-bottom:8px solid transparent;border-right:8px solid #222f3e;border-top:8px solid transparent;left:0;position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-color-picker-container{display:flex;flex-direction:row;height:225px;margin:0}.tox .tox-sv-palette{border:1px solid black;display:flex;height:100%;margin-right:15px}.tox .tox-sv-palette-spectrum{height:100%}.tox .tox-sv-palette,.tox .tox-sv-palette-spectrum{width:225px}.tox .tox-sv-palette-thumb{background:none;border:1px solid black;border-radius:50%;height:12px;position:absolute;width:12px}.tox .tox-sv-palette-inner-thumb{border:1px solid white;border-radius:50%;height:10px;position:absolute;width:10px}.tox .tox-hue-slider{border:1px solid black;height:100%;margin-right:15px;width:25px}.tox .tox-hue-slider-spectrum{background:linear-gradient(to bottom, #f00, #ff0080, #f0f, #8000ff, #00f, #0080ff, #0ff, #00ff80, #0f0, #80ff00, #ff0, #ff8000, #f00);height:100%;width:100%}.tox .tox-hue-slider,.tox .tox-hue-slider-spectrum{width:20px}.tox .tox-hue-slider-thumb{background:white;border:1px solid black;height:4px;margin-left:-1px;width:100%}.tox .tox-rgb-form{display:flex;flex-direction:column;justify-content:space-between}.tox .tox-rgb-form div{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px;width:inherit}.tox .tox-rgb-form input{width:6em}.tox .tox-rgb-form input.tox-invalid{border:1px solid red !important}.tox .tox-rgb-form label{margin-right:.5em}.tox .tox-rgb-form .tox-rgba-preview{border:1px solid black;flex-grow:2;margin-bottom:0}.tox .tox-toolbar .tox-swatches{margin:2px 0 3px 4px}.tox .tox-swatches__row{display:flex}.tox .tox-swatch{height:30px;transition:transform .15s,box-shadow .15s;width:30px}.tox .tox-swatch:hover{transform:scale(.8)}.tox .tox-swatch--outline:hover,.tox .tox-swatch--remove:hover{box-shadow:0 0 0 2px #cccccc}.tox .tox-swatch--remove svg{stroke:#e74c3c}.tox .tox-swatches__picker-btn{align-items:center;background-color:transparent;border:0;cursor:pointer;display:flex;height:30px;justify-content:center;margin-left:auto;outline:none;padding:0;width:30px}.tox .tox-swatches__picker-btn svg{height:24px;width:24px}.tox .tox-swatches__picker-btn:hover{background:#dee0e2}.tox .tox-swatches__picker-btn:active>svg{transform:translateY(1px)}.tox .tox-collection--toolbar .tox-collection__group{display:flex;padding:0}.tox .tox-collection--grid .tox-collection__group{display:flex;flex-wrap:wrap;max-height:208px;overflow-x:hidden;overflow-y:auto;padding:0}.tox .tox-collection--list .tox-collection__group{border-bottom-width:0;border-color:#cccccc;border-left-width:0;border-right-width:0;border-style:solid;border-top-width:1px;padding:4px 0}.tox .tox-collection--list .tox-collection__group:first-child{border-top-width:0}.tox .tox-collection__item{align-items:center;color:#222f3e;cursor:pointer;display:flex;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.tox .tox-collection__item.tox-collection__item--active{background-color:#dee0e2}.tox .tox-collection__item.tox-collection__item--state-disabled{background-color:unset;color:rgba(34,47,62,0.5);cursor:default}.tox .tox-collection--list .tox-collection__item{padding:4px 8px}.tox .tox-collection--toolbar .tox-collection__item{border-radius:3px;padding:4px}.tox .tox-collection--grid .tox-collection__item{border-radius:3px;padding:4px}.tox .tox-collection__item-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.tox .tox-collection__item-icon svg{fill:currentColor}.tox .tox-collection--toolbar-lg .tox-collection__item-icon{height:48px;width:48px}.tox .tox-collection--list .tox-collection__item-icon:first-child{margin-right:8px}.tox .tox-collection__item[role="menuitemcheckbox"]:not(.tox-collection__item--enabled) .tox-collection__item-checkmark svg{display:none}.tox .tox-collection__item-label{color:currentColor;display:inline-block;flex:1;font-size:14px;font-style:normal;font-weight:normal;line-height:24px;text-transform:none}.tox .tox-collection__item-accessory{color:rgba(34,47,62,0.6);display:inline-block;font-size:14px;height:24px;line-height:24px;margin-left:16px;text-align:right;text-transform:normal}.tox .tox-comment{display:flex;flex-direction:column;justify-content:space-between;padding:16px}.tox .tox-comment__item{background:#fff;border:1px solid #cccccc;border-radius:3px;box-shadow:0 4px 8px 0 rgba(34,47,62,0.1);padding:8px}.tox .tox-comment__item+.tox-comment__item{margin-top:8px}.tox .tox-comment__body{color:#222f3e;font-size:14px;font-style:normal;font-weight:normal;line-height:1.3;margin-top:8px;text-transform:initial}.tox .tox-comment__body p{margin:0}.tox .tox-comment__reply{display:flex;flex-wrap:wrap;justify-content:space-between}.tox .tox-comment__reply>*:first-child{margin-bottom:8px;width:100%}.tox .tox-user{align-items:center;display:flex}.tox .tox-user__avatar svg{fill:rgba(34,47,62,0.6)}.tox .tox-user__name{color:rgba(34,47,62,0.6);font-size:12px;font-style:normal;font-weight:bold;text-transform:uppercase}.tox .tox-user__avatar+.tox-user__name{margin-left:8px}.tox .tox-dialog-wrap{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:200}.tox .tox-dialog-wrap__backdrop{background-color:rgba(255,255,255,0.75);bottom:0;left:0;position:absolute;right:0;top:0;z-index:201}.tox .tox-dialog{background-color:#fff;border-color:#cccccc;border-radius:3px;border-style:solid;border-width:1px;box-shadow:0 16px 16px -10px rgba(34,47,62,0.15),0 0 40px 1px rgba(34,47,62,0.15);max-height:100%;max-width:480px;overflow:hidden;position:relative;width:95vw;z-index:202}.tox .tox-dialog__header{align-items:center;background-color:#fff;border-bottom:none;color:#222f3e;display:flex;font-size:16px;justify-content:space-between;margin-bottom:16px;padding:8px 16px 0 16px;position:relative}.tox .tox-dialog__header .tox-button{z-index:1}.tox .tox-dialog__draghandle{cursor:grab;height:100%;left:0;position:absolute;top:0;width:100%}.tox .tox-dialog__draghandle:active{cursor:grabbing}.tox .tox-dialog__dismiss{margin-left:auto}.tox .tox-dialog__title{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:20px;font-style:normal;font-weight:normal;line-height:1.3;margin:0;text-transform:normal}.tox .tox-dialog__body{color:#222f3e;display:flex;font-size:16px;font-style:normal;font-weight:normal;line-height:1.3;padding:0 16px;text-align:left;text-transform:normal}.tox .tox-dialog__body-nav{align-items:flex-start;display:flex;flex-direction:column;margin-right:32px}.tox .tox-dialog__body-nav-item{border-bottom:2px solid transparent;color:rgba(34,47,62,0.6);display:inline-block;font-size:14px;line-height:1.3;margin-bottom:8px;text-decoration:none}.tox .tox-dialog__body-nav-item--active{border-bottom:2px solid #3498db;color:#3498db}.tox .tox-dialog__body-content{flex:1;max-height:650px;overflow:auto}.tox .tox-dialog__body-content>*{margin-bottom:0;margin-top:16px}.tox .tox-dialog__body-content>*:first-child{margin-top:0}.tox .tox-dialog__body-content>*:last-child{margin-bottom:0}.tox .tox-dialog__body-content>*:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog--width-lg{max-width:1200px}.tox .tox-dialog--width-md{max-width:800px}.tox .tox-dialog--width-md .tox-dialog__body-content{overflow:auto}.tox .tox-dialog__body-content--centered{text-align:center}.tox .tox-dialog__body-content--spacious{margin-bottom:16px}.tox .tox-dialog__footer{align-items:center;background-color:#fff;border-top:1px solid #cccccc;display:flex;justify-content:space-between;margin-top:16px;padding:8px 16px}.tox .tox-dialog__footer .tox-dialog__footer-start>*,.tox .tox-dialog__footer .tox-dialog__footer-end>*{margin-left:8px}.tox .tox-dialog__busy-spinner{align-items:center;background-color:rgba(255,255,255,0.75);bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:203}.tox .tox-dialog__table{border-collapse:collapse}.tox .tox-dialog__table thead th{font-weight:bold;padding-top:8px}.tox .tox-dialog__table thead tr{border-bottom:none}.tox .tox-dialog__table tbody tr{border-bottom:1px solid #cccccc}.tox .tox-dialog__table tbody tr:last-child{border-bottom:none}.tox .tox-dialog__table td{padding-bottom:8px;padding-top:8px}.tox .tox-dropzone-container{display:flex}.tox .tox-dropzone{align-items:center;background:#fff;border:2px dashed #cccccc;box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;min-height:100px;padding:10px}.tox .tox-dropzone p{margin:0}.tox .tox-edit-area{border:1px solid #cccccc;display:flex;flex:1}.tox .tox-edit-area__iframe{border:0;box-sizing:border-box;flex:1;width:100%}.tox .tox-label,.tox .tox-toolbar-label{color:rgba(34,47,62,0.6);display:block;font-size:14px;font-style:normal;font-weight:normal;line-height:1.3;padding:0 8px 0 0;text-transform:normal;white-space:nowrap}.tox .tox-toolbar-label{padding:0 8px}.tox .tox-form>.tox-form__group:not(:last-child){margin-bottom:4px}.tox .tox-form--2col{display:-ms-grid;display:grid;grid-gap:0 16px;-ms-grid-columns:1fr [2];grid-template-columns:repeat(2, 1fr)}.tox .tox-form__controls-h-stack{align-items:center;display:flex}.tox .tox-form__controls-h-stack>*:not(:first-child){margin-left:4px}.tox .tox-form__group--inline{align-items:center;display:flex}.tox .tox-selectfield{cursor:pointer;position:relative}.tox .tox-selectfield select{padding-right:24px}.tox .tox-selectfield svg{pointer-events:none;position:absolute;right:8px;top:50%;transform:translateY(-50%)}.tox .tox-textfield,.tox .tox-selectfield select,.tox .tox-textarea,.tox .tox-toolbar-textfield{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#cccccc;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#222f3e;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:16px;line-height:24px;margin:0;outline:none;padding:5px 4.75px;resize:none;width:100%}.tox .tox-textfield:focus,.tox .tox-textarea:focus{border-color:#3498db;box-shadow:none;outline:none}.tox .tox-toolbar-textfield{border-color:transparent;margin-bottom:3px;margin-top:2px}.tox .tox-toolbar-textfield+*{margin-left:4px}.tox .tox-naked-btn{background-color:transparent;border:0;border-color:transparent;box-shadow:unset;color:#3498db;cursor:pointer;display:block;margin:0;padding:0}.tox .tox-naked-btn svg{display:block;fill:#222f3e}.tox .tox-image-tools{width:100%}.tox .tox-image-tools__toolbar{align-items:center;display:flex;justify-content:center}.tox .tox-image-tools__image{background-color:#666;position:relative;width:100%}.tox .tox-image-tools__image,.tox .tox-image-tools__image+.tox-image-tools__toolbar{margin-top:8px}.tox .tox-image-tools__image-bg{background:url(data:image/gif;base64,R0lGODdhDAAMAIABAMzMzP///ywAAAAADAAMAAACFoQfqYeabNyDMkBQb81Uat85nxguUAEAOw==)}.tox .tox-image-tools__toolbar>.tox-button+.tox-slider{margin-left:32px}.tox .tox-image-tools__toolbar>.tox-slider+.tox-button{margin-left:32px}.tox .tox-image-tools__toolbar>.tox-spacer{flex:1}.tox .tox-croprect-block{background:black;filter:alpha(opacity=50);opacity:.5;position:absolute;zoom:1}.tox .tox-croprect-handle{border:2px solid white;height:20px;left:0;position:absolute;top:0;width:20px}.tox .tox-croprect-handle-move{border:0;cursor:move;position:absolute}.tox .tox-croprect-handle-nw{border-width:2px 0 0 2px;cursor:nw-resize;left:100px;margin:-2px 0 0 -2px;top:100px}.tox .tox-croprect-handle-ne{border-width:2px 2px 0 0;cursor:ne-resize;left:200px;margin:-2px 0 0 -20px;top:100px}.tox .tox-croprect-handle-sw{border-width:0 0 2px 2px;cursor:sw-resize;left:100px;margin:-20px 2px 0 -2px;top:200px}.tox .tox-croprect-handle-se{border-width:0 2px 2px 0;cursor:se-resize;left:200px;margin:-20px 0 0 -20px;top:200px}.tox .tox-insert-table-picker{display:flex;flex-wrap:wrap;width:169px}.tox .tox-insert-table-picker>div{border-color:#cccccc;border-style:solid;border-width:0 1px 1px 0;box-sizing:content-box;height:16px;width:16px}.tox .tox-insert-table-picker>div:nth-child(10n){border-right:0}.tox .tox-menu .tox-insert-table-picker{margin:-4px 0}.tox .tox-insert-table-picker .tox-insert-table-picker__selected{background-color:rgba(52,152,219,0.5);border-color:rgba(52,152,219,0.5)}.tox .tox-insert-table-picker__label{color:rgba(34,47,62,0.6);display:block;font-size:14px;padding:4px;text-align:center;width:100%}.tox .tox-menu{background-color:#fff;border-color:#cccccc;border-radius:3px;border-style:solid;border-width:1px;box-shadow:0 4px 8px 0 rgba(34,47,62,0.1);color:#222f3e;display:inline-block;overflow:hidden;vertical-align:top}.tox .tox-menu.tox-collection.tox-collection--list{padding:0}.tox .tox-menu.tox-collection.tox-collection--toolbar{padding:4px}.tox .tox-menu.tox-collection.tox-collection--grid{padding:4px}.tox .tox-menu__label h1,.tox .tox-menu__label h2,.tox .tox-menu__label h3,.tox .tox-menu__label h4,.tox .tox-menu__label h5,.tox .tox-menu__label h6,.tox .tox-menu__label p,.tox .tox-menu__label blockquote,.tox .tox-menu__label code{margin:0}.tox .tox-menu__toolbar{display:flex}.tox .tox-menu__toolbar-group{align-items:center;background:transparent;border:none;border-radius:0;display:flex;flex:1;justify-content:center;margin:0 0 0 0;padding:0 4px}.tox .tox-menu__toolbar-group:not(:last-of-type){border-right:1px solid #cccccc}.tox .tox-menu__toolbar-group .tox-tbtn,.tox .tox-menu__toolbar-group .tox-toolbar-textfield,.tox .tox-menu__toolbar-group .tox-split-button{margin:0}.tox .tox-menubar{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23cccccc'/%3E%3C/svg%3E") 0 0 #fff;border:1px solid #cccccc;border-bottom-width:0;display:flex;flex-shrink:0;flex-wrap:wrap;margin:0;padding:0 4px}.tox .tox-mbtn{align-items:center;background:none;border:0;border-radius:3px;box-shadow:none;color:#222f3e;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:normal;height:34px;justify-content:center;margin:2px 0 3px 0;outline:none;overflow:hidden;padding:0 4px;text-transform:normal;width:auto}.tox .tox-mbtn:hover{background:#dee0e2;box-shadow:none;color:#222f3e}.tox .tox-mbtn:focus{background:#dee0e2;box-shadow:none;color:#222f3e}.tox .tox-mbtn--active{background:#dee0e2;box-shadow:0 1px 1px 0 rgba(0,0,0,0.1) inset;color:#222f3e}.tox .tox-mbtn__select-label{margin:0 4px}.tox .tox-mbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px;display:none}.tox .tox-notification{background-color:#fff;border-color:#c5c5c5;border-style:solid;border-width:1px;box-sizing:border-box;display:-ms-grid;display:grid;-ms-grid-columns:minmax(40px, 1fr) auto minmax(40px, 1fr);grid-template-columns:minmax(40px, 1fr) auto minmax(40px, 1fr);margin-top:5px;opacity:0;padding:5px;transition:transform 100ms ease-in,opacity 150ms ease-in}.tox .tox-notification--in{opacity:1}.tox .tox-notification--success{background-color:#dff0d8;border-color:#d6e9c6}.tox .tox-notification--error{background-color:#f2dede;border-color:#ebccd1}.tox .tox-notification--warning{background-color:#fcf8e3;border-color:#faebcc}.tox .tox-notification--info{background-color:#d9edf7;border-color:#779ecb}.tox .tox-notification__body{-ms-grid-row-align:center;align-self:center;color:#31708f;font-size:14px;grid-column-end:3;-ms-grid-column-span:1;-ms-grid-column:2;grid-column-start:2;grid-row-end:2;-ms-grid-row:1;grid-row-start:1;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;text-align:center;white-space:normal;word-break:break-all;word-break:break-word;word-wrap:break-word}.tox .tox-notification__body>*{margin:0}.tox .tox-notification__body>*+*{margin-top:1rem}.tox .tox-notification__icon{-ms-grid-row-align:center;align-self:center;-ms-grid-column-align:end;grid-column-end:2;-ms-grid-column-span:1;-ms-grid-column:1;grid-column-start:1;grid-row-end:2;-ms-grid-row:1;grid-row-start:1;justify-self:end}.tox .tox-notification__icon svg{display:block}.tox .tox-notification__dismiss{-ms-grid-row-align:start;align-self:start;-ms-grid-column-align:end;grid-column-end:4;-ms-grid-column-span:1;-ms-grid-column:3;grid-column-start:3;grid-row-end:2;-ms-grid-row:1;grid-row-start:1;justify-self:end}.tox .tox-notification .tox-progress-bar{-ms-grid-column-align:center;grid-column-end:4;-ms-grid-column-span:3;-ms-grid-column:1;grid-column-start:1;grid-row-end:3;-ms-grid-row-span:1;-ms-grid-row:2;grid-row-start:2;justify-self:center}.tox .tox-pop{display:inline-block;position:relative}.tox .tox-pop--resizing{transition:width .1s ease}.tox .tox-pop--resizing .tox-toolbar{flex-wrap:nowrap}.tox .tox-pop__dialog{border:1px solid #cccccc;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,0.15);min-width:0;overflow:hidden}.tox .tox-pop__dialog>*:not(.tox-toolbar){margin:4px 4px 4px 8px}.tox .tox-pop::before,.tox .tox-pop::after{border-style:solid;content:'';display:block;height:0;position:absolute;width:0}.tox .tox-pop.tox-pop--bottom::before,.tox .tox-pop.tox-pop--bottom::after{left:50%;top:100%}.tox .tox-pop.tox-pop--bottom::after{border-color:#fff transparent transparent transparent;border-width:8px;margin-left:-8px;margin-top:-1px}.tox .tox-pop.tox-pop--bottom::before{border-color:#cccccc transparent transparent transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--top::before,.tox .tox-pop.tox-pop--top::after{left:50%;top:0;transform:translateY(-100%)}.tox .tox-pop.tox-pop--top::after{border-color:transparent transparent #fff transparent;border-width:8px;margin-left:-8px;margin-top:1px}.tox .tox-pop.tox-pop--top::before{border-color:transparent transparent #cccccc transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--left::before,.tox .tox-pop.tox-pop--left::after{left:0;top:calc(50% - 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--left::after{border-color:transparent #fff transparent transparent;border-width:8px;margin-left:-15px}.tox .tox-pop.tox-pop--left::before{border-color:transparent #cccccc transparent transparent;border-width:10px;margin-left:-19px}.tox .tox-pop.tox-pop--right::before,.tox .tox-pop.tox-pop--right::after{left:100%;top:calc(50% + 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--right::after{border-color:transparent transparent transparent #fff;border-width:8px;margin-left:-1px}.tox .tox-pop.tox-pop--right::before{border-color:transparent transparent transparent #cccccc;border-width:10px;margin-left:-1px}.tox .tox-pop.tox-pop--align-left::before,.tox .tox-pop.tox-pop--align-left::after{left:20px}.tox .tox-pop.tox-pop--align-right::before,.tox .tox-pop.tox-pop--align-right::after{left:calc(100% - 20px)}.tox .tox-separator{background-color:#cccccc;margin:0 0 0 0;width:1px}.tox .tox-special-characters{display:block;padding-bottom:24px}@supports (display: grid){.tox .tox-special-characters{display:-ms-grid;display:grid;-ms-grid-columns:minmax(24px, 1fr) [auto-fill];grid-template-columns:repeat(auto-fill, minmax(24px, 1fr))}}.tox .tox-special-characters span{border-radius:6px;cursor:pointer;display:block;font-size:20px;height:24px;line-height:24px;position:relative;text-align:center;transition:transform .05s}.tox .tox-special-characters span:hover{background-color:#dee0e2}.tox .tox-special-characters span:hover::after{background-color:white;border-radius:3px;box-shadow:0 2px 6px rgba(0,0,0,0.25);content:attr(data-glyph);font-size:2.25em;height:1.25em;left:50%;line-height:1.25em;pointer-events:none;position:absolute;top:0;transform:translateY(-1.15em) translateX(-50%);width:1.25em;z-index:9}.tox .tox-statusbar{align-items:center;border-color:#cccccc;border-style:solid;border-width:0 1px 1px 1px;color:rgba(34,47,62,0.6);display:flex;flex-shrink:0;font-size:12px;height:18px;padding:0 8px;position:relative;text-transform:uppercase}.tox .tox-statusbar a{color:rgba(34,47,62,0.6);text-decoration:none}.tox .tox-statusbar a:hover{text-decoration:underline}.tox .tox-statusbar__path{display:flex;margin-right:auto}.tox .tox-statusbar__path>*{margin-right:4px}.tox .tox-statusbar__wordcount{margin-left:1ch}.tox .tox-statusbar__branding{margin-left:1ch}.tox .tox-statusbar__resize-handle{align-items:flex-end;align-self:stretch;cursor:nwse-resize;display:flex;justify-content:flex-end;margin-right:-8px;padding-left:1ch}.tox .tox-statusbar__resize-handle svg{display:block;fill:rgba(34,47,62,0.6)}.tox .tox-tbtn{align-items:center;background:none;border:0;border-radius:3px;box-shadow:none;color:#222f3e;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:normal;height:34px;justify-content:center;margin:2px 0 3px 0;outline:none;overflow:hidden;padding:0;text-transform:normal;width:34px}.tox .tox-tbtn svg{display:block;fill:#222f3e}.tox .tox-tbtn+.tox-tbtn{margin-left:0}.tox .tox-tbtn--enabled{background:#c8cbcf;box-shadow:none;color:#222f3e}.tox .tox-tbtn--enabled svg{fill:#222f3e}.tox .tox-tbtn:hover{background:#dee0e2;box-shadow:none;color:#222f3e}.tox .tox-tbtn:hover svg{fill:#222f3e}.tox .tox-tbtn:focus{background:#dee0e2;box-shadow:none;color:#222f3e}.tox .tox-tbtn:focus svg{fill:#222f3e}.tox .tox-tbtn:active{background:#dee0e2;box-shadow:0 1px 1px 0 rgba(0,0,0,0.1) inset;color:#222f3e}.tox .tox-tbtn:active svg{fill:#222f3e}.tox .tox-tbtn:disabled,.tox .tox-tbtn:disabled:hover{background:#fff;box-shadow:none;color:rgba(34,47,62,0.5);cursor:not-allowed}.tox .tox-tbtn:disabled svg,.tox .tox-tbtn:disabled:hover svg{fill:rgba(34,47,62,0.5)}.tox .tox-tbtn:active>*{transform:translateY(1px)}.tox .tox-tbtn--md{height:51px;width:51px}.tox .tox-tbtn--lg{flex-direction:column;height:68px;width:68px}.tox .tox-tbtn--return{-ms-grid-row-align:stretch;align-self:stretch;height:unset;width:16px}.tox .tox-tbtn--labeled{padding:0 4px;width:unset}.tox .tox-tbtn__vlabel{display:block;font-size:10px;font-weight:normal;letter-spacing:-0.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-tbtn--ipm-alert{color:#f1c40f}.tox .tox-tbtn--ipm-alert:hover{color:#222f3e}.tox .tox-tbtn--ipm-alert:active{color:#222f3e}.tox .tox-tbtn--select{margin:2px 0 3px 0;padding:0 4px;width:auto}.tox .tox-tbtn__select-label{margin:0 4px}.tox .tox-tbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-tbtn__select-chevron svg{fill:rgba(34,47,62,0.6)}.tox .tox-split-button{border:0;border-radius:3px;box-sizing:border-box;display:flex;margin:2px 0 3px 0;overflow:hidden}.tox .tox-split-button:hover{box-shadow:0 0 0 1px #dee0e2 inset}.tox .tox-split-button>*{border-radius:0}.tox .tox-split-button__chevron{width:16px}.tox .tox-split-button__chevron svg{fill:rgba(34,47,62,0.6)}.tox .tox-pop .tox-split-button__chevron svg{transform:rotate(-90deg)}.tox .tox-split-button .tox-tbtn{margin:0}.tox .tox-toolbar{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23cccccc'/%3E%3C/svg%3E") 0 0 #fff;border:1px solid #cccccc;border-bottom-width:0;display:flex;flex-shrink:0;flex-wrap:wrap;margin:0;padding:0}.tox .tox-pop .tox-toolbar{border-width:0;margin-bottom:-1px}.tox .tox-menubar+.tox-toolbar{border-top:none}.tox .tox-toolbar--no-divider{background-image:none}.tox .tox-toolbar+.tox-edit-area,.tox .tox-toolbar+.tox-sidebar-wrap .tox-edit-area{border-top:0}.tox .tox-toolbar__group{align-items:center;background:transparent;border:none;border-radius:0;display:flex;flex-wrap:wrap;margin:0 0 0 0;padding:0 4px}.tox .tox-toolbar__group:not(:last-of-type){border-right:1px solid #cccccc}.tox .tox-toolbar__group--pull-right{margin-left:auto}.tox .tox-well{border:1px solid #cccccc;border-radius:3px;padding:8px;width:100%}.tox .tox-well>*:first-child{margin-top:0}.tox .tox-well>*:last-child{margin-bottom:0}.tox .tox-well>*:only-child{margin:0}.tox .word-wrap{word-wrap:break-word;-ms-word-break:break-all;word-break:break-all;word-break:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto}.tox .tox-notification.tox-has-close{padding-right:15px}.tox .tox-notification .tox-ico{margin-top:5px}.tox .tox-notification .tox-progress{display:none;margin-right:8px}.tox .tox-notification .tox-progress.tox-progress-indicator{display:block}.tox .tox-notification .tox-progress .tox-text{margin-top:5px;text-align:center}.tox .tox-notification *,.tox .tox-notification .tox-progress .tox-text{color:#595959}.tox .tox-notification .tox-progress .tox-bar-container{border-color:#c5c5c5}.tox .tox-notification .tox-progress .tox-bar-container .tox-bar{background-color:#595959}.tox .tox-notification-success *,.tox .tox-notification-success .tox-progress .tox-text{color:#3c763d}.tox .tox-notification-success .tox-progress .tox-bar-container{border-color:#d6e9c6}.tox .tox-notification-success .tox-progress .tox-bar-container .tox-bar{background-color:#3c763d}.tox .tox-notification-info *,.tox .tox-notification-info .tox-progress .tox-text{color:#31708f}.tox .tox-notification-info .tox-progress .tox-bar-container{border-color:#779ECB}.tox .tox-notification-info .tox-progress .tox-bar-container .tox-bar{background-color:#31708f}.tox .tox-notification-warning *,.tox .tox-notification-warning .tox-progress .tox-text{color:#8a6d3b}.tox .tox-notification-warning .tox-progress .tox-bar-container{border-color:#faebcc}.tox .tox-notification-warning .tox-progress .tox-bar-container .tox-bar{background-color:#8a6d3b}.tox .tox-notification-error *,.tox .tox-notification-error .tox-progress .tox-text{color:#a94442}.tox .tox-notification-error .tox-progress .tox-bar-container{border-color:#ebccd1}.tox .tox-notification-error .tox-progress .tox-bar-container .tox-bar{background-color:#a94442}.tox .tox-sidebar-wrap{display:flex;flex-direction:row;flex-grow:1}.tox .tox-sidebar{display:flex;flex-direction:row;justify-content:flex-end}.tox .tox-sidebar__slider{display:flex;overflow:hidden}.tox .tox-sidebar__pane-container{display:flex}.tox .tox-sidebar__pane{display:flex}.tox .tox-sidebar--sliding-closed{opacity:0}.tox .tox-sidebar--sliding-open{opacity:1}.tox .tox-sidebar--sliding-growing,.tox .tox-sidebar--sliding-shrinking{transition:width .5s ease,opacity .5s ease}.tox .tox-dialog-loading::before{background-color:rgba(0,0,0,0.5);content:"";height:100%;position:absolute;width:100%;z-index:999}.tox .tox-tab{cursor:pointer}.tox .tox-textbox-field-invalid input,.tox .tox-textbox-field-invalid textarea{outline:1px solid red}.tox .tox-special-characters{max-width:200px}.tox .tox-menu__item.tox-selected-item{background-color:red;color:white}.tox .tox-menu__item:hover:not(.tox-selected-item){background-color:inherit !important;color:inherit !important}.tox .tox-input-wrap{align-items:center;-moz-appearance:none;-webkit-appearance:none;appearance:none;background-color:#fff;border-color:#cccccc;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#222f3e;display:flex;flex-grow:1;margin:0;outline:none;padding:0}.tox .tox-input-wrap .tox-textfield{border:none}.tox .tox-input-wrap:not(.tox-status-valid) .tox-status-icon__checkmark,.tox .tox-input-wrap:not(.tox-status-unknown) .tox-status-icon__warning,.tox .tox-input-wrap:not(.tox-status-invalid) .tox-status-icon__error{display:none}.tox .tox-status{transform:scale(.8)}.tox .tox-status-icon__checkmark svg{fill:green}.tox .tox-status-icon__warning svg{fill:orange}.tox .tox-status-icon__error svg{fill:red}.tox .tox-lock.tox-locked .tox-lock-icon__unlock,.tox .tox-lock:not(.tox-locked) .tox-lock-icon__lock{display:none}.tox .tox-dialog__content-js{display:flex;flex:1}.tox .tox-dialog{display:flex;flex-direction:column}.tox .tox-dialog__body{display:flex;flex:1}.tox .tox-dialog__body-content{display:flex;flex:1;flex-direction:column}.tox .tox-form__group--stretched{display:flex;flex:1;flex-direction:column}.tox .tox-form__group--stretched .tox-textarea{flex:1;resize:none}.tox .tox-form__group--stretched .tox-navobj{display:flex;flex:1}.tox .tox-form__group--stretched .tox-navobj :nth-child(2){flex:1}.tox .tox-dialog--width-lg{height:650px}.tox .tox-form{display:flex;flex:1;flex-direction:column}.tox .tox-dropzone-container{display:flex;flex:1}.tox .tox-dropzone{justify-content:center}.tox .tox-dropzone p{color:rgba(34,47,62,0.6);margin-bottom:1em}.tox .tox-dialog__popups{position:absolute;width:100%;z-index:200}.tox .tox-checkbox__icons{border-radius:3px;box-shadow:0 0 0 2px transparent;padding:calc(3px)}.tox .tox-dialog__body-content .tox-collection{display:flex;flex:1}.tox .tox-form__group--collection{display:flex}.tox .tox-color-input{display:flex}.tox .tox-color-input input{border-radius:3px 0px 0px 3px;display:flex;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-right:0}.tox .tox-color-input span{border-radius:0 3px 3px 0;border-left:0;border-color:#cccccc;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;display:flex;width:35px}.tox .tox-color-input span:focus{border-color:#3498db}.tox .tox-autocompleter{max-width:25em}.tox .tox-collection__item.tox-collection__item--state-disabled.tox-collection__item--active{background-color:#dee0e2}.tox .tox-selectfield select:focus{border-color:#3498db}.tox .tox-tbtn--bespoke .tox-tbtn__select-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:7em}.tox ul{display:block;list-style-type:disc;-webkit-margin-before:1em;margin-block-start:1em;-webkit-margin-after:1em;margin-block-end:1em;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;-webkit-padding-start:40px;padding-inline-start:40px}.tox a{cursor:pointer;color:#2276d2}.tox .tox-custom-editor{display:flex}.tox .tox-image-tools__image{height:410px}.tox .tox-image-tools-edit-panel{height:60px}.tox .tox-image-tools__sidebar{height:60px}.tox .tox-collection__item--enabled{background:#c8cbcf}.tox .tox-editor-container{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-toolbar,.tox .tox-menubar{border:0;flex:0 0 auto}.tox .tox-sidebar-wrap,.tox .tox-edit-area{border:0}.tox .tox-edit-area{position:relative}.tox .tox-edit-area__iframe{height:100%;position:absolute}.tox .tox-statusbar{background-color:#fff;border:0;border-top:1px solid #cccccc;display:flex;flex:0 0 auto;overflow:hidden}.tox .tox-statusbar__text-container{display:flex;flex:1 1 auto;overflow:hidden}.tox .tox-statusbar__resize-handle{flex:0 0 auto}.tox .tox-statusbar .tox-statusbar__wordcount,.tox .tox-statusbar .tox-statusbar__branding{flex:0 0 auto}.tox .tox-statusbar .tox-statusbar__path{display:block;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-statusbar .tox-statusbar__path *{display:inline;white-space:nowrap}/*# sourceMappingURL=js/tinymce/skins/oxide/skin.min.css.map */ \ No newline at end of file +.tox,.tox *:not(svg){background:transparent;border:0;box-sizing:content-box;color:#222f3e;cursor:auto;direction:ltr;float:none;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:16px;font-weight:normal;height:auto;line-height:normal;margin:0;max-width:none;outline:0;padding:0;position:static;-webkit-tap-highlight-color:transparent;text-align:left;text-decoration:none;text-shadow:none;vertical-align:initial;white-space:normal;width:auto}.tox *:not(svg){color:inherit;cursor:inherit;font-size:inherit}.tox-tinymce{border:0;box-sizing:border-box;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;overflow:hidden;padding:0;visibility:inherit !important}.tox-editor-container{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox-tinymce-aux{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}.tox-tinymce *:focus,.tox-tinymce-aux *:focus{outline:none}.tox .tox-button{background-color:#3498db;background-image:none;background-position:none;background-repeat:none;border-color:#3498db;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:14px;font-weight:bold;letter-spacing:1;line-height:24px;margin:0;outline:none;padding:4px 16px;text-align:center;text-decoration:none;text-transform:capitalize;white-space:nowrap}.tox .tox-button[disabled]{background-color:#3498db;background-image:none;border-color:#3498db;box-shadow:none;color:rgba(255,255,255,0.5);cursor:not-allowed}.tox .tox-button:focus:not(:disabled){background-color:#258cd1;background-image:none;border-color:#258cd1;box-shadow:none;color:#fff}.tox .tox-button:hover:not(:disabled){background-color:#258cd1;background-image:none;border-color:#258cd1;box-shadow:none;color:#fff}.tox .tox-button:active:not(:disabled){background-color:#217dbb;background-image:none;border-color:#217dbb;box-shadow:none;color:#fff}.tox .tox-button--icon{padding:4px}.tox .tox-button--icon .tox-icon svg{display:block;fill:currentColor}.tox .tox-button-link{background:0;border:none;box-sizing:border-box;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:16px;font-weight:normal;line-height:1.3;margin:0;padding:0;white-space:nowrap}.tox .tox-button-link--sm{font-size:14px}.tox .tox-button--naked{background-color:transparent;border-color:transparent;box-shadow:unset;color:#222f3e}.tox .tox-button--naked:hover:not(:disabled){background-color:#e3e3e3;border-color:#e3e3e3;box-shadow:none;color:#222f3e}.tox .tox-button--naked:focus:not(:disabled){background-color:#e3e3e3;border-color:#e3e3e3;box-shadow:none;color:#222f3e}.tox .tox-button--naked:active:not(:disabled){background-color:#d6d6d6;border-color:#d6d6d6;box-shadow:none;color:#222f3e}.tox .tox-button--naked .tox-icon svg{fill:currentColor}.tox .tox-button--naked.tox-button--icon{color:currentColor}.tox .tox-button--naked.tox-button--icon:hover:not(:disabled){color:#222f3e}.tox .tox-button--secondary{background-color:#f0f0f0;background-image:none;background-position:none;background-repeat:none;border-color:#f0f0f0;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;color:#222f3e;outline:none;padding:4px 16px;text-decoration:none;text-transform:capitalize}.tox .tox-button--secondary[disabled]{background-color:#f0f0f0;background-image:none;border-color:#f0f0f0;box-shadow:none;color:rgba(34,47,62,0.5)}.tox .tox-button--secondary:focus:not(:disabled){background-color:#e3e3e3;background-image:none;border-color:#e3e3e3;box-shadow:none;color:#222f3e}.tox .tox-button--secondary:hover:not(:disabled){background-color:#e3e3e3;background-image:none;border-color:#e3e3e3;box-shadow:none;color:#222f3e}.tox .tox-button--secondary:active:not(:disabled){background-color:#d6d6d6;background-image:none;border-color:#d6d6d6;box-shadow:none;color:#222f3e}.tox .tox-checkbox{align-items:center;border-radius:3px;cursor:pointer;display:flex;height:36px;min-width:36px}.tox .tox-checkbox__input{height:1px;left:-10000px;overflow:hidden;position:absolute;top:auto;width:1px}.tox .tox-checkbox__icons{height:24px;width:24px}.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:block;fill:rgba(34,47,62,0.3)}.tox .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:none;fill:#3498db}.tox .tox-checkbox__icons .tox-checkbox-icon__checked svg{display:none;fill:#3498db}.tox .tox-checkbox__label{margin-left:4px}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__checked svg{display:block}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:block}.tox input.tox-checkbox__input:focus+.tox-checkbox__icons{border-radius:3px;box-shadow:0 0 0 1px #3498db;padding:calc(3px)}.tox .tox-slider{align-items:center;display:flex;height:24px;justify-content:center;position:relative;width:100%}.tox .tox-slider__rail{background-color:transparent;border:1px solid #cccccc;border-radius:6px;height:6px;min-width:120px;width:100%}.tox .tox-slider__handle{background-color:#3498db;border-radius:1.5px;box-shadow:none;height:24px;left:50%;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%);width:3px}.tox .tox-spinner{display:flex}.tox .tox-spinner>div{animation:tam-bouncing-dots 1.5s ease-in-out 0s infinite both;background-color:rgba(34,47,62,0.6);border-radius:100%;height:8px;width:8px}.tox .tox-spinner>div:nth-child(1){animation-delay:-0.32s}.tox .tox-spinner>div:nth-child(2){animation-delay:-0.16s}.tox .tox-spinner>div:not(:first-child){margin-left:4px}@keyframes tam-bouncing-dots{0%,80%,100%{transform:scale(0)}40%{transform:scale(1)}}.tox .tox-tooltip{display:inline-block;padding:8px;position:relative}.tox .tox-tooltip__body{background-color:#222f3e;border-radius:3px;box-shadow:0 2px 4px rgba(34,47,62,0.3);color:rgba(255,255,255,0.75);font-size:14px;padding:4px 8px}.tox .tox-tooltip__arrow{position:absolute}.tox .tox-tooltip--down .tox-tooltip__arrow{border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #222f3e;bottom:0;left:50%;position:absolute;transform:translateX(-50%)}.tox .tox-tooltip--up .tox-tooltip__arrow{border-bottom:8px solid #222f3e;border-left:8px solid transparent;border-right:8px solid transparent;left:50%;position:absolute;top:0;transform:translateX(-50%)}.tox .tox-tooltip--right .tox-tooltip__arrow{border-bottom:8px solid transparent;border-left:8px solid #222f3e;border-top:8px solid transparent;position:absolute;right:0;top:50%;transform:translateY(-50%)}.tox .tox-tooltip--left .tox-tooltip__arrow{border-bottom:8px solid transparent;border-right:8px solid #222f3e;border-top:8px solid transparent;left:0;position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-collection--toolbar .tox-collection__group{display:flex;padding:0}.tox .tox-collection--grid .tox-collection__group{display:flex;flex-wrap:wrap;max-height:208px;overflow-x:hidden;overflow-y:auto;padding:0}.tox .tox-collection--list .tox-collection__group{border-bottom-width:0;border-color:#cccccc;border-left-width:0;border-right-width:0;border-style:solid;border-top-width:1px;padding:4px 0}.tox .tox-collection--list .tox-collection__group:first-child{border-top-width:0}.tox .tox-collection__item{align-items:center;color:#222f3e;cursor:pointer;display:flex;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.tox .tox-collection__item.tox-collection__item--active{background-color:#dee0e2}.tox .tox-collection__item.tox-collection__item--state-disabled{background-color:unset;color:rgba(34,47,62,0.5);cursor:default}.tox .tox-collection--list .tox-collection__item{padding:4px 8px}.tox .tox-collection--toolbar .tox-collection__item{border-radius:3px;padding:4px}.tox .tox-collection--grid .tox-collection__item{border-radius:3px;padding:4px}.tox .tox-collection__item-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.tox .tox-collection__item-icon svg{fill:currentColor}.tox .tox-collection--toolbar-lg .tox-collection__item-icon{height:48px;width:48px}.tox .tox-collection--list .tox-collection__item-icon:first-child{margin-right:8px}.tox .tox-collection__item[role="menuitemcheckbox"]:not(.tox-collection__item--enabled) .tox-collection__item-checkmark svg{display:none}.tox .tox-collection__item-label{color:currentColor;display:inline-block;flex:1;font-size:14px;font-style:normal;font-weight:normal;line-height:24px;text-transform:none}.tox .tox-collection__item-accessory{color:rgba(34,47,62,0.6);display:inline-block;font-size:14px;height:24px;line-height:24px;margin-left:16px;text-align:right;text-transform:normal}.tox .tox-color-picker-container{display:flex;flex-direction:row;height:225px;margin:0}.tox .tox-sv-palette{border:1px solid black;display:flex;height:100%;margin-right:15px}.tox .tox-sv-palette-spectrum{height:100%}.tox .tox-sv-palette,.tox .tox-sv-palette-spectrum{width:225px}.tox .tox-sv-palette-thumb{background:none;border:1px solid black;border-radius:50%;height:12px;position:absolute;width:12px}.tox .tox-sv-palette-inner-thumb{border:1px solid white;border-radius:50%;height:10px;position:absolute;width:10px}.tox .tox-hue-slider{border:1px solid black;height:100%;margin-right:15px;width:25px}.tox .tox-hue-slider-spectrum{background:linear-gradient(to bottom, #f00, #ff0080, #f0f, #8000ff, #00f, #0080ff, #0ff, #00ff80, #0f0, #80ff00, #ff0, #ff8000, #f00);height:100%;width:100%}.tox .tox-hue-slider,.tox .tox-hue-slider-spectrum{width:20px}.tox .tox-hue-slider-thumb{background:white;border:1px solid black;height:4px;margin-left:-1px;width:100%}.tox .tox-rgb-form{display:flex;flex-direction:column;justify-content:space-between}.tox .tox-rgb-form div{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px;width:inherit}.tox .tox-rgb-form input{width:6em}.tox .tox-rgb-form input.tox-invalid{border:1px solid red !important}.tox .tox-rgb-form label{margin-right:.5em}.tox .tox-rgb-form .tox-rgba-preview{border:1px solid black;flex-grow:2;margin-bottom:0}.tox .tox-toolbar .tox-swatches{margin:2px 0 3px 4px}.tox .tox-swatches__row{display:flex}.tox .tox-swatch{height:30px;transition:transform .15s,box-shadow .15s;width:30px}.tox .tox-swatch:hover{transform:scale(.8)}.tox .tox-swatch--outline:hover,.tox .tox-swatch--remove:hover{box-shadow:0 0 0 2px #cccccc}.tox .tox-swatch--remove svg{stroke:#e74c3c}.tox .tox-swatches__picker-btn{align-items:center;background-color:transparent;border:0;cursor:pointer;display:flex;height:30px;justify-content:center;margin-left:auto;outline:none;padding:0;width:30px}.tox .tox-swatches__picker-btn svg{height:24px;width:24px}.tox .tox-swatches__picker-btn:hover{background:#dee0e2}.tox .tox-swatches__picker-btn:active>svg{transform:translateY(1px)}.tox .tox-comment{display:flex;flex-direction:column;justify-content:space-between;padding:16px}.tox .tox-comment__item{background:#fff;border:1px solid #cccccc;border-radius:3px;box-shadow:0 4px 8px 0 rgba(34,47,62,0.1);padding:8px}.tox .tox-comment__item+.tox-comment__item{margin-top:8px}.tox .tox-comment__body{color:#222f3e;font-size:14px;font-style:normal;font-weight:normal;line-height:1.3;margin-top:8px;text-transform:initial}.tox .tox-comment__body p{margin:0}.tox .tox-comment__reply{display:flex;flex-wrap:wrap;justify-content:space-between}.tox .tox-comment__reply>*:first-child{margin-bottom:8px;width:100%}.tox .tox-user{align-items:center;display:flex}.tox .tox-user__avatar svg{fill:rgba(34,47,62,0.6)}.tox .tox-user__name{color:rgba(34,47,62,0.6);font-size:12px;font-style:normal;font-weight:bold;text-transform:uppercase}.tox .tox-user__avatar+.tox-user__name{margin-left:8px}.tox .tox-dialog-wrap{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:200}.tox .tox-dialog-wrap__backdrop{background-color:rgba(255,255,255,0.75);bottom:0;left:0;position:absolute;right:0;top:0;z-index:201}.tox .tox-dialog{background-color:#fff;border-color:#cccccc;border-radius:3px;border-style:solid;border-width:1px;box-shadow:0 16px 16px -10px rgba(34,47,62,0.15),0 0 40px 1px rgba(34,47,62,0.15);max-height:100%;max-width:480px;overflow:hidden;position:relative;width:95vw;z-index:202}.tox .tox-dialog__header{align-items:center;background-color:#fff;border-bottom:none;color:#222f3e;display:flex;font-size:16px;justify-content:space-between;margin-bottom:16px;padding:8px 16px 0 16px;position:relative}.tox .tox-dialog__header .tox-button{z-index:1}.tox .tox-dialog__draghandle{cursor:grab;height:100%;left:0;position:absolute;top:0;width:100%}.tox .tox-dialog__draghandle:active{cursor:grabbing}.tox .tox-dialog__dismiss{margin-left:auto}.tox .tox-dialog__title{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:20px;font-style:normal;font-weight:normal;line-height:1.3;margin:0;text-transform:normal}.tox .tox-dialog__body{color:#222f3e;display:flex;font-size:16px;font-style:normal;font-weight:normal;line-height:1.3;padding:0 16px;text-align:left;text-transform:normal}.tox .tox-dialog__body-nav{align-items:flex-start;display:flex;flex-direction:column;margin-right:32px}.tox .tox-dialog__body-nav-item{border-bottom:2px solid transparent;color:rgba(34,47,62,0.6);display:inline-block;font-size:14px;line-height:1.3;margin-bottom:8px;text-decoration:none}.tox .tox-dialog__body-nav-item--active{border-bottom:2px solid #3498db;color:#3498db}.tox .tox-dialog__body-content{flex:1;max-height:650px;overflow:auto}.tox .tox-dialog__body-content>*{margin-bottom:0;margin-top:16px}.tox .tox-dialog__body-content>*:first-child{margin-top:0}.tox .tox-dialog__body-content>*:last-child{margin-bottom:0}.tox .tox-dialog__body-content>*:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog--width-lg{max-width:1200px}.tox .tox-dialog--width-md{max-width:800px}.tox .tox-dialog--width-md .tox-dialog__body-content{overflow:auto}.tox .tox-dialog__body-content--centered{text-align:center}.tox .tox-dialog__body-content--spacious{margin-bottom:16px}.tox .tox-dialog__footer{align-items:center;background-color:#fff;border-top:1px solid #cccccc;display:flex;justify-content:space-between;margin-top:16px;padding:8px 16px}.tox .tox-dialog__footer .tox-dialog__footer-start>*,.tox .tox-dialog__footer .tox-dialog__footer-end>*{margin-left:8px}.tox .tox-dialog__busy-spinner{align-items:center;background-color:rgba(255,255,255,0.75);bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:203}.tox .tox-dialog__table{border-collapse:collapse}.tox .tox-dialog__table thead th{font-weight:bold;padding-top:8px}.tox .tox-dialog__table thead tr{border-bottom:none}.tox .tox-dialog__table tbody tr{border-bottom:1px solid #cccccc}.tox .tox-dialog__table tbody tr:last-child{border-bottom:none}.tox .tox-dialog__table td{padding-bottom:8px;padding-top:8px}.tox .tox-dropzone-container{display:flex}.tox .tox-dropzone{align-items:center;background:#fff;border:2px dashed #cccccc;box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;min-height:100px;padding:10px}.tox .tox-dropzone p{margin:0}.tox .tox-edit-area{border-color:#cccccc;border-style:solid;border-width:1px;display:flex;flex:1;margin-top:-1px;position:relative}.tox .tox-edit-area__iframe{border:0;box-sizing:border-box;flex:1;height:100%;position:absolute;width:100%}.tox.tox-inline-edit-area{border:1px dotted #cccccc}.tox .tox-label,.tox .tox-toolbar-label{color:rgba(34,47,62,0.6);display:block;font-size:14px;font-style:normal;font-weight:normal;line-height:1.3;padding:0 8px 0 0;text-transform:normal;white-space:nowrap}.tox .tox-toolbar-label{padding:0 8px}.tox .tox-form>.tox-form__group:not(:last-child){margin-bottom:4px}.tox .tox-form--2col{display:-ms-grid;display:grid;grid-gap:0 16px;-ms-grid-columns:1fr [2];grid-template-columns:repeat(2, 1fr)}.tox .tox-form__controls-h-stack{align-items:center;display:flex}.tox .tox-form__controls-h-stack>*:not(:first-child){margin-left:4px}.tox .tox-form__group--inline{align-items:center;display:flex}.tox .tox-selectfield{cursor:pointer;position:relative}.tox .tox-selectfield select{padding-right:24px}.tox .tox-selectfield svg{pointer-events:none;position:absolute;right:8px;top:50%;transform:translateY(-50%)}.tox .tox-textfield,.tox .tox-selectfield select,.tox .tox-textarea,.tox .tox-toolbar-textfield{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#cccccc;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#222f3e;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:16px;line-height:24px;margin:0;outline:none;padding:5px 4.75px;resize:none;width:100%}.tox .tox-textfield:focus,.tox .tox-textarea:focus{border-color:#3498db;box-shadow:none;outline:none}.tox .tox-toolbar-textfield{border-color:transparent;margin-bottom:3px;margin-top:2px}.tox .tox-toolbar-textfield+*{margin-left:4px}.tox .tox-naked-btn{background-color:transparent;border:0;border-color:transparent;box-shadow:unset;color:#3498db;cursor:pointer;display:block;margin:0;padding:0}.tox .tox-naked-btn svg{display:block;fill:#222f3e}.tox .tox-image-tools{width:100%}.tox .tox-image-tools__toolbar{align-items:center;display:flex;justify-content:center}.tox .tox-image-tools__image{background-color:#666;height:380px;overflow:auto;position:relative;width:100%}.tox .tox-image-tools__image,.tox .tox-image-tools__image+.tox-image-tools__toolbar{margin-top:8px}.tox .tox-image-tools__image-bg{background:url(data:image/gif;base64,R0lGODdhDAAMAIABAMzMzP///ywAAAAADAAMAAACFoQfqYeabNyDMkBQb81Uat85nxguUAEAOw==)}.tox .tox-image-tools__toolbar>.tox-button+.tox-slider{margin-left:32px}.tox .tox-image-tools__toolbar>.tox-slider+.tox-button{margin-left:32px}.tox .tox-image-tools__toolbar>.tox-spacer{flex:1}.tox .tox-croprect-block{background:black;filter:alpha(opacity=50);opacity:.5;position:absolute;zoom:1}.tox .tox-croprect-handle{border:2px solid white;height:20px;left:0;position:absolute;top:0;width:20px}.tox .tox-croprect-handle-move{border:0;cursor:move;position:absolute}.tox .tox-croprect-handle-nw{border-width:2px 0 0 2px;cursor:nw-resize;left:100px;margin:-2px 0 0 -2px;top:100px}.tox .tox-croprect-handle-ne{border-width:2px 2px 0 0;cursor:ne-resize;left:200px;margin:-2px 0 0 -20px;top:100px}.tox .tox-croprect-handle-sw{border-width:0 0 2px 2px;cursor:sw-resize;left:100px;margin:-20px 2px 0 -2px;top:200px}.tox .tox-croprect-handle-se{border-width:0 2px 2px 0;cursor:se-resize;left:200px;margin:-20px 0 0 -20px;top:200px}.tox .tox-insert-table-picker{display:flex;flex-wrap:wrap;width:169px}.tox .tox-insert-table-picker>div{border-color:#cccccc;border-style:solid;border-width:0 1px 1px 0;box-sizing:content-box;height:16px;width:16px}.tox .tox-insert-table-picker>div:nth-child(10n){border-right:0}.tox .tox-menu .tox-insert-table-picker{margin:-4px 0}.tox .tox-insert-table-picker .tox-insert-table-picker__selected{background-color:rgba(52,152,219,0.5);border-color:rgba(52,152,219,0.5)}.tox .tox-insert-table-picker__label{color:rgba(34,47,62,0.6);display:block;font-size:14px;padding:4px;text-align:center;width:100%}.tox .tox-menu{background-color:#fff;border-color:#cccccc;border-radius:3px;border-style:solid;border-width:1px;box-shadow:0 4px 8px 0 rgba(34,47,62,0.1);color:#222f3e;display:inline-block;overflow:hidden;vertical-align:top}.tox .tox-menu.tox-collection.tox-collection--list{padding:0}.tox .tox-menu.tox-collection.tox-collection--toolbar{padding:4px}.tox .tox-menu.tox-collection.tox-collection--grid{padding:4px}.tox .tox-menu__label h1,.tox .tox-menu__label h2,.tox .tox-menu__label h3,.tox .tox-menu__label h4,.tox .tox-menu__label h5,.tox .tox-menu__label h6,.tox .tox-menu__label p,.tox .tox-menu__label blockquote,.tox .tox-menu__label code{margin:0}.tox .tox-menu__toolbar{display:flex}.tox .tox-menu__toolbar-group{align-items:center;background:transparent;border:none;border-radius:0;display:flex;flex:1;justify-content:center;margin:0 0 0 0;padding:0 4px}.tox .tox-menu__toolbar-group:not(:last-of-type){border-right:1px solid #cccccc}.tox .tox-menu__toolbar-group .tox-tbtn,.tox .tox-menu__toolbar-group .tox-toolbar-textfield,.tox .tox-menu__toolbar-group .tox-split-button{margin:0}.tox .tox-menubar{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23cccccc'/%3E%3C/svg%3E") 0 0 #fff;border-color:#cccccc;border-style:solid;border-width:1px 1px 0 1px;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;margin:0 0 0 0;padding:0 4px}.tox .tox-mbtn{align-items:center;background:none;border:0;border-radius:3px;box-shadow:none;color:#222f3e;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:normal;height:34px;justify-content:center;margin:2px 0 3px 0;outline:none;overflow:hidden;padding:0 4px;text-transform:normal;width:auto}.tox .tox-mbtn:hover{background:#dee0e2;box-shadow:none;color:#222f3e}.tox .tox-mbtn:focus{background:#dee0e2;box-shadow:none;color:#222f3e}.tox .tox-mbtn--active{background:#dee0e2;box-shadow:0 1px 1px 0 rgba(0,0,0,0.1) inset;color:#222f3e}.tox .tox-mbtn__select-label{margin:0 4px}.tox .tox-mbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px;display:none}.tox .tox-notification{background-color:#fff;border-color:#c5c5c5;border-style:solid;border-width:1px;box-sizing:border-box;display:-ms-grid;display:grid;-ms-grid-columns:minmax(40px, 1fr) auto minmax(40px, 1fr);grid-template-columns:minmax(40px, 1fr) auto minmax(40px, 1fr);margin-top:5px;opacity:0;padding:5px;transition:transform 100ms ease-in,opacity 150ms ease-in}.tox .tox-notification--in{opacity:1}.tox .tox-notification--success{background-color:#dff0d8;border-color:#d6e9c6}.tox .tox-notification--error{background-color:#f2dede;border-color:#ebccd1}.tox .tox-notification--warning{background-color:#fcf8e3;border-color:#faebcc}.tox .tox-notification--info{background-color:#d9edf7;border-color:#779ecb}.tox .tox-notification__body{-ms-grid-row-align:center;align-self:center;color:#31708f;font-size:14px;grid-column-end:3;-ms-grid-column-span:1;-ms-grid-column:2;grid-column-start:2;grid-row-end:2;-ms-grid-row:1;grid-row-start:1;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;text-align:center;white-space:normal;word-break:break-all;word-break:break-word;word-wrap:break-word}.tox .tox-notification__body>*{margin:0}.tox .tox-notification__body>*+*{margin-top:1rem}.tox .tox-notification__icon{-ms-grid-row-align:center;align-self:center;-ms-grid-column-align:end;grid-column-end:2;-ms-grid-column-span:1;-ms-grid-column:1;grid-column-start:1;grid-row-end:2;-ms-grid-row:1;grid-row-start:1;justify-self:end}.tox .tox-notification__icon svg{display:block}.tox .tox-notification__dismiss{-ms-grid-row-align:start;align-self:start;-ms-grid-column-align:end;grid-column-end:4;-ms-grid-column-span:1;-ms-grid-column:3;grid-column-start:3;grid-row-end:2;-ms-grid-row:1;grid-row-start:1;justify-self:end}.tox .tox-notification .tox-progress-bar{-ms-grid-column-align:center;grid-column-end:4;-ms-grid-column-span:3;-ms-grid-column:1;grid-column-start:1;grid-row-end:3;-ms-grid-row-span:1;-ms-grid-row:2;grid-row-start:2;justify-self:center}.tox .tox-pop{display:inline-block;position:relative}.tox .tox-pop--resizing{transition:width .1s ease}.tox .tox-pop--resizing .tox-toolbar{flex-wrap:nowrap}.tox .tox-pop__dialog{border:1px solid #cccccc;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,0.15);min-width:0;overflow:hidden}.tox .tox-pop__dialog>*:not(.tox-toolbar){margin:4px 4px 4px 8px}.tox .tox-pop::before,.tox .tox-pop::after{border-style:solid;content:'';display:block;height:0;position:absolute;width:0}.tox .tox-pop.tox-pop--bottom::before,.tox .tox-pop.tox-pop--bottom::after{left:50%;top:100%}.tox .tox-pop.tox-pop--bottom::after{border-color:#fff transparent transparent transparent;border-width:8px;margin-left:-8px;margin-top:-1px}.tox .tox-pop.tox-pop--bottom::before{border-color:#cccccc transparent transparent transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--top::before,.tox .tox-pop.tox-pop--top::after{left:50%;top:0;transform:translateY(-100%)}.tox .tox-pop.tox-pop--top::after{border-color:transparent transparent #fff transparent;border-width:8px;margin-left:-8px;margin-top:1px}.tox .tox-pop.tox-pop--top::before{border-color:transparent transparent #cccccc transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--left::before,.tox .tox-pop.tox-pop--left::after{left:0;top:calc(50% - 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--left::after{border-color:transparent #fff transparent transparent;border-width:8px;margin-left:-15px}.tox .tox-pop.tox-pop--left::before{border-color:transparent #cccccc transparent transparent;border-width:10px;margin-left:-19px}.tox .tox-pop.tox-pop--right::before,.tox .tox-pop.tox-pop--right::after{left:100%;top:calc(50% + 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--right::after{border-color:transparent transparent transparent #fff;border-width:8px;margin-left:-1px}.tox .tox-pop.tox-pop--right::before{border-color:transparent transparent transparent #cccccc;border-width:10px;margin-left:-1px}.tox .tox-pop.tox-pop--align-left::before,.tox .tox-pop.tox-pop--align-left::after{left:20px}.tox .tox-pop.tox-pop--align-right::before,.tox .tox-pop.tox-pop--align-right::after{left:calc(100% - 20px)}.tox .tox-separator{background-color:#cccccc;margin:0 0 0 0;width:1px}.tox .tox-special-characters{display:block;padding-bottom:24px}@supports (display: grid){.tox .tox-special-characters{display:-ms-grid;display:grid;-ms-grid-columns:minmax(24px, 1fr) [auto-fill];grid-template-columns:repeat(auto-fill, minmax(24px, 1fr))}}.tox .tox-special-characters span{border-radius:6px;cursor:pointer;display:block;font-size:20px;height:24px;line-height:24px;position:relative;text-align:center;transition:transform .05s}.tox .tox-special-characters span:hover{background-color:#dee0e2}.tox .tox-special-characters span:hover::after{background-color:white;border-radius:3px;box-shadow:0 2px 6px rgba(0,0,0,0.25);content:attr(data-glyph);font-size:2.25em;height:1.25em;left:50%;line-height:1.25em;pointer-events:none;position:absolute;top:0;transform:translateY(-1.15em) translateX(-50%);width:1.25em;z-index:9}.tox .tox-statusbar{align-items:center;border-color:#cccccc;border-style:solid;border-width:1px;color:rgba(34,47,62,0.6);display:flex;flex-shrink:0;font-size:12px;height:18px;margin-top:-1px;padding:0 8px;position:relative;text-transform:uppercase}.tox .tox-statusbar a{color:rgba(34,47,62,0.6);text-decoration:none}.tox .tox-statusbar a:hover{text-decoration:underline}.tox .tox-statusbar__path{display:flex;margin-right:auto}.tox .tox-statusbar__path>*{margin-right:4px}.tox .tox-statusbar__wordcount{margin-left:1ch}.tox .tox-statusbar__branding{margin-left:1ch}.tox .tox-statusbar__resize-handle{align-items:flex-end;align-self:stretch;cursor:nwse-resize;display:flex;justify-content:flex-end;margin-right:-8px;padding-left:1ch}.tox .tox-statusbar__resize-handle svg{display:block;fill:rgba(34,47,62,0.6)}.tox .tox-tbtn{align-items:center;background:none;border:0;border-radius:3px;box-shadow:none;color:#222f3e;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:normal;height:34px;justify-content:center;margin:2px 0 3px 0;outline:none;overflow:hidden;padding:0;text-transform:normal;width:34px}.tox .tox-tbtn svg{display:block;fill:#222f3e}.tox .tox-tbtn+.tox-tbtn{margin-left:0}.tox .tox-tbtn--enabled{background:#c8cbcf;box-shadow:none;color:#222f3e}.tox .tox-tbtn--enabled svg{fill:#222f3e}.tox .tox-tbtn:hover{background:#dee0e2;box-shadow:none;color:#222f3e}.tox .tox-tbtn:hover svg{fill:#222f3e}.tox .tox-tbtn:focus{background:#dee0e2;box-shadow:none;color:#222f3e}.tox .tox-tbtn:focus svg{fill:#222f3e}.tox .tox-tbtn:active{background:#dee0e2;box-shadow:0 1px 1px 0 rgba(0,0,0,0.1) inset;color:#222f3e}.tox .tox-tbtn:active svg{fill:#222f3e}.tox .tox-tbtn:disabled,.tox .tox-tbtn:disabled:hover{background:#fff;box-shadow:none;color:rgba(34,47,62,0.5);cursor:not-allowed}.tox .tox-tbtn:disabled svg,.tox .tox-tbtn:disabled:hover svg{fill:rgba(34,47,62,0.5)}.tox .tox-tbtn:active>*{transform:translateY(1px)}.tox .tox-tbtn--md{height:51px;width:51px}.tox .tox-tbtn--lg{flex-direction:column;height:68px;width:68px}.tox .tox-tbtn--return{-ms-grid-row-align:stretch;align-self:stretch;height:unset;width:16px}.tox .tox-tbtn--labeled{padding:0 4px;width:unset}.tox .tox-tbtn__vlabel{display:block;font-size:10px;font-weight:normal;letter-spacing:-0.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-tbtn--ipm-alert{color:#f1c40f}.tox .tox-tbtn--ipm-alert:hover{color:#222f3e}.tox .tox-tbtn--ipm-alert:active{color:#222f3e}.tox .tox-tbtn--select{margin:2px 0 3px 0;padding:0 4px;width:auto}.tox .tox-tbtn__select-label{margin:0 4px}.tox .tox-tbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-tbtn__select-chevron svg{fill:rgba(34,47,62,0.6)}.tox .tox-split-button{border:0;border-radius:3px;box-sizing:border-box;display:flex;margin:2px 0 3px 0;overflow:hidden}.tox .tox-split-button:hover{box-shadow:0 0 0 1px #dee0e2 inset}.tox .tox-split-button>*{border-radius:0}.tox .tox-split-button__chevron{width:16px}.tox .tox-split-button__chevron svg{fill:rgba(34,47,62,0.6)}.tox .tox-pop .tox-split-button__chevron svg{transform:rotate(-90deg)}.tox .tox-split-button .tox-tbtn{margin:0}.tox .tox-toolbar{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23cccccc'/%3E%3C/svg%3E") 0 0 #fff;border:1px solid #cccccc;border-bottom-width:0;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;margin:0 0 0 0;padding:0}.tox .tox-pop .tox-toolbar{border-width:0;margin-bottom:-1px}.tox .tox-toolbar--no-divider{background-image:none}.tox .tox-menubar+.tox-toolbar{margin-top:-1px}.tox .tox-toolbar__group{align-items:center;background:transparent;border:none;border-radius:0;display:flex;flex-wrap:wrap;margin:0 0 0 0;padding:0 4px}.tox .tox-toolbar__group:not(:last-of-type){border-right:1px solid #cccccc}.tox .tox-toolbar__group--pull-right{margin-left:auto}.tox .tox-well{border:1px solid #cccccc;border-radius:3px;padding:8px;width:100%}.tox .tox-well>*:first-child{margin-top:0}.tox .tox-well>*:last-child{margin-bottom:0}.tox .tox-well>*:only-child{margin:0}.tox .word-wrap{word-wrap:break-word;-ms-word-break:break-all;word-break:break-all;word-break:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto}.tox .tox-notification.tox-has-close{padding-right:15px}.tox .tox-notification .tox-ico{margin-top:5px}.tox .tox-notification .tox-progress{display:none;margin-right:8px}.tox .tox-notification .tox-progress.tox-progress-indicator{display:block}.tox .tox-notification .tox-progress .tox-text{margin-top:5px;text-align:center}.tox .tox-notification *,.tox .tox-notification .tox-progress .tox-text{color:#595959}.tox .tox-notification .tox-progress .tox-bar-container{border-color:#c5c5c5}.tox .tox-notification .tox-progress .tox-bar-container .tox-bar{background-color:#595959}.tox .tox-notification-success *,.tox .tox-notification-success .tox-progress .tox-text{color:#3c763d}.tox .tox-notification-success .tox-progress .tox-bar-container{border-color:#d6e9c6}.tox .tox-notification-success .tox-progress .tox-bar-container .tox-bar{background-color:#3c763d}.tox .tox-notification-info *,.tox .tox-notification-info .tox-progress .tox-text{color:#31708f}.tox .tox-notification-info .tox-progress .tox-bar-container{border-color:#779ECB}.tox .tox-notification-info .tox-progress .tox-bar-container .tox-bar{background-color:#31708f}.tox .tox-notification-warning *,.tox .tox-notification-warning .tox-progress .tox-text{color:#8a6d3b}.tox .tox-notification-warning .tox-progress .tox-bar-container{border-color:#faebcc}.tox .tox-notification-warning .tox-progress .tox-bar-container .tox-bar{background-color:#8a6d3b}.tox .tox-notification-error *,.tox .tox-notification-error .tox-progress .tox-text{color:#a94442}.tox .tox-notification-error .tox-progress .tox-bar-container{border-color:#ebccd1}.tox .tox-notification-error .tox-progress .tox-bar-container .tox-bar{background-color:#a94442}.tox .tox-sidebar-wrap{display:flex;flex-direction:row;flex-grow:1}.tox .tox-sidebar{display:flex;flex-direction:row;justify-content:flex-end}.tox .tox-sidebar__slider{display:flex;overflow:hidden}.tox .tox-sidebar__pane-container{display:flex}.tox .tox-sidebar__pane{display:flex}.tox .tox-sidebar--sliding-closed{opacity:0}.tox .tox-sidebar--sliding-open{opacity:1}.tox .tox-sidebar--sliding-growing,.tox .tox-sidebar--sliding-shrinking{transition:width .5s ease,opacity .5s ease}.tox .tox-dialog-loading::before{background-color:rgba(0,0,0,0.5);content:"";height:100%;position:absolute;width:100%;z-index:999}.tox .tox-tab{cursor:pointer}.tox .tox-textbox-field-invalid input,.tox .tox-textbox-field-invalid textarea{outline:1px solid red}.tox .tox-special-characters{max-width:200px}.tox .tox-menu__item.tox-selected-item{background-color:red;color:white}.tox .tox-menu__item:hover:not(.tox-selected-item){background-color:inherit !important;color:inherit !important}.tox .tox-input-wrap{align-items:center;-moz-appearance:none;-webkit-appearance:none;appearance:none;background-color:#fff;border-color:#cccccc;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#222f3e;display:flex;flex-grow:1;margin:0;outline:none;padding:0}.tox .tox-input-wrap .tox-textfield{border:none}.tox .tox-input-wrap:not(.tox-status-valid) .tox-status-icon__checkmark,.tox .tox-input-wrap:not(.tox-status-unknown) .tox-status-icon__warning,.tox .tox-input-wrap:not(.tox-status-invalid) .tox-status-icon__error{display:none}.tox .tox-status{transform:scale(.8)}.tox .tox-status-icon__checkmark svg{fill:green}.tox .tox-status-icon__warning svg{fill:orange}.tox .tox-status-icon__error svg{fill:red}.tox .tox-lock.tox-locked .tox-lock-icon__unlock,.tox .tox-lock:not(.tox-locked) .tox-lock-icon__lock{display:none}.tox .tox-dialog__content-js{display:flex;flex:1}.tox .tox-dialog{display:flex;flex-direction:column}.tox .tox-dialog__body{display:flex;flex:1}.tox .tox-dialog__body-content{display:flex;flex:1;flex-direction:column}.tox .tox-form__group--stretched{display:flex;flex:1;flex-direction:column}.tox .tox-form__group--stretched .tox-textarea{flex:1;resize:none}.tox .tox-form__group--stretched .tox-navobj{display:flex;flex:1}.tox .tox-form__group--stretched .tox-navobj :nth-child(2){flex:1}.tox .tox-dialog--width-lg{height:650px}.tox .tox-form{display:flex;flex:1;flex-direction:column}.tox .tox-dropzone-container{display:flex;flex:1}.tox .tox-dropzone{justify-content:center}.tox .tox-dropzone p{color:rgba(34,47,62,0.6);margin-bottom:1em}.tox .tox-dialog__popups{position:absolute;width:100%;z-index:200}.tox .tox-checkbox__icons{border-radius:3px;box-shadow:0 0 0 2px transparent;padding:calc(3px)}.tox .tox-dialog__body-content .tox-collection{display:flex;flex:1}.tox .tox-form__group--collection{display:flex}.tox .tox-color-input{display:flex}.tox .tox-color-input input{border-radius:3px 0px 0px 3px;display:flex;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-right:0}.tox .tox-color-input span{border-radius:0 3px 3px 0;border-left:0;border-color:#cccccc;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;display:flex;width:35px}.tox .tox-color-input span:focus{border-color:#3498db}.tox .tox-autocompleter{max-width:25em}.tox .tox-collection__item.tox-collection__item--state-disabled.tox-collection__item--active{background-color:#dee0e2}.tox .tox-selectfield select:focus{border-color:#3498db}.tox .tox-tbtn--bespoke .tox-tbtn__select-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:7em}.tox ul{display:block;list-style-type:disc;-webkit-margin-before:1em;margin-block-start:1em;-webkit-margin-after:1em;margin-block-end:1em;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;-webkit-padding-start:40px;padding-inline-start:40px}.tox a{cursor:pointer;color:#2276d2}.tox .tox-custom-editor{display:flex}.tox .tox-image-tools-edit-panel{height:60px}.tox .tox-image-tools__sidebar{height:60px}.tox .tox-collection__item--enabled{background:#c8cbcf}.tox .tox-statusbar{background-color:#fff;display:flex;flex:0 0 auto;overflow:hidden}.tox .tox-statusbar__text-container{display:flex;flex:1 1 auto;overflow:hidden}.tox .tox-statusbar__resize-handle{flex:0 0 auto}.tox .tox-statusbar .tox-statusbar__wordcount,.tox .tox-statusbar .tox-statusbar__branding{flex:0 0 auto}.tox .tox-statusbar .tox-statusbar__path{display:block;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-statusbar .tox-statusbar__path *{display:inline;white-space:nowrap}/*# sourceMappingURL=js/tinymce/skins/oxide/skin.min.css.map */ \ No newline at end of file diff --git a/api/js/tinymce/themes/silver/theme.min.js b/api/js/tinymce/themes/silver/theme.min.js index a52eb0e276..99f9d186a1 100644 --- a/api/js/tinymce/themes/silver/theme.min.js +++ b/api/js/tinymce/themes/silver/theme.min.js @@ -1 +1 @@ -!function(){"use strict";var e,t,n,o,r,c,i,N=function(){for(var e=[],t=0;t "+o.toString()},function(e,t){return"state("+e+")"})}).join("\n")+"}"},toDsl:function(){return Vo.objOf(V(u,function(e){return e.fold(function(e,t,n,o){return Ao.field(e,n,o)},function(e,t){return Ao.state(e)})}))}}},Wo=function(r){return{extract:function(n,o,e){var t=V(e,function(e,t){return r.extract(n.concat(["["+t+"]"]),o,e)});return pe(t)},toString:function(){return"array("+r.toString()+")"},toDsl:function(){return Vo.arrOf(r)}}},Go=function(a,u){return{extract:function(n,o,r){var e,t,i=ae(r);return(e=n,t=i,Wo(Po(a)).extract(e,b,t)).bind(function(e){var t=V(e,function(e){return Io.field(e,e,To(),u)});return Uo(t).extract(n,o,r)})},toString:function(){return"setOf("+u.toString()+")"},toDsl:function(){return Vo.setOf(a,u)}}},Xo=U(Po(ie.value)),Yo=h(Wo,Uo),$o=Io.state,qo=Io.field,Ko=function(n,t,o,r,i){return ze(r,i).fold(function(){return e=r,t=i,Fo(n,function(){return'The chosen schema: "'+t+'" did not exist in branches: '+Ro(e)});var e,t},function(e){return Uo(e).extract(n.concat(["branch: "+i]),t,o)})},Jo=function(r,i){return{extract:function(t,n,o){return ze(o,r).fold(function(){return e=r,Fo(t,function(){return'Choice schema did not contain choice key: "'+e+'"'});var e},function(e){return Ko(t,n,o,i,e)})},toString:function(){return"chooseOn("+r+"). Possible values: "+ae(i)},toDsl:function(){return Vo.choiceOf(r,i)}}},Qo=Po(ie.value),Zo=function(t){return Po(function(e){return t(e)})},er=function(e,t,n,o){return t.extract([e],n,o).fold(function(e){return ie.error({input:o,errors:e})},ie.value)},tr=function(e,t,n){return er(e,t,U,n)},nr=function(e,t,n){return er(e,t,b,n)},or=function(e){return e.fold(function(e){throw new Error(ar(e))},b)},rr=function(e,t,n){return or(nr(e,t,n))},ir=function(e,t,n){return or(tr(e,t,n))},ar=function(e){return"Errors: \n"+(t=e.errors,n=10 ")+")\n"+e.getErrorInfo()}))+"\n\nInput object: "+Ro(e.input);var t,n},ur=function(e,t){return Jo(e,t)},cr=U(Qo),sr=function(n,o){return Po(function(e){var t=typeof e;return n(e)?ie.value(e):ie.error("Expected type: "+o+" but got: "+t)})},lr=sr(O,"number"),fr=sr(x,"string"),dr=sr(C,"boolean"),mr=sr(z,"function"),gr=function(e){return qo(e,e,To(),Xo())},hr=function(e,t){return qo(e,e,To(),t)},vr=function(e){return hr(e,fr)},pr=function(e){return hr(e,mr)},br=function(e,t){return qo(e,e,To(),Uo(t))},yr=function(e,t){return qo(e,e,To(),Yo(t))},xr=function(e,t){return qo(e,e,To(),Wo(t))},wr=function(e){return qo(e,e,Mo(),Xo())},kr=function(e,t){return qo(e,e,Mo(),t)},Sr=function(e){return kr(e,fr)},Cr=function(e,t){return qo(e,e,Mo(),Uo(t))},zr=function(e,t){return qo(e,e,Mo(),jo(t))},Or=function(e,t){return qo(e,e,Oo(t),Xo())},Tr=function(e,t,n){return qo(e,e,Oo(t),n)},Mr=function(e,t){return Tr(e,t,lr)},Hr=function(e,t){return Tr(e,t,fr)},Er=function(e,t){return Tr(e,t,dr)},Vr=function(e,t){return Tr(e,t,mr)},Ar=function(e,t,n){return qo(e,e,Oo(t),Uo(n))},Br=function(e,t){return $o(e,t)},Dr=function(e){if(!He(e,"can")&&!He(e,"abort")&&!He(e,"run"))throw new Error("EventHandler defined by: "+Do(e,null,2)+" does not have can, abort, or run!");return rr("Extracting event.handler",jo([Or("can",U(!0)),Or("abort",U(!1)),Or("run",N)]),e)},Rr=function(n){var t,o,r,i,e=(t=n,o=function(e){return e.can},function(){for(var n=[],e=0;e"),innerHtml:e.innerHtml().getOr(""),defChildren:e.defChildren().fold(function(){return[""]},function(e){return[Do(e,null,2)]}),domChildren:e.domChildren().fold(function(){return""},function(e){return 0===e.length?"0 children, but still specified":String(e.length)})}},ci=en([],["classes","attributes","styles","value","innerHtml","defChildren","domChildren"]),si=function(t,e,n){return e.fold(function(){return n.fold(function(){return{}},function(e){return Oe(t,e)})},function(e){return n.fold(function(){return Oe(t,e)},function(e){return Oe(t,e)})})},li=function(n,o,r){return ni(function(e,t){r(e,n,o)})},fi=function(r,i,a){var e,t,n,o,u,c;return e=function(n){for(var e=[],t=1;t"}),cr()),Es=Br("schema",function(){return[wr("preprocess")]}),Vs=Or("defaults",U({})),As=Or("overrides",U({})),Bs=Uo([Os,Ts,Ms,Hs,Vs,As]),Ds=Uo([Os,Ts,Ms,Vs,As]),Rs=Uo([Os,Ts,Ms,Hs,Vs,As]),Fs=Uo([Os,Es,Ms,gr("unit"),Hs,Vs,As]),Is=function(e){return e.fold(P.some,P.none,P.some,P.some)},_s=function(e){var t=function(e){return e.name()};return e.fold(t,t,t,t)},Ls=function(n,o){return function(e){var t=ir("Converting part type",o,e);return n(t)}},Ns=Ls(zs.required,Bs),Ps=Ls(zs.external,Ds),js=Ls(zs.optional,Rs),Us=Ls(zs.group,Fs),Ws=U("entirety"),Gs=Object.freeze({required:Ns,external:Ps,optional:js,group:Us,asNamedPart:Is,name:_s,asCommon:function(e){return e.fold(b,b,b,b)},original:Ws}),Xs=function(e,t,n,o){var r=n;return te(t.defaults()(e,n,o),n,{uid:e.partUids()[t.name()]},t.overrides()(e,n,o),{"debug.sketcher":Oe("part-"+t.name(),r)})},Ys=function(r,e){var t={};return A(e,function(e){Is(e).each(function(n){var o=$s(r,n.pname());t[n.name()]=function(e){var t=rr("Part: "+n.name()+" in "+r,Uo(n.schema()),e);return te(o,{config:e,validated:t})}})}),t},$s=function(e,t){return{uiType:Cs(),owner:e,name:t}},qs=function(e,t,n){return{uiType:Cs(),owner:e,name:t,config:n,validated:{}}},Ks=function(e){return W(e,function(e){return e.fold(P.none,P.some,P.none,P.none).map(function(e){return br(e.name(),e.schema().concat([pa(Ws())]))}).toArray()})},Js=function(e){return V(e,_s)},Qs=function(e,t,n){return o=t,i={},r={},A(n,function(e){e.fold(function(o){i[o.pname()]=ks(!0,function(e,t,n){return o.factory().sketch(Xs(e,o,t,n))})},function(e){var t=o.parts()[e.name()]();r[e.name()]=U(e.factory().sketch(Xs(o,e,t[Ws()]()),t))},function(o){i[o.pname()]=ks(!1,function(e,t,n){return o.factory().sketch(Xs(e,o,t,n))})},function(r){i[r.pname()]=Ss(!0,function(t,e,n){var o=t[r.name()]();return V(o,function(e){return r.factory().sketch(te(r.defaults()(t,e),e,r.overrides()(t,e)))})})})}),{internals:U(i),externals:U(r)};var o,i,r},Zs=function(e,t,n){return ws(P.some(e),t,t.components(),n)},el=function(e,t,n){var o=t.partUids()[n];return e.getSystem().getByUid(o).toOption()},tl=function(e,t,n){return el(e,t,n).getOrDie("Could not find part: "+n)},nl=function(e,t,n){var o={},r=t.partUids(),i=e.getSystem();return A(n,function(e){o[e]=i.getByUid(r[e])}),se(o,U)},ol=function(e,t){var n=e.getSystem();return se(t.partUids(),function(e,t){return U(n.getByUid(e))})},rl=function(e){return ae(e.partUids())},il=function(e,t,n){var o={},r=t.partUids(),i=e.getSystem();return A(n,function(e){o[e]=i.getByUid(r[e]).getOrDie()}),se(o,U)},al=function(t,e){var n=Js(e);return Te(V(n,function(e){return{key:e,value:t+"-"+e}}))},ul=function(t){return qo("partUids","partUids",Eo(function(e){return al(e.uid,t)}),cr())},cl=Object.freeze({generate:Ys,generateOne:qs,schemas:Ks,names:Js,substitutes:Qs,components:Zs,defaultUids:al,defaultUidsSchema:ul,getAllParts:ol,getAllPartNames:rl,getPart:el,getPartOrDie:tl,getParts:nl,getPartsOrDie:il}),sl=oo("alloy-premade"),ll=oo("api"),fl=function(e){return Oe(sl,e)},dl=function(r){return e=function(e){for(var t=[],n=1;n'),action:t,buttonBehaviours:te(wi([El.config({})]),n)})},Fl={forToolbar:Rl,forToolbarCommand:function(e,t){return Rl(t,function(){e.execCommand(t)},{})},forToolbarStateAction:function(e,t,n,o){var r=Dl(n);return Rl(t,o,r)},forToolbarStateCommand:function(e,t){var n=Dl(t);return Rl(t,function(){e.execCommand(t)},n)}},Il=zt.detect().deviceType.isTouch(),_l=function(e){return js({name:e+"-edge",overrides:function(o){return o.model().manager().edgeActions()[e].fold(function(){return{}},function(n){var e=Ur([Yr(De(),n,[o])]),t=Ur([Yr(_e(),n,[o]),Yr(Le(),function(e,t){t.mouseIsDown().get()&&n(e,t)},[o])]);return{events:Il?e:t}})}})},Ll=_l("top-left"),Nl=_l("top"),Pl=_l("top-right"),jl=_l("right"),Ul=_l("bottom-right"),Wl=_l("bottom"),Gl=_l("bottom-left"),Xl=[_l("left"),jl,Nl,Wl,Ll,Pl,Gl,Ul,Ns({name:"thumb",defaults:U({dom:{styles:{position:"absolute"}}}),overrides:function(e){return{events:Ur([qr(De(),e,"spectrum"),qr(Re(),e,"spectrum"),qr(Fe(),e,"spectrum"),qr(_e(),e,"spectrum"),qr(Le(),e,"spectrum"),qr(Pe(),e,"spectrum")])}}}),Ns({schema:[Br("mouseIsDown",function(){return Ee(!1)})],name:"spectrum",overrides:function(n){var o=n.model().manager(),r=function(t,e){return o.getValueFromEvent(e).map(function(e){return o.setValueFrom(t,n,e)})},e=Ur([Xr(De(),r),Xr(Re(),r)]),t=Ur([Xr(_e(),r),Xr(Le(),function(e,t){n.mouseIsDown().get()&&r(e,t)})]);return{behaviours:wi(Il?[]:[ds.config({mode:"special",onLeft:function(e){return o.onLeft(e,n)},onRight:function(e){return o.onRight(e,n)},onUp:function(e){return o.onUp(e,n)},onDown:function(e){return o.onDown(e,n)}}),Ua.config({})]),events:Il?e:t}}})],Yl=function(e,t,n){t.store().manager().onLoad(e,t,n)},$l=function(e,t,n){t.store().manager().onUnload(e,t,n)},ql=Object.freeze({onLoad:Yl,onUnload:$l,setValue:function(e,t,n,o){t.store().manager().setValue(e,t,n,o)},getValue:function(e,t,n){return t.store().manager().getValue(e,t,n)},getState:function(e,t,n){return n}}),Kl=Object.freeze({events:function(n,o){var e=n.resetOnDom()?[ei(function(e,t){Yl(e,n,o)}),ti(function(e,t){$l(e,n,o)})]:[li(n,o,Yl)];return Ur(e)}}),Jl=function(){var e=Ee(null);return xi({set:e.set,get:e.get,isNotSet:function(){return null===e.get()},clear:function(){e.set(null)},readState:function(){return{mode:"memory",value:e.get()}}})},Ql=function(){var i=Ee({}),a=Ee({});return xi({readState:function(){return{mode:"dataset",dataByValue:i.get(),dataByText:a.get()}},lookup:function(e){return ze(i.get(),e).orThunk(function(){return ze(a.get(),e)})},update:function(e){var t=i.get(),n=a.get(),o={},r={};A(e,function(t){o[t.value]=t,ze(t,"meta").each(function(e){ze(e,"text").each(function(e){r[e]=t})})}),i.set(te(t,o)),a.set(te(n,r))},clear:function(){i.set({}),a.set({})}})},Zl=Object.freeze({memory:Jl,dataset:Ql,manual:function(){return xi({readState:function(){}})},init:function(e){return e.store().manager().state(e)}}),ef=function(e,t,n,o){var r=t.store();n.update([o]),r.setValue()(e,o),t.onSetValue()(e,o)},tf=[wr("initialValue"),gr("getFallbackEntry"),gr("getDataKey"),gr("setValue"),va("manager",{setValue:ef,getValue:function(e,t,n){var o=t.store(),r=o.getDataKey()(e);return n.lookup(r).fold(function(){return o.getFallbackEntry()(r)},function(e){return e})},onLoad:function(t,n,o){n.store().initialValue().each(function(e){ef(t,n,o,e)})},onUnload:function(e,t,n){n.clear()},state:Ql})],nf=[gr("getValue"),Or("setValue",N),wr("initialValue"),va("manager",{setValue:function(e,t,n,o){t.store().setValue()(e,o),t.onSetValue()(e,o)},getValue:function(e,t,n){return t.store().getValue()(e)},onLoad:function(t,n,e){n.store().initialValue().each(function(e){n.store().setValue()(t,e)})},onUnload:N,state:yi.init})],of=[wr("initialValue"),va("manager",{setValue:function(e,t,n,o){n.set(o),t.onSetValue()(e,o)},getValue:function(e,t,n){return n.get()},onLoad:function(e,t,n){t.store().initialValue().each(function(e){n.isNotSet()&&n.set(e)})},onUnload:function(e,t,n){n.clear()},state:Jl})],rf=[Tr("store",{mode:"memory"},ur("mode",{memory:of,manual:nf,dataset:tf})),da("onSetValue"),Or("resetOnDom",!1)],af=Si({fields:rf,name:"representing",active:Kl,apis:ql,extra:{setValueFrom:function(e,t){var n=af.getValue(t);af.setValue(e,n)}},state:Zl}),uf=function(n,o){return{left:U(n),top:U(o),translate:function(e,t){return uf(n+e,o+t)}}},cf=uf,sf=zt.detect().deviceType.isTouch(),lf=U("slider.change.value"),ff=function(e){var t=e.event().raw();if(sf){var n=t;return n.touches!==undefined&&1===n.touches.length?P.some(n.touches[0]).map(function(e){return cf(e.clientX,e.clientY)}):P.none()}var o=t;return o.clientX!==undefined?P.some(o).map(function(e){return cf(e.clientX,e.clientY)}):P.none()},df=function(e,t,n,o){return e'),components:[Nd.parts()["left-edge"](Bl('
    ')),Nd.parts().spectrum({dom:Al('
    '),components:[Bl('
    ')],behaviours:wi([Aa.config({toggleClass:Ia.resolve("thumb-active")})])}),Nd.parts()["right-edge"](Bl('
    ')),Nd.parts().thumb({dom:Al('
    '),behaviours:wi([Aa.config({toggleClass:Ia.resolve("thumb-active")})])})],onChange:function(e,t,n){var o=i(n.x());Ka.set(t.element(),"background-color",o),r.onChange(e,t,o)},onDragStart:function(e,t){Aa.on(t)},onDragEnd:function(e,t){Aa.off(t)},onInit:function(e,t,n,o){var r=i(o.x());Ka.set(t.element(),"background-color",r)},stepSize:10,model:{mode:"x",minX:0,maxX:360,getInitialValue:function(){return{x:function(){return r.getInitialValue()}}}},sliderBehaviours:wi([Da(Nd.refresh)])}))];var r,i},Ud=function(e,o){var t={onChange:function(e,t,n){o.undoManager.transact(function(){o.formatter.apply("forecolor",{value:n}),o.nodeChanged()})},getInitialValue:function(){return-1}};return Pd(e,"color",function(){return jd(t)})},Wd=jo([gr("getInitialValue"),gr("onChange"),gr("category"),gr("sizes")]),Gd=function(e){var i=rr("SizeSlider",Wd,e);return Nd.sketch({dom:{tag:"div",classes:[Ia.resolve("slider-"+i.category+"-size-container"),Ia.resolve("slider"),Ia.resolve("slider-size-container")]},onChange:function(e,t,n){var o,r=n.x();0<=(o=r)&&o'),components:[Bl('
    ')]}),Nd.parts().thumb({dom:Al('
    '),behaviours:wi([Aa.config({toggleClass:Ia.resolve("thumb-active")})])})]})},Xd=["9px","10px","11px","12px","14px","16px","18px","20px","24px","32px","36px"],Yd=function(e){var t,n,o=e.selection.getStart(),r=Yt.fromDom(o),i=Yt.fromDom(e.getBody()),a=(t=function(e){return dn(i,e)},n=r,(_n.isElement(n)?P.some(n):yn.parent(n)).map(function(e){return Pr.closest(e,function(e){return Ka.getRaw(e,"font-size").isSome()},t).bind(function(e){return Ka.getRaw(e,"font-size")}).getOrThunk(function(){return Ka.get(e,"font-size")})}).getOr(""));return F(Xd,function(e){return a===e}).getOr("medium")},$d={candidates:U(Xd),get:function(e){var t,n=Yd(e);return(t=n,I(Xd,function(e){return e===t})).getOr(2)},apply:function(o,e){var t;(t=e,P.from(Xd[t])).each(function(e){var t,n;n=e,Yd(t=o)!==n&&t.execCommand("fontSize",!1,n)})}},qd=$d.candidates(),Kd=function(e){return[Bl(''),(t=e,Gd({onChange:t.onChange,sizes:qd,category:"font",getInitialValue:t.getInitialValue})),Bl('')];var t},Jd=function(e){var t=function n(e){return e.uid!==undefined}(e)&&He(e,"uid")?e.uid:xl("memento");return{get:function(e){return e.getSystem().getByUid(t).getOrDie()},getOpt:function(e){return e.getSystem().getByUid(t).fold(P.none,P.some)},asSpec:function(){return te(e,{uid:t})}}};function Qd(e,t){return em(document.createElement("canvas"),e,t)}function Zd(e){return e.getContext("2d")}function em(e,t,n){return e.width=t,e.height=n,e}var tm={create:Qd,clone:function MB(e){var t;return Zd(t=Qd(e.width,e.height)).drawImage(e,0,0),t},resize:em,get2dContext:Zd,get3dContext:function HB(e){var t=null;try{t=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(n){}return t||(t=null),t}},nm={getWidth:function EB(e){return e.naturalWidth||e.width},getHeight:function VB(e){return e.naturalHeight||e.height}},om=window.Promise?window.Promise:function(){var e=function(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],s(e,o(r,this),o(a,this))},t=e.immediateFn||"function"==typeof window.setImmediate&&window.setImmediate||function(e){setTimeout(e,1)};function o(e,t){return function(){e.apply(t,arguments)}}var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(o){var r=this;null!==this._state?t(function(){var e=r._state?o.onFulfilled:o.onRejected;if(null!==e){var t;try{t=e(r._value)}catch(n){return void o.reject(n)}o.resolve(t)}else(r._state?o.resolve:o.reject)(r._value)}):this._deferreds.push(o)}function r(e){try{if(e===this)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var t=e.then;if("function"==typeof t)return void s(o(t,e),o(r,this),o(a,this))}this._state=!0,this._value=e,u.call(this)}catch(n){a.call(this,n)}}function a(e){this._state=!1,this._value=e,u.call(this)}function u(){for(var e=0,t=this._deferreds.length;e'),components:[t.asSpec()],action:function(e){t.get(e).element().dom().click()}})},vm=function(e){return e.dom().textContent},pm=function(e,t){e.dom().textContent=t},bm=function(e){return 0'),action:function(e){var t=n.get(e);af.setValue(t,"")}}));return{name:e,spec:Em.sketch({dom:Al('
    '),components:[n.asSpec(),o.asSpec()],containerBehaviours:wi([Aa.config({toggleClass:Ia.resolve("input-container-empty")}),Hm.config({find:function(e){return P.some(n.get(e))}}),Om("input-clearing",[Xr(Ye(),function(e){var t=n.get(e);(0"},og=function(o,e,t){return te({"debug.sketcher":{Form:t},uid:o.uid(),dom:o.dom(),components:e,behaviours:te(wi([af.config({store:{mode:"manual",getValue:function(e){var t=ol(e,o);return se(t,function(e,t){return e().bind(function(e){var t,n=Hm.getCurrent(e);return t="missing current",n.fold(function(){return ie.error(t)},ie.value)}).map(af.getValue)})},setValue:function(n,e){ce(e,function(t,e){el(n,o,e).each(function(e){Hm.getCurrent(e).each(function(e){af.setValue(e,t)})})})}}})]),gs(o.formBehaviours())),apis:{getField:function(e,t){return el(e,o,t).bind(Hm.getCurrent)}}})},rg={getField:dl(function(e,t,n){return e.getField(t,n)}),sketch:function(e){var n,t=(n=[],{field:function(e,t){return n.push(e),qs("form",ng(e),t)},record:function(){return n}}),o=e(t),r=t.record(),i=V(r,function(e){return Ns({name:e,pname:ng(e)})});return kl("form",tg,i,og,o)}},ig=function(){var t=Ee(P.none()),n=function(){t.get().each(function(e){e.destroy()})};return{clear:function(){n(),t.set(P.none())},isSet:function(){return t.get().isSome()},set:function(e){n(),t.set(P.some(e))},run:function(e){t.get().each(e)}}},ag=function(){var t=Ee(P.none());return{clear:function(){t.set(P.none())},set:function(e){t.set(P.some(e))},isSet:function(){return t.get().isSome()},on:function(e){t.get().each(e)}}},ug=function(e){return{xValue:e,points:[]}},cg=function(e,t){if(t===e.xValue)return e;var n=0'),action:function(e){ao(e,o,{direction:t})},buttonBehaviours:wi([eg.config({disableClass:Ia.resolve("toolbar-navigation-disabled"),disabled:!n})])})},i=function(e,r){var i=uu(e.element(),"."+Ia.resolve("serialised-dialog-screen"));fu(e.element(),"."+Ia.resolve("serialised-dialog-chain")).each(function(o){0<=a.state.currentScreen.get()+r&&a.state.currentScreen.get()+r'),components:[Em.sketch({dom:Al('
    '),components:V(a.fields,function(e,t){return t<=a.maxFieldIndex?Em.sketch({dom:Al('
    '),components:[r(-1,"previous",0'),behaviours:wi([Ru.config({highlightClass:Ia.resolve("dot-active"),itemClass:Ia.resolve("dot-item")})]),components:W(a.fields,function(e,t){return t<=a.maxFieldIndex?[Bl('
    ')]:[]})});return{dom:Al('
    '),components:[c.asSpec(),s.asSpec()],behaviours:wi([ds.config({mode:"special",focusIn:function(e){var t=c.get(e);ds.focusIn(t)}}),Om("serializer-wrapper-events",[Xr(De(),function(e,t){var n=t.event();a.state.dialogSwipeState.set(ug(n.raw().touches[0].clientX))}),Xr(Re(),function(e,t){var n=t.event();a.state.dialogSwipeState.on(function(e){t.event().prevent(),a.state.dialogSwipeState.set(cg(e,n.raw().touches[0].clientX))})}),Xr(Fe(),function(o){a.state.dialogSwipeState.on(function(e){var t=c.get(o),n=-1*sg(e);i(t,n)})})])])}},fg=Ze(function(n,o){return[{label:"the link group",items:[lg({fields:[Pm("url","Type or paste URL"),Pm("text","Link text"),Pm("title","Link title"),Pm("target","Link target"),(e="link",{name:e,spec:Vm.sketch({dom:{tag:"span",styles:{display:"none"}},getInitialValue:function(){return P.none()}})})],maxFieldIndex:["url","text","title","target"].length-1,getInitialValue:function(){return P.some(km.getInfo(o))},onExecute:function(e){var t=af.getValue(e);km.applyInfo(o,t),n.restoreToolbar(),o.focus()}})]}];var e}),dg=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",icon:"bold",format:"bold"},{title:"Italic",icon:"italic",format:"italic"},{title:"Underline",icon:"underline",format:"underline"},{title:"Strikethrough",icon:"strikethrough",format:"strikethrough"},{title:"Superscript",icon:"superscript",format:"superscript"},{title:"Subscript",icon:"subscript",format:"subscript"},{title:"Code",icon:"code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Alignment",items:[{title:"Left",icon:"alignleft",format:"alignleft"},{title:"Center",icon:"aligncenter",format:"aligncenter"},{title:"Right",icon:"alignright",format:"alignright"},{title:"Justify",icon:"alignjustify",format:"alignjustify"}]}],mg=Ur([(fm=Tt(),dm=function(e,t){var n,o,r=t.event().originator(),i=t.event().target();return o=i,!(dn(n=r,e.element())&&!dn(n,o)&&(console.warn(Tt()+" did not get interpreted by the desired target. \nOriginator: "+Xn(r)+"\nTarget: "+Xn(i)+"\nCheck the "+Tt()+" event handlers"),1))},{key:fm,value:Dr({can:dm})})]),gg=Object.freeze({events:mg}),hg=b,vg=bi(["debugInfo","triggerFocus","triggerEvent","triggerEscape","addToWorld","removeFromWorld","addToGui","removeFromGui","build","getByUid","getByDom","broadcast","broadcastOn","isConnected"]),pg=function(t){var e=function(e){return function(){throw new Error("The component must be in a context to send: "+e+"\n"+Xn(t().element())+" is not in context.")}};return vg({debugInfo:U("fake"),triggerEvent:e("triggerEvent"),triggerFocus:e("triggerFocus"),triggerEscape:e("triggerEscape"),build:e("build"),addToWorld:e("addToWorld"),removeFromWorld:e("removeFromWorld"),addToGui:e("addToGui"),removeFromGui:e("removeFromGui"),getByUid:e("getByUid"),getByDom:e("getByDom"),broadcast:e("broadcast"),broadcastOn:e("broadcastOn"),isConnected:U(!1)})},bg=function(e,r){var i={};return ce(e,function(e,o){ce(e,function(e,t){var n=Ce(t,[])(i);i[t]=n.concat([r(o,e)])})}),i},yg=function(e,t){return 1 "):o[0].name();return Oe(r,{handler:t,purpose:U(n)})})});return Me(t,{})},Hg=function(e){return tr("custom.definition",jo([qo("dom","dom",To(),jo([gr("tag"),Or("styles",{}),Or("classes",[]),Or("attributes",{}),wr("value"),wr("innerHtml")])),gr("components"),gr("uid"),Or("events",{}),Or("apis",U({})),qo("eventOrder","eventOrder",(t={"alloy.execute":["disabling","alloy.base.behaviour","toggling","typeaheadevents"],"alloy.focus":["alloy.base.behaviour","focusing","keying"],"alloy.system.init":["alloy.base.behaviour","disabling","toggling","representing"],input:["alloy.base.behaviour","representing","streaming","invalidating"],"alloy.system.detached":["alloy.base.behaviour","representing"],mousedown:["focusing","alloy.base.behaviour","item-type-events"]},zo.mergeWithThunk(U(t))),cr()),wr("domModification"),pa("originalSpec"),Or("debug.sketcher","unknown")]),e);var t},Eg=function(t,e){A(e,function(e){Pi.add(t,e)})},Vg=function(t,e){A(e,function(e){Pi.remove(t,e)})},Ag=function(t){if(t.domChildren().isSome()&&t.defChildren().isSome())throw new Error("Cannot specify children and child specs! Must be one or the other.\nDef: "+(e=ui(t),Do(e,null,2)));return t.domChildren().fold(function(){var e=t.defChildren().getOr([]);return V(e,Dg)},function(e){return e});var e},Bg=function(e){var t=Yt.fromTag(e.tag());Un.setAll(t,e.attributes().getOr({})),Eg(t,e.classes().getOr([])),Ka.setAll(t,e.styles().getOr({})),En(t,e.innerHtml().getOr(""));var n=Ag(e);return zn(t,n),e.value().each(function(e){Am(t,e)}),bl(t,e.uid()),t},Dg=function(e){var t=ai(e);return Bg(t)},Rg=function(e,t){return n=e,r=V(o=t,function(e){return Cr(e.name(),[gr("config"),Or("state",yi)])}),i=tr("component.behaviours",Uo(r),n.behaviours).fold(function(e){throw new Error(ar(e)+"\nComplete spec:\n"+Do(n,null,2))},function(e){return e}),{list:o,data:se(i,function(e){var t=e().map(function(e){return{config:e.config(),state:e.state().init(e.config())}});return function(){return t}})};var n,o,r,i},Fg=function(e){var t,n,o=(t=ze(e,"behaviours").getOr({}),n=B(ae(t),function(e){return t[e]!==undefined}),V(n,function(e){return t[e].me}));return Rg(e,o)},Ig=bi(["getSystem","config","hasConfigured","spec","connect","disconnect","element","syncComponents","readState","components","events"]),_g=function(e,t,n){var o,r,i,a,u,c,s=(r={uid:(o=e).uid(),tag:o.dom().tag(),classes:o.dom().classes(),attributes:o.dom().attributes(),styles:o.dom().styles(),domChildren:V(o.components(),function(e){return e.element()})},ai(te(r,o.dom().innerHtml().map(function(e){return Oe("innerHtml",e)}).getOr({}),o.dom().value().map(function(e){return Oe("value",e)}).getOr({})))),l=function(t,e,n,o){var r=te({},e);A(n,function(e){r[e.name()]=e.exhibit(t,o)});var i=bg(r,function(e,t){return{name:function(){return e},modification:t}}),a=se(i,function(e,t){return W(e,function(t){return t.modification().fold(function(){return[]},function(e){return[t]})})}),u=fe(a,function(t,n){return ze(wg,n).fold(function(){return ie.error("Unknown field type: "+n)},function(e){return e(t,n)})});return Me(u,{}).map(ci)}(n,{"alloy.base.modification":(i=e,i.domModification().fold(function(){return ci({})},ci))},t,s).getOrDie();return u=l,c=te({uid:(a=s).uid(),tag:a.tag(),classes:u.classes().getOr([]).concat(a.classes().getOr([])),attributes:ne(a.attributes().getOr({}),u.attributes().getOr({})),styles:ne(a.styles().getOr({}),u.styles().getOr({}))},u.innerHtml().or(a.innerHtml()).map(function(e){return Oe("innerHtml",e)}).getOr({}),si("domChildren",u.domChildren(),a.domChildren()),si("defChildren",u.defChildren(),a.defChildren()),u.value().or(a.value()).map(function(e){return Oe("value",e)}).getOr({})),ai(c)},Lg=function(e,t,n){var o,r,i,a,u,c,s={"alloy.base.behaviour":(o=e,o.events())};return(r=n,i=e.eventOrder(),a=t,u=s,c=zg(r,a,u),Mg(c,i)).getOrDie()},Ng=function(e){var t,n,o,r,i,a,u,c,s,l,f,d,m,g,h=hg(e),v=(t=h,n=Ce("components",[])(t),V(n,Ug)),p=te(gg,h,Oe("components",v));return ie.value((o=p,i=Ee(pg(r=function(){return g})),a=or(Hg(te(o,{behaviours:undefined}))),u=Fg(o),c=u.list,s=u.data,l=_g(a,c,s),f=Bg(l),d=Lg(a,c,s),m=Ee(a.components()),g=Ig({getSystem:i.get,config:function(e){if(e===ml())return a.apis();if(x(e))throw new Error("Invalid input: only API constant is allowed");var t=s;return(z(t[e.name()])?t[e.name()]:function(){throw new Error("Could not find "+e.name()+" in "+Do(o,null,2))})()},hasConfigured:function(e){return z(s[e.name()])},spec:U(o),readState:function(e){return s[e]().map(function(e){return e.state.readState()}).getOr("not enabled")},connect:function(e){i.set(e)},disconnect:function(){i.set(pg(r))},element:U(f),syncComponents:function(){var e=yn.children(f),t=W(e,function(e){return i.get().getByDom(e).fold(function(){return[]},function(e){return[e]})});m.set(t)},components:m.get,events:U(d)})))},Pg=function(e){var t=Yt.fromText(e);return jg({element:t})},jg=function(e){var t=ir("external.component",jo([gr("element"),wr("uid")]),e),n=Ee(pg());t.uid().each(function(e){bl(t.element(),e)});var o=Ig({getSystem:n.get,config:P.none,hasConfigured:U(!1),connect:function(e){n.set(e)},disconnect:function(){n.set(pg(function(){return o}))},element:U(t.element()),spec:U(e),readState:U("No state"),syncComponents:N,components:U([]),events:U({})});return fl(o)},Ug=function(t){return(e=t,ze(e,sl)).fold(function(){var e=te({uid:xl("")},t);return Ng(e).getOrDie()},function(e){return e});var e},Wg=fl,Gg="alloy.item-hover",Xg="alloy.item-focus",Yg=function(e){(Zi(e.element()).isNone()||Ua.isFocused(e))&&(Ua.isFocused(e)||Ua.focus(e),ao(e,Gg,{item:e}))},$g=function(e){ao(e,Xg,{item:e})},qg=U(Gg),Kg=U(Xg),Jg=[gr("data"),gr("components"),gr("dom"),wr("toggling"),hs("itemBehaviours",[Aa,Ua,ds,af]),Or("ignoreFocus",!1),Or("domModification",{}),va("builder",function(e){return{dom:te(e.dom(),{attributes:{role:e.toggling().isSome()?"menuitemcheckbox":"menuitem"}}),behaviours:te(wi([e.toggling().fold(Aa.revoke,function(e){return Aa.config(te({aria:{mode:"checked"}},e))}),Ua.config({ignore:e.ignoreFocus(),stopMousedown:e.ignoreFocus(),onFocus:function(e){$g(e)}}),ds.config({mode:"execution"}),af.config({store:{mode:"memory",initialValue:e.data()}}),Om("item-type-events",[Xr(Bt(),uo),Jr(_e()),Xr(je(),Yg),Xr(Vt(),Ua.focus)])]),vs(e.itemBehaviours())),components:e.components(),domModification:e.domModification(),eventOrder:e.eventOrder()}}),Or("eventOrder",{})],Qg=[gr("dom"),gr("components"),va("builder",function(e){return{dom:e.dom(),components:e.components(),events:Ur([Qr(Vt())])}})],Zg=U([Ns({name:"widget",overrides:function(t){return{behaviours:wi([af.config({store:{mode:"manual",getValue:function(e){return t.data()},setValue:function(){}}})])}}})]),eh=[gr("uid"),gr("data"),gr("components"),gr("dom"),Or("autofocus",!1),Or("ignoreFocus",!1),hs("widgetBehaviours",[af,Ua,ds]),Or("domModification",{}),ul(Zg()),va("builder",function(n){var e=Qs(0,n,Zg()),t=Zs("item-widget",n,e.internals()),o=function(e){return el(e,n,"widget").map(function(e){return ds.focusIn(e),e})},r=function(e,t){return Uu(t.event().target())||n.autofocus()&&t.setSource(e.element()),P.none()};return te({dom:n.dom(),components:t,domModification:n.domModification(),events:Ur([oi(function(e,t){o(e).each(function(e){t.stop()})}),Xr(je(),Yg),Xr(Vt(),function(e,t){n.autofocus()?o(e):Ua.focus(e)})]),behaviours:te(wi([af.config({store:{mode:"memory",initialValue:n.data()}}),Ua.config({ignore:n.ignoreFocus(),onFocus:function(e){$g(e)}}),ds.config({mode:"special",focusIn:n.autofocus()?function(e){o(e)}:Oi(),onLeft:r,onRight:r,onEscape:function(e,t){return Ua.isFocused(e)||n.autofocus()?(n.autofocus()&&t.setSource(e.element()),P.none()):(Ua.focus(e),P.some(!0))}})]),vs(n.widgetBehaviours()))})})],th=ur("type",{widget:eh,item:Jg,separator:Qg}),nh=U([Us({factory:{sketch:function(e){var t=ir("menu.spec item",th,e);return t.builder()(t)}},name:"items",unit:"item",defaults:function(e,t){var n=xl("");return te({uid:n},t)},overrides:function(e,t){return{type:t.type,ignoreFocus:e.fakeFocus(),domModification:{classes:[e.markers().item()]}}}})]),oh=U([gr("value"),gr("items"),gr("dom"),gr("components"),Or("eventOrder",{}),ms("menuBehaviours",[Ru,af,Hm,ds]),Tr("movement",{mode:"menu",moveOnTab:!0},ur("mode",{grid:[ba(),va("config",function(e,t){return{mode:"flatgrid",selector:"."+e.markers().item(),initSize:{numColumns:t.initSize().numColumns(),numRows:t.initSize().numRows()},focusManager:e.focusManager()}})],matrix:[va("config",function(e,t){return{mode:"matrix",selectors:{row:t.rowSelector(),cell:"."+e.markers().item()},focusManager:e.focusManager()}}),gr("rowSelector")],menu:[Or("moveOnTab",!0),va("config",function(e,t){return{mode:"menu",selector:"."+e.markers().item(),moveOnTab:t.moveOnTab(),focusManager:e.focusManager()}})]})),ca(),Or("fakeFocus",!1),Or("focusManager",Iu()),da("onHighlight")]),rh=U("alloy.menu-focus"),ih=Tl({name:"Menu",configFields:oh(),partFields:nh(),factory:function(e,t,n,o){return te({dom:te(e.dom(),{attributes:{role:"menu"}}),uid:e.uid(),behaviours:te(wi([Ru.config({highlightClass:e.markers().selectedItem(),itemClass:e.markers().item(),onHighlight:e.onHighlight()}),af.config({store:{mode:"memory",initialValue:e.value()}}),Hm.config({find:P.some}),ds.config(e.movement().config()(e,e.movement()))]),gs(e.menuBehaviours())),events:Ur([Xr(Kg(),function(t,n){var e=n.event();t.getSystem().getByDom(e.target()).each(function(e){Ru.highlight(t,e),n.stop(),ao(t,rh(),{menu:t,item:e})})}),Xr(qg(),function(e,t){var n=t.event().item();Ru.highlight(e,n)})]),components:t,eventOrder:e.eventOrder()})}}),ah=function(e,t,n,o){var r=e.getSystem().build(o);bo(e,r,n)},uh=function(e,t,n,o){var r=ch(e,t);F(r,function(e){return dn(o.element(),e.element())}).each(xo)},ch=function(e,t){return e.components()},sh=function(t,n,e,o,r){var i=ch(t,n);return P.from(i[o]).map(function(e){return uh(t,n,0,e),r.each(function(e){ah(t,0,function(e,t){Sn.appendAt(e,t,o)},e)}),e})},lh=Object.freeze({append:function(e,t,n,o){ah(e,0,Sn.append,o)},prepend:function(e,t,n,o){ah(e,0,Sn.prepend,o)},remove:uh,replaceAt:sh,replaceBy:function(t,n,e,o,r){var i=ch(t,n);return I(i,o).bind(function(e){return sh(t,n,0,e,r)})},set:function(t,e,n,o){var r,i,a,u;wo(t),r=function(){var e=V(o,t.getSystem().build);A(e,function(e){po(t,e)})},i=t.element(),a=yn.owner(i),u=Qi(a).bind(function(t){var e=function(e){return dn(t,e)};return e(i)?P.some(i):Pr.descendant(i,e)}),r(i),u.each(function(t){Qi(a).filter(function(e){return dn(e,t)}).fold(function(){Ki(t)},N)})},contents:ch}),fh=Si({fields:[],name:"replacing",apis:lh}),dh=function(n,o,r,e){return ze(r,e).bind(function(e){return ze(n,e).bind(function(e){var t=dh(n,o,r,e);return P.some([e].concat(t))})}).getOr([])},mh=function(e,t){var n={};ce(e,function(e,t){A(e,function(e){n[e]=t})});var o=t,r=le(t,function(e,t){return{k:e,v:t}}),i=se(r,function(e,t){return[t].concat(dh(n,o,r,t))});return se(n,function(e){return ze(i,e).getOr([e])})},gh=function(){var i=Ee({}),a=Ee({}),u=Ee({}),c=Ee(P.none()),s=Ee({}),e=function(e){return ze(a.get(),e)};return{setContents:function(e,t,n,o){c.set(P.some(e)),i.set(n),a.set(t),s.set(o);var r=mh(o,n);u.set(r)},expand:function(n){return ze(i.get(),n).map(function(e){var t=ze(u.get(),n).getOr([]);return[e].concat(t)})},refresh:function(e){return ze(u.get(),e)},collapse:function(e){return ze(u.get(),e).bind(function(e){return 1");o[n[0]]=Oe(n[1],e),o[n[1]]=Oe(n[0],e)}),o},createBistate:function(e,t,n){return Te([{key:e,value:Oe(t,n)},{key:t,value:Oe(e,n)}])},createTristate:function(e,t,n,o){return Te([{key:e,value:Te([{key:t,value:o},{key:n,value:o}])},{key:t,value:Te([{key:e,value:o},{key:n,value:o}])},{key:n,value:Te([{key:e,value:o},{key:t,value:o}])}])}}}),Oh=Ia.resolve("scrollable"),Th={register:function(e){Pi.add(e,Oh)},deregister:function(e){Pi.remove(e,Oh)},scrollable:U(Oh)},Mh=function(e){return ze(e,"format").getOr(e.title)},Hh=function(e,t,n,o,r){return{data:{value:e,text:t},type:"item",dom:{tag:"div",classes:r?[Ia.resolve("styles-item-is-menu")]:[]},toggling:{toggleOnExecute:!1,toggleClass:Ia.resolve("format-matches"),selected:n},itemBehaviours:wi(r?[]:[Ba(e,function(e,t){(t?Aa.on:Aa.off)(e)})]),components:[{dom:{tag:"div",attributes:{style:o},innerHtml:t}}]}},Eh=function(e,t,n,o){return{value:e,dom:{tag:"div"},components:[Ml.sketch({dom:{tag:"div",classes:[Ia.resolve("styles-collapser")]},components:o?[{dom:{tag:"span",classes:[Ia.resolve("styles-collapse-icon")]}},Pg(e)]:[Pg(e)],action:function(e){if(o){var t=n().get(e);vh.collapseMenu(t)}}}),{dom:{tag:"div",classes:[Ia.resolve("styles-menu-items-container")]},components:[ih.parts().items({})],behaviours:wi([Om("adhoc-scrollable-menu",[ei(function(e,t){Ka.set(e.element(),"overflow-y","auto"),Ka.set(e.element(),"-webkit-overflow-scrolling","touch"),Th.register(e.element())}),ti(function(e){Ka.remove(e.element(),"overflow-y"),Ka.remove(e.element(),"-webkit-overflow-scrolling"),Th.deregister(e.element())})])])}],items:t,menuBehaviours:wi([zh.config({initialState:"after",routes:zh.createTristate("before","current","after",{transition:{property:"transform",transitionClass:"transitioning"}})})])}},Vh=function(o){var r,i,e,t,n,a=(r=o.formats,i=function(){return u},e=Eh("Styles",[].concat(V(r.items,function(e){return Hh(Mh(e),e.title,e.isSelected(),e.getPreview(),He(r.expansions,Mh(e)))})),i,!1),t=se(r.menus,function(e,t){var n=V(e,function(e){return Hh(Mh(e),e.title,e.isSelected!==undefined&&e.isSelected(),e.getPreview!==undefined?e.getPreview():"",He(r.expansions,Mh(e)))});return Eh(t,n,i,!0)}),n=te(t,Oe("styles",e)),{tmenu:vh.tieredData("styles",n,r.expansions)}),u=Jd(vh.sketch({dom:{tag:"div",classes:[Ia.resolve("styles-menu")]},components:[],fakeFocus:!0,stayInDom:!0,onExecute:function(e,t){var n=af.getValue(t);return o.handle(t,n.value),P.none()},onEscape:function(){return P.none()},onOpenMenu:function(e,t){var n=yf(e.element());bf(t.element(),n),zh.jumpTo(t,"current")},onOpenSubmenu:function(e,t,n){var o=yf(e.element()),r=lu(t.element(),'[role="menu"]').getOrDie("hacky"),i=e.getSystem().getByDom(r).getOrDie();bf(n.element(),o),zh.progressTo(i,"before"),zh.jumpTo(n,"after"),zh.progressTo(n,"current")},onCollapseMenu:function(e,t,n){var o=lu(t.element(),'[role="menu"]').getOrDie("hacky"),r=e.getSystem().getByDom(o).getOrDie();zh.progressTo(r,"after"),zh.progressTo(n,"current")},navigateOnHover:!1,highlightImmediately:!0,data:a.tmenu,markers:{backgroundMenu:Ia.resolve("styles-background-menu"),menu:Ia.resolve("styles-menu"),selectedMenu:Ia.resolve("styles-selected-menu"),item:Ia.resolve("styles-item"),selectedItem:Ia.resolve("styles-selected-item")}}));return u.asSpec()},Ah=function(e){return He(e,"items")?(n=te(ke(t=e,["items"]),{menu:!0}),o=Bh(t.items),{item:n,menus:te(o.menus,Oe(t.title,o.items)),expansions:te(o.expansions,Oe(t.title,t.title))}):{item:e,menus:{},expansions:{}};var t,n,o},Bh=function(e){return D(e,function(e,t){var n=Ah(t);return{menus:te(e.menus,n.menus),items:[n.item].concat(e.items),expansions:te(e.expansions,n.expansions)}},{menus:{},expansions:{},items:[]})},Dh={expand:Bh},Rh=function(a,e){var u=function(e){return function(){return a.formatter.match(e)}},c=function(e){return function(){return a.formatter.getCssText(e)}},t=ze(e,"style_formats").getOr(dg),s=function(e){return V(e,function(e){if(He(e,"items")){var t=s(e.items);return te(te(e,{isSelected:U(!1),getPreview:U("")}),{items:t})}return He(e,"format")?te(i=e,{isSelected:u(i.format),getPreview:c(i.format)}):(o=oo((n=e).title),r=te(n,{format:o,isSelected:u(o),getPreview:c(o)}),a.formatter.register(o,r),r);var n,o,r,i})};return s(t)},Fh=function(n,e,o){var t,r,i,a=(t=n,i=(r=function(e){return W(e,function(e){return e.items===undefined?!He(e,"format")||t.formatter.canApply(e.format)?[e]:[]:0t.innerHeight||e.bottom()>t.innerHeight?e.bottom()-t.innerHeight+50:0;0!==n&&t.scrollTo(t.pageXOffset,t.pageYOffset+n)})})].concat(!0===iv?[]:[qh(Yt.fromDom(o.win()),"blur",function(){n.getByDom(t).each(Aa.off)}),qh(i,"select",e),qh(o.doc(),"selectionchange",e)]);return{destroy:function(){A(u,function(e){e.unbind()})}}},uv=function(e,t){var n=parseInt(Un.get(e,t),10);return isNaN(n)?0:n},cv=function LB(n,o){var r=function(e){return n(e)?P.from(e.dom().nodeValue):P.none()},e=zt.detect().browser,t=e.isIE()&&10===e.version.major?function(e){try{return r(e)}catch(t){return P.none()}}:r;return{get:function(e){if(!n(e))throw new Error("Can only get "+o+" value of a "+o+" node");return t(e).getOr("")},getOption:t,set:function(e,t){if(!n(e))throw new Error("Can only set raw "+o+" value of a "+o+" node");e.dom().nodeValue=t}}}(_n.isText,"text"),sv=function(e){return cv.get(e)},lv=function(e){return cv.getOption(e)},fv=function(e){return"img"===_n.name(e)?1:lv(e).fold(function(){return yn.children(e).length},function(e){return e.length})},dv=fv,mv=me([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),gv={before:mv.before,on:mv.on,after:mv.after,cata:function(e,t,n,o){return e.fold(t,n,o)},getStart:function(e){return e.fold(b,b,b)}},hv=me([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),vv=$t("start","soffset","finish","foffset"),pv={domRange:hv.domRange,relative:hv.relative,exact:hv.exact,exactFromRange:function(e){return hv.exact(e.start(),e.soffset(),e.finish(),e.foffset())},range:vv,getWin:function(e){var t=e.match({domRange:function(e){return Yt.fromDom(e.startContainer)},relative:function(e,t){return gv.getStart(e)},exact:function(e,t,n,o){return e}});return yn.defaultView(t)}},bv=function(e,t,n,o){var r=yn.owner(e).dom().createRange();return r.setStart(e.dom(),t),r.setEnd(n.dom(),o),r},yv=function(e,t,n,o){var r=bv(e,t,n,o),i=dn(e,n)&&t===o;return r.collapsed&&!i},xv=function(e,t){e.selectNodeContents(t.dom())},wv=function(e){e.deleteContents()},kv=function(e){return{left:U(e.left),top:U(e.top),right:U(e.right),bottom:U(e.bottom),width:U(e.width),height:U(e.height)}},Sv={create:function(e){return e.document.createRange()},replaceWith:function(e,t){wv(e),e.insertNode(t.dom())},selectNodeContents:function(e,t){var n=e.document.createRange();return xv(n,t),n},selectNodeContentsUsing:xv,relativeToNative:function(e,t,n){var o,r,i=e.document.createRange();return o=i,t.fold(function(e){o.setStartBefore(e.dom())},function(e,t){o.setStart(e.dom(),t)},function(e){o.setStartAfter(e.dom())}),r=i,n.fold(function(e){r.setEndBefore(e.dom())},function(e,t){r.setEnd(e.dom(),t)},function(e){r.setEndAfter(e.dom())}),i},exactToNative:function(e,t,n,o,r){var i=e.document.createRange();return i.setStart(t.dom(),n),i.setEnd(o.dom(),r),i},deleteContents:wv,cloneFragment:function(e){var t=e.cloneContents();return Yt.fromDom(t)},getFirstRect:function(e){var t=e.getClientRects(),n=0t.innerHeight||n.bottom()>t.innerHeight?Math.min(o,n.bottom()-t.innerHeight+50):0);0!==r&&a.scrollTo(a.pageXOffset,a.pageYOffset+r)})}),Yv(t,e.innerHeight)});return Yv(t,e.innerHeight),{toEditing:function(){Gv(a)},destroy:function(){n.unbind()}}},Jv=function(e){return P.some(Yt.fromDom(e.dom().contentWindow.document.body))},Qv=function(e){return P.some(Yt.fromDom(e.dom().contentWindow.document))},Zv=function(e){return P.from(e.dom().contentWindow)},ep=function(e){return Zv(e).bind(_v)},tp=function(e){return e.getFrame()},np=function(e,n){return function(t){return t[e].getOrThunk(function(){var e=tp(t);return function(){return n(e)}})()}},op=function(e,t,n,o){return e[n].getOrThunk(function(){return function(e){return qh(t,o,e)}})},rp=function(e){return{left:U(e.left),top:U(e.top),right:U(e.right),bottom:U(e.bottom),width:U(e.width),height:U(e.height)}},ip={getBody:np("getBody",Jv),getDoc:np("getDoc",Qv),getWin:np("getWin",Zv),getSelection:np("getSelection",ep),getFrame:tp,getActiveApi:function(u){var c=tp(u);return Jv(c).bind(function(a){return Qv(c).bind(function(i){return Zv(c).map(function(r){var e=Yt.fromDom(i.dom().documentElement),t=u.getCursorBox.getOrThunk(function(){return function(){return Lv(r).bind(function(e){return Pv(r,e).orThunk(function(){return _v(r).filter(function(e){return dn(e.start(),e.finish())&&e.soffset()===e.foffset()}).bind(function(e){var t=e.start().dom().getBoundingClientRect();return 0