2025-03-22 00:49:46 +01:00

1 line
103 KiB
JavaScript

(()=>{var e={868:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keenService=void 0;var n,o,i=(n=r(656))&&n.__esModule?n:{default:n},a=r(999),s=r(476),u=t.keenService=new i.default;o=window.HAnalyticsGlobalData&&(0,s.tryJSONParse)(window.HAnalyticsGlobalData.eventsJson),u.processAnalyticsEvents(o),(0,a.addAnalyticsEventsToDataLayer)(o),u.reportABTests(),u.reportPageView()},506:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=d(r(433)),o=d(r(242)),i=r(994),a=r(743),s=r(572),u=r(654),c=r(287),l=r(993);function d(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h(n.key),n)}}function h(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:String(t)}var y="hck.abtest",m=function(){function e(t){var r=t.recordEvent;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.recordEvent=r}var t,r;return t=e,(r=[{key:"_getForcedVariantIdx",value:function(e){if(!(0,i.canUseDOM)())return 0;var t=(0,c.mapifyStringQuery)(l.windowLocationSearch.get())["exp_".concat(e)];return t?(0,s.findIndex)(n.default[e].variants,(function(e){return e.value===t})):-1}},{key:"_getIdx",value:function(e){var t=this._getForcedVariantIdx(e);if(t>-1)return t;var r=this._getStoredIndexes();if(r.hasOwnProperty(e))return r[e];var o,i,a=(o=n.default[e].variants,i=Math.random(),o.reduce((function(e,t,r){if(null!==e.idx)return e;var n=e.sum+t.weight;return i<=n?{idx:r,sum:n}:Object.assign({},e,{sum:n})}),{idx:null,sum:0}).idx);return this._storeJoinedExperiment(e,a,r),this._reportJoinedExperiment(e,a),a}},{key:"_getStoredIndexes",value:function(){if((0,i.canUseDOM)()){var e=(0,u.getItem)(y)||{};return(0,a.filterObject)(e,(function(e,t){return n.default.hasOwnProperty(t)}))}}},{key:"_getProps",value:function(e,t){return(0,s.getInObj)([e,"variants",t,"props"],n.default)||{}}},{key:"_getVariantIdxByValue",value:function(e,t){var r=(0,s.getInObj)([e,"variants"],n.default);return r?r.reduce((function(e,r,n){return-1===e&&r.value===t?n:e}),-1):-1}},{key:"_reportJoinedExperiment",value:function(e,t){this.recordEvent({eventName:"Joined experiment"},{exp_name:e,value:(0,s.getInObj)([e,"variants",t,"value"],n.default)})}},{key:"_storeJoinedExperiment",value:function(e,t,r){var n,o,i,a=Object.assign({},r,(n={},i=t,(o=h(o=e))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i,n));(0,u.setItem)(y,a)}},{key:"getExperimentProps",value:function(e){try{var t=this._getIdx(e);return this._getProps(e,t)}catch(t){return(0,o.default)(t),this._getProps(e,0)}}},{key:"storeAndReportExperiment",value:function(e,t){if(n.default.hasOwnProperty(e)){var r=this._getVariantIdxByValue(e,t),i=this._getStoredIndexes();r>-1&&i[e]!==r&&(this._storeJoinedExperiment(e,r,i),this._reportJoinedExperiment(e,r))}else(0,o.default)("Unknown AB test:",e)}}])&&p(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=m},433:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={lock_screen_2018_08:{variants:[{props:{},value:"false",weight:.98},{props:{},value:"true",weight:.02}]}}},999:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.addAnalyticsEventsToDataLayer=function(e){e&&e.forEach((function(e){var t,r,o,i,s=e.customProps;switch(e.eventName){case"Created account":a({event:"sign_up",method:s.provider||"email"});break;case"Entered feature gate":a((t={},r="fG_".concat(s.feature_gate),o=s.feature_enabled,i=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r),(r="symbol"==n(i)?i:String(i))in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t));break;case"Logged in":a({event:"login",method:s.method})}}))},t.addToDataLayer=a,t.createVirtualPageview=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window&&window.gglTagMngrDataLayer&&window.gglTagMngrDataLayer.push(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.path,r=e.pageType,n=e.title,a=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,i);return Object.assign({event:"gtm.virtualPageview",pageType:r||(0,o.getDocumentFunction)("querySelector")("meta[name=pageType]").content,virtualPage:t||o.windowLocationPathname.get(),virtualTitle:n||(0,o.getDocumentProperty)("title")},a)}(e))};var o=r(993),i=["path","pageType","title"];function a(e){var t;null===(t=window.gglTagMngrDataLayer)||void 0===t||t.push(e)}},272:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.areCookiesSupported=f,t.deleteCookie=function(e){return f()?c(e):null},t.getCookie=function(e){return f()?l(e):null},t.setCookie=function(e,t,r){return f()?d(e,t,r):null};var n,o=(n=r(242))&&n.__esModule?n:{default:n},i=r(345),a=r(993),s=null;function u(e){document.cookie=e}function c(e){var t=l(e);return u("".concat(e,"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/; domain=.").concat(CLIENT_ENV.DEFAULT_DOMAIN,";")),t}function l(e){var t=document.cookie.match(new RegExp("".concat(e,"=([^;]+)")));if(!t||!t[1])return null;var r=t[1];if((0,i.isAString)(r))return r;try{return JSON.parse(decodeURIComponent(r))}catch(t){return(0,o.default)("parseCookie: ".concat(e),t),{}}}function d(e,t,r){var n=(0,i.isAString)(t)?t:encodeURIComponent(JSON.stringify(t)),o=(0,i.isADate)(r)?r.toUTCString():null;u("".concat(e,"=").concat(n,"; path=/; domain=.").concat(CLIENT_ENV.DEFAULT_DOMAIN,"; expires=").concat(o))}function f(){if(null===s)if(a.isWindowDefined&&window.navigator.cookieEnabled){d("testcookie","1");var e=l("testcookie");e&&c("testcookie"),s=!!e}else s=!1;return s}},242:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){console.error.apply(console,arguments)}},656:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=c(r(290)),i=c(r(633)),a=c(r(242)),s=c(r(506)),u=r(476);function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function d(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:String(t)}function f(e,t,r){return t=h(t),function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return y(e)}(e,p()?Reflect.construct(t,r||[],h(e).constructor):t.apply(e,r))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}var b="data-ha";t.default=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=f(this,t))._handleGlobalClick=e._handleGlobalClick.bind(y(e)),e.abTestService=new s.default({recordEvent:e.recordEvent.bind(y(e))}),"undefined"!=typeof document&&document.addEventListener&&document.addEventListener("DOMContentLoaded",e._init.bind(y(e))),e}var r,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),r=t,n=[{key:"_init",value:function(){var e=this;"undefined"!=typeof document&&document.querySelectorAll&&[].slice.call(document.querySelectorAll("[".concat(b,"]"))).forEach((function(t){t.addEventListener("click",e._handleGlobalClick,!0)}))}},{key:"getABTestVariant",value:function(e){return this.abTestService.getExperimentProps(e)}},{key:"processAnalyticsEvents",value:function(e){return e?this.recordEvents(e).catch((function(e){throw(0,a.default)("GlobalKeenService processAnalyticsEvents: ",e),e})):Promise.resolve()}},{key:"reportABTests",value:function(){var e=this,t=window.HAnalyticsGlobalData&&(0,u.tryJSONParse)(window.HAnalyticsGlobalData.abTestsJson);t&&Object.keys(t).forEach((function(r){e.abTestService.storeAndReportExperiment(r,t[r])}))}},{key:"reportPageView",value:function(){var e=this._getPageType();return e&&-1===i.default.indexOf(e)?this.recordPageView({pageType:e}).then((function(){})).catch((function(e){return(0,a.default)("KeenService reportPageView: ",e),Promise.reject(e)})):Promise.resolve()}},{key:"_handleGlobalClick",value:function(e){if(e){var t=this._findTarget(e.target);if(t){var r=(0,u.tryJSONParse)(t.getAttribute(b))||{};if(r.hasOwnProperty("eventName")){var n=r.eventName,o=r.pageType,i=r.customProps,a=r.clickOpts,s=void 0===a?{}:a;this.recordLinkClick({eventName:n,pageType:o},i,s.delayRedirect,e)}}}}},{key:"_findTarget",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._hasAnalyticsAttrib(e)?e:t>=2||!e||"BODY"===e.nodeName||!e.parentNode?null:this._findTarget(e.parentNode,t+1)}},{key:"_hasAnalyticsAttrib",value:function(e){return!(!e||!e.hasAttribute)&&e.hasAttribute(b)}}],n&&l(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),t}(o.default)},709:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(611);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:String(t)}function s(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("#")[0]||null}t.default=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.distinctId,o=void 0===r?null:r,i=t.sessionId,a=void 0===i?null:i,s=t.pageType,u=void 0===s?null:s,c=t.userId,l=void 0===c?null:c,d=t.utmParams,f=void 0===d?{}:d,p=t.whitelabel,h=void 0===p?null:p;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.clientEventId=(0,n.v4)(),this.distinctId=o,this.pageType=u,this.userId=l,this.sessionId=a,this.utm_campaign=f.utm_campaign,this.utm_content=f.utm_content,this.utm_medium=f.utm_medium,this.utm_source=f.utm_source,this.utm_term=f.utm_term,this.whitelabel=h}var t,r;return t=e,(r=[{key:"createRecord",value:function(){return{client_event_id:this.clientEventId,distinct_id:this.distinctId,ip:"${keen.ip}",logged_in:this.userId&&"number"==typeof this.userId,page_url:document.location.toString(),page_type_category:s(this.pageType),page_type_full:this.pageType,referrer:{url:document.referrer||""},session_id:this.sessionId,user_id:this.userId,utm_campaign:this.utm_campaign,utm_content:this.utm_content,utm_medium:this.utm_medium,utm_source:this.utm_source,utm_term:this.utm_term,whitelabel:this.whitelabel,keen:{addons:[{name:"keen:url_parser",input:{url:"page_url"},output:"parsed_page_url"}]}}}}])&&i(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},647:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(r(709)),i=a(r(599));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function u(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:String(t)}function c(e,t,r){return t=f(t),function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,r||[],f(e).constructor):t.apply(e,r))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function d(){return d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},d.apply(this,arguments)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var h=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=c(this,t,[e])).eventName=e.eventName,r.customProps=(0,i.default)(e.customProps,r.eventName),r}var r,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),r=t,(n=[{key:"createRecord",value:function(){return Object.assign({},d(f(t.prototype),"createRecord",this).call(this),{custom:this.customProps,event_name:this.eventName})}}])&&s(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),t}(o.default);t.default=h},266:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}var o;function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:String(t)}function s(e,t,r){return t=l(t),function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},c.apply(this,arguments)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var f=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=s(this,t,[e])).entity_id=e.entity_id||null,r.referrer=e.referrer||document.referrer||"",r}var r,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),r=t,(n=[{key:"createRecord",value:function(){var e=c(l(t.prototype),"createRecord",this).call(this);return Object.assign({},e,{entity_id:this.entity_id,referrer:{url:this.referrer},keen:Object.assign({},e.keen,{addons:e.keen.addons.concat({name:"keen:referrer_parser",input:{page_url:"page_url",referrer_url:"referrer.url"},output:"referrer.info"})})})}}])&&i(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),t}(((o=r(709))&&o.__esModule?o:{default:o}).default);t.default=f},822:(e,t)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:String(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.distinctId,n=void 0===r?null:r,o=t.sessionId,i=void 0===o?null:o,a=t.pageType,s=void 0===a?null:a,u=t.userId,c=void 0===u?null:u,l=t.utmParams,d=void 0===l?{}:l,f=t.whitelabel,p=void 0===f?null:f;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.distinctId=n,this.pageType=s,this.sessionId=i,this.userId=c,this.utm_campaign=d.utm_campaign,this.utm_content=d.utm_content,this.utm_medium=d.utm_medium,this.utm_source=d.utm_source,this.utm_term=d.utm_term,this.whitelabel=p}var t,r;return t=e,(r=[{key:"createRecord",value:function(){return{distinct_id:this.distinctId,ip:"${keen.ip}",landing_page_type:this.pageType,landing_page_url:document.location.toString(),referrer:{url:document.referrer||""},screen:{height:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,width:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth},session_id:this.sessionId,user_agent:"${keen.user_agent}",user_id:this.userId,utm_campaign:this.utm_campaign,utm_content:this.utm_content,utm_medium:this.utm_medium,utm_source:this.utm_source,utm_term:this.utm_term,whitelabel:this.whitelabel,keen:{addons:[{name:"keen:ip_to_geo",input:{ip:"ip"},output:"geo_info"},{name:"keen:referrer_parser",input:{referrer_url:"referrer.url"},output:"referrer.info"},{name:"keen:ua_parser",input:{ua_string:"user_agent"},output:"parsed_user_agent"},{name:"keen:url_parser",input:{url:"landing_page_url"},output:"parsed_landing_page_url"}]}}}}])&&n(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},865:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPropTemplate=function(e){return r[e]},t.isValidEventName=function(e){return r.hasOwnProperty(e)};var r={"Ad clicked":{id:"number"},"Ad viewed":{id:"number",blocked:"boolean"},"Added project to contest":{},"Added project to list":{},"Changed notification settings":{},"Clicked filter value":{},"Clicked button":{},"Clicked launch campaign":{},"Clicked link":{},"Clicked menu item":{},"Clicked part buy link":{link_position:"number"},"Clicked view all section":{},"Clicked view more":{},"Completed onboarding":{},"Completed onboarding step":{},"Confirmed email address":{},"Created account":{},"Created bookmark":{},"Created bookmark list":{},"Created comment":{},"Created event":{},"Created post":{},"Created project":{},"Deleted account":{},"Deleted bookmark":{},"Deleted bookmark list":{},"Deleted comment":{},"Deleted event":{},"Deleted post":{},"Dismissed tooltip":{},"Entered feature gate":{feature_gate:"string",feature_enabled:"boolean",rate:"number"},"Followed entity":{},"Joined experiment":{},"Logged in":{method:"string"},"Logged out":{},"Made project public":{},"Opened bookmark menu":{},"Opened explore menu":{},"Opened menu":{},"Posted comment":{},"Posted feed post":{},"Registered for contest":{},"Registered for workshop":{},"Respected entity":{},Searched:{filters:{parts:"array",project_type:"array",difficulty:"array",language:"array",skills:"array",available_for_hire:"boolean",location:{geoloc:{lat:"number",lng:"number"},distance:"number"}},pagination:{current_page:"number",per_page:"number",total_pages:"number",total_records:"number"}},"Search filter":{},"Search location filter":{},"Sent invites":{count:"number"},"Signup prompt clicked":{},"Signup prompt shown":{},"Submitted idea to contest":{},"Submitted project to contest":{},"Unfollowed entity":{},"Updated comment":{},"Updated post":{},"Unregistered for contest":{},"Unrespected entity":{},"Viewed lock screen":{projects_viewed:"number"}}},599:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,o.isObjectWithLength)(e)?s(e,(0,n.getPropTemplate)(t)):null};var n=r(865),o=r(345);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var a={array:function(e){return Array.isArray(e)&&e.length>0?e:null},boolean:function(e){if("boolean"==typeof e)return e;if("string"==typeof e){var t=e.toLowerCase();return"true"===t||"false"!==t&&null}return null},number:function(e){if(Array.isArray(e))return null;var t=parseFloat(e);return isNaN(t)?null:t},string:function(e){return"string"==typeof e?e:"boolean"==typeof e||"number"==typeof e?e.toString():null}};function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(r,n){var u=t[n],c=e[n],l=(0,o.isObjectWithLength)(c)?s(c,u):function(e,t,r){var n=a[t];return n?n(e):function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=t.endsWith("_id")&&"event_id"!==t?"number":"string";return a[r](e)}(e,r)}(c,u,n);return(0,o.isBlank)(l)?r:Object.assign({},r,function(e,t,r){var n;return n=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==i(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},n,l))}),{})}},290:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=h(r(647)),o=h(r(266)),i=h(r(822)),a=h(r(474)),s=h(r(242)),u=h(r(632)),c=r(572),l=r(370),d=r(865),f=r(54),p=r(993);function h(e){return e&&e.__esModule?e:{default:e}}function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,b(n.key),n)}}function b(e){var t=function(e,t){if("object"!=y(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==y(t)?t:String(t)}t.default=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.currentUserId=this._getUserId(),this.sessionHandler=new a.default,this.whitelabel=this._getWhitelabel()}var t,r;return t=e,r=[{key:"recordEvent",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.pageType,o=t.eventName,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(t,a){if((0,u.default)()||!e._hasKeenKeys()||!(0,d.isValidEventName)(o))return t();if(!(r=r||e._getPageType()))return a(new Error("recordEvent expected a pageType, but received: ".concat(r)));var c=e._getEventData(),l=c.createNewSession,p=c.distinctId,h=c.sessionId,y=c.utmParams,m=new n.default({customProps:i,distinctId:p,eventName:o,pageType:r,sessionId:h,userId:e.currentUserId,utmParams:y,whitelabel:e.whitelabel});return Promise.all([(0,f.postSingleEvent)(m.createRecord(),"events"),e.recordNewSession({createNewSession:l,distinctId:p,sessionId:h,pageType:r,utmParams:y})]).then((function(){return t()})).catch((function(e){return(0,s.default)("KeenService recordEvent: ",e),a(e)}))}))}},{key:"recordEventWithDelayedRedirect",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.pageType,r=e.eventName,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;return i.ctrlKey||i.metaKey?this.recordEvent({eventName:r,pageType:t},n):(i.preventDefault(),this._recordEventAndRedirect({eventName:r,pageType:t},n,o))}},{key:"recordEventsWithDelayedRedirect",value:function(e,t,r){return r.ctrlKey||r.metaKey?this.recordEvents(e):(r.preventDefault(),this._recordEventsAndRedirect(e,t))}},{key:"recordEvents",value:function(e){var t=this;return new Promise((function(r,n){var o=e.map((function(e){return t._normalizeObj(e)})).map((function(e){var r=e.eventName,n=e.pageType,o=e.customProps;return t.recordEvent({eventName:r,pageType:n},o)}));return Promise.all(o).then((function(){return r()})).catch((function(e){return(0,s.default)("KeenService recordEvents: ",e),n(e)}))}))}},{key:"recordLinkClick",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.eventName,r=void 0===t?"Clicked link":t,n=e.pageType,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3?arguments[3]:void 0,s=o.href||(0,c.getInObjWithPrototypeAccess)(["target","href"],a),u=o.value||(0,c.getInObjWithPrototypeAccess)(["target","textContent"],a)||(0,c.getInObjWithPrototypeAccess)(["target","innerText"],a),l=Object.assign({},o,{href:s,value:u});return i&&s?this.recordEventWithDelayedRedirect({eventName:r,pageType:n},l,s,a):this.recordEvent({eventName:r,pageType:n},l)}},{key:"recordPageView",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(r,n){if((0,u.default)()||!e._hasKeenKeys())return r();var i=t.entity_id||e._getEntityId(),a=t.pageType||e._getPageType();if(!a)return n(new Error("recordPageView expected a pageType, but received: ".concat(a)));var c=e._getEventData(),l=c.createNewSession,d=c.distinctId,p=c.sessionId,h=c.utmParams,y=new o.default({distinctId:d,entity_id:i,pageType:a,referrer:t.referrer,sessionId:p,userId:e.currentUserId,utmParams:h,whitelabel:e.whitelabel});return Promise.all([(0,f.postSingleEvent)(y.createRecord(),"page_views"),e.recordNewSession({createNewSession:l,distinctId:d,sessionId:p,pageType:a,utmParams:h})]).then((function(){return r()})).catch((function(e){return(0,s.default)("KeenService recordPageView: ",e),n(e)}))}))}},{key:"recordNewSession",value:function(e){var t=this,r=e.createNewSession,n=e.distinctId,o=e.sessionId,a=e.pageType,s=e.utmParams;return new Promise((function(e,c){if(!r||(0,u.default)()||!t._hasKeenKeys())return e();if(!(a=a||t._getPageType()))return c(new Error("recordNewSession expected a pageType, but received: ".concat(a)));var l=new i.default({distinctId:n,sessionId:o,pageType:a,whitelabel:t.whitelabel,utmParams:s,userId:t.currentUserId});return(0,f.postSingleEvent)(l.createRecord(),"sessions").then((function(){return e()})).catch((function(e){return c(e)}))}))}},{key:"_getEntityId",value:function(){return p.isWindowDefined&&window.HAnalyticsGlobalData&&window.HAnalyticsGlobalData.hasOwnProperty("entity_id")?window.HAnalyticsGlobalData.entity_id:null}},{key:"_getEventData",value:function(){var e=this.sessionHandler.getSessionData(),t=e.createNewSession,r=e.data;return{createNewSession:t,distinctId:r.distinctId,sessionId:r.sessionId,utmParams:(0,l.getUTMParams)(window.location.search,t)}}},{key:"_getPageType",value:function(){if("undefined"!=typeof document&&"function"==typeof document.querySelector){var e=document.querySelector('meta[name="pageType"]');return e&&e.hasAttribute("content")?this._transformPageType(e.getAttribute("content")):null}return null}},{key:"_getUserId",value:function(){return p.isWindowDefined&&window.HAnalyticsGlobalData&&window.HAnalyticsGlobalData.hasOwnProperty("user_id")?parseInt(window.HAnalyticsGlobalData.user_id):null}},{key:"_getWhitelabel",value:function(){return p.isWindowDefined&&window.HAnalyticsGlobalData&&window.HAnalyticsGlobalData.hasOwnProperty("whitelabel")?window.HAnalyticsGlobalData.whitelabel:null}},{key:"_eventObjTransform",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.customProps,r=void 0===t?{}:t,n=e.event,o=void 0===n?{}:n;return{customProps:r,eventName:o.eventName,pageType:o.pageType}}},{key:"_hasKeenKeys",value:function(){return p.isWindowDefined?!!(window&&window.jsk&&window.jsk.oht&&window.jsk.oak):null}},{key:"_normalizeObj",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.hasOwnProperty("event")?this._eventObjTransform(e):e.hasOwnProperty("eventName")?e:{}}},{key:"_recordEventAndRedirect",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.pageType,n=t.eventName,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;return new Promise((function(t,a){e.recordEvent({eventName:n,pageType:r},o).then((function(){return t((0,p.windowLocationRedirect)(i))})).catch((function(e){return(0,s.default)("KeenService _recordEventAndRedirect: ",e),a(e)}))}))}},{key:"_recordEventsAndRedirect",value:function(e,t){var r=this;return new Promise((function(n,o){return r.recordEvents(e).then((function(){return n((0,p.windowLocationRedirect)(t))})).catch((function(e){return(0,s.default)("KeenService _recordEventsAndRedirect: ",e),o(e)}))}))}},{key:"_transformPageType",value:function(e){return e}}],r&&m(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},54:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.postSingleEvent=function(e,t){return new Promise((function(r,n){return d(e,t).then((function(r){var n=r.err,o=r.res;return n?l(c(e,t,n)):Promise.resolve(o)})).then((function(e){return r(e)})).catch((function(e){return n(e)}))}))};var n=s(r(734)),o=s(r(232)),i=s(r(568)),a=r(572);function s(e){return e&&e.__esModule?e:{default:e}}var u=new o.default,c=function(e,t,r){var n=["distinct_id","ip","keen","referrer","user_id","whitelabel"],o=Object.keys(e).reduce((function(t,r){return n.includes(r)||(t[r]=e[r]),t}),{}),i=void 0!==r.status,s={status:i?r.status:0,reason:i?(0,a.getInObj)(["response","body","message"],r):"net::ERR_BLOCKED_BY_CLIENT"};return{browser_info:Object.assign({},u.getResult(),{referrer:e.referrer,error:s}),other_props:o,distinct_id:e.distinct_id,table:t,user_id:e.user_id,whitelabel:e.whitelabel}},l=function(e){return i.default.apiRequest(n.default.post("".concat(i.default.getApiPath(),"/private/debug")).send(e),!0,!1,!1)},d=function(e,t){return new Promise((function(r,o){return n.default.post("https://".concat(window.jsk.oht,"/v1/events/").concat(t)).query({key:window.jsk.oak}).set("Content-Type","application/json").send(e).end((function(e,t){return r({err:e,res:t})}))}))}},633:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=["communities#react","community#show","platforms#react","platforms#show","projects#index","topic_channels#react","users#preferences","users#dashboard","users#show","topic_channels#show","videos#index"]},474:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=r(611),i=(n=r(435))&&n.__esModule?n:{default:n},a=r(654);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function c(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:String(t)}t.default=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.LS_KEY=t||"hck.kn"}var t,r;return t=e,r=[{key:"getSessionData",value:function(){var e=this._fetchFromCache();if(e){var t=this._isSessionExpired(e.t),r=t?this._createSession(e.dId,(0,i.default)(e.sId)):this._createSession(e.dId,e.sId);return this._setInCache(r),{createNewSession:t,data:this._translator(r)}}var n=this._createSession();return this._setInCache(n),{createNewSession:!0,data:this._translator(n)}}},{key:"_createSession",value:function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{dId:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null)||(0,o.v4)(),sId:e||(0,o.v4)(),t:this._getDatePlusHours(1)}}},{key:"_getDatePlusHours",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return new Date(Date.now()+3600*e*1e3).valueOf()}},{key:"_fetchFromCache",value:function(){return(0,a.getItem)(this.LS_KEY)}},{key:"_isSessionExpired",value:function(e){return Date.now()>parseFloat(e)}},{key:"_setInCache",value:function(e){return(0,a.setItem)(this.LS_KEY,e)}},{key:"_translator",value:function(e){return{distinctId:e.dId,sessionId:e.sId}}}],r&&u(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},370:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUTMParams=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=(0,o.mapifyStringQuery)(t),l=u.reduce((function(e,t){return Object.assign({},e,a({},t,i[t]||""))}),{});return function(e){return u.reduce((function(t,r){return t||!!e[r]}),!1)}(l)?(e=l,(0,n.setItem)(s,e),l):r?((0,n.deleteItem)(s),c):(0,n.getItem)(s)||c};var n=r(654),o=r(287);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t,r){var n;return n=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==i(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s="hck.kn.utm",u=["utm_campaign","utm_content","utm_medium","utm_source","utm_term"],c=u.reduce((function(e,t){return Object.assign({},e,a({},t,""))}),{})},654:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deleteItem=function(e){return l().delete(e)},t.getItem=function(e){return l().get(e)},t.isLocalStorageSupported=d,t.setItem=function(e,t){return l().set(e,t)};var n,o=(n=r(242))&&n.__esModule?n:{default:n},i=r(345),a=r(272),s={delete:function(e){return window.localStorage.removeItem(e)},get:function(e){return function(e){try{return JSON.parse(e)}catch(t){return e}}(window.localStorage.getItem(e))},set:function(e,t){return window.localStorage.setItem(e,(r=t,(0,i.isObject)(r)||Array.isArray(r)?JSON.stringify(r):r));var r}},u={delete:function(e){return(0,a.deleteCookie)(e)},get:function(e){return(0,a.getCookie)(e)},set:function(e,t){return(0,a.setCookie)(e,t)}},c={delete:function(){return(0,o.default)("Local Storage and Cookies disabled!")},get:function(){return(0,o.default)("Local Storage and Cookies disabled!")},set:function(){return(0,o.default)("Local Storage and Cookies disabled!")}};function l(){return d()?s:(0,a.areCookiesSupported)()?u:c}function d(){var e=function(){try{return window.localStorage}catch(e){return null}}();if(!e)return!1;try{return e.setItem("testKey","1"),e.removeItem("testKey"),!0}catch(e){return(0,o.default)("Local Storage is not supported",e),!1}}},978:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=u(r(127)),o=u(r(734)),i=u(r(947)),a=r(654),s=r(595);function u(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function d(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:String(t)}var f="hck.tkn",p="".concat(f,".client"),h="".concat(f,".user");t.default=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.client_token=null,this.user_token=null,this.initialized=!1,this.isFetching=!1,this.batch=[]}var t,r;return t=e,r=[{key:"_initialize",value:function(){this.client_token=(0,a.getItem)(p)||null,this.user_token=(0,a.getItem)(h)||null,this.initialized=!0}},{key:"_fetchTokensFromStorageOrServer",value:function(){var e=this;return new Promise((function(t,r){return e.batch.every((function(e){return null!==e.tokens}))?t(e.batch[0].tokens):e._fetchNewTokens().then((function(t){return e._seedNewTokens(t.body)})).then((function(e){return t(e)})).catch((function(e){return r(e)}))}))}},{key:"_fetchNewTokens",value:function(){return o.default.get("".concat((0,i.default)(),"/users/api_token")).withCredentials()}},{key:"_seedNewTokens",value:function(e){var t=this;return new Promise((function(r){t.deleteTokens(),e.user_token&&(0,a.setItem)(h,e.user_token),(0,a.setItem)(p,e.client_token),r(e)}))}},{key:"_resolveFetchTokens",value:function(e,t){this.batch=this.batch.filter((function(r){return r[e](t),!1})),this.isFetching=!1}},{key:"_getTokenFromStorage",value:function(e){if(e)return{token:(0,a.getItem)(h),type:"user"};var t=(0,a.getItem)(h);return t&&t.length>0?{token:t,type:"user"}:{token:(0,a.getItem)(p),type:"client"}}},{key:"_isTokenValid",value:function(e){if(!e||!e.length)return!1;var t=(0,n.default)(e);return!(t.hasOwnProperty("user")&&t.user.hasOwnProperty("id")&&!this._doesJwtIdMatchBodyId(t.user.id))&&!!t.hasOwnProperty("exp")&&new Date(new Date(t.exp).valueOf()-1e4)>new Date}},{key:"_doesJwtIdMatchBodyId",value:function(e){var t=document.body.getAttribute("data-user-signed-in");return!(null==t||"string"==typeof t&&!t.length)&&parseInt(e)===parseInt(t)}},{key:"deleteTokens",value:function(){(0,a.deleteItem)(h),(0,a.deleteItem)(p)}},{key:"fetchTokens",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((function(n,o){var i,a,u,c=t._getTokenFromStorage(e),l=t._isTokenValid(c.token)&&!1===r?(i={},a="".concat(c.type,"_token"),u=c.token,(a=d(a))in i?Object.defineProperty(i,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):i[a]=u,i):null;if(t.batch.push({resolve:n,reject:o,tokens:l}),!t.isFetching)return t.isFetching=!0,(0,s.setTimeoutPromise)(50).then((function(){return t._fetchTokensFromStorageOrServer()})).then((function(e){return t._resolveFetchTokens("resolve",e)})).catch((function(e){return t._resolveFetchTokens("reject",e)}))}))}},{key:"getTokenType",value:function(e){return e?"user":"client"}}],r&&l(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},947:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(document&&document.getElementById){var e=document.getElementById("path-prefix");return e&&e.content?e.content:""}}},568:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(734),o=c(r(242)),i=r(993),a=r(486),s=r(572),u=c(r(978));function c(e){return e&&e.__esModule?e:{default:e}}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f(n.key),n)}}function f(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:String(t)}var p=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initialized=!1,this.cachedApiPath=null,this.callbackQueueForNonPromises=[],this.requestQueue=[],this.requestQueueWorking=!1,this.userIdFromDom=null,this.Tokens=new u.default,this.apiRequest=this.apiRequest.bind(this),this.clearApiTokens=this.clearApiTokens.bind(this),this.getApiPath=this.getApiPath.bind(this),this.getApiToken=this.getApiToken.bind(this),this.processApiRequestError=this.processApiRequestError.bind(this)}var t,r;return t=e,r=[{key:"_initialize",value:function(){this.initialized=!0,this.userIdFromDom=this._fetchUserIdFromDOMBody(),this.Tokens.initialized||this.Tokens._initialize()}},{key:"_cacheRequest",value:function(e,t,r,n,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;this.requestQueue.push({request:e,resolve:t,reject:r,resolver:n,tokenType:o,attempts:i})}},{key:"_createRequestResolver",value:function(e,t,r,o){var i=this;return function(a,s,u,c){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return function(e){var t=new n.Request(e.method,e.url);return t._query=e._query,t.header=e.header,t._header=e._header,t._data=e._data,t}(e).query({bearer_token:a}).then((function(e){return u(r?Object.assign({},e.body,{token:a}):e)})).catch((function(r){var n=r&&r.status&&r.status>=400&&r.status<=500;return!i.userIdFromDom&&l>=1&&n?u({}):i.userIdFromDom&&l>=1&&n||l>=2?c(r):void i._recoverFailedRequest(e,u,c,s,l,t,o)}))}}},{key:"_fetchTokens",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.Tokens.fetchTokens(e,t)}},{key:"_fetchUserIdFromDOMBody",value:function(){return document&&document.body.getAttribute("data-user-signed-in")||null}},{key:"_handleTokens",value:function(e,t,r){return e.hasOwnProperty("user_token")?this._resolveRequestQueue(e):t&&r?this._summonLoginPanel(t):t?this._handleUnresolvedUserRequests():this._resolveRequestsForTokenType(e.client_token,"client")}},{key:"_handleUnresolvedUserRequests",value:function(){this.userIdFromDom?this._resolveRequestsForTokenType(null,"user"):this._resolveUserPromisesForUnresolvedRequests()}},{key:"_recoverFailedRequest",value:function(e,t,r,n,o,i,a){var s=this;return this.Tokens.deleteTokens(),this._cacheRequest(e,t,r,n,this.Tokens.getTokenType(i),o+=1),this._fetchTokens(i).then((function(e){return s._handleTokens(e,i,a)})).catch((function(e){return r(e)}))}},{key:"_reFetchTokensAfterLogin",value:function(e,t){return this._initialize(),this.userIdFromDom&&parseInt(this.userIdFromDom,10)===parseInt(t,10)?this._fetchTokens(e,!0).catch((function(e){return(0,o.default)("_reFetchTokensAfterLogin Error",e)})):(0,i.reloadDocumentLocation)()}},{key:"_resolveCallbacksForGetApiToken",value:function(e){var t=this,r=e.hasOwnProperty("user_token"),n=r?e.user_token:e.client_token||null;this.callbackQueueForNonPromises=this.callbackQueueForNonPromises.filter((function(e){return e.userOnly&&r||!1===e.userOnly?(e.callback(n),!1):e.attempts<2?(t.getApiToken.call(t,e.callback,e.userOnly,e.attempts+=1),!1):(e.callback(null),!1)}))}},{key:"_resolveRequestQueue",value:function(e){var t=this;this.requestQueueWorking||(this.requestQueueWorking=!0,this.requestQueue=this.requestQueue.filter((function(r){return r.resolver.call(t,e.user_token,r.resolver,r.resolve,r.reject,r.attempts),!1})),this.requestQueueWorking=!1)}},{key:"_resolveRequestsForTokenType",value:function(e,t){var r=this;this.requestQueue=this.requestQueue.filter((function(n){return n.tokenType!==t||(n.resolver.call(r,e,n.resolver,n.resolve,n.reject,n.attempts),!1)}))}},{key:"_resolveUserPromisesForUnresolvedRequests",value:function(){this.requestQueue=this.requestQueue.filter((function(e){return"user"!==e.tokenType||(e.resolve({unresolved:!0}),!1)}))}},{key:"_summonLoginPanel",value:function(e){(0,a.summonLoginPanel)({detail:{callback:this._reFetchTokensAfterLogin.bind(this,e),redirect_to:null}}),this._resolveUserPromisesForUnresolvedRequests()}},{key:"apiRequest",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return new Promise((function(i,a){t.initialized||t._initialize();var s=t.Tokens.getTokenType(r),u=t._createRequestResolver(e,r,n,o);return t._cacheRequest(e,i,a,u,s,0),t._fetchTokens(r).then((function(e){return t._handleTokens(e,r,o)})).catch((function(e){return a(e)}))}))}},{key:"clearApiTokens",value:function(){this.Tokens.deleteTokens()}},{key:"getApiPath",value:function(){if("string"==typeof this.cachedApiPath)return this.cachedApiPath;if((0,i.doesWindowExistWithProperty)("location")){var e=i.windowLocationProtocol.get(),t=i.windowLocationPort.get(),r=document.getElementById("api-uri"),n=r&&r.content&&t&&t.length?"".concat(e,"//").concat(r.content,":").concat(t):r&&r.content?"".concat(e,"//").concat(r.content):(0,o.default)("OAuthService getApiPath expects a meta tag with an id of api-uri");return"string"==typeof n&&(this.cachedApiPath=n),n}}},{key:"getApiToken",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.callbackQueueForNonPromises.push({callback:e,userOnly:r,attempts:n}),this._fetchTokens(r).then((function(e){return t._resolveCallbacksForGetApiToken(e)})).catch((function(e){return t._resolveCallbacksForGetApiToken({})}))}},{key:"processApiRequestError",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,s.getInObj)(["response","body","errors"],e)||e}}],r&&d(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}());t.default=p},993:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.documentExists=u,t.documentHeight=function(){return document.documentElement.scrollHeight},t.doesBodyHaveUserId=l,t.doesWindowExistWithProperty=function(e){return!(!window||!window[e])},t.doesWindowLocationHaveParam=function(e){return!!c.hasValue()&&(0,n.mapifyStringQuery)(c.get().slice(1)).hasOwnProperty(e)},t.getDocumentFunction=function(e){if(u()&&"function"==typeof document[e])return document[e].bind(document)},t.getDocumentProperty=function(e){if(u()&&document[e])return document[e]},t.getNavigator=function(){return"undefined"==typeof navigator?null:navigator},t.getUserIdFromBody=function(){return l()?document.body.getAttribute("data-user-signed-in"):null},t.getWindow=function(){return o?window:{}},t.getWindowProperty=function(e){if(window&&window[e])return window[e]},t.isWindowDefined=t.isThemeDarkMode=void 0,t.reloadDocumentLocation=function(){document.location.reload()},t.setDocumentCookie=function(e){document.cookie=e,document.cookie="path=/"},t.windowDPR=function(){return window.devicePixelRatio||1},t.windowInnerHeight=function(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight},t.windowInnerWidth=function(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth},t.windowLocationProtocol=t.windowLocationPort=t.windowLocationPathname=t.windowLocationOrigin=t.windowLocationHref=t.windowLocationHostname=t.windowLocationHash=void 0,t.windowLocationRedirect=function(e){window.location=e},t.windowLocationReload=function(e){window.location.reload(e)},t.windowLocationSearch=void 0,t.windowPageXOffset=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft},t.windowPageYOffset=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop},t.windowScrollTo=function(e,t){window.scrollTo(e,t)},t.windowSetTimeout=function(e,t){return window.setTimeout(e,t)};var n=r(287),o=t.isWindowDefined="undefined"!=typeof window;function i(e){return window.location[e]}function a(e){return window.location.hasOwnProperty(e)&&window.location[e].length>0}function s(e){return{get:function(){return i(e)},hasValue:function(){return a(e)}}}function u(){return"undefined"!=typeof document}t.isThemeDarkMode=function(){return!document.querySelector("html[data-theme=light]")&&window.matchMedia("(prefers-color-scheme: dark)").matches};var c=t.windowLocationSearch=s("search");function l(){return!(!u()||!document.body)&&document.body.hasAttribute("data-user-signed-in")}t.windowLocationHash=s("hash"),t.windowLocationHref=Object.assign({},s("href"),{removeHash:function(){return a("hash")?i("href").split("#")[0]:i("href")}}),t.windowLocationHostname=s("hostname"),t.windowLocationOrigin=s("origin"),t.windowLocationPathname=s("pathname"),t.windowLocationPort=s("port"),t.windowLocationProtocol=s("protocol")},572:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findIndex=function(e,t){if(!Array.isArray(e)||"function"!=typeof t)return-1;for(var r=0;r<e.length;r++)if(t(e[r]))return r;return-1},t.getFirstString=function(e){return(0,n.isAString)(e)?e:Array.isArray(e)&&(0,n.isAString)(e[0])?e[0]:null},t.getIdOrUuid=function(e){return e.id||e.uuid||null},t.getInObj=function(e,t){return t?e.reduce((function(e,t){return e&&e.hasOwnProperty(t)?e[t]:null}),t):null},t.getInObjWithPrototypeAccess=function(e,t){return t?e.reduce((function(e,t){return e&&t in e?e[t]:null}),t):null},t.pluckIfMatch=function(e,t,r,n){return e.reduce((function(e,o){return o[r]===n?e.concat(o[t]):e}),[])};var n=r(345)},287:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flatten=function(e){return e.reduce((function(e,t){return e.concat(t)}),[])},t.flattenArrayOfObjectsToObject=function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(e){return!(0,n.isBlank)(e)};return e.reduce((function(e,n){return n.hasOwnProperty(t)&&n.hasOwnProperty(r)?("function"==typeof o&&o(n)&&(e[n[t]]=n[r]),e):e}),{})},t.flattenObjToArray=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(t).reduce((function(r,o){return(0,n.isObject)(t[o])?r.concat(e(t[o])):r.concat(t[o])}),[])},t.listToBoolMap=function(e){return e&&e.length?e.reduce((function(e,t){return Object.assign({},e,i({},t,!0))}),{}):{}},t.listToMapByProperty=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"id";return e&&e.length?e.reduce((function(e,r){return Object.assign({},e,i({},r[t],r))}),{}):{}},t.mapToStringQuery=function(e){return Object.keys(e).reduce((function(t,r){return(0,n.isBlank)(e[r])?t:(0,n.isObject)(e[r])?t.concat("".concat(r,"=").concat(encodeURIComponent(JSON.stringify(e[r])))):t.concat("".concat(r,"=").concat(encodeURIComponent(e[r])))}),[]).join("&")},t.mapifyStringQuery=function(e){return e&&e.length?("?"===e.substring(0,1)&&(e=e.substring(1)),e.split("&").reduce((function(e,t){if(!t||!t.length)return e;var r=t.split("=");return e[r[0]]=decodeURIComponent(r[1]),e}),{})):{}},t.transformObjValues=function(e,t){return Object.keys(e).reduce((function(r,n){return r[n]=t(e[n],n),r}),{})};var n=r(345);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t,r){var n;return n=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==o(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},486:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SUMMON_GLOBAL_DIALOG=void 0,t.closeGlobalPopover=function(){window.dispatchEvent(new CustomEvent("close:GlobalPopover",{detail:{},bubbles:!0,cancelable:!0}))},t.dispatchEvent=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};window.dispatchEvent(new CustomEvent(e,{detail:t}))},t.summonGlobalDialog=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.dispatchEvent(new CustomEvent(r,{detail:e,bubbles:!0,cancelable:!0}))},t.summonGlobalMessenger=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.dispatchEvent(new CustomEvent("react:messenger",{detail:e,bubbles:!0,cancelable:!0}))},t.summonGlobalPopover=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.dispatchEvent(new CustomEvent("open:GlobalPopover",{detail:e,bubbles:!0,cancelable:!0}))},t.summonLoginPanel=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).detail,t=void 0===e?{}:e;window.dispatchEvent(new CustomEvent("open:SigninDialog",{detail:t,bubbles:!0,cancelable:!0}))};var r=t.SUMMON_GLOBAL_DIALOG="open:GlobalDialog"},994:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}},743:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filterObject=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return!(0,n.isBlank)(e)},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return Object.keys(e).reduce((function(n,o){var i=e[o];return(r.includes(o)||"function"==typeof t&&t(i,o))&&(n[o]=i),n}),{})},t.pluckAndReduce=function(e,t){return e.reduce((function(e,r){return r&&r.hasOwnProperty(t)?e.concat(r[t]):e}),[])},t.removeFromObject=function(e,t){return Object.keys(e).reduce((function(r,n){return("string"==typeof t&&n!==t||Array.isArray(t)&&!t.includes(n))&&(r[n]=e[n]),r}),{})};var n=r(345)},632:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__resetFlag=function(){i=null},t.default=function(){if(null===i){var e=(0,n.getNavigator)();e&&e.userAgent?(t=e.userAgent,i=o.test(t)):i=!0}var t;return i};var n=r(993),o=/facebook|google|yandex|bing|ezooms|twikle|wotbox|fetch|wordpress|pingdom|slurp|sogou|crawl|bot|spider/i,i=null},476:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tryJSONParse=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{return JSON.parse(e)}catch(e){return t}},t.tryJSONStringify=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{return JSON.stringify(e)}catch(e){return t}}},595:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cancelablePromise=function(e){var t=!1;return{promise:new Promise((function(r,n){return e.then((function(e){e=e||{},r(t?Object.assign({},e,{promiseCanceled:!0}):e)})).catch((function(e){e=e||{},n(t?Object.assign({},e,{promiseCanceled:!0}):e)}))})),cancel:function(){t=!0}}},t.reflectPromise=function(e){return e.then((function(e){return{data:e,status:"resolved"}})).catch((function(e){return{err:e,status:"rejected"}}))},t.setTimeoutPromise=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return new Promise((function(o,i){return setTimeout((function(){if(!t)return o(n);"function"==typeof t&&t()?o(n):i(r)}),e)}))}},345:(e,t)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isObjectWithLength=t.isObject=t.isNumber=t.isBlank=t.isAString=t.isAFunction=t.isADate=void 0,t.isADate=function(e){return e instanceof Date&&!isNaN(e.valueOf())},t.isAFunction=function(e){return"function"==typeof e},t.isAString=function(e){return"string"==typeof e};var n=t.isBlank=function(e){return null==e||"string"==typeof e&&""===e.trim()||Array.isArray(e)&&0===e.length||"object"===r(e)&&0===Object.keys(e).length},o=(t.isNumber=function(e){return!n(e)&&"number"==typeof e},t.isObject=function(e){return null!==e&&!Array.isArray(e)&&"object"===r(e)});t.isObjectWithLength=function(e){return!!o(e)&&Object.keys(e).length>0}},435:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return s(e,(0,i.v4)())};var n,o=(n=r(242))&&n.__esModule?n:{default:n},i=r(611),a=3;function s(e,t){var r,n,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return e===t?(r=e,n=u,(0,o.default)(new Error("duplicate uuid: ".concat(r,", attempt #").concat(n))),u<a?s(e,(0,i.v4)(),u+1):function(e){return"".concat(e,"x")}(e)):t}},971:e=>{function t(e){if(e)return function(e){for(var r in t.prototype)e[r]=t.prototype[r];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<n.length;o++)if((r=n[o])===t||r.fn===t){n.splice(o,1);break}return 0===n.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){n=0;for(var o=(r=r.slice(0)).length;n<o;++n)r[n].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}},95:(e,t,r)=>{var n=r(868),o=r(160);void 0===o.HAnalytics&&(o.HAnalytics=n),e.exports=n},160:(e,t,r)=>{"use strict";e.exports=function(){if("object"==typeof globalThis)return globalThis;var e;try{e=this||new Function("return this")()}catch(e){if("object"==typeof window)return window;if("object"==typeof self)return self;if(void 0!==r.g)return r.g}return e}()},943:e=>{function t(e){this.message=e}t.prototype=new Error,t.prototype.name="InvalidCharacterError",e.exports="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var r=String(e).replace(/=+$/,"");if(r.length%4==1)throw new t("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,i=0,a=0,s="";o=r.charAt(a++);~o&&(n=i%4?64*n+o:o,i++%4)?s+=String.fromCharCode(255&n>>(-2*i&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return s}},863:(e,t,r)=>{var n=r(943);e.exports=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(n(e).replace(/(.)/g,(function(e,t){var r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(t)}catch(e){return n(t)}}},127:(e,t,r)=>{"use strict";var n=r(863);function o(e){this.message=e}o.prototype=new Error,o.prototype.name="InvalidTokenError",e.exports=function(e,t){if("string"!=typeof e)throw new o("Invalid token specified");var r=!0===(t=t||{}).header?0:1;try{return JSON.parse(n(e.split(".")[r]))}catch(e){throw new o("Invalid token specified: "+e.message)}},e.exports.InvalidTokenError=o},380:e=>{function t(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach((function(e){t.prototype[e]=function(){return this._defaults.push({fn:e,arguments}),this}})),t.prototype._setDefaults=function(e){this._defaults.forEach((function(t){e[t.fn].apply(e,t.arguments)}))},e.exports=t},734:function(e,t,r){var n;"undefined"!=typeof window?n=window:"undefined"!=typeof self?n=self:(console.warn("Using browser-only version of superagent in non-browser environment"),n=this);var o=r(971),i=r(948),a=r(125),s=r(450),u=r(380);function c(){}var l=t=e.exports=function(e,r){return"function"==typeof r?new t.Request("GET",e).end(r):1==arguments.length?new t.Request("GET",e):new t.Request(e,r)};t.Request=b,l.getXHR=function(){if(!(!n.XMLHttpRequest||n.location&&"file:"==n.location.protocol&&n.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw Error("Browser-only version of superagent could not find XHR")};var d="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function f(e){if(!a(e))return e;var t=[];for(var r in e)p(t,r,e[r]);return t.join("&")}function p(e,t,r){if(null!=r)if(Array.isArray(r))r.forEach((function(r){p(e,t,r)}));else if(a(r))for(var n in r)p(e,t+"["+n+"]",r[n]);else e.push(encodeURIComponent(t)+"="+encodeURIComponent(r));else null===r&&e.push(encodeURIComponent(t))}function h(e){for(var t,r,n={},o=e.split("&"),i=0,a=o.length;i<a;++i)-1==(r=(t=o[i]).indexOf("="))?n[decodeURIComponent(t)]="":n[decodeURIComponent(t.slice(0,r))]=decodeURIComponent(t.slice(r+1));return n}function y(e){return/[\/+]json($|[^-\w])/.test(e)}function m(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!=this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.header=this.headers=function(e){for(var t,r,n,o,i=e.split(/\r?\n/),a={},s=0,u=i.length;s<u;++s)-1!==(t=(r=i[s]).indexOf(":"))&&(n=r.slice(0,t).toLowerCase(),o=d(r.slice(t+1)),a[n]=o);return a}(this.xhr.getAllResponseHeaders()),this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&e._responseType?this.body=this.xhr.response:this.body="HEAD"!=this.req.method?this._parseBody(this.text?this.text:this.xhr.response):null}function b(e,t){var r=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",(function(){var e,t=null,n=null;try{n=new m(r)}catch(e){return(t=new Error("Parser is unable to parse the response")).parse=!0,t.original=e,r.xhr?(t.rawResponse=void 0===r.xhr.responseType?r.xhr.responseText:r.xhr.response,t.status=r.xhr.status?r.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),r.callback(t)}r.emit("response",n);try{r._isResponseOK(n)||(e=new Error(n.statusText||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=n,e.status=n.status,r.callback(e,n)):r.callback(null,n)}))}function v(e,t,r){var n=l("DELETE",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n}l.serializeObject=f,l.parseString=h,l.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},l.serialize={"application/x-www-form-urlencoded":f,"application/json":JSON.stringify},l.parse={"application/x-www-form-urlencoded":h,"application/json":JSON.parse},s(m.prototype),m.prototype._parseBody=function(e){var t=l.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&y(this.type)&&(t=l.parse["application/json"]),t&&e&&(e.length||e instanceof Object)?t(e):null)},m.prototype.toError=function(){var e=this.req,t=e.method,r=e.url,n="cannot "+t+" "+r+" ("+this.status+")",o=new Error(n);return o.status=this.status,o.method=t,o.url=r,o},l.Response=m,o(b.prototype),i(b.prototype),b.prototype.type=function(e){return this.set("Content-Type",l.types[e]||e),this},b.prototype.accept=function(e){return this.set("Accept",l.types[e]||e),this},b.prototype.auth=function(e,t,r){return 1===arguments.length&&(t=""),"object"==typeof t&&null!==t&&(r=t,t=""),r||(r={type:"function"==typeof btoa?"basic":"auto"}),this._auth(e,t,r,(function(e){if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")}))},b.prototype.query=function(e){return"string"!=typeof e&&(e=f(e)),e&&this._query.push(e),this},b.prototype.attach=function(e,t,r){if(t){if(this._data)throw Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,r||t.name)}return this},b.prototype._getFormData=function(){return this._formData||(this._formData=new n.FormData),this._formData},b.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var r=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),r(e,t)},b.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},b.prototype.buffer=b.prototype.ca=b.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},b.prototype.pipe=b.prototype.write=function(){throw Error("Streaming is not supported in browser version of superagent")},b.prototype._isHost=function(e){return e&&"object"==typeof e&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},b.prototype.end=function(e){return this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||c,this._finalizeQueryString(),this._end()},b.prototype._end=function(){var e=this,t=this.xhr=l.getXHR(),r=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var r=t.readyState;if(r>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4==r){var n;try{n=t.status}catch(e){n=0}if(!n){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var n=function(t,r){r.total>0&&(r.percent=r.loaded/r.total*100),r.direction=t,e.emit("progress",r)};if(this.hasListeners("progress"))try{t.onprogress=n.bind(null,"download"),t.upload&&(t.upload.onprogress=n.bind(null,"upload"))}catch(e){}try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof r&&!this._isHost(r)){var o=this._header["content-type"],i=this._serializer||l.serialize[o?o.split(";")[0]:""];!i&&y(o)&&(i=l.serialize["application/json"]),i&&(r=i(r))}for(var a in this.header)null!=this.header[a]&&this.header.hasOwnProperty(a)&&t.setRequestHeader(a,this.header[a]);return this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0!==r?r:null),this},l.agent=function(){return new u},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(e){u.prototype[e.toLowerCase()]=function(t,r){var n=new l.Request(e,t);return this._setDefaults(n),r&&n.end(r),n}})),u.prototype.del=u.prototype.delete,l.get=function(e,t,r){var n=l("GET",e);return"function"==typeof t&&(r=t,t=null),t&&n.query(t),r&&n.end(r),n},l.head=function(e,t,r){var n=l("HEAD",e);return"function"==typeof t&&(r=t,t=null),t&&n.query(t),r&&n.end(r),n},l.options=function(e,t,r){var n=l("OPTIONS",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n},l.del=v,l.delete=v,l.patch=function(e,t,r){var n=l("PATCH",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n},l.post=function(e,t,r){var n=l("POST",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n},l.put=function(e,t,r){var n=l("PUT",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n}},125:e=>{"use strict";e.exports=function(e){return null!==e&&"object"==typeof e}},948:(e,t,r)=>{"use strict";var n=r(125);function o(e){if(e)return function(e){for(var t in o.prototype)e[t]=o.prototype[t];return e}(e)}e.exports=o,o.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,this},o.prototype.parse=function(e){return this._parser=e,this},o.prototype.responseType=function(e){return this._responseType=e,this},o.prototype.serialize=function(e){return this._serializer=e,this},o.prototype.timeout=function(e){if(!e||"object"!=typeof e)return this._timeout=e,this._responseTimeout=0,this;for(var t in e)switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;default:console.warn("Unknown timeout option",t)}return this},o.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var i=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];o.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var r=this._retryCallback(e,t);if(!0===r)return!0;if(!1===r)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!=t.status)return!0;if(e){if(e.code&&~i.indexOf(e.code))return!0;if(e.timeout&&"ECONNABORTED"==e.code)return!0;if(e.crossDomain)return!0}return!1},o.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},o.prototype.then=function(e,t){if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(e,t){r.end((function(r,n){r?t(r):e(n)}))}))}return this._fullfilledPromise.then(e,t)},o.prototype.catch=function(e){return this.then(void 0,e)},o.prototype.use=function(e){return e(this),this},o.prototype.ok=function(e){if("function"!=typeof e)throw Error("Callback required");return this._okCallback=e,this},o.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},o.prototype.get=function(e){return this._header[e.toLowerCase()]},o.prototype.getHeader=o.prototype.get,o.prototype.set=function(e,t){if(n(e)){for(var r in e)this.set(r,e[r]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},o.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},o.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),n(e)){for(var r in e)this.field(r,e[r]);return this}if(Array.isArray(t)){for(var o in t)this.field(e,t[o]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=""+t),this._getFormData().append(e,t),this},o.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},o.prototype._auth=function(e,t,r,n){switch(r.type){case"basic":this.set("Authorization","Basic "+n(e+":"+t));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer "+e)}return this},o.prototype.withCredentials=function(e){return null==e&&(e=!0),this._withCredentials=e,this},o.prototype.redirects=function(e){return this._maxRedirects=e,this},o.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw TypeError("Invalid argument");return this._maxResponseSize=e,this},o.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},o.prototype.send=function(e){var t=n(e),r=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(t&&n(this._data))for(var o in e)this._data[o]=e[o];else"string"==typeof e?(r||this.type("form"),r=this._header["content-type"],this._data="application/x-www-form-urlencoded"==r?this._data?this._data+"&"+e:e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||r||this.type("json"),this},o.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},o.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var r=this.url.substring(t+1).split("&");"function"==typeof this._sort?r.sort(this._sort):r.sort(),this.url=this.url.substring(0,t)+"?"+r.join("&")}}},o.prototype._appendQueryString=function(){console.trace("Unsupported")},o.prototype._timeoutError=function(e,t,r){if(!this._aborted){var n=new Error(e+t+"ms exceeded");n.timeout=t,n.code="ECONNABORTED",n.errno=r,this.timedout=!0,this.abort(),this.callback(n)}},o.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},450:(e,t,r)=>{"use strict";var n=r(48);function o(e){if(e)return function(e){for(var t in o.prototype)e[t]=o.prototype[t];return e}(e)}e.exports=o,o.prototype.get=function(e){return this.header[e.toLowerCase()]},o.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=n.type(t);var r=n.params(t);for(var o in r)this[o]=r[o];this.links={};try{e.link&&(this.links=n.parseLinks(e.link))}catch(e){}},o.prototype._setStatusProperties=function(e){var t=e/100|0;this.status=this.statusCode=e,this.statusType=t,this.info=1==t,this.ok=2==t,this.redirect=3==t,this.clientError=4==t,this.serverError=5==t,this.error=(4==t||5==t)&&this.toError(),this.created=201==e,this.accepted=202==e,this.noContent=204==e,this.badRequest=400==e,this.unauthorized=401==e,this.notAcceptable=406==e,this.forbidden=403==e,this.notFound=404==e,this.unprocessableEntity=422==e}},48:(e,t)=>{"use strict";t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){return e.split(/ *; */).reduce((function(e,t){var r=t.split(/ *= */),n=r.shift(),o=r.shift();return n&&o&&(e[n]=o),e}),{})},t.parseLinks=function(e){return e.split(/ *, */).reduce((function(e,t){var r=t.split(/ *; */),n=r[0].slice(1,-1);return e[r[1].split(/ *= */)[1].slice(1,-1)]=n,e}),{})},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},232:function(e,t,r){var n;!function(o,i){"use strict";var a="function",s="undefined",u="object",c="string",l="major",d="model",f="name",p="type",h="vendor",y="version",m="architecture",b="console",v="mobile",w="tablet",g="smarttv",_="wearable",k="embedded",T="Amazon",O="Apple",P="ASUS",S="BlackBerry",j="Browser",E="Chrome",x="Firefox",I="Google",A="Huawei",C="LG",R="Microsoft",D="Motorola",N="Opera",q="Samsung",M="Sharp",L="Sony",U="Xiaomi",H="Zebra",F="Facebook",z="Chromium OS",B="Mac OS",W=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},G=function(e,t){return typeof e===c&&-1!==V(t).indexOf(V(e))},V=function(e){return e.toLowerCase()},K=function(e,t){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,500)},J=function(e,t){for(var r,n,o,s,c,l,d=0;d<t.length&&!c;){var f=t[d],p=t[d+1];for(r=n=0;r<f.length&&!c&&f[r];)if(c=f[r++].exec(e))for(o=0;o<p.length;o++)l=c[++n],typeof(s=p[o])===u&&s.length>0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):i:this[s[0]]=l?s[1].call(this,l,s[2]):i:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):i):this[s]=l||i;d+=2}},Q=function(e,t){for(var r in t)if(typeof t[r]===u&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(G(t[r][n],e))return"?"===r?i:r}else if(G(t[r],e))return"?"===r?i:r;return e},X={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},$={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[y,[f,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[y,[f,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,y],[/opios[\/ ]+([\w\.]+)/i],[y,[f,N+" Mini"]],[/\bopr\/([\w\.]+)/i],[y,[f,N]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[y,[f,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[f,y],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[y,[f,"UC"+j]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[y,[f,"WeChat"]],[/konqueror\/([\w\.]+)/i],[y,[f,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[y,[f,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[y,[f,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[y,[f,"Smart Lenovo "+j]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure "+j],y],[/\bfocus\/([\w\.]+)/i],[y,[f,x+" Focus"]],[/\bopt\/([\w\.]+)/i],[y,[f,N+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[y,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[y,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[y,[f,N+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[y,[f,"MIUI "+j]],[/fxios\/([-\w\.]+)/i],[y,[f,x]],[/\bqihu|(qi?ho?o?|360)browser/i],[[f,"360 "+j]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1 "+j],y],[/samsungbrowser\/([\w\.]+)/i],[y,[f,q+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[f,/_/g," "],y],[/metasr[\/ ]?([\d\.]+)/i],[y,[f,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[f,"Sogou Mobile"],y],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[f,y],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,F],y],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[f,y],[/\bgsa\/([\w\.]+) .*safari\//i],[y,[f,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[y,[f,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[y,[f,E+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,E+" WebView"],y],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[y,[f,"Android "+j]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,y],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[y,[f,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[y,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[y,Q,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[f,y],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,"Netscape"],y],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[y,[f,x+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[f,y],[/(cobalt)\/([\w\.]+)/i],[f,[y,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,V]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,"",V]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,V]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[h,q],[p,w]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[d,[h,q],[p,v]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[h,O],[p,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[h,O],[p,w]],[/(macintosh);/i],[d,[h,O]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[h,M],[p,v]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[h,A],[p,w]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[h,A],[p,v]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[d,/_/g," "],[h,U],[p,v]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g," "],[h,U],[p,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[h,"OPPO"],[p,v]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[h,"Vivo"],[p,v]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[d,[h,"Realme"],[p,v]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[h,D],[p,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[h,D],[p,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[h,C],[p,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[h,C],[p,v]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[h,"Lenovo"],[p,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g," "],[h,"Nokia"],[p,v]],[/(pixel c)\b/i],[d,[h,I],[p,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[h,I],[p,v]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[h,L],[p,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[h,L],[p,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[h,"OnePlus"],[p,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[h,T],[p,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[h,T],[p,v]],[/(playbook);[-\w\),; ]+(rim)/i],[d,h,[p,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[h,S],[p,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[h,P],[p,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[h,P],[p,v]],[/(nexus 9)/i],[d,[h,"HTC"],[p,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[d,/_/g," "],[p,v]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[h,"Acer"],[p,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[h,"Meizu"],[p,v]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[d,[h,"Ulefone"],[p,v]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,d,[p,v]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,d,[p,w]],[/(surface duo)/i],[d,[h,R],[p,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[h,"Fairphone"],[p,v]],[/(u304aa)/i],[d,[h,"AT&T"],[p,v]],[/\bsie-(\w*)/i],[d,[h,"Siemens"],[p,v]],[/\b(rct\w+) b/i],[d,[h,"RCA"],[p,w]],[/\b(venue[\d ]{2,7}) b/i],[d,[h,"Dell"],[p,w]],[/\b(q(?:mv|ta)\w+) b/i],[d,[h,"Verizon"],[p,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[h,"Barnes & Noble"],[p,w]],[/\b(tm\d{3}\w+) b/i],[d,[h,"NuVision"],[p,w]],[/\b(k88) b/i],[d,[h,"ZTE"],[p,w]],[/\b(nx\d{3}j) b/i],[d,[h,"ZTE"],[p,v]],[/\b(gen\d{3}) b.+49h/i],[d,[h,"Swiss"],[p,v]],[/\b(zur\d{3}) b/i],[d,[h,"Swiss"],[p,w]],[/\b((zeki)?tb.*\b) b/i],[d,[h,"Zeki"],[p,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],d,[p,w]],[/\b(ns-?\w{0,9}) b/i],[d,[h,"Insignia"],[p,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[h,"NextBook"],[p,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],d,[p,v]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],d,[p,v]],[/\b(ph-1) /i],[d,[h,"Essential"],[p,v]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[h,"Envizen"],[p,w]],[/\b(trio[-\w\. ]+) b/i],[d,[h,"MachSpeed"],[p,w]],[/\btu_(1491) b/i],[d,[h,"Rotor"],[p,w]],[/(shield[\w ]+) b/i],[d,[h,"Nvidia"],[p,w]],[/(sprint) (\w+)/i],[h,d,[p,v]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[h,R],[p,v]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[h,H],[p,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[h,H],[p,v]],[/smart-tv.+(samsung)/i],[h,[p,g]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[h,q],[p,g]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,C],[p,g]],[/(apple) ?tv/i],[h,[d,O+" TV"],[p,g]],[/crkey/i],[[d,E+"cast"],[h,I],[p,g]],[/droid.+aft(\w+)( bui|\))/i],[d,[h,T],[p,g]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[h,M],[p,g]],[/(bravia[\w ]+)( bui|\))/i],[d,[h,L],[p,g]],[/(mitv-\w{5}) bui/i],[d,[h,U],[p,g]],[/Hbbtv.*(technisat) (.*);/i],[h,d,[p,g]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,K],[d,K],[p,g]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,g]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,d,[p,b]],[/droid.+; (shield) bui/i],[d,[h,"Nvidia"],[p,b]],[/(playstation [345portablevi]+)/i],[d,[h,L],[p,b]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[h,R],[p,b]],[/((pebble))app/i],[h,d,[p,_]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[h,O],[p,_]],[/droid.+; (glass) \d/i],[d,[h,I],[p,_]],[/droid.+; (wt63?0{2,3})\)/i],[d,[h,H],[p,_]],[/(quest( 2| pro)?)/i],[d,[h,F],[p,_]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[p,k]],[/(aeobc)\b/i],[d,[h,T],[p,k]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[d,[p,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[p,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,v]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[y,[f,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[y,[f,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[f,y],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[y,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,y],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[f,[y,Q,X]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[y,Q,X],[f,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[y,/_/g,"."],[f,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,B],[y,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[y,f],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[f,y],[/\(bb(10);/i],[y,[f,S]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[y,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[y,[f,x+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[y,[f,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[y,[f,"watchOS"]],[/crkey\/([\d\.]+)/i],[y,[f,E+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[f,z],y],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,y],[/(sunos) ?([\w\.\d]*)/i],[[f,"Solaris"],y],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[f,y]]},Y=function(e,t){if(typeof e===u&&(t=e,e=i),!(this instanceof Y))return new Y(e,t).getResult();var r=typeof o!==s&&o.navigator?o.navigator:i,n=e||(r&&r.userAgent?r.userAgent:""),b=r&&r.userAgentData?r.userAgentData:i,g=t?function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r}($,t):$,_=r&&r.userAgent==n;return this.getBrowser=function(){var e,t={};return t[f]=i,t[y]=i,J.call(t,n,g.browser),t[l]=typeof(e=t[y])===c?e.replace(/[^\d\.]/g,"").split(".")[0]:i,_&&r&&r.brave&&typeof r.brave.isBrave==a&&(t[f]="Brave"),t},this.getCPU=function(){var e={};return e[m]=i,J.call(e,n,g.cpu),e},this.getDevice=function(){var e={};return e[h]=i,e[d]=i,e[p]=i,J.call(e,n,g.device),_&&!e[p]&&b&&b.mobile&&(e[p]=v),_&&"Macintosh"==e[d]&&r&&typeof r.standalone!==s&&r.maxTouchPoints&&r.maxTouchPoints>2&&(e[d]="iPad",e[p]=w),e},this.getEngine=function(){var e={};return e[f]=i,e[y]=i,J.call(e,n,g.engine),e},this.getOS=function(){var e={};return e[f]=i,e[y]=i,J.call(e,n,g.os),_&&!e[f]&&b&&"Unknown"!=b.platform&&(e[f]=b.platform.replace(/chrome os/i,z).replace(/macos/i,B)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=typeof e===c&&e.length>500?K(e,500):e,this},this.setUA(n),this};Y.VERSION="0.7.37",Y.BROWSER=W([f,y,l]),Y.CPU=W([m]),Y.DEVICE=W([d,h,p,b,v,g,w,_,k]),Y.ENGINE=Y.OS=W([f,y]),typeof t!==s?(e.exports&&(t=e.exports=Y),t.UAParser=Y):r.amdO?(n=function(){return Y}.call(t,r,t,e))===i||(e.exports=n):typeof o!==s&&(o.UAParser=Y);var Z=typeof o!==s&&(o.jQuery||o.Zepto);if(Z&&!Z.ua){var ee=new Y;Z.ua=ee.getResult(),Z.ua.get=function(){return ee.getUA()},Z.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var r in t)Z.ua[r]=t[r]}}}("object"==typeof window?window:this)},611:(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{NIL:()=>I,parse:()=>m,stringify:()=>l,v1:()=>y,v3:()=>P,v4:()=>S,v5:()=>x,validate:()=>s,version:()=>A});var o=new Uint8Array(16);function i(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(o)}const a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,s=function(e){return"string"==typeof e&&a.test(e)};for(var u=[],c=0;c<256;++c)u.push((c+256).toString(16).substr(1));const l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase();if(!s(r))throw TypeError("Stringified UUID is invalid");return r};var d,f,p=0,h=0;const y=function(e,t,r){var n=t&&r||0,o=t||new Array(16),a=(e=e||{}).node||d,s=void 0!==e.clockseq?e.clockseq:f;if(null==a||null==s){var u=e.random||(e.rng||i)();null==a&&(a=d=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==s&&(s=f=16383&(u[6]<<8|u[7]))}var c=void 0!==e.msecs?e.msecs:Date.now(),y=void 0!==e.nsecs?e.nsecs:h+1,m=c-p+(y-h)/1e4;if(m<0&&void 0===e.clockseq&&(s=s+1&16383),(m<0||c>p)&&void 0===e.nsecs&&(y=0),y>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");p=c,h=y,f=s;var b=(1e4*(268435455&(c+=122192928e5))+y)%4294967296;o[n++]=b>>>24&255,o[n++]=b>>>16&255,o[n++]=b>>>8&255,o[n++]=255&b;var v=c/4294967296*1e4&268435455;o[n++]=v>>>8&255,o[n++]=255&v,o[n++]=v>>>24&15|16,o[n++]=v>>>16&255,o[n++]=s>>>8|128,o[n++]=255&s;for(var w=0;w<6;++w)o[n+w]=a[w];return t||l(o)},m=function(e){if(!s(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};function b(e,t,r){function n(e,n,o,i){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof n&&(n=m(n)),16!==n.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(n),a.set(e,n.length),(a=r(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,o){i=i||0;for(var s=0;s<16;++s)o[i+s]=a[s];return o}return l(a)}try{n.name=e}catch(e){}return n.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",n.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",n}function v(e){return 14+(e+64>>>9<<4)+1}function w(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function g(e,t,r,n,o,i){return w((a=w(w(t,e),w(n,i)))<<(s=o)|a>>>32-s,r);var a,s}function _(e,t,r,n,o,i,a){return g(t&r|~t&n,e,t,o,i,a)}function k(e,t,r,n,o,i,a){return g(t&n|r&~n,e,t,o,i,a)}function T(e,t,r,n,o,i,a){return g(t^r^n,e,t,o,i,a)}function O(e,t,r,n,o,i,a){return g(r^(t|~n),e,t,o,i,a)}const P=b("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){for(var t=[],r=32*e.length,n="0123456789abcdef",o=0;o<r;o+=8){var i=e[o>>5]>>>o%32&255,a=parseInt(n.charAt(i>>>4&15)+n.charAt(15&i),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[v(t)-1]=t;for(var r=1732584193,n=-271733879,o=-1732584194,i=271733878,a=0;a<e.length;a+=16){var s=r,u=n,c=o,l=i;r=_(r,n,o,i,e[a],7,-680876936),i=_(i,r,n,o,e[a+1],12,-389564586),o=_(o,i,r,n,e[a+2],17,606105819),n=_(n,o,i,r,e[a+3],22,-1044525330),r=_(r,n,o,i,e[a+4],7,-176418897),i=_(i,r,n,o,e[a+5],12,1200080426),o=_(o,i,r,n,e[a+6],17,-1473231341),n=_(n,o,i,r,e[a+7],22,-45705983),r=_(r,n,o,i,e[a+8],7,1770035416),i=_(i,r,n,o,e[a+9],12,-1958414417),o=_(o,i,r,n,e[a+10],17,-42063),n=_(n,o,i,r,e[a+11],22,-1990404162),r=_(r,n,o,i,e[a+12],7,1804603682),i=_(i,r,n,o,e[a+13],12,-40341101),o=_(o,i,r,n,e[a+14],17,-1502002290),r=k(r,n=_(n,o,i,r,e[a+15],22,1236535329),o,i,e[a+1],5,-165796510),i=k(i,r,n,o,e[a+6],9,-1069501632),o=k(o,i,r,n,e[a+11],14,643717713),n=k(n,o,i,r,e[a],20,-373897302),r=k(r,n,o,i,e[a+5],5,-701558691),i=k(i,r,n,o,e[a+10],9,38016083),o=k(o,i,r,n,e[a+15],14,-660478335),n=k(n,o,i,r,e[a+4],20,-405537848),r=k(r,n,o,i,e[a+9],5,568446438),i=k(i,r,n,o,e[a+14],9,-1019803690),o=k(o,i,r,n,e[a+3],14,-187363961),n=k(n,o,i,r,e[a+8],20,1163531501),r=k(r,n,o,i,e[a+13],5,-1444681467),i=k(i,r,n,o,e[a+2],9,-51403784),o=k(o,i,r,n,e[a+7],14,1735328473),r=T(r,n=k(n,o,i,r,e[a+12],20,-1926607734),o,i,e[a+5],4,-378558),i=T(i,r,n,o,e[a+8],11,-2022574463),o=T(o,i,r,n,e[a+11],16,1839030562),n=T(n,o,i,r,e[a+14],23,-35309556),r=T(r,n,o,i,e[a+1],4,-1530992060),i=T(i,r,n,o,e[a+4],11,1272893353),o=T(o,i,r,n,e[a+7],16,-155497632),n=T(n,o,i,r,e[a+10],23,-1094730640),r=T(r,n,o,i,e[a+13],4,681279174),i=T(i,r,n,o,e[a],11,-358537222),o=T(o,i,r,n,e[a+3],16,-722521979),n=T(n,o,i,r,e[a+6],23,76029189),r=T(r,n,o,i,e[a+9],4,-640364487),i=T(i,r,n,o,e[a+12],11,-421815835),o=T(o,i,r,n,e[a+15],16,530742520),r=O(r,n=T(n,o,i,r,e[a+2],23,-995338651),o,i,e[a],6,-198630844),i=O(i,r,n,o,e[a+7],10,1126891415),o=O(o,i,r,n,e[a+14],15,-1416354905),n=O(n,o,i,r,e[a+5],21,-57434055),r=O(r,n,o,i,e[a+12],6,1700485571),i=O(i,r,n,o,e[a+3],10,-1894986606),o=O(o,i,r,n,e[a+10],15,-1051523),n=O(n,o,i,r,e[a+1],21,-2054922799),r=O(r,n,o,i,e[a+8],6,1873313359),i=O(i,r,n,o,e[a+15],10,-30611744),o=O(o,i,r,n,e[a+6],15,-1560198380),n=O(n,o,i,r,e[a+13],21,1309151649),r=O(r,n,o,i,e[a+4],6,-145523070),i=O(i,r,n,o,e[a+11],10,-1120210379),o=O(o,i,r,n,e[a+2],15,718787259),n=O(n,o,i,r,e[a+9],21,-343485551),r=w(r,s),n=w(n,u),o=w(o,c),i=w(i,l)}return[r,n,o,i]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(v(t)),n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))})),S=function(e,t,r){var n=(e=e||{}).random||(e.rng||i)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return l(n)};function j(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function E(e,t){return e<<t|e>>>32-t}const x=b("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var o=0;o<n.length;++o)e.push(n.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,a=Math.ceil(i/16),s=new Array(a),u=0;u<a;++u){for(var c=new Uint32Array(16),l=0;l<16;++l)c[l]=e[64*u+4*l]<<24|e[64*u+4*l+1]<<16|e[64*u+4*l+2]<<8|e[64*u+4*l+3];s[u]=c}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<a;++d){for(var f=new Uint32Array(80),p=0;p<16;++p)f[p]=s[d][p];for(var h=16;h<80;++h)f[h]=E(f[h-3]^f[h-8]^f[h-14]^f[h-16],1);for(var y=r[0],m=r[1],b=r[2],v=r[3],w=r[4],g=0;g<80;++g){var _=Math.floor(g/20),k=E(y,5)+j(_,m,b,v)+w+t[_]+f[g]>>>0;w=v,v=b,b=E(m,30)>>>0,m=y,y=k}r[0]=r[0]+y>>>0,r[1]=r[1]+m>>>0,r[2]=r[2]+b>>>0,r[3]=r[3]+v>>>0,r[4]=r[4]+w>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]})),I="00000000-0000-0000-0000-000000000000",A=function(e){if(!s(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.amdO={},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(95)})();