function init() { "use sloppy" function isCalledFromStrictCode() { const frames = getStackFrames(constructError(Error, emptyArray)) for (const frame of frames) { const filename = frame.getFileName() if (filename && ! isOwnPath(filename) && ! frame.isNative()) { return frame.getFunction() === void 0 } } return false } return isCalledFromStrictCode }
/** * Gets the native function at `key` of `object`. * * @private * @param {Object} object The object to query. * @param {string} key The key of the method to get. * @returns {*} Returns the function if it's native, else `undefined`. */ function getNative(object, key) { var value = object[key]; return isNative(value) ? value : undefined; }
/** * ReflowQueue.js * * Released under LGPL License. * Copyright (c) 1999-2017 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ c("tinymce.core.ui.ReflowQueue",["tinymce.core.util.Delay"],function(e){var t,n={};return{add:function(r){var i=r.parent();if(i){if(!i._layout||i._layout.isNative())return;n[i._id]||(n[i._id]=i),t||(t=!0,e.requestAnimationFrame(function(){var e,r;t=!1;for(e in n)r=n[e],r.state.get("rendered")&&r.reflow();n={}},document.body))}},remove:function(e){n[e._id]&&delete n[e._id]}}})
function wrap(impl) { if (impl === null) return null; assert(isNative(impl)); var wrapper = impl.__wrapper8e3dd93a60__; if (wrapper != null) { return wrapper; } return impl.__wrapper8e3dd93a60__ = new (getWrapperConstructor(impl, impl))(impl); }
/** * Observable.js * * Released under LGPL License. * Copyright (c) 1999-2017 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ c("tinymce.core.util.Observable",["tinymce.core.util.EventDispatcher"],function(e){function t(t){return t._eventDispatcher||(t._eventDispatcher=new e({scope:t,toggleEvent:function(n,r){e.isNative(n)&&t.toggleNativeEvent&&t.toggleNativeEvent(n,r)}})),t._eventDispatcher}return{fire:function(e,n,r){var i=this;if(i.removed&&"remove"!==e)return n;if(n=t(i).fire(e,n,r),r!==!1&&i.parent)for(var o=i.parent();o&&!n.isPropagationStopped();)o.fire(e,n,!1),o=o.parent();return n},on:function(e,n,r){return t(this).on(e,n,r)},off:function(e,n){return t(this).off(e,n)},once:function(e,n){return t(this).once(e,n)},hasEventListeners:function(e){return t(this).has(e)}}})
function() { var object = { '1': 0 }, func = preventExtensions && isNative(func = Object.assign) && func; try { func(preventExtensions(object), 'xo'); } catch(e) {} return !object[1] && func; }()
function rewrap(node, wrapper) { if (wrapper === null) return; assert(isNative(node)); assert(wrapper === undefined || isWrapper(wrapper)); node.__wrapper8e3dd93a60__ = wrapper; }
// stackframe argument resembles structured stack trace of v8 https://v8.dev/docs/stack-trace-api function isNode (stackframe) { if (stackframe.isNative) return true var filename = stackframe.getFileName() || '' return (!path.isAbsolute(filename) && filename[0] !== '.') }
function() { // Safari 5 errors when using an array buffer to initialize a typed array // where the array buffer's `byteLength` is not a multiple of the typed // array's `BYTES_PER_ELEMENT`. try { var func = isNative(func = context.Float64Array) && func, result = new func(new ArrayBuffer(10), 0, 1) && func; } catch(e) {} return result; }()
function() { // IE 8 only accepts DOM elements try { var o = {}, func = isNative(func = Object.defineProperty) && func, result = func(o, o, o) && func; } catch(e) { } return result; }()
/** * Gets the native function at `key` of `object`. * * @private * @param {Object} object The object to query. * @param {string} key The key of the method to get. * @returns {*} Returns the function if it's native, else `undefined`. */ function getNative(object, key) { var value = object == null ? undefined : object[key]; return isNative(value) ? value : undefined; }
/** * Gets the native function at `key` of `object`. * * @private * @param {Object} object The object to query. * @param {string} key The key of the method to get. * @returns {*} Returns the function if it's native, else `undefined`. */ function getNative(object, key) { var value = object == null ? undefined : object[key]; return isNative(value) ? value : undefined; }
/** * Gets the native function at `key` of `object`. * * @private * @param {Object} object The object to query. * @param {string} key The key of the method to get. * @returns {*} Returns the function if it's native, else `undefined`. */ function getNative(object, key) { var value = object == null ? undefined : object[key]; return isNative(value) ? value : undefined; }
/** * Gets the native function at `key` of `object`. * * @private * @param {Object} object The object to query. * @param {string} key The key of the method to get. * @returns {*} Returns the function if it's native, else `undefined`. */ function getNative(object, key) { var value = object == null ? undefined : object[key]; return isNative(value) ? value : undefined; }
function wrap(impl) { if (impl === null) return null; assert(isNative(impl)); var wrapper = impl.__wrapper8e3dd93a60__; if (wrapper != null) { return wrapper; } return impl.__wrapper8e3dd93a60__ = new (getWrapperConstructor(impl, impl))(impl); }