1function _typeof(o){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(o)}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o)}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(t){t=_toPrimitive(t,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0===e)return("string"===r?String:Number)(t);e=e.call(t,r||"default");if("object"!=_typeof(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e))}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e)}function _wrapNativeSuper(t){var r="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper)}function Wrapper(){return _construct(t,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,t)})(t)}function _construct(t,e,r){var o;return _isNativeReflectConstruct()?Reflect.construct.apply(null,arguments):((o=[null]).push.apply(o,e),e=new(t.bind.apply(t,o)),r&&_setPrototypeOf(e,r.prototype),e)}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct=function(){return!!t})()}function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(n){return"function"==typeof t}}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var AffiliateWPNotification=(()=>{function AffiliateWPNotification(){_classCallCheck(this,AffiliateWPNotification),(_this=_callSuper(this,AffiliateWPNotification)).attachShadow({mode:"open"});var _this,template=document.getElementById("affwp-notification");return template?(_this.shadowRoot.appendChild(template.content.cloneNode(!0)),_this.notificationDiv=_this.shadowRoot.querySelector("#notification"),_this):(window.console.error("Template not found"),_possibleConstructorReturn(_this))}return _inherits(AffiliateWPNotification,_wrapNativeSuper(HTMLElement)),_createClass(AffiliateWPNotification,[{key:"connectedCallback",value:function(){var _this2=this,notificationDiv=this.shadowRoot.querySelector("#notification"),adminDarkModeSetting=affiliateWPFENotifications.darkMode,useDarkMode=!1,adminDarkModeSetting=("dark"===adminDarkModeSetting?useDarkMode=!0:"auto"===adminDarkModeSetting&&(useDarkMode=window.matchMedia("(prefers-color-scheme: dark)").matches),notificationDiv&&(useDarkMode?notificationDiv.setAttribute("data-mode","dark"):notificationDiv.removeAttribute("data-mode")),document.createElement("link")),notification=(adminDarkModeSetting.setAttribute("rel","stylesheet"),adminDarkModeSetting.setAttribute("type","text/css"),affiliateWPFENotifications&&affiliateWPFENotifications.cssUrl&&adminDarkModeSetting.setAttribute("href",affiliateWPFENotifications.cssUrl),this.shadowRoot.appendChild(adminDarkModeSetting),this.shadowRoot.getElementById("notification")),useDarkMode=(notification&&(notification.style.animation="slideIn 0.3s forwards"),this.shadowRoot.querySelector("#close-notification"));useDarkMode&&useDarkMode.addEventListener("click",function(){notification.style.animation="slideOut 0.3s forwards",setTimeout(function(){return _this2.remove()},300)})}}])})();
1customElements.define("affiliatewp-notification",AffiliateWPNotification),document.addEventListener("DOMContentLoaded",function(){var affiliate=(()=>{var pathArray,refIndex,affiliate=new URLSearchParams(window.location.search).get(affiliateWPFENotifications.referralVar);return affiliate||-1<(refIndex=(pathArray=window.location.pathname.split("/")).indexOf(affiliateWPFENotifications.referralVar))&&pathArray.length>refIndex+1&&(affiliate=pathArray[refIndex+1]),affiliate})();affiliate&&(affiliate=new URLSearchParams({action:"apply_affiliate_coupon",affiliate:affiliate}),fetch("".concat(affiliateWPFENotifications.ajaxUrl,"?").concat(affiliate.toString()),{method:"POST",credentials:"same-origin"}).then(function(response){return response.json()}).then(function(data){data.couponApplied&&document.body.appendChild(document.createElement("affiliatewp-notification"))}).catch(function(error){return window.console.error("Error:",error)}))});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.