agenda-libre-ruby/public/assets/tinymce/plugins/lists/plugin-880842910ef491fec69d84c81e6f6453e729dc0fdf21989a73387461854ef461.js

11 lines
27 KiB
JavaScript
Raw Normal View History

2019-08-04 22:45:24 +02:00
/**
* 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.0.12 (2019-07-18)
*/
!function(u){"use strict";var e,n,t,r,o,i,a,s,c=tinymce.util.Tools.resolve("tinymce.PluginManager"),v=function(e){return function(){return e}},f=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return!t.apply(null,e)}},d=v(!1),l=v(!0),m=d,g=l,p=function(){return h},h=(r={fold:function(e,n){return e()},is:m,isSome:m,isNone:g,getOr:t=function(e){return e},getOrThunk:n=function(e){return e()},getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:function(){return null},getOrUndefined:function(){return undefined},or:t,orThunk:n,map:p,ap:p,each:function(){},bind:p,flatten:p,exists:m,forall:g,filter:p,equals:e=function(e){return e.isNone()},equals_:e,toArray:function(){return[]},toString:v("none()")},Object.freeze&&Object.freeze(r),r),y=function(t){var e=function(){return t},n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},is:function(e){return t===e},isSome:g,isNone:m,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return y(e(t))},ap:function(e){return e.fold(p,function(e){return y(e(t))})},each:function(e){e(t)},bind:r,flatten:e,exists:r,forall:r,filter:function(e){return e(t)?o:h},equals:function(e){return e.is(t)},equals_:function(e,n){return e.fold(m,function(e){return n(t,e)})},toArray:function(){return[t]},toString:function(){return"some("+t+")"}};return o},N={some:y,none:p,from:function(e){return null===e||e===undefined?h:y(e)}},S=function(n){return function(e){return function(e){if(null===e)return"null";var n=typeof e;return"object"===n&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===n&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":n}(e)===n}},O=S("string"),C=S("array"),b=S("boolean"),L=S("function"),T=S("number"),D=Array.prototype.slice,E=function(e,n){for(var t=e.length,r=new Array(t),o=0;o<t;o++){var i=e[o];r[o]=n(i,o,e)}return r},w=function(e,n){for(var t=0,r=e.length;t<r;t++){n(e[t],t,e)}},k=function(e,n){for(var t=[],r=0,o=e.length;r<o;r++){var i=e[r];n(i,r,e)&&t.push(i)}return t},A=function(e,n,t){return w(e,function(e){t=n(t,e)}),t},x=function(e,n){for(var t=0,r=e.length;t<r;t++){var o=e[t];if(n(o,t,e))return N.some(o)}return N.none()},R=Array.prototype.push,I=function(e,n){return function(e){for(var n=[],t=0,r=e.length;t<r;++t){if(!C(e[t]))throw new Error("Arr.flatten item "+t+" was not an array, input: "+e);R.apply(n,e[t])}return n}(E(e,n))},_=function(e){return 0===e.length?N.none():N.some(e[0])},B=function(e){return 0===e.length?N.none():N.some(e[e.length-1])},P=(L(Array.from)&&Array.from,function(e){if(null===e||e===undefined)throw new Error("Node cannot be null or undefined");return{dom:v(e)}}),M={fromHtml:function(e,n){var t=(n||u.document).createElement("div");if(t.innerHTML=e,!t.hasChildNodes()||1<t.childNodes.length)throw u.console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return P(t.childNodes[0])},fromTag:function(e,n){var t=(n||u.document).createElement(e);return P(t)},fromText:function(e,n){var t=(n||u.document).createTextNode(e);return P(t)},fromDom:P,fromPoint:function(e,n,t){var r=e.dom();return N.from(r.elementFromPoint(n,t)).map(P)}},U="undefined"!=typeof u.window?u.window:Function("return this;")(),F=function(e,n){return function(e,n){for(var t=n!==undefined&&null!==n?n:U,r=0;r<e.length&&t!==undefined&&null!==t;++r)t=t[e[r]];return t}(e.split("."),n)},j=function(e,n){var t=F(e,n);if(t===undefined||null===t)throw new Error(e+" not available on this browser");return t},H=function(){return j("Node")},$=function(e,n,t){return 0!=(e.compareDocumentPosition(n)&t)},q=function(e,n){return $(e,n,H().DOCUMENT_POSITION_CONTAINED_BY)},W=function(e,n){var t=function(e,n){for(var t=0;t<e.length;t++){var r=e[t];if(r.test(n))return r}return undefined}(e,n);if(!t)return{major:0,minor:0};var r=function(e){return Number(n.replace(t,"$"+e))};return z(r(1),r(2))},V=function(){return z(0,0)},z=function(e,n){return{