/* * @Author: your name * @Date: 2022-04-28 12:26:13 * @LastEditTime: 2022-04-28 12:26:14 * @LastEditors: Please set LastEditors * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @FilePath: \background-front-end\src\components\tinymce\tinymce.min.js */ /* * @Author: your name * @Date: 2022-04-28 12:19:41 * @LastEditTime: 2022-04-28 12:19:42 * @LastEditors: your name * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @FilePath: \platform-background\src\utils\tinymce.min.js */ /** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * * Version: 5.8.2 (2021-06-23) */ !function(){"use strict";var r=function(e){if(null===e)return"null";if(e===undefined)return"undefined";var t=typeof e;return"object"==t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"==t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},t=function(e){return{eq:e}},s=t(function(e,t){return e===t}),i=function(o){return t(function(e,t){if(e.length!==t.length)return!1;for(var n=e.length,r=0;r=r.length&&n.substr(o,o+r.length)===r;var n,r,o},$e=function(t){return function(e){return e.replace(t,"")}},We=$e(/^\s+|\s+$/g),Ke=$e(/^\s+/g),Xe=$e(/\s+$/g),Ye=function(e){return 0=a.length&&r(o)}))})})},br=function(n){return{is:function(e){return n===e},isValue:R,isError:A,getOr:E(n),getOrThunk:E(n),getOrDie:E(n),or:function(e){return br(n)},orThunk:function(e){return br(n)},fold:function(e,t){return t(n)},map:function(e){return br(e(n))},mapError:function(e){return br(n)},each:function(e){e(n)},bind:function(e){return e(n)},exists:function(e){return e(n)},forall:function(e){return e(n)},toOptional:function(){return U.some(n)}}},Cr=function(n){return{is:A,isValue:A,isError:R,getOr:g,getOrThunk:function(e){return e()},getOrDie:function(){return b(String(n))()},or:function(e){return e},orThunk:function(e){return e()},fold:function(e,t){return e(n)},map:function(e){return Cr(n)},mapError:function(e){return Cr(e(n))},each:te,bind:function(e){return Cr(n)},exists:A,forall:R,toOptional:U.none}},wr={value:br,error:Cr,fromOption:function(e,t){return e.fold(function(){return Cr(t)},br)}},xr=function(a){if(!S(a))throw new Error("cases must be an array");if(0===a.length)throw new Error("there must be at least one case");var u=[],n={};return Y(a,function(e,r){var t=ae(e);if(1!==t.length)throw new Error("one and only one name per case");var o=t[0],i=e[o];if(n[o]!==undefined)throw new Error("duplicate key detected:"+o);if("cata"===o)throw new Error("cannot have a case named cata (sorry)");if(!S(i))throw new Error("case arguments must be an array");u.push(o),n[o]=function(){for(var n=[],e=0;e\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ei=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ti=/[<>&\"\']/g,ni=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,ri={128:"\u20ac",130:"\u201a",131:"\u0192",132:"\u201e",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02c6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017d",145:"\u2018",146:"\u2019",147:"\u201c",148:"\u201d",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02dc",153:"\u2122",154:"\u0161",155:"\u203a",156:"\u0153",158:"\u017e",159:"\u0178"},oi={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},ii={"<":"<",">":">","&":"&",""":'"',"'":"'"},ai=function(e,t){var n,r,o,i={};if(e){for(e=e.split(","),t=t||10,n=0;n>10),56320+(1023&t))):ri[t]||String.fromCharCode(t):ii[e]||ui[e]||(n=e,(r=Tt.fromTag("div").dom).innerHTML=n,r.textContent||r.innerText||n);var n,r})}},di={},mi={},gi=At.makeMap,pi=At.each,hi=At.extend,vi=At.explode,yi=At.inArray,bi=function(e,t){return(e=At.trim(e))?e.split(t||" "):[]},Ci=function(e,n){var r;return e&&(r={},"string"==typeof e&&(e={"*":e}),pi(e,function(e,t){r[t]=r[t.toUpperCase()]=("map"===n?gi:vi)(e,/[, ]/)})),r},wi=function(i){var e,s,t,n,r,o,a,c,u,l,S={},f={},N=[],d={},m={},g=function(e,t,n){var r=i[e];return r?r=gi(r,/[, ]/,gi(r.toUpperCase(),/[, ]/)):(r=di[e])||(r=gi(t," ",gi(t.toUpperCase()," ")),r=hi(r,n),di[e]=r),r},p=(e=(i=i||{}).schema,c={},u=function(e,t,n){var r,o,i=function(e,t){for(var n={},r=0,o=e.length;r