biofriction-wp-theme/node_modules/browser-sync-client/dist/index.min.js

2 lines
165 KiB
JavaScript
Raw Permalink Normal View History

2021-10-26 14:18:09 +02:00
/*! For license information please see index.min.js.LICENSE.txt */
(()=>{var t={6906:t=>{function e(){}t.exports=function(t,r,n){var o=!1;return n=n||e,i.count=t,0===t?r():i;function i(t,e){if(i.count<=0)throw new Error("after called too many times");--i.count,t?(o=!0,r(t),r=n):0!==i.count||o||r(null,e)}}},9718:t=>{t.exports=function(t,e,r){var n=t.byteLength;if(e=e||0,r=r||n,t.slice)return t.slice(e,r);if(e<0&&(e+=n),r<0&&(r+=n),r>n&&(r=n),e>=n||e>=r||0===n)return new ArrayBuffer(0);for(var o=new Uint8Array(t),i=new Uint8Array(r-e),s=e,c=0;s<r;s++,c++)i[c]=o[s];return i.buffer}},4028:(t,e)=>{"use strict";function r(){return window}function n(){return document}function o(t,e){var r,n,o=e.documentElement,i=e.body;return void 0!==t.pageYOffset?(r=t.pageXOffset,n=t.pageYOffset):(r=o.scrollLeft||i.scrollLeft||0,n=o.scrollTop||i.scrollTop||0),{x:r,y:n}}function i(t){var e=t.documentElement,r=t.body;return{x:r.scrollHeight-e.clientWidth,y:r.scrollHeight-e.clientHeight}}function s(t,e){var r=n().getElementsByTagName(t);return Array.prototype.indexOf.call(r,e)}function c(t,e){return a(i(e),t).y}function a(t,e){return{x:e.x/t.x||0,y:e.y/t.y}}Object.defineProperty(e,"__esModule",{value:!0}),e.getWindow=r,e.getDocument=n,e.getBrowserScrollPosition=o,e.getDocumentScrollSpace=i,e.saveScrollPosition=function(t,e){var r=o(t,e);e.cookie="bs_scroll_pos="+[r.x,r.y].join(",")},e.restoreScrollPosition=function(){var t=n().cookie.replace(/(?:(?:^|.*;\s*)bs_scroll_pos\s*\=\s*([^;]*).*$)|^.*$/,"$1").split(",");r().scrollTo(Number(t[0]),Number(t[1]))},e.getElementIndex=s,e.forceChange=function(t){t.blur(),t.focus()},e.getElementData=function(t){var e=t.tagName;return{tagName:e,index:s(e,t)}},e.getSingleElement=function(t,e){return n().getElementsByTagName(t)[e]},e.getBody=function(){return n().getElementsByTagName("body")[0]},e.setScroll=function(t){r().scrollTo(t.x,t.y)},e.reloadBrowser=function(){r().location.reload(!0)},e.forEach=function(t,e){for(var r=0,n=t.length;r<n;r+=1)e(t[r],r,t)},e.isOldIe=function(){return void 0!==r().attachEvent},e.getLocation=function(t){var e=n().createElement("a");return e.href=t,""===e.host&&(e.href=e.href),e},e.isUndefined=function(t){return void 0===t},e.getByPath=function(t,e){for(var r=0,n=e.split("."),o=n.length;r<o;r++){if(!t||"object"!=typeof t)return!1;t=t[n[r]]}return void 0!==t&&t},e.getScrollPosition=function(t,e){var r=o(t,e);return{raw:r,proportional:c(r,e)}},e.getScrollPositionForElement=function(t){var e={x:t.scrollLeft,y:t.scrollTop};return{raw:e,proportional:a({x:t.scrollWidth,y:t.scrollHeight},e).y}},e.getScrollTopPercentage=c,e.getScrollPercentage=a},5053:(t,e,r)=>{"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0});var o,i=r(9122),s=r(5019),c=r(7471),a=r(1120),u=r(6082),p=r(1546);!function(t){t.PropSet="@@BSDOM.Events.PropSet",t.StyleSet="@@BSDOM.Events.StyleSet",t.LinkReplace="@@BSDOM.Events.LinkReplace",t.SetScroll="@@BSDOM.Events.SetScroll",t.SetWindowName="@@BSDOM.Events.SetWindowName"}(o=e.Events||(e.Events={})),e.domHandlers$=new i.BehaviorSubject(((n={})[o.PropSet]=s.propSetDomEffect,n[o.StyleSet]=c.styleSetDomEffect,n[o.LinkReplace]=a.linkReplaceDomEffect,n[o.SetScroll]=u.setScrollDomEffect,n[o.SetWindowName]=p.setWindowNameDomEffect,n))},1120:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2068),o=r(8111),i=r(5636),s=r(3592),c=r(6370),a=r(5053);e.linkReplaceDomEffect=function(t,e){return t.pipe(i.withLatestFrom(e.option$.pipe(c.pluck("injectNotification"))),o.filter((function(t){return t[1]})),n.map((function(t){var e=t[0],r=t[1],n="[LinkReplace] "+e.basename;return"overlay"===r?s.overlayInfo(n):s.consoleInfo(n)})))},e.linkReplace=function(t){return[a.Events.LinkReplace,t]}},5019:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2068),o=r(9890),i=r(5053),s=r(3592);e.propSetDomEffect=function(t){return t.pipe(o.tap((function(t){var e=t.target,r=t.prop,n=t.value;e[r]=n})),n.map((function(t){return s.consoleInfo("[PropSet]",t.target,t.prop+" = "+t.pathname)})))},e.propSet=function(t){return[i.Events.PropSet,t]}},6082:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModu