/** * @monogrid/gainmap-js v3.1.0 * With ❤️, by MONOGRID */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["worker-interface"] = {})); })(this, (function (exports) { 'use strict'; var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; function getDefaultExportFromCjs (x) { return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; } var lib$1; var hasRequiredLib$1; function requireLib$1 () { if (hasRequiredLib$1) return lib$1; hasRequiredLib$1 = 1; var Mutation = commonjsGlobal.MutationObserver || commonjsGlobal.WebKitMutationObserver; var scheduleDrain; if (process.browser) { if (Mutation) { var called = 0; var observer = new Mutation(nextTick); var element = commonjsGlobal.document.createTextNode(''); observer.observe(element, { characterData: true }); scheduleDrain = function () { element.data = (called = ++called % 2); }; } else if (!commonjsGlobal.setImmediate && typeof commonjsGlobal.MessageChannel !== 'undefined') { var channel = new commonjsGlobal.MessageChannel(); channel.port1.onmessage = nextTick; scheduleDrain = function () { channel.port2.postMessage(0); }; } else if ('document' in commonjsGlobal && 'onreadystatechange' in commonjsGlobal.document.createElement('script')) { scheduleDrain = function () { // Create a