policybot/fassets/js/components/tinymce/plugins/lists/plugin.min.js

9 lines
28 KiB
JavaScript
Raw Normal View History

2021-11-30 10:56:55 +00: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.8.1 (2021-05-20)
*/
!function(){"use strict";var e,t,n,r=tinymce.util.Tools.resolve("tinymce.PluginManager"),o=function(r){return function(e){return n=typeof(t=e),(null===t?"null":"object"==n&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"==n&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":n)===r;var t,n}},i=function(t){return function(e){return typeof e===t}},a=o("string"),l=o("object"),u=o("array"),s=i("boolean"),c=i("function"),f=i("number"),d=function(){},y=function(e){return function(){return e}},m=function(t){return function(e){return!t(e)}},p=y(!1),g=y(!0),v=function(){return h},h=(e=function(e){return e.isNone()},{fold:function(e,t){return e()},is:p,isSome:p,isNone:g,getOr:n=function(e){return e},getOrThunk:t=function(e){return e()},getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:y(null),getOrUndefined:y(undefined),or:n,orThunk:t,map:v,each:d,bind:v,exists:p,forall:g,filter:v,equals:e,equals_:e,toArray:function(){return[]},toString:y("none()")}),S=function(n){var e=y(n),t=function(){return o},r=function(e){return e(n)},o={fold:function(e,t){return t(n)},is:function(e){return n===e},isSome:g,isNone:p,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:t,orThunk:t,map:function(e){return S(e(n))},each:function(e){e(n)},bind:r,exists:r,forall:r,filter:function(e){return e(n)?o:h},toArray:function(){return[n]},toString:function(){return"some("+n+")"},equals:function(e){return e.is(n)},equals_:function(e,t){return e.fold(p,function(e){return t(n,e)})}};return o},C={some:S,none:v,from:function(e){return null===e||e===undefined?h:S(e)}},b=Array.prototype.slice,O=Array.prototype.push,N=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o)}return r},L=function(e,t){for(var n=0,r=e.length;n<r;n++){t(e[n],n)}},T=function(e,t){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];t(i,r)&&n.push(i)}return n},w=function(e,t,n){return L(e,function(e){n=t(n,e)}),n},D=function(e,t,n){for(var r=0,o=e.length;r<o;r++){var i=e[r];if(t(i,r))return C.some(i);if(n(i,r))break}return C.none()},k=function(e,t){return D(e,t,p)},x=function(e,t){return function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!u(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);O.apply(t,e[n])}return t}(N(e,t))},A=function(e){var t=b.call(e,0);return t.reverse(),t},E=function(e,t){return 0<=t&&t<e.length?C.some(e[t]):C.none()},P=function(e){return E(e,0)},B=function(e){return E(e,e.length-1)},I=function(){return(I=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};var R,M,U,_,$,F=function(e,t){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}return undefined}(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return j(r(1),r(2))},H=function(){return j(0,0)},j=function(e,t){return{major:e,minor:t}},q={nu:j,detect:function(e,t){var n=String(t).toLowerCase();return 0===e.length?H():F(e,n)},unknown:H},K=function(e,t){var n=String(t).toLowerCase();return k(e,function(e){return e.search(n)})},V=function(e,n){return K(e,n).map(function(e){var t=q.detect(e.versionRegexes,n);return{current:e.name,version:t}})},W=function(e,n){return K(e,n).map(function(e){var t=q.detect(e.versionRegexes,n);return{current:e.name,version:t}})},Q=function(e,t){return-1!==e.indexOf(t)},X=(R=/^\s+|\s+$/g,function(e){return e.replace(R,"")}),z=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Y=function(t){return function(e){return Q(e,t)}},Z=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return Q(e,"edge/")&&Q(e,"chrome")&&Q(e,"safari")&&Q(e,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,z],search:function(e){return Q(e,"chrome")&&!Q(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return Q