1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-25 16:19:46 +02:00
documize/gui/public/tinymce/tinymce.min.js

2 lines
333 KiB
JavaScript
Raw Normal View History

2017-12-09 12:42:35 +00:00
// 4.7.4 (2017-12-05)
2018-01-19 11:36:38 +00:00
!function(){"use strict";function e(){function e(n,r){return t.push(n+" ")>xe.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function t(e){return e[Me]=!0,e}function n(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||We)-(~e.sourceIndex||We);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function r(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function o(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function i(e){return t(function(n){return n=+n,t(function(t,r){for(var o,i=e([],t.length,n),a=i.length;a--;)t[o=i[a]]&&(t[o]=!(r[o]=t[o]))})})}function a(e){return e&&typeof e.getElementsByTagName!==$e&&e}function u(){}function s(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function c(e,t,n){var r=t.dir,o=n&&"parentNode"===r,i=Ue++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,a){var u,s,c=[ze,i];if(a){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||o){if(s=t[Me]||(t[Me]={}),(u=s[r])&&u[0]===ze&&u[1]===i)return c[2]=u[2];if(s[r]=c,c[2]=e(t,n,a))return!0}}}function l(e){return e.length>1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function f(e,t,n,r,o){for(var i,a=[],u=0,s=e.length,c=null!=t;u<s;u++)(i=e[u])&&(n&&!n(i,r,o)||(a.push(i),c&&t.push(u)));return a}function d(e,n,r,o,i,a){return o&&!o[Me]&&(o=d(o)),i&&!i[Me]&&(i=d(i,a)),t(function(t,a,u,s){var c,l,d,m=[],h=[],p=a.length,g=t||function(e,t,n){for(var r=0,o=t.length;r<o;r++)bt(e,t[r],n);return n}(n||"*",u.nodeType?[u]:u,[]),v=!e||!t&&n?g:f(g,m,e,u,s),y=r?i||(t?e:p||o)?[]:a:v;if(r&&r(v,y,u,s),o)for(c=f(y,h),o(c,[],u,s),l=c.length;l--;)(d=c[l])&&(y[h[l]]=!(v[h[l]]=d));if(t){if(i||e){if(i){for(c=[],l=y.length;l--;)(d=y[l])&&c.push(v[l]=d);i(null,y=[],c,s)}for(l=y.length;l--;)(d=y[l])&&(c=i?Ze.call(t,d):m[l])>-1&&(t[c]=!(a[c]=d))}}else y=f(y===a?y.splice(p,y.length):y),i?i(null,a,y,s):Je.apply(a,y)})}function m(e){for(var t,n,r,o=e.length,i=xe.relative[e[0].type],a=i||xe.relative[" "],u=i?1:0,f=c(function(e){return e===t},a,!0),h=c(function(e){return Ze.call(t,e)>-1},a,!0),p=[function(e,n,r){return!i&&(r||n!==Te)||((t=n).nodeType?f(e,n,r):h(e,n,r))}];u<o;u++)if(n=xe.relative[e[u].type])p=[c(l(p),n)];else{if((n=xe.filter[e[u].type].apply(null,e[u].matches))[Me]){for(r=++u;r<o&&!xe.relative[e[r].type];r++);return d(u>1&&l(p),u>1&&s(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(ot,"$1"),n,u<r&&m(e.slice(u,r)),r<o&&m(e=e.slice(r)),r<o&&s(e))}p.push(n)}return l(p)}var h,p,g,v,y,b,C,x,w,N,S,E,k=function(e){return function(){return e}},T={noop:function(){},noarg:function(e){return function(){return e()}},compose:function(e,t){return function(){return e(t.apply(null,arguments))}},constant:k,identity:function(e){return e},tripleEquals:function(e,t){return e===t},curry:function(e){for(var t=new Array(arguments.length-1),n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];var o=t.concat(n);return e.apply(null,o)}},not:function(e){return function(){return!e.apply(null,arguments)}},die:function(e){return function(){throw new Error(e)}},apply:function(e){return e()},call:function(e){e()},never:k(!1),always:k(!0)},A=T.never,_=T.always,R=function(){return B},B=function(){var e=function(e){return e.isNone()},t=function(e){return e()},n=function(e){return e},r={fold:function(e,t){return e()},is:A,isSome:A,isNone:_,getOr:n,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},or:n,orThunk:t,map:R,ap:R,each:function(){},bind:R,flatten:R,exists:A,forall:_,filter:R,equals:e,equals_:e,toArray:function(){return[]},toString:T.constant("none()")};return Object.freeze&&Object.freeze(r),r}(),D=function(e){var t=function(){return e},n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:_,isNone:A,getOr:t,getOr