PageSourceSearch

https://app.pressdeck.io/_next/static/chunks/6218-1b85896e7f77a493.js?dpl=dpl_8Fq7oJN2sSLwbNN2pcou7Y4Hqeh6

js pressdeck.io collected 2026-10-02 15:20:18 UTC 232,476 bytes, 17 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6218],{2037:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{apiKey:t,...r}=e,n={...r,key:t},{html:s}=(0,o.GoogleMapsEmbed)(n);return(0,i.jsx)(a.default,{height:n.height||null,width:n.width||null,html:s,dataNtpc:"GoogleMapsEmbed"})};let i=r(95155),o=r(13067),a=n(r(57445))},4853:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{cancelIdleCallback:function(){return n},requestIdleCallback:function(){return r}});let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5969:(e,t,r)=>{"use strict";var n;r.d(t,{$b:()=>n,Vy:()=>l});let i=[];!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(n||(n={}));let o={debug:n.DEBUG,verbose:n.VERBOSE,info:n.INFO,warn:n.WARN,error:n.ERROR,silent:n.SILENT},a=n.INFO,s={[n.DEBUG]:"log",[n.VERBOSE]:"log",[n.INFO]:"info",[n.WARN]:"warn",[n.ERROR]:"error"},c=(e,t,...r)=>{if(t<e.logLevel)return;let n=new Date().toISOString(),i=s[t];if(i)console[i](`[${n}]  ${e.name}:`,...r);else throw Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class l{constructor(e){this.name=e,this._logLevel=a,this._logHandler=c,this._userLogHandler=null,i.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in n))throw TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?o[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,n.DEBUG,...e),this._logHandler(this,n.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,n.VERBOSE,...e),this._logHandler(this,n.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,n.INFO,...e),this._logHandler(this,n.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,n.WARN,...e),this._logHandler(this,n.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,n.ERROR,...e),this._logHandler(this,n.ERROR,...e)}}},13067:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YouTubeEmbed=t.GoogleMapsEmbed=t.GoogleAnalytics=void 0;var n=r(68197);Object.defineProperty(t,"GoogleAnalytics",{enumerable:!0,get:function(){return n.GoogleAnalytics}});var i=r(55546);Object.defineProperty(t,"GoogleMapsEmbed",{enumerable:!0,get:function(){return i.GoogleMapsEmbed}});var o=r(93438);Object.defineProperty(t,"YouTubeEmbed",{enumerable:!0,get:function(){return o.YouTubeEmbed}})},15781:(e,t)=>{"use strict";function r(e,t,n=!1){return t?Object.keys(e).filter(e=>n?!t.includes(e):t.includes(e)).reduce((t,r)=>(t[r]=e[r],t),{}):{}}function n(e,t,r,n){let i=n&&Object.keys(n).length>0?new URL(Object.values(n)[0],e):new URL(e);return t&&r&&t.forEach(e=>{r[e]&&i.searchParams.set(e,r[e])}),i.toString()}function i(e,t,r,i,o){var a;if(!t)return`<${e}></${e}>`;let s=(null==(a=t.src)?void 0:a.url)?Object.assign(Object.assign({},t),{src:n(t.src.url,t.src.params,i,o)}):t,c=Object.keys(Object.assign(Object.assign({},s),r)).reduce((e,t)=>{let n=null==r?void 0:r[t],i=s[t],o=null!=n?n:i,a=!0===o?t:`${t}="${o}"`;return o?e+` ${a}`:e},"");return`<${e}${c}></${e}>`}
1Object.defineProperty(t,"__esModule",{value:!0}),t.formatData=t.createHtml=t.formatUrl=void 0,t.formatUrl=n,t.createHtml=i,t.formatData=function(e,t){var o,a,s,c,l;let u=r(t,null==(o=e.scripts)?void 0:o.reduce((e,t)=>[...e,...Array.isArray(t.params)?t.params:[]],[])),d=r(t,null==(s=null==(a=e.html)?void 0:a.attributes.src)?void 0:s.params),h=r(t,[null==(l=null==(c=e.html)?void 0:c.attributes.src)?void 0:l.slugParam]),f=r(t,[...Object.keys(u),...Object.keys(d),...Object.keys(h)],!0);return Object.assign(Object.assign({},e),{html:e.html?i(e.html.element,e.html.attributes,f,d,h):null,scripts:e.scripts?e.scripts.map(e=>Object.assign(Object.assign({},e),{url:n(e.url,e.params,u)})):null})}},19708:(e,t,r)=>{"use strict";r.d(t,{H9:()=>n.H9,aQ:()=>n.aQ,aU:()=>n.aU});var n=r(6596)},22396:(e,t,r)=>{"use strict";r.d(t,{h1:()=>s,uA:()=>i});var n=r(57176);class i{constructor(e,t,r){this.name=e,this.instanceFactory=t,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}let o="[DEFAULT]";class a{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){let t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){let e=new n.cY;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{let r=this.getOrInitializeService({instanceIdentifier:t});r&&e.resolve(r)}catch(e){}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;let r=this.normalizeInstanceIdentifier(null==e?void 0:e.identifier),n=null!=(t=null==e?void 0:e.optional)&&t;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(e){if(n)return null;throw e}if(n)return null;throw Error(`Service ${this.name} is not available`)}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if("EAGER"===e.instantiationMode)try{this.getOrInitializeService({instanceIdentifier:o})}catch(e){}for(let[e,t]of this.instancesDeferred.entries()){let r=this.normalizeInstanceIdentifier(e);try{let e=this.getOrInitializeService({instanceIdentifier:r});t.resolve(e)}catch(e){}}}}clearInstance(e=o){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){let e=Array.from(this.instances.values());await Promise.all([...e.filter(e=>"INTERNAL"in e).map(e=>e.INTERNAL.delete()),...e.filter(e=>"_delete"in e).map(e=>e._delete())])}isComponentSet(){return null!=this.component}isInitialized(e=o){return this.instances.has(e)}getOptions(e=o){return this.instancesOptions.get(e)||{}}initialize(e={}){let{options:t={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);let n=this.getOrInitializeService({instanceIdentifier:r,options:t});for(let[e,t]of this.instancesDeferred.entries())r===this.normalizeInstanceIdentifier(e)&&t.resolve(n);return n}onInit(e,t){var r;let n=this.normalizeInstanceIdentifier(t),i=null!=(r=this.onInitCallbacks.get(n))?r:new Set;i.add(e),this.onInitCallbacks.set(n,i);let o=this.instances.get(n);return o&&e(o,n),()=>{i.delete(e)}}invokeOnInitCallbacks(e,t){let r=this.onInitCallbacks.get(t);if(r)for(let n of r)try{n(e,t)}catch(e){}}getOrInitializeService({instanceIdentifier:e,options:t={}}){var r;let n=this.instances.get(e);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:(r=e)===o?void 0:r,options:t}),this.instances.set(e,n),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(n,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,n)}catch(e){}return n||null}normalizeInstanceIdentifier(e=o){return this.component?this.component.multipleInstances?e:o:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class s{constructor(e){this.name=e,this.providers=new Map}addComponent(e){let t=this.getProvider(e.name);if(t.isComponentSet())throw Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);let t=new a(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}},23817:e=>{"use strict";e.exports=JSON.parse('{"id":"google-analytics","description":"Install a Google Analytics tag on your website","website":"https://analytics.google.com/analytics/web/","scripts":[{"url":"https://www.googletagmanager.com/gtag/js","params":["id"],"strategy":"worker","location":"head","action":"append"},{"code":"window.dataLayer=window.dataLayer||[];window.gtag=function gtag(){window.dataLayer.push(arguments);};gtag(\'js\',new Date());gtag(\'config\',\'${args.id}\')","strategy":"worker","location":"head","action":"append"}]}')},24052:(e,t,r)=>{"use strict";r.d(t,{Ao:()=>l,Bx:()=>o,Jh:()=>c,O4:()=>a,ZS:()=>n,fF:()=>u,iO:()=>i,ro:()=>s});var n,i,o,a,s,c,l,u,d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},h={};(function(){var e,t,r,f="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,r){return e==Array.prototype||e==Object.prototype||(e[t]=r.value),e},p=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof d&&d];for(var t=0;t<e.length;++t){var r=e[t];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")}(this);!function(e,t){if(t)e:{var r=p;e=e.split(".");for(var n=0;n<e.length-1;n++){var i=e[n];if(!(i in r))break e;r=r[i]}(t=t(n=r[e=e[e.length-1]]))!=n&&null!=t&&f(r,e,{configurable:!0,writable:!0,value:t})}}("Array.prototype.values",function(e){return e||function(){var e,t,r,n,i;return e=this,t=function(e,t){return t},e instanceof String&&(e+=""),r=0,n=!1,(i={next:function(){if(!n&&r<e.length){var i=r++;return{value:t(i,e[i]),done:!1}}return n=!0,{done:!0,value:void 0}}})[Symbol.iterator]=function(){return i},i}});var g=g||{},y=this||self;function m(e){var t=typeof e;return"array"==(t="object"!=t?t:e?Array.isArray(e)?"array":t:"null")||"object"==t&&"number"==typeof e.length}function b(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}function v(e,t,r){return e.call.apply(e.bind,arguments)}function w(e,t,r){if(!e)throw Error();if(2<arguments.length){var n=Array.prototype.slice.call(arguments,2);return function(){var r=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(r,n),e.apply(t,r)}}return function(){return e.apply(t,arguments)}}function E(e,t,r){return(E=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?v:w).apply(null,arguments)}
1function _(e,t){var r=Array.prototype.slice.call(arguments,1);return function(){var t=r.slice();return t.push.apply(t,arguments),e.apply(this,t)}}function S(e,t){function r(){}r.prototype=t.prototype,e.aa=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.Qb=function(e,r,n){for(var i=Array(arguments.length-2),o=2;o<arguments.length;o++)i[o-2]=arguments[o];return t.prototype[r].apply(e,i)}}function A(e){let t=e.length;if(0<t){let r=Array(t);for(let n=0;n<t;n++)r[n]=e[n];return r}return[]}function k(e,t){for(let t=1;t<arguments.length;t++){let r=arguments[t];if(m(r)){let t=e.length||0,n=r.length||0;e.length=t+n;for(let i=0;i<n;i++)e[t+i]=r[i]}else e.push(r)}}class O{constructor(e,t){this.i=e,this.j=t,this.h=0,this.g=null}get(){let e;return 0<this.h?(this.h--,e=this.g,this.g=e.next,e.next=null):e=this.i(),e}}function C(e){return/^[\s\xa0]*$/.test(e)}function j(){var e=y.navigator;return e&&(e=e.userAgent)?e:""}function I(e){return I[" "](e),e}I[" "]=function(){};var P=-1!=j().indexOf("Gecko")&&(-1==j().toLowerCase().indexOf("webkit")||-1!=j().indexOf("Edge"))&&-1==j().indexOf("Trident")&&-1==j().indexOf("MSIE")&&-1==j().indexOf("Edge");function T(e,t,r){for(let n in e)t.call(r,e[n],n,e)}function x(e){let t={};for(let r in e)t[r]=e[r];return t}let R="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function D(e,t){let r,n;for(let t=1;t<arguments.length;t++){for(r in n=arguments[t])e[r]=n[r];for(let t=0;t<R.length;t++)r=R[t],Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}}class H{constructor(){this.h=this.g=null}add(e,t){let r=M.get();r.set(e,t),this.h?this.h.next=r:this.g=r,this.h=r}}var M=new O(()=>new N,e=>e.reset());class N{constructor(){this.next=this.g=this.h=null}set(e,t){this.h=e,this.g=t,this.next=null}reset(){this.next=this.g=this.h=null}}let L,K=!1,W=new H,U=()=>{let e=y.Promise.resolve(void 0);L=()=>{e.then(J)}};var J=()=>{let e;for(var t;e=null,W.g&&(e=W.g,W.g=W.g.next,W.g||(W.h=null),e.next=null),t=e;){try{t.h.call(t.g)}catch(e){!function(e){y.setTimeout(()=>{throw e},0)}(e)}M.j(t),100>M.h&&(M.h++,t.next=M.g,M.g=t)}K=!1};function B(){this.s=this.s,this.C=this.C}function F(e,t){this.type=e,this.g=this.target=t,this.defaultPrevented=!1}B.prototype.s=!1,B.prototype.ma=function(){this.s||(this.s=!0,this.N())},B.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},F.prototype.h=function(){this.defaultPrevented=!0};var G=function(){if(!y.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{let e=()=>{};y.addEventListener("test",e,t),y.removeEventListener("test",e,t)}catch(e){}return e}();function $(e,t){if(F.call(this,e?e.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,e){var r=this.type=e.type,n=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.g=t,t=e.relatedTarget){if(P){e:{try{I(t.nodeName);var i=!0;break e}catch(e){}i=!1}i||(t=null)}}else"mouseover"==r?t=e.fromElement:"mouseout"==r&&(t=e.toElement);this.relatedTarget=t,n?(this.clientX=void 0!==n.clientX?n.clientX:n.pageX,this.clientY=void 0!==n.clientY?n.clientY:n.pageY,this.screenX=n.screenX||0,this.screenY=n.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType="string"==typeof e.pointerType?e.pointerType:V[e.pointerType]||"",this.state=e.state,this.i=e,e.defaultPrevented&&$.aa.h.call(this)}}S($,F);var V={2:"touch",3:"pen",4:"mouse"};$.prototype.h=function(){$.aa.h.call(this);var e=this.i;e.preventDefault?e.preventDefault():e.returnValue=!1};var z="closure_listenable_"+(1e6*Math.random()|0),X=0;function q(e,t,r,n,i){this.listener=e,this.proxy=null,this.src=t,this.type=r,this.capture=!!n,this.ha=i,this.key=++X,this.da=this.fa=!1}function Y(e){e.da=!0,e.listener=null,e.proxy=null,e.src=null,e.ha=null}function Z(e){this.src=e,this.g={},this.h=0}function Q(e,t){var r=t.type;if(r in e.g){var n,i=e.g[r],o=Array.prototype.indexOf.call(i,t,void 0);(n=0<=o)&&Array.prototype.splice.call(i,o,1),n&&(Y(t),0==e.g[r].length&&(delete e.g[r],e.h--))}}function ee(e,t,r,n){for(var i=0;i<e.length;++i){var o=e[i];if(!o.da&&o.listener==t&&!!r==o.capture&&o.ha==n)return i}return -1}Z.prototype.add=function(e,t,r,n,i){var o=e.toString();(e=this.g[o])||(e=this.g[o]=[],this.h++);var a=ee(e,t,n,i);return -1<a?(t=e[a],r||(t.fa=!1)):((t=new q(t,this.src,o,!!n,i)).fa=r,e.push(t)),t};var et="closure_lm_"+(1e6*Math.random()|0),er={};function en(e,t,r,n,i,o){if(!t)throw Error("Invalid event type");var a=b(i)?!!i.capture:!!i,s=es(e);if(s||(e[et]=s=new Z(e)),(r=s.add(t,r,n,a,o)).proxy)return r;if(n=function e(t){return ea.call(e.src,e.listener,t)},r.proxy=n,n.src=e,n.listener=r,e.addEventListener)G||(i=a),void 0===i&&(i=!1),e.addEventListener(t.toString(),n,i);else if(e.attachEvent)e.attachEvent(eo(t.toString()),n);else if(e.addListener&&e.removeListener)e.addListener(n);else throw Error("addEventListener and attachEvent are unavailable.");return r}function ei(e){if("number"!=typeof e&&e&&!e.da){var t=e.src;if(t&&t[z])Q(t.i,e);else{var r=e.type,n=e.proxy;t.removeEventListener?t.removeEventListener(r,n,e.capture):t.detachEvent?t.detachEvent(eo(r),n):t.addListener&&t.removeListener&&t.removeListener(n),(r=es(t))?(Q(r,e),0==r.h&&(r.src=null,t[et]=null)):Y(e)}}}function eo(e){return e in er?er[e]:er[e]="on"+e}function ea(e,t){if(e.da)e=!0;else{t=new $(t,this);var r=e.listener,n=e.ha||e.src;e.fa&&ei(e),e=r.call(n,t)}return e}function es(e){return(e=e[et])instanceof Z?e:null}var ec="__closure_events_fn_"+(1e9*Math.random()>>>0);function el(e){return"function"==typeof e?e:(e[ec]||(e[ec]=function(t){return e.handleEvent(t)}),e[ec])}function eu(){B.call(this),this.i=new Z(this),this.M=this,this.F=null}function ed(e,t){var r,n=e.F;if(n)for(r=[];n;n=n.F)r.push(n);if(e=e.M,n=t.type||t,"string"==typeof t)t=new F(t,e);else if(t instanceof F)t.target=t.target||e;else{var i=t;D(t=new F(n,e),i)}if(i=!0,r)for(var o=r.length-1;0<=o;o--){var a=t.g=r[o];i=eh(a,n,!0,t)&&i}if(i=eh(a=t.g=e,n,!0,t)&&i,i=eh(a,n,!1,t)&&i,r)for(o=0;o<r.length;o++)i=eh(a=t.g=r[o],n,!1,t)&&i}function eh(e,t,r,n){if(!(t=e.i.g[String(t)]))return!0;t=t.concat();for(var i=!0,o=0;o<t.length;++o){var a=t[o];if(a&&!a.da&&a.capture==r){var s=a.listener,c=a.ha||a.src;a.fa&&Q(e.i,a),i=!1!==s.call(c,n)&&i}}return i&&!n.defaultPrevented}function ef(e,t,r){if("function"==typeof e)r&&(e=E(e,r));else if(e&&"function"==typeof e.handleEvent)e=E(e.handleEvent,e);else throw Error("Invalid listener argument");return 0x7fffffff<Number(t)?-1:y.setTimeout(e,t||0)}S(eu,B),eu.prototype[z]=!0,eu.prototype.removeEventListener=function(e,t,r,n){!function e(t,r,n,i,o){if(Array.isArray(r))for(var a=0;a<r.length;a++)e(t,r[a],n,i,o);else(i=b(i)?!!i.capture:!!i,n=el(n),t&&t[z])?(t=t.i,(r=String(r).toString())in t.g&&-1<(n=ee
1(a=t.g[r],n,i,o))&&(Y(a[n]),Array.prototype.splice.call(a,n,1),0==a.length&&(delete t.g[r],t.h--))):t&&(t=es(t))&&(r=t.g[r.toString()],t=-1,r&&(t=ee(r,n,i,o)),(n=-1<t?r[t]:null)&&ei(n))}(this,e,t,r,n)},eu.prototype.N=function(){if(eu.aa.N.call(this),this.i){var e,t=this.i;for(e in t.g){for(var r=t.g[e],n=0;n<r.length;n++)Y(r[n]);delete t.g[e],t.h--}}this.F=null},eu.prototype.K=function(e,t,r,n){return this.i.add(String(e),t,!1,r,n)},eu.prototype.L=function(e,t,r,n){return this.i.add(String(e),t,!0,r,n)};class ep extends B{constructor(e,t){super(),this.m=e,this.l=t,this.h=null,this.i=!1,this.g=null}j(e){this.h=arguments,this.g?this.i=!0:function e(t){t.g=ef(()=>{t.g=null,t.i&&(t.i=!1,e(t))},t.l);let r=t.h;t.h=null,t.m.apply(null,r)}(this)}N(){super.N(),this.g&&(y.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function eg(e){B.call(this),this.h=e,this.g={}}S(eg,B);var ey=[];function em(e){T(e.g,function(e,t){this.g.hasOwnProperty(t)&&ei(e)},e),e.g={}}eg.prototype.N=function(){eg.aa.N.call(this),em(this)},eg.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var eb=y.JSON.stringify,ev=y.JSON.parse,ew=class{stringify(e){return y.JSON.stringify(e,void 0)}parse(e){return y.JSON.parse(e,void 0)}};function eE(){}function e_(e){return e.h||(e.h=e.i())}function eS(){}eE.prototype.h=null;var eA={OPEN:"a",kb:"b",Ja:"c",wb:"d"};function ek(){F.call(this,"d")}function eO(){F.call(this,"c")}S(ek,F),S(eO,F);var eC={},ej=null;function eI(){return ej=ej||new eu}function eP(e){F.call(this,eC.La,e)}function eT(e){let t=eI();ed(t,new eP(t))}function ex(e,t){F.call(this,eC.STAT_EVENT,e),this.stat=t}function eR(e){let t=eI();ed(t,new ex(t,e))}function eD(e,t){F.call(this,eC.Ma,e),this.size=t}function eH(e,t){if("function"!=typeof e)throw Error("Fn must not be null and must be a function");return y.setTimeout(function(){e()},t)}function eM(){this.g=!0}function eN(e,t,r,n){e.info(function(){return"XMLHTTP TEXT ("+t+"): "+function(e,t){if(!e.g)return t;if(!t)return null;try{var r=JSON.parse(t);if(r){for(e=0;e<r.length;e++)if(Array.isArray(r[e])){var n=r[e];if(!(2>n.length)){var i=n[1];if(Array.isArray(i)&&!(1>i.length)){var o=i[0];if("noop"!=o&&"stop"!=o&&"close"!=o)for(var a=1;a<i.length;a++)i[a]=""}}}}return eb(r)}catch(e){return t}}(e,r)+(n?" "+n:"")})}eC.La="serverreachability",S(eP,F),eC.STAT_EVENT="statevent",S(ex,F),eC.Ma="timingevent",S(eD,F),eM.prototype.xa=function(){this.g=!1},eM.prototype.info=function(){};var eL={NO_ERROR:0,gb:1,tb:2,sb:3,nb:4,rb:5,ub:6,Ia:7,TIMEOUT:8,xb:9},eK={lb:"complete",Hb:"success",Ja:"error",Ia:"abort",zb:"ready",Ab:"readystatechange",TIMEOUT:"timeout",vb:"incrementaldata",yb:"progress",ob:"downloadprogress",Pb:"uploadprogress"};function eW(){}function eU(e,t,r,n){this.j=e,this.i=t,this.l=r,this.R=n||1,this.U=new eg(this),this.I=45e3,this.H=null,this.o=!1,this.m=this.A=this.v=this.L=this.F=this.S=this.B=null,this.D=[],this.g=null,this.C=0,this.s=this.u=null,this.X=-1,this.J=!1,this.O=0,this.M=null,this.W=this.K=this.T=this.P=!1,this.h=new eJ}function eJ(){this.i=null,this.g="",this.h=!1}S(eW,eE),eW.prototype.g=function(){return new XMLHttpRequest},eW.prototype.i=function(){return{}},t=new eW;var eB={},eF={};function eG(e,t,r){e.L=1,e.v=ta(tt(t)),e.m=r,e.P=!0,e$(e,null)}function e$(e,t){e.F=Date.now(),ez(e),e.A=tt(e.v);var r,n,i,o,a,s,c=e.A,l=e.R;Array.isArray(l)||(l=[String(l)]),tv(c.i,"t",l),e.C=0,c=e.j.J,e.h=new eJ,e.g=t3(e.j,c?t:null,!e.m),0<e.O&&(e.M=new ep(E(e.Y,e,e.g),e.O)),t=e.U,c=e.g,l=e.ca;var u="readystatechange";Array.isArray(u)||(u&&(ey[0]=u.toString()),u=ey);for(var d=0;d<u.length;d++){var h=function e(t,r,n,i,o){if(i&&i.once)return function e(t,r,n,i,o){if(Array.isArray(r)){for(var a=0;a<r.length;a++)e(t,r[a],n,i,o);return null}return n=el(n),t&&t[z]?t.L(r,n,b(i)?!!i.capture:!!i,o):en(t,r,n,!0,i,o)}(t,r,n,i,o);if(Array.isArray(r)){for(var a=0;a<r.length;a++)e(t,r[a],n,i,o);return null}return n=el(n),t&&t[z]?t.K(r,n,b(i)?!!i.capture:!!i,o):en(t,r,n,!1,i,o)}(c,u[d],l||t.handleEvent,!1,t.h||t);if(!h)break;t.g[h.key]=h}t=e.H?x(e.H):{},e.m?(e.u||(e.u="POST"),t["Content-Type"]="application/x-www-form-urlencoded",e.g.ea(e.A,e.u,e.m,t)):(e.u="GET",e.g.ea(e.A,e.u,null,t)),eT(),r=e.i,n=e.u,i=e.A,o=e.l,a=e.R,s=e.m,r.info(function(){if(r.g)if(s)for(var e="",t=s.split("&"),c=0;c<t.length;c++){var l=t[c].split("=");if(1<l.length){var u=l[0];l=l[1];var d=u.split("_");e=2<=d.length&&"type"==d[1]?e+(u+"=")+l+"&":e+(u+"=redacted&")}}else e=null;else e=s;return"XMLHTTP REQ ("+o+") [attempt "+a+"]: "+n+"\n"+i+"\n"+e})}function eV(e){return!!e.g&&"GET"==e.u&&2!=e.L&&e.j.Ca}function ez(e){e.S=Date.now()+e.I,eX(e,e.I)}function eX(e,t){if(null!=e.B)throw Error("WatchDog timer not null");e.B=eH(E(e.ba,e),t)}function eq(e){e.B&&(y.clearTimeout(e.B),e.B=null)}function eY(e){0==e.j.G||e.J||t0(e.j,e)}function eZ(e){eq(e);var t=e.M;t&&"function"==typeof t.ma&&t.ma(),e.M=null,em(e.U),e.g&&(t=e.g,e.g=null,t.abort(),t.ma())}function eQ(e,t){try{var r=e.j;if(0!=r.G&&(r.g==e||e6(r.h,e))){if(!e.K&&e6(r.h,e)&&3==r.G){try{var n=r.Da.g.parse(t)}catch(e){n=null}if(Array.isArray(n)&&3==n.length){var i=n;
1if(0==i[0]){e:if(!r.u){if(r.g)if(r.g.F+3e3<e.F)tQ(r),tB(r);else break e;tq(r),eR(18)}}else r.za=i[1],0<r.za-r.T&&37500>i[2]&&r.F&&0==r.v&&!r.C&&(r.C=eH(E(r.Za,r),6e3));if(1>=e5(r.h)&&r.ca){try{r.ca()}catch(e){}r.ca=void 0}}else t2(r,11)}else if((e.K||r.g==e)&&tQ(r),!C(t))for(i=r.Da.g.parse(t),t=0;t<i.length;t++){let s=i[t];if(r.T=s[0],s=s[1],2==r.G)if("c"==s[0]){r.K=s[1],r.ia=s[2];let t=s[3];null!=t&&(r.la=t,r.j.info("VER="+r.la));let i=s[4];null!=i&&(r.Aa=i,r.j.info("SVER="+r.Aa));let c=s[5];null!=c&&"number"==typeof c&&0<c&&(r.L=n=1.5*c,r.j.info("backChannelRequestTimeoutMs_="+n)),n=r;let l=e.g;if(l){let e=l.g?l.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(e){var o=n.h;o.g||-1==e.indexOf("spdy")&&-1==e.indexOf("quic")&&-1==e.indexOf("h2")||(o.j=o.l,o.g=new Set,o.h&&(e3(o,o.h),o.h=null))}if(n.D){let e=l.g?l.g.getResponseHeader("X-HTTP-Session-Id"):null;e&&(n.ya=e,to(n.I,n.D,e))}}if(r.G=3,r.l&&r.l.ua(),r.ba&&(r.R=Date.now()-e.F,r.j.info("Handshake RTT: "+r.R+"ms")),(n=r).qa=t6(n,n.J?n.ia:null,n.W),e.K){e8(n.h,e);var a=n.L;a&&(e.I=a),e.B&&(eq(e),ez(e)),n.g=e}else tX(n);0<r.i.length&&tG(r)}else"stop"!=s[0]&&"close"!=s[0]||t2(r,7);else 3==r.G&&("stop"==s[0]||"close"==s[0]?"stop"==s[0]?t2(r,7):tJ(r):"noop"!=s[0]&&r.l&&r.l.ta(s),r.v=0)}}eT(4)}catch(e){}}eU.prototype.ca=function(e){e=e.target;let t=this.M;t&&3==tL(e)?t.j():this.Y(e)},eU.prototype.Y=function(e){try{if(e==this.g)e:{let b=tL(this.g);var t=this.g.Ba();let v=this.g.Z();if(!(3>b)&&(3!=b||this.g&&(this.h.h||this.g.oa()||tK(this.g)))){this.J||4!=b||7==t||(8==t||0>=v?eT(3):eT(2)),eq(this);var r=this.g.Z();this.X=r;t:if(eV(this)){var n=tK(this.g);e="";var i=n.length,o=4==tL(this.g);if(!this.h.i){if("undefined"==typeof TextDecoder){eZ(this),eY(this);var a="";break t}this.h.i=new y.TextDecoder}for(t=0;t<i;t++)this.h.h=!0,e+=this.h.i.decode(n[t],{stream:!(o&&t==i-1)});n.length=0,this.h.g+=e,this.C=0,a=this.h.g}else a=this.g.oa();if(this.o=200==r,s=this.i,c=this.u,l=this.A,u=this.l,d=this.R,h=r,s.info(function(){return"XMLHTTP RESP ("+u+") [ attempt "+d+"]: "+c+"\n"+l+"\n"+b+" "+h}),this.o){if(this.T&&!this.K){t:{if(this.g){var s,c,l,u,d,h,f,p=this.g;if((f=p.g?p.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!C(f)){var g=f;break t}}g=null}if(r=g)eN(this.i,this.l,r,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,eQ(this,r);else{this.o=!1,this.s=3,eR(12),eZ(this),eY(this);break e}}if(this.P){let e;for(r=!0;!this.J&&this.C<a.length;)if((e=function(e,t){var r=e.C,n=t.indexOf("\n",r);return -1==n?eF:isNaN(r=Number(t.substring(r,n)))?eB:(n+=1)+r>t.length?eF:(t=t.slice(n,n+r),e.C=n+r,t)}(this,a))==eF){4==b&&(this.s=4,eR(14),r=!1),eN(this.i,this.l,null,"[Incomplete Response]");break}else if(e==eB){this.s=4,eR(15),eN(this.i,this.l,a,"[Invalid Chunk]"),r=!1;break}else eN(this.i,this.l,e,null),eQ(this,e);if(eV(this)&&0!=this.C&&(this.h.g=this.h.g.slice(this.C),this.C=0),4!=b||0!=a.length||this.h.h||(this.s=1,eR(16),r=!1),this.o=this.o&&r,r){if(0<a.length&&!this.W){this.W=!0;var m=this.j;m.g==this&&m.ba&&!m.M&&(m.j.info("Great, no buffering proxy detected. Bytes received: "+a.length),tY(m),m.M=!0,eR(11))}}else eN(this.i,this.l,a,"[Invalid Chunked Response]"),eZ(this),eY(this)}else eN(this.i,this.l,a,null),eQ(this,a);4==b&&eZ(this),this.o&&!this.J&&(4==b?t0(this.j,this):(this.o=!1,ez(this)))}else(function(e){let t={};e=(e.g&&2<=tL(e)&&e.g.getAllResponseHeaders()||"").split("\r\n");for(let n=0;n<e.length;n++){if(C(e[n]))continue;var r=function(e){var t=1;e=e.split(":");let r=[];for(;0<t&&e.length;)r.push(e.shift()),t--;return e.length&&r.push(e.join(":")),r}(e[n]);let i=r[0];if("string"!=typeof(r=r[1]))continue;r=r.trim();let o=t[i]||[];t[i]=o,o.push(r)}var n=function(e){return e.join(", ")};for(let e in t)n.call(void 0,t[e],e,t)})(this.g),400==r&&0<a.indexOf("Unknown SID")?(this.s=3,eR(12)):(this.s=0,eR(13)),eZ(this),eY(this)}}}catch(e){}finally{}},eU.prototype.cancel=function(){this.J=!0,eZ(this)},eU.prototype.ba=function(){var e,t;this.B=null;let r=Date.now();0<=r-this.S?(e=this.i,t=this.A,e.info(function(){return"TIMEOUT: "+t}),2!=this.L&&(eT(),eR(17)),eZ(this),this.s=2,eY(this)):eX(this,this.S-r)};var e0=class{constructor(e,t){this.g=e,this.map=t}};function e1(e){this.l=e||10,e=y.PerformanceNavigationTiming?0<(e=y.performance.getEntriesByType("navigation")).length&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):!!(y.chrome&&y.chrome.loadTimes&&y.chrome.loadTimes()&&y.chrome.loadTimes().wasFetchedViaSpdy),this.j=e?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}function e2(e){return!!e.h||!!e.g&&e.g.size>=e.j}function e5(e){return e.h?1:e.g?e.g.size:0}function e6(e,t){return e.h?e.h==t:!!e.g&&e.g.has(t)}function e3(e,t){e.g?e.g.add(t):e.h=t}function e8(e,t){e.h&&e.h==t?e.h=null:e.g&&e.g.has(t)&&e.g.delete(t)}function e4(e){if(null!=e.h)return e.i.concat(e.h.D);if(null!=e.g&&0!==e.g.size){let t=e.i;for(let r of e.g.values())t=t.concat(r.D);return t}return A(e.i)}function e9(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(m(e)||"string"==typeof e)Array.prototype.forEach.call(e,t,void 0);else for(var r=function(e){if(e.na&&"function"==typeof e.na)return e.na();if(!e.V||"function"!=typeof e.V){if("undefined"!=typeof Map&&e instanceof Map)return Array.from(e.keys());if(!("undefined"!=typeof Set&&e instanceof Set)){if(m(e)||"string"==typeof e){var t=[];e=e.length;for(var r=0;r<e;r++)t.push(r);return t}for(let n in t=[],r=0,e)t[r++]=n;return t}}}(e),n=function(e){if(e.V&&"function"==typeof e.V)return e.V();if("undefined"!=typeof Map&&e instanceof Map||"undefined"!=typeof Set&&e instanceof Set)return Array.from(e.values());if("string"==typeof e)return e.split("");
1if(m(e)){for(var t=[],r=e.length,n=0;n<r;n++)t.push(e[n]);return t}for(n in t=[],r=0,e)t[r++]=e[n];return t}(e),i=n.length,o=0;o<i;o++)t.call(void 0,n[o],r&&r[o],e)}e1.prototype.cancel=function(){if(this.i=e4(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(let e of this.g.values())e.cancel();this.g.clear()}};var e7=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function te(e){if(this.g=this.o=this.j="",this.s=null,this.m=this.l="",this.h=!1,e instanceof te){this.h=e.h,tr(this,e.j),this.o=e.o,this.g=e.g,tn(this,e.s),this.l=e.l;var t=e.i,r=new tg;r.i=t.i,t.g&&(r.g=new Map(t.g),r.h=t.h),ti(this,r),this.m=e.m}else e&&(t=String(e).match(e7))?(this.h=!1,tr(this,t[1]||"",!0),this.o=ts(t[2]||""),this.g=ts(t[3]||"",!0),tn(this,t[4]),this.l=ts(t[5]||"",!0),ti(this,t[6]||"",!0),this.m=ts(t[7]||"")):(this.h=!1,this.i=new tg(null,this.h))}function tt(e){return new te(e)}function tr(e,t,r){e.j=r?ts(t,!0):t,e.j&&(e.j=e.j.replace(/:$/,""))}function tn(e,t){if(t){if(isNaN(t=Number(t))||0>t)throw Error("Bad port number "+t);e.s=t}else e.s=null}function ti(e,t,r){var n,i;t instanceof tg?(e.i=t,n=e.i,(i=e.h)&&!n.j&&(ty(n),n.i=null,n.g.forEach(function(e,t){var r=t.toLowerCase();t!=r&&(tm(this,t),tv(this,r,e))},n)),n.j=i):(r||(t=tc(t,tf)),e.i=new tg(t,e.h))}function to(e,t,r){e.i.set(t,r)}function ta(e){return to(e,"zx",Math.floor(0x80000000*Math.random()).toString(36)+Math.abs(Math.floor(0x80000000*Math.random())^Date.now()).toString(36)),e}function ts(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function tc(e,t,r){return"string"==typeof e?(e=encodeURI(e).replace(t,tl),r&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function tl(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}te.prototype.toString=function(){var e=[],t=this.j;t&&e.push(tc(t,tu,!0),":");var r=this.g;return(r||"file"==t)&&(e.push("//"),(t=this.o)&&e.push(tc(t,tu,!0),"@"),e.push(encodeURIComponent(String(r)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(r=this.s)&&e.push(":",String(r))),(r=this.l)&&(this.g&&"/"!=r.charAt(0)&&e.push("/"),e.push(tc(r,"/"==r.charAt(0)?th:td,!0))),(r=this.i.toString())&&e.push("?",r),(r=this.m)&&e.push("#",tc(r,tp)),e.join("")};var tu=/[#\/\?@]/g,td=/[#\?:]/g,th=/[#\?]/g,tf=/[#\?@]/g,tp=/#/g;function tg(e,t){this.h=this.g=null,this.i=e||null,this.j=!!t}function ty(e){e.g||(e.g=new Map,e.h=0,e.i&&function(e,t){if(e){e=e.split("&");for(var r=0;r<e.length;r++){var n=e[r].indexOf("="),i=null;if(0<=n){var o=e[r].substring(0,n);i=e[r].substring(n+1)}else o=e[r];t(o,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(e.i,function(t,r){e.add(decodeURIComponent(t.replace(/\+/g," ")),r)}))}function tm(e,t){ty(e),t=tw(e,t),e.g.has(t)&&(e.i=null,e.h-=e.g.get(t).length,e.g.delete(t))}function tb(e,t){return ty(e),t=tw(e,t),e.g.has(t)}function tv(e,t,r){tm(e,t),0<r.length&&(e.i=null,e.g.set(tw(e,t),A(r)),e.h+=r.length)}function tw(e,t){return t=String(t),e.j&&(t=t.toLowerCase()),t}function tE(e,t,r,n,i){try{i&&(i.onload=null,i.onerror=null,i.onabort=null,i.ontimeout=null),n(r)}catch(e){}}function t_(){this.g=new ew}function tS(e){this.l=e.Ub||null,this.j=e.eb||!1}function tA(e,t){eu.call(this),this.D=e,this.o=t,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.u=new Headers,this.h=null,this.B="GET",this.A="",this.g=!1,this.v=this.j=this.l=null}function tk(e){e.j.read().then(e.Pa.bind(e)).catch(e.ga.bind(e))}function tO(e){e.readyState=4,e.l=null,e.j=null,e.v=null,tC(e)}function tC(e){e.onreadystatechange&&e.onreadystatechange.call(e)}function tj(e){let t="";return T(e,function(e,r){t+=r,t+=":",t+=e,t+="\r\n"}),t}function tI(e,t,r){e:{for(n in r){var n=!1;break e}n=!0}n||(r=tj(r),"string"==typeof e?null!=r&&encodeURIComponent(String(r)):to(e,t,r))}function tP(e){eu.call(this),this.headers=new Map,this.o=e||null,this.h=!1,this.v=this.g=null,this.D="",this.m=0,this.l="",this.j=this.B=this.u=this.A=!1,this.I=null,this.H="",this.J=!1}(r=tg.prototype).add=function(e,t){ty(this),this.i=null,e=tw(this,e);var r=this.g.get(e);return r||this.g.set(e,r=[]),r.push(t),this.h+=1,this},r.forEach=function(e,t){ty(this),this.g.forEach(function(r,n){r.forEach(function(r){e.call(t,r,n,this)},this)},this)},r.na=function(){ty(this);let e=Array.from(this.g.values()),t=Array.from(this.g.keys()),r=[];for(let n=0;n<t.length;n++){let i=e[n];for(let e=0;e<i.length;e++)r.push(t[n])}return r},r.V=function(e){ty(this);let t=[];if("string"==typeof e)tb(this,e)&&(t=t.concat(this.g.get(tw(this,e))));else{e=Array.from(this.g.values());for(let r=0;r<e.length;r++)t=t.concat(e[r])}return t},r.set=function(e,t){return ty(this),this.i=null,tb(this,e=tw(this,e))&&(this.h-=this.g.get(e).length),this.g.set(e,[t]),this.h+=1,this},r.get=function(e,t){return e&&0<(e=this.V(e)).length?String(e[0]):t},r.toString=function(){if(this.i)return this.i;if(!this.g)return"";let e=[],t=Array.from(this.g.keys());for(var r=0;r<t.length;r++){var n=t[r];let o=encodeURIComponent(String(n)),a=this.V(n);for(n=0;n<a.length;n++){var i=o;""!==a[n]&&(i+="="+encodeURIComponent(String(a[n]))),e.push(i)}}return this.i=e.join("&")},S(tS,eE),tS.prototype.g=function(){return new tA(this.l,this.j)},tS.prototype.i=(e={},function(){return e}),S(tA,eu),(r=tA.prototype).open=function(e,t){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.B=e,this.A=t,this.readyState=1,tC(this)},r.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;let t={headers:this.u,method:this.B,credentials:this.m,cache:void 0};
1e&&(t.body=e),(this.D||y).fetch(new Request(this.A,t)).then(this.Sa.bind(this),this.ga.bind(this))},r.abort=function(){this.response=this.responseText="",this.u=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,tO(this)),this.readyState=0},r.Sa=function(e){if(this.g&&(this.l=e,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=e.headers,this.readyState=2,tC(this)),this.g&&(this.readyState=3,tC(this),this.g)))if("arraybuffer"===this.responseType)e.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(void 0!==y.ReadableStream&&"body"in e){if(this.j=e.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.v=new TextDecoder;tk(this)}else e.text().then(this.Ra.bind(this),this.ga.bind(this))},r.Pa=function(e){if(this.g){if(this.o&&e.value)this.response.push(e.value);else if(!this.o){var t=e.value?e.value:new Uint8Array(0);(t=this.v.decode(t,{stream:!e.done}))&&(this.response=this.responseText+=t)}e.done?tO(this):tC(this),3==this.readyState&&tk(this)}},r.Ra=function(e){this.g&&(this.response=this.responseText=e,tO(this))},r.Qa=function(e){this.g&&(this.response=e,tO(this))},r.ga=function(){this.g&&tO(this)},r.setRequestHeader=function(e,t){this.u.append(e,t)},r.getResponseHeader=function(e){return this.h&&this.h.get(e.toLowerCase())||""},r.getAllResponseHeaders=function(){if(!this.h)return"";let e=[],t=this.h.entries();for(var r=t.next();!r.done;)e.push((r=r.value)[0]+": "+r[1]),r=t.next();return e.join("\r\n")},Object.defineProperty(tA.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(e){this.m=e?"include":"same-origin"}}),S(tP,eu);var tT=/^https?$/i,tx=["POST","PUT"];function tR(e,t){e.h=!1,e.g&&(e.j=!0,e.g.abort(),e.j=!1),e.l=t,e.m=5,tD(e),tM(e)}function tD(e){e.A||(e.A=!0,ed(e,"complete"),ed(e,"error"))}function tH(e){if(e.h&&void 0!==g&&(!e.v[1]||4!=tL(e)||2!=e.Z())){if(e.u&&4==tL(e))ef(e.Ea,0,e);else if(ed(e,"readystatechange"),4==tL(e)){e.h=!1;try{let a=e.Z();switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var t,r,n=!0;break;default:n=!1}if(!(t=n)){if(r=0===a){var i=String(e.D).match(e7)[1]||null;!i&&y.self&&y.self.location&&(i=y.self.location.protocol.slice(0,-1)),r=!tT.test(i?i.toLowerCase():"")}t=r}if(t)ed(e,"complete"),ed(e,"success");else{e.m=6;try{var o=2<tL(e)?e.g.statusText:""}catch(e){o=""}e.l=o+" ["+e.Z()+"]",tD(e)}}finally{tM(e)}}}}function tM(e,t){if(e.g){tN(e);let r=e.g,n=e.v[0]?()=>{}:null;e.g=null,e.v=null,t||ed(e,"ready");try{r.onreadystatechange=n}catch(e){}}}function tN(e){e.I&&(y.clearTimeout(e.I),e.I=null)}function tL(e){return e.g?e.g.readyState:0}function tK(e){try{if(!e.g)return null;if("response"in e.g)return e.g.response;switch(e.H){case"":case"text":return e.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in e.g)return e.g.mozResponseArrayBuffer}return null}catch(e){return null}}function tW(e,t,r){return r&&r.internalChannelParams&&r.internalChannelParams[e]||t}function tU(e){this.Aa=0,this.i=[],this.j=new eM,this.ia=this.qa=this.I=this.W=this.g=this.ya=this.D=this.H=this.m=this.S=this.o=null,this.Ya=this.U=0,this.Va=tW("failFast",!1,e),this.F=this.C=this.u=this.s=this.l=null,this.X=!0,this.za=this.T=-1,this.Y=this.v=this.B=0,this.Ta=tW("baseRetryDelayMs",5e3,e),this.cb=tW("retryDelaySeedMs",1e4,e),this.Wa=tW("forwardChannelMaxRetries",2,e),this.wa=tW("forwardChannelRequestTimeoutMs",2e4,e),this.pa=e&&e.xmlHttpFactory||void 0,this.Xa=e&&e.Tb||void 0,this.Ca=e&&e.useFetchStreams||!1,this.L=void 0,this.J=e&&e.supportsCrossDomainXhr||!1,this.K="",this.h=new e1(e&&e.concurrentRequestLimit),this.Da=new t_,this.P=e&&e.fastHandshake||!1,this.O=e&&e.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=e&&e.Rb||!1,e&&e.xa&&this.j.xa(),e&&e.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&e&&e.detectBufferingProxy||!1,this.ja=void 0,e&&e.longPollingTimeout&&0<e.longPollingTimeout&&(this.ja=e.longPollingTimeout),this.ca=void 0,this.R=0,this.M=!1,this.ka=this.A=null}function tJ(e){if(tF(e),3==e.G){var t=e.U++,r=tt(e.I);if(to(r,"SID",e.K),to(r,"RID",t),to(r,"TYPE","terminate"),tV(e,r),
1(t=new eU(e,e.j,t)).L=2,t.v=ta(tt(r)),r=!1,y.navigator&&y.navigator.sendBeacon)try{r=y.navigator.sendBeacon(t.v.toString(),"")}catch(e){}!r&&y.Image&&((new Image).src=t.v,r=!0),r||(t.g=t3(t.j,null),t.g.ea(t.v)),t.F=Date.now(),ez(t)}t5(e)}function tB(e){e.g&&(tY(e),e.g.cancel(),e.g=null)}function tF(e){tB(e),e.u&&(y.clearTimeout(e.u),e.u=null),tQ(e),e.h.cancel(),e.s&&("number"==typeof e.s&&y.clearTimeout(e.s),e.s=null)}function tG(e){if(!e2(e.h)&&!e.s){e.s=!0;var t=e.Ga;L||U(),K||(L(),K=!0),W.add(t,e),e.B=0}}function t$(e,t){var r;r=t?t.l:e.U++;let n=tt(e.I);to(n,"SID",e.K),to(n,"RID",r),to(n,"AID",e.T),tV(e,n),e.m&&e.o&&tI(n,e.m,e.o),r=new eU(e,e.j,r,e.B+1),null===e.m&&(r.H=e.o),t&&(e.i=t.D.concat(e.i)),t=tz(e,r,1e3),r.I=Math.round(.5*e.wa)+Math.round(.5*e.wa*Math.random()),e3(e.h,r),eG(r,n,t)}function tV(e,t){e.H&&T(e.H,function(e,r){to(t,r,e)}),e.l&&e9({},function(e,r){to(t,r,e)})}function tz(e,t,r){r=Math.min(e.i.length,r);var n=e.l?E(e.l.Na,e.l,e):null;e:{var i=e.i;let t=-1;for(;;){let e=["count="+r];-1==t?0<r?(t=i[0].g,e.push("ofs="+t)):t=0:e.push("ofs="+t);let o=!0;for(let a=0;a<r;a++){let r=i[a].g,s=i[a].map;if(0>(r-=t))t=Math.max(0,i[a].g-100),o=!1;else try{!function(e,t,r){let n=r||"";try{e9(e,function(e,r){let i=e;b(e)&&(i=eb(e)),t.push(n+r+"="+encodeURIComponent(i))})}catch(e){throw t.push(n+"type="+encodeURIComponent("_badmap")),e}}(s,e,"req"+r+"_")}catch(e){n&&n(s)}}if(o){n=e.join("&");break e}}}return t.D=e=e.i.splice(0,r),n}function tX(e){if(!e.g&&!e.u){e.Y=1;var t=e.Fa;L||U(),K||(L(),K=!0),W.add(t,e),e.v=0}}function tq(e){return!e.g&&!e.u&&!(3<=e.v)&&(e.Y++,e.u=eH(E(e.Fa,e),t1(e,e.v)),e.v++,!0)}function tY(e){null!=e.A&&(y.clearTimeout(e.A),e.A=null)}function tZ(e){e.g=new eU(e,e.j,"rpc",e.Y),null===e.m&&(e.g.H=e.o),e.g.O=0;var t=tt(e.qa);to(t,"RID","rpc"),to(t,"SID",e.K),to(t,"AID",e.T),to(t,"CI",e.F?"0":"1"),!e.F&&e.ja&&to(t,"TO",e.ja),to(t,"TYPE","xmlhttp"),tV(e,t),e.m&&e.o&&tI(t,e.m,e.o),e.L&&(e.g.I=e.L);var r=e.g;e=e.ia,r.L=1,r.v=ta(tt(t)),r.m=null,r.P=!0,e$(r,e)}function tQ(e){null!=e.C&&(y.clearTimeout(e.C),e.C=null)}function t0(e,t){var r,n=null;if(e.g==t){tQ(e),tY(e),e.g=null;var i=2}else{if(!e6(e.h,t))return;n=t.D,e8(e.h,t),i=1}if(0!=e.G){if(t.o)if(1==i){n=t.m?t.m.length:0,t=Date.now()-t.F;var o=e.B;ed(i=eI(),new eD(i,n)),tG(e)}else tX(e);else if(3==(o=t.s)||0==o&&0<t.X||!(1==i&&(r=t,!(e5(e.h)>=e.h.j-!!e.s)&&(e.s?(e.i=r.D.concat(e.i),!0):1!=e.G&&2!=e.G&&!(e.B>=(e.Va?0:e.Wa))&&(e.s=eH(E(e.Ga,e,r),t1(e,e.B)),e.B++,!0)))||2==i&&tq(e)))switch(n&&0<n.length&&((t=e.h).i=t.i.concat(n)),o){case 1:t2(e,5);break;case 4:t2(e,10);break;case 3:t2(e,6);break;default:t2(e,2)}}}function t1(e,t){let r=e.Ta+Math.floor(Math.random()*e.cb);return e.isActive()||(r*=2),r*t}function t2(e,t){if(e.j.info("Error code "+t),2==t){var r=E(e.fb,e),n=e.Xa;let t=!n;n=new te(n||"//www.google.com/images/cleardot.gif"),y.location&&"http"==y.location.protocol||tr(n,"https"),ta(n),t?function(e,t){let r=new eM;if(y.Image){let n=new Image;n.onload=_(tE,r,"TestLoadImage: loaded",!0,t,n),n.onerror=_(tE,r,"TestLoadImage: error",!1,t,n),n.onabort=_(tE,r,"TestLoadImage: abort",!1,t,n),n.ontimeout=_(tE,r,"TestLoadImage: timeout",!1,t,n),y.setTimeout(function(){n.ontimeout&&n.ontimeout()},1e4),n.src=e}else t(!1)}(n.toString(),r):function(e,t){let r=new eM,n=new AbortController,i=setTimeout(()=>{n.abort(),tE(r,"TestPingServer: timeout",!1,t)},1e4);fetch(e,{signal:n.signal}).then(e=>{clearTimeout(i),e.ok?tE(r,"TestPingServer: ok",!0,t):tE(r,"TestPingServer: server error",!1,t)}).catch(()=>{clearTimeout(i),tE(r,"TestPingServer: error",!1,t)})}(n.toString(),r)}else eR(2);e.G=0,e.l&&e.l.sa(t),t5(e),tF(e)}function t5(e){if(e.G=0,e.ka=[],e.l){let t=e4(e.h);(0!=t.length||0!=e.i.length)&&(k(e.ka,t),k(e.ka,e.i),e.h.i.length=0,A(e.i),e.i.length=0),e.l.ra()}}function t6(e,t,r){var n=r instanceof te?tt(r):new te(r);if(""!=n.g)t&&(n.g=t+"."+n.g),tn(n,n.s);else{var i=y.location;n=i.protocol,t=t?t+"."+i.hostname:i.hostname,i=+i.port;var o=new te(null);n&&tr(o,n),t&&(o.g=t),i&&tn(o,i),r&&(o.l=r),n=o}return r=e.D,t=e.ya,r&&t&&to(n,r,t),to(n,"VER",e.la),tV(e,n),n}function t3(e,t,r){if(t&&!e.J)throw Error("Can't create secondary domain capable XhrIo object.");return(t=new tP(e.Ca&&!e.pa?new tS({eb:r}):e.pa)).Ha(e.J),t}function t8(){}function t4(){}function t9(e,t){eu.call(this),this.g=new tU(t),this.l=e,this.h=t&&t.messageUrlParams||null,e=t&&t.messageHeaders||null,t&&t.clientProtocolHeaderRequired&&(e?e["X-Client-Protocol"]="webchannel":e={"X-Client-Protocol":"webchannel"}),this.g.o=e,e=t&&t.initMessageHeaders||null,t&&t.messageContentType&&(e?e["X-WebChannel-Content-Type"]=t.messageContentType:e={"X-WebChannel-Content-Type":t.messageContentType}),t&&t.va&&(e?e["X-WebChannel-Client-Profile"]=t.va:e={"X-WebChannel-Client-Profile":t.va}),this.g.S=e,(e=t&&t.Sb)&&!C(e)&&(this.g.m=e),this.v=t&&t.supportsCrossDomainXhr||!1,this.u=t&&t.sendRawJson||!1,(t=t&&t.httpSessionIdParam)&&!C(t)&&(this.g.D=t,null!==(e=this.h)&&t in e&&t in(e=this.h)&&delete e[t]),this.j=new rt(this)}function t7(e){ek.call(this),e.__headers__&&(this.headers=e.__headers__,this.statusCode=e.__status__,delete e.__headers__,delete e.__status__);var t=e.__sm__;if(t){e:{for(let r in t){e=r;break e}e=void 0}(this.i=e)&&(e=this.i,t=null!==t&&e in t?t[e]:void 0),this.data=t}else this.data=e}function re(){eO.call(this),this.status=1}function rt(e){this.g=e}(r=tP.prototype).Ha=function(e){this.J=e},r.ea=function(e,r,n,i){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+e);r=r?r.toUpperCase():"GET",this.D=e,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():t.g(),this.v=this.o?e_(this.o):e_(t),this.g.onreadystatechange=E(this.Ea,this);try{this.B=!0,this.g.open(r,String(e),!0),this.B=!1}catch(e){tR(this,e);return}if(e=n||"",n=new Map(this.headers),i)if(Object.getPrototypeOf(i)===Object.prototype)for(var o in i)n.set(o,i[o]);else if("function"==typeof i.keys&&"function"==typeof i.get)for(let e of i.keys())n.set(e,i.get(e));else throw Error("Unknown input type for opt_headers: "+String(i));for(let[t,a]of(i=Array.from(n.keys()).find(e=>"content-type"==e.toLowerCase()),o=y.FormData&&e instanceof y.FormData,!(0<=Array.prototype.indexOf.call(tx,r,void 0))||i||o||n.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),n))this.g.setRequestHeader(t,a);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{tN(this),this.u=!0,this.g.send(e),this.u=!1}catch(e){tR(this,e)}},r.abort=function(e){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=e||7,ed(this,"complete"),ed(this,"abort"),tM(this))},r.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),tM(this,!0)),tP.aa.N.call(this)},r.Ea=function(){this.s||(this.B||this.u||this.j?tH(this):this.bb())},r.bb=function(){tH(this)},r.isActive=function(){return!!this.g},r.Z=function(){try{return 2<tL(this)?this.g.status:-1}catch(e){return -1}},r.oa=function(){try{return this.g?this.g.responseText:""}catch(e){return""}},r.Oa=function(e){if(this.g){var t=this.g.responseText;
1return e&&0==t.indexOf(e)&&(t=t.substring(e.length)),ev(t)}},r.Ba=function(){return this.m},r.Ka=function(){return"string"==typeof this.l?this.l:String(this.l)},(r=tU.prototype).la=8,r.G=1,r.connect=function(e,t,r,n){eR(0),this.W=e,this.H=t||{},r&&void 0!==n&&(this.H.OSID=r,this.H.OAID=n),this.F=this.X,this.I=t6(this,null,this.W),tG(this)},r.Ga=function(e){if(this.s)if(this.s=null,1==this.G){if(!e){this.U=Math.floor(1e5*Math.random()),e=this.U++;let i=new eU(this,this.j,e),o=this.o;if(this.S&&(o?D(o=x(o),this.S):o=this.S),null!==this.m||this.O||(i.H=o,o=null),this.P)e:{for(var t=0,r=0;r<this.i.length;r++){t:{var n=this.i[r];if("__data__"in n.map&&"string"==typeof(n=n.map.__data__)){n=n.length;break t}n=void 0}if(void 0===n)break;if(4096<(t+=n)){t=r;break e}if(4096===t||r===this.i.length-1){t=r+1;break e}}t=1e3}else t=1e3;t=tz(this,i,t),to(r=tt(this.I),"RID",e),to(r,"CVER",22),this.D&&to(r,"X-HTTP-Session-Id",this.D),tV(this,r),o&&(this.O?t="headers="+encodeURIComponent(String(tj(o)))+"&"+t:this.m&&tI(r,this.m,o)),e3(this.h,i),this.Ua&&to(r,"TYPE","init"),this.P?(to(r,"$req",t),to(r,"SID","null"),i.T=!0,eG(i,r,null)):eG(i,r,t),this.G=2}}else 3==this.G&&(e?t$(this,e):0==this.i.length||e2(this.h)||t$(this))},r.Fa=function(){if(this.u=null,tZ(this),this.ba&&!(this.M||null==this.g||0>=this.R)){var e=2*this.R;this.j.info("BP detection timer enabled: "+e),this.A=eH(E(this.ab,this),e)}},r.ab=function(){this.A&&(this.A=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.M=!0,eR(10),tB(this),tZ(this))},r.Za=function(){null!=this.C&&(this.C=null,tB(this),tq(this),eR(19))},r.fb=function(e){e?(this.j.info("Successfully pinged google.com"),eR(2)):(this.j.info("Failed to ping google.com"),eR(1))},r.isActive=function(){return!!this.l&&this.l.isActive(this)},(r=t8.prototype).ua=function(){},r.ta=function(){},r.sa=function(){},r.ra=function(){},r.isActive=function(){return!0},r.Na=function(){},t4.prototype.g=function(e,t){return new t9(e,t)},S(t9,eu),t9.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},t9.prototype.close=function(){tJ(this.g)},t9.prototype.o=function(e){var t=this.g;if("string"==typeof e){var r={};r.__data__=e,e=r}else this.u&&((r={}).__data__=eb(e),e=r);t.i.push(new e0(t.Ya++,e)),3==t.G&&tG(t)},t9.prototype.N=function(){this.g.l=null,delete this.j,tJ(this.g),delete this.g,t9.aa.N.call(this)},S(t7,ek),S(re,eO),S(rt,t8),rt.prototype.ua=function(){ed(this.g,"a")},rt.prototype.ta=function(e){ed(this.g,new t7(e))},rt.prototype.sa=function(e){ed(this.g,new re)},rt.prototype.ra=function(){ed(this.g,"b")},t4.prototype.createWebChannel=t4.prototype.g,t9.prototype.send=t9.prototype.o,t9.prototype.open=t9.prototype.m,t9.prototype.close=t9.prototype.close,u=h.createWebChannelTransport=function(){return new t4},l=h.getStatEventTarget=function(){return eI()},c=h.Event=eC,s=h.Stat={mb:0,pb:1,qb:2,Jb:3,Ob:4,Lb:5,Mb:6,Kb:7,Ib:8,Nb:9,PROXY:10,NOPROXY:11,Gb:12,Cb:13,Db:14,Bb:15,Eb:16,Fb:17,ib:18,hb:19,jb:20},eL.NO_ERROR=0,eL.TIMEOUT=8,eL.HTTP_ERROR=6,a=h.ErrorCode=eL,eK.COMPLETE="complete",o=h.EventType=eK,eS.EventType=eA,eA.OPEN="a",eA.CLOSE="b",eA.ERROR="c",eA.MESSAGE="d",eu.prototype.listen=eu.prototype.K,i=h.WebChannel=eS,h.FetchXmlHttpFactory=tS,tP.prototype.listenOnce=tP.prototype.L,tP.prototype.getLastError=tP.prototype.Ka,tP.prototype.getLastErrorCode=tP.prototype.Ba,tP.prototype.getStatus=tP.prototype.Z,tP.prototype.getResponseJson=tP.prototype.Oa,tP.prototype.getResponseText=tP.prototype.oa,tP.prototype.send=tP.prototype.ea,tP.prototype.setWithCredentials=tP.prototype.Ha,n=h.XhrIo=tP}).apply(void 0!==d?d:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},26802:e=>{"use strict";e.exports=JSON.parse('{"id":"google-maps-embed","description":"Embed a Google Maps embed on your webpage","website":"https://developers.google.com/maps/documentation/embed/get-started","html":{"element":"iframe","attributes":{"loading":"lazy","src":{"url":"https://www.google.com/maps/embed/v1/place","slugParam":"mode","params":["key","q","center","zoom","maptype","language","regi
1on"]},"referrerpolicy":"no-referrer-when-downgrade","frameborder":"0","style":"border:0","allowfullscreen":true,"width":null,"height":null}}}')},29001:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ESCAPE_REGEX:function(){return n},htmlEscapeAttributeString:function(){return s},htmlEscapeJsonString:function(){return a}});let r={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},n=/[&><\u2028\u2029]/g,i={"&":"&amp;",'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;"},o=/[&"'<>]/g;function a(e){return e.replace(n,e=>r[e])}function s(e){return e.replace(o,e=>i[e])}},33885:(e,t,r)=>{"use strict";r.d(t,{HF:()=>n.Y,sv:()=>n.a8,sB:()=>n.a9,R4:()=>n.a7,eJ:()=>n.ab,B8:()=>n.ar,xI:()=>n.p,gz:()=>n.V,oM:()=>n.t,p:()=>n.a5,x9:()=>n.ac,df:()=>n.d,CI:()=>n.D,r7:()=>n.al,RE:()=>n.aa});var n=r(87780);r(91398),r(57176),r(5969),r(22396)},37577:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{html:t,scripts:r,stylesheets:n}=(0,a.YouTubeEmbed)(e);return(0,i.jsx)(s.default,{height:e.height||null,width:e.width||null,html:t,dataNtpc:"YouTubeEmbed",children:null==r?void 0:r.map(e=>(0,i.jsx)(o.default,{src:e.url,strategy:c[e.strategy],stylesheets:n},e.url))})};let i=r(95155),o=n(r(68321)),a=r(13067),s=n(r(57445)),c={server:"beforeInteractive",client:"afterInteractive",idle:"lazyOnload",worker:"worker"}},41402:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return b},handleClientScriptLoad:function(){return g},initScriptLoader:function(){return y}});let n=r(28140),i=r(49417),o=r(95155),a=n._(r(47650)),s=i._(r(12115)),c=r(82073),l=r(94681),u=r(4853),d=r(29001),h=new Map,f=new Set,p=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:i=null,dangerouslySetInnerHTML:o,children:s="",strategy:c="afterInteractive",onError:u,stylesheets:d}=e,p=r||t;if(p&&f.has(p))return;if(h.has(t)){f.add(p),h.get(t).then(n,u);return}let g=()=>{i&&i(),f.add(p)},y=document.createElement("script"),m=new Promise((e,t)=>{y.addEventListener("load",function(t){e(),n&&n.call(this,t),g()}),y.addEventListener("error",function(e){t(e)})}).catch(function(e){u&&u(e)});o?(y.innerHTML=o.__html||"",g()):s?(y.textContent="string"==typeof s?s:Array.isArray(s)?s.join(""):"",g()):t&&(y.src=t,h.set(t,m)),(0,l.setAttributesFromProps)(y,e),"worker"===c&&y.setAttribute("type","text/partytown"),y.setAttribute("data-nscript",c),d&&(e=>{if(a.default.preinit)return e.forEach(e=>{a.default.preinit(e,{as:"style"})});{let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(d),document.body.appendChild(y)};function g(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>p(e))}):p(e)}function y(e){e.forEach(g),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");f.add(t)})}function m(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:i=null,strategy:l="afterInteractive",onError:h,stylesheets:g,...y}=e,{updateScripts:m,scripts:b,getIsSsr:v,appDir:w,nonce:E}=(0,s.useContext)(c.HeadManagerContext);E=y.nonce||E;let _=(0,s.useRef)(!1);(0,s.useEffect)(()=>{let e=t||r;_.current||(i&&e&&f.has(e)&&i(),_.current=!0)},[i,t,r]);let S=(0,s.useRef)(!1);if((0,s.useEffect)(()=>{if(!S.current){if("afterInteractive"===l)p(e);else"lazyOnload"===l&&("complete"===document.readyState?(0,u.requestIdleCallback)(()=>p(e)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>p(e))}));S.current=!0}},[e,l]),("beforeInteractive"===l||"worker"===l)&&(m?(b[l]=(b[l]||[]).concat([{id:t,src:r,onLoad:n,onReady:i,onError:h,...y,nonce:E}]),m(b)):v&&v()?f.add(t||r):v&&!v()&&p({...e,nonce:E}
1)),w){if(g&&g.forEach(e=>{a.default.preinit(e,{as:"style"})}),"beforeInteractive"===l)if(!r)return y.dangerouslySetInnerHTML&&(y.children=y.dangerouslySetInnerHTML.__html,delete y.dangerouslySetInnerHTML),(0,o.jsx)("script",{nonce:E,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+(0,d.htmlEscapeJsonString)(JSON.stringify([0,{...y,id:t}]))+")"}});else return a.default.preload(r,y.integrity?{as:"script",integrity:y.integrity,nonce:E,crossOrigin:y.crossOrigin}:{as:"script",nonce:E,crossOrigin:y.crossOrigin}),(0,o.jsx)("script",{nonce:E,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+(0,d.htmlEscapeJsonString)(JSON.stringify([r,{...y,id:t}]))+")"}});"afterInteractive"===l&&r&&a.default.preload(r,y.integrity?{as:"script",integrity:y.integrity,nonce:E,crossOrigin:y.crossOrigin}:{as:"script",nonce:E,crossOrigin:y.crossOrigin})}return null}Object.defineProperty(m,"__nextScript",{value:!0});let b=m;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52078:(e,t,r)=>{"use strict";r.d(t,{Wp:()=>n.Wp});var n=r(91398);(0,n.KO)("firebase","11.10.0","app")},55546:function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleMapsEmbed=void 0;let o=i(r(26802)),a=r(15781);t.GoogleMapsEmbed=e=>{var t=n(e,[]);return(0,a.formatData)(o.default,t)}},56111:function(e,t,r){var n,i;void 0===(i="function"==typeof(n=function(){var e,t,r,n={};n.version="0.2.0";var i=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function o(e,t,r){return e<t?t:e>r?r:e}n.configure=function(e){var t,r;for(t in e)void 0!==(r=e[t])&&e.hasOwnProperty(t)&&(i[t]=r);return this},n.status=null,n.set=function(e){var t=n.isStarted();n.status=1===(e=o(e,i.minimum,1))?null:e;var r=n.render(!t),c=r.querySelector(i.barSelector),l=i.speed,u=i.easing;return r.offsetWidth,a(function(t){var o,a,d,h;""===i.positionUsing&&(i.positionUsing=n.getPositioningCSS()),s(c,(o=e,a=l,d=u,(h="translate3d"===i.positionUsing?{transform:"translate3d("+(-1+o)*100+"%,0,0)"}:"translate"===i.positionUsing?{transform:"translate("+(-1+o)*100+"%,0)"}:{"margin-left":(-1+o)*100+"%"}).transition="all "+a+"ms "+d,h)),1===e?(s(r,{transition:"none",opacity:1}),r.offsetWidth,setTimeout(function(){s(r,{transition:"all "+l+"ms linear",opacity:0}),setTimeout(function(){n.remove(),t()},l)},l)):setTimeout(t,l)}),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout(function(){n.status&&(n.trickle(),e())},i.trickleSpeed)};return i.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*o(Math.random()*t,.1,.95)),t=o(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*i.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()&&(0===t&&n.start(),e++,t++,r.always(function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");l(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=i.template;var r,o=t.querySelector(i.barSelector),a=e?"-100":(-1+(n.status||0))*100,c=document.querySelector(i.parent);return s(o,{transition:"all 0 linear",transform:"translate3d("+a+"%,0,0)"}),!i.showSpinner&&(r=t.querySelector(i.spinnerSelector))&&h(r),c!=document.body&&l(c,"nprogress-custom-parent"),c.appendChild(t),t},n.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(i.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&h(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var a=(r=[],function(e){r.push(e),1==r.length&&function e(){var t=r.shift();t&&t(e)}()}),s=function(){var e=["Webkit","O","Moz","ms"],t={};function r(r,n,i){var o;n=t[o=(o=n).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})]||(t[o]=function(t){var r=document.body.style;if(t in r)return t;for(var n,i=e.length,o=t.charAt(0).toUpperCase()+t.slice(1);i--;)if((n=e[i]+o)in r)return n;return t}(o)),r.style[n]=i}return function(e,t){var n,i,o=arguments;if(2==o.length)for(n in t)void 0!==(i=t[n])&&t.hasOwnProperty(n)&&r(e,n,i);else r(e,o[1],o[2])}}();function c(e,t){return("string"==typeof e?e:d(e)).indexOf(" "+t+" ")>=0}function l(e,t){var r=d(e),n=r+t;c(r,t)||(e.className=n.substring(1))}function u(e,t){var r,n=d(e);c(e,t)&&(e.className=(r=n.replace(" "+t+" "," ")).substring(1,r.length-1))}function d(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function h(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n})?n.call(t,r,t,e):n)||(e.exports=i)},57176:(e,t,r)=>{"use strict";r.d(t,{cY:()=>m,FA:()=>M,g:()=>H,u:()=>u,Uj:()=>l,Fy:()=>w,tD:()=>B,bD:()=>function e(t,r){if(t===r)return!0;let n=Object.keys(t),i=Object.keys(r);for(let o of n){if(!i.includes(o))return!1;let n=t[o],a=r[o];if(K(n)&&K(a)){if(!e(n,a))return!1}else if(n!==a)return!1}for(let e of i)if(!n.includes(e))return!1;return!0},hp:()=>J,T9:()=>g,Tj:()=>f,yU:()=>p,XA:()=>y,mS:()=>d,Ku:()=>$,ZQ:()=>A,sr:()=>j,zJ:()=>b,c1:()=>C,Im:()=>L,lT:()=>P,zW:()=>R,jZ:()=>k,lV:()=>I,nr:()=>T,Ov:()=>x,gE:()=>v,Am:()=>W,I9:()=>U,P1:()=>S,eX:()=>D});var n=r(95704);let i=function(e){let t=[],r=0;for(let n=0;n<e.length;n++){let i=e.charCodeAt(n);i<128?t[r++]=i:(i<2048?t[r++]=i>>6|192:((64512&i)==55296&&n+1<e.length&&(64512&e.charCodeAt(n+1))==56320?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++n)),t[r++]=i>>18|240,t[r++]=i>>12&63|128):t[r++]=i>>12|224,t[r++]=i>>6&63|128),t[r++]=63&i|128)}return t},o=function(e){let t=[],r=0,n=0;for(;r<e.length;){let i=e[r++];if(i<128)t[n++]=String.fromCharCode(i);else if(i>191&&i<224){let o=e[r++];t[n++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){let o=e[r++],a=((7&i)<<18|(63&o)<<12|(63&e[r++])<<6|63&e[r++])-65536;t[n++]=String.fromCharCode(55296+(a>>10)),t[n++]=String.fromCharCode(56320+(1023&a))}else{let o=e[r++],a=e[r++];
1t[n++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&a)}}return t.join("")},a={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();let r=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,n=[];for(let t=0;t<e.length;t+=3){let i=e[t],o=t+1<e.length,a=o?e[t+1]:0,s=t+2<e.length,c=s?e[t+2]:0,l=i>>2,u=(3&i)<<4|a>>4,d=(15&a)<<2|c>>6,h=63&c;!s&&(h=64,o||(d=64)),n.push(r[l],r[u],r[d],r[h])}return n.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(i(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):o(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();let r=t?this.charToByteMapWebSafe_:this.charToByteMap_,n=[];for(let t=0;t<e.length;){let i=r[e.charAt(t++)],o=t<e.length?r[e.charAt(t)]:0,a=++t<e.length?r[e.charAt(t)]:64,c=++t<e.length?r[e.charAt(t)]:64;if(++t,null==i||null==o||null==a||null==c)throw new s;let l=i<<2|o>>4;if(n.push(l),64!==a){let e=o<<4&240|a>>2;if(n.push(e),64!==c){let e=a<<6&192|c;n.push(e)}}}return n},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class s extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}let c=function(e){let t=i(e);return a.encodeByteArray(t,!0)},l=function(e){return c(e).replace(/\./g,"")},u=function(e){try{return a.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};function d(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw Error("Unable to locate global object.")}let h=()=>{try{return d().__FIREBASE_DEFAULTS__||(()=>{if(void 0===n||void 0===n.env)return;let e=n.env.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)})()||(()=>{let e;if("undefined"==typeof document)return;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(e){return}let t=e&&u(e[1]);return t&&JSON.parse(t)})()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},f=e=>{var t,r;return null==(r=null==(t=h())?void 0:t.emulatorHosts)?void 0:r[e]},p=e=>{let t=f(e);
1if(!t)return;let r=t.lastIndexOf(":");if(r<=0||r+1===t.length)throw Error(`Invalid host ${t} with no separate hostname and port!`);let n=parseInt(t.substring(r+1),10);return"["===t[0]?[t.substring(1,r-1),n]:[t.substring(0,r),n]},g=()=>{var e;return null==(e=h())?void 0:e.config},y=e=>{var t;return null==(t=h())?void 0:t[`_${e}`]};class m{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,r)=>{t?this.reject(t):this.resolve(r),"function"==typeof e&&(this.promise.catch(()=>{}),1===e.length?e(t):e(t,r))}}}function b(e){try{return(e.startsWith("http://")||e.startsWith("https://")?new URL(e).hostname:e).endsWith(".cloudworkstations.dev")}catch(e){return!1}}async function v(e){return(await fetch(e,{credentials:"include"})).ok}function w(e,t){if(e.uid)throw Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');let r=t||"demo-project",n=e.iat||0,i=e.sub||e.user_id;if(!i)throw Error("mockUserToken must contain 'sub' or 'user_id' field!");let o=Object.assign({iss:`https://securetoken.google.com/${r}`,aud:r,iat:n,exp:n+3600,auth_time:n,sub:i,user_id:i,firebase:{sign_in_provider:"custom",identities:{}}},e);return[l(JSON.stringify({alg:"none",type:"JWT"})),l(JSON.stringify(o)),""].join(".")}let E={},_=!1;function S(e,t){if("undefined"==typeof window||"undefined"==typeof document||!b(window.location.host)||E[e]===t||E[e]||_)return;function r(e){return`__firebase__banner__${e}`}E[e]=t;let n="__firebase__banner",i=function(){let e={prod:[],emulator:[]};for(let t of Object.keys(E))E[t]?e.emulator.push(t):e.prod.push(t);return e}().prod.length>0;function o(){let e,t,o=(e=document.getElementById(n),t=!1,e||((e=document.createElement("div")).setAttribute("id",n),t=!0),{created:t,element:e}),a=r("text"),s=document.getElementById(a)||document.createElement("span"),c=r("learnmore"),l=document.getElementById(c)||document.createElement("a"),u=r("preprendIcon"),d=document.getElementById(u)||document.createElementNS("http://www.w3.org/2000/svg","svg");if(o.created){let e=o.element;e.style.display="flex",e.style.background="#7faaf0",e.style.position="fixed",e.style.bottom="5px",e.style.left="5px",e.style.padding=".5em",e.style.borderRadius="5px",e.style.alignItems="center",l.setAttribute("id",c),l.innerText="Learn more",l.href="https://firebase.google.com/docs/studio/preview-apps#preview-backend",l.setAttribute("target","__blank"),l.style.paddingLeft="5px",l.style.textDecoration="underline";let t=function(){let e=document.createElement("span");return e.style.cursor="pointer",e.style.marginLeft="16px",e.style.fontSize="24px",e.innerHTML=" &times;",e.onclick=()=>{_=!0;let e=document.getElementById(n);e&&e.remove()},e}();d.setAttribute("width","24"),d.setAttribute("id",u),d.setAttribute("height","24"),d.setAttribute("viewBox","0 0 24 24"),d.setAttribute("fill","none"),d.style.marginLeft="-6px",e.append(d,s,l,t),document.body.appendChild(e)}i?(s.innerText="Preview backend disconnected.",d.innerHTML=`<g clip-path="url(#clip0_6013_33858)">
2<path d="M4.8 17.6L12 5.6L19.2 17.6H4.8ZM6.91667 16.4H17.0833L12 7.93333L6.91667 16.4ZM12 15.6C12.1667 15.6 12.3056 15.5444 12.4167 15.4333C12.5389 15.3111 12.6 15.1667 12.6 15C12.6 14.8333 12.5389 14.6944 12.4167 14.5833C12.3056 14.4611 12.1667 14.4 12 14.4C11.8333 14.4 11.6889 14.4611 11.5667 14.5833C11.4556 14.6944 11.4 14.8333 11.4 15C11.4 15.1667 11.4556 15.3111 11.5667 15.4333C11.6889 15.5444 11.8333 15.6 12 15.6ZM11.4 13.6H12.6V10.4H11.4V13.6Z" fill="#212121"/>
3</g>
4<defs>
5<clipPath id="clip0_6013_33858">
6<rect width="24" height="24" fill="white"/>
7</clipPath>
8</defs>`):(d.innerHTML=`<g clip-path="url(#clip0_6083_34804)">
9<path d="M11.4 15.2H12.6V11.2H11.4V15.2ZM12 10C12.1667 10 12.3056 9.94444 12.4167 9.83333C12.5389 9.71111 12.6 9.56667 12.6 9.4C12.6 9.23333 12.5389 9.09444 12.4167 8.98333C12.3056 8.86111 12.1667 8.8 12 8.8C11.8333 8.8 11.6889 8.86111 11.5667 8.98333C11.4556 9.09444 11.4 9.23333 11.4 9.4C11.4 9.56667 11.4556 9.71111 11.5667 9.83333C11.6889 9.94444 
911.8333 10 12 10ZM12 18.4C11.1222 18.4 10.2944 18.2333 9.51667 17.9C8.73889 17.5667 8.05556 17.1111 7.46667 16.5333C6.88889 15.9444 6.43333 15.2611 6.1 14.4833C5.76667 13.7056 5.6 12.8778 5.6 12C5.6 11.1111 5.76667 10.2833 6.1 9.51667C6.43333 8.73889 6.88889 8.06111 7.46667 7.48333C8.05556 6.89444 8.73889 6.43333 9.51667 6.1C10.2944 5.76667 11.1222 5.6 12 5.6C12.8889 5.6 13.7167 5.76667 14.4833 6.1C15.2611 6.43333 15.9389 6.89444 16.5167 7.48333C17.1056 8.06111 17.5667 8.73889 17.9 9.51667C18.2333 10.2833 18.4 11.1111 18.4 12C18.4 12.8778 18.2333 13.7056 17.9 14.4833C17.5667 15.2611 17.1056 15.9444 16.5167 16.5333C15.9389 17.1111 15.2611 17.5667 14.4833 17.9C13.7167 18.2333 12.8889 18.4 12 18.4ZM12 17.2C13.4444 17.2 14.6722 16.6944 15.6833 15.6833C16.6944 14.6722 17.2 13.4444 17.2 12C17.2 10.5556 16.6944 9.32778 15.6833 8.31667C14.6722 7.30555 13.4444 6.8 12 6.8C10.5556 6.8 9.32778 7.30555 8.31667 8.31667C7.30556 9.32778 6.8 10.5556 6.8 12C6.8 13.4444 7.30556 14.6722 8.31667 15.6833C9.32778 16.6944 10.5556 17.2 12 17.2Z" fill="#212121"/>
10</g>
11<defs>
12<clipPath id="clip0_6083_34804">
13<rect width="24" height="24" fill="white"/>
14</clipPath>
15</defs>`,s.innerText="Preview backend running in this workspace."),s.setAttribute("id",a)}"loading"===document.readyState?window.addEventListener("DOMContentLoaded",o):o()}function A(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function k(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(A())}function O(){var e;let t=null==(e=h())?void 0:e.forceEnvironment;if("node"===t)return!0;if("browser"===t)return!1;try{return"[object process]"===Object.prototype.toString.call(r.g.process)}catch(e){return!1}}function C(){return"undefined"!=typeof navigator&&"Cloudflare-Workers"===navigator.userAgent}function j(){let e="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof e&&void 0!==e.id}function I(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function P(){let e=A();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function T(){return!O()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function x(){return!O()&&!!navigator.userAgent&&(navigator.userAgent.includes("Safari")||navigator.userAgent.includes("WebKit"))&&!navigator.userAgent.includes("Chrome")}function R(){try{return"object"==typeof indexedDB}catch(e){return!1}}function D(){return new Promise((e,t)=>{try{let r=!0,n="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(n);i.onsuccess=()=>{i.result.close(),r||self.indexedDB.deleteDatabase(n),e(!0)},i.onupgradeneeded=()=>{r=!1},i.onerror=()=>{var e;t((null==(e=i.error)?void 0:e.message)||"")}}catch(e){t(e)}})}
15class H extends Error{constructor(e,t,r){super(t),this.code=e,this.customData=r,this.name="FirebaseError",Object.setPrototypeOf(this,H.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,M.prototype.create)}}class M{constructor(e,t,r){this.service=e,this.serviceName=t,this.errors=r}create(e,...t){var r,n;let i=t[0]||{},o=`${this.service}/${e}`,a=this.errors[e],s=a?(r=a,n=i,r.replace(N,(e,t)=>{let r=n[t];return null!=r?String(r):`<${t}?>`})):"Error",c=`${this.serviceName}: ${s} (${o}).`;return new H(o,c,i)}}let N=/\{\$([^}]+)}/g;function L(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function K(e){return null!==e&&"object"==typeof e}function W(e){let t=[];for(let[r,n]of Object.entries(e))Array.isArray(n)?n.forEach(e=>{t.push(encodeURIComponent(r)+"="+encodeURIComponent(e))}):t.push(encodeURIComponent(r)+"="+encodeURIComponent(n));return t.length?"&"+t.join("&"):""}function U(e){let t={};return e.replace(/^\?/,"").split("&").forEach(e=>{if(e){let[r,n]=e.split("=");t[decodeURIComponent(r)]=decodeURIComponent(n)}}),t}function J(e){let t=e.indexOf("?");if(!t)return"";let r=e.indexOf("#",t);return e.substring(t,r>0?r:void 0)}function B(e,t){let r=new F(e,t);return r.subscribe.bind(r)}class F{constructor(e,t){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(()=>{e(this)}).catch(e=>{this.error(e)})}next(e){this.forEachObserver(t=>{t.next(e)})}error(e){this.forEachObserver(t=>{t.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,t,r){let n;if(void 0===e&&void 0===t&&void 0===r)throw Error("Missing Observer.");void 0===(n=!function(e,t){if("object"!=typeof e||null===e)return!1;for(let r of t)if(r in e&&"function"==typeof e[r])return!0;return!1}(e,["next","error","complete"])?{next:e,error:t,complete:r}:e).next&&(n.next=G),void 0===n.error&&(n.error=G),void 0===n.complete&&(n.complete=G);let i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?n.error(this.finalError):n.complete()}catch(e){}}),this.observers.push(n),i}unsubscribeOne(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let t=0;t<this.observers.length;t++)this.sendOne(t,e)}sendOne(e,t){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[e])try{t(this.observers[e])}catch(e){"undefined"!=typeof console&&console.error&&console.error(e)}})}close(e){this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function G(){}function $(e){return e&&e._delegate?e._delegate:e}},57445:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{html:t,height:r=null,width:o=null,children:a,dataNtpc:s=""}=e;return(0,i.useEffect)(()=>{s&&performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-".concat(s)}})},[s]),(0,n.jsxs)(n.Fragment,{children:[a,t?(0,n.jsx)("div",{style:{height:null!=r?"".concat(r,"px"):"auto",width:null!=o?"".concat(o,"px"):"auto"},"data-ntpc":s,dangerouslySetInnerHTML:{__html:t}}):null]})};let n=r(95155),i=r(12115)},58254:(e,t,r)=>{"use strict";let n,i,o;r.r(t),r.d(t,{CompactEncrypt:()=>td,CompactSign:()=>tp,EmbeddedJWK:()=>tA,EncryptJWT:()=>tw,FlattenedEncrypt:()=>e3,FlattenedSign:()=>tf,GeneralEncrypt:()=>e4,GeneralSign:()=>ty,SignJWT:()=>tv,UnsecuredJWT:()=>tH,base64url:()=>s,calculateJwkThumbprint:()=>t_,calculateJwkThumbprintUri:()=>tS,compactDecrypt:()=>eY,compactVerify:()=>tr,createLocalJWKSet:()=>tI,createRemoteJWKSet:()=>tR,cryptoRuntime:()=>tG,decodeJwt:()=>tK,decodeProtectedHeader:()=>tL,errors:()=>a,experimental_jwksCache:()=>tD,exportJWK:()=>e5,exportPKCS8:()=>e2,exportSPKI:()=>e1,flattenedDecrypt:()=>eq,flattenedVerify:()=>tt,generalDecrypt:()=>eZ,generalVerify:()=>tn,generateKeyPair:()=>tB,generateSecret:()=>tF,importJWK:()=>eM,importPKCS8:()=>eH,importSPKI:()=>eR,importX509:()=>eD,jwksCache:()=>tT,jwtDecrypt:()=>tu,jwtVerify:()=>tl});var a={};r.r(a),r.d(a,{JOSEAlgNotAllowed:()=>k,JOSEError:()=>_,JOSENotSupported:()=>O,JWEDecryptionFailed:()=>C,JWEInvalid:()=>j,JWKInvalid:()=>T,JWKSInvalid:()=>x,JWKSMultipleMatchingKeys:()=>D,JWKSNoMatchingKey:()=>R,JWKSTimeout:()=>H,JWSInvalid:()=>I,JWSSignatureVerificationFailed:()=>M,JWTClaimValidationFailed:()=>S,JWTExpired:()=>A,JWTInvalid:()=>P});var s={};r.r(s),r.d(s,{decode:()=>tN,encode:()=>tM});let c=crypto,l=async(e,t)=>{let r=`SHA-${e.slice(-3)}`;return new Uint8Array(await c.subtle.digest(r,t))},u=new TextEncoder,d=new TextDecoder;function h(...e){let t=new Uint8Array(e.reduce((e,{length:t})=>e+t,0)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}function f(e,t,r){if(t<0||t>=0x100000000)throw RangeError(`value must be >= 0 and <= ${0x100000000-1}. Received ${t}`);e.set([t>>>24,t>>>16,t>>>8,255&t],r)}
15function p(e){let t=Math.floor(e/0x100000000),r=new Uint8Array(8);return f(r,t,0),f(r,e%0x100000000,4),r}function g(e){let t=new Uint8Array(4);return f(t,e),t}function y(e){return h(g(e.length),e)}async function m(e,t,r){let n=Math.ceil((t>>3)/32),i=new Uint8Array(32*n);for(let t=0;t<n;t++){let n=new Uint8Array(4+e.length+r.length);n.set(g(t+1)),n.set(e,4),n.set(r,4+e.length),i.set(await l("sha256",n),32*t)}return i.slice(0,t>>3)}let b=e=>{let t=e;"string"==typeof t&&(t=u.encode(t));let r=[];for(let e=0;e<t.length;e+=32768)r.push(String.fromCharCode.apply(null,t.subarray(e,e+32768)));return btoa(r.join(""))},v=e=>b(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"),w=e=>{let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r},E=e=>{let t=e;t instanceof Uint8Array&&(t=d.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return w(t)}catch{throw TypeError("The input to be decoded is not correctly encoded.")}};class _ extends Error{constructor(e,t){super(e,t),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}}_.code="ERR_JOSE_GENERIC";class S extends _{constructor(e,t,r="unspecified",n="unspecified"){super(e,{cause:{claim:r,reason:n,payload:t}}),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=r,this.reason=n,this.payload=t}}S.code="ERR_JWT_CLAIM_VALIDATION_FAILED";class A extends _{constructor(e,t,r="unspecified",n="unspecified"){super(e,{cause:{claim:r,reason:n,payload:t}}),this.code="ERR_JWT_EXPIRED",this.claim=r,this.reason=n,this.payload=t}}A.code="ERR_JWT_EXPIRED";class k extends _{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}}k.code="ERR_JOSE_ALG_NOT_ALLOWED";class O extends _{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}}O.code="ERR_JOSE_NOT_SUPPORTED";class C extends _{constructor(e="decryption operation failed",t){super(e,t),this.code="ERR_JWE_DECRYPTION_FAILED"}}C.code="ERR_JWE_DECRYPTION_FAILED";class j extends _{constructor(){super(...arguments),this.code="ERR_JWE_INVALID"}}j.code="ERR_JWE_INVALID";class I extends _{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}}I.code="ERR_JWS_INVALID";class P extends _{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}}P.code="ERR_JWT_INVALID";class T extends _{constructor(){super(...arguments),this.code="ERR_JWK_INVALID"}}T.code="ERR_JWK_INVALID";class x extends _{constructor(){super(...arguments),this.code="ERR_JWKS_INVALID"}}x.code="ERR_JWKS_INVALID";class R extends _{constructor(e="no applicable key found in the JSON Web Key Set",t){super(e,t),this.code="ERR_JWKS_NO_MATCHING_KEY"}}R.code="ERR_JWKS_NO_MATCHING_KEY";class D extends _{constructor(e="multiple matching keys found in the JSON Web Key Set",t){super(e,t),this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}Symbol.asyncIterator,D.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS";class H extends _{constructor(e="request timed out",t){super(e,t),this.code="ERR_JWKS_TIMEOUT"}}H.code="ERR_JWKS_TIMEOUT";class M extends _{constructor(e="signature verification failed",t){super(e,t),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}M.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED";let N=c.getRandomValues.bind(c);function L(e){switch(e){case"A128GCM":case"A128GCMKW":case"A192GCM":case"A192GCMKW":case"A256GCM":case"A256GCMKW":return 96;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return 128;default:throw new O(`Unsupported JWE Algorithm: ${e}`)}}let K=(e,t)=>{if(t.length<<3!==L(e))throw new j("Invalid Initialization Vector length")},W=(e,t)=>{let r=e.byteLength<<3;if(r!==t)throw new j(`Invalid Content Encryption Key length. Expected ${t} bits, got ${r} bits`)};function U(e,t="algorithm.name"){return TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function J(e,t){return e.name===t}function B(e){return parseInt(e.name.slice(4),10)}function F(e,t){if(t.length&&!t.some(t=>e.usages.includes(t))){let e="CryptoKey does not support this operation, its usages must include ";if(t.length>2){let r=t.pop();e+=`one of ${t.join(", ")}, or ${r}.`}else 2===t.length?e+=`one of ${t[0]} or ${t[1]}.`:e+=`${t[0]}.`;throw TypeError(e)}}function G(e,t,...r){switch(t){case"A128GCM":case"A192GCM":case"A256GCM":{if(!J(e.algorithm,"AES-GCM"))throw U("AES-GCM");let r=parseInt(t.slice(1,4),10);if(e.algorithm.length!==r)throw U(r,"algorithm.length");break}
15case"A128KW":case"A192KW":case"A256KW":{if(!J(e.algorithm,"AES-KW"))throw U("AES-KW");let r=parseInt(t.slice(1,4),10);if(e.algorithm.length!==r)throw U(r,"algorithm.length");break}case"ECDH":switch(e.algorithm.name){case"ECDH":case"X25519":case"X448":break;default:throw U("ECDH, X25519, or X448")}break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":if(!J(e.algorithm,"PBKDF2"))throw U("PBKDF2");break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{if(!J(e.algorithm,"RSA-OAEP"))throw U("RSA-OAEP");let r=parseInt(t.slice(9),10)||1;if(B(e.algorithm.hash)!==r)throw U(`SHA-${r}`,"algorithm.hash");break}default:throw TypeError("CryptoKey does not support this operation")}F(e,r)}function $(e,t,...r){if((r=r.filter(Boolean)).length>2){let t=r.pop();e+=`one of type ${r.join(", ")}, or ${t}.`}else 2===r.length?e+=`one of type ${r[0]} or ${r[1]}.`:e+=`of type ${r[0]}.`;return null==t?e+=` Received ${t}`:"function"==typeof t&&t.name?e+=` Received function ${t.name}`:"object"==typeof t&&null!=t&&t.constructor?.name&&(e+=` Received an instance of ${t.constructor.name}`),e}let V=(e,...t)=>$("Key must be ",e,...t);function z(e,t,...r){return $(`Key for the ${e} algorithm must be `,t,...r)}let X=e=>e instanceof CryptoKey||e?.[Symbol.toStringTag]==="KeyObject",q=["CryptoKey"];async function Y(e,t,r,n,i,o){let a,s;if(!(t instanceof Uint8Array))throw TypeError(V(t,"Uint8Array"));let l=parseInt(e.slice(1,4),10),u=await c.subtle.importKey("raw",t.subarray(l>>3),"AES-CBC",!1,["decrypt"]),d=await c.subtle.importKey("raw",t.subarray(0,l>>3),{hash:`SHA-${l<<1}`,name:"HMAC"},!1,["sign"]),f=h(o,n,r,p(o.length<<3)),g=new Uint8Array((await c.subtle.sign("HMAC",d,f)).slice(0,l>>3));try{a=((e,t)=>{if(!(e instanceof Uint8Array))throw TypeError("First argument must be a buffer");if(!(t instanceof Uint8Array))throw TypeError("Second argument must be a buffer");if(e.length!==t.length)throw TypeError("Input buffers must have the same length");let r=e.length,n=0,i=-1;for(;++i<r;)n|=e[i]^t[i];return 0===n})(i,g)}catch{}if(!a)throw new C;try{s=new Uint8Array(await c.subtle.decrypt({iv:n,name:"AES-CBC"},u,r))}catch{}if(!s)throw new C;return s}async function Z(e,t,r,n,i,o){let a;t instanceof Uint8Array?a=await c.subtle.importKey("raw",t,"AES-GCM",!1,["decrypt"]):(G(t,e,"decrypt"),a=t);try{return new Uint8Array(await c.subtle.decrypt({additionalData:o,iv:n,name:"AES-GCM",tagLength:128},a,h(r,i)))}catch{throw new C}}let Q=async(e,t,r,n,i,o)=>{if(!(t instanceof CryptoKey)&&!(t instanceof Uint8Array))throw TypeError(V(t,...q,"Uint8Array"));if(!n)throw new j("JWE Initialization Vector missing");if(!i)throw new j("JWE Authentication Tag missing");switch(K(e,n),e){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return t instanceof Uint8Array&&W(t,parseInt(e.slice(-3),10)),Y(e,t,r,n,i,o);case"A128GCM":case"A192GCM":case"A256GCM":return t instanceof Uint8Array&&W(t,parseInt(e.slice(1,4),10)),Z(e,t,r,n,i,o);default:throw new O("Unsupported JWE Content Encryption Algorithm")}},ee=(...e)=>{let t,r=e.filter(Boolean);if(0===r.length||1===r.length)return!0;for(let e of r){let r=Object.keys(e);if(!t||0===t.size){t=new Set(r);continue}for(let e of r){if(t.has(e))return!1;t.add(e)}}return!0};function et(e){if("object"!=typeof e||null===e||"[object Object]"!==Object.prototype.toString.call(e))return!1;if(null===Object.getPrototypeOf(e))return!0;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}let er=[{hash:"SHA-256",name:"HMAC"},!0,["sign"]];function en(e,t){if(e.algorithm.length!==parseInt(t.slice(1,4),10))throw TypeError(`Invalid key size for alg: ${t}`)}function ei(e,t,r){if(e instanceof CryptoKey)return G(e,t,r),e;if(e instanceof Uint8Array)return c.subtle.importKey("raw",e,"AES-KW",!0,[r]);throw TypeError(V(e,...q,"Uint8Array"))}let eo=async(e,t,r)=>{let n=await ei(t,e,"wrapKey");en(n,e);let i=await c.subtle.importKey("raw",r,...er);return new Uint8Array(await c.subtle.wrapKey("raw",i,n,"AES-KW"))},ea=async(e,t,r)=>{let n=await ei(t,e,"unwrapKey");en(n,e);let i=await c.subtle.unwrapKey("raw",r,n,"AES-KW",...er);return new Uint8Array(await c.subtle.exportKey("raw",i))};async function es(e,t,r,n,i=new Uint8Array(0),o=new Uint8Array(0)){let a;if(!(e instanceof CryptoKey))throw TypeError(V(e,...q));if(G(e,"ECDH"),!(t instanceof CryptoKey))throw TypeError(V(t,...q));G(t,"ECDH","deriveBits");let s=h(y(u.encode(r)),y(i),y(o),g(n));return a="X25519"===e.algorithm.name?256:"X448"===e.algorithm.name?448:Math.ceil(parseInt(e.algorithm.namedCurve.substr(-3),10)/8)<<3,m(new 
15Uint8Array(await c.subtle.deriveBits({name:e.algorithm.name,public:e},t,a)),n,s)}async function ec(e){if(!(e instanceof CryptoKey))throw TypeError(V(e,...q));return c.subtle.generateKey(e.algorithm,!0,["deriveBits"])}function el(e){if(!(e instanceof CryptoKey))throw TypeError(V(e,...q));return["P-256","P-384","P-521"].includes(e.algorithm.namedCurve)||"X25519"===e.algorithm.name||"X448"===e.algorithm.name}async function eu(e,t,r,n){if(!(e instanceof Uint8Array)||e.length<8)throw new j("PBES2 Salt Input must be 8 or more octets");let i=h(u.encode(t),new Uint8Array([0]),e),o=parseInt(t.slice(13,16),10),a={hash:`SHA-${t.slice(8,11)}`,iterations:r,name:"PBKDF2",salt:i},s=await function(e,t){if(e instanceof Uint8Array)return c.subtle.importKey("raw",e,"PBKDF2",!1,["deriveBits"]);if(e instanceof CryptoKey)return G(e,t,"deriveBits","deriveKey"),e;throw TypeError(V(e,...q,"Uint8Array"))}(n,t);if(s.usages.includes("deriveBits"))return new Uint8Array(await c.subtle.deriveBits(a,s,o));if(s.usages.includes("deriveKey"))return c.subtle.deriveKey(a,s,{length:o,name:"AES-KW"},!1,["wrapKey","unwrapKey"]);throw TypeError('PBKDF2 key "usages" must include "deriveBits" or "deriveKey"')}let ed=async(e,t,r,n=2048,i=N(new Uint8Array(16)))=>{let o=await eu(i,e,n,t);return{encryptedKey:await eo(e.slice(-6),o,r),p2c:n,p2s:v(i)}},eh=async(e,t,r,n,i)=>{let o=await eu(i,e,n,t);return ea(e.slice(-6),o,r)};function ef(e){switch(e){case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":return"RSA-OAEP";default:throw new O(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}let ep=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){let{modulusLength:r}=t.algorithm;if("number"!=typeof r||r<2048)throw TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}},eg=async(e,t,r)=>{if(!(t instanceof CryptoKey))throw TypeError(V(t,...q));if(G(t,e,"encrypt","wrapKey"),ep(e,t),t.usages.includes("encrypt"))return new Uint8Array(await c.subtle.encrypt(ef(e),t,r));if(t.usages.includes("wrapKey")){let n=await c.subtle.importKey("raw",r,...er);return new Uint8Array(await c.subtle.wrapKey("raw",n,t,ef(e)))}throw TypeError('RSA-OAEP key "usages" must include "encrypt" or "wrapKey" for this operation')},ey=async(e,t,r)=>{if(!(t instanceof CryptoKey))throw TypeError(V(t,...q));if(G(t,e,"decrypt","unwrapKey"),ep(e,t),t.usages.includes("decrypt"))return new Uint8Array(await c.subtle.decrypt(ef(e),t,r));if(t.usages.includes("unwrapKey")){let n=await c.subtle.unwrapKey("raw",r,t,ef(e),...er);return new Uint8Array(await c.subtle.exportKey("raw",n))}throw TypeError('RSA-OAEP key "usages" must include "decrypt" or "unwrapKey" for this operation')};function em(e){return et(e)&&"string"==typeof e.kty}let eb=async e=>{if(!e.alg)throw TypeError('"alg" argument is required when "jwk.alg" is not present');let{algorithm:t,keyUsages:r}=function(e){let t,r;switch(e.kty){case"RSA":switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`},r=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new O('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"EC":switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"},r=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"},r=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new O('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"OKP":switch(e.alg){case"Ed25519":t={name:"Ed25519"},r=e.d?["sign"]:["verify"];break;case"EdDSA":t={name:e.crv},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new O('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;default:throw new O('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:r}}(e),n=[t,e.ext??!1,e.key_ops??r],i={...e};return delete i.alg,delete i.use,c.subtle.importKey("jwk",i,...n)},ev=e=>E(e),ew=e=>e?.[Symbol.toStringTag]==="KeyObject",eE=async(e,t,r,n,i=!1)=>{let o=e.get(t);if(o?.[n])return o[n];let a=await eb({...r,alg:n});return i&&Object.freeze(t),o?o[n]=a:e.set(t,{[n]:a}),a},e_={normalizePublicKey:(e,t)=>{if(ew(e)){let r=e.export({format:"jwk"});return(delete r.d,delete r.dp,delete r.dq,delete r.p,delete r.q,delete r.qi,r.k)?ev(r.k):(i||(i=new WeakMap),eE(i,e,r,t))}return em(e)?e.k?E(e.k):(i||(i=new WeakMap),eE(i,e,e,t,!0)):e},normalizePrivateKey:(e,t)=>{if(ew(e)){let r=e.export({format:"jwk"});return r.k?ev(r.k):(n||(n=new WeakMap),eE(n,e,r,t))}return em(e)?e.k?E(e.k):(n||(n=new WeakMap),eE(n,e,e,t,!0)):e}};function eS(e){switch(e){case"A128GCM":return 128;case"A192GCM":return 192;case"A256GCM":case"A128CBC-HS256":return 256;case"A192CBC-HS384":return 384;case"A256CBC-HS512":return 512;default:throw new O(`Unsupported JWE Algorithm: ${e}`)}}let eA=e=>N(new Uint8Array(eS(e)>>3)),ek=(e,t)=>{let r=(e.match(/.{1,64}/g)||[]).join("\n");return`-----BEGIN ${t}-----
16${r}
17-----END ${t}-----`},eO=async(e,t,r)=>{if(!(r instanceof CryptoKey))throw TypeError(V(r,...q));if(!r.extractable)throw TypeError("CryptoKey is not extractable");if(r.type!==e)throw TypeError(`key is not a ${e} key`);return ek(b(new Uint8Array(await c.subtle.exportKey(t,r))),`${e.toUpperCase()} KEY`)},eC=(e,t,r=0)=>{0===r&&(t.unshift(t.length),t.unshift(6));let n=e.indexOf(t[0],r);if(-1===n)return!1;let i=e.subarray(n,n+t.length);return i.length===t.length&&(i.every((e,r)=>e===t[r])||eC(e,t,n+1))},ej=e=>{switch(!0){case eC(e,[42,134,72,206,61,3,1,7]):return"P-256";case eC(e,[43,129,4,0,34]):return"P-384";case eC(e,[43,129,4,0,35]):return"P-521";case eC(e,[43,101,110]):return"X25519";case eC(e,[43,101,111]):return"X448";case eC(e,[43,101,112]):return"Ed25519";case eC(e,[43,101,113]):return"Ed448";default:throw new O("Invalid or unsupported EC Key Curve or OKP Key Sub Type")}},eI=async(e,t,r,n,i)=>{let o,a,s=new Uint8Array(atob(r.replace(e,"")).split("").map(e=>e.charCodeAt(0))),l="spki"===t;switch(n){case"PS256":case"PS384":case"PS512":o={name:"RSA-PSS",hash:`SHA-${n.slice(-3)}`},a=l?["verify"]:["sign"];break;case"RS256":case"RS384":case"RS512":o={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${n.slice(-3)}`},a=l?["verify"]:["sign"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":o={name:"RSA-OAEP",hash:`SHA-${parseInt(n.slice(-3),10)||1}`},a=l?["encrypt","wrapKey"]:["decrypt","unwrapKey"];break;case"ES256":o={name:"ECDSA",namedCurve:"P-256"},a=l?["verify"]:["sign"];break;case"ES384":o={name:"ECDSA",namedCurve:"P-384"},a=l?["verify"]:["sign"];break;case"ES512":o={name:"ECDSA",namedCurve:"P-521"},a=l?["verify"]:["sign"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{let e=ej(s);o=e.startsWith("P-")?{name:"ECDH",namedCurve:e}:{name:e},a=l?[]:["deriveBits"];break}
17case"Ed25519":o={name:"Ed25519"},a=l?["verify"]:["sign"];break;case"EdDSA":o={name:ej(s)},a=l?["verify"]:["sign"];break;default:throw new O('Invalid or unsupported "alg" (Algorithm) value')}return c.subtle.importKey(t,s,o,i?.extractable??!1,a)},eP=(e,t,r)=>eI(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g,"spki",e,t,r);function eT(e){let t=[],r=0;for(;r<e.length;){let n=ex(e.subarray(r));t.push(n),r+=n.byteLength}return t}function ex(e){let t=0,r=31&e[0];if(t++,31===r){for(r=0;e[t]>=128;)r=128*r+e[t]-128,t++;r=128*r+e[t]-128,t++}let n=0;if(e[t]<128)n=e[t],t++;else if(128===n){for(n=0;0!==e[t+n]||0!==e[t+n+1];){if(n>e.byteLength)throw TypeError("invalid indefinite form length");n++}let r=t+n+2;return{byteLength:r,contents:e.subarray(t,t+n),raw:e.subarray(0,r)}}else{let r=127&e[t];t++,n=0;for(let i=0;i<r;i++)n=256*n+e[t],t++}let i=t+n;return{byteLength:i,contents:e.subarray(t,i),raw:e.subarray(0,i)}}async function eR(e,t,r){if("string"!=typeof e||0!==e.indexOf("-----BEGIN PUBLIC KEY-----"))throw TypeError('"spki" must be SPKI formatted string');return eP(e,t,r)}async function eD(e,t,r){let n;if("string"!=typeof e||0!==e.indexOf("-----BEGIN CERTIFICATE-----"))throw TypeError('"x509" must be X.509 formatted string');try{n=ek(function(e){let t=eT(eT(ex(e).contents)[0].contents);return b(t[160===t[0].raw[0]?6:5].raw)}(w(e.replace(/(?:-----(?:BEGIN|END) CERTIFICATE-----|\s)/g,""))),"PUBLIC KEY")}catch(e){throw TypeError("Failed to parse the X.509 certificate",{cause:e})}return eP(n,t,r)}async function eH(e,t,r){if("string"!=typeof e||0!==e.indexOf("-----BEGIN PRIVATE KEY-----"))throw TypeError('"pkcs8" must be PKCS#8 formatted string');return eI(/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g,"pkcs8",e,t,r)}async function eM(e,t){if(!et(e))throw TypeError("JWK must be an object");switch(t||(t=e.alg),e.kty){case"oct":if("string"!=typeof e.k||!e.k)throw TypeError('missing "k" (Key Value) Parameter value');return E(e.k);case"RSA":if("oth"in e&&void 0!==e.oth)throw new O('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');case"EC":case"OKP":return eb({...e,alg:t});default:throw new O('Unsupported "kty" (Key Type) Parameter value')}}let eN=e=>e?.[Symbol.toStringTag],eL=(e,t,r)=>{if(void 0!==t.use&&"sig"!==t.use)throw TypeError("Invalid key for this operation, when present its use must be sig");if(void 0!==t.key_ops&&t.key_ops.includes?.(r)!==!0)throw TypeError(`Invalid key for this operation, when present its key_ops must include ${r}`);if(void 0!==t.alg&&t.alg!==e)throw TypeError(`Invalid key for this operation, when present its alg must be ${e}`);return!0};function eK(e,t,r,n){t.startsWith("HS")||"dir"===t||t.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(t)?((e,t,r,n)=>{if(!(t instanceof Uint8Array)){if(n&&em(t)){var i;if(em(i=t)&&"oct"===i.kty&&"string"==typeof i.k&&eL(e,t,r))return;throw TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present')}if(!X(t))throw TypeError(z(e,t,...q,"Uint8Array",n?"JSON Web Key":null));if("secret"!==t.type)throw TypeError(`${eN(t)} instances for symmetric algorithms must be of type "secret"`)}})(t,r,n,e):((e,t,r,n)=>{var i,o;if(n&&em(t))switch(r){case"sign":if("oct"!==(i=t).kty&&"string"==typeof i.d&&eL(e,t,r))return;throw TypeError("JSON Web Key for this operation be a private JWK");case"verify":if("oct"!==(o=t).kty&&void 0===o.d&&eL(e,t,r))return;throw TypeError("JSON Web Key for this operation be a public JWK")}if(!X(t))throw TypeError(z(e,t,...q,n?"JSON Web Key":null));if("secret"===t.type)throw TypeError(`${eN(t)} instances for asymmetric algorithms must not be of type "secret"`);if("sign"===r&&"public"===t.type)throw TypeError(`${eN(t)} instances for asymmetric algorithm signing must be of type "private"`);if("decrypt"===r&&"public"===t.type)throw TypeError(`${eN(t)} instances for asymmetric algorithm decryption must be of type "private"`);if(t.algorithm&&"verify"===r&&"private"===t.type)throw TypeError(`${eN(t)} instances for asymmetric algorithm verifying must be of type "public"`);if(t.algorithm&&"encrypt"===r&&"private"===t.type)throw TypeError(`${eN(t)} instances for asymmetric algorithm encryption must be of type "public"`)})(t,r,n,e)}let eW=eK.bind(void 0,!1),eU=eK.bind(void 0,!0);async function eJ(e,t,r,n,i){if(!(r instanceof Uint8Array))throw TypeError(V(r,"Uint8Array"));let o=parseInt(e.slice(1,4),10),a=await c.subtle.importKey("raw",r.subarray(o>>3),"AES-CBC",!1,["encrypt"]),s=await c.subtle.importKey("raw",r.subarray(0,o>>3),{hash:`SHA-${o<<1}`,name:"HMAC"},!1,["sign"]),l=new Uint8Array(await c.subtle.encrypt({iv:n,name:"AES-CBC"},a,t)),u=h(i,n,l,p(i.length<<3));return{ciphertext:l,tag:new Uint8Array((await c.subtle.sign("HMAC",s,u)).slice(0,o>>3)),iv:n}}async function eB(e,t,r,n,i){let o;r instanceof Uint8Array?o=await c.subtle.importKey("raw",r,"AES-GCM",!1,["encrypt"]):(G(r,e,"encrypt"),o=r);let a=new Uint8Array(await c.subtle.encrypt({additionalData:i,iv:n,name:"AES-GCM",tagLength:128},o,t)),s=a.slice(-16);return{ciphertext:a.slice(0,-16),tag:s,iv:n}}let eF=async(e,t,r,n,i)=>{if(!(r instanceof CryptoKey)&&!(r instanceof Uint8Array))throw TypeError(V(r,...q,"Uint8Array"));switch(n?K(e,n):n=N(new Uint8Array(L(e)>>3)),e){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return r instanceof Uint8Array&&W(r,parseInt(e.slice(-3),10)),eJ(e,t,r,n,i);case"A128GCM":case"A192GCM":case"A256GCM":return r instanceof Uint8Array&&W(r,parseInt(e.slice(1,4),10)),eB(e,t,r,n,i);default:throw new O("Unsupported JWE Content Encryption Algorithm")}};async function eG(e,t,r,n){let i=e.slice(0,7),o=await eF(i,r,t,n,new Uint8Array(0));return{encryptedKey:o.ciphertext,iv:v(o.iv),tag:v(o.tag)}}async function e$(e,t,r,n,i){return Q(e.slice(0,7),t,r,n,i,new Uint8Array(0))}async function eV(e,t,r,n,i){switch(eW(e,t,"decrypt"),t=await e_.normalizePrivateKey?.(t,e)||t,e){case"dir":if(void 0!==r)throw new j("Encountered unexpected JWE Encrypted Key");return t;case"ECDH-ES":if(void 0!==r)throw new j("Encountered unexpected JWE Encrypted Key");case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{let i,o;if(!et(n.epk))throw new j('JOSE Header "epk" (Ephemeral Public Key) missing or invalid');if(!el(t))throw new O("ECDH with the provided key is not allowed or not supported by your javascript runtime");let a=await eM(n.epk,e);if(void 0!==n.apu){if("string"!=typeof n.apu)throw new j('JOSE Header "apu" (Agreement PartyUInfo) invalid');try{i=E(n.apu)}catch{throw new j("Failed to base64url decode the apu")}}if(void 0!==n.apv){if("string"!=typeof n.apv)throw new j('JOSE Header "apv" (Agreement PartyVInfo) invalid');try{o=E(n.apv)}catch{throw new j("Failed to base64url decode the apv")}}let s=await es(a,t,"ECDH-ES"===e?n.enc:e,"ECDH-ES"===e?eS(n.enc):parseInt(e.slice(-5,-2),10),i,o);if("ECDH-ES"===e)return s;if(void 0===r)throw new j("JWE Encrypted Key missing");return ea(e.slice(-6),s,r)}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":if(void 0===r)throw new j("JWE Encrypted Key missing");return ey(e,t,r);case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{let o;if(void 0===r)throw new j("JWE Encrypted Key missing");if("number"!=typeof n.p2c)throw new j('JOSE Header "p2c" (PBES2 Count) missing or invalid');let a=i?.maxPBES2Count||1e4;if(n.p2c>a)throw new j('JOSE Header "p2c" (PBES2 Count) out is of acceptable bounds');if("string"!=typeof n.p2s)throw new j('JOSE Header "p2s" (PBES2 Salt) missing or invalid');try{o=E(n.p2s)}catch{throw new j("Failed to base64url decode the p2s")}return eh(e,t,r,n.p2c,o)}
17case"A128KW":case"A192KW":case"A256KW":if(void 0===r)throw new j("JWE Encrypted Key missing");return ea(e,t,r);case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{let i,o;if(void 0===r)throw new j("JWE Encrypted Key missing");if("string"!=typeof n.iv)throw new j('JOSE Header "iv" (Initialization Vector) missing or invalid');if("string"!=typeof n.tag)throw new j('JOSE Header "tag" (Authentication Tag) missing or invalid');try{i=E(n.iv)}catch{throw new j("Failed to base64url decode the iv")}try{o=E(n.tag)}catch{throw new j("Failed to base64url decode the tag")}return e$(e,t,r,i,o)}default:throw new O('Invalid or unsupported "alg" (JWE Algorithm) header value')}}let ez=function(e,t,r,n,i){let o;if(void 0!==i.crit&&n?.crit===void 0)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!n||void 0===n.crit)return new Set;if(!Array.isArray(n.crit)||0===n.crit.length||n.crit.some(e=>"string"!=typeof e||0===e.length))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');for(let a of(o=void 0!==r?new Map([...Object.entries(r),...t.entries()]):t,n.crit)){if(!o.has(a))throw new O(`Extension Header Parameter "${a}" is not recognized`);if(void 0===i[a])throw new e(`Extension Header Parameter "${a}" is missing`);if(o.get(a)&&void 0===n[a])throw new e(`Extension Header Parameter "${a}" MUST be integrity protected`)}return new Set(n.crit)},eX=(e,t)=>{if(void 0!==t&&(!Array.isArray(t)||t.some(e=>"string"!=typeof e)))throw TypeError(`"${e}" option must be an array of strings`);if(t)return new Set(t)};async function eq(e,t,r){let n,i,o,a,s,c,l;if(!et(e))throw new j("Flattened JWE must be an object");if(void 0===e.protected&&void 0===e.header&&void 0===e.unprotected)throw new j("JOSE Header missing");if(void 0!==e.iv&&"string"!=typeof e.iv)throw new j("JWE Initialization Vector incorrect type");if("string"!=typeof e.ciphertext)throw new j("JWE Ciphertext missing or incorrect type");if(void 0!==e.tag&&"string"!=typeof e.tag)throw new j("JWE Authentication Tag incorrect type");if(void 0!==e.protected&&"string"!=typeof e.protected)throw new j("JWE Protected Header incorrect type");if(void 0!==e.encrypted_key&&"string"!=typeof e.encrypted_key)throw new j("JWE Encrypted Key incorrect type");if(void 0!==e.aad&&"string"!=typeof e.aad)throw new j("JWE AAD incorrect type");if(void 0!==e.header&&!et(e.header))throw new j("JWE Shared Unprotected Header incorrect type");if(void 0!==e.unprotected&&!et(e.unprotected))throw new j("JWE Per-Recipient Unprotected Header incorrect type");if(e.protected)try{let t=E(e.protected);n=JSON.parse(d.decode(t))}catch{throw new j("JWE Protected Header is invalid")}if(!ee(n,e.header,e.unprotected))throw new j("JWE Protected, JWE Unprotected Header, and JWE Per-Recipient Unprotected Header Parameter names must be disjoint");let f={...n,...e.header,...e.unprotected};if(ez(j,new Map,r?.crit,n,f),void 0!==f.zip)throw new O('JWE "zip" (Compression Algorithm) Header Parameter is not supported.');let{alg:p,enc:g}=f;if("string"!=typeof p||!p)throw new j("missing JWE Algorithm (alg) in JWE Header");if("string"!=typeof g||!g)throw new j("missing JWE Encryption Algorithm (enc) in JWE Header");let y=r&&eX("keyManagementAlgorithms",r.keyManagementAlgorithms),m=r&&eX("contentEncryptionAlgorithms",r.contentEncryptionAlgorithms);if(y&&!y.has(p)||!y&&p.startsWith("PBES2"))throw new k('"alg" (Algorithm) Header Parameter value not allowed');if(m&&!m.has(g))throw new k('"enc" (Encryption Algorithm) Header Parameter value not allowed');if(void 0!==e.encrypted_key)try{i=E(e.encrypted_key)}catch{throw new j("Failed to base64url decode the encrypted_key")}let b=!1;"function"==typeof t&&(t=await t(n,e),b=!0);try{o=await eV(p,t,i,f,r)}catch(e){if(e instanceof TypeError||e instanceof j||e instanceof O)throw e;o=eA(g)}if(void 0!==e.iv)try{a=E(e.iv)}catch{throw new j("Failed to base64url decode the iv")}if(void 0!==e.tag)try{s=E(e.tag)}catch{throw new j("Failed to base64url decode the tag")}let v=u.encode(e.protected??"");c=void 0!==e.aad?h(v,u.encode("."),u.encode(e.aad)):v;try{l=E(e.ciphertext)}catch{throw new j("Failed to base64url decode the ciphertext")}let w={plaintext:await Q(g,o,l,a,s,c)};if(void 0!==e.protected&&(w.protectedHeader=n),void 0!==e.aad)try{w.additionalAuthenticatedData=E(e.aad)}catch{throw new j("Failed to base64url decode the aad")}return(void 0!==e.unprotected&&(w.sharedUnprotectedHeader=e.unprotected),void 0!==e.header&&(w.unprotectedHeader=e.header),b)?{...w,key:t}:w}async function eY(e,t,r){if(e instanceof Uint8Array&&(e=d.decode(e)),"string"!=typeof e)throw new j("Compact JWE must be a string or Uint8Array");let{0:n,1:i,2:o,3:a,4:s,length:c}=e.split(".");if(5!==c)throw new j("Invalid Compact JWE");
17let l=await eq({ciphertext:a,iv:o||void 0,protected:n,tag:s||void 0,encrypted_key:i||void 0},t,r),u={plaintext:l.plaintext,protectedHeader:l.protectedHeader};return"function"==typeof t?{...u,key:l.key}:u}async function eZ(e,t,r){if(!et(e))throw new j("General JWE must be an object");if(!Array.isArray(e.recipients)||!e.recipients.every(et))throw new j("JWE Recipients missing or incorrect type");if(!e.recipients.length)throw new j("JWE Recipients has no members");for(let n of e.recipients)try{return await eq({aad:e.aad,ciphertext:e.ciphertext,encrypted_key:n.encrypted_key,header:n.header,iv:e.iv,protected:e.protected,tag:e.tag,unprotected:e.unprotected},t,r)}catch{}throw new C}let eQ=Symbol(),e0=async e=>{if(e instanceof Uint8Array)return{kty:"oct",k:v(e)};if(!(e instanceof CryptoKey))throw TypeError(V(e,...q,"Uint8Array"));if(!e.extractable)throw TypeError("non-extractable CryptoKey cannot be exported as a JWK");let{ext:t,key_ops:r,alg:n,use:i,...o}=await c.subtle.exportKey("jwk",e);return o};async function e1(e){return eO("public","spki",e)}async function e2(e){return eO("private","pkcs8",e)}async function e5(e){return e0(e)}async function e6(e,t,r,n,i={}){let o,a,s;switch(eW(e,r,"encrypt"),r=await e_.normalizePublicKey?.(r,e)||r,e){case"dir":s=r;break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{if(!el(r))throw new O("ECDH with the provided key is not allowed or not supported by your javascript runtime");let{apu:c,apv:l}=i,{epk:u}=i;u||(u=(await ec(r)).privateKey);let{x:d,y:h,crv:f,kty:p}=await e5(u),g=await es(r,u,"ECDH-ES"===e?t:e,"ECDH-ES"===e?eS(t):parseInt(e.slice(-5,-2),10),c,l);if(a={epk:{x:d,crv:f,kty:p}},"EC"===p&&(a.epk.y=h),c&&(a.apu=v(c)),l&&(a.apv=v(l)),"ECDH-ES"===e){s=g;break}s=n||eA(t);let y=e.slice(-6);o=await eo(y,g,s);break}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":s=n||eA(t),o=await eg(e,r,s);break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{s=n||eA(t);let{p2c:c,p2s:l}=i;({encryptedKey:o,...a}=await ed(e,r,s,c,l));break}case"A128KW":case"A192KW":case"A256KW":s=n||eA(t),o=await eo(e,r,s);break;case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{s=n||eA(t);let{iv:c}=i;({encryptedKey:o,...a}=await eG(e,r,s,c));break}default:throw new O('Invalid or unsupported "alg" (JWE Algorithm) header value')}return{cek:s,encryptedKey:o,parameters:a}}class e3{constructor(e){if(!(e instanceof Uint8Array))throw TypeError("plaintext must be an instance of Uint8Array");this._plaintext=e}setKeyManagementParameters(e){if(this._keyManagementParameters)throw TypeError("setKeyManagementParameters can only be called once");return this._keyManagementParameters=e,this}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setSharedUnprotectedHeader(e){if(this._sharedUnprotectedHeader)throw TypeError("setSharedUnprotectedHeader can only be called once");return this._sharedUnprotectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}setAdditionalAuthenticatedData(e){return this._aad=e,this}setContentEncryptionKey(e){if(this._cek)throw TypeError("setContentEncryptionKey can only be called once");return this._cek=e,this}setInitializationVector(e){if(this._iv)throw TypeError("setInitializationVector can only be called once");return this._iv=e,this}async encrypt(e,t){let r,n,i,o,a;if(!this._protectedHeader&&!this._unprotectedHeader&&!this._sharedUnprotectedHeader)throw new j("either setProtectedHeader, setUnprotectedHeader, or sharedUnprotectedHeader must be called before #encrypt()");if(!ee(this._protectedHeader,this._unprotectedHeader,this._sharedUnprotectedHeader))throw new j("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint");let s={...this._protectedHeader,...this._unprotectedHeader,...this._sharedUnprotectedHeader};if(ez(j,new Map,t?.crit,this._protectedHeader,s),void 0!==s.zip)throw new O('JWE "zip" (Compression Algorithm) Header Parameter is not supported.');let{alg:c,enc:l}=s;if("string"!=typeof c||!c)throw new j('JWE "alg" (Algorithm) Header Parameter missing or invalid');if("string"!=typeof l||!l)throw new j('JWE "enc" (Encryption Algorithm) Header Parameter missing or invalid');if(this._cek&&("dir"===c||"ECDH-ES"===c))throw TypeError(`setContentEncryptionKey cannot be called with JWE "alg" (Algorithm) Header ${c}`);{let i;({cek:n,encryptedKey:r,parameters:i}=await e6(c,l,e,this._cek,this._keyManagementParameters)),i&&(t&&eQ in t?this._unprotectedHeader?this._unprotectedHeader={...this._unprotectedHeader,...i}:this.setUnprotectedHeader(i):this._protectedHeader?this._protectedHeader={...this._protectedHeader,...i}:this.setProtectedHeader(i))}o=this._protectedHeader?u.encode(v(JSON.stringify(this._protectedHeader))):u.encode(""),this._aad?(a=v(this._aad),i=h(o,u.encode("."),u.encode(a))):i=o;let{ciphertext:f,tag:p,iv:g}
17=await eF(l,this._plaintext,n,this._iv,i),y={ciphertext:v(f)};return g&&(y.iv=v(g)),p&&(y.tag=v(p)),r&&(y.encrypted_key=v(r)),a&&(y.aad=a),this._protectedHeader&&(y.protected=d.decode(o)),this._sharedUnprotectedHeader&&(y.unprotected=this._sharedUnprotectedHeader),this._unprotectedHeader&&(y.header=this._unprotectedHeader),y}}class e8{constructor(e,t,r){this.parent=e,this.key=t,this.options=r}setUnprotectedHeader(e){if(this.unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this.unprotectedHeader=e,this}addRecipient(...e){return this.parent.addRecipient(...e)}encrypt(...e){return this.parent.encrypt(...e)}done(){return this.parent}}class e4{constructor(e){this._recipients=[],this._plaintext=e}addRecipient(e,t){let r=new e8(this,e,{crit:t?.crit});return this._recipients.push(r),r}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setSharedUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setSharedUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}setAdditionalAuthenticatedData(e){return this._aad=e,this}async encrypt(){let e;if(!this._recipients.length)throw new j("at least one recipient must be added");if(1===this._recipients.length){let[e]=this._recipients,t=await new e3(this._plaintext).setAdditionalAuthenticatedData(this._aad).setProtectedHeader(this._protectedHeader).setSharedUnprotectedHeader(this._unprotectedHeader).setUnprotectedHeader(e.unprotectedHeader).encrypt(e.key,{...e.options}),r={ciphertext:t.ciphertext,iv:t.iv,recipients:[{}],tag:t.tag};return t.aad&&(r.aad=t.aad),t.protected&&(r.protected=t.protected),t.unprotected&&(r.unprotected=t.unprotected),t.encrypted_key&&(r.recipients[0].encrypted_key=t.encrypted_key),t.header&&(r.recipients[0].header=t.header),r}for(let t=0;t<this._recipients.length;t++){let r=this._recipients[t];if(!ee(this._protectedHeader,this._unprotectedHeader,r.unprotectedHeader))throw new j("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint");let n={...this._protectedHeader,...this._unprotectedHeader,...r.unprotectedHeader},{alg:i}=n;if("string"!=typeof i||!i)throw new j('JWE "alg" (Algorithm) Header Parameter missing or invalid');if("dir"===i||"ECDH-ES"===i)throw new j('"dir" and "ECDH-ES" alg may only be used with a single recipient');if("string"!=typeof n.enc||!n.enc)throw new j('JWE "enc" (Encryption Algorithm) Header Parameter missing or invalid');if(e){if(e!==n.enc)throw new j('JWE "enc" (Encryption Algorithm) Header Parameter must be the same for all recipients')}else e=n.enc;if(ez(j,new Map,r.options.crit,this._protectedHeader,n),void 0!==n.zip)throw new O('JWE "zip" (Compression Algorithm) Header Parameter is not supported.')}let t=eA(e),r={ciphertext:"",iv:"",recipients:[],tag:""};for(let n=0;n<this._recipients.length;n++){let i=this._recipients[n],o={};r.recipients.push(o);let a=({...this._protectedHeader,...this._unprotectedHeader,...i.unprotectedHeader}).alg.startsWith("PBES2")?2048+n:void 0;if(0===n){let e=await new e3(this._plaintext).setAdditionalAuthenticatedData(this._aad).setContentEncryptionKey(t).setProtectedHeader(this._protectedHeader).setSharedUnprotectedHeader(this._unprotectedHeader).setUnprotectedHeader(i.unprotectedHeader).setKeyManagementParameters({p2c:a}).encrypt(i.key,{...i.options,[eQ]:!0});r.ciphertext=e.ciphertext,r.iv=e.iv,r.tag=e.tag,e.aad&&(r.aad=e.aad),e.protected&&(r.protected=e.protected),e.unprotected&&(r.unprotected=e.unprotected),o.encrypted_key=e.encrypted_key,e.header&&(o.header=e.header);continue}let{encryptedKey:s,parameters:c}=await e6(i.unprotectedHeader?.alg||this._protectedHeader?.alg||this._unprotectedHeader?.alg,e,i.key,t,{p2c:a});o.encrypted_key=v(s),(i.unprotectedHeader||c)&&(o.header={...i.unprotectedHeader,...c})}return r}}function e9(e,t){let r=`SHA-${e.slice(-3)}`;switch(e){case"HS256":case"HS384":case"HS512":return{hash:r,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:r,name:"RSA-PSS",saltLength:e.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:r,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:r,name:"ECDSA",namedCurve:t.namedCurve};case"Ed25519":return{name:"Ed25519"};case"EdDSA":return{name:t.name};default:throw new O(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}async function e7(e,t,r){if("sign"===r&&(t=await e_.normalizePrivateKey(t,e)),"verify"===r&&(t=await e_.normalizePublicKey(t,e)),t instanceof CryptoKey)return!function(e,t,...r){switch(t){case"HS256":case"HS384"
17:case"HS512":{if(!J(e.algorithm,"HMAC"))throw U("HMAC");let r=parseInt(t.slice(2),10);if(B(e.algorithm.hash)!==r)throw U(`SHA-${r}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!J(e.algorithm,"RSASSA-PKCS1-v1_5"))throw U("RSASSA-PKCS1-v1_5");let r=parseInt(t.slice(2),10);if(B(e.algorithm.hash)!==r)throw U(`SHA-${r}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!J(e.algorithm,"RSA-PSS"))throw U("RSA-PSS");let r=parseInt(t.slice(2),10);if(B(e.algorithm.hash)!==r)throw U(`SHA-${r}`,"algorithm.hash");break}case"EdDSA":if("Ed25519"!==e.algorithm.name&&"Ed448"!==e.algorithm.name)throw U("Ed25519 or Ed448");break;case"Ed25519":if(!J(e.algorithm,"Ed25519"))throw U("Ed25519");break;case"ES256":case"ES384":case"ES512":{if(!J(e.algorithm,"ECDSA"))throw U("ECDSA");let r=function(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw Error("unreachable")}}(t);if(e.algorithm.namedCurve!==r)throw U(r,"algorithm.namedCurve");break}default:throw TypeError("CryptoKey does not support this operation")}F(e,r)}(t,e,r),t;if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw TypeError(V(t,...q));return c.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[r])}throw TypeError(V(t,...q,"Uint8Array","JSON Web Key"))}let te=async(e,t,r,n)=>{let i=await e7(e,t,"verify");ep(e,i);let o=e9(e,i.algorithm);try{return await c.subtle.verify(o,i,r,n)}catch{return!1}};async function tt(e,t,r){let n,i;if(!et(e))throw new I("Flattened JWS must be an object");if(void 0===e.protected&&void 0===e.header)throw new I('Flattened JWS must have either of the "protected" or "header" members');if(void 0!==e.protected&&"string"!=typeof e.protected)throw new I("JWS Protected Header incorrect type");if(void 0===e.payload)throw new I("JWS Payload missing");if("string"!=typeof e.signature)throw new I("JWS Signature missing or incorrect type");if(void 0!==e.header&&!et(e.header))throw new I("JWS Unprotected Header incorrect type");let o={};if(e.protected)try{let t=E(e.protected);o=JSON.parse(d.decode(t))}catch{throw new I("JWS Protected Header is invalid")}if(!ee(o,e.header))throw new I("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let a={...o,...e.header},s=ez(I,new Map([["b64",!0]]),r?.crit,o,a),c=!0;if(s.has("b64")&&"boolean"!=typeof(c=o.b64))throw new I('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:l}=a;if("string"!=typeof l||!l)throw new I('JWS "alg" (Algorithm) Header Parameter missing or invalid');let f=r&&eX("algorithms",r.algorithms);if(f&&!f.has(l))throw new k('"alg" (Algorithm) Header Parameter value not allowed');if(c){if("string"!=typeof e.payload)throw new I("JWS Payload must be a string")}else if("string"!=typeof e.payload&&!(e.payload instanceof Uint8Array))throw new I("JWS Payload must be a string or an Uint8Array instance");let p=!1;"function"==typeof t?(t=await t(o,e),p=!0,eU(l,t,"verify"),em(t)&&(t=await eM(t,l))):eU(l,t,"verify");let g=h(u.encode(e.protected??""),u.encode("."),"string"==typeof e.payload?u.encode(e.payload):e.payload);try{n=E(e.signature)}catch{throw new I("Failed to base64url decode the signature")}if(!await te(l,t,n,g))throw new M;if(c)try{i=E(e.payload)}catch{throw new I("Failed to base64url decode the payload")}else i="string"==typeof e.payload?u.encode(e.payload):e.payload;let y={payload:i};return(void 0!==e.protected&&(y.protectedHeader=o),void 0!==e.header&&(y.unprotectedHeader=e.header),p)?{...y,key:t}:y}async function tr(e,t,r){if(e instanceof Uint8Array&&(e=d.decode(e)),"string"!=typeof e)throw new I("Compact JWS must be a string or Uint8Array");let{0:n,1:i,2:o,length:a}=e.split(".");if(3!==a)throw new I("Invalid Compact JWS");let s=await tt({payload:i,protected:n,signature:o},t,r),c={payload:s.payload,protectedHeader:s.protectedHeader};return"function"==typeof t?{...c,key:s.key}:c}async function tn(e,t,r){if(!et(e))throw new I("General JWS must be an object");if(!Array.isArray(e.signatures)||!e.signatures.every(et))throw new I("JWS Signatures missing or incorrect type");for(let n of e.signatures)try{return await tt({header:n.header,payload:e.payload,protected:n.protected,signature:n.signature},t,r)}catch{}throw new M}let ti=e=>Math.floor(e.getTime()/1e3),to=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i,ta=e=>{let t,r=to.exec(e);if(!r||r[4]&&r[1])throw TypeError("Invalid time period format");let n=parseFloat(r[2]);switch(r[3].toLowerCase()){case"sec":case"secs":case"second":case"seconds":case"s":t=Math.round(n);break;case"minute":case"minutes":case"min":case"mins":case"m":t=Math.round(60*n);break;case"hour":case"hours":case"hr":case"hrs":case"h":t=Math.round(3600*n);break;case"day":case"days":case"d":t=Math.round(86400*n);break;case"week":case"weeks":case"w":t=Math.round(604800*n);break;default:t=Math.round(0x1e187e0*n)}return"-"===r[1]||"ago"===r[4]?-t:t},ts=e=>e.toLowerCase().replace(/^application\//,""),tc=(e,t,r={})=>{let n,i;try{n=JSON.parse(d.decode(t))}catch{}if(!et(n))throw new P("JWT Claims Set must be a top-level JSON object");let{typ:o}=r;if(o&&("string"!=typeof e.typ||ts(e.typ)!==ts(o)))throw new S('unex
17pected "typ" JWT header value',n,"typ","check_failed");let{requiredClaims:a=[],issuer:s,subject:c,audience:l,maxTokenAge:u}=r,h=[...a];for(let e of(void 0!==u&&h.push("iat"),void 0!==l&&h.push("aud"),void 0!==c&&h.push("sub"),void 0!==s&&h.push("iss"),new Set(h.reverse())))if(!(e in n))throw new S(`missing required "${e}" claim`,n,e,"missing");if(s&&!(Array.isArray(s)?s:[s]).includes(n.iss))throw new S('unexpected "iss" claim value',n,"iss","check_failed");if(c&&n.sub!==c)throw new S('unexpected "sub" claim value',n,"sub","check_failed");if(l&&!((e,t)=>"string"==typeof e?t.includes(e):!!Array.isArray(e)&&t.some(Set.prototype.has.bind(new Set(e))))(n.aud,"string"==typeof l?[l]:l))throw new S('unexpected "aud" claim value',n,"aud","check_failed");switch(typeof r.clockTolerance){case"string":i=ta(r.clockTolerance);break;case"number":i=r.clockTolerance;break;case"undefined":i=0;break;default:throw TypeError("Invalid clockTolerance option type")}let{currentDate:f}=r,p=ti(f||new Date);if((void 0!==n.iat||u)&&"number"!=typeof n.iat)throw new S('"iat" claim must be a number',n,"iat","invalid");if(void 0!==n.nbf){if("number"!=typeof n.nbf)throw new S('"nbf" claim must be a number',n,"nbf","invalid");if(n.nbf>p+i)throw new S('"nbf" claim timestamp check failed',n,"nbf","check_failed")}if(void 0!==n.exp){if("number"!=typeof n.exp)throw new S('"exp" claim must be a number',n,"exp","invalid");if(n.exp<=p-i)throw new A('"exp" claim timestamp check failed',n,"exp","check_failed")}if(u){let e=p-n.iat;if(e-i>("number"==typeof u?u:ta(u)))throw new A('"iat" claim timestamp check failed (too far in the past)',n,"iat","check_failed");if(e<0-i)throw new S('"iat" claim timestamp check failed (it should be in the past)',n,"iat","check_failed")}return n};async function tl(e,t,r){let n=await tr(e,t,r);if(n.protectedHeader.crit?.includes("b64")&&!1===n.protectedHeader.b64)throw new P("JWTs MUST NOT use unencoded payload");let i={payload:tc(n.protectedHeader,n.payload,r),protectedHeader:n.protectedHeader};return"function"==typeof t?{...i,key:n.key}:i}async function tu(e,t,r){let n=await eY(e,t,r),i=tc(n.protectedHeader,n.plaintext,r),{protectedHeader:o}=n;if(void 0!==o.iss&&o.iss!==i.iss)throw new S('replicated "iss" claim header parameter mismatch',i,"iss","mismatch");if(void 0!==o.sub&&o.sub!==i.sub)throw new S('replicated "sub" claim header parameter mismatch',i,"sub","mismatch");if(void 0!==o.aud&&JSON.stringify(o.aud)!==JSON.stringify(i.aud))throw new S('replicated "aud" claim header parameter mismatch',i,"aud","mismatch");let a={payload:i,protectedHeader:o};return"function"==typeof t?{...a,key:n.key}:a}class td{constructor(e){this._flattened=new e3(e)}setContentEncryptionKey(e){return this._flattened.setContentEncryptionKey(e),this}setInitializationVector(e){return this._flattened.setInitializationVector(e),this}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}setKeyManagementParameters(e){return this._flattened.setKeyManagementParameters(e),this}async encrypt(e,t){let r=await this._flattened.encrypt(e,t);return[r.protected,r.encrypted_key,r.iv,r.ciphertext,r.tag].join(".")}}let th=async(e,t,r)=>{let n=await e7(e,t,"sign");return ep(e,n),new Uint8Array(await c.subtle.sign(e9(e,n.algorithm),n,r))};class tf{constructor(e){if(!(e instanceof Uint8Array))throw TypeError("payload must be an instance of Uint8Array");this._payload=e}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}async sign(e,t){let r;if(!this._protectedHeader&&!this._unprotectedHeader)throw new I("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!ee(this._protectedHeader,this._unprotectedHeader))throw new I("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let n={...this._protectedHeader,...this._unprotectedHeader},i=ez(I,new Map([["b64",!0]]),t?.crit,this._protectedHeader,n),o=!0;if(i.has("b64")&&"boolean"!=typeof(o=this._protectedHeader.b64))throw new I('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:a}=n;
17if("string"!=typeof a||!a)throw new I('JWS "alg" (Algorithm) Header Parameter missing or invalid');eU(a,e,"sign");let s=this._payload;o&&(s=u.encode(v(s)));let c=h(r=this._protectedHeader?u.encode(v(JSON.stringify(this._protectedHeader))):u.encode(""),u.encode("."),s),l={signature:v(await th(a,e,c)),payload:""};return o&&(l.payload=d.decode(s)),this._unprotectedHeader&&(l.header=this._unprotectedHeader),this._protectedHeader&&(l.protected=d.decode(r)),l}}class tp{constructor(e){this._flattened=new tf(e)}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}async sign(e,t){let r=await this._flattened.sign(e,t);if(void 0===r.payload)throw TypeError("use the flattened module for creating JWS with b64: false");return`${r.protected}.${r.payload}.${r.signature}`}}class tg{constructor(e,t,r){this.parent=e,this.key=t,this.options=r}setProtectedHeader(e){if(this.protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this.protectedHeader=e,this}setUnprotectedHeader(e){if(this.unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this.unprotectedHeader=e,this}addSignature(...e){return this.parent.addSignature(...e)}sign(...e){return this.parent.sign(...e)}done(){return this.parent}}class ty{constructor(e){this._signatures=[],this._payload=e}addSignature(e,t){let r=new tg(this,e,t);return this._signatures.push(r),r}async sign(){if(!this._signatures.length)throw new I("at least one signature must be added");let e={signatures:[],payload:""};for(let t=0;t<this._signatures.length;t++){let r=this._signatures[t],n=new tf(this._payload);n.setProtectedHeader(r.protectedHeader),n.setUnprotectedHeader(r.unprotectedHeader);let{payload:i,...o}=await n.sign(r.key,r.options);if(0===t)e.payload=i;else if(e.payload!==i)throw new I("inconsistent use of JWS Unencoded Payload (RFC7797)");e.signatures.push(o)}return e}}function tm(e,t){if(!Number.isFinite(t))throw TypeError(`Invalid ${e} input`);return t}class tb{constructor(e={}){if(!et(e))throw TypeError("JWT Claims Set MUST be an object");this._payload=e}setIssuer(e){return this._payload={...this._payload,iss:e},this}setSubject(e){return this._payload={...this._payload,sub:e},this}setAudience(e){return this._payload={...this._payload,aud:e},this}setJti(e){return this._payload={...this._payload,jti:e},this}setNotBefore(e){return"number"==typeof e?this._payload={...this._payload,nbf:tm("setNotBefore",e)}:e instanceof Date?this._payload={...this._payload,nbf:tm("setNotBefore",ti(e))}:this._payload={...this._payload,nbf:ti(new Date)+ta(e)},this}setExpirationTime(e){return"number"==typeof e?this._payload={...this._payload,exp:tm("setExpirationTime",e)}:e instanceof Date?this._payload={...this._payload,exp:tm("setExpirationTime",ti(e))}:this._payload={...this._payload,exp:ti(new Date)+ta(e)},this}setIssuedAt(e){return void 0===e?this._payload={...this._payload,iat:ti(new Date)}:e instanceof Date?this._payload={...this._payload,iat:tm("setIssuedAt",ti(e))}:"string"==typeof e?this._payload={...this._payload,iat:tm("setIssuedAt",ti(new Date)+ta(e))}:this._payload={...this._payload,iat:tm("setIssuedAt",e)},this}}class tv extends tb{setProtectedHeader(e){return this._protectedHeader=e,this}async sign(e,t){let r=new tp(u.encode(JSON.stringify(this._payload)));if(r.setProtectedHeader(this._protectedHeader),Array.isArray(this._protectedHeader?.crit)&&this._protectedHeader.crit.includes("b64")&&!1===this._protectedHeader.b64)throw new P("JWTs MUST NOT use unencoded payload");return r.sign(e,t)}}class tw extends tb{setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setKeyManagementParameters(e){if(this._keyManagementParameters)throw TypeError("setKeyManagementParameters can only be called once");return this._keyManagementParameters=e,this}setContentEncryptionKey(e){if(this._cek)throw TypeError("setContentEncryptionKey can only be called once");return this._cek=e,this}setInitializationVector(e){if(this._iv)throw TypeError("setInitializationVector can only be called once");return this._iv=e,this}replicateIssuerAsHeader(){return this._replicateIssuerAsHeader=!0,this}replicateSubjectAsHeader(){return this._replicateSubjectAsHeader=!0,this}replicateAudienceAsHeader(){return this._replicateAudienceAsHeader=!0,this}async encrypt(e,t){let r=new td(u.encode(JSON.stringify(this._payload)));return this._replicateIssuerAsHeader&&(this._protectedHeader={...this._protectedHeader,iss:this._payload.iss}),this._replicateSubjectAsHeader&&(this._protectedHeader={...this._protectedHeader,sub:this._payload.sub}),this._replicateAudienceAsHeader&&(this._protectedHeader={...this._protectedHeader,aud:this._payload.aud}),r.setProtectedHeader(this._protectedHeader),this._iv&&r.setInitializationVector(this._iv),this._cek&&r.setContentEncryptionKey(this._cek),this._keyManagementParameters&&r.setKeyManagementParameters(this._keyManagementParameters),r.encrypt(e,t)}}let tE=(e,t)=>{if("string"!=typeof e||!e)throw new T(`${t} missing or invalid`)};async function t_(e,t){let r;if(!et(e))throw TypeError("JWK must be an object");
17if(t??(t="sha256"),"sha256"!==t&&"sha384"!==t&&"sha512"!==t)throw TypeError('digestAlgorithm must one of "sha256", "sha384", or "sha512"');switch(e.kty){case"EC":tE(e.crv,'"crv" (Curve) Parameter'),tE(e.x,'"x" (X Coordinate) Parameter'),tE(e.y,'"y" (Y Coordinate) Parameter'),r={crv:e.crv,kty:e.kty,x:e.x,y:e.y};break;case"OKP":tE(e.crv,'"crv" (Subtype of Key Pair) Parameter'),tE(e.x,'"x" (Public Key) Parameter'),r={crv:e.crv,kty:e.kty,x:e.x};break;case"RSA":tE(e.e,'"e" (Exponent) Parameter'),tE(e.n,'"n" (Modulus) Parameter'),r={e:e.e,kty:e.kty,n:e.n};break;case"oct":tE(e.k,'"k" (Key Value) Parameter'),r={k:e.k,kty:e.kty};break;default:throw new O('"kty" (Key Type) Parameter missing or unsupported')}let n=u.encode(JSON.stringify(r));return v(await l(t,n))}async function tS(e,t){t??(t="sha256");let r=await t_(e,t);return`urn:ietf:params:oauth:jwk-thumbprint:sha-${t.slice(-3)}:${r}`}async function tA(e,t){let r={...e,...t?.header};if(!et(r.jwk))throw new I('"jwk" (JSON Web Key) Header Parameter must be a JSON object');let n=await eM({...r.jwk,ext:!0},r.alg);if(n instanceof Uint8Array||"public"!==n.type)throw new I('"jwk" (JSON Web Key) Header Parameter must be a public key');return n}function tk(e){return et(e)}function tO(e){return"function"==typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))}class tC{constructor(e){if(this._cached=new WeakMap,!function(e){return e&&"object"==typeof e&&Array.isArray(e.keys)&&e.keys.every(tk)}(e))throw new x("JSON Web Key Set malformed");this._jwks=tO(e)}async getKey(e,t){let{alg:r,kid:n}={...e,...t?.header},i=function(e){switch("string"==typeof e&&e.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";default:throw new O('Unsupported "alg" value for a JSON Web Key Set')}}(r),o=this._jwks.keys.filter(e=>{let t=i===e.kty;if(t&&"string"==typeof n&&(t=n===e.kid),t&&"string"==typeof e.alg&&(t=r===e.alg),t&&"string"==typeof e.use&&(t="sig"===e.use),t&&Array.isArray(e.key_ops)&&(t=e.key_ops.includes("verify")),t)switch(r){case"ES256":t="P-256"===e.crv;break;case"ES256K":t="secp256k1"===e.crv;break;case"ES384":t="P-384"===e.crv;break;case"ES512":t="P-521"===e.crv;break;case"Ed25519":t="Ed25519"===e.crv;break;case"EdDSA":t="Ed25519"===e.crv||"Ed448"===e.crv}return t}),{0:a,length:s}=o;if(0===s)throw new R;if(1!==s){let e=new D,{_cached:t}=this;throw e[Symbol.asyncIterator]=async function*(){for(let e of o)try{yield await tj(t,e,r)}catch{}},e}return tj(this._cached,a,r)}}async function tj(e,t,r){let n=e.get(t)||e.set(t,{}).get(t);if(void 0===n[r]){let e=await eM({...t,ext:!0},r);if(e instanceof Uint8Array||"public"!==e.type)throw new x("JSON Web Key Set members must be public keys");n[r]=e}return n[r]}function tI(e){let t=new tC(e),r=async(e,r)=>t.getKey(e,r);return Object.defineProperties(r,{jwks:{value:()=>tO(t._jwks),enumerable:!0,configurable:!1,writable:!1}}),r}let tP=async(e,t,r)=>{let n,i,o=!1;"function"==typeof AbortController&&(n=new AbortController,i=setTimeout(()=>{o=!0,n.abort()},t));let a=await fetch(e.href,{signal:n?n.signal:void 0,redirect:"manual",headers:r.headers}).catch(e=>{if(o)throw new H;throw e});if(void 0!==i&&clearTimeout(i),200!==a.status)throw new _("Expected 200 OK from the JSON Web Key Set HTTP response");try{return await a.json()}catch{throw new _("Failed to parse the JSON Web Key Set HTTP response as JSON")}};"undefined"!=typeof navigator&&navigator.userAgent?.startsWith?.("Mozilla/5.0 ")||(o="jose/v5.10.0");let tT=Symbol();class tx{constructor(e,t){if(!(e instanceof URL))throw TypeError("url must be an instance of URL");this._url=new URL(e.href),this._options={agent:t?.agent,headers:t?.headers},this._timeoutDuration="number"==typeof t?.timeoutDuration?t?.timeoutDuration:5e3,this._cooldownDuration="number"==typeof t?.cooldownDuration?t?.cooldownDuration:3e4,this._cacheMaxAge="number"==typeof t?.cacheMaxAge?t?.cacheMaxAge:6e5,t?.[tT]!==void 0&&(this._cache=t?.[tT],function(e,t){return!("object"!=typeof e||null===e||!("uat"in e)||"number"!=typeof e.uat||Date.now()-e.uat>
17=t)&&"jwks"in e&&!!et(e.jwks)&&!!Array.isArray(e.jwks.keys)&&!!Array.prototype.every.call(e.jwks.keys,et)}(t?.[tT],this._cacheMaxAge)&&(this._jwksTimestamp=this._cache.uat,this._local=tI(this._cache.jwks)))}coolingDown(){return"number"==typeof this._jwksTimestamp&&Date.now()<this._jwksTimestamp+this._cooldownDuration}fresh(){return"number"==typeof this._jwksTimestamp&&Date.now()<this._jwksTimestamp+this._cacheMaxAge}async getKey(e,t){this._local&&this.fresh()||await this.reload();try{return await this._local(e,t)}catch(r){if(r instanceof R&&!1===this.coolingDown())return await this.reload(),this._local(e,t);throw r}}async reload(){this._pendingFetch&&("undefined"!=typeof WebSocketPair||"undefined"!=typeof navigator&&"Cloudflare-Workers"===navigator.userAgent||"undefined"!=typeof EdgeRuntime&&"vercel"===EdgeRuntime)&&(this._pendingFetch=void 0);let e=new Headers(this._options.headers);o&&!e.has("User-Agent")&&(e.set("User-Agent",o),this._options.headers=Object.fromEntries(e.entries())),this._pendingFetch||(this._pendingFetch=tP(this._url,this._timeoutDuration,this._options).then(e=>{this._local=tI(e),this._cache&&(this._cache.uat=Date.now(),this._cache.jwks=e),this._jwksTimestamp=Date.now(),this._pendingFetch=void 0}).catch(e=>{throw this._pendingFetch=void 0,e})),await this._pendingFetch}}function tR(e,t){let r=new tx(e,t),n=async(e,t)=>r.getKey(e,t);return Object.defineProperties(n,{coolingDown:{get:()=>r.coolingDown(),enumerable:!0,configurable:!1},fresh:{get:()=>r.fresh(),enumerable:!0,configurable:!1},reload:{value:()=>r.reload(),enumerable:!0,configurable:!1,writable:!1},reloading:{get:()=>!!r._pendingFetch,enumerable:!0,configurable:!1},jwks:{value:()=>r._local?.jwks(),enumerable:!0,configurable:!1,writable:!1}}),n}let tD=tT;class tH extends tb{encode(){let e=v(JSON.stringify({alg:"none"})),t=v(JSON.stringify(this._payload));return`${e}.${t}.`}static decode(e,t){let r;if("string"!=typeof e)throw new P("Unsecured JWT must be a string");let{0:n,1:i,2:o,length:a}=e.split(".");if(3!==a||""!==o)throw new P("Invalid Unsecured JWT");try{if(r=JSON.parse(d.decode(E(n))),"none"!==r.alg)throw Error()}catch{throw new P("Invalid Unsecured JWT")}return{payload:tc(r,E(i),t),header:r}}}let tM=v,tN=E;function tL(e){let t;if("string"==typeof e){let r=e.split(".");(3===r.length||5===r.length)&&([t]=r)}else if("object"==typeof e&&e)if("protected"in e)t=e.protected;else throw TypeError("Token does not contain a Protected Header");try{if("string"!=typeof t||!t)throw Error();let e=JSON.parse(d.decode(tN(t)));if(!et(e))throw Error();return e}catch{throw TypeError("Invalid Token or Protected Header formatting")}}function tK(e){let t,r;if("string"!=typeof e)throw new P("JWTs must use Compact JWS serialization, JWT must be a string");let{1:n,length:i}=e.split(".");if(5===i)throw new P("Only JWTs using Compact JWS serialization can be decoded");if(3!==i)throw new P("Invalid JWT");if(!n)throw new P("JWTs must contain a payload");try{t=tN(n)}catch{throw new P("Failed to base64url decode the payload")}try{r=JSON.parse(d.decode(t))}catch{throw new P("Failed to parse the decoded payload as JSON")}if(!et(r))throw new P("Invalid JWT Claims Set");return r}async function tW(e,t){let r,n,i;switch(e){case"HS256":case"HS384":case"HS512":r=parseInt(e.slice(-3),10),n={name:"HMAC",hash:`SHA-${r}`,length:r},i=["sign","verify"];break;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return N(new Uint8Array((r=parseInt(e.slice(-3),10))>>3));case"A128KW":case"A192KW":case"A256KW":n={name:"AES-KW",length:r=parseInt(e.slice(1,4),10)},i=["wrapKey","unwrapKey"];break;case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":case"A128GCM":case"A192GCM":case"A256GCM":n={name:"AES-GCM",length:r=parseInt(e.slice(1,4),10)},i=["encrypt","decrypt"];break;default:throw new O('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}return c.subtle.generateKey(n,t?.extractable??!1,i)}function tU(e){let t=e?.modulusLength??2048;if("number"!=typeof t||t<2048)throw new O("Invalid or unsupported modulusLength option provided, 2048 bits or larger keys must be used");return t}async function tJ(e,t){let r,n;switch(e){case"PS256":case"PS384":case"PS512":r={name:"RSA-PSS",hash:`SHA-${e.slice(-3)}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:tU(t)},n=["sign","verify"];break;case"RS256":case"RS384":case"RS512":r={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.slice(-3)}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:tU(t)},n=["sign","verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":r={name:"RSA-OAEP",hash:`SHA-${parseInt(e.slice(-3),10)||1}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:tU(t)},n=["decrypt","unwrapKey","encrypt","wrapKey"];break;case"ES256":r={name:"ECDSA",namedCurve:"P-256"},n=["sign","verify"];break;case"ES384":r={name:"ECDSA",namedCurve:"P-384"},n=["sign","verify"];break;case"ES512":r={name:"ECDSA",namedCurve:"P-521"},n=["sign","verify"];break;case"Ed25519":r={name:"Ed25519"},n=["sign","verify"];break;case"EdDSA":{n=["sign","verify"];let e=t?.crv??"Ed25519";
17switch(e){case"Ed25519":case"Ed448":r={name:e};break;default:throw new O("Invalid or unsupported crv option provided")}break}case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{n=["deriveKey","deriveBits"];let e=t?.crv??"P-256";switch(e){case"P-256":case"P-384":case"P-521":r={name:"ECDH",namedCurve:e};break;case"X25519":case"X448":r={name:e};break;default:throw new O("Invalid or unsupported crv option provided, supported values are P-256, P-384, P-521, X25519, and X448")}break}default:throw new O('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}return c.subtle.generateKey(r,t?.extractable??!1,n)}async function tB(e,t){return tJ(e,t)}async function tF(e,t){return tW(e,t)}let tG="WebCryptoAPI"},61674:(e,t)=>{"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidTokenError=t.InvalidTokenReason=t.AuthError=t.AuthErrorCode=void 0,t.isInvalidTokenError=function(e){return e?.isInvalidTokenError??!1},function(e){e.USER_NOT_FOUND="USER_NOT_FOUND",e.USER_DISABLED="USER_DISABLED",e.INVALID_CREDENTIAL="INVALID_CREDENTIAL",e.TOKEN_EXPIRED="TOKEN_EXPIRED",e.TOKEN_REVOKED="TOKEN_REVOKED",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.INTERNAL_ERROR="INTERNAL_ERROR",e.NO_KID_IN_HEADER="NO_KID_IN_HEADER",e.INVALID_SIGNATURE="INVALID_SIGNATURE",e.NO_MATCHING_KID="NO_MATCHING_KID",e.MISMATCHING_TENANT_ID="MISMATCHING_TENANT_ID"}(r||(t.AuthErrorCode=r={}));let i={[r.USER_NOT_FOUND]:"User not found",[r.INVALID_CREDENTIAL]:"Invalid credentials",[r.TOKEN_EXPIRED]:"Token expired",[r.USER_DISABLED]:"User disabled",[r.TOKEN_REVOKED]:"Token revoked",[r.INVALID_ARGUMENT]:"Invalid argument",[r.INTERNAL_ERROR]:"Internal error",[r.NO_KID_IN_HEADER]:"No kid in jwt header",[r.INVALID_SIGNATURE]:"Invalid token signature.",[r.NO_MATCHING_KID]:"Kid is not matching any certificate",[r.MISMATCHING_TENANT_ID]:"Provided tenant ID does not match firebase tenant ID from the token"};function o(e,t){let r="string"==typeof t?.stack?t.stack:"",n="string"==typeof t?.cause?t.cause:"";e.stack=(e?.stack??"")+r,e.cause=(e?.cause??"")+n}class a extends Error{code;static fromError(e,t,r){let n=new a(t,r);return o(n,e),n}constructor(e,t){super(function(e,t){return t?`${i[e]}: ${t}`:i[e]}(e,t)),this.code=e,Object.setPrototypeOf(this,a.prototype)}toJSON(){return{code:this.code,message:this.message}}}t.AuthError=a,function(e){e.MISSING_CREDENTIALS="MISSING_CREDENTIALS",e.MISSING_REFRESH_TOKEN="MISSING_REFRESH_TOKEN",e.MALFORMED_CREDENTIALS="MALFORMED_CREDENTIALS",e.INVALID_SIGNATURE="INVALID_SIGNATURE",e.INVALID_CREDENTIALS="INVALID_CREDENTIALS",e.INVALID_KID="INVALID_KID"}(n||(t.InvalidTokenReason=n={}));let s={[n.MISSING_CREDENTIALS]:"Missing credentials",[n.MALFORMED_CREDENTIALS]:"Credentials are incorrectly formatted",[n.INVALID_SIGNATURE]:"Credentials have invalid signature",[n.MISSING_REFRESH_TOKEN]:"Refresh token is missing",[n.INVALID_CREDENTIALS]:"Invalid credentials",[n.INVALID_KID]:"Token has kid claim that cannot be matched with any known Google certificate. This usually indicates that Google certificates have expired and user has to reauthenticate."};class c extends Error{reason;static fromError(e,t){let r=new c(t);return o(r,e),r}isInvalidTokenError=!0;constructor(e){super(`${e}: ${s[e]}`),this.reason=e,Object.setPrototypeOf(this,c.prototype)}}t.InvalidTokenError=c},68197:function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAnalytics=void 0;let o=i(r(23817)),a=r(15781);t.GoogleAnalytics=e=>{var t=n(e,[]);return(0,a.formatData)(o.default,t)}},68321:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i.a});var n=r(41402),i=r.n(n),o={};for(let e in n)"default"!==e&&(o[e]=()=>n[e]);r.d(t,o)},68332:(e,t,r)=>{"use strict";let n;
17Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAnalytics=function(e){let{gaId:t,debugMode:r,dataLayerName:s="dataLayer",nonce:c}=e;return void 0===n&&(n=s),(0,o.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:"\n          window['".concat(s,"'] = window['").concat(s,"'] || [];\n          function gtag(){window['").concat(s,"'].push(arguments);}\n          gtag('js', new Date());\n\n          gtag('config', '").concat(t,"' ").concat(r?",{ 'debug_mode': true }":"",");")},nonce:c}),(0,i.jsx)(a.default,{id:"_next-ga",src:"https://www.googletagmanager.com/gtag/js?id=".concat(t),nonce:c})]})},t.sendGAEvent=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(void 0===n)return void console.warn("@next/third-parties: GA has not been initialized");window[n]?window[n].push(arguments):console.warn("@next/third-parties: GA dataLayer ".concat(n," does not exist"))};let i=r(95155),o=r(12115),a=function(e){return e&&e.__esModule?e:{default:e}}(r(68321))},71450:(e,t,r)=>{"use strict";r.d(t,{Cl:()=>n,Tt:()=>i,fX:()=>o});var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function i(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}Object.create;function o(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}Object.create,"function"==typeof SuppressedError&&SuppressedError},71508:(e,t,r)=>{"use strict";var n=Object.create,i=Object.defineProperty,o=Object.defineProperties,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,f=(e,t,r)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,p=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of c(t))d.call(e,o)||o===r||i(e,o,{get:()=>t[o],enumerable:!(n=a(t,o))||n.enumerable});return e},g={};((e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})})(g,{useRouter:()=>v}),e.exports=p(i({},"__esModule",{value:!0}),g);var y=r(20063),m=r(12115),b=((e,t,r)=>(r=null!=e?n(u(e)):{},p(!t&&e&&e.__esModule?r:i(r,"default",{value:e,enumerable:!0}),e)))(r(56111)),v=i(()=>{let e=(0,y.useRouter)(),t=(0,y.usePathname)();(0,m.useEffect)(()=>{b.done()},[t]);let r=(0,m.useCallback)((r,n)=>{r!==t&&b.start(),e.replace(r,n)},[e,t]),n=(0,m.useCallback)((r,n)=>{r!==t&&b.start(),e.push(r,n)},[e,t]);return o(((e,t)=>{for(var r in t||(t={}))d.call(t,r)&&f(e,r,t[r]);if(l)for(var r of l(t))h.call(t,r)&&f(e,r,t[r]);return e})({},e),s({replace:r,push:n}))},"name",{value:"useRouter",configurable:!0})},75930:(e,t,r)=>{"use strict";t.HD=c;let n=r(58254),i=r(61674);class o{cacheMap={};constructor(){}get(e){return this.cacheMap[e]?this.cacheMap[e]:e}set(e,t){this.cacheMap={[e]:t}}}let a=new o,s=new o;async function c({serverCustomToken:e,refreshTokenUrl:t,checkRevoked:r}){if(!e)return null;let o=s.get(e),a=(0,n.decodeJwt)(o),c=a?.exp??0;if(!r&&c>Date.now()/1e3)return o||e;let l=await d(t);if(!l)throw new i.AuthError(i.AuthErrorCode.INTERNAL_ERROR,"Refresh token endpoint returned invalid response. This URL should point to endpoint exposed by the middleware and configured using refreshTokenPath option.");if(!l.customToken)throw new i.AuthError(i.AuthErrorCode.INTERNAL_ERROR,"Refresh token endpoint returned empty custom token. Make sure you have set `enableCustomToken` option to `true` in `authMiddleware`");return s.set(e,l.customToken),l.customToken}async function l(e,t,r){if(401===e.status){let t=await u(e);return new i.AuthError(i.AuthErrorCode.INVALID_CREDENTIAL,t?.message)}let n=await u(e);return new i.AuthError(i.AuthErrorCode.INTERNAL_ERROR,`next-firebase-auth-edge: Internal request to ${r?.method??"GET"} ${t.toString()} has failed: ${n}`)}function u(e){let t=e.headers.get("content-type");return t&&-1!==t.indexOf("application/json")?e.json():e.text()}async function d(e,t){let r=await fetch(e,{...t,headers:{...t?.headers,Accept:"application/json","Content-Type":"application/json"}});if(!r.ok)throw await l(r,e,t);return u(r)}},76784:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esMo
17dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendGAEvent=t.GoogleAnalytics=t.sendGTMEvent=t.GoogleTagManager=t.YouTubeEmbed=t.GoogleMapsEmbed=void 0;var i=r(2037);Object.defineProperty(t,"GoogleMapsEmbed",{enumerable:!0,get:function(){return n(i).default}});var o=r(37577);Object.defineProperty(t,"YouTubeEmbed",{enumerable:!0,get:function(){return n(o).default}});var a=r(98202);Object.defineProperty(t,"GoogleTagManager",{enumerable:!0,get:function(){return a.GoogleTagManager}}),Object.defineProperty(t,"sendGTMEvent",{enumerable:!0,get:function(){return a.sendGTMEvent}});var s=r(68332);Object.defineProperty(t,"GoogleAnalytics",{enumerable:!0,get:function(){return s.GoogleAnalytics}}),Object.defineProperty(t,"sendGAEvent",{enumerable:!0,get:function(){return s.sendGAEvent}})},88246:e=>{"use strict";e.exports=JSON.parse('{"id":"youtube-embed","description":"Embed a YouTube embed on your webpage.","website":"https://github.com/paulirish/lite-youtube-embed","html":{"element":"lite-youtube","attributes":{"videoid":null,"playlabel":null}},"stylesheets":["https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.css"],"scripts":[{"url":"https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.js","strategy":"idle","location":"head","action":"append"}]}')},90916:(e,t,r)=>{"use strict";r.d(t,{VV:()=>i,jz:()=>n});var n,i,o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a={};(function(){function e(){this.blockSize=-1,this.blockSize=64,this.g=[,,,,],this.B=Array(this.blockSize),this.o=this.h=0,this.s()}var t=function(){this.blockSize=-1};function r(){}function o(e,t,r){r||(r=0);var n=Array(16);if("string"==typeof t)for(var i=0;16>i;++i)n[i]=t.charCodeAt(r++)|t.charCodeAt(r++)<<8|t.charCodeAt(r++)<<16|t.charCodeAt(r++)<<24;else for(i=0;16>i;++i)n[i]=t[r++]|t[r++]<<8|t[r++]<<16|t[r++]<<24;t=e.g[0],r=e.g[1],i=e.g[2];var o=e.g[3],a=t+(o^r&(i^o))+n[0]+0xd76aa478|0;a=o+(i^(t=r+(a<<7|a>>>25))&(r^i))+n[1]+0xe8c7b756|0,a=i+(r^(o=t+(a<<12|a>>>20))&(t^r))+n[2]+0x242070db|0,a=r+(t^(i=o+(a<<17|a>>>15))&(o^t))+n[3]+0xc1bdceee|0,a=t+(o^(r=i+(a<<22|a>>>10))&(i^o))+n[4]+0xf57c0faf|0,a=o+(i^(t=r+(a<<7|a>>>25))&(r^i))+n[5]+0x4787c62a|0,a=i+(r^(o=t+(a<<12|a>>>20))&(t^r))+n[6]+0xa8304613|0,a=r+(t^(i=o+(a<<17|a>>>15))&(o^t))+n[7]+0xfd469501|0,a=t+(o^(r=i+(a<<22|a>>>10))&(i^o))+n[8]+0x698098d8|0,a=o+(i^(t=r+(a<<7|a>>>25))&(r^i))+n[9]+0x8b44f7af|0,a=i+(r^(o=t+(a<<12|a>>>20))&(t^r))+n[10]+0xffff5bb1|0,a=r+(t^(i=o+(a<<17|a>>>15))&(o^t))+n[11]+0x895cd7be|0,a=t+(o^(r=i+(a<<22|a>>>10))&(i^o))+n[12]+0x6b901122|0,a=o+(i^(t=r+(a<<7|a>>>25))&(r^i))+n[13]+0xfd987193|0,a=i+(r^(o=t+(a<<12|a>>>20))&(t^r))+n[14]+0xa679438e|0,a=r+(t^(i=o+(a<<17|a>>>15))&(o^t))+n[15]+0x49b40821|0,r=i+(a<<22|a>>>10),a=t+(i^o&(r^i))+n[1]+0xf61e2562|0,t=r+(a<<5|a>>>27),a=o+(r^i&(t^r))+n[6]+0xc040b340|0,o=t+(a<<9|a>>>23),a=i+(t^r&(o^t))+n[11]+0x265e5a51|0,i=o+(a<<14|a>>>18),a=r+(o^t&(i^o))+n[0]+0xe9b6c7aa|0,r=i+(a<<20|a>>>12),a=t+(i^o&(r^i))+n[5]+0xd62f105d|0,t=r+(a<<5|a>>>27),a=o+(r^i&(t^r))+n[10]+0x2441453|0,o=t+(a<<9|a>>>23),a=i+(t^r&(o^t))+n[15]+0xd8a1e681|0,i=o+(a<<14|a>>>18),a=r+(o^t&(i^o))+n[4]+0xe7d3fbc8|0,r=i+(a<<20|a>>>12),a=t+(i^o&(r^i))+n[9]+0x21e1cde6|0,t=r+(a<<5|a>>>27),a=o+(r^i&(t^r))+n[14]+0xc33707d6|0,o=t+(a<<9|a>>>23),a=i+(t^r&(o^t))+n[3]+0xf4d50d87|0,i=o+(a<<14|a>>>18),a=r+(o^t&(i^o))+n[8]+0x455a14ed|0,r=i+(a<<20|a>>>12),a=t+(i^o&(r^i))+n[13]+0xa9e3e905|0,t=r+(a<<5|a>>>27),a=o+(r^i&(t^r))+n[2]+0xfcefa3f8|0,o=t+(a<<9|a>>>23),a=i+(t^r&(o^t))+n[7]+0x676f02d9|0,i=o+(a<<14|a>>>18),a=r+(o^t&(i^o))+n[12]+0x8d2a4c8a|0,a=t+((r=i+(a<<20|a>>>12))^i^o)+n[5]+0xfffa3942|0,a=o+((t=r+(a<<4|a>>>28))^r^i)+n[8]+0x8771f681|0,a=i+((o=t+(a<<11|a>>>21))^t^r)+n[11]+0x6d9d6122|0,a=r+((i=o+(a<<16|a>>>16))^o^t)+n[14]+0xfde5380c|0,a=t+((r=i+(a<<23|a>>>9))^i^o)+n[1]+0xa4beea44|0,a=o+((t=r+(a<<4|a>>>28))^r^i)+n[4]+0x4bdecfa9|0,a=i+((o=t+(a<<11|a>>>21))^t^r)+n[7]+0xf6bb4b60|0,a=r+((i=o+(a<<16|a>>>16))^o^t)+n[10]+0xbebfbc70|0,a=t+((r=i+(a<<23|a>>>9))^i^o)+n[13]+0x289b7ec6|0,a=o+((t=r+(a<<4|a>>>28))^r^i)+n[0]+0xeaa127fa|0,a=i+((o=t+(a<<11|a>>>21))^t^r)+n[3]+0xd4ef3085|0,a=r+((i=o+(a<<16|a>>>16))^o^t)+n[6]+0x4881d05|0,a=t+((r=i+(a<<23|a>>>9))^i^o)+n[9]+0xd9d4d039|0,a=o+((t=r+(a<<4|a>>>28))^r^i)+n[12]+0xe6db99e5|0,a=i+((o=t+(a<<11|a>>>21))^t^r)+n[15]+0x1fa27cf8|0,a=r+((i=o+(a<<16|a>>>16))^o^t)+n[2]+0xc4ac5665|0,r=i+(a<<23|a>>>9),a=t+(i^(r|~o))+n[0]+0xf4292244|0,t=r+(a<<6|a>>>26),a=o+(r^(t|~i))+n[7]+0x432aff97|0,o=t+(a<<10|a>>>22),a=i+(t^(o|~r))+n[14]+0xab9423a7|0,i=o+(a<<15|a>>>17),a=r+(o^(i|~t))+n[5]+0xfc93a039|0,r=i+(a<<21|a>>>11),a=t+(i^(r|~o))+n[12]+0x655b59c3|0,t=r+(a<<6|a>>>26),a=o+(r^(t|~i))+n[3]+0x8f0ccc92|0,o=t+(a<<10|a>>>22),a=i+(t^(o|~r))+n[10]+0xffeff47d|0,i=o+(a<<15|a>>>17),a=r+(o^(i|~t))+n[1]+0x85845dd1|0,r=i+(a<<21|a>>>11),a=t+(i^(r|~o))+n[8]+0x6fa87e4f|0,t=r+(a<<6|a>>>26),a=o+(r^(t|~i))+n[15]+0xfe2ce6e0|0,o=t+(a<<10|a>>>22),a=i+(t^(o|~r))+n[6]+0xa3014314|0,i=o+(a<<15|a>>>17),a=r+(o^(i|~t))+n[13]+0x4e0811a1|0,r=i+(a<<21|a>>>11),a=t+(i^(r|~o))+n[4]+0xf7537e82|0,t=r+(a<<6|a>>>26),a=o+(r^(t|~i))+n[11]+0xbd3af235|0,o=t+(a<<10|a>>>22),a=i+(t^(o|~r))+n[2]+0x2ad7d2bb|0,i=o+(a<<15|a>>>17),a=r+(o^(i|~t))+n[9]+0xeb86d391|0,e.g[0]=e.g[0]+t|0,e.g[1]=e.g[1]+(i+(a<<21|a>>>11))|0,e.g[2]=e.g[2]+i|0,e.g[3]=e.g[3]+o|0}function s(e,t){this.h=t;for(var r=[],n=!0,i=e.length-1;0<=i;i--){var o=0|e[i];n&&o==t||(r[i]=o,n=!1)}this.g=r}r.prototype=t.prototype,e.D=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.C=function(e,r,n){for(var i=Array(arguments.length-2),o=2;o<arguments.length;o++)i[o-2]=arguments[o];return t.prototype[r].apply(e,i)},e.prototype.s=function(){this.g[0]=0x67452301,this.g[1]=0xefcdab89,this.g[2]=0x98badcfe,this.g[3]=0x10325476,this.o=this.h=0},e.prototype.u=function(e,t){void 0===t&&(t=e.length);for(var r=t-this.blockSize,n=this.B,i=this.h,a=0;a<t;){if(0==i)for(;a<=r;)o(this,e,a),a+=this.blockSize;if("string"==typeof e){for(;a<t;)if(n[i++]=e.charCodeAt(a++),i==this.blockSize){o(this,n),i=0;break}}else for(;a<t;)if(n[i++]=e[a++],i==this.blockSize){o(this,n),i=0;break}}this.h=i,this.o+=t},e.prototype.v=function(){var e=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);e[0]=128;for(var t=1;t<e.length-8;++t)e[t]=0;var r=8*this.o;for(t=e.length-8;t<e.length;++t)e[t]=255&r,r/=256;for(this.u(e),e=Array(16),t=r=0;4>t;++t)for(var n=0;32>n;n+=8)e[r++]=this.g[t]>>>n&255;return e};var c,l={};function u(e){var t;return -128<=e&&128>e?(t=function(e){return new s([0|e],0>e?-1:0)},Object.prototype.hasOwnProperty.call(l,e)?l[e]:l[e]=t(e)):new s([0|e],0>e?-1:0)}function d(e){if(isNaN(e)||!isFinite(e))return h;if(0>e)return m(d(-e));for(var t=[],r=1,n=0;e>=r;n++)t[n]=e/r|0,r*=0x100000000;return new s(t,0)}var h=u(0),f=u(1),p=u(0x1000000);function g(e){if(0!=e.h)return!1;for(var t=0;t<e.g.length;t++)if(0!=e.g[t])return!1;return!0}function y(e){return -1==e.h}function m(e){for(var t=e.g.length,r=[],n=0;n<t;n++)r[n]=~e.g[n];return new s(r,~e.h).add(f)}function b(e,t){return e.add(m(t))}function v(e,t){for(;(65535&e[t])!=e[t];)e[t+1]+=e[t]>>>16,e[t]&=65535,t++}function w(e,t){this.g=e,this.h=t}function E(e,t){if(g(t))throw Error("division by zero");
17if(g(e))return new w(h,h);if(y(e))return t=E(m(e),t),new w(m(t.g),m(t.h));if(y(t))return t=E(e,m(t)),new w(m(t.g),t.h);if(30<e.g.length){if(y(e)||y(t))throw Error("slowDivide_ only works with positive integers.");for(var r=f,n=t;0>=n.l(e);)r=_(r),n=_(n);var i=S(r,1),o=S(n,1);for(n=S(n,2),r=S(r,2);!g(n);){var a=o.add(n);0>=a.l(e)&&(i=i.add(r),o=a),n=S(n,1),r=S(r,1)}return t=b(e,i.j(t)),new w(i,t)}for(i=h;0<=e.l(t);){for(n=48>=(n=Math.ceil(Math.log(r=Math.max(1,Math.floor(e.m()/t.m())))/Math.LN2))?1:Math.pow(2,n-48),a=(o=d(r)).j(t);y(a)||0<a.l(e);)r-=n,a=(o=d(r)).j(t);g(o)&&(o=f),i=i.add(o),e=b(e,a)}return new w(i,e)}function _(e){for(var t=e.g.length+1,r=[],n=0;n<t;n++)r[n]=e.i(n)<<1|e.i(n-1)>>>31;return new s(r,e.h)}function S(e,t){var r=t>>5;t%=32;for(var n=e.g.length-r,i=[],o=0;o<n;o++)i[o]=0<t?e.i(o+r)>>>t|e.i(o+r+1)<<32-t:e.i(o+r);return new s(i,e.h)}(c=s.prototype).m=function(){if(y(this))return-m(this).m();for(var e=0,t=1,r=0;r<this.g.length;r++){var n=this.i(r);e+=(0<=n?n:0x100000000+n)*t,t*=0x100000000}return e},c.toString=function(e){if(2>(e=e||10)||36<e)throw Error("radix out of range: "+e);if(g(this))return"0";if(y(this))return"-"+m(this).toString(e);for(var t=d(Math.pow(e,6)),r=this,n="";;){var i=E(r,t).g,o=((0<(r=b(r,i.j(t))).g.length?r.g[0]:r.h)>>>0).toString(e);if(g(r=i))return o+n;for(;6>o.length;)o="0"+o;n=o+n}},c.i=function(e){return 0>e?0:e<this.g.length?this.g[e]:this.h},c.l=function(e){return y(e=b(this,e))?-1:+!g(e)},c.abs=function(){return y(this)?m(this):this},c.add=function(e){for(var t=Math.max(this.g.length,e.g.length),r=[],n=0,i=0;i<=t;i++){var o=n+(65535&this.i(i))+(65535&e.i(i)),a=(o>>>16)+(this.i(i)>>>16)+(e.i(i)>>>16);n=a>>>16,o&=65535,a&=65535,r[i]=a<<16|o}return new s(r,-0x80000000&r[r.length-1]?-1:0)},c.j=function(e){if(g(this)||g(e))return h;if(y(this))return y(e)?m(this).j(m(e)):m(m(this).j(e));if(y(e))return m(this.j(m(e)));if(0>this.l(p)&&0>e.l(p))return d(this.m()*e.m());for(var t=this.g.length+e.g.length,r=[],n=0;n<2*t;n++)r[n]=0;for(n=0;n<this.g.length;n++)for(var i=0;i<e.g.length;i++){var o=this.i(n)>>>16,a=65535&this.i(n),c=e.i(i)>>>16,l=65535&e.i(i);r[2*n+2*i]+=a*l,v(r,2*n+2*i),r[2*n+2*i+1]+=o*l,v(r,2*n+2*i+1),r[2*n+2*i+1]+=a*c,v(r,2*n+2*i+1),r[2*n+2*i+2]+=o*c,v(r,2*n+2*i+2)}for(n=0;n<t;n++)r[n]=r[2*n+1]<<16|r[2*n];for(n=t;n<2*t;n++)r[n]=0;return new s(r,0)},c.A=function(e){return E(this,e).h},c.and=function(e){for(var t=Math.max(this.g.length,e.g.length),r=[],n=0;n<t;n++)r[n]=this.i(n)&e.i(n);return new s(r,this.h&e.h)},c.or=function(e){for(var t=Math.max(this.g.length,e.g.length),r=[],n=0;n<t;n++)r[n]=this.i(n)|e.i(n);return new s(r,this.h|e.h)},c.xor=function(e){for(var t=Math.max(this.g.length,e.g.length),r=[],n=0;n<t;n++)r[n]=this.i(n)^e.i(n);return new s(r,this.h^e.h)},e.prototype.digest=e.prototype.v,e.prototype.reset=e.prototype.s,e.prototype.update=e.prototype.u,i=a.Md5=e,s.prototype.add=s.prototype.add,s.prototype.multiply=s.prototype.j,s.prototype.modulo=s.prototype.A,s.prototype.compare=s.prototype.l,s.prototype.toNumber=s.prototype.m,s.prototype.toString=s.prototype.toString,s.prototype.getBits=s.prototype.i,s.fromNumber=d,s.fromString=function e(t,r){if(0==t.length)throw Error("number format error: empty string");if(2>(r=r||10)||36<r)throw Error("radix out of range: "+r);if("-"==t.charAt(0))return m(e(t.substring(1),r));if(0<=t.indexOf("-"))throw Error('number format error: interior "-" character');for(var n=d(Math.pow(r,8)),i=h,o=0;o<t.length;o+=8){var a=Math.min(8,t.length-o),s=parseInt(t.substring(o,o+a),r);8>a?(a=d(Math.pow(r,a)),i=i.j(a).add(d(s))):i=(i=i.j(n)).add(d(s))}return i},n=a.Integer=s}).apply(void 0!==o?o:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},91398:(e,t,r)=>{"use strict";let n,i;r.d(t,{MF:()=>H,j6:()=>T,xZ:()=>x,om:()=>P,Sx:()=>N,Wp:()=>M,KO:()=>L});var o=r(22396),a=r(5969),s=r(57176);let c=new WeakMap,l=new WeakMap,u=new WeakMap,d=new WeakMap,h=new WeakMap,f={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return l.get(e);if("objectStoreNames"===t)return e.objectStoreNames||u.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return p(e[t])},set:(e,t,r)=>(e[t]=r,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function p(e){if(e instanceof IDBRequest){let t=new Promise((t,r)=>{let n=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(p(e.result)),n()},o=()=>{r(e.error),n()};e.addEventListener("success",i),e.addEventListener("error",o)});return t.then(t=>{t instanceof IDBCursor&&c.set(t,e)}).catch(()=>{}),h.set(t,e),t}if(d.has(e))return d.get(e);let t=function(e){if("function"==typeof e)return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(i||(i=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(g(this),t),p(c.get(this))}:function(...t){return p(e.apply(g(this),t))}:function(t,...r){let n=e.call(g(this),t,...r);return u.set(n,t.sort?t.sort():[t]),p(n)};return e instanceof IDBTransaction&&function(e){if(l.has(e))return;let t=new Promise((t,r)=>{let n=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),n()},o=()=>{r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)});l.set(e,t)}(e),(n||(n=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some(t=>e instanceof t)?new Proxy(e,f):e}(e);return t!==e&&(d.set(e,t),h.set(t,e)),t}let g=e=>h.get(e),y=["get","getKey","getAll","getAllKeys","count"],m=["put","add","delete","clear"],b=new Map;function v(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(b.get(t))return b.get(t);let r=t.replace(/FromIndex$/,""),n=t!==r,i=m.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(i||y.includes(r)))return;let o=async function(e,...t){let o=this.transaction(e,i?"readwrite":"readonly"),a=o.store;
17return n&&(a=a.index(t.shift())),(await Promise.all([a[r](...t),i&&o.done]))[0]};return b.set(t,o),o}f=(e=>({...e,get:(t,r,n)=>v(t,r)||e.get(t,r,n),has:(t,r)=>!!v(t,r)||e.has(t,r)}))(f);class w{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(e=>{if(!function(e){let t=e.getComponent();return(null==t?void 0:t.type)==="VERSION"}(e))return null;{let t=e.getImmediate();return`${t.library}/${t.version}`}}).filter(e=>e).join(" ")}}let E="@firebase/app",_="0.13.2",S=new a.Vy("@firebase/app"),A="[DEFAULT]",k={[E]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/data-connect":"fire-data-connect","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","@firebase/ai":"fire-vertex","fire-js":"fire-js",firebase:"fire-js-all"},O=new Map,C=new Map,j=new Map;function I(e,t){try{e.container.addComponent(t)}catch(r){S.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,r)}}function P(e){let t=e.name;if(j.has(t))return S.debug(`There were multiple attempts to register component ${t}.`),!1;for(let r of(j.set(t,e),O.values()))I(r,e);for(let t of C.values())I(t,e);return!0}function T(e,t){let r=e.container.getProvider("heartbeat").getImmediate({optional:!0});return r&&r.triggerHeartbeat(),e.container.getProvider(t)}function x(e){return null!=e&&void 0!==e.settings}let R=new s.FA("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
17d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class D{constructor(e,t,r){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new o.uA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw R.create("app-deleted",{appName:this._name})}}let H="11.10.0";function M(e,t={}){let r=e;"object"!=typeof t&&(t={name:t});let n=Object.assign({name:A,automaticDataCollectionEnabled:!0},t),i=n.name;if("string"!=typeof i||!i)throw R.create("bad-app-name",{appName:String(i)});if(r||(r=(0,s.T9)()),!r)throw R.create("no-options");let a=O.get(i);if(a)if((0,s.bD)(r,a.options)&&(0,s.bD)(n,a.config))return a;else throw R.create("duplicate-app",{appName:i});let c=new o.h1(i);for(let e of j.values())c.addComponent(e);let l=new D(r,n,c);return O.set(i,l),l}function N(e=A){let t=O.get(e);if(!t&&e===A&&(0,s.T9)())return M();if(!t)throw R.create("no-app",{appName:e});return t}function L(e,t,r){var n;let i=null!=(n=k[e])?n:e;r&&(i+=`-${r}`);let a=i.match(/\s|\//),s=t.match(/\s|\//);if(a||s){let e=[`Unable to register library "${i}" with version "${t}":`];a&&e.push(`library name "${i}" contains illegal characters (whitespace or "/")`),a&&s&&e.push("and"),s&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),S.warn(e.join(" "));return}P(new o.uA(`${i}-version`,()=>({library:i,version:t}),"VERSION"))}let K="firebase-heartbeat-store",W=null;function U(){return W||(W=(function(e,t,{blocked:r,upgrade:n,blocking:i,terminated:o}={}){let a=indexedDB.open(e,1),s=p(a);return n&&a.addEventListener("upgradeneeded",e=>{n(p(a.result),e.oldVersion,e.newVersion,p(a.transaction),e)}),r&&a.addEventListener("blocked",e=>r(e.oldVersion,e.newVersion,e)),s.then(e=>{o&&e.addEventListener("close",()=>o()),i&&e.addEventListener("versionchange",e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),s})("firebase-heartbeat-database",0,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(K)}catch(e){console.warn(e)}}}).catch(e=>{throw R.create("idb-open",{originalErrorMessage:e.message})})),W}async function J(e){try{let t=(await U()).transaction(K),r=await t.objectStore(K).get(F(e));return await t.done,r}catch(e){if(e instanceof s.g)S.warn(e.message);else{let t=R.create("idb-get",{originalErrorMessage:null==e?void 0:e.message});S.warn(t.message)}}}async function B(e,t){try{let r=(await U()).transaction(K,"readwrite"),n=r.objectStore(K);await n.put(t,F(e)),await r.done}catch(e){if(e instanceof s.g)S.warn(e.message);else{let t=R.create("idb-set",{originalErrorMessage:null==e?void 0:e.message});S.warn(t.message)}}}function F(e){return`${e.name}!${e.options.appId}`}class G{constructor(e){this.container=e,this._heartbeatsCache=null;let t=this.container.getProvider("app").getImmediate();this._storage=new V(t),this._heartbeatsCachePromise=this._storage.read().then(e=>(this._heartbeatsCache=e,e))}async triggerHeartbeat(){var e,t;try{let r=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),n=$();if((null==(e=this._heartbeatsCache)?void 0:e.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,(null==(t=this._heartbeatsCache)?void 0:t.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===n||this._heartbeatsCache.heartbeats.some(e=>e.date===n))return;if(this._heartbeatsCache.heartbeats.push({date:n,agent:r}),this._heartbeatsCache.heartbeats.length>30){let e=function(e){if(0===e.length)return -1;let t=0,r=e[0].date;for(let n=1;n<e.length;n++)e[n].date<r&&(r=e[n].date,t=n);return t}(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(e,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(e){S.warn(e)}}async getHeartbeatsHeader(){var e;try{if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,(null==(e=this._heartbeatsCache)?void 0:e.heartbeats)==null||0===this._heartbeatsCache.heartbeats.length)return"";let t=$(),{heartbeatsToSend:r,unsentEntries:n}=function(e,t=1024){let r=[],n=e.slice();for(let i of e){let e=r.find(e=>e.agent===i.agent);if(e){if(e.dates.push(i.date),z(r)>t){e.dates.pop();break}}else if(r.push({agent:i.agent,dates:[i.date]}),z(r)>t){r.pop();break}n=n.slice(1)}return{heartbeatsToSend:r,unsentEntries:n}}(this._heartbeatsCache.heartbeats),i=(0,s.Uj)(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=t,n.length>0?(this._heartbeatsCache.heartbeats=n,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}catch(e){return S.warn(e),""}}}function $(){return new Date().toISOString().substring(0,10)}class V{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!(0,s.zW)()&&(0,s.eX)().then(()=>!0).catch(()=>!1)}async read(){if(!await this._canUseIndexedDBPromise)return{heartbeats:[]};{let e=await J(this.app);return(null==e?void 0:e.heartbeats)?e:{heartbeats:[]}}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){let r=await this.read();return B(this.app,{lastSentHeartbeatDate:null!=(t=e.lastSentHeartbeatDate)?t:r.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){let r=await this.read();return B(this.app,{lastSentHeartbeatDate:null!=(t=e.lastSentHeartbeatDate)?t:r.lastSentHeartbeatDate,heartbeats:[...r.heartbeats,...e.heartbeats]})}}}function z(e){return(0,s.Uj)(JSON.stringify({version:2,heartbeats:e})).length}P(new o.uA("platform-logger",e=>new w(e),"PRIVATE")),P(new o.uA("heartbeat",e=>new G(e),"PRIVATE")),L(E,_,""),L(E,_,"esm2017"),L("fire-js","")},93372:function(e){e.exports=function(){var e={
17"./packages/@logrocket/console/src/index.js":function(e,t,r){"use strict";var n=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=n(r("./packages/@logrocket/console/src/registerConsole.js")).default},
17"./packages/@logrocket/console/src/registerConsole.js":function(e,t,r){"use strict";var n=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=[];return["log","warn","info","error","debug"].forEach(function(r){t.push((0,o.default)(console,r,function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];e.addEvent("lr.core.LogEvent",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=t.isEnabled;if("object"===(0,i.default)(o)&&!1===o[r]||!1===o)return null;if("error"===r&&t.shouldAggregateConsoleErrors)if(n&&n.length>=2&&"ERROR"===n[0]){var s="";try{s=" ".concat(n[1])}catch(e){}a.Capture.captureMessage(e,"".concat(n[0]).concat(s),n,{},!0)}else a.Capture.captureMessage(e,n[0],n,{},!0);return{logLevel:r.toUpperCase(),args:n}})}))}),function(){t.forEach(function(e){return e()})}};var i=n(r("./node_modules/@babel/runtime/helpers/typeof.js")),o=n(r("./packages/@logrocket/utils/src/enhanceFunc.ts")),a=r("./packages/@logrocket/exceptions/src/index.js")},
17"./packages/@logrocket/exceptions/src/Capture.js":function(e,t,r){"use strict";var n=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(t,"__esModule",{value:!0}),t.captureMessage=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a={exceptionType:o?"CONSOLE":"MESSAGE",message:t,messageArgs:r,browserHref:window.location?window.location.href:""};(0,i.scrubException)(a,n),e.addEvent("lr.core.Exception",function(){return a})},t.captureException=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"WINDOW",c=n||o.default.computeStackTrace(t),l={exceptionType:s,errorType:c.name,message:c.message,browserHref:window.location?window.location.href:""};(0,i.scrubException)(l,r);var u={_stackTrace:(0,a.default)(c)};e.addEvent("lr.core.Exception",function(){return l},u)};var i=r("./packages/@logrocket/utils/src/scrubException.ts"),o=n(r("./packages/@logrocket/utils/src/TraceKit.js")),a=n(r("./packages/@logrocket/exceptions/src/stackTraceFromError.js"))},
17"./packages/@logrocket/exceptions/src/index.js":function(e,t,r){"use strict";var n=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),i=r("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"registerExceptions",{enumerable:!0,get:function(){return o.default}}),t.Capture=void 0;var o=n(r("./packages/@logrocket/exceptions/src/registerExceptions.js"));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}t.Capture=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var c=o?Object.getOwnPropertyDescriptor(e,s):null;c&&(c.get||c.set)?Object.defineProperty(n,s,c):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n}(r("./packages/@logrocket/exceptions/src/Capture.js"))},
17"./packages/@logrocket/exceptions/src/raven/raven.js":function(e,t,r){"use strict";var n=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("./node_modules/@babel/runtime/helpers/classCallCheck.js")),o=n(r("./node_modules/@babel/runtime/helpers/createClass.js")),a=n(r("./packages/@logrocket/utils/src/TraceKit.js")),s=Object.prototype;function c(e){return"function"==typeof e}function l(e,t,r,n){var i=e[t];e[t]=r(i),n&&n.push([e,t,i])}var u="undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{};u.document,t.default=function(){function e(t){var r=t.captureException;(0,i.default)(this,e),this._errorHandler=this._errorHandler.bind(this),this._ignoreOnError=0,this._wrappedBuiltIns=[],this.captureException=r,a.default.report.subscribe(this._errorHandler),this._instrumentTryCatch()}return(0,o.default)(e,[{key:"uninstall",value:function(){for(a.default.report.unsubscribe(this._errorHandler);this._wrappedBuiltIns.length;){var e=this._wrappedBuiltIns.shift(),t=e[0],r=e[1],n=e[2];t[r]=n}}},{key:"_errorHandler",value:function(e){this._ignoreOnError||this.captureException(e)}},{key:"_ignoreNextOnError",value:function(){var e=this;this._ignoreOnError+=1,setTimeout(function(){e._ignoreOnError-=1})}},{key:"context",value:function(e,t,r){return c(e)&&(r=t||[],t=e,e=void 0),this.wrap(e,t).apply(this,r)}},{key:"wrap",value:function(e,t,r){var n,i=this;if(void 0===t&&!c(e))return e;if(c(e)&&(t=e,e=void 0),!c(t))return t;try{if(t.__lr__)return t;if(t.__lr_wrapper__)return t.__lr_wrapper__;if(!Object.isExtensible(t))return t}catch(e){return t}function o(){var n=[],o=arguments.length,s=!e||e&&!1!==e.deep;for(r&&c(r)&&r.apply(this,arguments);o--;)n[o]=s?i.wrap(e,arguments[o]):arguments[o];try{return t.apply(this,n)}catch(t){throw i._ignoreNextOnError(),i.captureException(a.default.computeStackTrace(t),e),t}}for(var l in t)n=t,s.hasOwnProperty.call(n,l)&&(o[l]=t[l]);return o.prototype=t.prototype,t.__lr_wrapper__=o,o.__lr__=!0,o.__inner__=t,o}},{key:"_instrumentTryCatch",value:function(){var e=this,t=e._wrappedBuiltIns;function r(t){return function(r,n){for(var i=Array(arguments.length),o=0;o<i.length;++o)i[o]=arguments[o];var a=i[0];return(c(a)&&(i[0]=e.wrap(a)),t.apply)?t.apply(this,i):t(i[0],i[1])}}l(u,"setTimeout",r,t),l(u,"setInterval",r,t),u.requestAnimationFrame&&l(u,"requestAnimationFrame",function(t){return function(r){return t(e.wrap(r))}},t);for(var n=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],i=0;i<n.length;i++)!function(r){var n=u[r]&&u[r].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(l(n,"addEventListener",function(t){return function(r,n,i,o){var a;try{n&&n.handleEvent&&(n.handleEvent=e.wrap(n.handleEvent))}catch(e){}return t.call(this,r,e.wrap(n,void 0,a),i,o)}},t),l(n,"removeEventListener",function(e){return function(t,r,n,i){try{var o=null==r?void 0:r.__lr_wrapper__;o&&e.call(this,t,o,n,i)}catch(e){}return e.call(this,t,r,n,i)}},void 0))}(n[i]);var o=u.jQuery||u.$;o&&o.fn&&o.fn.ready&&l(o.fn,"ready",function(t){return function(r){return t.call(this,e.wrap(r))}},t)}}]),e}()},
17"./packages/@logrocket/exceptions/src/registerExceptions.js":function(e,t,r){"use strict";var n=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),i=r("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=new o.default({captureException:function(t){a.captureException(e,null,null,t)}}),r=function(t){t.reason instanceof Error?a.captureException(e,t.reason,null,null,"UNHANDLED_REJECTION"):e.addEvent("lr.core.Exception",function(){return{exceptionType:"UNHANDLED_REJECTION",message:t.reason||"Unhandled Promise rejection"}})};return window.addEventListener("unhandledrejection",r),function(){window.removeEventListener("unhandledrejection",r),t.uninstall()}};var o=n(r("./packages/@logrocket/exceptions/src/raven/raven.js")),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var c=o?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(n,a,c):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r("./packages/@logrocket/exceptions/src/Capture.js"));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}},
17"./packages/@logrocket/exceptions/src/stackTraceFromError.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(e){return null===e?void 0:e}return e.stack?e.stack.map(function(e){return{lineNumber:t(e.line),columnNumber:t(e.column),fileName:t(e.url),functionName:t(e.func)}}):void 0}},
17"./packages/@logrocket/network/src/fetchIntercept.js":function(e,t,r){"use strict";var n=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("./node_modules/@babel/runtime/helpers/toConsumableArray.js")),o=r("./packages/@logrocket/network/src/registerXHR.js"),a=[];function s(e,t){for(var r=a.reduce(function(e,t){return[t].concat(e)},[]),n=arguments.length,s=Array(n>2?n-2:0),c=2;c<n;c++)s[c-2]=arguments[c];var l=Promise.resolve(s);return r.forEach(function(e){var r=e.request,n=e.requestError;(r||n)&&(l=l.then(function(e){return r.apply(void 0,[t].concat((0,i.default)(e)))},function(e){return n.apply(void 0,[t].concat((0,i.default)(e)))}))}),l=l.then(function(t){var r,n;(0,o.setActive)(!1);try{r=e.apply(void 0,(0,i.default)(t))}catch(e){n=e}if((0,o.setActive)(!0),n)throw n;return r}),r.forEach(function(e){var r=e.response,n=e.responseError;(r||n)&&(l=l.then(function(e){return r(t,e)},function(e){return n&&n(t,e)}))}),l}var c=!1;t.default={register:function(e){if(!c){c=!0;var t=window;if(t.fetch&&t.Promise){var r,n,i=t.fetch.polyfill;r=t.fetch,n=0,t.fetch=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return s.apply(void 0,[r,n++].concat(t))},i&&(t.fetch.polyfill=i)}}return a.push(e),function(){var t=a.indexOf(e);t>=0&&a.splice(t,1)}},clear:function(){a=[]}}},
17"./packages/@logrocket/network/src/index.js":function(e,t,r){"use strict";var n=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{isReactNative:!1,isDisabled:!1};if((null==t?void 0:t.isDisabled)===!0)return function(){};var r=t.isReactNative,n=t.shouldAugmentNPS,i=t.shouldParseXHRBlob,d={},f=function(e){var t=e;if("object"===(0,o.default)(e)&&null!=e){var r=Object.getPrototypeOf(e);(r===Object.prototype||null===r)&&(t=JSON.stringify(e))}if(t&&t.length&&t.length>4096e3&&"string"==typeof t){var n=t.substring(0,1e3);return"".concat(n," ... LogRocket truncating to first 1000 characters.\n      Keep data under 4MB to prevent truncation. https://docs.logrocket.com/reference/network")}return e},p=function(t,r){var n=r.method;e.addEvent("lr.network.RequestEvent",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.isEnabled,o=e.requestSanitizer;if(!(void 0===i||i))return null;var a=null;try{a=(void 0===o?function(e){return e}:o)(h(h({},r),{},{reqId:t}))}catch(e){console.error(e)}if(a){var s=a.url;if("undefined"!=typeof document&&"function"==typeof document.createElement){var c=document.createElement("a");c.href=a.url,s=c.href}return{reqId:t,url:s,headers:(0,u.default)(a.headers,function(e){return"".concat(e)}),body:f(a.body),method:n,referrer:a.referrer||void 0,mode:a.mode||void 0,credentials:a.credentials||void 0}}return d[t]=!0,null})},g=function(t,r){var n=r.method,i=r.status,o=r.responseType;e.addEvent("lr.network.ResponseEvent",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.isEnabled,s=e.responseSanitizer;if(!(void 0===a||a))return null;if(d[t])return delete d[t],null;var c=null;try{c=(void 0===s?function(e){return e}:s)(h(h({},r),{},{reqId:t}))}catch(e){console.error(e)}return c?{reqId:t,responseType:o,status:c.status,headers:(0,u.default)(c.headers,function(e){return"".concat(e)}),body:f(c.body),method:n}:{reqId:t,responseType:o,status:i,headers:{},body:null,method:n}})},y=function(t){return e.isDisabled||!0===d[t]},m=(0,a.default)({addRequest:p,addResponse:g,isIgnored:y}),b=(0,l.default)({addRequest:p,addResponse:g,isIgnored:y,logger:e,shouldAugmentNPS:n,shouldParseXHRBlob:i}),v=(0,s.registerIonic)({addRequest:p,addResponse:g,isIgnored:y}),w=r?function(){}:(0,c.default)(e);return function(){w(),m(),b(),v()}};var i=n(r("./node_modules/@babel/runtime/helpers/defineProperty.js")),o=n(r("./node_modules/@babel/runtime/helpers/typeof.js")),a=n(r("./packages/@logrocket/network/src/registerFetch.js")),s=r("./packages/@logrocket/network/src/registerIonic.ts"),c=n(r("./packages/@logrocket/network/src/registerNetworkInformation.js")),l=n(r("./packages/@logrocket/network/src/registerXHR.js")),u=n(r("./packages/@logrocket/utils/src/mapValues.js"));function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach(function(t){(0,i.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}},
17"./packages/@logrocket/network/src/registerFetch.js":function(e,t,r){"use strict";var n=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.addRequest,r=e.addResponse,n=e.isIgnored,i="fetch-",o={};return a.default.register({request:function(e){for(var r,n,a=arguments.length,s=Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];if("undefined"!=typeof Request&&s[0]instanceof Request){try{n=s[0].clone().text()}catch(e){n=Promise.resolve("LogRocket fetch error: ".concat(e.message))}r=n.then(function(e){return c(c({},u(s[0])),{},{body:e})},function(e){return c(c({},u(s[0])),{},{body:"LogRocket fetch error: ".concat(e.message)})})}else r=Promise.resolve(c(c({},u(s[1])),{},{url:"".concat(s[0]),body:(s[1]||{}).body}));return r.then(function(r){return o[e]=r.method,t("".concat(i).concat(e),r),s})},requestError:function(e,t){return Promise.reject(t)},response:function(e,t){if(n("".concat(i).concat(e)))return t;if("text/event-stream"===t.headers.get("content-type"))s=Promise.resolve("LogRocket skipped consuming an event-stream body.");else{try{a=t.clone()}catch(n){var a,s,c={url:t.url,responseType:t.type.toUpperCase(),status:t.status,headers:l(t.headers),body:"LogRocket fetch error: ".concat(n.message),method:o[e]};return delete o[e],r("".concat(i).concat(e),c),t}try{if(window.TextDecoder&&a.body){var u=a.body.getReader(),d=new window.TextDecoder("utf-8"),h="";s=u.read().then(function e(t){var r=t.done,n=t.value;if(r)return h;var i=n?d.decode(n,{stream:!0}):"";return h+=i,u.read().then(e)})}else s=a.text()}catch(e){s=Promise.resolve("LogRocket error reading body: ".concat(e.message))}}return s.catch(function(e){if(!("AbortError"===e.name&&e instanceof DOMException))return"LogRocket error reading body: ".concat(e.message)}).then(function(n){var a={url:t.url,responseType:t.type.toUpperCase(),status:t.status,headers:l(t.headers),body:n,method:o[e]};delete o[e],r("".concat(i).concat(e),a)}),t},responseError:function(e,t){return r("".concat(i).concat(e),{url:void 0,status:0,headers:{},body:"".concat(t)}),Promise.reject(t)}})};var i=n(r("./node_modules/@babel/runtime/helpers/defineProperty.js")),o=n(r("./packages/@logrocket/utils/src/mapValues.js")),a=n(r("./packages/@logrocket/network/src/fetchIntercept.js"));function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){(0,i.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var l=function(e){return(0,o.default)(function(e){if(null==e||"function"!=typeof e.forEach)return e;var t={};return e.forEach(function(e,r){t[r]?t[r]="".concat(t[r],",").concat(e):t[r]="".concat(e)}),t}(e),function(e){return"".concat(e)})};function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{url:e.url,headers:l(e.headers),method:e.method&&e.method.toUpperCase(),referrer:e.referrer||void 0,mode:e.mode||void 0,credentials:e.credentials||void 0}}},
17"./packages/@logrocket/network/src/registerIonic.ts":function(e,t,r){"use strict";var n=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(t,"__esModule",{value:!0}),t.mergeHeaders=S,t.serializeQueryParams=function(e,t){return O("",e,t)},t.appendQueryParamsString=C,t.processData=j,t.registerIonic=function(e){var t,r,n,i=e.addRequest,o=e.addResponse,a=e.isIgnored,c=null==(t=window.cordova)||null==(r=t.plugin)?void 0:r.http,l={},u=!1;if(void 0===c)return function(){};var y=null==(n=window.ionic)?void 0:n.platforms;if(void 0!==y&&"function"==typeof y.some&&y.some(function(e){return g.has(e)}))return function(){};var m=c.sendRequest,w=(0,s.default)(function(e,t,r){if(!a("".concat(p).concat(r)))try{var n={url:e.url||"",status:e.status<600&&e.status>=100?e.status:0,headers:e.headers||{},body:t?e.data:e.error,method:l[r].toUpperCase()};o("".concat(p).concat(r),n)}catch(t){var i={url:e.url||"",status:e.status<600&&e.status>=100?e.status:0,headers:e.headers||{},body:"LogRocket fetch error: ".concat(t.message),method:l[r].toUpperCase()};o("".concat(p).concat(r),i)}});return c.sendRequest=function(e,t,r,n){var o=++I;if(!u)try{var a,s,g=function(e,t){var r,n=(e=e||{}).data;try{r=E(h,e.serializer||t.getDataSerializer(),"serializer / data payload type")}catch(i){r=E(f,e.serializer||t.getDataSerializer(),"serializer / data payload type"),n={}}return{data:n,filePath:e.filePath,followRedirect:e.followRedirect,headers:_(e.headers||{},b,"Invalid header type, must be string"),method:E(d,e.method||d[0],"method"),name:e.name,params:_(e.params||{},v,"Invalid param, must be of type string or array"),responseType:e.responseType,serializer:r,connectTimeout:e.connectTimeout,readTimeout:e.readTimeout,timeout:e.timeout}}(t,c),y=C(e,O("",g.params,!0)),A=(a=g.headers,S(S(c.getHeaders("*")||{},(s=new URL(e).host,c.getHeaders(s)||{})),a)),k=g.method||"get";l[o]=k;var P={url:y,method:k.toUpperCase(),headers:A||{},body:j(g.data||{},g.serializer)};i("".concat(p).concat(o),P)}catch(r){var T={url:e,method:(t.method||"get").toUpperCase(),headers:{},body:"LogRocket fetch error: ".concat(r.message)};i("".concat(p).concat(o),T)}return m(e,t,function(e){u||(w(e,!0,o),delete l[o]),r(e)},function(e){u||(w(e,!1,o),delete l[o]),n(e)})},function(){u=!0,c.sendRequest=m,l={}}};var i=n(r("./node_modules/@babel/runtime/helpers/defineProperty.js")),o=n(r("./node_modules/@babel/runtime/helpers/typeof.js")),a=n(r("./node_modules/@babel/runtime/helpers/toConsumableArray.js")),s=n(r("./packages/@logrocket/utils/src/protectFunc.js"));function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){(0,i.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var d=new Set(["get","put","post","patch","head","delete","options","upload","download"]),h=new Set(["urlencoded","json","utf8"]),f=new Set(["raw","multipart"]),p="ionic-",g=new Set(["desktop","mobileweb","pwa"]),y=new Set(["FormData"]),m=new Set,b=new Set(["string"]),v=new Set(["string","array"]),w={utf8:b,urlencoded:new Set(["object"]),json:new Set(["array","object"]),raw:new Set(["Uint8Array","ArrayBuffer"]),default:m};function E(e,t,r){if("string"!=typeof t||(t=t.trim().toLowerCase(),!e.has(t)))throw Error("".concat(r," must be one of: ").concat((0,a.default)(e).join(", ")));return t}function _(e,t,r){if("object"!==(0,o.default)(e))throw Error(r);for(var n=0,i=Object.keys(e);n<i.length;n++){var a=i[n];if(!t.has((0,o.default)(e[a])))throw Error(r)}return e}function S(e,t){return u(u({},e),t)}function A(e,t){return t?encodeURIComponent(e):e}function k(e,t,r){return e.length?r?"".concat(encodeURIComponent(e),"[").concat(encodeURIComponent(t),"]"):"".concat(e,"[").concat(t,"]"):r?encodeURIComponent(t):t}function O(e,t,r){var n=[];for(var i in t)if(t.hasOwnProperty(i)){var a=e.length?"".concat(e,"[").concat(i,"]"):i;if(Array.isArray(t[i])){n.push(function e(t,r,n){var i,a=[],s=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return c(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}}(e))){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}
17}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(r);try{for(s.s();!(i=s.n()).done;){var l=i.value;if(Array.isArray(l)){a.push(e("".concat(t,"[]"),l,n));continue}if("object"===(0,o.default)(l)){a.push(O("".concat(t,"[]").concat(l),n,void 0));continue}a.push("".concat(k(t,"",n),"=").concat(A(l,n)))}}catch(e){s.e(e)}finally{s.f()}return a.join("&")}(a,t[i],r));continue}if("object"===(0,o.default)(t[i])&&null!==t[i]){n.push(O(a,t[i],r));continue}n.push("".concat(k(e,i,r),"=").concat(A(t[i],r)))}return n.join("&")}function C(e,t){if(!e.length||!t.length)return e;var r=new URL(e),n=r.host,i=r.pathname,o=r.search,a=r.hash,s=r.protocol;return"".concat(s,"//").concat(n).concat(i).concat(o.length?"".concat(o,"&").concat(t):"?".concat(t)).concat(a)}function j(e,t){var n=(0,o.default)(e),i=w[t]||w.default,s="multipart"===t?y:m;if(s.size>0){var c=!1;if(s.forEach(function(t){r.g[t]&&e instanceof r.g[t]&&(c=!0)}),!c)throw Error("INSTANCE_TYPE_MISMATCH_DATA ".concat((0,a.default)(s).join(", ")))}if(0===s.size&&!i.has(n))throw Error("TYPE_MISMATCH_DATA ".concat((0,a.default)(i).join(", ")));return"utf8"===t?e:JSON.stringify(e,void 0,2)}var I=0},
17"./packages/@logrocket/network/src/registerNetworkInformation.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=void 0;function n(){var n={online:window.navigator.onLine,effectiveType:"UNKOWN"};window.navigator.onLine?window.navigator.connection&&window.navigator.connection.effectiveType&&(n.effectiveType=r[window.navigator.connection.effectiveType]||"UNKNOWN"):n.effectiveType="NONE",t&&n.online===t.online&&n.effectiveType===t.effectiveType||(t=n,e.addEvent("lr.network.NetworkStatusEvent",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.isEnabled;return void 0===t||t?n:null}))}return setTimeout(n),window.navigator.connection&&"function"==typeof window.navigator.connection.addEventListener&&window.navigator.connection.addEventListener("change",n),window.addEventListener("online",n),window.addEventListener("offline",n),function(){window.removeEventListener("offline",n),window.removeEventListener("online",n),window.navigator.connection&&"function"==typeof window.navigator.connection.removeEventListener&&window.navigator.connection.removeEventListener("change",n)}};var r={"slow-2g":"SLOW2G","2g":"TWOG","3g":"THREEG","4g":"FOURG"}},
17"./packages/@logrocket/network/src/registerXHR.js":function(e,t,r){"use strict";var n=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(t,"__esModule",{value:!0}),t.setActive=function(e){c=e},t.default=function(e){var t=e.addRequest,r=e.addResponse,n=e.isIgnored,u=e.logger,d=e.shouldAugmentNPS,h=void 0===d||d,f=e.shouldParseXHRBlob,p=void 0!==f&&f,g=XMLHttpRequest,y=new WeakMap,m=!1,b="xhr-";return window._lrXMLHttpRequest=XMLHttpRequest,(XMLHttpRequest=function(e,d){var f=new g(e,d);if(!c)return f;y.set(f,{xhrId:++l,headers:{}});var v=f.open,w=f.send;h&&(f.open=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];try{var n=t[1];if(window.URL&&"function"==typeof window.URL&&0===n.search(s.WOOTRIC_RESPONSES_REGEX)){var i=new window.URL(u.recordingURL);i.searchParams.set("nps","wootric");var o=new window.URL(n),a=o.searchParams.get("response[text]");o.searchParams.set("response[text]","".concat(a?"".concat(a,"\n\n"):"","<").concat(i.href,"|View LogRocket session>")),t[1]=o.href}}catch(e){}return v.apply(this,t)},f.send=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];try{var n=y.get(f);if(window.URL&&"function"==typeof window.URL&&n&&n.url&&0===n.url.search(s.DELIGHTED_RESPONSES_REGEX)&&t.length&&-1!==t[0].indexOf(s.DELIGHTED_FEEDBACK_PREFIX)){var i=new window.URL(u.recordingURL);i.searchParams.set("nps","delighted");var o=encodeURIComponent(i.href),c=t[0].split("&").map(function(e){if((0,a.default)(e,s.DELIGHTED_FEEDBACK_PREFIX)){var t=e===s.DELIGHTED_FEEDBACK_PREFIX;return"".concat(e).concat(t?"":"\n\n","<").concat(o,"|View LogRocket session>")}return e}).join("&");t[0]=c}}catch(e){}return w.apply(this,t)}),(0,o.default)(f,"open",function(e,t){if(!m){var r=y.get(f);r.method=e,r.url=t}}),(0,o.default)(f,"send",function(e){if(!m){var r=y.get(f);if(r){var n={url:r.url,method:r.method&&r.method.toUpperCase(),headers:(0,i.default)(r.headers||{},function(e){return e.join(", ")}),body:e};t("".concat(b).concat(r.xhrId),n)}}}),(0,o.default)(f,"setRequestHeader",function(e,t){if(!m){var r=y.get(f);r&&(r.headers=r.headers||{},r.headers[e]=r.headers[e]||[],r.headers[e].push(t))}});var E={readystatechange:function(){if(!m&&4===f.readyState){var e,t=y.get(f);if(!(!t||n("".concat(b).concat(t.xhrId)))){var i=(f.getAllResponseHeaders()||"").split(/[\r\n]+/).reduce(function(e,t){var r=t.split(": ");if(r.length>0){var n=r.shift(),i=r.join(": ");e[n]?e[n]+=", ".concat(i):e[n]=i}return e},{});try{switch(f.responseType){case"json":e=u._shouldCloneResponse?JSON.parse(JSON.stringify(f.response)):f.response;break;case"arraybuffer":case"blob":e=f.response;break;case"document":e=f.responseXML;break;case"text":case"":e=f.responseText;break;default:e=""}}catch(t){e="LogRocket: Error accessing response."}var o={url:t.url,status:f.status,headers:i,body:e,method:(t.method||"").toUpperCase()};if(p&&o.body instanceof Blob){var a=new FileReader;a.readAsText(o.body),a.onload=function(){try{o.body=JSON.parse(a.result)}catch(e){}r("".concat(b).concat(t.xhrId),o)}}else r("".concat(b).concat(t.xhrId),o)}}}};
17return Object.keys(E).forEach(function(e){f.addEventListener(e,E[e])}),f}).prototype=g.prototype,["UNSENT","OPENED","HEADERS_RECEIVED","LOADING","DONE"].forEach(function(e){XMLHttpRequest[e]=g[e]}),function(){m=!0,XMLHttpRequest=g}};var i=n(r("./packages/@logrocket/utils/src/mapValues.js")),o=n(r("./packages/@logrocket/utils/src/enhanceFunc.ts")),a=n(r("./packages/@logrocket/utils/src/startsWith.js")),s=r("./packages/@logrocket/utils/src/constants/nps.js"),c=!0,l=0},
17"./packages/@logrocket/now/src/index.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=Date.now.bind(Date),n=r();t.default="undefined"!=typeof performance&&performance.now?performance.now.bind(performance):function(){return r()-n}},
17"./packages/@logrocket/redux/src/createEnhancer.js":function(e,t,r){"use strict";var n=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.stateSanitizer,n=void 0===r?function(e){return e}:r,i=t.actionSanitizer,a=void 0===i?function(e){return e}:i;return function(t){return function(r,i,l){var u=t(r,i,l),d=u.dispatch,h=c++;return e.addEvent("lr.redux.InitialState",function(){var e;try{e=n(u.getState())}catch(e){console.error(e.toString())}return{state:e,storeId:h}}),s(s({},u),{},{dispatch:function(t){var r,i,s=(0,o.default)();try{i=d(t)}catch(e){r=e}finally{var c=(0,o.default)()-s;e.addEvent("lr.redux.ReduxAction",function(){var e=null,r=null;try{e=n(u.getState()),r=a(t)}catch(e){console.error(e.toString())}return e&&r?{storeId:h,action:r,duration:c,stateDelta:e}:null})}if(r)throw r;return i}})}}};var i=n(r("./node_modules/@babel/runtime/helpers/defineProperty.js")),o=n(r("./packages/@logrocket/now/src/index.js"));function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){(0,i.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var c=0},
17"./packages/@logrocket/redux/src/createMiddleware.js":function(e,t,r){"use strict";var n=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.stateSanitizer,n=void 0===r?function(e){return e}:r,a=t.actionSanitizer,s=void 0===a?function(e){return e}:a;return function(t){var r=o++;return e.addEvent("lr.redux.InitialState",function(){var e;try{e=n(t.getState())}catch(e){console.error(e.toString())}return{state:e,storeId:r}}),function(o){return function(a){var c,l,u=(0,i.default)();try{l=o(a)}catch(e){c=e}finally{var d=(0,i.default)()-u;e.addEvent("lr.redux.ReduxAction",function(){var e=null,i=null;try{e=n(t.getState()),i=s(a)}catch(e){console.error(e.toString())}return e&&i?{storeId:r,action:i,duration:d,stateDelta:e}:null})}if(c)throw c;return l}}}};var i=n(r("./packages/@logrocket/now/src/index.js")),o=0},
17"./packages/@logrocket/redux/src/index.js":function(e,t,r){"use strict";var n=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createEnhancer",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"createMiddleware",{enumerable:!0,get:function(){return o.default}});var i=n(r("./packages/@logrocket/redux/src/createEnhancer.js")),o=n(r("./packages/@logrocket/redux/src/createMiddleware.js"))},
17"./packages/@logrocket/utils/src/TraceKit.js":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={collectWindowErrors:!0,debug:!1},i="undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{},o=[].slice,a=/^(?:Uncaught (?:exception: )?)?((?:Eval|Internal|Range|Reference|Syntax|Type|URI)Error): ?(.*)$/;function s(){return"undefined"==typeof document||void 0===document.location?"":document.location.href}n.report=function(){var e,t,r=[],c=null,l=null,u=null;function d(e,t){var i=null;if(!t||n.collectWindowErrors){for(var a in r)if(r.hasOwnProperty(a))try{r[a].apply(null,[e].concat(o.call(arguments,2)))}catch(e){i=e}if(i)throw i}}function h(t,r,i,o,c){if(u)n.computeStackTrace.augmentStackTraceWithInitialElement(u,r,i,t),f();else if(c)d(n.computeStackTrace(c),!0);else{var l,h={url:r,line:i,column:o},p=void 0,g=t;if("[object String]"===({}).toString.call(t)){var l=t.match(a);l&&(p=l[1],g=l[2])}h.func="?",d({name:p,message:g,url:s(),stack:[h]},!0)}return!!e&&e.apply(this,arguments)}function f(){var e=u,t=c;c=null,u=null,l=null,d.apply(null,[e,!1].concat(t))}function p(e,t){var r=o.call(arguments,1);if(u)if(l===e)return;else f();var i=n.computeStackTrace(e);if(u=i,l=e,c=r,setTimeout(function(){l===e&&f()},2e3*!!i.incomplete),!1!==t)throw e}return p.subscribe=function(n){t||(e=i.onerror,i.onerror=h,t=!0),r.push(n)},p.unsubscribe=function(e){for(var t=r.length-1;t>=0;--t)r[t]===e&&r.splice(t,1)},p.uninstall=function(){t&&(i.onerror=e,t=!1,e=void 0),r=[]},p}(),n.computeStackTrace=function(){function e(e){if(void 0!==e.stack&&e.stack){var t,r,n=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|<anonymous>).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,i=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|resource|\[native).*?)(?::(\d+))?(?::(\d+))?\s*$/i,o=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,a=e.stack.split("\n"),c=[];/^(.*) is undefined$/.exec(e.message);for(var l=0,u=a.length;l<u;++l){if(t=n.exec(a[l])){var d=t[2]&&-1!==t[2].indexOf("native");r={url:d?null:t[2],func:t[1]||"?",args:d?[t[2]]:[],line:t[3]?+t[3]:null,column:t[4]?+t[4]:null}}else if(t=o.exec(a[l]))r={url:t[2],func:t[1]||"?",args:[],line:+t[3],column:t[4]?+t[4]:null};else{if(!(t=i.exec(a[l])))continue;r={url:t[3],func:t[1]||"?",args:t[2]?t[2].split(","):[],line:t[4]?+t[4]:null,column:t[5]?+t[5]:null}}!r.func&&r.line&&(r.func="?"),c.push(r)}return c.length?(c[0].column||void 0===e.columnNumber||(c[0].column=e.columnNumber+1),{name:e.name,message:e.message,url:s(),stack:c}):null}}function t(e,t,r,n){var i={url:t,line:r};if(i.url&&i.line){if(e.incomplete=!1,i.func||(i.func="?"),e.stack.length>0&&e.stack[0].url===i.url){if(e.stack[0].line===i.line)return!1;else if(!e.stack[0].line&&e.stack[0].func===i.func)return e.stack[0].line=i.line,!1}return e.stack.unshift(i),e.partial=!0,!0}return e.incomplete=!0,!1}function r(i,o){var a=null;o=null==o?0:+o;try{if(a=e(i))return a}catch(e){if(n.debug)throw e}try{if(a=function e(i,o){for(var a,c,l=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,u=[],d={},h=!1,f=e.caller;f&&!h;f=f.caller)if(f!==r&&f!==n.report){if(c={url:null,func:"?",line:null,column:null},f.name?c.func=f.name:(a=l.exec(f.toString()))&&(c.func=a[1]),void 0===c.func)try{c.func=a.input.substring(0,a.input.indexOf("{"))}catch(e){}d[""+f]?h=!0:d[""+f]=!0,u.push(c)}o&&u.splice(0,o);var p={name:i.name,message:i.message,url:s(),stack:u};return t(p,i.sourceURL||i.fileName,i.line||i.lineNumber,i.message||i.description),p}(i,o+1))return a}catch(e){if(n.debug)throw e}return{name:i.name,message:i.message,url:s()}}return r.augmentStackTraceWithInitialElement=t,r.computeStackTraceFromStackProp=e,r}(),t.default=n},
17"./packages/@logrocket/utils/src/constants/nps.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DELIGHTED_FEEDBACK_PREFIX=t.DELIGHTED_RESPONSES_REGEX=t.WOOTRIC_RESPONSES_REGEX=void 0,t.WOOTRIC_RESPONSES_REGEX=/^https:\/\/production.wootric.com\/responses/,t.DELIGHTED_RESPONSES_REGEX=/^https:\/\/web.delighted.com\/e\/[a-zA-Z-]*\/c/,t.DELIGHTED_FEEDBACK_PREFIX="comment="},
17"./packages/@logrocket/utils/src/createUnsubListener.ts":function(e,t,r){"use strict";var n=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(t,"__esModule",{value:!0}),t.createUnsubListener=function(e){return function(){e.clear()}},t.Handler=void 0;var i=n(r("./node_modules/@babel/runtime/helpers/classCallCheck.js")),o=n(r("./node_modules/@babel/runtime/helpers/createClass.js"));t.Handler=function(){function e(t){(0,i.default)(this,e),this._value=void 0,this._value=t}return(0,o.default)(e,[{key:"get",value:function(){return this._value}},{key:"clear",value:function(){this._value=void 0}}]),e}()},
17"./packages/@logrocket/utils/src/enhanceFunc.ts":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if("function"!=typeof e[t])return i;try{var o=function(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=a.apply(this,r);return null==(e=s.get())||e.apply(this,r),i},a=e[t],s=new n.Handler(r);return e[t]=o,function(){s.clear(),e[t]===o&&(e[t]=a)}}catch(e){return i}};var n=r("./packages/@logrocket/utils/src/createUnsubListener.ts"),i=function(){}},
17"./packages/@logrocket/utils/src/logError.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="undefined"!=typeof console&&console.error&&console.error.bind?console.error.bind(console):function(){}},
17"./packages/@logrocket/utils/src/mapValues.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(null==e)return{};var r={};return Object.keys(e).forEach(function(n){r[n]=t(e[n])}),r}},
17"./packages/@logrocket/utils/src/protectFunc.js":function(e,t,r){"use strict";var n=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return function(){var r;try{r=e.apply(void 0,arguments)}catch(e){if("undefined"!=typeof window&&window._lrdebug)throw e;var n=t(e);(0,o.default)("LogRocket",e),(0,i.default)(e,n)}return r}};var i=n(r("./packages/@logrocket/utils/src/sendTelemetryData.js")),o=n(r("./packages/@logrocket/utils/src/logError.js"))},
17"./packages/@logrocket/utils/src/scrubException.ts":function(e,t,r){"use strict";var n=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(t,"__esModule",{value:!0}),t.scrubException=function(e,t){if(t){var r,n=o(c);try{for(n.s();!(r=n.n()).done;){var i=r.value,a=t[i];s(a)&&(e[i]=a.toString())}}catch(e){n.e(e)}finally{n.f()}var u,d=o(l);try{for(d.s();!(u=d.n()).done;){for(var h=u.value,f=t[h]||{},p={},g=0,y=Object.keys(f);g<y.length;g++){var m=y[g],b=f[m];s(b)&&(p[m.toString()]=b.toString())}e[h]=p}}catch(e){d.e(e)}finally{d.f()}}};var i=n(r("./node_modules/@babel/runtime/helpers/typeof.js"));function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return a(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw o}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e){return/boolean|number|string/.test((0,i.default)(e))}var c=["level","logger"],l=["tags","extra"]},
17"./packages/@logrocket/utils/src/sendTelemetryData.js":function(e,t,r){"use strict";var n=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(t,"__esModule",{value:!0}),t.sendTelemetry=function(e,t){if("undefined"!=typeof window&&window._lrdebug)return void(0,o.default)(e);t&&t.extra&&t.extra.appID&&"function"==typeof t.extra.appID.indexOf&&0===t.extra.appID.indexOf("au2drp/")&&Math.random()>=.25||l(c({message:e},t))},t.default=function(e,t){try{var r,n,i=e.message;try{r=JSON.stringify(t).slice(0,1e3)}catch(e){try{r="Could not stringify payload: ".concat(Object.prototype.toString.call(t))}catch(e){}}try{n=a.default.computeStackTrace(e).stack.map(function(e){return{filename:e.url,lineno:e.line,colno:e.column,function:e.func||"?"}})}catch(e){}l({message:i,extra:{stringPayload:r},exception:{values:[{type:e.type,value:i,stacktrace:{frames:n}}]}})}catch(e){(0,o.default)("Failed to send",e)}};var i=n(r("./node_modules/@babel/runtime/helpers/defineProperty.js")),o=n(r("./packages/@logrocket/utils/src/logError.js")),a=n(r("./packages/@logrocket/utils/src/TraceKit.js"));function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){(0,i.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(e){var t=window._lrXMLHttpRequest||XMLHttpRequest;try{var r,n,i=new t,a=e.message;i.open("POST","https://e.logrocket.com/api/3/store/?sentry_version=7&sentry_client=http%2F3.8.0&sentry_key=b64162b4187a4c5caae8a68a7e291793"),i.send(JSON.stringify(c({message:a,logger:"javascript",platform:"javascript",request:{headers:{"User-Agent":"undefined"!=typeof navigator&&navigator.userAgent},url:"undefined"!=typeof location&&location.href},release:"13dd130ab9a04ef867cdb9bbbdb0a16c225358f2",environment:(null==(r=window)||null==(n=r.__SDKCONFIG__)?void 0:n.scriptEnv)||"prod"},e)))}catch(e){(0,o.default)("Failed to send",e)}}},
17"./packages/@logrocket/utils/src/startsWith.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return e&&t&&e.substring(r,r+t.length)===t}},
17"./packages/logrocket/src/LogRocket.js":function(e,t,r){"use strict";var n=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.MAX_QUEUE_SIZE=void 0;var i=n(r("./node_modules/@babel/runtime/helpers/classCallCheck.js")),o=n(r("./node_modules/@babel/runtime/helpers/createClass.js")),a=n(r("./node_modules/@babel/runtime/helpers/defineProperty.js")),s=n(r("./node_modules/@babel/runtime/helpers/objectWithoutProperties.js")),c=n(r("./packages/@logrocket/network/src/index.js")),l=r("./packages/@logrocket/exceptions/src/index.js"),u=n(r("./packages/@logrocket/console/src/index.js")),d=r("./packages/@logrocket/redux/src/index.js");function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach(function(t){(0,a.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}t.MAX_QUEUE_SIZE=1e3;var p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ingestServer,r=(0,s.default)(e,["ingestServer"]);return t?f({serverURL:"".concat(t,"/i"),statsURL:"".concat(t,"/s")},r):r};t.default=function(){function e(){var t=this;(0,i.default)(this,e),this._buffer=[],["log","info","warn","error","debug"].forEach(function(e){t[e]=function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];t.addEvent("lr.core.LogEvent",function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"error"===e&&r.shouldAggregateConsoleErrors&&l.Capture.captureMessage(t,n[0],n,{},!0),{logLevel:e.toUpperCase(),args:n}},{shouldCaptureStackTrace:!0})}}),this._isInitialized=!1,this._installed=[],window._lr_surl_cb=this.getSessionURL.bind(this)}return(0,o.default)(e,[{key:"addEvent",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Date.now();this._run(function(i){i.addEvent(e,t,f(f({},r),{},{timeOverride:n}))})}},{key:"onLogger",value:function(e){for(this._logger=e;this._buffer.length>0;)this._buffer.shift()(this._logger)}},{key:"_run",value:function(e){if(!this._isDisabled)if(this._logger)e(this._logger);else{if(this._buffer.length>=1e3){this._isDisabled=!0,console.warn("LogRocket: script did not load. Check that you have a valid network connection."),this.uninstall();return}this._buffer.push(e.bind(this))}}},{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this._isInitialized){var r,n=t.shouldAugmentNPS,i=t.shouldParseXHRBlob,o=t.shouldDetectExceptions;(void 0===o||o)&&this._installed.push((0,l.registerExceptions)(this)),this._installed.push((0,c.default)(this,{shouldAugmentNPS:!!(void 0===n||n),shouldParseXHRBlob:!!(void 0!==i&&i),isDisabled:(null==t||null==(r=t.network)?void 0:r.isEnabled)===!1})),this._installed.push((0,u.default)(this)),this._isInitialized=!0,this._run(function(r){r.init(e,p(t))})}}},{key:"start",value:function(){this._run(function(e){e.start()})}},{key:"uninstall",value:function(){this._installed.forEach(function(e){return e()}),this._buffer=[],this._run(function(e){e.uninstall()})}},{key:"identify",value:function(e,t){this._run(function(r){r.identify(e,t)})}},{key:"startNewSession",value:function(){this._run(function(e){e.startNewSession()})}},{key:"track",value:function(e,t){this._run(function(r){r.track(e,t)})}},{key:"getSessionURL",value:function(e){if("function"!=typeof e)throw Error("LogRocket: must pass callback to getSessionURL()");this._run(function(t){t.getSessionURL?t.getSessionURL(e):e(t.recordingURL)})}},{key:"trackScrollEvent",value:function(e){this._logger&&this._logger.trackScrollEvent(e)}},{key:"getVersion",value:function(e){this._run(function(t){e(t.version)})}},{key:"captureMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l.Capture.captureMessage(this,e,[e],t)}},{key:"captureException",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l.Capture.captureException(this,e,t)}},{key:"version",get:function(){return this._logger&&this._logger.version}},{key:"sessionURL",get:function(){return this._logger&&this._logger.recordingURL}},{key:"recordingURL",get:function(){return this._logger&&this._logger.recordingURL}},{key:"recordingID",get:function(){return this._logger&&this._logger.recordingID}},{key:"threadID",get:function(){return this._logger&&this._logger.threadID}},{key:"tabID",get:function(){return this._logger&&this._logger.tabID}},{key:"reduxEnhancer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,d.createEnhancer)(this,e)}},{key:"reduxMiddleware",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,d.createMiddleware)(this,e)}},{key:"isDisabled",get:function(){return!!(this._isDisabled||this._logger&&this._logger._isDisabled)}}]),e}()},
17"./packages/logrocket/src/makeLogRocket.js":function(e,t,r){"use strict";var n=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return new i.default};if("undefined"!=typeof navigator&&"ReactNative"===navigator.product)throw Error("LogRocket on React Native requires the LogRocket React Native specific SDK. See setup guide here https://docs.logrocket.com/reference/react-native.");if("undefined"!=typeof window){if(window._disableLogRocket)return t();if(window.MutationObserver&&window.WeakMap){window._lrMutationObserver=window.MutationObserver;var n=r();return e(n),n}}return o()};var i=n(r("./packages/logrocket/src/LogRocket.js")),o=function(){return{init:function(){},uninstall:function(){},log:function(){},info:function(){},warn:function(){},error:function(){},debug:function(){},addEvent:function(){},identify:function(){},start:function(){},get threadID(){return null},get recordingID(){return null},get recordingURL(){return null},reduxEnhancer:function(){return function(e){return function(){return e.apply(void 0,arguments)}}},reduxMiddleware:function(){return function(){return function(e){return function(t){return e(t)}}}},track:function(){},getSessionURL:function(){},getVersion:function(){},startNewSession:function(){},onLogger:function(){},setClock:function(){},captureMessage:function(){},captureException:function(){}}}},
17"./packages/logrocket/src/setup.js":function(e,t,r){"use strict";var n=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(t,"__esModule",{value:!0}),t.getDomainsAndEnv=s,t.setupBaseSDKCONFIG=c,t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.enterpriseServer,r=e.sdkVersion,n=void 0===r?"9.0.2":r,a=(0,i.default)(e,["enterpriseServer","sdkVersion"]),l=s(n),u=l.scriptEnv,d=l.scriptOrigin,h=l.scriptIngest,f=a.sdkServer||t,p=a.ingestServer||t||h,g=(0,o.default)(function(){var e=document.createElement("script");p&&(c(p),window.__SDKCONFIG__.scriptEnv=u),f?e.src="".concat(f,"/logger.min.js"):window.__SDKCONFIG__&&window.__SDKCONFIG__.loggerURL?e.src=window.__SDKCONFIG__.loggerURL:window._lrAsyncScript?e.src=window._lrAsyncScript:e.src="".concat(d,"/logger-1.min.js"),e.async=!0,document.head.appendChild(e),e.onload=function(){"function"==typeof window._LRLogger?setTimeout(function(){g.onLogger(new window._LRLogger({sdkVersion:n}))}):(console.warn("LogRocket: script execution has been blocked by a product or service."),g.uninstall())},e.onerror=function(){console.warn("LogRocket: script could not load. Check that you have a valid network connection."),g.uninstall()}});return g};var i=n(r("./node_modules/@babel/runtime/helpers/objectWithoutProperties.js")),o=n(r("./packages/logrocket/src/makeLogRocket.js")),a={"cdn.logrocket.com":"https://r.logrocket.io","cdn.logrocket.io":"https://r.logrocket.io","cdn.lr-ingest.io":"https://r.lr-ingest.io","cdn.lr-in.com":"https://r.lr-in.com","cdn.lr-in-prod.com":"https://r.lr-in-prod.com","cdn.lr-ingest.com":"https://r.lr-ingest.com","cdn.ingest-lr.com":"https://r.ingest-lr.com","cdn.lr-intake.com":"https://r.lr-intake.com","cdn.intake-lr.com":"https://r.intake-lr.com","cdn.logr-ingest.com":"https://r.logr-ingest.com","cdn.lrkt-in.com":"https://r.lrkt-in.com","cdn-staging.logrocket.io":"https://staging-i.logrocket.io","cdn-staging.lr-ingest.io":"https://staging-i.lr-ingest.io","cdn-staging.lr-in.com":"https://staging-i.lr-in.com","cdn-staging.lr-in-prod.com":"https://staging-i.lr-in-prod.com","cdn-staging.lr-ingest.com":"https://staging-i.lr-ingest.com","cdn-staging.ingest-lr.com":"https://staging-i.ingest-lr.com","cdn-staging.lr-intake.com":"https://staging-i.lr-intake.com","cdn-staging.intake-lr.com":"https://staging-i.intake-lr.com","cdn-staging.logr-ingest.com":"https://staging-i.logr-ingest.com","cdn-staging.lrkt-in.com":"https://staging-i.lrkt-in.com"};function s(e){if("script"!==e&&"shopify-pixel"!==e)return{scriptEnv:void 0,scriptOrigin:"https://cdn.lrkt-in.com",scriptIngest:"https://r.lrkt-in.com"};try{var t=document.currentScript.src.match(/^(https?:\/\/([^\\]+))\/.+$/),r=t&&t[2];if(r&&a[r])return{scriptEnv:r.startsWith("cdn-staging")?"staging":r.startsWith("localhost")?"development":"prod",scriptOrigin:t&&t[1],scriptIngest:a[r]}}catch(e){}return{scriptEnv:"prod",scriptOrigin:"https://cdn.logrocket.io"}}function c(e){void 0===window.__SDKCONFIG__&&(window.__SDKCONFIG__={}),window.__SDKCONFIG__.serverURL="".concat(e,"/i"),window.__SDKCONFIG__.statsURL="".concat(e,"/s")}},
vendor: 236 bytes, line 17
17"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js":function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports},
vendor: 254 bytes, line 17
17"./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js":function(e,t,r){var n=r("./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports},
vendor: 222 bytes, line 17
17"./node_modules/@babel/runtime/helpers/classCallCheck.js":function(e){e.exports=function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},
vendor: 476 bytes, line 17
17"./node_modules/@babel/runtime/helpers/createClass.js":function(e,t,r){var n=r("./node_modules/@babel/runtime/helpers/toPropertyKey.js");function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,n(i.key),i)}}e.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},
vendor: 327 bytes, line 17
17"./node_modules/@babel/runtime/helpers/defineProperty.js":function(e,t,r){var n=r("./node_modules/@babel/runtime/helpers/toPropertyKey.js");e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},
vendor: 190 bytes, line 17
17"./node_modules/@babel/runtime/helpers/interopRequireDefault.js":function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},
vendor: 247 bytes, line 17
17"./node_modules/@babel/runtime/helpers/iterableToArray.js":function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},
vendor: 300 bytes, line 17
17"./node_modules/@babel/runtime/helpers/nonIterableSpread.js":function(e){e.exports=function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},
vendor: 470 bytes, line 17
17"./node_modules/@babel/runtime/helpers/objectWithoutProperties.js":function(e,t,r){var n=r("./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js");e.exports=function(e,t){if(null==e)return{};var r,i,o=n(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o},e.exports.__esModule=!0,e.exports.default=e.exports},
vendor: 280 bytes, line 17
17"./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js":function(e){e.exports=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i},e.exports.__esModule=!0,e.exports.default=e.exports},
vendor: 457 bytes, line 17
17"./node_modules/@babel/runtime/helpers/toConsumableArray.js":function(e,t,r){var n=r("./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"),i=r("./node_modules/@babel/runtime/helpers/iterableToArray.js"),o=r("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),a=r("./node_modules/@babel/runtime/helpers/nonIterableSpread.js");e.exports=function(e){return n(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},
vendor: 456 bytes, line 17
17"./node_modules/@babel/runtime/helpers/toPrimitive.js":function(e,t,r){var n=r("./node_modules/@babel/runtime/helpers/typeof.js").default;e.exports=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!==n(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},
vendor: 330 bytes, line 17
17"./node_modules/@babel/runtime/helpers/toPropertyKey.js":function(e,t,r){var n=r("./node_modules/@babel/runtime/helpers/typeof.js").default,i=r("./node_modules/@babel/runtime/helpers/toPrimitive.js");e.exports=function(e){var t=i(e,"string");return"symbol"===n(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},
vendor: 419 bytes, line 17
17"./node_modules/@babel/runtime/helpers/typeof.js":function(e){function t(r){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},
vendor: 509 bytes, line 17
17"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":function(e,t,r){var n=r("./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}},e.exports.__esModule=!0,e.exports.default=e.exports}
17},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}();var n={};return!function(){"use strict";var e=n,t=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=(0,t(r("./packages/logrocket/src/setup.js")).default)()}(),n=n.default}()},93438:function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YouTubeEmbed=void 0;let o=i(r(88246)),a=r(15781);t.YouTubeEmbed=e=>{var t=n(e,[]);return(0,a.formatData)(o.default,t)}},98202:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendGTMEvent=void 0,t.GoogleTagManager=function(e){let{gtmId:t,gtmScriptUrl:r="https://www.googletagmanager.com/gtm.js",dataLayerName:s="dataLayer",auth:c,preview:l,dataLayer:u,nonce:d}=e;a=s;let h="dataLayer"!==s?"&l=".concat(s):"";return(0,i.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:"\n      (function(w,l){\n        w[l]=w[l]||[];\n        w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});\n        ".concat(u?"w[l].push(".concat(JSON.stringify(u),")"):"","\n      })(window,'").concat(s,"');")},nonce:d}),(0,n.jsx)(o.default,{id:"_next-gtm","data-ntpc":"GTM",src:"".concat(r,"?id=").concat(t).concat(h).concat(c?"&gtm_auth=".concat(c):"").
17concat(l?"&gtm_preview=".concat(l,"&gtm_cookies_win=x"):""),nonce:d})]})};let n=r(95155),i=r(12115),o=function(e){return e&&e.__esModule?e:{default:e}}(r(68321)),a="dataLayer";t.sendGTMEvent=(e,t)=>{let r=t||a;window[r]=window[r]||[],window[r].push(e)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.