%PDF- %PDF-
Direktori : /home/tradesc/www/relax/wp-content/plugins/wp-meteor/assets/js/public/ |
Current File : /home/tradesc/www/relax/wp-content/plugins/wp-meteor/assets/js/public/public-debug.js.map |
{ "version": 3, "sources": ["../../../node_modules/@aguidrevitch/fpo-javascript-rewrite/src/wp-meteor/includes/utils/delta.js", "../../../node_modules/@aguidrevitch/fpo-javascript-rewrite/src/wp-meteor/includes/literals.js", "../../../node_modules/@aguidrevitch/fpo-javascript-rewrite/src/wp-meteor/includes/globals.js", "../../../node_modules/@aguidrevitch/fpo-javascript-rewrite/src/wp-meteor/includes/mocks/jquery.js", "../../../node_modules/@aguidrevitch/fpo-inpage-first-interaction/src/browser/utils/delta.mjs", "../../../node_modules/@aguidrevitch/fpo-inpage-first-interaction/src/browser/utils/console.mjs", "../../../node_modules/@aguidrevitch/fpo-inpage-events/src/index.mjs", "../../../node_modules/@aguidrevitch/fpo-inpage-first-interaction/src/browser/index.mjs", "../../../node_modules/@aguidrevitch/fpo-javascript-rewrite/src/wp-meteor/includes/utils/event-emitter.js", "../../../node_modules/@aguidrevitch/fpo-javascript-rewrite/src/wp-meteor/includes/utils/dispatcher.js", "../../../node_modules/@aguidrevitch/fpo-javascript-rewrite/src/wp-meteor/includes/elementor/device-mode.js", "../../../node_modules/@aguidrevitch/fpo-javascript-rewrite/src/wp-meteor/includes/elementor/animations.js", "../../../node_modules/@aguidrevitch/fpo-javascript-rewrite/src/wp-meteor/includes/elementor/pp-menu.js", "../../../node_modules/@aguidrevitch/fpo-javascript-rewrite/src/wp-meteor/public.js"], "sourcesContent": ["export default () => Math.round(performance.now()) / 1000;\n", "export const\n addEventListener = \"addEventListener\",\n removeEventListener = \"removeEventListener\",\n getAttribute = \"getAttribute\",\n setAttribute = \"setAttribute\",\n removeAttribute = \"removeAttribute\",\n hasAttribute = \"hasAttribute\",\n querySelector = \"querySelector\",\n querySelectorAll = querySelector + \"All\",\n appendChild = \"appendChild\",\n removeChild = \"removeChild\",\n createElement = \"createElement\",\n tagName = \"tagName\",\n getOwnPropertyDescriptor = \"getOwnPropertyDescriptor\",\n prototype = \"prototype\",\n __lookupGetter__ = \"__lookupGetter__\",\n __lookupSetter__ = \"__lookupSetter__\",\n DCL = \"DOMContentLoaded\",\n L = \"load\",\n E = \"error\";\n", "const\n w = window,\n d = document,\n de = d.documentElement,\n c = process.env.DEBUG ? console.log : () => { },\n ce = console.error;\n\nexport {\n w,\n d,\n de,\n c,\n ce,\n};", "import delta from \"../utils/delta\";\nimport {\n addEventListener,\n DCL,\n} from \"../literals\";\nimport {\n d,\n c,\n ce,\n} from \"../globals\";\n\n/**\n * class name should not match mocked object\n */\nlet mocked = true;\nexport default class jQueryMock {\n constructor() {\n this.known = [];\n }\n init() {\n\n let Mock;\n let Mock$;\n\n const override = (jQuery, symbol) => {\n\n if (mocked && jQuery && jQuery.fn && !jQuery.__wpmeteor) {\n process.env.DEBUG && c(delta(), \"new \" + symbol + \" detected\", jQuery.__wpmeteor, jQuery);\n\n // can't use () => {} as it binds to different this\n const enqueue = function (func) {\n process.env.DEBUG && c(delta(), \"enqueued jQuery(func)\", func);\n d[addEventListener](DCL, e => {\n process.env.DEBUG && c(delta(), \"running enqueued jQuery function\", func);\n func.call(d, jQuery, e, \"jQueryMock\");\n });\n return this;\n };\n\n this.known.push([jQuery, jQuery.fn.ready, jQuery.fn.init.prototype.ready]);\n jQuery.fn.ready = enqueue;\n jQuery.fn.init.prototype.ready = enqueue;\n jQuery.__wpmeteor = true;\n }\n return jQuery;\n };\n\n if (window.jQuery || window.$) {\n // not throwing error, as it might come from a chrome extension\n // but also not mocking it, just giving a warning\n process.env.DEBUG && ce(delta(), \"WARNING: JQUERY WAS INSTALLED BEFORE WP-METEOR, PROBABLY FROM A CHROME EXTENSION\");\n }\n\n Object.defineProperty(window, \"jQuery\", {\n get() {\n return Mock;\n },\n set(jQuery) {\n Mock = override(jQuery, \"jQuery\");\n },\n // configurable: true\n });\n\n Object.defineProperty(window, \"$\", {\n get() {\n return Mock$;\n },\n set($) {\n Mock$ = override($, \"$\");\n },\n // configurable: true\n });\n }\n unmock() {\n this.known.forEach(([jQuery, oldReady, oldPrototypeReady]) => {\n process.env.DEBUG && c(delta(), \"unmocking jQuery\", jQuery);\n jQuery.fn.ready = oldReady;\n jQuery.fn.init.prototype.ready = oldPrototypeReady;\n });\n mocked = false;\n }\n}\n", "export default () => Math.round(performance.now()) / 1000;\n", "const c = process.env.DEBUG ? console.log : () => { };\nexport default c;", "const EVENT_FIRST_INTERACTION = \"fpo:first-interaction\";\nconst EVENT_REPLAY_CAPTURED_EVENTS = \"fpo:replay-captured-events\";\nconst EVENT_LCP_ELEMENT = \"fpo:lcp-element\";\nconst EVENT_LCP_ELEMENT_CANDIDATE = \"fpo:lcp-element-candidate\";\nconst EVENT_LCP_LOADED = \"fpo:lcp-loaded\";\nconst EVENT_LCP_LOADED_CANDIDATE = \"fpo:lcp-loaded-candidate\";\nconst EVENT_LAZY_ELEMENT = \"fpo:lazy-element\";\nconst EVENT_LCP_BOTH = \"fpo:lcp-both\";\nconst EVENT_STYLES_TAG_AVAILABLE = \"fpo:styles-tag-available\";\nconst EVENT_CSS_LOADED = \"fpo:css-loaded\";\nconst EVENT_ELEMENT_LOADED = \"fpo:element-loaded\";\nconst EVENT_IMAGES_LOADED = \"fpo:images-loaded\";\nconst EVENT_THE_END = \"fpo:the-end\";\nconst EVENT_SCROLL_TO_REVEAL_ANIMATIONS = \"fpo:scroll-to-reveal-animations\";\n\nexport {\n EVENT_LCP_ELEMENT,\n EVENT_LCP_ELEMENT_CANDIDATE,\n EVENT_LCP_LOADED,\n EVENT_LCP_LOADED_CANDIDATE,\n EVENT_LAZY_ELEMENT,\n EVENT_LCP_BOTH,\n EVENT_STYLES_TAG_AVAILABLE,\n EVENT_FIRST_INTERACTION, \n EVENT_REPLAY_CAPTURED_EVENTS,\n EVENT_CSS_LOADED,\n EVENT_ELEMENT_LOADED,\n EVENT_IMAGES_LOADED,\n EVENT_THE_END,\n EVENT_SCROLL_TO_REVEAL_ANIMATIONS,\n};\n", "import delta from \"./utils/delta.mjs\";\nimport c from \"./utils/console.mjs\";\nimport { EVENT_FIRST_INTERACTION, EVENT_REPLAY_CAPTURED_EVENTS } from \"@aguidrevitch/fpo-inpage-events\";\n\nconst EVENT_CLICK = \"click\";\n\nconst w = window;\nconst wOrigAddEventListener = w.addEventListener.bind(w);\nconst wOrigRemoveEventListener = w.removeEventListener.bind(w);\nconst ra = \"removeAttribute\";\nconst ga = \"getAttribute\";\nconst sa = \"setAttribute\";\nconst passiveEvents = [\"touchstart\", \"touchmove\", \"touchend\", \"touchcancel\", \"keydown\", \"wheel\"]; //, \"scroll\"];\nconst activeEvents = [\"mouseover\", \"mouseout\", EVENT_CLICK];\nconst captureEvents = [\"touchstart\", \"touchend\", \"touchcancel\", \"mouseover\", \"mouseout\", EVENT_CLICK];\nconst prefix = \"data-wpmeteor-\";\nconst separator = \"----\";\nconst dispatchEvent = \"dispatchEvent\";\n\nconst synteticCick = e => {\n process.env.DEBUG && c(delta(), \"creating syntetic click event for\", e);\n const event = new MouseEvent(EVENT_CLICK, {\n view: e.view,\n bubbles: true,\n cancelable: true\n });\n Object.defineProperty(event, \"target\", { writable: false, value: e.target });\n return event;\n};\n\nclass InteractionEvents {\n static capture() {\n let firstInteractionFired = false;\n\n // lighthouse sets __nativePromise and __nativeURL\n // to the original Promise and URL\n const [, p, n] = `${window.Promise}`.split(/[\\s[(){]+/s);\n if (w[\"__\" + n + p]) {\n return;\n }\n\n const capturedEvents = [];\n const captureEvent = e => {\n if (e.target && (dispatchEvent in e.target)) {\n if (!e.isTrusted) {\n // this is a flag that this event is probably replaying\n process.env.DEBUG && c(delta(), \"the event is not trusted, configuration issues, not recording\", e.type, e.target);\n process.env.DEBUG && c(delta(), \"please double check if first interaction listener was installed before wp-meteor\");\n return;\n }\n if (e.cancelable && !passiveEvents.includes(e.type)) {\n try {\n e.preventDefault();\n } catch { }\n }\n e.stopImmediatePropagation();\n\n if (e.type === EVENT_CLICK) {\n process.env.DEBUG && c(delta(), \"captured\", e.type, e.target);\n capturedEvents.push(synteticCick(e));\n } else if (captureEvents.includes(e.type)) {\n process.env.DEBUG && c(delta(), \"captured\", e.type, e.target);\n capturedEvents.push(e);\n }\n // scroll event target doesn't have setAttribute\n // if (e.target[sa]) {\n // e.target[sa](prefix + e.type, true);\n // }\n e.target[sa](prefix + e.type, true);\n if (!firstInteractionFired) {\n firstInteractionFired = true;\n w[dispatchEvent](new CustomEvent(EVENT_FIRST_INTERACTION));\n }\n }\n };\n\n w.addEventListener(EVENT_REPLAY_CAPTURED_EVENTS, () => {\n process.env.DEBUG && c(delta(), separator, \"got \" + EVENT_REPLAY_CAPTURED_EVENTS);\n process.env.DEBUG && c(delta(), separator, \"removing event listeners\");\n activeEvents.forEach(event => wOrigRemoveEventListener(event, captureEvent, { passive: false, capture: true }));\n passiveEvents.forEach(event => wOrigRemoveEventListener(event, captureEvent, { passive: true, capture: true }));\n\n let e;\n while (e = capturedEvents.shift()) { // eslint-disable-line no-cond-assign\n var target = e.target;\n if (target[ga](prefix + \"touchstart\") && target[ga](prefix + \"touchend\") && !target[ga](prefix + EVENT_CLICK)) {\n if (target[ga](prefix + \"touchmove\")) {\n process.env.DEBUG && c(delta(), `touchmove happened, so not dispatching ${EVENT_CLICK} to `, e.target);\n } else {\n // why would I want to remove prefix + \"touchmove\", if previous if checks it is present?\n // target[ra](prefix + \"touchmove\");\n capturedEvents.push(synteticCick(e));\n }\n target[ra](prefix + \"touchstart\");\n target[ra](prefix + \"touchend\");\n } else {\n target[ra](prefix + e.type);\n }\n process.env.DEBUG && c(delta(), \" dispatching \" + e.type + \" to \", e.target);\n target[dispatchEvent](e);\n }\n });\n\n process.env.DEBUG && c(delta(), separator, \"installing first interaction event listeners\");\n activeEvents.forEach(event => wOrigAddEventListener(event, captureEvent, { passive: false, capture: true }));\n passiveEvents.forEach(event => wOrigAddEventListener(event, captureEvent, { passive: true, capture: true }));\n }\n}\n\nexport {\n InteractionEvents,\n};\n\nexport default InteractionEvents;", "export default class EventEmitter {\n constructor() {\n this.l = [];\n }\n emit(name, data = null) {\n this.l[name] && this.l[name].forEach(l => l(data));\n }\n on(name, callback) {\n this.l[name] ||= [];\n this.l[name].push(callback);\n }\n off(name, callback) {\n this.l[name] = (this.l[name] || []).filter(c => c !== callback);\n }\n /*\n once(name, callback) {\n const closure = () => {\n this.off(closure);\n callback();\n }\n this.l[name] ||= [];\n this.l[name].push(closure);\n }\n */\n}\n", "import EventEmitter from \"./event-emitter\";\nexport default new EventEmitter();\n", "import {\n setAttribute,\n appendChild,\n createElement,\n} from \"../literals\";\n\nimport {\n d,\n} from \"../globals\";\n\nconst $deviceMode = d[createElement](\"span\");\n$deviceMode[setAttribute](\"id\", \"elementor-device-mode\");\n$deviceMode[setAttribute](\"class\", \"elementor-screen-only\");\n\nlet attached = false;\n\nexport default () => {\n if (!attached) {\n d.body[appendChild]($deviceMode);\n }\n return getComputedStyle($deviceMode, \":after\").content.replace(/\"/g, \"\");\n};\n", "import delta from \"../utils/delta\";\nimport dispatcher from \"../utils/dispatcher\";\nimport getCurrentDeviceMode from \"./device-mode\";\nimport {\n getAttribute,\n setAttribute,\n addEventListener,\n querySelectorAll,\n L,\n} from \"../literals\";\nimport {\n w,\n d,\n de,\n c,\n} from \"../globals\";\n\nconst getClass = (el) => {\n return el[getAttribute](\"class\") || \"\";\n};\n\nconst setClass = (el, value) => {\n return el[setAttribute](\"class\", value);\n};\n\nexport default () => {\n w[addEventListener](L, function () {\n const mode = getCurrentDeviceMode();\n const vw = Math.max(de.clientWidth || 0, w.innerWidth || 0);\n const vh = Math.max(de.clientHeight || 0, w.innerHeight || 0);\n\n const keys = [\"_animation_\" + mode, \"animation_\" + mode, \"_animation\", \"_animation\", \"animation\"];\n Array.from(d[querySelectorAll](\".elementor-invisible\")).forEach(el => {\n\n // we only want to optimize elements in the top of the page\n const viewportOffset = el.getBoundingClientRect();\n if (viewportOffset.top + w.scrollY <= vh && viewportOffset.left + w.scrollX < vw) {\n try {\n const settings = JSON.parse(el[getAttribute](\"data-settings\"));\n if (settings.trigger_source) {\n return;\n }\n const animationDelay = settings._animation_delay || settings.animation_delay || 0;\n let animation, key;\n\n for (var i = 0; i < keys.length; i++) {\n if (settings[keys[i]]) {\n key = keys[i];\n animation = settings[key];\n break;\n }\n }\n\n if (animation) {\n process.env.DEBUG && c(delta(), \"animating with\" + animation, el);\n const oldClass = getClass(el);\n const newClass = animation === \"none\"\n ? oldClass\n : oldClass + \" animated \" + animation;\n\n const animate = () => {\n setClass(el, newClass.replace(/\\belementor-invisible\\b/, \"\"));\n keys.forEach(key => delete settings[key]);\n el[setAttribute](\"data-settings\", JSON.stringify(settings));\n };\n\n let timeout = setTimeout(animate, animationDelay);\n\n dispatcher.on(\"fi\", () => {\n clearTimeout(timeout);\n setClass(el, getClass(el).replace(new RegExp(\"\\\\b\" + animation + \"\\\\b\"), \"\"));\n });\n\n }\n } catch (e) {\n console.error(e);\n }\n }\n });\n });\n};", "import {\n getAttribute,\n setAttribute,\n addEventListener,\n querySelectorAll,\n appendChild,\n removeChild,\n createElement,\n tagName,\n DCL,\n} from \"../literals\";\nimport {\n d,\n} from \"../globals\";\n\nconst inmega = \"data-in-mega_smartmenus\";\n\nexport default () => {\n\n const div = d[createElement](\"div\");\n div.innerHTML = \"<span class=\\\"sub-arrow --wp-meteor\\\"><i class=\\\"fa\\\" aria-hidden=\\\"true\\\"></i></span>\";\n const placeholder = div.firstChild;\n\n const prevAll = el => {\n const result = [];\n while (el = el.previousElementSibling) // eslint-disable-line no-cond-assign\n result.push(el);\n return result;\n };\n\n d[addEventListener](DCL, function () {\n Array.from(d[querySelectorAll](\".pp-advanced-menu ul\")).forEach(ul => {\n /* skipping mega menues */\n if (ul[getAttribute](inmega)) {\n return;\n } else if ((ul[getAttribute](\"class\") || \"\").match(/\\bmega-menu\\b/)) {\n ul[querySelectorAll](\"ul\").forEach(ul => {\n ul[setAttribute](inmega, true);\n });\n }\n let prev = prevAll(ul);\n let a = prev.filter(el => el).filter(el => el[tagName] === \"A\").pop();\n if (!a) {\n a = prev.map(el => Array.from(el[querySelectorAll](\"a\"))).filter(el => el).flat().pop();\n }\n if (a) {\n const span = placeholder.cloneNode(true);\n a[appendChild](span);\n\n const observer = new MutationObserver(mutations => {\n mutations.forEach(({ addedNodes }) => {\n addedNodes.forEach(node => {\n // For each added script tag\n if (node.nodeType === 1 && \"SPAN\" === node[tagName]) {\n try {\n a[removeChild](span);\n } catch {\n // do nothing\n }\n }\n });\n });\n });\n observer.observe(a, { childList: true });\n }\n });\n });\n};", "/* global _wpmeteor, RocketLazyLoadScripts */\n\nimport jQueryMock from \"./includes/mocks/jquery\";\nimport InteractionEvents from \"@aguidrevitch/fpo-inpage-first-interaction\";\nimport dispatcher from \"./includes/utils/dispatcher\";\nimport delta from \"./includes/utils/delta\";\nimport elementorAnimations from \"./includes/elementor/animations\";\nimport elementorPP from \"./includes/elementor/pp-menu\";\nimport {\n addEventListener,\n removeEventListener,\n getAttribute,\n setAttribute,\n removeAttribute,\n hasAttribute,\n // querySelectorAll,\n appendChild,\n removeChild,\n tagName,\n getOwnPropertyDescriptor,\n prototype,\n __lookupGetter__,\n __lookupSetter__,\n DCL,\n L,\n E,\n} from \"./includes/literals\";\nimport {\n w,\n d,\n c,\n ce,\n} from \"./includes/globals\";\n\nimport {\n EVENT_CSS_LOADED,\n EVENT_ELEMENT_LOADED,\n EVENT_FIRST_INTERACTION,\n EVENT_REPLAY_CAPTURED_EVENTS,\n EVENT_IMAGES_LOADED,\n EVENT_THE_END,\n} from \"@aguidrevitch/fpo-inpage-events\";\n\nconst RSC = \"readystatechange\",\n M = \"message\",\n separator = \"----\",\n S = \"SCRIPT\",\n prefix = \"data-wpmeteor-\",\n Object_defineProperty = Object.defineProperty,\n Object_defineProperties = Object.defineProperties,\n javascriptBlocked = \"javascript/blocked\",\n isJavascriptRegexp = /^\\s*(application|text)\\/javascript|module\\s*$/i,\n _rAF = \"requestAnimationFrame\",\n _rIC = \"requestIdleCallback\",\n _setTimeout = \"setTimeout\",\n __dynamic = \"__dynamic\";\n\nconst windowEventPrefix = w.constructor.name + \"::\";\nconst documentEventPrefix = d.constructor.name + \"::\";\n\nconst forEach = function (callback, thisArg) {\n thisArg = thisArg || w;\n for (var i = 0; i < this.length; i++) {\n callback.call(thisArg, this[i], i, this);\n }\n};\n\nif (\"NodeList\" in w && !NodeList[prototype].forEach) {\n process.env.DEBUG && c(\"polyfilling NodeList.forEach\");\n NodeList[prototype].forEach = forEach;\n}\nif (\"HTMLCollection\" in w && !HTMLCollection[prototype].forEach) {\n process.env.DEBUG && c(\"polyfilling HTMLCollection.forEach\");\n HTMLCollection[prototype].forEach = forEach;\n}\n\nprocess.env.SPO || (() => {\n if (_wpmeteor[\"elementor-animations\"]) {\n elementorAnimations();\n }\n\n if (_wpmeteor[\"elementor-pp\"]) {\n elementorPP();\n }\n})();\n\nconst reorder = [];\nconst defer = [];\nconst async = [];\n\nlet DONE = false;\nconst eventQueue = [];\nlet listeners = {};\nlet WindowLoaded = false;\nlet firedEventsCount = 0;\n\nlet rAF = d.visibilityState === \"visible\" ? w[_rAF] : w[_setTimeout];\nlet rIC = w[_rIC] || rAF;\nd[addEventListener](\"visibilitychange\", () => {\n rAF = d.visibilityState === \"visible\" ? w[_rAF] : w[_setTimeout];\n rIC = w[_rIC] || rAF;\n});\n\nconst nextTick = w[_setTimeout];\n\nlet createElementOverride;\nconst capturedAttributes = [\"src\", \"type\"];\n\n/* Hack around 'avoid serving legacy javascript to modern browsers' */\nconst O = Object,\n definePropert = \"definePropert\";\n\nO[definePropert + \"y\"] = (object, property, options) => {\n if (object === w && ([\"jQuery\", \"onload\"].indexOf(property) >= 0)\n || (object === d || object === d.body) && [\"readyState\", \"write\", \"writeln\", \"on\" + RSC].indexOf(property) >= 0) {\n if ([\"on\" + RSC, \"on\" + L].indexOf(property) && options.set) {\n listeners[\"on\" + RSC] = listeners[\"on\" + RSC] || [];\n listeners[\"on\" + RSC].push(options.set);\n // objectRedefinitions['onreadystatechange'] = options;\n } else {\n process.env.DEBUG && ce(\"Denied \" + (object.constructor || {}).name + \" \" + property + \" redefinition\");\n }\n return object;\n } else if ((object instanceof HTMLScriptElement) && capturedAttributes.indexOf(property) >= 0) {\n if (!object[property + \"Getters\"]) {\n object[property + \"Getters\"] = [];\n object[property + \"Setters\"] = [];\n Object_defineProperty(object, property, {\n set(value) {\n object[property + \"Setters\"].forEach(setter => setter.call(object, value));\n },\n get() {\n return object[property + \"Getters\"].slice(-1)[0]();\n }\n });\n }\n\n if (options.get) {\n object[property + \"Getters\"].push(options.get);\n }\n\n if (options.set) {\n object[property + \"Setters\"].push(options.set);\n }\n\n return object;\n }\n // console.log(\"object\", object, \"property\", property, \"options\", options, new Error().stack);\n return Object_defineProperty(object, property, options);\n};\n\nO[definePropert + \"ies\"] = (object, properties) => {\n // console.log(\"object\", object, \"properties\", properties);\n for (let i in properties) {\n O[definePropert + \"y\"](object, i, properties[i]);\n }\n // symbols are not enumerable,\n // so we have to use Object.getOwnPropertySymbols\n // for compatibility with https://modelviewer.dev/\n for (let sym of Object.getOwnPropertySymbols(properties)) {\n O[definePropert + \"y\"](object, sym, properties[sym]);\n }\n return object;\n};\n\nif (process.env.DEBUG) {\n d[addEventListener](RSC, () => {\n c(delta(), separator, RSC, d.readyState);\n });\n\n d[addEventListener](DCL, () => {\n c(delta(), separator, DCL);\n });\n\n dispatcher.on(EVENT_THE_END, () => {\n c(delta(), separator, EVENT_THE_END);\n c(delta(), separator, firedEventsCount + \" queued events fired\");\n });\n\n w[addEventListener](L, () => {\n c(delta(), separator, L);\n });\n}\n\n// saving original methods\nconst origAddEventListener = EventTarget[prototype][addEventListener];\nconst origRemoveEventListener = EventTarget[prototype][removeEventListener];\nconst dOrigAddEventListener = origAddEventListener.bind(d);\nconst dOrigRemoveEventListener = origRemoveEventListener.bind(d);\nconst wOrigAddEventListener = origAddEventListener.bind(w);\nconst wOrigRemoveEventListener = origRemoveEventListener.bind(w);\nconst origCreateElement = Document[prototype].createElement;\nconst dOrigCreateElement = origCreateElement.bind(d);\nconst origReadyStateGetter = d.__proto__[__lookupGetter__](\"readyState\").bind(d); // eslint-disable-line no-unused-vars\n\nlet readyState = \"loading\";\nObject_defineProperty(d, \"readyState\", {\n get() { return readyState; },\n set(value) { return readyState = value; },\n});\n\nconst hasUnfiredListeners = (eventNames) => {\n return eventQueue.filter(([event, , context], j) => {\n if (eventNames.indexOf(event.type) < 0) {\n return;\n }\n if (!context) {\n context = event.target;\n }\n try {\n const name = context.constructor.name + \"::\" + event.type;\n for (let i = 0; i < listeners[name].length; i++) {\n if (listeners[name][i]) {\n const listenerKey = name + \"::\" + j + \"::\" + i;\n if (!firedListeners[listenerKey]) {\n return true;\n }\n }\n }\n } catch (e) {\n // do nothing\n }\n }).length;\n};\n\nlet currentlyFiredEvent;\nconst firedListeners = {};\nconst fireQueuedEvents = (eventNames) => {\n eventQueue.forEach(([event, readyState, context], j) => {\n if (eventNames.indexOf(event.type) < 0) {\n return;\n }\n if (!context) {\n context = event.target;\n }\n try {\n const name = context.constructor.name + \"::\" + event.type;\n if ((listeners[name] || []).length) {\n // listeners[name].forEach doesn't work as the listeners might be added \n // during the loop\n for (let i = 0; i < listeners[name].length; i++) {\n const func = listeners[name][i];\n if (func) {\n // readystatechanges fires multiple time times on same \n // listener with different readyState, accounting for that\n // const listenerKey = event === M \n // ? name + '::' + j + '::' + i + '::' + readyState\n // : name + '::' + i + '::' + readyState;\n const listenerKey = name + \"::\" + j + \"::\" + i;\n if (!firedListeners[listenerKey]) {\n firedListeners[listenerKey] = true;\n d.readyState = readyState;\n currentlyFiredEvent = name;\n try {\n firedEventsCount++;\n process.env.DEBUG && c(delta(), \"firing \" + event.type + \"(\" + d.readyState + \") for\", func[prototype] ? func[prototype].constructor : func);\n if (!func[prototype] || func[prototype].constructor === func) {\n func.bind(context)(event);\n } else {\n func(event);\n }\n } catch (e) {\n ce(e, func);\n }\n currentlyFiredEvent = null;\n }\n }\n }\n }\n } catch (e) {\n ce(e);\n }\n });\n};\n\n// we need to clone L, DCL, RSC events\n// because we internally track them and use them, eg window.load\n// if some script like elementor runs e.stopImmediatePropagation()\n// we won't ever get them, just the same way we do in the inpage-first-interaction\ndOrigAddEventListener(DCL, (e) => {\n process.env.DEBUG && c(delta(), \"enqueued document \" + DCL);\n eventQueue.push([new e.constructor(DCL, e), origReadyStateGetter(), d]);\n});\ndOrigAddEventListener(RSC, (e) => {\n process.env.DEBUG && c(delta(), \"enqueued document \" + RSC);\n eventQueue.push([new e.constructor(RSC, e), origReadyStateGetter(), d]);\n});\nwOrigAddEventListener(DCL, (e) => {\n process.env.DEBUG && c(delta(), \"enqueued window \" + DCL);\n eventQueue.push([new e.constructor(DCL, e), origReadyStateGetter(), w]);\n});\nwOrigAddEventListener(L, (e) => {\n WindowLoaded = true;\n process.env.DEBUG && c(delta(), \"enqueued window \" + L);\n eventQueue.push([new e.constructor(L, e), origReadyStateGetter(), w]);\n // we must fire queued events for excluded scripts\n // if firstInteractionFired, then some scripts might have registered load event listeners\n // and they will be fired as well, which is invalid behaviour\n // https://wordpress.org/support/topic/meteor-blocks-contact-form-email/\n if (!iterating) {\n fireQueuedEvents([DCL, RSC, M, L]);\n }\n});\nconst messageListener = (e) => {\n process.env.DEBUG && c(delta(), \"enqueued \" + M);\n eventQueue.push([e, d.readyState, w]);\n};\n\nconst origWindowOnMessageGetter = w[__lookupGetter__](\"onmessage\");\nconst origWindowOnMessageSetter = w[__lookupSetter__](\"onmessage\");\n\n// will be called inside iterate, right before dispatching EVENT_THE_END\nconst restoreMessageListener = () => {\n // this code is called only when all the events were fired\n wOrigRemoveEventListener(M, messageListener);\n // restoring message listeners\n (listeners[windowEventPrefix + \"message\"] || []).forEach(listener => {\n wOrigAddEventListener(M, listener);\n });\n Object_defineProperty(w, \"onmessage\", {\n get: origWindowOnMessageGetter,\n set: origWindowOnMessageSetter,\n });\n process.env.DEBUG && c(delta(), \"message listener restored\");\n};\n// removal will be inside iterate\nwOrigAddEventListener(M, messageListener);\n\n// jQuery mock allows to trigger jQuery.ready early\n// because if we rely on native logics, the ready() listeners will fire after window.load\nconst jQuery = new jQueryMock();\njQuery.init();\n\n// there are 3 cases\n// 1. first interaction fires before window.load as a resut of user interaction\n// 2. window.load fires before first interaction \n// 3. !!!!!!! 3rd party scripts might trigger it programmatically if they were excluded from optimization\nconst startIterating = () => {\n if (!iterating && !DONE) {\n iterating = true;\n // mayBePreloadScripts();\n d.readyState = \"loading\";\n rAF(flushPreloadsAndPreconnects);\n rAF(iterate); // starts the iteration\n // nextTick(iterate); // starts the iteration\n }\n /**\n * If window.load fires after iteration complete, eg some images delay window.load\n * there might be some unfired events left in the queue\n * so we will restart iteration which will fire them\n */\n if (!WindowLoaded) {\n wOrigAddEventListener(L, () => {\n process.env.DEBUG && c(delta(), separator, \"starting iterating after window loaded\");\n startIterating();\n });\n }\n};\n\nwOrigAddEventListener(EVENT_FIRST_INTERACTION, () => {\n process.env.DEBUG && c(delta(), separator, \"starting iterating on first interaction\");\n startIterating();\n});\n\n/* EVENT_IMAGES_LOADED is an internal event, known to dispatcher only */\ndispatcher.on(EVENT_IMAGES_LOADED, () => {\n process.env.DEBUG && c(delta(), separator, \"starting iterating after images loaded\");\n startIterating();\n});\n\nprocess.env.SPO || (() => {\n if (_wpmeteor.rdelay >= 0) {\n InteractionEvents.capture();\n }\n})();\n\n// scriptsToLoad is set to 1 to allow an extra call at the end of iteration\n// that means that once last script loads, it won't trigger the end of the cycle\n// only after all the events fire, the cycle will end\nlet scriptsToLoad = [-1];\nconst scriptLoaded = (event) => {\n process.env.DEBUG && c(delta(), \"scriptLoaded\", event.target, scriptsToLoad.length);\n scriptsToLoad = scriptsToLoad.filter(script => script !== event.target);\n if (!scriptsToLoad.length) {\n // this is ultimate end of the iteration cycle\n nextTick(dispatcher.emit.bind(dispatcher, EVENT_THE_END));\n }\n};\n\nlet i = 0;\nlet iterating = false;\n\n// TODO: async and defer scripts can be injected into the document in parallel\n// we can either insert them in 2 batches (defer, then async), or even in one batch\nconst iterate = () => {\n process.env.DEBUG && c(delta(), \"it\", i++, reorder.length);\n const element = reorder.shift();\n if (element) {\n // process.env.DEBUG && c(separator, \"iterating\", element, element.dataset);\n if (element[getAttribute](prefix + \"src\")) {\n if (element[hasAttribute](\"async\") || element[__dynamic]) {\n if (element.isConnected) {\n // we can't be sure that it is going to be inserted into the DOM\n process.env.DEBUG && c(delta(), \"pushed to scriptsToLoad\", scriptsToLoad);\n scriptsToLoad.push(element);\n // https://github.com/aguidrevitch/fpo-javascript-rewrite/issues/6\n // https://wordpress.org/support/topic/script-loading-waited-on-js-file/\n // if an async script hangs for longer than 1 seconds\n // we stop waiting for it to finish page load\n setTimeout(scriptLoaded, 1000, { target: element });\n }\n // even if it is not in the scriptsToLoad list, \n // scriptLoaded won't remove it from the list\n unblock(element, scriptLoaded);\n nextTick(iterate);\n } else {\n // process.env.DEBUG && c(delta(), \"sync\", element);\n unblock(element, nextTick.bind(null, iterate));\n // iterate()\n }\n } else if (element.origtype == javascriptBlocked) {\n unblock(element);\n // allow inserted script to execute\n nextTick(iterate);\n } else {\n // it might be wrongfully processed script by backend, eg type=\"application/ld+json\" \n // and execution will stop here\n process.env.DEBUG && ce(\"running next iteration\", element, element.origtype, element.origtype == javascriptBlocked);\n nextTick(iterate);\n }\n // } else if (scriptsToInsert) {\n // process.env.DEBUG && c(delta(), scriptsToInsert, \"more scripts to insert\");\n // rAF(iterate);\n } else {\n if (defer.length) {\n process.env.DEBUG &&\n defer.forEach(script =>\n c(delta(), \"adding deferred script from defer queue to reorder\", script.cloneNode(true))\n );\n reorder.push(...defer);\n defer.length = 0;\n\n // mayBePreloadScripts();\n nextTick(iterate);\n\n // process.env.DEBUG && c('loaded all the scripts');\n // not restoring original addEventListener\n // to avoid unexpected failures,\n // however, that triggers spurious handlers which were sleeping\n // d[addEventListener] = dOrigAddEventListener;\n } else if (hasUnfiredListeners([DCL, RSC, M])) {\n process.env.DEBUG && c(delta(), \"firing unfired listeners\");\n fireQueuedEvents([DCL, RSC, M]);\n nextTick(iterate);\n } else if (WindowLoaded) {\n // as cycle starts in 'fi' listener\n if (hasUnfiredListeners([L, M])) {\n fireQueuedEvents([L, M]);\n nextTick(iterate);\n } else if (scriptsToLoad.length > 1) {\n // can get here only if started loading async scripts\n process.env.DEBUG && c(delta(), `waiting for ${scriptsToLoad.length - 1} more scripts to load`, scriptsToLoad);\n rIC(iterate);\n } else if (async.length) {\n process.env.DEBUG &&\n async.forEach(script =>\n c(delta(), \"adding async script from async queue to reorder\", script.cloneNode(true))\n );\n\n reorder.push(...async);\n async.length = 0;\n\n // mayBePreloadScripts();\n nextTick(iterate);\n } else {\n // CloudFlare RocketLoader workaround\n if (w.RocketLazyLoadScripts) {\n try {\n RocketLazyLoadScripts.run();\n } catch (e) {\n ce(e);\n }\n }\n d.readyState = \"complete\";\n\n // restoring message listener here to avoid messages that can fall\n // in the gap before EVENT_THE_END fires\n restoreMessageListener();\n\n // restoring original jQuery.ready here to avoid calls that can fall\n // in the gap before EVENT_THE_END fires\n jQuery.unmock();\n\n // We can't restore original event listeners\n // because on slow connections, 3rd party scripts might be loaded late\n // and bind to window.load or anything else we track\n // documentAddEventListener = dOrigAddEventListener;\n // documentRemoveEventListener = dOrigRemoveEventListener;\n // windowAddEventListener = wOrigAddEventListener;\n // windowRemoveEventListener = wOrigRemoveEventListener;\n\n // process.env.DEBUG && c('running emulatedWindowLoaded');\n // technically, iterating = false is not needed\n // as the only place where it is checked is inside window.load\n // and here he has already fired as WindowLoaded === true\n iterating = false;\n DONE = true;\n\n // setTimeout(() => dispatcher.emit(EVENT_THE_END));\n w[_setTimeout](() => scriptLoaded({ target: -1 }));\n }\n } else {\n // exiting iterate() cycle in case window.load hasn't fired yet\n iterating = false;\n }\n }\n};\n\nconst cloneScript = (el) => {\n\n const newElement = dOrigCreateElement(S);\n\n const attrs = el.attributes;\n // console.log(\"newElement\", attrs.map(attr => attr.name + \"=\" + attr.value));\n\n // move attributes\n for (var i = attrs.length - 1; i >= 0; i--) {\n if (!attrs[i].name.startsWith(prefix)) {\n newElement[setAttribute](attrs[i].name, attrs[i].value);\n }\n }\n\n const type = el[getAttribute](prefix + \"type\"); // data-wpmeteor-type\n if (type) {\n newElement.type = type;\n } else {\n newElement.type = \"text/javascript\";\n }\n\n // CloudFlare RocketLoader workaround\n if ((el.textContent || \"\").match(/^\\s*class RocketLazyLoadScripts/)) {\n newElement.textContent = el.textContent.replace(/^\\s*class\\s*RocketLazyLoadScripts/, \"window.RocketLazyLoadScripts=class\").replace(\"RocketLazyLoadScripts.run();\", \"\");\n } else {\n newElement.textContent = el.textContent;\n }\n\n // these might not be set as attributes, but instead as properties\n for (const property of [\"onload\", \"onerror\", \"onreadystatechange\"]) {\n if (el[property]) {\n process.env.DEBUG && c(delta(), `re-adding ${property} to`, el, el[property]);\n newElement[property] = el[property];\n }\n }\n\n return newElement;\n};\n\n// let scriptsToInsert = 0;\n/*\nconst replaceScript = (el, newElement) => {\n const parentNode = el.parentNode;\n if (parentNode) {\n // some scripts want parentNode to remove script themselves\n const newParent = parentNode.nodeType === 11\n ? dOrigCreateElement(parentNode.host[tagName])\n : dOrigCreateElement(parentNode[tagName]);\n // rAF is probably inacceptable for inline scripts at least. Here is the catch\n // a script is supposed to create another script which should be captured by MutationObserver\n // but by the time document.createElement() is called, iterating = false\n // this is temporary fix, probably there are better solutions\n // scriptsToInsert++;\n // rAF(() => {\n // scriptsToInsert--;\n // newParent[appendChild](parentNode.replaceChild(newElement, el));\n // });\n newParent[appendChild](parentNode.replaceChild(newElement, el));\n if (!parentNode.isConnected) {\n // it happens sometimes, so no need to trigger verbose error\n process.env.DEBUG && ce(\"Parent for\", el, \" is not part of the DOM\");\n // we have to return empty element to trigger onload() callback\n // instantly instead of waiting for never firing onload event listener\n return;\n }\n return el;\n }\n ce(\"No parent for\", el);\n};\n*/\n\nconst unblock = (el, callback) => {\n // const ds = el.dataset;\n let src = el[getAttribute](prefix + \"src\");\n // convert relative to absolute if SPO\n process.env.SPO && src && _wpmeteor.baseURL && (() => { try { src = new URL(src, _wpmeteor.baseURL).href; } catch { } })(); // eslint-disable-line no-empty\n\n if (src) {\n process.env.DEBUG && c(delta(), \"unblocking src\", src);\n\n const addEventListener = origAddEventListener.bind(el);\n\n // if (el.getEventListeners) {\n // el.getEventListeners().forEach(([event, listener]) => {\n // process.env.DEBUG && c(delta(), \"re-adding event listeners to element\", event, listener);\n // addEventListener(event, listener);\n // });\n // }\n\n if (el.isConnected && callback) {\n addEventListener(L, callback);\n addEventListener(E, callback);\n }\n\n /** setting type before src is crucial for load/error events to be triggered \n * According to the HTML5 specification, when a script element is inserted \n * into the document, it starts fetching the script as soon as the src attribute is encountered, \n * provided the type is a recognized script type. If the type is not set correctly at that point, \n * the script will not be fetched.\n */\n /* el.origtypegets and sets original \"type\" attribute, el.type points to data-wpmeteor-src */\n el.origtype = el[getAttribute](prefix + \"type\") || \"text/javascript\";\n /* el.origsrc gets and sets original \"src\" attribute, el.src points to data-wpmeteor-src */\n el.origsrc = src;\n\n /** Do not remove prefix + \"src\" and prefix + \"type\" attributes, they are needed in the following case:\n * * document.currentScript.getAttribute('src') will return null if they are removed\n * as access to the attributes is still wrapped by us\n */\n // el[removeAttribute](prefix + \"src\");\n // el[removeAttribute](prefix + \"type\");\n\n process.env.DEBUG && c(delta(), \"unblocked src\", src, el);\n // http://www.iana.org/assignments/media-types/media-types.xhtml\n // in fact only text/javascript is the right one, the rest is obsolete\n if ((!el.isConnected || el[hasAttribute](\"nomodule\") || (el.type && !isJavascriptRegexp.test(el.type))) && callback) {\n // listeners won't fire\n // so have to trigger callback\n callback(new Event(L, { target: el }));\n }\n } else if (el.origtype === javascriptBlocked) {\n // onLoad is never passed here\n process.env.DEBUG && c(delta(), \"unblocking inline\", el);\n el.origtype = el[getAttribute](prefix + \"type\") || \"text/javascript\";\n // have to insert updated content in order to trigger execution\n // we are going to change the content, so integrity is not valid anymore\n el[removeAttribute](\"integrity\");\n el.textContent = el.textContent + \"\\n\";\n process.env.DEBUG && c(delta(), \"unblocked inline\", el);\n } else {\n process.env.DEBUG && ce(delta(), \"already unblocked\", el);\n if (callback) {\n callback(new Event(L, { target: el }));\n }\n }\n};\n// TODO: support for ...args ????\nconst removeQueuedEventListener = (name, func) => {\n const pos = (listeners[name] || []).indexOf(func);\n if (pos >= 0) {\n listeners[name][pos] = undefined;\n return true;\n }\n};\n\nconst documentAddEventListener = (event, func, ...args) => {\n if (\"HTMLDocument::\" + DCL == currentlyFiredEvent && event === DCL && !func.toString().match(/jQueryMock/)) {\n dispatcher.on(EVENT_THE_END, d[addEventListener].bind(d, event, func, ...args));\n return;\n }\n if (func && (event === DCL || event === RSC)) {\n process.env.DEBUG && c(delta(), \"enqueuing event listener\", event, func);\n const name = documentEventPrefix + event;\n listeners[name] = listeners[name] || [];\n listeners[name].push(func);\n if (DONE) {\n fireQueuedEvents([event]);\n }\n return;\n }\n return dOrigAddEventListener(event, func, ...args);\n};\n\n// ...args were missing, making it impossible to remove listeners for google maps mobile\nconst documentRemoveEventListener = (event, func, ...args) => {\n if (event === DCL) {\n const name = documentEventPrefix + event;\n removeQueuedEventListener(name, func);\n }\n return dOrigRemoveEventListener(event, func, ...args);\n};\n\n// some optimizers think they can optimize better than us\n// but it is not true as to 18 Jul 2021\n// so let's keep our handlers\nObject_defineProperties(d, {\n [addEventListener]: {\n get() { return documentAddEventListener; },\n set() { return documentAddEventListener; },\n },\n [removeEventListener]: {\n get() { return documentRemoveEventListener; },\n set() { return documentRemoveEventListener; },\n }\n});\n\nlet preloadsAndPreconnectsFragment = d.createDocumentFragment();\nconst flushPreloadsAndPreconnects = () => {\n if (preloadsAndPreconnectsFragment.hasChildNodes()) {\n d.head[appendChild](preloadsAndPreconnectsFragment);\n preloadsAndPreconnectsFragment = d.createDocumentFragment();\n }\n};\nconst preconnects = {};\nconst preconnect = (src) => {\n if (!src)\n return;\n try {\n const url = new URL(src, d.location.href);\n const href = url.origin;\n if (href && !preconnects[href] && d.location.host !== url.host) {\n const s = dOrigCreateElement(\"link\");\n s.rel = \"preconnect\";\n s.href = href;\n preloadsAndPreconnectsFragment[appendChild](s);\n process.env.DEBUG && c(delta(), \"preconnecting\", url.origin);\n preconnects[href] = true;\n if (iterating) {\n rAF(flushPreloadsAndPreconnects);\n }\n }\n } catch (e) {\n process.env.DEBUG && ce(delta(), \"failed to parse src for preconnect\", src, e);\n }\n};\n\nconst preloads = {};\nconst preloadAsScript = (src, isModule, crossorigin, integrity) => {\n const s = dOrigCreateElement(\"link\");\n s.rel = isModule\n ? \"modulepre\" + L\n : \"pre\" + L;\n s.as = \"script\";\n if (crossorigin)\n s[setAttribute](\"crossorigin\", crossorigin); // must be setAttribute\n if (integrity)\n s[setAttribute](\"integrity\", integrity); // must be setAttribute\n try {\n src = new URL(src, d.location.href).href;\n } catch { }\n s.href = src;\n preloadsAndPreconnectsFragment[appendChild](s);\n preloads[src] = true;\n process.env.DEBUG && c(delta(), s.rel, src);\n if (iterating) {\n rAF(flushPreloadsAndPreconnects);\n }\n};\n\n/*\nconst mayBePreloadScripts = () => {\n if (_wpmeteor.preload && reorder.length) {\n reorder.forEach(script => {\n const src = script[getAttribute](prefix + \"src\");\n if (src && !preloads[src] && !script[hasAttribute](\"nomodule\")) {\n preloadAsScript(src, script[getAttribute](prefix + \"type\") == \"module\", script[hasAttribute](\"crossorigin\") && script[getAttribute](\"crossorigin\"), script[getAttribute](\"integrity\"));\n }\n });\n }\n};\n*/\n\n/*\ndOrigAddEventListener(DCL, () => {\n const treorder = [...reorder];\n reorder.length = 0;\n [...d[querySelectorAll](\"script[type='\" + javascriptBlocked + \"']\"), ...treorder].forEach(el => {\n // this is a workaround to skip nodes that were detected in MutationObserver\n // and already hit iterate(), however, they miss the next Object_defineProperty() for origtype\n // so this is incorrect, and doesn't work, check for node.origtype presense was added\n // with fixed MutationObserver this is not needed anymore\n if (seenScripts.has(el)) {\n process.env.DEBUG && ce(delta(), \"WARNING: the scripts should have been filtered in MutationObserver\", el);\n return;\n }\n const originalAttributeGetter = el[__lookupGetter__](\"type\").bind(el);\n Object_defineProperty(el, \"origtype\", {\n get() {\n return originalAttributeGetter();\n }\n });\n if ((el[getAttribute](prefix + \"src\") || \"\").match(/\\/gtm.js\\?/)) {\n process.env.DEBUG && c(delta(), \"delaying regex\", el[getAttribute](prefix + \"src\"));\n async.push(el);\n } else if (el[hasAttribute](\"async\")) {\n process.env.DEBUG && c(delta(), \"delaying async\", el[getAttribute](prefix + \"src\"));\n async.unshift(el);\n } else if (el[hasAttribute](\"defer\")) {\n process.env.DEBUG && c(delta(), \"delaying defer\", el[getAttribute](prefix + \"src\"));\n defer.push(el);\n } else {\n reorder.push(el);\n }\n seenScripts.add(el);\n });\n // we will loose all event listeners, so we'd better track addEventListener/removeEventListener as well\n // not supported yet, cant find reference in backend\n // const querySelectors = ['link'].map(n => n + '[' + prefix + 'onload]').join(',');\n // d.querySelectorAll(querySelectors).forEach(el => reorder.push(el));\n});\n*/\n\n/* 3rd party scripts handling */\nconst createElement = function (...args) {\n\n const scriptElt = dOrigCreateElement(...args);\n\n // createElement(null), createElement(undefined) are valid calls\n // so we have to check for args[0] presence\n if (!args || args[0].toUpperCase() !== S || !iterating) {\n return scriptElt;\n }\n\n process.env.DEBUG && c(delta(), \"creating script element\");\n\n // Backup the original setAttribute function\n const originalSetAttribute = scriptElt[setAttribute].bind(scriptElt);\n const originalGetAttribute = scriptElt[getAttribute].bind(scriptElt);\n const originalHasAttribute = scriptElt[hasAttribute].bind(scriptElt);\n const originalAttributes = scriptElt[__lookupGetter__](\"attributes\").bind(scriptElt);\n\n // originalSetAttribute(prefix + \"after\", \"REORDER\");\n // originalSetAttribute(prefix + \"type\", \"text/javascript\");\n\n // scriptElt.type = javascriptBlocked;\n\n // const eventListeners = [];\n // scriptElt.getEventListeners = () => {\n // return eventListeners;\n // };\n\n capturedAttributes.forEach(property => {\n const originalAttributeGetter = scriptElt[__lookupGetter__](property).bind(scriptElt);\n const originalAttributeSetter = scriptElt[__lookupSetter__](property).bind(scriptElt);\n O[definePropert + \"y\"](scriptElt, property, {\n set(value) {\n process.env.DEBUG && c(delta(), \"setting \", property, value);\n // bypass for application/ld+json and similar\n if (property === \"type\" && value && !isJavascriptRegexp.test(value)) {\n return scriptElt[setAttribute](property, value);\n }\n if (property === \"src\" && value) {\n originalSetAttribute(\"type\", javascriptBlocked);\n } else if (property === \"type\" && value && scriptElt.origsrc) {\n originalSetAttribute(\"type\", javascriptBlocked);\n }\n return value\n ? scriptElt[setAttribute](prefix + property, value)\n : scriptElt[removeAttribute](prefix + property);\n },\n get() {\n const result = scriptElt[getAttribute](prefix + property);\n if (property === \"src\") {\n // convert to absolute\n try {\n const url = new URL(result, d.location.href);\n return url.href;\n } catch {\n // eslint-disable-line no-empty\n }\n }\n return result;\n }\n });\n Object_defineProperty(scriptElt, \"orig\" + property, {\n set(value) {\n return originalAttributeSetter(value);\n },\n get() {\n return originalAttributeGetter();\n }\n });\n\n });\n\n // this is not needded anymore as we are not copying the node\n // so we don't need to reattach the listeners\n // scriptElt[addEventListener] = function (event, handler) {\n // eventListeners.push([event, handler]);\n // };\n\n // Monkey patch the setAttribute function so that the setter is called instead.\n // Otherwise, setAttribute('type', 'whatever') will bypass our custom descriptors!\n scriptElt[setAttribute] = function (property, value) {\n if (capturedAttributes.includes(property)) {\n process.env.DEBUG && c(delta(), \"setting attribute\", property, value);\n // bypass for application/ld+json and similar\n if (property === \"type\" && value && !isJavascriptRegexp.test(value)) {\n return originalSetAttribute(property, value);\n }\n if (property === \"src\" && value) {\n originalSetAttribute(\"type\", javascriptBlocked);\n } else if (property === \"type\" && value && scriptElt.origsrc) {\n originalSetAttribute(\"type\", javascriptBlocked);\n }\n return value\n ? originalSetAttribute(prefix + property, value)\n : scriptElt[removeAttribute](prefix + property);\n } else {\n originalSetAttribute(property, value);\n }\n };\n\n scriptElt[getAttribute] = function (property) {\n const result = capturedAttributes.indexOf(property) >= 0\n ? originalGetAttribute(prefix + property)\n : originalGetAttribute(property);\n if (property === \"src\") {\n // convert to absolute\n try {\n const url = new URL(result, d.location.href);\n return url.href;\n } catch {\n // eslint-disable-line no-empty\n }\n }\n return result;\n };\n\n scriptElt[hasAttribute] = function (property) {\n return capturedAttributes.indexOf(property) >= 0\n ? originalHasAttribute(prefix + property)\n : originalHasAttribute(property);\n };\n\n /* very shallow mocking of NamedNodeMap */\n Object_defineProperty(scriptElt, \"attributes\", {\n get() {\n const mock = [...originalAttributes()]\n .filter(attr => attr.name !== \"type\") // no need to filter as we no longer append it && attr.name !== prefix + \"after\")\n .map(attr => {\n return {\n name: attr.name.match(new RegExp(prefix))\n ? attr.name.replace(prefix, \"\")\n : attr.name,\n value: attr.value\n };\n });\n return mock;\n }\n });\n\n // this is to make it to the async queue where it belongs\n scriptElt[__dynamic] = true;\n\n return scriptElt;\n};\n\n// Allowing to override, but still not the best option - onetrust captures createElement \n// even for users who accepted cookies\nObject.defineProperty(Document[prototype], \"createElement\", {\n set(value) {\n if (process.env.DEBUG) {\n if (value == origCreateElement) {\n process.env.DEBUG && c(delta(), \"document.createElement restored to original\");\n } else if (value === createElement) {\n process.env.DEBUG && c(delta(), \"document.createElement overridden\");\n } else {\n process.env.DEBUG && c(delta(), \"document.createElement overridden by a 3rd party script\");\n }\n }\n if (value !== createElement) {\n createElementOverride = value;\n }\n },\n get() {\n return createElementOverride || createElement;\n }\n});\n\nconst seenScripts = new Set();\nconst observer = new MutationObserver(mutations => {\n mutations.forEach(({ removedNodes, addedNodes, target }) => {\n // this is the case for https://essential-addons.com/elementor/offcanvas-content/\n // which, in EAELOffcanvasContent.prototype = { init: function() { \n // ... 0 === e(\".eael-offcanvas-container\").length && (e(\"body\").wrapInner('<div class=\"eael-offcanvas-container eael-offcanvas-container-' + this.id + '\" />'),\n // }}\n // wraps the whole body into a div, removes some scripts from the DOM and reinserts them wrapped in .eael-offcanvas-container.eael-offcanvas-container-<id>\n removedNodes.forEach(node => {\n // For each removed script tag\n if (node.nodeType === 1 && S === node[tagName] && \"origtype\" in node) {\n seenScripts.delete(node);\n }\n });\n addedNodes.forEach(node => {\n // For each added script tag\n if (node.nodeType === 1) {\n if (S === node[tagName]) {\n // process.env.DEBUG && c(delta(), \"XXXX\", node, node.origtype, node[getAttribute](\"type\"));\n if (\"origtype\" in node) {\n // process.env.DEBUG && c(delta(), \"mutationobserver captured some script\", node.cloneNode(true));\n if (node.origtype !== javascriptBlocked) {\n process.env.DEBUG && c(delta(), \"mutationobserver captured non-blocked script\", node.cloneNode(true));\n return;\n }\n } else if (node[getAttribute](\"type\") !== javascriptBlocked) {\n process.env.DEBUG && c(delta(), \"mutationobserver captured non-blocked script\", node.cloneNode(true));\n return;\n }\n // all the intercepted nodes inserted by createElement() should have origtype getter\n if (!(\"origtype\" in node)) {\n process.env.DEBUG && (node[getAttribute](\"type\") === javascriptBlocked\n ? c(delta(), \"mutationobserver captured blocked script\", node)\n : c(delta(), \"mutationobserver captured non-javascript script\", node));\n capturedAttributes.forEach(property => {\n const originalAttributeGetter = node[__lookupGetter__](property).bind(node);\n const originalAttributeSetter = node[__lookupSetter__](property).bind(node);\n Object_defineProperty(node, \"orig\" + property, {\n set(value) {\n return originalAttributeSetter(value);\n },\n get() {\n return originalAttributeGetter();\n }\n });\n });\n } else {\n process.env.DEBUG && c(delta(), \"mutationobserver captured new script\", node.cloneNode(true));\n }\n\n // const src = node[getAttribute](prefix + \"src\");\n const src = node[getAttribute](prefix + \"src\");\n\n if (seenScripts.has(node)) {\n ce(\"Inserted twice\", node);\n }\n\n if (node.parentNode) {\n seenScripts.add(node);\n if ((src || \"\").match(/\\/gtm.js\\?/)) {\n process.env.DEBUG && c(delta(), \"delaying regex\", node[getAttribute](prefix + \"src\"));\n async.push(node);\n preconnect(src);\n } else if (node[hasAttribute](\"async\") || node[__dynamic]) {\n process.env.DEBUG && c(delta(),\n node.__async\n ? \"delaying dynamically inserted script as async\"\n : \"delaying async\",\n node[getAttribute](prefix + \"src\"));\n async.push(node);\n preconnect(src);\n } else if (node[hasAttribute](\"defer\")) {\n process.env.DEBUG && c(delta(), \"delaying defer\", node[getAttribute](prefix + \"src\"));\n defer.push(node);\n preconnect(src);\n } else {\n if (src && !node[hasAttribute](\"nomodule\") && !preloads[src]) {\n // no need to preload if it is the next script in the queue\n // VWO removes node instantly\n // preloading \n c(delta(), \"pre preload\", reorder.length);\n preloadAsScript(src, node[getAttribute](prefix + \"type\") == \"module\", node[hasAttribute](\"crossorigin\") && node[getAttribute](\"crossorigin\"), node[getAttribute](\"integrity\"));\n }\n reorder.push(node);\n }\n } else {\n // if the node has been instanly removed, we still want to load it and run\n // I tested appendNode(script); removeNode(script) - it still loads and triggers the code\n process.env.DEBUG && ce(\"No parent node for\", node, \"re-adding to\", target);\n node[addEventListener](L, e => e.target.parentNode[removeChild](e.target));\n node[addEventListener](E, e => e.target.parentNode[removeChild](e.target));\n target[appendChild](node);\n // no need to push to seenScripts and reorder as it will happen on the next iteration\n // of MutationObserver\n }\n } else if (\"LINK\" === node[tagName] && node[getAttribute](\"as\") === \"script\") {\n preloads[node[getAttribute](\"href\")] = true;\n }\n }\n });\n });\n});\n\nconst mutationObserverOptions = {\n childList: true,\n subtree: true,\n // attributes: true,\n // attributeFilter: ['src', 'type'],\n // attributeOldValue: true,\n};\n\nobserver.observe(d.documentElement, mutationObserverOptions);\n\nconst origAttachShadow = HTMLElement[prototype].attachShadow;\nHTMLElement[prototype].attachShadow = function (options) {\n const shadowRoot = origAttachShadow.call(this, options);\n if (options.mode === \"open\") {\n observer.observe(shadowRoot, mutationObserverOptions);\n }\n return shadowRoot;\n};\n\nprocess.env.SPO || (() => {\n const origIFrameSrc = O[getOwnPropertyDescriptor](HTMLIFrameElement[prototype], \"src\");\n Object_defineProperty(HTMLIFrameElement[prototype], \"src\", {\n get() {\n if (this.dataset.fpoSrc) {\n return this.dataset.fpoSrc;\n }\n return origIFrameSrc.get.call(this);\n },\n set(value) {\n delete this.dataset.fpoSrc;\n origIFrameSrc.set.call(this, value);\n }\n });\n})();\n\n// cleaning up\ndispatcher.on(EVENT_THE_END, () => {\n process.env.DEBUG && c(delta(), \"THE END\");\n if (!createElementOverride || createElementOverride === createElement) {\n Document[prototype].createElement = origCreateElement;\n observer.disconnect();\n } else {\n process.env.DEBUG && c(delta(), \"createElement is overridden, keeping observers in place\");\n }\n // we should only fire EVENT_REPLAY_CAPTURED_EVENTS if no lazyload is in the page\n // eg in pure WP METEOR mode, not for FASTPIXEL\n process.env.SPO || dispatchEvent(new CustomEvent(EVENT_REPLAY_CAPTURED_EVENTS));\n dispatchEvent(new CustomEvent(EVENT_THE_END));\n});\n/* end 3rd party scripts handling */\n\n/* we have to override document.write as all of them will fire after DOMContentLoaded */\nlet documentWrite = (str) => {\n let parent, currentScript;\n if (!d.currentScript || !d.currentScript.parentNode) {\n /* trying our best */\n parent = d.body;\n currentScript = parent.lastChild;\n } else {\n currentScript = d.currentScript;\n parent = currentScript.parentNode;\n }\n try {\n const df = dOrigCreateElement(\"div\");\n df.innerHTML = str;\n Array.from(df.childNodes).forEach(node => {\n if (node.nodeName === S) {\n // cloneScript is a must for safari\n parent.insertBefore(cloneScript(node), currentScript);\n } else {\n parent.insertBefore(node, currentScript);\n }\n });\n } catch (e) {\n ce(e);\n }\n};\nlet documentWriteLn = (str) => documentWrite(str + \"\\n\");\n\nObject_defineProperties(d, {\n \"write\": {\n get() { return documentWrite; },\n set(func) { return documentWrite = func; },\n },\n \"writeln\": {\n get() { return documentWriteLn; },\n set(func) { return documentWriteLn = func; },\n },\n});\n\n// Capturing and queueing Window Load event handlers\nlet windowAddEventListener = (event, func, ...args) => {\n // We have to skip registering message listeners if DONE, as we already restored \n // original eventListener to messages in restoreMessageListener()\n // ??? not sure why there is windowEventPrefix instead of documentEventPrefix\n // but I think this was to workaround some external javascripts\n if (windowEventPrefix + DCL == currentlyFiredEvent && event === DCL && !func.toString().match(/jQueryMock/)) {\n dispatcher.on(EVENT_THE_END, w[addEventListener].bind(w, event, func, ...args));\n return;\n }\n if (windowEventPrefix + L == currentlyFiredEvent && event === L) {\n dispatcher.on(EVENT_THE_END, w[addEventListener].bind(w, event, func, ...args));\n return;\n }\n if (func && (event === L || event === DCL || (event === M && !DONE))) {\n process.env.DEBUG && c(delta(), \"enqueuing event listener\", event, func);\n const name = event === DCL ? documentEventPrefix + event : windowEventPrefix + event;\n listeners[name] = listeners[name] || [];\n listeners[name].push(func);\n if (DONE) {\n fireQueuedEvents([event]);\n }\n return;\n }\n // process.env.DEBUG && c(event, func);\n return wOrigAddEventListener(event, func, ...args);\n};\nlet windowRemoveEventListener = (event, func, ...args) => {\n if (event === L) { // L = load\n const name = event === DCL ? documentEventPrefix + event : windowEventPrefix + event;\n removeQueuedEventListener(name, func);\n }\n return wOrigRemoveEventListener(event, func, ...args);\n};\n\n// some optimizers think they can optimize better than us\n// but it is not true as to 18 Jul 2021\n// so let's keep our handlers\nObject_defineProperties(w, {\n [addEventListener]: {\n get() { return windowAddEventListener; },\n set() { return windowAddEventListener; },\n },\n [removeEventListener]: {\n get() { return windowRemoveEventListener; },\n set() { return windowRemoveEventListener; },\n }\n});\n\nconst onHandlerOptions = (name) => {\n let handler;\n return {\n get() {\n process.env.DEBUG && c(delta(), separator, \"getting \" + name.toLowerCase().replace(/::/, \".\") + \" handler\", handler);\n return handler;\n },\n set(func) {\n process.env.DEBUG && c(delta(), separator, \"setting \" + name.toLowerCase().replace(/::/, \".\") + \" handler\", func);\n // only last handler should fire\n if (handler) {\n removeQueuedEventListener(name, func);\n }\n listeners[name] = listeners[name] || [];\n listeners[name].push(func);\n return handler = func;\n },\n // rocket-loader from CloudFlare tries to override onload so we will let him\n // configurable: true,\n };\n};\n\n/* \n * this code handles event from onload attributes\n * when rewriting body, iframes, images and scripts\n * we move original onload attribute to data-wpemeteor-onload\n * and replace onload with a function that fires CustomEvent(EVENT_ELEMENT_LOADED)\n */\n// bind to window\n// 2024-02-18: it seems that the only element we need this workaround are <document onload> and <html onload>\nwOrigAddEventListener(EVENT_ELEMENT_LOADED, e => {\n const { target, event } = e.detail;\n const el = target === w ? d.body : target;\n const func = el[getAttribute](prefix + \"on\" + event.type);\n el[removeAttribute](prefix + \"on\" + event.type);\n try {\n const f = new Function(\"event\", func);\n if (target === w) {\n // the trick here is to enqueue Window::load\n // using overridden window.addEventListener\n w[addEventListener](L, f.bind(target, event));\n } else {\n f.call(target, event);\n }\n } catch (err) {\n console.err(err);\n }\n});\n\n// overriding window.onload and document.body.onload, they are the same function\n{\n\n const options = onHandlerOptions(windowEventPrefix + L);\n Object_defineProperty(w, \"onload\", options);\n dOrigAddEventListener(DCL, () => {\n Object_defineProperty(d.body, \"onload\", options);\n });\n}\n// overriding document.onreadystatechange\nObject_defineProperty(d, \"onreadystatechange\", onHandlerOptions(documentEventPrefix + RSC));\n// overriding window.onmessage\nObject_defineProperty(w, \"onmessage\", onHandlerOptions(windowEventPrefix + M));\n\nprocess.env.SPO &&\n wOrigAddEventListener(EVENT_CSS_LOADED, () => {\n w[_setTimeout](dispatcher.emit.bind(dispatcher, EVENT_IMAGES_LOADED), _wpmeteor.rdelay);\n });\n\nprocess.env.SPO\n || (() => {\n\n const wheight = w.innerHeight;\n const wwidth = w.innerWidth;\n\n const intersectsViewport = (el) => {\n // chrome settings\n // https://web.dev/browser-level-image-lazy-loading/#improved-data-savings-and-distance-from-viewport-thresholds\n let extras = {\n \"4g\": 1250,\n \"3g\": 2500,\n \"2g\": 2500,\n };\n\n const extra = extras[(navigator.connection || {}).effectiveType] || 0;\n const rect = el.getBoundingClientRect();\n const viewport = {\n top: -1 * wheight - extra,\n left: -1 * wwidth - extra,\n bottom: wheight + extra,\n right: wwidth + extra\n };\n\n // If one rectangle is on left side of other\n if (rect.left >= viewport.right || rect.right <= viewport.left)\n return false;\n\n // If one rectangle is above other\n if (rect.top >= viewport.bottom || rect.bottom <= viewport.top)\n return false;\n\n return true;\n };\n\n const waitForImages = (reallyWait = true) => {\n let imagesToLoad = 1;\n let imagesLoadedCount = -1;\n const seen = {};\n\n const imageLoadedHandler = () => {\n imagesLoadedCount++;\n // let's trigger \n if (!--imagesToLoad) {\n process.env.DEBUG && c(delta(), imagesLoadedCount + \" eager images loaded\");\n // there are 2 options here\n // 1. wait for images then fire EVENT_IMAGES_LOADED with rdelay\n // 2. fire EVENT_IMAGES_LOADED with rdelay after window.load, without waiting for images\n\n // 1.\n w[_setTimeout](dispatcher.emit.bind(dispatcher, EVENT_IMAGES_LOADED), _wpmeteor.rdelay);\n // 2. \n // should never get there, as we bypass waitForImages()\n // dispatcher.emit(EVENT_IMAGES_LOADED);\n }\n };\n\n Array.from(d.getElementsByTagName(\"*\")).forEach(tag => {\n let src, style, bgUrl;\n if (tag[tagName] === \"IMG\") {\n let _src = tag.currentSrc || tag.src; // trying to capture srcsets if they are already loading\n if (_src && !seen[_src] && !_src.match(/^data:/i)) {\n if ((tag.loading || \"\").toLowerCase() !== \"lazy\") {\n src = _src;\n process.env.DEBUG && c(delta(), \"loading image\", src, \"for\", tag);\n } else if (intersectsViewport(tag)) { // lazy && already loading\n src = _src;\n process.env.DEBUG && c(delta(), \"loading lazy image\", src, \"for\", tag);\n }\n }\n } else if (tag[tagName] === S) {\n preconnect(tag[getAttribute](prefix + \"src\"));\n } else if (tag[tagName] === \"LINK\" && tag[getAttribute](\"as\") === \"script\" && [\"pre\" + L, \"modulepre\" + L].indexOf(tag[getAttribute](\"rel\")) >= 0) {\n preloads[tag[getAttribute](\"href\")] = true;\n // supposedly all CSS has already been loaded\n } else if ((style = w.getComputedStyle(tag)) && (bgUrl = (style.backgroundImage || \"\").match(/^url\\s*\\((.*?)\\)/i)) && (bgUrl || []).length) { // eslint-disable-line no-cond-assign\n const url = bgUrl[0].slice(4, -1).replace(/\"/g, \"\");\n if (!seen[url] && !url.match(/^data:/i)) {\n src = url;\n process.env.DEBUG && c(delta(), \"loading background\", src, \"for\", tag);\n }\n }\n if (src) {\n seen[src] = true;\n const temp = new Image();\n if (reallyWait) {\n imagesToLoad++;\n temp[addEventListener](L, imageLoadedHandler);\n temp[addEventListener](E, imageLoadedHandler);\n }\n temp.src = src;\n }\n });\n d.fonts.ready.then(() => {\n process.env.DEBUG && c(delta(), \"fonts ready\");\n imageLoadedHandler();\n });\n };\n\n if (_wpmeteor.rdelay === 0) {\n // dOrigAddEventListener(DCL, () => nextTick(waitForImages.bind(null, false)));\n dOrigAddEventListener(DCL, waitForImages);\n } else {\n // there are 2 options here\n // 1. wait for images then fire EVENT_IMAGES_LOADED with rdelay\n // 2. fire EVENT_IMAGES_LOADED with rdelay after window.load, without waiting for images\n // Reasoning for 1. is that on slow connections, we still want to wait for images to load\n\n // 1.\n wOrigAddEventListener(L, waitForImages);\n // 2.\n // w[_setTimeout](dispatcher.emit.bind(dispatcher, EVENT_IMAGES_LOADED), _wpmeteor.rdelay);\n }\n })();\n"], "mappings": ";;AAAA,MAAO,gBAAQ,MAAM,KAAK,MAAM,YAAY,IAAI,CAAC,IAAI;;;ACA9C,MACH,mBAAmB;AADhB,MAEH,sBAAsB;AAFnB,MAGH,eAAe;AAHZ,MAIH,eAAe;AAJZ,MAKH,kBAAkB;AALf,MAMH,eAAe;AANZ,MAOH,gBAAgB;AAPb,MAQH,mBAAmB,gBAAgB;AARhC,MASH,cAAc;AATX,MAUH,cAAc;AAVX,MAWH,gBAAgB;AAXb,MAYH,UAAU;AAZP,MAaH,2BAA2B;AAbxB,MAcH,YAAY;AAdT,MAeH,mBAAmB;AAfhB,MAgBH,mBAAmB;AAhBhB,MAiBH,MAAM;AAjBH,MAkBH,IAAI;AAlBD,MAmBH,IAAI;;;ACnBR,MACI,IAAI;AADR,MAEI,IAAI;AAFR,MAGI,KAAK,EAAE;AAHX,MAII,IAAI,OAAoB,QAAQ,MAAM,MAAM;AAAA,EAAE;AAJlD,MAKI,KAAK,QAAQ;;;ACSjB,MAAI,SAAS;AACb,MAAqB,aAArB,MAAgC;AAAA,IAC5B,cAAc;AACV,WAAK,QAAQ,CAAC;AAAA,IAClB;AAAA,IACA,OAAO;AAEH,UAAI;AACJ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YAAY,EAAE,IAAI,MAAM,YAAY,CAAC,QAAQ,GAAG,cAAc,CAAC,EAAE,QAAQ,IAAI,YAAY,EAAE,KAAK,CAAC,KAAK,GAAG;AAC/I,mBAAS,IAAI,YAAY,EAAE,MAAM,CAAC,IAAI;AAAA,QAE1C,YAAY,QAAQ,EAAE,iBAAiB,GAAG,OAAO,SAAS,MAAM,mBAAmB,IAAI,MAAM,mBAAmB,OAAO,SAAS,CAAC,GAAG,QAAQ;AACxI,gBAAM,MAAM,MAAM,CAAC,EAAE,MAAM,GAAG,EAAE,EAAE,QAAQ,MAAM,EAAE;AAClD,cAAI,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,MAAM,SAAS,GAAG;AACrC,kBAAM;AACN,YAAqB,EAAE,cAAM,GAAG,sBAAsB,KAAK,OAAO,GAAG;AAAA,UACzE;AAAA,QACJ;AACA,YAAI,KAAK;AACL,eAAK,GAAG,IAAI;AACZ,gBAAM,OAAO,IAAI,MAAM;AACvB,cAAI,YAAY;AACZ;AACA,iBAAK,gBAAgB,EAAE,GAAG,kBAAkB;AAC5C,iBAAK,gBAAgB,EAAE,GAAG,kBAAkB;AAAA,UAChD;AACA,eAAK,MAAM;AAAA,QACf;AAAA,MACJ,CAAC;AACD,QAAE,MAAM,MAAM,KAAK,MAAM;AACrB,QAAqB,EAAE,cAAM,GAAG,aAAa;AAC7C,2BAAmB;AAAA,MACvB,CAAC;AAAA,IACL;AAEA,QAAI,UAAU,WAAW,GAAG;AAExB,4BAAsB,KAAK,aAAa;AAAA,IAC5C,OAAO;AAOH,MAAAE,uBAAsB,GAAG,aAAa;AAAA,IAG1C;AAAA,EACJ,GAAG;", "names": ["jQuery", "delta_default", "c", "w", "dispatchEvent", "delta_default", "c", "i", "key", "ul", "observer", "separator", "prefix", "i", "wOrigAddEventListener", "wOrigRemoveEventListener", "readyState", "addEventListener", "createElement"] }