-
Notifications
You must be signed in to change notification settings - Fork 0
/
wix-perf-measure.bundle.min.js.descarga
2 lines (2 loc) · 34.7 KB
/
wix-perf-measure.bundle.min.js.descarga
1
2
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("wix-perf-measure",[],t):"object"==typeof exports?exports["wix-perf-measure"]=t():e["wix-perf-measure"]=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="https://static.parastorage.com/services/wix-perf-measure/1.618.0/",r(r.s=5)}([function(e,t,r){"use strict";r.d(t,"r",(function(){return i})),r.d(t,"o",(function(){return o})),r.d(t,"p",(function(){return c})),r.d(t,"q",(function(){return u})),r.d(t,"s",(function(){return a})),r.d(t,"n",(function(){return s})),r.d(t,"m",(function(){return l})),r.d(t,"l",(function(){return p})),r.d(t,"t",(function(){return d})),r.d(t,"h",(function(){return v})),r.d(t,"j",(function(){return b})),r.d(t,"i",(function(){return y})),r.d(t,"k",(function(){return m})),r.d(t,"g",(function(){return h})),r.d(t,"e",(function(){return O})),r.d(t,"d",(function(){return g})),r.d(t,"f",(function(){return j})),r.d(t,"a",(function(){return w})),r.d(t,"b",(function(){return P})),r.d(t,"c",(function(){return T}));var n=r(1);function i(){}var o=function(e){return""+n.d+e},c=Math.max,u=Math.min;function a(e){return function(){return Promise.reject(e)}}function f(e){return function(t){return typeof t===e}}var s=f("undefined"),l=f("number"),p=f("boolean");f("string");function d(e){return Object.entries(e).filter((function(e){return"number"==typeof e[1]})).reduce((function(e,t){var r=t[0],n=t[1];return e[r]=Math.round(n),e}),e)}function v(e){return e&&e.replace(/\?.*$/,"")}function b(e,t){var r;return null==e.getEntriesByType||null==(r=e.getEntriesByType(t))?void 0:r[0]}function y(e,t){return e.then((function(e){return e[t]}))}function m(e,t,r){return function(){var n=e.indexOf(t);n>-1&&(e.splice(n,1),0===e.length&&r())}}function h(e){return function(){return e.disconnect()}}function O(e,t){var r;return t||(null==(r=j(e,"*[id]"))?void 0:r.id)}function g(e){return j(e,"h1,h2,h3,h4,h5,h6,p,picture,wix-image,article,section")||e}function j(e,t){return null==e?void 0:e.closest(t)}function w(e,t,r){s(r)||(e[t]=/^is/.test(t)?!!r:r)}function P(e){return Promise.allSettled(e).then((function(e){return e.filter((function(e){return"fulfilled"===e.status})).map((function(e){return e.value}))}))}function T(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return new Promise((function(t){P(r).then((function(r){var n=r.reduce((function(e,t){return Object.assign(e,t)}),{});n.entryType=e,t(n)}))}))}},function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return c})),r.d(t,"f",(function(){return u})),r.d(t,"e",(function(){return a})),r.d(t,"d",(function(){return f})),r.d(t,"b",(function(){return s})),r.d(t,"c",(function(){return l}));var c=1e4,u=10,a=1e4,f="\u23f1",s={capture:!0,passive:!0},l=i(i({},s),{},{once:!0})},function(e,t,r){"use strict";function n(e){var t;return e.wixBiSession||(null==(t=e.bi)?void 0:t.wixBiSession)}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return o}));var n,i=r(0);function o(t,r,o,c,u,a){Object.defineProperty(c,"info",{value:function(){var f=t[0];function s(e){e?e.default(c,u().catch(i.r),a(t)):l()}function l(){console.info("Failed to load info")}void 0===e&&(f.process={env:{}}),n||(n=new Promise((function(e,t){if(!o)return t();var n=r.createElement("script");n.src=o.replace("measure.","measure-info."),n.onload=e,n.onerror=t,r.head.appendChild(n)}))),n.then((function(){"function"==typeof requirejs?requirejs(["wix-perf-measure-info"],s,l):s(f["wix-perf-measure-info"])})).catch(l)}})}}).call(this,r(4))},function(e,t){var r,n,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}function u(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:c}catch(e){n=c}}();var a,f=[],s=!1,l=-1;function p(){s&&a&&(s=!1,a.length?f=a.concat(f):l=-1,f.length&&d())}function d(){if(!s){var e=u(p);s=!0;for(var t=f.length;t;){for(a=f,f=[];++l<t;)a&&a[l].run();l=-1,t=f.length}a=null,s=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===c||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function v(e,t){this.fun=e,this.array=t}function b(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];f.push(new v(e,t)),1!==f.length||s||u(d)},v.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=b,i.addListener=b,i.once=b,i.off=b,i.removeListener=b,i.removeAllListeners=b,i.emit=b,i.prependListener=b,i.prependOnceListener=b,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,r){"use strict";r.r(t);var n=r(1);function i(e,t,r,i){void 0===i&&(i=!0),e.addEventListener(t,r,i?n.c:n.b)}function o(e,t,r,i){void 0===i&&(i=!0),e.removeEventListener(t,r,i?n.c:n.b)}var c=f((function(e){return"loading"!==e}),"DOMContentLoaded"),u=f((function(e){return"complete"===e}),"load"),a=f((function(){return!1}),"pagehide",!1);function f(e,t,r){var n;return void 0===r&&(r=!0),function(o){return n||(n=function(e,t,r,n){return new Promise((function(o){if(t(e.document.readyState))o({startTime:0});else{var c=function(e){return o({startTime:e.timeStamp})};i(e,r,n?function(e){return setTimeout((function(){return c(e)}),0)}:c)}}))}(o,e,t,r)),n}}function s(e,t,r,n){void 0===n&&(n=e),n.dispatchEvent(new e.CustomEvent(t,{detail:r}))}var l="visibilitychange";function p(e){var t=e[0];return new Promise((function(e){if(d(t))return r(l,0);function r(t,r){e({entryType:"visibility",type:t,startTime:r})}i(t,l,(function e(n){var i=n.timeStamp;d(t)&&(o(document,l,e,!1),r(l,i))}),!1),a(t).then((function(e){return r("pagehide",e.startTime)}))}))}function d(e){var t=e.document,r=t.visibilityState;return void 0===r?t.hidden:"hidden"===r}var v=r(0),b=r(2),y={__proto__:{load:function(e,t){var r=t.dataset,n=t.src;if(y.suppressBi=e.location.search.includes("suppressbi=true"),Object.entries(y).map((function(e){var t=e[0],n=e[1];return[r[t],t,n]})).filter((function(e){var t=e[0];return!Object(v.n)(t)})).forEach((function(e){var t=e[0],r=e[1],n=e[2];if(Object(v.l)(n))t=!0;else if(Object(v.m)(n)){var i=Number(t);t=Number.isNaN(i)?n:i}y[r]=t})),n){y.src=n;var i=/\d+\.\d+\.\d+/.exec(n);i&&(y.version=i[0])}!y.clientType&&Object(b.a)(e)&&(y.clientType="ugc")}},suppressBi:!1,newClsMethod:!0,resourceDebounce:2e3,taskDelta:300,lcpMin:500,downloadToRenderDelta:1e3,longTask:60,eventDelta:500,ttiDurationInc:2e3,ignoreResources:"cdn_detect,-analytics,perf-measure",label:m("Performance"),clientType:"",fcpPolyfill:"wixFirstPaint",fcpPolyfillId:"wix-first-paint",pageEvent:m("Page"),clsEvent:m("Cls"),storagePrefix:"wix-perf-measure",sessionDelta:!1,noMeasure:!1,log:!1};function m(e){return"wix"+e+"Measurements"}var h=y;var O={analytics:!0,entryType:!0,clientType:!0,version:!0,cores:!0,memory:!0,effectiveType:!0,rtt:!0,download:!0,saveData:!0,url:!0,dns:!0,tcp:!0,ssl:!0,ttfb:!0,redirect:!0,fetchStart:!0,response:!0,navigationType:!0,protocol:!0,pageCaching:!0,_brandId:!0,viewerName:!0,v:!0,dc:!0,microPop:!0,cdn:!0,msid:!0,pageId:!0,fp:!0,fcp:!0,tti:!0,tbt:!0,lcp:!0,lcpSize:!0,closestId:!0,lcpTag:!0,lcpResourceType:!0,lcpContentType:!0,lcpFontClass:!0,lcpInLightbox:!0,cls:!0,countCls:!0,clsId:!0,clsTag:!0,clsOld:!0,ttlb:!0,dcl:!0,transferSize:!0,decodedBodySize:!0,isSsr:!0,ssrDuration:!0,ssrTimestamp:!0,startTime:!0,duration:!0,delay:!0,action:!0,type:!0,pn:!0,count:!0,simLH6:!0,isMobile:!0,maybeBot:!0,btype:!0};function g(e,t){var r=/^https?:\/\/(?:www\.)?(.*)/.exec(e),n=r?r[1]:e;return j(t)?n:Object(v.h)(n)}function j(e){var t,r,n=e.consentPolicyManager;return!(null==n||null==(t=n.getCurrentConsentPolicy())||null==(r=t.policy)||!r.analytics)}function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){T(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function T(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var S=10,E=100;function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?D(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function I(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k(e){var t=e[1];return u(window).then((function(){var e=t.timing,r=e.navigationStart,n=e.domContentLoadedEventEnd,i=e.loadEventEnd,o=e.responseEnd;o>=r||(o=e.domInteractive||e.domContentLoadedEventStart);var c=Object(v.j)(t,"navigation"),u=function(e){if(e){var t=e.requestStart,r=e.responseStart,n=e.responseEnd,i=e.transferSize,o=e.encodedBodySize;if(Object(v.m)(i)){if(0===i)return"browser";if(i<o)return"eTag"}else{if(r-t<13)return"browser";if(n-r<13)return"maybe eTag"}if(n-r<333)return"maybe CDN"}}(c);return x(x({entryType:"navigation-finish",duration:i-r,ttlb:o-r,dcl:n-r},c&&{transferSize:c.transferSize,decodedBodySize:c.decodedBodySize}),u&&{pageCaching:u})}))}function R(e,t,r){t=h.storagePrefix+"-"+t;try{var n=e.localStorage;if(r&&j(e))return r(n,t);n.removeItem(t)}catch(e){}}function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function C(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach((function(t){A(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function A(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _=["microPop","is_rollout","is_platform_loaded","maybeBot","isjp"],L={is_rollout:"isRollout",is_platform_loaded:"isPlatformLoaded",isjp:"maybeBot"};function B(e,t){var r=e[0],n=r.fetchDynamicModel||Promise.resolve({});return Object(v.b)([N(r),n,t,c(r)]).then((function(e){var t,n,c=e[0],u=e[1].visitorId,a=Object(b.a)(r);if(!a)throw"wix-finish";var f=!r.clientSideRender,s=a.btype,l=(r.commonConfig||(null==(t=r.viewerModel)?void 0:t.siteFeaturesConfigs.commonConfig)).bsi,p=C(C(C(C({entryType:"wix-finish",isSsr:f,isWelcome:!!r.requestCloseWelcomeScreen},c&&{cdn:c}),u&&{visitorId:u}),s&&{btype:s}),l&&{bsi:l});if(Object(v.a)(p,"pageId",(null==(n=r.rendererModel)?void 0:n.landingPageId)||r.firstPageId),f){var d=r.ssrInfo,y=void 0===d?{}:d;Object(v.a)(p,"ssrDuration",y.renderBodyTime||y.timeSpentInSSR),Object(v.a)(p,"ssrTimestamp",y.renderTimeStamp)}return _.forEach((function(e){return Object(v.a)(p,L[e]||e,a[e])})),function(e){if(!h.sessionDelta)return void function(e,t){R(e,t)}(r,"timestamp");var t=function(e,t){return R(e,t,(function(e,t){return e.getItem(t)}))}(r,"timestamp"),n=o(),c=n-t;c>0&&c<n&&(e.sessionDelta=c);i(r.document,"consentPolicyChanged",o,!1)}(p),p}));function o(){var e=Date.now();return function(e,t,r){R(e,t,(function(e,t){return e.setItem(t,r)}))}(r,"timestamp",e),e}}function N(e){var t=e.URL;if(!t||h.suppressBi)return Promise.resolve();var r=new t(h.src).origin;return fetch(r+"/cdn_detect",{method:"GET",mode:"cors",cache:"no-cache"}).then((function(e){return e.headers.get("CDN-seen")})).catch(v.r)}function q(e,t,r,n){if(void 0===r&&(r=v.r),void 0===n&&(n=!0),e){var i=e.supportedEntryTypes;if(i&&i.includes(t)){var o=new e((function(e,t){return r(e.getEntries(),t)}));try{o.observe({type:t,buffered:n})}catch(e){o.observe({entryTypes:[t]})}return o}}}var z,F=function(e){var t=e.initiatorType,r=e.name;return"script"===t||"link"===t&&/\.js$/.test(r)},H=function(e){var t=e.initiatorType,r=e.name;return"img"===t||"image"===t||"css"===t&&/\.(?:jpe?g|png|webp|gif)/i.test(r)},U=function(e){var t=e.initiatorType,r=e.name;return"css"===t&&r.includes("font")||/\.(?:woff2?|ttf|eot)/i.test(r)},V=[];function X(e,t,r){if(1===V.push(t)){var n=h.ignoreResources.split(",");z=q(e,"resource",(function(e){(e=e.filter((function(e){var t=e.name;return!n.some((function(e){return t.includes(e)}))}))).length&&V.forEach((function(t){return t(e)}))}),r)}return{observer:z,finish:Object(v.k)(V,t,Object(v.g)(z))}}function $(e,t,r){var n=e[2],i=e[3],o=e[4],c=void 0===r?{}:r,u=c.filter,a=c.tag,f=void 0===a||a,s=c.debounce,l=void 0===s?h.resourceDebounce:s,p=new Promise((function(e,t){var r=[],c=i(p,l),a=X(n,(function(e){u&&(e=e.filter(u)),e.length&&(r.push.apply(r,e),o(c),c=i(p,l))}),!0),f=a.observer,s=a.finish;function p(){if(!f)return t();var n=null==f.takeRecords?void 0:f.takeRecords();n&&r.push.apply(r,n),s(),e(r)}})).then((function(e){var r=e,n=r.length;if(!n)throw t;var i=r.reduce((function(e,t){var r=t.transferSize,n=t.responseStart,i=t.responseEnd;return{tbd:e.tbd+r,firstResponse:n>0&&n<e.firstResponse?n:e.firstResponse,lastResponse:Object(v.p)(e.lastResponse,i)}}),{tbd:0,firstResponse:1e6,lastResponse:0}),o=i.tbd,c=i.firstResponse,u=i.lastResponse,a=r.filter((function(e){var t=e.requestStart;return Object(v.m)(t)})).map((function(e){var t=e.requestStart;return e.responseStart-t})).sort(),f=a.length,s=f>>1,l=Object(v.q)(c,u),p={count:n,startTime:l,duration:u-l,mttfb:f%2?a[s]:(a[s-1]+a[s])/2,attfb:a.reduce((function(e,t){return e+t}),0)/f};return Number.isNaN(o)||(p.tbd=o),p})).catch((function(){return{count:0}}));return f?p.then((function(e){var r=(n=t,n[0].toUpperCase()+n.slice(1));var n;return Object.entries(e).reduce((function(e,t){var n=t[0],i=t[1];return e[n+r]=i,e}),{})})):p}function W(e,t,r,n){var i,o=new Promise((function(o,c){(i=q(e,t,(function(e){return r(e,(function(e){i.disconnect(),o(e)}))}),n))||c(t)}));return o.takeRecords=function(){var e;return null==(e=i)||null==e.takeRecords?void 0:e.takeRecords()},o}var Z={"first-paint":"fp","first-contentful-paint":"fcp"};function G(e){var t=e[0],r=e[2],n={entryType:"initial-paint"};return W(r,"paint",(function(e,t){e.reduce((function(e,t){var r=t.name,i=t.startTime;return n[r=Z[r]||r]=i,e||"fcp"===r}),!1)&&t(n)})).catch((function(){return function(e,t){return new Promise((function(r,n){var o=h.fcpPolyfill,u=h.fcpPolyfillId;function a(){var n=e[o];r({entryType:t,fp:n,fcp:n})}o in e?a():(i(e,o,a),c(e).then((function(){e.document.getElementById(u)||n(t)})))}))}(t,n.entryType)}))}function J(e,t,r){var n=e[0],i=e[2],o=e[3],u=e[4],a=h.resourceDebounce,f=h.taskDelta,s=h.ttiDurationInc;return t.then((function(t){return new Promise((function(s){var l=t,p=!0,d=0,b=[],y=function(e,t){var r=e[0],n=r.requestAnimationFrame,i=r.cancelAnimationFrame,o=e[1],c=q(e[2],"longtask",t,!1);if(c)return Object(v.g)(c);var u=o.now(),a=h.longTask,f=n((function e(r){var i=r-u;i>=a&&t([{startTime:u,duration:i}]);u=r,f=n(e)}));return function(){return i(f)}}(e,(function(e){b.push.apply(b,e),p=!1,u(d),d=o((function(){p=!0,P()}),f)})),m=c(n),O=!1,g=o(w,a),j=X(i,(function(e){(e=e.filter((function(e){return"fetch"===(t=e.initiatorType)||"xmlhttprequest"===t||F(e);var t}))).length&&(O=!1,l=e.reduce((function(e,t){var r=t.startTime,n=t.duration;return Object(v.p)(e,r+n)}),l),m.then((function(e){var t=e.startTime;l=Object(v.p)(t,l),u(g),g=o(w,a)})))}),!1).finish;function w(){O=!0,P()}function P(){p&&O&&T(1e6)}function T(e){y(),j(),s([b,t,l,e])}null==r||r.then((function(e){return T(e.startTime+e.delay)}),v.r)}))})).then((function(e){var t=e[0],r=function(e,t,r,n){t===r&&(r+=s);var i=e.findIndex((function(e){var t=e.startTime,n=e.duration;if(t>r+f)return!0;r=Object(v.p)(r,t+n)}));-1===i&&(i=e.length);var o=i>0?(c=e[i-1],c.startTime+c.duration):0;var c;return Object(v.p)(Object(v.q)(o,n),t)}(t,e[1],e[2],e[3]),i=n.document,o=n.innerHeight,c={tti:r,tbt:function(e,t){for(var r=0,n=0;n<e.length;++n){var i=e[n],o=i.startTime,c=i.duration;if(o>t)break;r+=c-50}return r}(t,r),iframes:i.querySelectorAll("iframe").length},u=Object(v.p)(i.body.offsetHeight,o);return u>0&&(c.screens=i.body.scrollHeight/u),c})).catch(Object(v.s)("interactive"))}function K(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Q(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Q(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ee(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(r),!0).forEach((function(t){te(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function te(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var re="largest-contentful-paint";function ne(e,t){var r,n=e.startTime,i=e.size,o=e.url,c=e.element,u=e.id,a=Object(v.d)(c),f=null==a?void 0:a.tagName,s=function(e){if(e)for(var t,r=K(e.classList);!(t=r()).done;){var n=t.value,i=/^font_\d$/.exec(n);if(i)return i[0]}}(a),l=Object(v.e)(c,u),p=/\.(jpe?g|png|gif|svg|webp)/i.exec(o),d=(null==p||null==(r=p[1])?void 0:r.toLowerCase().replace("jpeg","jpg"))||"other";return ee(ee(ee(ee(ee(ee({entryType:re,lcp:n,lcpSize:i},l&&{closestId:l}),f&&{lcpTag:f}),o&&{lcpResourceType:d}),t&&{lcpContentType:t}),s&&{lcpFontClass:s}),{},{lcpInLightbox:oe(c)})}function ie(e){if(!e)return Promise.reject(re);var t=e.url;return(t?fetch(t,{method:"HEAD"}).then((function(e){return e.headers.get("content-type")})).catch(v.r):Promise.resolve()).then((function(t){return ne(e,t)}))}function oe(e){return null!==Object(v.f)(e,"#POPUPS_ROOT")}function ce(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return ue(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ue(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ae={MAX_SIZE:200,MAX_INTERVAL:100},fe={MAX_SIZE:1e7,MAX_INTERVAL:1e7};function se(e,t){var r=function(e,t){var r=q(e,t);if(r){var n=null==r.takeRecords?void 0:r.takeRecords();return r.disconnect(),n}}(e[2],"layout-shift");if(r){var i=h.newClsMethod?ae:fe,o=0,c=r.filter((function(e){return!e.hadRecentInput})).map((function(e){var t=e.sources,r=void 0===t?[]:t,n=e.value,i=e.startTime;return o+=n,[n,r.reduce((function(e,t){var r=t.node,n=t.currentRect,i=n.width*n.height;return i<e[1]?e:[r,i]}),[null,-1])[0],i]})).reduce((function(e,t){var r=e.slice(-1)[0];if(r){var n=t[2];if(n-r[0][2]<i.MAX_SIZE)if(n-r.slice(-1)[0][2]<i.MAX_INTERVAL)return r.push(t),e}return e.push([t]),e}),[]).reduce((function(e,t){var r=t.reduce((function(e,t){return e+t[0]}),0);if(r<=e[0])return e;var n=t.filter((function(e){return e[1]})).reduce((function(e,t){var r=t[0],n=t[1];return e.set(n,r+(e.get(n)||0)),e}),new Map);return[r,t.length,n]}),[0,0]),u=c[0],a=c[1],f=c[2],s={cls:u*n.a,countCls:a,clsOld:o*n.a};if(f){for(var l,p=[],d=ce(f.entries());!(l=d()).done;){var b=l.value;p.push(b)}if(p.length){var y;p.sort((function(e,t){return t[1]-e[1]}));var m=p[0][0];(null==(y=m)?void 0:y.nodeType)!==Node.ELEMENT_NODE&&(m=m.parentElement),t&&m&&(s.element=Object(v.d)(m));var O=Object(v.e)(m);O&&(s.clsId=O);var g=m.tagName;g&&(s.clsTag=g)}}return s}}var le=["pointerdown","click","mousedown","keydown","touchstart"],pe=new Map,de=0;function ve(e,t,r){var n=e[0],c=e[1];void 0===r&&(r=le);var u=pe.get(r);return void 0===u&&(u=[],pe.set(r,u)),1===u.push(t)&&r.forEach((function(e){return i(n,e,a,!1)})),Object(v.k)(u,t,(function(){return le.forEach((function(e){return o(n,e,a,!1)}))}));function a(e){var t=e.type,r=e.timeStamp;if(e.cancelable){var u=c.now(),a=r>1e12?Date.now():u,s=Object(v.p)(a-r,0),l=u-s;t===le[0]?function(e,t,r){function c(){f(e,t,r),u()}function u(){o(n,"pointerup",c,!1),o(n,"pointercancel",u,!1)}i(n,"pointerup",c,!1),i(n,"pointercancel",u,!1)}(t,l,s):f(t,l,s)}}function f(e,t,r){var n=t+r;n-de<h.eventDelta||(de=n,u.forEach((function(n){return n(e,t,r)})))}}function be(e){var t=e[2],r=e[3];return W(t,"first-input",(function(e,t){var n=e[0],i=n.name,o=n.startTime,c=n.processingStart,u=n.duration,a=n.target,f={entryType:"first-input",action:i,startTime:o,delay:c-o,duration:u},s=Object(v.e)(a);s&&(f.closestId=s),r((function(){return t(f)}),0)})).catch((function(){return function(e,t){return new Promise((function(r){var n=ve(e,(function(e,i,o){n(),r({entryType:t,action:e,startTime:i,delay:o})}))}))}(e,"first-input")}))}function ye(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function me(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(r),!0).forEach((function(t){he(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ye(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function he(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oe(e,t,r){var n,i,o=[],c=[],u=function(){return o.push(new Promise((function(e){return i=e})))};return u(),{report:function(t){t=ge(e,t),c.push(t),i({value:t}),u(),r&&s(e,r,t)},result:Promise.resolve(me((n={entryType:t},n[Symbol.iterator]=function(){var e=0;return{next:function(){return{value:c[e++],done:e>c.length}}}},n[Symbol.asyncIterator]=function(){var e=0;return{next:function(){return o[e++]}}},n),r&&{eventName:r}))}}function ge(e,t){return Object.freeze(Object(v.t)(function(e,t){return Symbol.iterator in t?t:(t.analytics=j(e),t.analytics?t:Object.entries(t).filter((function(e){var t=e[0];return O[t]})).reduce((function(e,t){var r=t[0],n=t[1];return e[r]=n,e}),{}))}(e,me(me({},t),{},{clientType:h.clientType}))))}var je=Object(v.o)("tti"),we=Object(v.o)("lcp");function Pe(e,t,r){r.end>r.start&&e.measure(t,r)}function Te(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Se(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ee=0;function De(e){var t=e[0],r=e[1],n=l(),o=h.clientType,c=h.pageEvent,u=Oe(t,"page-transitions",c),a=u.report,f=u.result;return i(t,"popstate",(function(e){return s(e.type,e.timeStamp,0)}),!1),ve(e,s,["click"]),f;function s(t,i,c){J(e,Promise.resolve(i+c)).then((function(e){var u=l();if(function(e,t){return Object(v.h)(e)!==Object(v.h)(t)}(n,u)){var f=e.tti-i,s=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(r),!0).forEach((function(t){Se(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Te(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({entryType:"page-transition",clientType:o,origin:n,destination:u,action:t,startTime:i,delay:c,duration:f,pn:++Ee},e);n=u,a(s),h.noMeasure||function(e,t){var r=t.pn,n=t.startTime,i=t.tti,o=t.tbt;Pe(e,Object(v.o)("page #"+r+" tti"),{start:n,end:i,detail:o})}(r,s)}}))}function l(){return g(t.location.href,t)}}function xe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ie(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(r),!0).forEach((function(t){ke(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ke(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Re;function Me(){var e;return ie(null==(e=Re)?void 0:e.lcp())}function Ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ae(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(r),!0).forEach((function(t){_e(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ce(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Le(e,t){return t.then((function(t){var r=t.cls,n=0,o=e[0],c=Oe(o,"crux-cls-s",h.clsEvent),u=c.report,a=c.result;return i(o,"visibilitychange",(function(){d(o)||p(e).then((function(t){var i=t.startTime,o=se(e);o&&o.cls!==r&&(r=o.cls,u(Ae(Ae({},o),{},{entryType:"crux-cls",startTime:i,count:++n})))}))}),!1),a}))}var Be=r(3);function Ne(e){console.log(n.d,e)}function qe(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return ze(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ze(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}!function(e){if("function"!=typeof Promise||!Promise.allSettled)return;var t=e.document,r=e.performance,i=t.currentScript||t.getElementById("wix-perf-measure");i&&h.load(e,i);var o=h.noMeasure,c=h.log,u=h.label,a=[e,r,e.PerformanceObserver,e.setTimeout,e.clearTimeout],f=function(e){var t=Object(v.c)("environment",function(e){var t=e[0],r=t.screen,i={screenRes:r.width+"x"+r.height,availScreenRes:r.availWidth+"x"+r.availHeight,windowInner:t.innerWidth+"x"+t.innerHeight,windowOuter:t.outerWidth+"x"+t.outerHeight,devicePixelRatio:t.devicePixelRatio*n.f,colorDepth:r.colorDepth};h.version&&(i.version=h.version);var o=r.orientation;null!=o&&o.type&&(i.orientation=o.type);var c=t.navigator,u=c.connection,a=c.deviceMemory,f=c.hardwareConcurrency;if(f&&(i.cores=f),a&&(i.memory=Math.floor(a)),u){var s=u.type,l=u.effectiveType,p=u.rtt,d=u.downlink,b=u.saveData;s&&(i.networkType=s),l&&(i.effectiveType=l),Object(v.m)(p)&&p&&(i.rtt=p),d&&(i.download=Object(v.q)(d,n.e)),Object(v.l)(b)&&(i.saveData=b)}if(t.matchMedia){var y=t.matchMedia("(prefers-reduced-motion:reduce)");i.reducedMotion=y.matches}return c.getBattery?c.getBattery().then((function(e){var t=e.charging,r=e.level;return i.lowBattery=!1===t&&r<.1,i})).catch((function(){return i})):Promise.resolve(i)}(e),function(e){var t=e[0],r=e[1];return new Promise((function(e,n){var i=0;!function o(){var c=r.timing,u=c.navigationStart,a=c.fetchStart,f=c.domainLookupStart,s=c.domainLookupEnd,l=c.redirectStart,p=c.redirectEnd,d=c.connectStart,b=c.connectEnd,y=c.secureConnectionStart,m=c.requestStart,h=c.responseStart,O=h-u;if(!(O>=0))return void(++i>S?n("navigation-start"):setTimeout(o,E));var j=t.document.referrer,w=t.location.href,T=Object(v.j)(r,"navigation");e(P(P(P(P(P({entryType:"navigation-start",url:g(w,t),referrer:g(j,t)},T&&{navigationType:T.type,protocol:T.nextHopProtocol}),{},{dns:s-f},Object(v.m)(a)&&{fetchStart:a-u}),p&&{redirect:p-l}),y?{tcp:y-d,ssl:b-y}:{tcp:b-d}),{},{ttfb:O,response:h-m}))}()}))}(e),function(e){var t=e[0],r=Object(b.a)(t);if(!r)return Promise.reject("wix-start");var n={},i=t.thunderboltVersion,o=t.viewerModel,c=t.boltVersion,u=t.rendererModel,a=((null==o?void 0:o.site)||u||{}).site,f=void 0===a?{}:a;Object(v.a)(n,"msid",f.metaSiteId||r.msId);var s=t.commonConfig||(null==o?void 0:o.siteFeaturesConfigs.commonConfig);return Object(v.a)(n,"_brandId",null==s?void 0:s.brand),i?l(f.isResponsive?"thunderboltResponsive":"thunderbolt",i):l(r.renderType,c),Object(v.a)(n,"dc",r.dc||f.dc),Promise.resolve(n);function l(e,t){Object(v.a)(n,"viewerName",e),Object(v.a)(n,"v",t)}}(e)),r=p(e),i=G(e),o=be(e),c=J(e,Object(v.i)(i,"fcp"),o),u=function(e,t,r,n){var i=e[1],o=e[2],c=e[3],u=e[4];return t.then((function(e){var t,a=e.tti,f=h.resourceDebounce,s=new Promise((function(e){var r=Object(v.p)(f-(i.now()-a),0);t=c(e,r)})),l=W(o,re,(function(e,r){u(t),t=c((function(){return r(e[e.length-1])}),f)}));return Promise.race([l,s,r.then(v.r),n.then(v.r)]).then((function(e){var t=null==l.takeRecords?void 0:l.takeRecords();return ie((null==t?void 0:t.slice(-1))[0]||e)})).catch(Object(v.s)(re))}))}(e,c,r,o),a=function(e){return $(e,"scripts",{filter:F})}(e),f=function(e){return $(e,"images",{filter:H})}(e),s=function(e){return $(e,"fonts",{filter:U})}(e),l=Object(v.c)("loaded",c,u,a,f,s,k(e),B(e,c)).then((function(t){return Object.assign(t,se(e))})),d=function(e,t){var r,n=e[2],i=Promise.resolve({});function o(e){if(null!=e&&e.length){var t=e.slice(-1);r=t[0],i=ie(r)}}var c=q(n,re,o);return Re={cls:function(){return se(e,!0)},lcp:function(){return o(null==c.takeRecords?void 0:c.takeRecords()),r}},t.then((function(t){var r=t.startTime;return i.then((function(t){return Ie(Ie(Ie({},se(e)),t),{},{entryType:"crux",startTime:r,pn:Ee})}))}))}(e,r);return function(e){var t={};return r("lcp"),r("cls"),Object.defineProperties(e,t);function r(e){t[e]={value:function(){var t,r;return null==(t=Re)||null==(r=t[e]())?void 0:r.element}}}}([t,i,l,o,r,De(e),d,Le(e,d)].map((function(t){return t.then((function(t){return ge(e[0],t)}))})))}(a);Object(Be.a)(a,t,h.src,f,Me,se),Object.freeze(f);var l=f.slice(0,3),d=f.slice(3,5);o||function(e,t){function r(e,t){return e.find((function(e){return e.entryType===t}))||{}}function n(t,r,n){if(r)return e.mark(t,{startTime:r,detail:n})}Object(v.b)(t).then((function(t){var i=r(t,"loaded"),o=i.tti,c=i.tbt,u=i.lcp;if(n(je,o,c)){n(we,u);var a=r(t,"initial-paint").fcp,f=u<o,s={start:f?u:a,end:o,detail:c};Pe(e,we,{start:f?a:o,end:u}),Pe(e,je,s)}else e.clearMarks(je)}),v.r)}(r,l);c&&function(e,t){Object(v.b)(e).then((function(e){return e.forEach(Ne)}),v.r),t.forEach((function(e){return e.then(Ne,v.r)}))}(l,d);e[u]=f,s(e,u,f),function(e,t){var r=e.URLSearchParams;if(r)for(var n,i=qe(new r(e.location.search).keys());!(n=i()).done;){if("showperfinfo"===n.value.toLowerCase())return Promise.all(t.slice(0,3)).then((function(t){var r=t[0],n=r.viewerName,i=r.ttfb,o=t[1].fcp,c=t[2],u=c.lcp,a=c.cls,f=c.tti,s=c.tbt;e.alert("Viewer="+n+"\nTTFB="+i+"\nFCP="+o+"\nLCP="+u+"\nCLS="+a+"\nTTI="+f+"\nTBT="+s)})),!0}}(e,f)}(window)}])}));
//# sourceMappingURL=wix-perf-measure.bundle.min.js.map