(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8586],{60844:function(t,e,n){"use strict";n.d(e,{J:function(){return eQ},v:function(){return oV}});var r,o,i,a,s,u,c,l,d,f,p,v,h,m,g,y,b,_,w,E,S,x,T,k,C,A,R,O,L={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},P=console,N={};Object.keys(L).forEach(function(t){N[t]=P[t]});var I="Datadog Browser SDK:",M={debug:N.debug.bind(P,I),log:N.log.bind(P,I),info:N.info.bind(P,I),warn:N.warn.bind(P,I),error:N.error.bind(P,I)},F="https://docs.datadoghq.com",D="".concat(F,"/real_user_monitoring/browser/troubleshooting"),z="More details:";function U(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return t.apply(void 0,n)}catch(t){M.error(e,t)}}}var V=function(t,e,n){if(n||2==arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},B=!1;function H(t){B=t}function j(t){return function(){return q(t,this,arguments)}}function q(t,e,n){try{return t.apply(e,n)}catch(t){if(G(t),u)try{u(t)}catch(t){G(t)}}}function G(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];B&&M.error.apply(M,V(["[MONITOR]"],t,!1))}function W(t,e){return -1!==t.indexOf(e)}function Z(t){if(Array.from)return Array.from(t);var e=[];if(t instanceof Set)t.forEach(function(t){return e.push(t)});else for(var n=0;n<t.length;n++)e.push(t[n]);return e}function K(t,e){for(var n=0;n<t.length;n+=1){var r=t[n];if(e(r,n))return r}}function Y(t){return Object.keys(t).map(function(e){return t[e]})}function J(t){return Object.keys(t).map(function(e){return[e,t[e]]})}function X(t,e){return t.slice(0,e.length)===e}function $(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.forEach(function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}),t}function Q(){if("object"==typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get:function(){return this},configurable:!0});var t=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!=typeof t&&("object"==typeof self?t=self:t="object"==typeof window?window:{}),t}var tt=/[^\u0000-\u007F]/;function te(t){return tt.test(t)?void 0!==window.TextEncoder?new TextEncoder().encode(t).length:new Blob([t]).size:t.length}function tn(t,e){var n,r=Q();return r.Zone&&"function"==typeof r.Zone.__symbol__&&(n=t[r.Zone.__symbol__(e)]),n||(n=t[e]),n}function tr(t,e){return tn(Q(),"setTimeout")(j(t),e)}function to(t){tn(Q(),"clearTimeout")(t)}function ti(t,e){return tn(Q(),"setInterval")(j(t),e)}function ta(t){tn(Q(),"clearInterval")(t)}function ts(t,e,n){var r,o,i=!n||void 0===n.leading||n.leading,a=!n||void 0===n.trailing||n.trailing,s=!1;return{throttled:function(){for(var n=[],u=0;u<arguments.length;u++)n[u]=arguments[u];if(s){r=n;return}i?t.apply(void 0,n):r=n,s=!0,o=tr(function(){a&&r&&t.apply(void 0,r),s=!1,r=void 0},e)},cancel:function(){to(o),s=!1,r=void 0}}}function tu(){}function tc(t,e,n){if("object"!=typeof t||null===t)return JSON.stringify(t);var r=tl(Object.prototype),o=tl(Array.prototype),i=tl(Object.getPrototypeOf(t)),a=tl(t);try{return JSON.stringify(t,e,n)}catch(t){return"<error: unable to serialize object>"}finally{r(),o(),i(),a()}}function tl(t){var e=t.toJSON;return e?(delete t.toJSON,function(){t.toJSON=e}):tu}function td(t){return $({},t)}function tf(t,e){return Object.keys(t).some(function(n){return t[n]===e})}function tp(t){return 0===Object.keys(t).length}function tv(t){var e=0,n=ts(function(n){e=te(tc(n)),t()},200),r=n.throttled,o=n.cancel,i=function(){o(),e=0};return{updateCustomerData:function(t){tp(t)?i():r(t)},resetCustomerData:i,getBytesCount:function(){return e},stop:function(){o()}}}function th(t){return null===t?"null":Array.isArray(t)?"array":typeof t}function tm(t,e,n){if(void 0===n&&(n=function(){if("undefined"!=typeof WeakSet){var t=new WeakSet;return{hasAlreadyBeenSeen:function(e){var n=t.has(e);return n||t.add(e),n}}}var e=[];return{hasAlreadyBeenSeen:function(t){var n=e.indexOf(t)>=0;return n||e.push(t),n}}}()),void 0===e)return t;if("object"!=typeof e||null===e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var r=e.flags||[e.global?"g":"",e.ignoreCase?"i":"",e.multiline?"m":"",e.sticky?"y":"",e.unicode?"u":""].join("");return new RegExp(e.source,r)}if(!n.hasAlreadyBeenSeen(e)){if(Array.isArray(e)){for(var o=Array.isArray(t)?t:[],i=0;i<e.length;++i)o[i]=tm(o[i],e[i],n);return o}var a="object"===th(t)?t:{};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(a[s]=tm(a[s],e[s],n));return a}}function tg(t){return tm(void 0,t)}function ty(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r=0;r<e.length;r++){var o=e[r];null!=o&&(t=tm(t,o))}return t}function tb(t,e){void 0===e&&(e=225280);var n=tl(Object.prototype),r=tl(Array.prototype),o=[],i=new WeakMap,a=t_(t,"$",void 0,o,i),s=JSON.stringify(a),u=s?s.length:0;if(u>e){tw(e,"discarded",t);return}for(;o.length>0&&u<e;){var c=o.shift(),l=0;if(Array.isArray(c.source))for(var d=0;d<c.source.length;d++){var f=t_(c.source[d],c.path,d,o,i);if(void 0!==f?u+=JSON.stringify(f).length:u+=4,u+=l,l=1,u>e){tw(e,"truncated",t);break}c.target[d]=f}else for(var d in c.source)if(Object.prototype.hasOwnProperty.call(c.source,d)){var f=t_(c.source[d],c.path,d,o,i);if(void 0!==f&&(u+=JSON.stringify(f).length+l+d.length+3,l=1),u>e){tw(e,"truncated",t);break}c.target[d]=f}}return n(),r(),a}function t_(t,e,n,r,o){var i=function(t){if(t&&"function"==typeof t.toJSON)try{return t.toJSON()}catch(t){}return t}(t);if(!i||"object"!=typeof i)return"bigint"==typeof i?"[BigInt] ".concat(i.toString()):"function"==typeof i?"[Function] ".concat(i.name||"unknown"):"symbol"==typeof i?"[Symbol] ".concat(i.description||i.toString()):i;var a=function(t){try{if(t instanceof Event)return{isTrusted:t.isTrusted};var e=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(e&&e[1])return"[".concat(e[1],"]")}catch(t){}return"[Unserializable]"}(i);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;if(o.has(t))return"[Reference seen at ".concat(o.get(t),"]");var s=void 0!==n?"".concat(e,".").concat(n):e,u=Array.isArray(i)?[]:{};return o.set(t,s),r.push({source:i,target:u,path:s}),u}function tw(t,e,n){M.warn("The data provided has been ".concat(e," as it is over the limit of ").concat(t," characters:"),n)}var tE=function(){function t(t){this.onFirstSubscribe=t,this.observers=[]}return t.prototype.subscribe=function(t){var e=this;return this.observers.push(t),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),{unsubscribe:function(){e.observers=e.observers.filter(function(e){return t!==e}),!e.observers.length&&e.onLastUnsubscribe&&e.onLastUnsubscribe()}}},t.prototype.notify=function(t){this.observers.forEach(function(e){return e(t)})},t}();function tS(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new tE(function(e){var n=t.map(function(t){return t.subscribe(function(t){return e.notify(t)})});return function(){return n.forEach(function(t){return t.unsubscribe()})}})}function tx(t){var e={},n=new tE,r={getContext:function(){return tg(e)},setContext:function(o){"object"===th(o)?(e=tb(o),t&&t.updateCustomerData(e)):r.clearContext(),n.notify()},setContextProperty:function(r,o){e[r]=tb(o),t&&t.updateCustomerData(e),n.notify()},removeContextProperty:function(r){delete e[r],t&&t.updateCustomerData(e),n.notify()},clearContext:function(){e={},t&&t.resetCustomerData(),n.notify()},changeObservable:n};return r}var tT={GRANTED:"granted",NOT_GRANTED:"not-granted"};function tk(t,e,n,r,o){return tC(t,e,[n],r,o)}function tC(t,e,n,r,o){var i=void 0===o?{}:o,a=i.once,s=i.capture,u=i.passive,c=j(function(e){(e.isTrusted||e.__ddIsTrusted||t.allowUntrustedEvents)&&(a&&f(),r(e))}),l=u?{capture:s,passive:u}:s,d=tn(e,"addEventListener");function f(){var t=tn(e,"removeEventListener");n.forEach(function(n){return t.call(e,n,c,l)})}return n.forEach(function(t){return d.call(e,t,c,l)}),{stop:f}}var tA=[];function tR(t,e,n,r){var o="".concat("_dd_c","_").concat(n,"_").concat(r);function i(){var t=localStorage.getItem(o);return null!==t?JSON.parse(t):{}}tA.push(tk(t,window,"storage",function(t){o===t.key&&e.setContext(i())})),e.changeObservable.subscribe(function(){localStorage.setItem(o,JSON.stringify(e.getContext()))}),e.setContext(ty(i(),e.getContext()))}function tO(){var t="",e=0;return{isAsync:!1,get isEmpty(){return!t},write:function(n,r){var o=te(n);e+=o,t+=n,r&&r(o)},finish:function(t){t(this.finishSync())},finishSync:function(){var n={output:t,outputBytesCount:e,rawBytesCount:e,pendingData:""};return t="",e=0,n},estimateEncodedBytesCount:function(t){return t.length}}}function tL(t){var e=[],n=tV(t,"stack"),r=String(t);return n&&X(n,r)&&(n=n.slice(r.length)),n&&n.split("\n").forEach(function(t){var n=function(t){var e=tI.exec(t);if(e){var n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),o=tM.exec(e[2]);return r&&o&&(e[2]=o[1],e[3]=o[2],e[4]=o[3]),{args:n?[e[2]]:[],column:e[4]?+e[4]:void 0,func:e[1]||"?",line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}}(t)||function(t){var e=tF.exec(t);if(e)return{args:[],column:e[3]?+e[3]:void 0,func:"?",line:e[2]?+e[2]:void 0,url:e[1]}}(t)||function(t){var e=tD.exec(t);if(e)return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||"?",line:+e[3],url:e[2]}}(t)||function(t){var e=tz.exec(t);if(e){var n=e[3]&&e[3].indexOf(" > eval")>-1,r=tU.exec(e[3]);return n&&r&&(e[3]=r[1],e[4]=r[2],e[5]=void 0),{args:e[2]?e[2].split(","):[],column:e[5]?+e[5]:void 0,func:e[1]||"?",line:e[4]?+e[4]:void 0,url:e[3]}}}(t);n&&(!n.func&&n.line&&(n.func="?"),e.push(n))}),{message:tV(t,"message"),name:tV(t,"name"),stack:e}}var tP="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",tN="(?::(\\d+))",tI=RegExp("^\\s*at (.*?) ?\\(".concat(tP).concat(tN,"?").concat(tN,"?\\)?\\s*$"),"i"),tM=new RegExp("\\((\\S*)".concat(tN).concat(tN,"\\)")),tF=RegExp("^\\s*at ?".concat(tP).concat(tN,"?").concat(tN,"??\\s*$"),"i"),tD=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,tz=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,tU=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function tV(t,e){if("object"==typeof t&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}var tB=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function tH(){var t,e=Error();if(!e.stack)try{throw e}catch(t){}return q(function(){var n=tL(e);n.stack=n.stack.slice(2),t=tj(n)}),t}function tj(t){var e=tq(t);return t.stack.forEach(function(t){var n="?"===t.func?"<anonymous>":t.func,r=t.args&&t.args.length>0?"(".concat(t.args.join(", "),")"):"",o=t.line?":".concat(t.line):"",i=t.line&&t.column?":".concat(t.column):"";e+="\n  at ".concat(n).concat(r," @ ").concat(t.url).concat(o).concat(i)}),e}function tq(t){return"".concat(t.name||"Error",": ").concat(t.message)}var tG="No stack, consider using an instance of Error";function tW(t){var e=t.stackTrace,n=t.originalError,r=t.handlingStack,o=t.startClocks,i=t.nonErrorPrefix,a=t.source,s=t.handling,u=n instanceof Error,c=(null==e?void 0:e.message)&&(null==e?void 0:e.name)?e.message:u?"Empty message":"".concat(i," ").concat(tc(tb(n))),l=void 0!==e&&(u||e.stack.length>0&&(e.stack.length>1||void 0!==e.stack[0].url))?tj(e):tG,d=u?tK(n,a):void 0,f=e?e.name:void 0,p=tZ(n);return{startClocks:o,source:a,handling:s,handlingStack:r,originalError:n,type:f,message:c,stack:l,causes:d,fingerprint:p}}function tZ(t){return t instanceof Error&&"dd_fingerprint"in t?String(t.dd_fingerprint):void 0}function tK(t,e){for(var n=t,r=[];(null==n?void 0:n.cause)instanceof Error&&r.length<10;){var o=tL(n.cause);r.push({message:n.cause.message,source:e,type:null==o?void 0:o.name,stack:o&&tj(o)}),n=n.cause}return r.length?r:void 0}(r=c||(c={})).WRITABLE_RESOURCE_GRAPHQL="writable_resource_graphql",r.REMOTE_CONFIGURATION="remote_configuration",r.UPDATE_VIEW_NAME="update_view_name",r.LONG_ANIMATION_FRAME="long_animation_frame";var tY=new Set;function tJ(t){return tY.has(t)}var tX="datad0g.com",t$="datadoghq.com",tQ="pci.browser-intake-datadoghq.com";function t0(t){return 0!==t&&100*Math.random()<=t}function t1(t,e){return+t.toFixed(e)}function t2(t){return"number"==typeof t}function t5(t){var e;return{relative:t,timeStamp:(e=t6()-performance.now())>et()?Math.round(e+t):Math.round(et()+t)}}function t3(t){return t2(t)?t1(1e6*t,0):t}function t6(){return new Date().getTime()}function t4(){return t6()}function t8(){return performance.now()}function t7(){return{relative:t8(),timeStamp:t4()}}function t9(){return{relative:0,timeStamp:et()}}function et(){return void 0===l&&(l=performance.timing.navigationStart),l}function ee(t,e){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:t,payload:e})}function en(){var t,e=window.navigator;return{status:e.onLine?"connected":"not_connected",interfaces:e.connection&&e.connection.type?[e.connection.type]:void 0,effective_type:null===(t=e.connection)||void 0===t?void 0:t.effectiveType}}function er(t,e){var n=t.indexOf(e);n>=0&&t.splice(n,1)}function eo(){var t=[];return{add:function(e){t.push(e)>500&&t.splice(0,1)},remove:function(e){er(t,e)},drain:function(e){t.forEach(function(t){return t(e)}),t.length=0}}}var ei="configuration",ea="usage",es=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],eu=["ddog-gov.com"],ec=eo(),el=function(t){ec.add(function(){return el(t)})};function ed(t,e){G(L.debug,t,e),el($({type:"log",message:t,status:"debug"},e))}function ef(t,e){el($({type:"log",status:"error"},function(t){if(t instanceof Error){var e=tL(t);return{error:{kind:e.name,stack:tj((e.stack=e.stack.filter(function(t){return!t.url||es.some(function(e){return X(t.url,e)})}),e))},message:e.message}}return{error:{stack:tG},message:"".concat("Uncaught"," ").concat(tc(t))}}(t),e))}function ep(t){el({type:ea,usage:t})}function ev(t){var e=$({},t);return["id","name","email"].forEach(function(t){t in e&&(e[t]=String(e[t]))}),e}function eh(t,e){e.silentMultipleInit||M.error("".concat(t," is already initialized."))}function em(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,em)}var eg=/([\w-]+)\s*=\s*([^;]+)/g;function ey(t,e){for(eg.lastIndex=0;;){var n=eg.exec(t);if(n){if(n[1]===e)return n[2]}else break}}function eb(t,e,n){void 0===n&&(n="");var r=t.charCodeAt(e-1),o=r>=55296&&r<=56319?e+1:e;return t.length<=o?t:"".concat(t.slice(0,o)).concat(n)}function e_(t,e,n){var r=t.vitalsByName,o=t.vitalsByReference;void 0===n&&(n={});var i={name:e,startClocks:t7(),context:n.context,description:n.description},a={__dd_vital_reference:!0};return r.set(e,i),o.set(a,i),a}function ew(t,e,n,r){var o,i,a,s,u,c=e.vitalsByName,l=e.vitalsByReference;void 0===r&&(r={});var d="string"==typeof n?c.get(n):l.get(n);d&&(t((o=d.startClocks,i=r,a=t7(),{name:d.name,type:"duration",startClocks:o,duration:(u=o.timeStamp,a.timeStamp-u),context:ty(d.context,i.context),description:null!==(s=i.description)&&void 0!==s?s:d.description})),"string"==typeof n?c.delete(n):l.delete(n))}function eE(){var t=Q().DatadogEventBridge;if(t)return{getCapabilities:function(){var e;return JSON.parse((null===(e=t.getCapabilities)||void 0===e?void 0:e.call(t))||"[]")},getPrivacyLevel:function(){var e;return null===(e=t.getPrivacyLevel)||void 0===e?void 0:e.call(t)},getAllowedWebViewHosts:function(){return JSON.parse(t.getAllowedWebViewHosts())},send:function(e,n,r){t.send(JSON.stringify({eventType:e,event:n,view:r?{id:r}:void 0}))}}}function eS(t){var e=eE();return!!e&&W(e.getCapabilities(),t)}function ex(t){void 0===t&&(t=null===(e=Q().location)||void 0===e?void 0:e.hostname);var e,n=eE();return!!n&&n.getAllowedWebViewHosts().some(function(e){var n,r;return t===e||(n=t,r=".".concat(e),n.slice(-r.length)===r)})}function eT(t,e,n,r){var o=(void 0===r?{}:r).computeHandlingStack,i=t[e];if("function"!=typeof i){if(!(e in t&&X(e,"on")))return{stop:tu};i=tu}var a=!1,s=function(){if(a)return i.apply(this,arguments);var t,e=Z(arguments);q(n,null,[{target:this,parameters:e,onPostCall:function(e){t=e},handlingStack:o?tH():void 0}]);var r=i.apply(this,e);return t&&q(t,null,[r]),r};return t[e]=s,{stop:function(){a=!0,t[e]===s&&(t[e]=i)}}}function ek(t,e,n){var r=Object.getOwnPropertyDescriptor(t,e);if(!r||!r.set||!r.configurable)return{stop:tu};var o=function(t,e){tr(function(){o!==tu&&n(t,e)},0)},i=function(t){r.set.call(this,t),o(this,t)};return Object.defineProperty(t,e,{set:i}),{stop:function(){var n;(null===(n=Object.getOwnPropertyDescriptor(t,e))||void 0===n?void 0:n.set)===i&&Object.defineProperty(t,e,r),o=tu}}}function eC(t){return eA(t,location.href).href}function eA(t,e){var n=function(){if(void 0===d)try{var t=new eR("http://test/path");d="http://test/path"===t.href}catch(t){d=!1}return d?eR:void 0}();if(n)try{return void 0!==e?new n(t,e):new n(t)}catch(n){throw Error("Failed to construct URL: ".concat(String(n)," ").concat(tc({url:t,base:e})))}if(void 0===e&&!/:/.test(t))throw Error("Invalid URL: '".concat(t,"'"));var r=document,o=r.createElement("a");if(void 0!==e){var i=(r=document.implementation.createHTMLDocument("")).createElement("base");i.href=e,r.head.appendChild(i),r.body.appendChild(o)}return o.href=t,o}var eR=URL;function eO(){return f||(f=new tE(function(t){if(window.fetch)return eT(window,"fetch",function(e){var n,r,o,i,a,s,u,c,l;return n=e.parameters,r=e.onPostCall,o=e.handlingStack,i=n[0],void 0===(s=(a=n[1])&&a.method)&&i instanceof Request&&(s=i.method),u=void 0!==s?String(s).toUpperCase():"GET",c=i instanceof Request?i.url:eC(String(i)),l={state:"start",init:a,input:i,method:u,startClocks:t7(),url:c,handlingStack:o},void(t.notify(l),n[0]=l.input,n[1]=l.init,r(function(e){return function(t,e,n){function r(e){n.state="resolve",$(n,e),t.notify(n)}e.then(j(function(t){r({response:t,responseType:t.type,status:t.status,isAborted:!1})}),j(function(t){var e,o;r({status:0,isAborted:(null===(o=null===(e=n.init)||void 0===e?void 0:e.signal)||void 0===o?void 0:o.aborted)||t instanceof DOMException&&t.code===DOMException.ABORT_ERR,error:t})}))}(t,e,l)}))},{computeHandlingStack:!0}).stop})),f}function eL(t,e,n,r){var o=new Date;o.setTime(o.getTime()+n);var i="expires=".concat(o.toUTCString()),a=r&&r.crossSite?"none":"strict",s=r&&r.domain?";domain=".concat(r.domain):"",u=r&&r.secure?";secure":"",c=r&&r.partitioned?";partitioned":"";document.cookie="".concat(t,"=").concat(e,";").concat(i,";path=/;samesite=").concat(a).concat(s).concat(u).concat(c)}function eP(t){return ey(document.cookie,t)}function eN(t){return p||(p=function(t){var e=new Map;for(eg.lastIndex=0;;){var n=eg.exec(t);if(n)e.set(n[1],n[2]);else break}return e}(document.cookie)),p.get(t)}function eI(){return!!(window._DATADOG_SYNTHETICS_INJECTS_RUM||eN("datadog-synthetics-injects-rum"))}function eM(){var t,e,n;return null!=h?h:(void 0===t&&(t=window),n=t.navigator.userAgent,h=t.chrome||/HeadlessChrome/.test(n)?1:(null===(e=t.navigator.vendor)||void 0===e?void 0:e.indexOf("Apple"))===0||/safari/i.test(n)&&!/chrome|android/i.test(n)?2:t.document.documentMode?0:3)}var eF="_dd_s",eD=/^([a-zA-Z]+)=([a-z0-9-]+)$/;function ez(){return{isExpired:"1"}}function eU(t){return void 0!==t.isExpired||!((void 0===t.created||t6()-Number(t.created)<144e5)&&(void 0===t.expire||t6()<Number(t.expire)))}function eV(t){t.expire=String(t6()+9e5)}function eB(t){return J(t).map(function(t){var e=t[0],n=t[1];return"".concat(e,"=").concat(n)}).join("&")}function eH(t){var e={};return t&&(-1!==t.indexOf("&")||eD.test(t))&&t.split("&").forEach(function(t){var n=eD.exec(t);if(null!==n){var r=n[1],o=n[2];e[r]=o}}),e}function ej(){return eH(eP(eF))}function eq(t){localStorage.setItem(eF,eB(t))}function eG(){return eH(localStorage.getItem(eF))}function eW(){eq(ez())}var eZ=[];function eK(t,e,n){void 0===n&&(n=0);var r,o,i=e.isLockEnabled,a=e.persistSession,s=e.expireSession,u=function(t){return a($({},t,{lock:o}))},c=function(){var t=e.retrieveSession(),n=t.lock;return t.lock&&delete t.lock,{session:t,lock:n}};if(m||(m=t),t!==m){eZ.push(t);return}if(i&&n>=100){eJ(e);return}var l=c();if(i&&(l.lock||(o=em(),u(l.session),(l=c()).lock!==o))){eY(t,e,n);return}var d=t.process(l.session);if(i&&(l=c()).lock!==o){eY(t,e,n);return}if(d&&(eU(d)?s():(eV(d),i?u(d):a(d))),i&&!(d&&eU(d))){if((l=c()).lock!==o){eY(t,e,n);return}a(l.session),d=l.session}null===(r=t.after)||void 0===r||r.call(t,d||l.session),eJ(e)}function eY(t,e,n){tr(function(){eK(t,e,n+1)},10)}function eJ(t){m=void 0;var e=eZ.shift();e&&eK(e,t)}function eX(t,e,n){var r=function(t,e){var n="/api/v2/".concat(e),r=t.proxy;if("string"==typeof r){var o=eC(r);return function(t){return"".concat(o,"?ddforward=").concat(encodeURIComponent("".concat(n,"?").concat(t)))}}if("function"==typeof r)return function(t){return r({path:n,parameters:t})};var i=function(t,e){var n=e.site,r=void 0===n?t$:n,o=e.internalAnalyticsSubdomain;if("logs"===t&&e.usePciIntake&&r===t$)return tQ;if(o&&r===t$)return"".concat(o,".").concat(t$);if("dd0g-gov.com"===r)return"http-intake.logs.".concat(r);var i=r.split("."),a=i.pop();return"browser-intake-".concat(i.join("-"),".").concat(a)}(e,t);return function(t){return"https://".concat(i).concat(n,"?").concat(t)}}(t,e);return{build:function(o,i){var a,s,u,c,l,d;return r((a=t.clientToken,s=t.internalAnalyticsSubdomain,u=i.retry,c=i.encoding,l=["sdk_version:".concat("5.29.1"),"api:".concat(o)].concat(n),u&&l.push("retry_count:".concat(u.count),"retry_after:".concat(u.lastFailureStatus)),d=["ddsource=browser","ddtags=".concat(encodeURIComponent(l.join(","))),"dd-api-key=".concat(a),"dd-evp-origin-version=".concat(encodeURIComponent("5.29.1")),"dd-evp-origin=browser","dd-request-id=".concat(em())],c&&d.push("dd-evp-encoding=".concat(c)),"rum"===e&&d.push("batch_time=".concat(t4())),s&&d.reverse(),d.join("&")))},urlPrefix:r(""),trackType:e}}function e$(t,e){var n=200-t.length-1;(e.length>n||function(){try{return RegExp("[\\p{Ll}]","u"),!0}catch(t){return!1}}()&&RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(e))&&M.warn("".concat(t," value doesn't meet tag requirements and will be sanitized. ").concat(z," ").concat(F,"/getting_started/tagging/#defining-tags"));var r=e.replace(/,/g,"_");return"".concat(t,":").concat(r)}var eQ={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"},e0={ALL:"all",SAMPLED:"sampled"};function e1(t,e){return null==t||"string"==typeof t||(M.error("".concat(e," must be defined as a string")),!1)}function e2(t,e){return!!(void 0===t||t2(t)&&t>=0&&t<=100)||(M.error("".concat(e," Sample Rate should be a number between 0 and 100")),!1)}function e5(t){var e=th(t);return"string"===e||"function"===e||t instanceof RegExp}function e3(t,e,n){return void 0===n&&(n=!1),t.some(function(t){try{if("function"==typeof t)return t(e);if(t instanceof RegExp)return t.test(e);if("string"==typeof t)return n?X(e,t):t===e}catch(t){M.error(t)}return!1})}function e6(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function e4(t,e,n,r){if(void 0!==e8()&&n.findTrackedSession()){var o,i,a,s,u,c=K(t.allowedTracingUrls,function(t){return e3([t.match],e.url,!0)});c&&(e.traceSampled=!t2(t.traceSampleRate)||t0(t.traceSampleRate),(e.traceSampled||t.traceContextInjection===e0.ALL)&&(e.traceId=e7(),e.spanId=e7(),r((o=e.traceId,i=e.spanId,a=e.traceSampled,s=c.propagatorTypes,u={},s.forEach(function(t){switch(t){case"datadog":$(u,{"x-datadog-origin":"rum","x-datadog-parent-id":i.toDecimalString(),"x-datadog-sampling-priority":a?"1":"0","x-datadog-trace-id":o.toDecimalString()});break;case"tracecontext":$(u,{traceparent:"00-0000000000000000".concat(o.toPaddedHexadecimalString(),"-").concat(i.toPaddedHexadecimalString(),"-0").concat(a?"1":"0")});break;case"b3":$(u,{b3:"".concat(o.toPaddedHexadecimalString(),"-").concat(i.toPaddedHexadecimalString(),"-").concat(a?"1":"0")});break;case"b3multi":$(u,{"X-B3-TraceId":o.toPaddedHexadecimalString(),"X-B3-SpanId":i.toPaddedHexadecimalString(),"X-B3-Sampled":a?"1":"0"})}}),u))))}}function e8(){return window.crypto||window.msCrypto}function e7(){var t=new Uint8Array(8);function e(e){return 16777216*t[e]+(t[e+1]<<16)+(t[e+2]<<8)+t[e+3]}function n(t){var n=e(0),r=e(4),o="";do{var i=n%t*4294967296+r;n=Math.floor(n/t),r=Math.floor(i/t),o=(i%t).toString(t)+o}while(n||r);return o}return e8().getRandomValues(t),t[0]=127&t[0],{toDecimalString:function(){return n(10)},toPaddedHexadecimalString:function(){var t=n(16);return Array(17-t.length).join("0")+t}}}var e9=["tracecontext","datadog"];function nt(){M.error("Error fetching the remote configuration.")}var ne={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function nn(){var t,e=window;if(e.Zone&&(t=tn(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var n=tn(new e.MutationObserver(tu),"originalInstance");t=n&&n.constructor}return t||(t=e.MutationObserver),t}var nr={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",SOURCE:"source",REPORT:"report"};function no(t,e,n){var r=0,o=!1;return{isLimitReached:function(){if(0===r&&tr(function(){r=0},6e4),(r+=1)<=e||o)return o=!1,!1;if(r===e+1){o=!0;try{n({message:"Reached max number of ".concat(t,"s by minute: ").concat(e),source:nr.AGENT,startClocks:t7()})}finally{o=!1}}return!0}}}function ni(t,e,n){for(var r=t,o=e.split("."),i=0;i<o.length;i+=1){var a=o[i];if(!na(r))return;i!==o.length-1?r=r[a]:r[a]=n}}function na(t){return"object"===th(t)}var ns={"view.name":"string","view.url":"string","view.referrer":"string"},nu={context:"object"},nc={service:"string",version:"string"},nl=function(){function t(){this.callbacks={}}return t.prototype.notify=function(t,e){var n=this.callbacks[t];n&&n.forEach(function(t){return t(e)})},t.prototype.subscribe=function(t,e){var n=this;return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),{unsubscribe:function(){n.callbacks[t]=n.callbacks[t].filter(function(t){return e!==t})}}},t}(),nd=1/0;function nf(t){var e=t.expireDelay,n=t.maxEntries,r=[],o=ti(function(){return function(){for(var t=t8()-e;r.length>0&&r[r.length-1].endTime<t;)r.pop()}()},6e4);return{add:function(t,e){var o={value:t,startTime:e,endTime:nd,remove:function(){er(r,o)},close:function(t){o.endTime=t}};return n&&r.length>=n&&r.pop(),r.unshift(o),o},find:function(t,e){void 0===t&&(t=nd),void 0===e&&(e={returnInactive:!1});for(var n=0,o=r;n<o.length;n++){var i=o[n];if(i.startTime<=t){if(e.returnInactive||t<=i.endTime)return i.value;break}}},closeActive:function(t){var e=r[0];e&&e.endTime===nd&&e.close(t)},findAll:function(t,e){void 0===t&&(t=nd),void 0===e&&(e=0);var n=t+e;return r.filter(function(e){return e.startTime<=n&&t<=e.endTime}).map(function(t){return t.value})},reset:function(){r=[]},stop:function(){ta(o)}}}var np=new WeakMap;function nv(t){var e=t.target,n=t.parameters,r=n[0],o=n[1];np.set(e,{state:"open",method:String(r).toUpperCase(),url:eC(String(o))})}function nh(t){var e=t.target,n=np.get(e);n&&(n.isAborted=!0)}var nm="initial_document",ng=[["document",function(t){return nm===t}],["xhr",function(t){return"xmlhttprequest"===t}],["fetch",function(t){return"fetch"===t}],["beacon",function(t){return"beacon"===t}],["css",function(t,e){return/\.css$/i.test(e)}],["js",function(t,e){return/\.js$/i.test(e)}],["image",function(t,e){return W(["image","img","icon"],t)||null!==/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(e)}],["font",function(t,e){return null!==/\.(woff|eot|woff2|ttf)$/i.exec(e)}],["media",function(t,e){return W(["audio","video"],t)||null!==/\.(mp3|mp4)$/i.exec(e)}]];function ny(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=1;n<t.length;n+=1)if(t[n-1]>t[n])return!1;return!0}function nb(t){return t.duration>=0}function n_(t){var e=ny(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),n=!(t.redirectEnd>t.startTime)||ny(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart);return e&&n}function nw(t,e,n){if(t<=e&&e<=n)return{duration:t3(n-e),start:t3(e-t)}}function nE(t,e){return e&&!t.isIntakeUrl(e)}var nS=/data:(.+)?(;base64)?,/g;function nx(t){if(t.length<=24e3);else if("data:"===t.substring(0,5))return t=t.substring(0,24e3),!0;return!1}function nT(t){return"".concat(t.match(nS)[0],"[...]")}var nk=1;function nC(){var t=nk;return nk+=1,t}function nA(t){return t2(t)&&t<0?void 0:t}function nR(t){var e=t.lifeCycle,n=t.isChildEvent,r=t.onChange,o=void 0===r?tu:r,i={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},a=e.subscribe(12,function(t){var e;if("view"!==t.type&&"vital"!==t.type&&n(t))switch(t.type){case"error":i.errorCount+=1,o();break;case"action":i.actionCount+=1,t.action.frustration&&(i.frustrationCount+=t.action.frustration.type.length),o();break;case"long_task":i.longTaskCount+=1,o();break;case"resource":(null===(e=t._dd)||void 0===e?void 0:e.discarded)||(i.resourceCount+=1,o())}});return{stop:function(){a.unsubscribe()},eventCounts:i}}function nO(t,e){return new tE(function(n){if(window.PerformanceObserver){var r,o,i=function(e){var r=e.filter(function(e){return e.entryType!==b.RESOURCE||!!nE(t,e.name)&&!!nb(e)});r.length>0&&n.notify(r)},a=!0,s=new PerformanceObserver(j(function(t){a?r=tr(function(){return i(t.getEntries())}):i(t.getEntries())}));try{s.observe(e)}catch(t){if(W([b.RESOURCE,b.NAVIGATION,b.LONG_TASK,b.PAINT],e.type)){e.buffered&&(r=tr(function(){return i(performance.getEntriesByType(e.type))}));try{s.observe({entryTypes:[e.type]})}catch(t){return}}}return a=!1,!_&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(_=tk(t,performance,"resourcetimingbufferfull",function(){performance.clearResourceTimings()})),nL(b.FIRST_INPUT)||e.type!==b.FIRST_INPUT||(o=function(t,e){var n=t6(),r=!1,o=tC(t,window,["click","mousedown","keydown","touchstart","pointerdown"],function(e){if(e.cancelable){var n={entryType:"first-input",processingStart:t8(),processingEnd:t8(),startTime:e.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:function(){return{}}};"pointerdown"===e.type?tC(t,window,["pointerup","pointercancel"],function(t){"pointerup"===t.type&&i(n)},{once:!0}):i(n)}},{passive:!0,capture:!0}).stop;return{stop:o};function i(t){if(!r){r=!0,o();var i=t.processingStart-t.startTime;i>=0&&i<t6()-n&&e(t)}}}(t,function(t){i([t])}).stop),function(){s.disconnect(),o&&o(),to(r)}}})}function nL(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(t)}function nP(t,e,n){var r,o=!1,i=tr(j(function(){return c({hadActivity:!1})}),100),a=void 0!==n?tr(j(function(){return c({hadActivity:!0,end:t4()})}),n):void 0,s=t.subscribe(function(t){var e=t.isBusy;to(i),to(r);var n=t4();e||(r=tr(j(function(){return c({hadActivity:!0,end:n})}),100))}),u=function(){o=!0,to(i),to(r),to(a),s.unsubscribe()};function c(t){o||(u(),e(t))}return{stop:u}}function nN(t,e,n){return new tE(function(r){var o,i=[],a=0;i.push(e.subscribe(u),nO(n,{type:b.RESOURCE}).subscribe(function(t){t.some(function(t){return!nI(n,t.name)})&&u()}),t.subscribe(6,function(t){nI(n,t.url)||(void 0===o&&(o=t.requestIndex),a+=1,u())}),t.subscribe(7,function(t){nI(n,t.url)||void 0===o||t.requestIndex<o||(a-=1,u())}));var s=eT(window,"open",u).stop;return function(){s(),i.forEach(function(t){return t.unsubscribe()})};function u(){r.notify({isBusy:a>0})}})}function nI(t,e){return e3(t.excludedActivityUrls,e)}function nM(t){return window.CSS&&window.CSS.escape?window.CSS.escape(t):t.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,e){return e?"\0"===t?"�":"".concat(t.slice(0,-1),"\\").concat(t.charCodeAt(t.length-1).toString(16)," "):"\\".concat(t)})}function nF(t,e){return t.matches?t.matches(e):!!t.msMatchesSelector&&t.msMatchesSelector(e)}function nD(t){if(t.parentElement)return t.parentElement;for(;t.parentNode;){if(t.parentNode.nodeType===Node.ELEMENT_NODE)return t.parentNode;t=t.parentNode}return null}(o=b||(b={})).EVENT="event",o.FIRST_INPUT="first-input",o.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",o.LAYOUT_SHIFT="layout-shift",o.LONG_TASK="longtask",o.LONG_ANIMATION_FRAME="long-animation-frame",o.NAVIGATION="navigation",o.PAINT="paint",o.RESOURCE="resource";var nz=function(){function t(t){var e=this;this.map=new WeakMap,t&&t.forEach(function(t){return e.map.set(t,1)})}return t.prototype.add=function(t){return this.map.set(t,1),this},t.prototype.delete=function(t){return this.map.delete(t)},t.prototype.has=function(t){return this.map.has(t)},t}();function nU(t){return t.nodeType===Node.TEXT_NODE}function nV(t){return t.nodeType===Node.ELEMENT_NODE}function nB(t){return nV(t)&&!!t.shadowRoot}function nH(t){return!!t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&nV(t.host)}function nj(t,e){for(var n=t.firstChild;n;)e(n),n=n.nextSibling;nB(t)&&e(t.shadowRoot)}function nq(t){return nH(t)?t.host:t.parentNode}var nG={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:eQ.ALLOW,MASK:eQ.MASK,MASK_USER_INPUT:eQ.MASK_USER_INPUT},nW="data-dd-privacy",nZ="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",nK={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function nY(t,e,n){if(n&&n.has(t))return n.get(t);var r=nq(t),o=r?nY(r,e,n):e,i=nJ(nX(t),o);return n&&n.set(t,i),i}function nJ(t,e){switch(e){case nG.HIDDEN:case nG.IGNORE:return e}switch(t){case nG.ALLOW:case nG.MASK:case nG.MASK_USER_INPUT:case nG.HIDDEN:case nG.IGNORE:return t;default:return e}}function nX(t){if(nV(t)){if("BASE"===t.tagName)return nG.ALLOW;if("INPUT"===t.tagName){if("password"===t.type||"email"===t.type||"tel"===t.type||"hidden"===t.type)return nG.MASK;var e=t.getAttribute("autocomplete");if(e&&0===e.indexOf("cc-"))return nG.MASK}return nF(t,n1(nG.HIDDEN))?nG.HIDDEN:nF(t,n1(nG.MASK))?nG.MASK:nF(t,n1(nG.MASK_USER_INPUT))?nG.MASK_USER_INPUT:nF(t,n1(nG.ALLOW))?nG.ALLOW:!function(t){if("SCRIPT"===t.nodeName)return!0;if("LINK"===t.nodeName){var e=o("rel");return/preload|prefetch/i.test(e)&&"script"===o("as")||"shortcut icon"===e||"icon"===e}if("META"===t.nodeName){var n=o("name"),e=o("rel"),r=o("property");return/^msapplication-tile(image|color)$/.test(n)||"application-name"===n||"icon"===e||"apple-touch-icon"===e||"shortcut icon"===e||"keywords"===n||"description"===n||/^(og|twitter|fb):/.test(r)||/^(og|twitter):/.test(n)||"pinterest"===n||"robots"===n||"googlebot"===n||"bingbot"===n||t.hasAttribute("http-equiv")||"author"===n||"generator"===n||"framework"===n||"publisher"===n||"progid"===n||/^article:/.test(r)||/^product:/.test(r)||"google-site-verification"===n||"yandex-verification"===n||"csrf-token"===n||"p:domain_verify"===n||"verify-v1"===n||"verification"===n||"shopify-checkout-api-token"===n}function o(e){return(t.getAttribute(e)||"").toLowerCase()}return!1}(t)?void 0:nG.IGNORE}}function n$(t,e){switch(e){case nG.MASK:case nG.HIDDEN:case nG.IGNORE:return!0;case nG.MASK_USER_INPUT:return nU(t)?nQ(t.parentNode):nQ(t);default:return!1}}function nQ(t){if(!t||t.nodeType!==t.ELEMENT_NODE)return!1;if("INPUT"===t.tagName)switch(t.type){case"button":case"color":case"reset":case"submit":return!1}return!!nK[t.tagName]}function n0(t,e,n){var r,o=null===(r=t.parentElement)||void 0===r?void 0:r.tagName,i=t.textContent||"";if(!e||i.trim()){if("SCRIPT"===o)i="***";else if(n===nG.HIDDEN)i="***";else if(n$(t,n)){if("DATALIST"===o||"SELECT"===o||"OPTGROUP"===o){if(!i.trim())return}else i="OPTION"===o?"***":i.replace(/\S/g,"x")}return i}}function n1(t){return"[".concat(nW,'="').concat(t,'"], .').concat("dd-privacy-").concat(t)}var n2="data-dd-action-name";function n5(t,e){if(void 0===E&&(E="closest"in HTMLElement.prototype),E)n=t.closest("[".concat(e,"]"));else for(var n,r=t;r;){if(r.hasAttribute(e)){n=r;break}r=nD(r)}if(n)return n7(n8(n.getAttribute(e).trim()))}var n3=[function(t,e,n){if(void 0===w&&(w="labels"in HTMLInputElement.prototype),w){if("labels"in t&&t.labels&&t.labels.length>0)return n9(t.labels[0],e)}else if(t.id){var r=t.ownerDocument&&K(t.ownerDocument.querySelectorAll("label"),function(e){return e.htmlFor===t.id});return r&&n9(r,e,n)}},function(t){if("INPUT"===t.nodeName){var e=t.getAttribute("type");if("button"===e||"submit"===e||"reset"===e)return t.value}},function(t,e,n){if("BUTTON"===t.nodeName||"LABEL"===t.nodeName||"button"===t.getAttribute("role"))return n9(t,e,n)},function(t){return t.getAttribute("aria-label")},function(t,e,n){var r=t.getAttribute("aria-labelledby");if(r)return r.split(/\s+/).map(function(e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}).filter(function(t){return!!t}).map(function(t){return n9(t,e,n)}).join(" ")},function(t){return t.getAttribute("alt")},function(t){return t.getAttribute("name")},function(t){return t.getAttribute("title")},function(t){return t.getAttribute("placeholder")},function(t,e){if("options"in t&&t.options.length>0)return n9(t.options[0],e)}],n6=[function(t,e,n){return n9(t,e,n)}];function n4(t,e,n,r){for(var o=t,i=0;i<=10&&o&&"BODY"!==o.nodeName&&"HTML"!==o.nodeName&&"HEAD"!==o.nodeName;){for(var a=0;a<n.length;a++){var s=(0,n[a])(o,e,r);if("string"==typeof s){var u=s.trim();if(u)return n7(n8(u))}}if("FORM"===o.nodeName)break;o=nD(o),i+=1}}function n8(t){return t.replace(/\s+/g," ")}function n7(t){return t.length>100?"".concat(eb(t,100)," [...]"):t}function n9(t,e,n){if(!t.isContentEditable){if("innerText"in t){var r=t.innerText,o=function(e){for(var n=t.querySelectorAll(e),o=0;o<n.length;o+=1){var i=n[o];if("innerText"in i){var a=i.innerText;a&&a.trim().length>0&&(r=r.replace(a,""))}}};return 0!==eM()||o("script, style"),o("[".concat(n2,"]")),e&&o("[".concat(e,"]")),n&&o("".concat(n1(nG.HIDDEN),", ").concat(n1(nG.MASK))),r}return t.textContent}}var rt=[n2,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],re=[ri,function(t){if(t.id&&!ro(t.id))return"#".concat(nM(t.id))}],rn=[ri,function(t){if("BODY"!==t.tagName)for(var e=function(t){if(t.classList)return t.classList;var e=(t.getAttribute("class")||"").trim();return e?e.split(/\s+/):[]}(t),n=0;n<e.length;n+=1){var r=e[n];if(!ro(r))return"".concat(nM(t.tagName),".").concat(nM(r))}},function(t){return nM(t.tagName)}];function rr(t,e){if("isConnected"in t?t.isConnected:t.ownerDocument.documentElement.contains(t)){for(var n,r=t;r&&"HTML"!==r.nodeName;){var o=ra(r,re,rs,e,n);if(o)return o;n=ra(r,rn,ru,e,n)||rc(function(t){for(var e=nD(t).firstElementChild,n=1;e&&e!==t;)e.tagName===t.tagName&&(n+=1),e=e.nextElementSibling;return"".concat(nM(t.tagName),":nth-of-type(").concat(n,")")}(r),n),r=nD(r)}return n}}function ro(t){return/[0-9]/.test(t)}function ri(t,e){if(e){var n=o(e);if(n)return n}for(var r=0;r<rt.length;r++){var n=o(rt[r]);if(n)return n}function o(e){if(t.hasAttribute(e))return"".concat(nM(t.tagName),"[").concat(e,'="').concat(nM(t.getAttribute(e)),'"]')}}function ra(t,e,n,r,o){for(var i=0;i<e.length;i++){var a=(0,e[i])(t,r);if(a&&n(t,a,o))return rc(a,o)}}function rs(t,e,n){return 1===t.ownerDocument.querySelectorAll(rc(e,n)).length}function ru(t,e,n){if(void 0===n)r=function(t){return nF(t,e)};else{var r,o=!function(){if(void 0===S)try{document.querySelector(":scope"),S=!0}catch(t){S=!1}return S}()?rc(e,n):rc("".concat(e,":scope"),n);r=function(t){return null!==t.querySelector(o)}}for(var i=nD(t).firstElementChild;i;){if(i!==t&&r(i))return!1;i=i.nextElementSibling}return!0}function rc(t,e){return e?"".concat(t,">").concat(e):t}function rl(){var t=window.getSelection();return!t||t.isCollapsed}function rd(t){return t.target instanceof Element&&!1!==t.isPrimary}function rf(t){return!t.hasPageActivity&&!t.getUserActivity().input&&!t.getUserActivity().scroll&&!nF(t.event.target,'input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *')}var rp=new Map;function rv(t,e){rp.set(t,e),rp.forEach(function(t,e){t8()-e>1e4&&rp.delete(e)})}function rh(t,e){var n=rm(t)?{action:{id:t.id,loading_time:nA(t3(t.duration)),frustration:{type:t.frustrationTypes},error:{count:t.counts.errorCount},long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}},_dd:{action:{target:t.target,position:t.position}}}:void 0,r=rm(t)?void 0:t.context,o=ty({action:{id:em(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:"action",view:{in_foreground:e.wasInPageStateAt("active",t.startClocks.relative)}},n),i=rm(t)?{events:t.events}:{};return!rm(t)&&t.handlingStack&&(i.handlingStack=t.handlingStack),{customerContext:r,rawRumEvent:o,startTime:t.startClocks.relative,domainContext:i}}function rm(t){return"custom"!==t.type}var rg={},ry="csp_violation";function rb(t){return $({startClocks:t7(),source:nr.REPORT,handling:"unhandled"},t)}function r_(t,e,n,r,o){return n?tj({name:t,message:e,stack:[{func:"?",url:n,line:null!=r?r:void 0,column:null!=o?o:void 0}]}):void 0}var rw=new nz;function rE(t){return t.startTime+t.duration}function rS(t,e,n){return document.readyState===e||"complete"===document.readyState?(n(),{stop:tu}):tk(t,window,"complete"===e?"load":"DOMContentLoaded",n,{once:!0})}function rx(t,e){var n=e&&Number(e);if(t&&n)return{traceId:t,traceTime:n}}function rT(t){if(t&&t.nodeType===Node.COMMENT_NODE){var e=/^\s*DATADOG;(.*?)\s*$/.exec(t.data);if(e)return e[1]}}function rk(){if(nL(b.NAVIGATION)){var t=performance.getEntriesByType(b.NAVIGATION)[0];if(t)return t}var e=function(){var t={},e=performance.timing;for(var n in e)if(t2(e[n])){var r=e[n];t[n]=0===r?0:r-et()}return t}(),n=$({entryType:b.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:e.responseEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,toJSON:function(){return $({},n,{toJSON:void 0})}},e);return n}function rC(t,e){rS(t,"interactive",function(){var t=$(rk().toJSON(),{entryType:b.RESOURCE,initiatorType:nm,traceId:function(t){var e,n,r=(e=t.querySelector("meta[name=dd-trace-id]"),n=t.querySelector("meta[name=dd-trace-time]"),rx(e&&e.content,n&&n.content)||function(t){var e=function(t){for(var e=0;e<t.childNodes.length;e+=1){var n=rT(t.childNodes[e]);if(n)return n}if(t.body)for(var e=t.body.childNodes.length-1;e>=0;e-=1){var r=t.body.childNodes[e],n=rT(r);if(n)return n;if(!nU(r))break}}(t);if(e)return rx(ey(e,"trace-id"),ey(e,"trace-time"))}(t));if(!(!r||r.traceTime<=t6()-12e4))return r.traceId}(document),toJSON:function(){return $({},t,{toJSON:void 0})}});e(t)})}function rA(t,e){var n=t5(t.startTime),r=function(t,e){if(t.traceId)return{_dd:{trace_id:t.traceId,span_id:e7().toDecimalString(),rule_psr:rO(e)}}}(t,e);if(e.trackResources||r){var o,i=function(t){var e,n=t.name;if(!function(t){try{return!!eA(t)}catch(t){return!1}}(n))return ed('Failed to construct URL for "'.concat(t.name,'"')),"other";for(var r="/"===(e=eA(n).pathname)[0]?e:"/".concat(e),o=0;o<ng.length;o++){var i=ng[o],a=i[0];if((0,i[1])(t.initiatorType,r))return a}return"other"}(t),a=rR(t),s=ty({date:n.timeStamp,resource:{id:em(),type:i,url:t.name,status_code:0===(o=t.responseStatus)?void 0:o},type:"resource",_dd:{discarded:!e.trackResources}},r,a);return{startTime:n.relative,rawRumEvent:s,domainContext:{performanceEntry:t}}}}function rR(t){var e,n,r,o=t.renderBlockingStatus;return{resource:$({duration:(e=t.duration,n=t.startTime,r=t.responseEnd,0===e&&n<r?t3(r-n):t3(e)),render_blocking_status:o},function(t){if(t.startTime<t.responseStart){var e=t.encodedBodySize,n=t.decodedBodySize;return{size:n,encoded_body_size:e,decoded_body_size:n,transfer_size:t.transferSize}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}(t),function(t){if(n_(t)){var e=t.startTime,n=t.fetchStart,r=t.redirectStart,o=t.redirectEnd,i=t.domainLookupStart,a=t.domainLookupEnd,s=t.connectStart,u=t.secureConnectionStart,c=t.connectEnd,l=t.requestStart,d=t.responseStart,f={download:nw(e,d,t.responseEnd),first_byte:nw(e,l,d)};return n<c&&(f.connect=nw(e,s,c),s<=u&&u<=c&&(f.ssl=nw(e,u,c))),n<a&&(f.dns=nw(e,i,a)),e<o&&(f.redirect=nw(e,r,o)),f}}(t))}}function rO(t){return t2(t.traceSampleRate)?t.traceSampleRate/100:void 0}function rL(t,e){var n,r;return void 0===e&&(e=window),"hidden"===document.visibilityState?n=0:(n=1/0,r=tC(t,e,["pagehide","visibilitychange"],function(t){("pagehide"===t.type||"hidden"===document.visibilityState)&&(n=t.timeStamp,r())},{capture:!0}).stop),{get timeStamp(){return n},stop:function(){null==r||r()}}}var rP=0,rN=1/0,rI=0,rM=function(){return x?rP:window.performance.interactionCount||0};function rF(){var t=window.visualViewport;return Math.round(t?t.pageLeft-t.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0)}function rD(){var t=window.visualViewport;return Math.round(t?t.pageTop-t.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0)}function rz(t){return T||(T=new tE(function(e){return tk(t,window,"resize",ts(function(){e.notify(rU())},200).throttled,{capture:!0,passive:!0}).stop})),T}function rU(){var t=window.visualViewport;return t?{width:Number(t.width*t.scale),height:Number(t.height*t.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}function rV(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}var rB=[];function rH(t){return"2"===t||"1"===t}function rj(t){var e=t.encoder,n=t.request,r=t.flushController,o=t.messageBytesLimit,i={},a=r.flushObservable.subscribe(function(t){return function(t){var r,o=Y(i).join("\n");i={};var a=(r=t.reason,W(Y(ne),r)),s=a?n.sendOnExit:n.send;if(a&&e.isAsync){var u=e.finishSync();u.outputBytesCount&&s(rq(u));var c=[u.pendingData,o].filter(Boolean).join("\n");c&&s({data:c,bytesCount:te(c)})}else o&&e.write(e.isEmpty?o:"\n".concat(o)),e.finish(function(t){s(rq(t))})}(t)});function s(t,n){var a,s,u=tc(t),c=e.estimateEncodedBytesCount(u);if(c>=o){M.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(o,"KB. ").concat(z," ").concat(D,"/#technical-limitations"));return}void 0!==n&&void 0!==i[n]&&(a=i[n],delete i[n],s=e.estimateEncodedBytesCount(a),r.notifyAfterRemoveMessage(s)),r.notifyBeforeAddMessage(c),void 0!==n?(i[n]=u,r.notifyAfterAddMessage()):e.write(e.isEmpty?u:"\n".concat(u),function(t){r.notifyAfterAddMessage(t-c)})}return{flushController:r,add:s,upsert:s,stop:a.unsubscribe}}function rq(t){return{data:"string"==typeof t.output?t.output:new Blob([t.output],{type:"text/plain"}),bytesCount:t.outputBytesCount,encoding:t.encoding}}function rG(t,e,n,r,o){0===e.transportStatus&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?rW(t,e,n,{onSuccess:function(){return rZ(0,e,n,r,o)},onFailure:function(){e.queuedPayloads.enqueue(t),function t(e,n,r,o){2===e.transportStatus&&tr(function(){rW(e.queuedPayloads.first(),e,n,{onSuccess:function(){e.queuedPayloads.dequeue(),e.currentBackoffTime=1e3,rZ(1,e,n,r,o)},onFailure:function(){e.currentBackoffTime=Math.min(6e4,2*e.currentBackoffTime),t(e,n,r,o)}})},e.currentBackoffTime)}(e,n,r,o)}}):e.queuedPayloads.enqueue(t)}function rW(t,e,n,r){var o=r.onSuccess,i=r.onFailure;e.bandwidthMonitor.add(t),n(t,function(n){e.bandwidthMonitor.remove(t),"opaque"!==n.type&&(0===n.status&&!navigator.onLine||408===n.status||429===n.status||n.status>=500)?(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?1:2,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:n.status},i()):(e.transportStatus=0,o())})}function rZ(t,e,n,r,o){0===t&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(o({message:"Reached max ".concat(r," events size queued for upload: ").concat(3,"MiB"),source:nr.AGENT,startClocks:t7()}),e.queueFullReported=!0);var i=e.queuedPayloads;for(e.queuedPayloads=rK();i.size()>0;)rG(i.dequeue(),e,n,r,o)}function rK(){var t=[];return{bytesCount:0,enqueue:function(e){this.isFull()||(t.push(e),this.bytesCount+=e.bytesCount)},first:function(){return t[0]},dequeue:function(){var e=t.shift();return e&&(this.bytesCount-=e.bytesCount),e},size:function(){return t.length},isFull:function(){return this.bytesCount>=3145728}}}function rY(t,e,n,r){var o={transportStatus:0,currentBackoffTime:1e3,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=81920&&this.ongoingRequestCount<32},add:function(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove:function(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount}},queuedPayloads:rK(),queueFullReported:!1},i=function(r,o){(function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(t){return!1}})()&&r.bytesCount<n?fetch(e.build("fetch",r),{method:"POST",body:r.data,keepalive:!0,mode:"cors"}).then(j(function(t){return null==o?void 0:o({status:t.status,type:t.type})}),j(function(){rX(t,e.build("xhr",r),r.data,o)})):rX(t,e.build("xhr",r),r.data,o)};return{send:function(t){rG(t,o,i,e.trackType,r)},sendOnExit:function(r){!function(t,e,n,r){if(navigator.sendBeacon&&r.bytesCount<n)try{var o=e.build("beacon",r);if(navigator.sendBeacon(o,r.data))return}catch(t){rJ||(rJ=!0,ef(t))}rX(t,e.build("xhr",r),r.data)}(t,e,n,r)}}}var rJ=!1;function rX(t,e,n,r){var o=new XMLHttpRequest;o.open("POST",e,!0),n instanceof Blob&&o.setRequestHeader("Content-Type",n.type),tk(t,o,"loadend",function(){null==r||r({status:o.status})},{once:!0}),o.send(n)}function r$(t){return Object.prototype.hasOwnProperty.call(history,t)?history:History.prototype}function rQ(){0!==k.batchCount&&(ed("Customer data measures",k),r5())}function r0(){return{min:1/0,max:0,sum:0}}function r1(t,e){t.sum+=e,t.min=Math.min(t.min,e),t.max=Math.max(t.max,e)}function r2(t,e){t.sum+=e.sum,t.min=Math.min(t.min,e.min),t.max=Math.max(t.max,e.max)}function r5(){k={batchCount:0,batchBytesCount:r0(),batchMessagesCount:r0(),globalContextBytes:r0(),userContextBytes:r0(),featureFlagBytes:r0()}}function r3(){A=!1,C={globalContextBytes:r0(),userContextBytes:r0(),featureFlagBytes:r0()}}function r6(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}function r4(t,e){var n=ey(document.cookie,t),r=ti(function(){var r=ey(document.cookie,t);r!==n&&e(r)},1e3);return function(){ta(r)}}var r8="datadog-ci-visibility-test-execution-id";function r7(t){var e;return R||(R=new Map),R.has(t)?e=R.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},R.set(t,e),R.size>10&&function(){if(R){if(R.keys){var t=R.keys().next().value;t&&R.delete(t)}else{var e=!0;R.forEach(function(t,n){e&&(R.delete(n),e=!1)})}}}()),e}var r9=new WeakMap;function ot(t){return r9.has(t)}function oe(t){return r9.get(t)}function on(t,e){var n=t.tagName,r=t.value;if(n$(t,e)){var o=t.type;if("INPUT"===n&&("button"===o||"submit"===o||"reset"===o))return r;if(!r||"OPTION"===n)return;return"***"}return"OPTION"===n||"SELECT"===n?t.value:"INPUT"===n||"TEXTAREA"===n?r:void 0}var or=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,oo=/^[A-Za-z]+:|^\/\//,oi=/^data:.*,/i,oa=/[^a-z1-6-_]/;function os(t){var e=t.toLowerCase().trim();return oa.test(e)?"div":e}function ou(t,e){return"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='".concat(t,"' height='").concat(e,"' style='background-color:silver'%3E%3C/svg%3E")}var oc={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9},ol={Document:0,DocumentType:1,Element:2,Text:3,CDATA:4,DocumentFragment:11},od={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},of={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},op={Play:0,Pause:1};function ov(t){if(void 0!==t&&0!==t.length)return t.map(function(t){return{cssRules:Array.from(t.cssRules||t.rules,function(t){return t.cssText}),disabled:t.disabled||void 0,media:t.media.length>0?Array.from(t.media):void 0}})}function oh(t,e,n,r){if(e===nG.HIDDEN)return null;var o=t.getAttribute(n);if(e===nG.MASK&&n!==nW&&!rt.includes(n)&&n!==r.actionNameAttribute){var i=t.tagName;switch(n){case"title":case"alt":case"placeholder":return"***"}if("IMG"===i&&("src"===n||"srcset"===n)){if(t.naturalWidth>0)return ou(t.naturalWidth,t.naturalHeight);var a=t.getBoundingClientRect(),s=a.width,u=a.height;return s>0||u>0?ou(s,u):nZ}if("SOURCE"===i&&("src"===n||"srcset"===n))return nZ;if("A"===i&&"href"===n||o&&X(n,"data-")||"IFRAME"===i&&"srcdoc"===n)return"***"}return o&&"string"==typeof o&&nx(o)?nT(o):o}function om(t){var e,n,r;if(!t)return null;try{e=t.rules||t.cssRules}catch(t){}return e?(n=Array.from(e,2===eM()?og:oy).join(""),r=t.href,n.replace(or,function(t,e,n,o,i,a){var s=n||i||a;if(!r||!s||oo.test(s)||oi.test(s))return t;var u=e||o||"";return"url(".concat(u).concat(function(t,e){try{return eA(t,e).href}catch(e){return t}}(s,r)).concat(u,")")})):null}function og(t){return"selectorText"in t&&t.selectorText.includes(":")?t.cssText.replace(/(\[[\w-]+[^\\])(:[^\]]+\])/g,"$1\\$2"):oy(t)}function oy(t){return"styleSheet"in t&&om(t.styleSheet)||t.cssText}function ob(t,e){var n=function(t,e){var n;switch(t.nodeType){case t.DOCUMENT_NODE:return{type:ol.Document,childNodes:ow(t,e),adoptedStyleSheets:ov(t.adoptedStyleSheets)};case t.DOCUMENT_FRAGMENT_NODE:return(n=nH(t))&&e.serializationContext.shadowRootsController.addShadowRoot(t),{type:ol.DocumentFragment,childNodes:ow(t,e),isShadowRoot:n,adoptedStyleSheets:n?ov(t.adoptedStyleSheets):void 0};case t.DOCUMENT_TYPE_NODE:return{type:ol.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId};case t.ELEMENT_NODE:return function(t,e){var n,r=os(t.tagName),o="svg"===t.tagName||t instanceof SVGElement||void 0,i=nJ(nX(t),e.parentNodePrivacyLevel);if(i===nG.HIDDEN){var a=t.getBoundingClientRect(),s=a.width,u=a.height;return{type:ol.Element,tagName:r,attributes:((n={rr_width:"".concat(s,"px"),rr_height:"".concat(u,"px")})[nW]="hidden",n),childNodes:[],isSVG:o}}if(i!==nG.IGNORE){var c=function(t,e,n){if(e===nG.HIDDEN)return{};for(var r,o,i,a={},s=os(t.tagName),u=t.ownerDocument,c=0;c<t.attributes.length;c+=1){var l=t.attributes.item(c).name,d=oh(t,e,l,n.configuration);null!==d&&(a[l]=d)}if(t.value&&("textarea"===s||"select"===s||"option"===s||"input"===s)){var f=on(t,e);void 0!==f&&(a.value=f)}if("option"===s&&e===nG.ALLOW&&t.selected&&(a.selected=t.selected),"link"===s){var p=Array.from(u.styleSheets).find(function(e){return e.href===t.href}),v=om(p);v&&p&&(a._cssText=v)}if("style"===s&&t.sheet){var v=om(t.sheet);v&&(a._cssText=v)}"input"===s&&("radio"===t.type||"checkbox"===t.type)&&(e===nG.ALLOW?a.checked=!!t.checked:n$(t,e)&&delete a.checked),("audio"===s||"video"===s)&&(a.rr_mediaState=t.paused?"paused":"played");var h=n.serializationContext;switch(h.status){case 0:o=Math.round(t.scrollTop),i=Math.round(t.scrollLeft),(o||i)&&h.elementsScrollPositions.set(t,{scrollTop:o,scrollLeft:i});break;case 1:h.elementsScrollPositions.has(t)&&(o=(r=h.elementsScrollPositions.get(t)).scrollTop,i=r.scrollLeft)}return i&&(a.rr_scrollLeft=i),o&&(a.rr_scrollTop=o),a}(t,i,e),l=[];return(t.childNodes.length>0||nB(t))&&"style"!==r&&(l=ow(t,e.parentNodePrivacyLevel===i&&e.ignoreWhiteSpace===("head"===r)?e:$({},e,{parentNodePrivacyLevel:i,ignoreWhiteSpace:"head"===r}))),{type:ol.Element,tagName:r,attributes:c,childNodes:l,isSVG:o}}}(t,e);case t.TEXT_NODE:return function(t,e){var n=n0(t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(void 0!==n)return{type:ol.Text,textContent:n}}(t,e);case t.CDATA_SECTION_NODE:return{type:ol.CDATA,textContent:""}}}(t,e);if(!n)return null;var r=oe(t)||o_++;return n.id=r,r9.set(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),n}var o_=1;function ow(t,e){var n=[];return nj(t,function(t){var r=ob(t,e);r&&n.push(r)}),n}function oE(t){return!!t.changedTouches}function oS(t){return!0===t.composed&&nB(t.target)?t.composedPath()[0]:t.target}var ox=function(t,e){var n=window.visualViewport,r={layoutViewportX:t,layoutViewportY:e,visualViewportX:t,visualViewportY:e};return n&&(Math.abs(n.pageTop-n.offsetTop-window.scrollY)>25||Math.abs(n.pageLeft-n.offsetLeft-window.scrollX)>25?(r.layoutViewportX=Math.round(t+n.offsetLeft),r.layoutViewportY=Math.round(e+n.offsetTop)):(r.visualViewportX=Math.round(t-n.offsetLeft),r.visualViewportY=Math.round(e-n.offsetTop))),r},oT=function(t){return{scale:t.scale,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop,pageLeft:t.pageLeft,pageTop:t.pageTop,height:t.height,width:t.width}};function ok(t,e){return{data:$({source:t},e),type:oc.IncrementalSnapshot,timestamp:t4()}}function oC(t){var e=oE(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var o=ox(n,r),i=o.visualViewportX,a=o.visualViewportY;n=i,r=a}if(!Number.isFinite(n)||!Number.isFinite(r)){t.isTrusted&&ed("mouse/touch event without x/y");return}return{x:n,y:r}}var oA=((O={}).pointerup=of.MouseUp,O.mousedown=of.MouseDown,O.click=of.Click,O.contextmenu=of.ContextMenu,O.dblclick=of.DblClick,O.focus=of.Focus,O.blur=of.Blur,O.touchstart=of.TouchStart,O.touchend=of.TouchEnd,O);function oR(t,e,n,r){void 0===r&&(r=document);var o=ts(function(r){var o=oS(r);if(o&&nY(o,t.defaultPrivacyLevel)!==nG.HIDDEN&&ot(o)){var i=oe(o),a=o===document?{scrollTop:rD(),scrollLeft:rF()}:{scrollTop:Math.round(o.scrollTop),scrollLeft:Math.round(o.scrollLeft)};n.set(o,a),e(ok(od.Scroll,{id:i,x:a.scrollLeft,y:a.scrollTop}))}},100),i=o.throttled,a=o.cancel,s=tk(t,r,"scroll",i,{capture:!0,passive:!0}).stop;return{stop:function(){s(),a()}}}function oO(t){for(var e=[],n=t;n.parentRule;){var r=Array.from(n.parentRule.cssRules).indexOf(n);e.unshift(r),n=n.parentRule}if(n.parentStyleSheet){var o=Array.from(n.parentStyleSheet.cssRules).indexOf(n);return e.unshift(o),e}}function oL(t,e,n){void 0===n&&(n=document);var r,o=t.defaultPrivacyLevel,i=new WeakMap,a=n!==document,s=tC(t,n,a?["change"]:["input","change"],function(t){var e=oS(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&c(e)},{capture:!0,passive:!0}).stop;if(a)r=tu;else{var u=[ek(HTMLInputElement.prototype,"value",c),ek(HTMLInputElement.prototype,"checked",c),ek(HTMLSelectElement.prototype,"value",c),ek(HTMLTextAreaElement.prototype,"value",c),ek(HTMLSelectElement.prototype,"selectedIndex",c)];r=function(){u.forEach(function(t){return t.stop()})}}return{stop:function(){r(),s()}};function c(t){var e,n,r,i=nY(t,o);if(i!==nG.HIDDEN){var a=t.type;if("radio"===a||"checkbox"===a){if(n$(t,i))return;r={isChecked:t.checked}}else{var s=on(t,i);if(void 0===s)return;r={text:s}}l(t,r);var u=t.name;"radio"===a&&u&&t.checked&&(e=document.querySelectorAll('input[type="radio"][name="'.concat(nM(u),'"]')),n=function(e){e!==t&&l(e,{isChecked:!1})},Array.prototype.forEach.call(e,n))}}function l(t,n){if(ot(t)){var r=i.get(t);r&&r.text===n.text&&r.isChecked===n.isChecked||(i.set(t,n),e(ok(od.Input,$({id:oe(t)},n))))}}}function oP(t,e,n,r){var o=nn();if(!o)return{stop:tu,flush:tu};var i=function(t){var e=tu,n=[];function r(){e(),t(n),n=[]}var o=ts(r,16,{leading:!1}),i=o.throttled,a=o.cancel;return{addMutations:function(t){0===n.length&&(e=function(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){var n=window.requestIdleCallback(j(t),e);return function(){return window.cancelIdleCallback(n)}}var r=window.requestAnimationFrame(j(t));return function(){return window.cancelAnimationFrame(r)}}(i,{timeout:100})),n.push.apply(n,t)},flush:r,stop:function(){e(),a()}}}(function(r){!function(t,e,n,r){var o=new Map;t.filter(function(t){return"childList"===t.type}).forEach(function(t){t.removedNodes.forEach(function(t){!function t(e,n){nB(e)&&n(e.shadowRoot),nj(e,function(e){return t(e,n)})}(t,r.removeShadowRoot)})});var i=t.filter(function(t){return t.target.isConnected&&function(t){for(var e=t;e;){if(!ot(e)&&!nH(e))return!1;e=nq(e)}return!0}(t.target)&&nY(t.target,n.defaultPrivacyLevel,o)!==nG.HIDDEN}),a=function(t,e,n,r){for(var o=new Set,i=new Map,a=function(t){t.addedNodes.forEach(function(t){o.add(t)}),t.removedNodes.forEach(function(e){o.has(e)||i.set(e,t.target),o.delete(e)})},s=0;s<t.length;s++)a(t[s]);var u=Array.from(o);!function(t){t.sort(function(t,e){var n=t.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_CONTAINS?1:n&Node.DOCUMENT_POSITION_FOLLOWING?1:n&Node.DOCUMENT_POSITION_PRECEDING?-1:0})}(u);for(var c=new Set,l=[],d=0;d<u.length;d++){var f=u[d];if(!g(f)){var p=nY(f.parentNode,e.defaultPrivacyLevel,r);if(p!==nG.HIDDEN&&p!==nG.IGNORE){var v=ob(f,{serializedNodeIds:c,parentNodePrivacyLevel:p,serializationContext:{status:2,shadowRootsController:n},configuration:e});if(v){var h=nq(f);l.push({nextId:function(t){for(var e=t.nextSibling;e;){if(ot(e))return oe(e);e=e.nextSibling}return null}(f),parentId:oe(h),node:v})}}}}var m=[];return i.forEach(function(t,e){ot(e)&&m.push({parentId:oe(t),id:oe(e)})}),{adds:l,removes:m,hasBeenSerialized:g};function g(t){return ot(t)&&c.has(oe(t))}}(i.filter(function(t){return"childList"===t.type}),n,r,o),s=a.adds,u=a.removes,c=a.hasBeenSerialized,l=function(t,e,n){for(var r,o=[],i=new Set,a=t.filter(function(t){return!i.has(t.target)&&(i.add(t.target),!0)}),s=0;s<a.length;s++){var u=a[s];if(u.target.textContent!==u.oldValue){var c=nY(nq(u.target),e.defaultPrivacyLevel,n);c!==nG.HIDDEN&&c!==nG.IGNORE&&o.push({id:oe(u.target),value:null!==(r=n0(u.target,!1,c))&&void 0!==r?r:null})}}return o}(i.filter(function(t){return"characterData"===t.type&&!c(t.target)}),n,o),d=function(t,e,n){for(var r=[],o=new Map,i=t.filter(function(t){var e=o.get(t.target);return!(e&&e.has(t.attributeName))&&(e?e.add(t.attributeName):o.set(t.target,new Set([t.attributeName])),!0)}),a=new Map,s=0;s<i.length;s++){var u=i[s];if(u.target.getAttribute(u.attributeName)!==u.oldValue){var c=nY(u.target,e.defaultPrivacyLevel,n),l=oh(u.target,c,u.attributeName,e),d=void 0;if("value"===u.attributeName){var f=on(u.target,c);if(void 0===f)continue;d=f}else d="string"==typeof l?l:null;var p=a.get(u.target);p||(p={id:oe(u.target),attributes:{}},r.push(p),a.set(u.target,p)),p.attributes[u.attributeName]=d}}return r}(i.filter(function(t){return"attributes"===t.type&&!c(t.target)}),n,o);(l.length||d.length||u.length||s.length)&&e(ok(od.Mutation,{adds:s,removes:u,texts:l,attributes:d}))}(r.concat(a.takeRecords()),t,e,n)}),a=new o(j(i.addMutations));return a.observe(r,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:function(){a.disconnect(),i.stop()},flush:function(){i.flush()}}}var oN=function(t,e,n){var r=new Map,o={addShadowRoot:function(i){if(!r.has(i)){var a=oP(e,t,o,i),s=oL(t,e,i),u=oR(t,e,n,i);r.set(i,{flush:function(){return a.flush()},stop:function(){a.stop(),s.stop(),u.stop()}})}},removeShadowRoot:function(t){var e=r.get(t);e&&(e.stop(),r.delete(t))},stop:function(){r.forEach(function(t){return(0,t.stop)()})},flush:function(){r.forEach(function(t){return(0,t.flush)()})}};return o};function oI(){return"function"==typeof Array.from&&"function"==typeof CSSSupportsRule&&"function"==typeof URL.createObjectURL&&"forEach"in NodeList.prototype}function oM(t,e,n){var r,o=0,i=[],a=0,s=[],u=tk(t,e,"message",function(t){var e=t.data;if("wrote"===e.type&&e.streamId===n){o+=e.additionalBytesCount,i.push(e.result),r=e.trailer;var a=s.shift();a&&a.id===e.id?a.writeCallback?a.writeCallback(e.result.byteLength):a.finishCallback&&a.finishCallback():(u(),ed("Worker responses received out of order."))}}).stop;function c(){var t=0===i.length?new Uint8Array(0):function(t){for(var e=new Uint8Array(t.reduce(function(t,e){return t+e.length},0)),n=0,r=0;r<t.length;r++){var o=t[r];e.set(o,n),n+=o.length}return e}(i.concat(r)),e={rawBytesCount:o,output:t,outputBytesCount:t.byteLength,encoding:"deflate"};return o=0,i=[],e}function l(){a>0&&(e.postMessage({action:"reset",streamId:n}),a=0)}return{isAsync:!0,get isEmpty(){return 0===a},write:function(t,r){e.postMessage({action:"write",id:a,data:t,streamId:n}),s.push({id:a,writeCallback:r,data:t}),a+=1},finish:function(t){l(),s.length?(s.forEach(function(t){delete t.writeCallback}),s[s.length-1].finishCallback=function(){return t(c())}):t(c())},finishSync:function(){l();var t=s.map(function(t){return delete t.writeCallback,delete t.finishCallback,t.data}).join("");return $(c(),{pendingData:t})},estimateEncodedBytesCount:function(t){return t.length/8},stop:function(){u()}}}function oF(t){return new Worker(t.workerUrl||URL.createObjectURL(new Blob(['!function(){"use strict";function t(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),a=new Uint8Array(e),n=0,r=0,i=t;r<i.length;r++){var s=i[r];a.set(s,n),n+=s.length}return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=256,n=286,r=30,i=15,s=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),_=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),l=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=new Array(576);e(o);var d=new Array(60);e(d);var u=new Array(512);e(u);var f=new Array(256);e(f);var c=new Array(29);e(c);var p,g,w,v=new Array(r);function b(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(v);var y=function(t){return t<256?u[t]:u[256+(t>>>7)]},k=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},z=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,k(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},x=function(t,e,a){z(t,a[2*e],a[2*e+1])},A=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},E=function(t,e,a){var n,r,s=new Array(16),_=0;for(n=1;n<=i;n++)s[n]=_=_+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=A(s[h]++,h))}},Z=function(t){var e;for(e=0;e<n;e++)t.dyn_ltree[2*e]=0;for(e=0;e<r;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},U=function(t){t.bi_valid>8?k(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},S=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},R=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&S(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!S(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},L=function(t,e,n){var r,i,h,l,o=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],i=t.pending_buf[t.l_buf+o],o++,0===r?x(t,i,e):(h=f[i],x(t,h+a+1,e),0!==(l=s[h])&&(i-=c[h],z(t,i,l)),r--,h=y(r),x(t,h,n),0!==(l=_[h])&&(r-=v[h],z(t,r,l)))}while(o<t.last_lit);x(t,256,e)},F=function(t,e){var a,n,r,s=e.dyn_tree,_=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==s[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):s[2*a+1]=0;for(;t.heap_len<2;)s[2*(r=t.heap[++t.heap_len]=o<2?++o:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=_[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)R(t,s,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],R(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,s[2*r]=s[2*a]+s[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,s[2*a+1]=s[2*n+1]=r,t.heap[1]=r++,R(t,s,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,s,_,h,l=e.dyn_tree,o=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(s=0;s<=i;s++)t.bl_count[s]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(s=l[2*l[2*(n=t.heap[a])+1]+1]+1)>p&&(s=p,g++),l[2*n+1]=s,n>o||(t.bl_count[s]++,_=0,n>=c&&(_=f[n-c]),h=l[2*n],t.opt_len+=h*(s+_),u&&(t.static_len+=h*(d[2*n+1]+_)));if(0!==g){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(s=p;0!==s;s--)for(n=t.bl_count[s];0!==n;)(r=t.heap[--a])>o||(l[2*r+1]!==s&&(t.opt_len+=(s-l[2*r+1])*l[2*r],l[2*r+1]=s),n--)}}(t,e),E(s,o,t.bl_count)},T=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++_<h&&r===s||(_<l?t.bl_tree[2*r]+=_:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):_<=10?t.bl_tree[34]++:t.bl_tree[36]++,_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4))},I=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++_<h&&r===s)){if(_<l)do{x(t,r,t.bl_tree)}while(0!=--_);else 0!==r?(r!==i&&(x(t,r,t.bl_tree),_--),x(t,16,t.bl_tree),z(t,_-3,2)):_<=10?(x(t,17,t.bl_tree),z(t,_-3,3)):(x(t,18,t.bl_tree),z(t,_-11,7));_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4)}},N=!1,O=function(t,e,a,n){z(t,0+(n?1:0),3),function(t,e,a,n){U(t),n&&(k(t,a),k(t,~a)),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a,!0)},D=function(t,e,n,r){var i,s,_=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<a;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),F(t,t.l_desc),F(t,t.d_desc),_=function(t){var e;for(T(t,t.dyn_ltree,t.l_desc.max_code),T(t,t.dyn_dtree,t.d_desc.max_code),F(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*l[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=n+5,n+4<=i&&-1!==e?O(t,e,n,r):4===t.strategy||s===i?(z(t,2+(r?1:0),3),L(t,o,d)):(z(t,4+(r?1:0),3),function(t,e,a,n){var r;for(z(t,e-257,5),z(t,a-1,5),z(t,n-4,4),r=0;r<n;r++)z(t,t.bl_tree[2*l[r]+1],3);I(t,t.dyn_ltree,e-1),I(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),L(t,t.dyn_ltree,t.dyn_dtree)),Z(t),r&&U(t)},B={_tr_init:function(t){N||(!function(){var t,e,a,l,m,y=new Array(16);for(a=0,l=0;l<28;l++)for(c[l]=a,t=0;t<1<<s[l];t++)f[a++]=l;for(f[a-1]=l,m=0,l=0;l<16;l++)for(v[l]=m,t=0;t<1<<_[l];t++)u[m++]=l;for(m>>=7;l<r;l++)for(v[l]=m<<7,t=0;t<1<<_[l]-7;t++)u[256+m++]=l;for(e=0;e<=i;e++)y[e]=0;for(t=0;t<=143;)o[2*t+1]=8,t++,y[8]++;for(;t<=255;)o[2*t+1]=9,t++,y[9]++;for(;t<=279;)o[2*t+1]=7,t++,y[7]++;for(;t<=287;)o[2*t+1]=8,t++,y[8]++;for(E(o,287,y),t=0;t<r;t++)d[2*t+1]=5,d[2*t]=A(t,5);p=new b(o,s,257,n,i),g=new b(d,_,0,r,i),w=new b(new Array(0),h,0,19,7)}(),N=!0),t.l_desc=new m(t.dyn_ltree,p),t.d_desc=new m(t.dyn_dtree,g),t.bl_desc=new m(t.bl_tree,w),t.bi_buf=0,t.bi_valid=0,Z(t)},_tr_stored_block:O,_tr_flush_block:D,_tr_tally:function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(f[n]+a+1)]++,t.dyn_dtree[2*y(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){z(t,2,3),x(t,256,o),function(t){16===t.bi_valid?(k(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},C=function(t,e,a,n){for(var r=65535&t|0,i=t>>>16&65535|0,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16|0},H=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),M=function(t,e,a,n){var r=H,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return-1^t},Y={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},K={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},P=B._tr_init,j=B._tr_stored_block,G=B._tr_flush_block,X=B._tr_tally,W=B._tr_align,q=K.Z_NO_FLUSH,J=K.Z_PARTIAL_FLUSH,Q=K.Z_FULL_FLUSH,V=K.Z_FINISH,$=K.Z_BLOCK,tt=K.Z_OK,et=K.Z_STREAM_END,at=K.Z_STREAM_ERROR,nt=K.Z_DATA_ERROR,rt=K.Z_BUF_ERROR,it=K.Z_DEFAULT_COMPRESSION,st=K.Z_FILTERED,_t=K.Z_HUFFMAN_ONLY,ht=K.Z_RLE,lt=K.Z_FIXED,ot=K.Z_DEFAULT_STRATEGY,dt=K.Z_UNKNOWN,ut=K.Z_DEFLATED,ft=258,ct=262,pt=103,gt=113,wt=666,vt=function(t,e){return t.msg=Y[e],e},bt=function(t){return(t<<1)-(t>4?9:0)},mt=function(t){for(var e=t.length;--e>=0;)t[e]=0},yt=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},kt=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},zt=function(t,e){G(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,kt(t.strm)},xt=function(t,e){t.pending_buf[t.pending++]=e},At=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,_=t.nice_match,h=t.strstart>t.w_size-ct?t.strstart-(t.w_size-ct):0,l=t.window,o=t.w_mask,d=t.prev,u=t.strstart+ft,f=l[i+s-1],c=l[i+s];t.prev_length>=t.good_match&&(r>>=2),_>t.lookahead&&(_=t.lookahead);do{if(l[(a=e)+s]===c&&l[a+s-1]===f&&l[a]===l[i]&&l[++a]===l[i+1]){i+=2,a++;do{}while(l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&i<u);if(n=ft-(u-i),i=u-ft,n>s){if(t.match_start=e,s=n,n>=_)break;f=l[i+s-1],c=l[i+s]}}}while((e=d[e&o])>h&&0!=--r);return s<=t.lookahead?s:t.lookahead},Zt=function(t){var e,a,n,r,i,s,_,h,l,o,d=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-ct)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,_=t.window,h=t.strstart+t.lookahead,l=r,o=void 0,(o=s.avail_in)>l&&(o=l),a=0===o?0:(s.avail_in-=o,_.set(s.input.subarray(s.next_in,s.next_in+o),h),1===s.state.wrap?s.adler=C(s.adler,_,o,h):2===s.state.wrap&&(s.adler=M(s.adler,_,o,h)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=yt(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=yt(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<ct&&0!==t.strm.avail_in)},Ut=function(t,e){for(var a,n;;){if(t.lookahead<ct){if(Zt(t),t.lookahead<ct&&e===q)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-ct&&(t.match_length=Et(t,a)),t.match_length>=3)if(n=X(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=yt(t,t.ins_h,t.window[t.strstart+1]);else n=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2},St=function(t,e){for(var a,n,r;;){if(t.lookahead<ct){if(Zt(t),t.lookahead<ct&&e===q)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-ct&&(t.match_length=Et(t,a),t.match_length<=5&&(t.strategy===st||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=X(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(zt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=X(t,0,t.window[t.strstart-1]))&&zt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=X(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2};function Rt(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var Lt=[new Rt(0,0,0,0,(function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Zt(t),0===t.lookahead&&e===q)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,zt(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-ct&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(zt(t,!1),t.strm.avail_out),1)})),new Rt(4,4,8,4,Ut),new Rt(4,5,16,8,Ut),new Rt(4,6,32,32,Ut),new Rt(4,4,16,16,St),new Rt(8,16,32,32,St),new Rt(8,16,128,128,St),new Rt(8,32,128,256,St),new Rt(32,128,258,1024,St),new Rt(32,258,258,4096,St)];function Ft(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ut,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),mt(this.dyn_ltree),mt(this.dyn_dtree),mt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),mt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),mt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Tt=function(t){if(!t||!t.state)return vt(t,at);t.total_in=t.total_out=0,t.data_type=dt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:gt,t.adler=2===e.wrap?0:1,e.last_flush=q,P(e),tt},It=function(t){var e,a=Tt(t);return a===tt&&((e=t.state).window_size=2*e.w_size,mt(e.head),e.max_lazy_match=Lt[e.level].max_lazy,e.good_match=Lt[e.level].good_length,e.nice_match=Lt[e.level].nice_length,e.max_chain_length=Lt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),a},Nt=function(t,e,a,n,r,i){if(!t)return at;var s=1;if(e===it&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==ut||n<8||n>15||e<0||e>9||i<0||i>lt)return vt(t,at);8===n&&(n=9);var _=new Ft;return t.state=_,_.strm=t,_.wrap=s,_.gzhead=null,_.w_bits=n,_.w_size=1<<_.w_bits,_.w_mask=_.w_size-1,_.hash_bits=r+7,_.hash_size=1<<_.hash_bits,_.hash_mask=_.hash_size-1,_.hash_shift=~~((_.hash_bits+3-1)/3),_.window=new Uint8Array(2*_.w_size),_.head=new Uint16Array(_.hash_size),_.prev=new Uint16Array(_.w_size),_.lit_bufsize=1<<r+6,_.pending_buf_size=4*_.lit_bufsize,_.pending_buf=new Uint8Array(_.pending_buf_size),_.d_buf=1*_.lit_bufsize,_.l_buf=3*_.lit_bufsize,_.level=e,_.strategy=i,_.method=a,It(t)},Ot={deflateInit:function(t,e){return Nt(t,e,ut,15,8,ot)},deflateInit2:Nt,deflateReset:It,deflateResetKeep:Tt,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?at:(t.state.gzhead=e,tt):at},deflate:function(t,e){var a,n;if(!t||!t.state||e>$||e<0)return t?vt(t,at):at;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===wt&&e!==V)return vt(t,0===t.avail_out?rt:at);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,xt(r,31),xt(r,139),xt(r,8),r.gzhead?(xt(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),xt(r,255&r.gzhead.time),xt(r,r.gzhead.time>>8&255),xt(r,r.gzhead.time>>16&255),xt(r,r.gzhead.time>>24&255),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(xt(r,255&r.gzhead.extra.length),xt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=M(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,3),r.status=gt);else{var s=ut+(r.w_bits-8<<4)<<8;s|=(r.strategy>=_t||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=gt,At(r,s),0!==r.strstart&&(At(r,t.adler>>>16),At(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending!==r.pending_buf_size));)xt(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,xt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,xt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=pt)}else r.status=pt;if(r.status===pt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&kt(t),r.pending+2<=r.pending_buf_size&&(xt(r,255&t.adler),xt(r,t.adler>>8&255),t.adler=0,r.status=gt)):r.status=gt),0!==r.pending){if(kt(t),0===t.avail_out)return r.last_flush=-1,tt}else if(0===t.avail_in&&bt(e)<=bt(i)&&e!==V)return vt(t,rt);if(r.status===wt&&0!==t.avail_in)return vt(t,rt);if(0!==t.avail_in||0!==r.lookahead||e!==q&&r.status!==wt){var _=r.strategy===_t?function(t,e){for(var a;;){if(0===t.lookahead&&(Zt(t),0===t.lookahead)){if(e===q)return 1;break}if(t.match_length=0,a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===ht?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=ft){if(Zt(t),t.lookahead<=ft&&e===q)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+ft;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=ft-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=X(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):Lt[r.level].func(r,e);if(3!==_&&4!==_||(r.status=wt),1===_||3===_)return 0===t.avail_out&&(r.last_flush=-1),tt;if(2===_&&(e===J?W(r):e!==$&&(j(r,0,0,!1),e===Q&&(mt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),kt(t),0===t.avail_out))return r.last_flush=-1,tt}return e!==V?tt:r.wrap<=0?et:(2===r.wrap?(xt(r,255&t.adler),xt(r,t.adler>>8&255),xt(r,t.adler>>16&255),xt(r,t.adler>>24&255),xt(r,255&t.total_in),xt(r,t.total_in>>8&255),xt(r,t.total_in>>16&255),xt(r,t.total_in>>24&255)):(At(r,t.adler>>>16),At(r,65535&t.adler)),kt(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?tt:et)},deflateEnd:function(t){if(!t||!t.state)return at;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==pt&&e!==gt&&e!==wt?vt(t,at):(t.state=null,e===gt?vt(t,nt):tt)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return at;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return at;if(1===r&&(t.adler=C(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(mt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,_=t.next_in,h=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Zt(n);n.lookahead>=3;){var l=n.strstart,o=n.lookahead-2;do{n.ins_h=yt(n,n.ins_h,n.window[l+3-1]),n.prev[l&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=l,l++}while(--o);n.strstart=l,n.lookahead=2,Zt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=_,t.input=h,t.avail_in=s,n.wrap=r,tt},deflateInfo:"pako deflate (from Nodeca project)"};for(var Dt=new Uint8Array(256),Bt=0;Bt<256;Bt++)Dt[Bt]=Bt>=252?6:Bt>=248?5:Bt>=240?4:Bt>=224?3:Bt>=192?2:1;Dt[254]=Dt[254]=1;var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Ht=Object.prototype.toString,Mt=K.Z_NO_FLUSH,Yt=K.Z_SYNC_FLUSH,Kt=K.Z_FULL_FLUSH,Pt=K.Z_FINISH,jt=K.Z_OK,Gt=K.Z_STREAM_END,Xt=K.Z_DEFAULT_COMPRESSION,Wt=K.Z_DEFAULT_STRATEGY,qt=K.Z_DEFLATED;function Jt(){this.options={level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;var e=Ot.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==jt)throw new Error(Y[e]);if(t.header&&Ot.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Ht.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Ot.deflateSetDictionary(this.strm,a))!==jt)throw new Error(Y[e]);this._dict_set=!0}}function Qt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function Vt(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}Jt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Pt:Mt,"[object ArrayBuffer]"===Ht.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(n===Yt||n===Kt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Ot.deflate(r,n))===Gt)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Ot.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===jt;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===jt&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,_=t.length;i<_;i++){var h=t[i];r.set(h,s),s+=h.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e){void 0===e&&(e=self);try{var a=new Map;e.addEventListener("message",(function(n){try{var r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"5.29.1"};case"write":var n=e.get(a.streamId);n||(n=new Jt,e.set(a.streamId,n));var r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);var e,a,n,r,i,s=t.length,_=0;for(r=0;r<s;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),_+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(_),i=0,r=0;i<_;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),a<128?e[i++]=a:a<2048?(e[i++]=192|a>>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(a.data);return n.push(i,K.Z_SYNC_FLUSH),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:Vt(n),additionalBytesCount:i.length};case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){Qt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(t){Qt(e,t)}}()}();'])))}var oD={status:0};function oz(t,e,n,r){switch(void 0===r&&(r=oF),0===oD.status&&function(t,e,n){void 0===n&&(n=oF);try{var r=n(t),o=tk(t,r,"error",function(n){oU(t,e,n)}).stop,i=tk(t,r,"message",function(n){var r,o=n.data;"errored"===o.type?oU(t,e,o.error,o.streamId):"initialized"===o.type&&(r=o.version,1===oD.status&&(oD={status:3,worker:oD.worker,stop:oD.stop,version:r}))}).stop;r.postMessage({action:"init"}),tr(function(){1===oD.status&&(M.error("".concat(e," failed to start: a timeout occurred while initializing the Worker")),oD.initializationFailureCallbacks.forEach(function(t){return t()}),oD={status:2})},3e4),oD={status:1,worker:r,stop:function(){o(),i()},initializationFailureCallbacks:[]}}catch(n){oU(t,e,n)}}(t,e,r),oD.status){case 1:return oD.initializationFailureCallbacks.push(n),oD.worker;case 3:return oD.worker}}function oU(t,e,n,r){if(1===oD.status||0===oD.status){var o;if(M.error("".concat(e," failed to start: an error occurred while creating the Worker:"),n),n instanceof Event||n instanceof Error&&(W(o=n.message,"Content Security Policy")||W(o,"requires 'TrustedScriptURL'"))){var i=void 0;i=t.workerUrl?"Please make sure the Worker URL ".concat(t.workerUrl," is correct and CSP is correctly configured."):"Please make sure CSP is correctly configured.",M.error("".concat(i," See documentation at ").concat(F,"/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay"))}else ef(n);1===oD.status&&oD.initializationFailureCallbacks.forEach(function(t){return t()}),oD={status:2}}else ef(n,{worker_version:3===oD.status&&oD.version,stream_id:r})}var oV=function(t,e,n){void 0===n&&(n={});var r,o,i,a=function(t){void 0===t&&(t=2);var e=new Map,n=!1;function r(r){if(void 0===r&&(r=0),!n&&0!==t){var o=2===t?3072:16384,i=r;e.forEach(function(t){i+=t.getBytesCount()}),i>o&&(M.warn("Customer data exceeds the recommended ".concat(o/1024,"KiB threshold. ").concat(z," ").concat(D,"/#customer-data-exceeds-the-recommended-threshold-warning")),n=!0)}}return{createDetachedTracker:function(){var t=tv(function(){return r(t.getBytesCount())});return t},getOrCreateTracker:function(t){return e.has(t)||e.set(t,tv(r)),e.get(t)},setCompressionStatus:function(e){0===t&&(t=e,r())},getCompressionStatus:function(){return t},stop:function(){e.forEach(function(t){return t.stop()}),e.clear()}}}(0),s=tx(a.getOrCreateTracker(2)),u=tx(a.getOrCreateTracker(1)),l={tryToInit:function(t){r||(r=t)},update:function(t){r=t,o.notify()},isGranted:function(){return r===tT.GRANTED},observable:o=new tE},d={vitalsByName:new Map,vitalsByReference:new WeakMap};function f(){return{context:s.getContext(),user:u.getContext(),hasReplay:!!e.isRecording()||void 0}}var p=function(t,e,n,r,o){var i,a,s,u,l=t.ignoreInitIfSyntheticsWillInjectRum,d=t.startDeflateWorker,f=eo(),p=n.observable.subscribe(h);function h(){if(s&&u&&n.isGranted()){if(p.unsubscribe(),u.trackViewsManually){if(!i)return;f.remove(i.callback),t=i.options}var t,e=o(u,a,t);f.drain(e)}}function m(t){var e,r,o,i,c,l,f,p,m,g=ex();if(g&&(t=$({},e=t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:null!==(r=e.defaultPrivacyLevel)&&void 0!==r?r:null===(o=eE())||void 0===o?void 0:o.getPrivacyLevel()})),s=t,f={session_sample_rate:(c=i=t).sessionSampleRate,telemetry_sample_rate:c.telemetrySampleRate,telemetry_configuration_sample_rate:c.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:c.telemetryUsageSampleRate,use_before_send:!!c.beforeSend,use_cross_site_session_cookie:c.useCrossSiteSessionCookie,use_partitioned_cross_site_session_cookie:c.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:c.useSecureSessionCookie,use_proxy:!!c.proxy,silent_multiple_init:c.silentMultipleInit,track_session_across_subdomains:c.trackSessionAcrossSubdomains,allow_fallback_to_local_storage:!!c.allowFallbackToLocalStorage,store_contexts_across_pages:!!c.storeContextsAcrossPages,allow_untrusted_events:!!c.allowUntrustedEvents,tracking_consent:c.trackingConsent},m=$({session_replay_sample_rate:i.sessionReplaySampleRate,start_session_replay_recording_manually:i.startSessionReplayRecordingManually,trace_sample_rate:i.traceSampleRate,trace_context_injection:i.traceContextInjection,action_name_attribute:i.actionNameAttribute,use_allowed_tracing_urls:Array.isArray(i.allowedTracingUrls)&&i.allowedTracingUrls.length>0,selected_tracing_propagators:(p=new Set,Array.isArray(i.allowedTracingUrls)&&i.allowedTracingUrls.length>0&&i.allowedTracingUrls.forEach(function(t){e5(t)?e9.forEach(function(t){return p.add(t)}):"object"===th(t)&&Array.isArray(t.propagatorTypes)&&t.propagatorTypes.forEach(function(t){return p.add(t)})}),Z(p)),default_privacy_level:i.defaultPrivacyLevel,enable_privacy_for_action_name:i.enablePrivacyForActionName,use_excluded_activity_urls:Array.isArray(i.excludedActivityUrls)&&i.excludedActivityUrls.length>0,use_worker_url:!!i.workerUrl,compress_intake_requests:i.compressIntakeRequests,track_views_manually:i.trackViewsManually,track_user_interactions:i.trackUserInteractions,track_resources:i.trackResources,track_long_task:i.trackLongTasks,plugins:null===(l=i.betaPlugins)||void 0===l?void 0:l.map(function(t){var e;return $({name:t.name},null===(e=t.getConfigurationTelemetry)||void 0===e?void 0:e.call(t))})},f),el({type:ei,configuration:m}),u){eh("DD_RUM",t);return}var y=function(t){if(!t.applicationId){M.error("Application ID is not configured, no RUM data will be collected.");return}if(e2(t.sessionReplaySampleRate,"Session Replay")&&e2(t.traceSampleRate,"Trace")){if(void 0!==t.excludedActivityUrls&&!Array.isArray(t.excludedActivityUrls)){M.error("Excluded Activity Urls should be an array");return}var e,n,r=function(t){if(void 0===t.allowedTracingUrls)return[];if(!Array.isArray(t.allowedTracingUrls)){M.error("Allowed Tracing URLs should be an array");return}if(0!==t.allowedTracingUrls.length&&void 0===t.service){M.error("Service needs to be configured when tracing is enabled");return}var e=[];return t.allowedTracingUrls.forEach(function(t){e5(t)?e.push({match:t,propagatorTypes:e9}):"object"===th(t)&&e5(t.match)&&Array.isArray(t.propagatorTypes)?e.push(t):M.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",t)}),e}(t);if(r){var o=function(t){var e,n,r,o,i,a,s,u,c,l,d,f,p,h,m,g,y;if(!t||!t.clientToken){M.error("Client Token is not configured, we will not send any data.");return}if((!(a=t.site)||"string"!=typeof a||/(datadog|ddog|datad0g|dd0g)/.test(a)||(M.error("Site should be a valid Datadog site. ".concat(z," ").concat(F,"/getting_started/site/.")),0))&&e2(t.sessionSampleRate,"Session")&&e2(t.telemetrySampleRate,"Telemetry")&&e2(t.telemetryConfigurationSampleRate,"Telemetry Configuration")&&e2(t.telemetryUsageSampleRate,"Telemetry Usage")&&e1(t.version,"Version")&&e1(t.env,"Env")&&e1(t.service,"Service")){if(void 0!==t.trackingConsent&&!tf(tT,t.trackingConsent)){M.error('Tracking Consent should be either "granted" or "not-granted"');return}return $({beforeSend:t.beforeSend&&U(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:((g=!function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="dd_cookie_test_".concat(em()),n="test";eL(e,n,6e4,t);var r=eP(e)===n;return eL(e,"",0,t),r}catch(t){return M.error(t),!1}}(((m={}).secure=!!t.useSecureSessionCookie||!!t.usePartitionedCrossSiteSessionCookie||!!t.useCrossSiteSessionCookie,m.crossSite=!!t.usePartitionedCrossSiteSessionCookie||!!t.useCrossSiteSessionCookie,m.partitioned=!!t.usePartitionedCrossSiteSessionCookie,t.trackSessionAcrossSubdomains&&(m.domain=function(){if(void 0===v){for(var t="dd_site_test_".concat(em()),e=window.location.hostname.split("."),n=e.pop();e.length&&!eP(t);)eL(t,"test",1e3,{domain:n="".concat(e.pop(),".").concat(n)});eL(t,"",0,{domain:n}),v=n}return v}()),m))?void 0:{type:"Cookie",cookieOptions:m})||!t.allowFallbackToLocalStorage||(g=function(){try{var t=em(),e="".concat("_dd_test_").concat(t);localStorage.setItem(e,t);var n=localStorage.getItem(e);return localStorage.removeItem(e),t===n?{type:"LocalStorage"}:void 0}catch(t){return}}()),g),sessionSampleRate:null!==(e=t.sessionSampleRate)&&void 0!==e?e:100,telemetrySampleRate:null!==(n=t.telemetrySampleRate)&&void 0!==n?n:20,telemetryConfigurationSampleRate:null!==(r=t.telemetryConfigurationSampleRate)&&void 0!==r?r:5,telemetryUsageSampleRate:null!==(o=t.telemetryUsageSampleRate)&&void 0!==o?o:5,service:t.service||void 0,silentMultipleInit:!!t.silentMultipleInit,allowUntrustedEvents:!!t.allowUntrustedEvents,trackingConsent:null!==(i=t.trackingConsent)&&void 0!==i?i:tT.GRANTED,storeContextsAcrossPages:!!t.storeContextsAcrossPages,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144},(s=t.site||t$,u=t.env,c=t.service,l=t.version,d=t.datacenter,f=[],u&&f.push(e$("env",u)),c&&f.push(e$("service",c)),l&&f.push(e$("version",l)),d&&f.push(e$("datacenter",d)),y=Y(p={logsEndpointBuilder:eX(t,"logs",f),rumEndpointBuilder:eX(t,"rum",f),sessionReplayEndpointBuilder:eX(t,"replay",f)}).map(function(t){return t.urlPrefix}),s===t$&&y.push("https://".concat(tQ,"/")),$({isIntakeUrl:function(t){return h.some(function(e){return 0===t.indexOf(e)})},replica:function(t,e,n){if(t.replica){var r=$({},t,{site:t$,clientToken:t.replica.clientToken}),o={logsEndpointBuilder:eX(r,"logs",n),rumEndpointBuilder:eX(r,"rum",n)};return e.push.apply(e,Y(o).map(function(t){return t.urlPrefix})),$({applicationId:t.replica.applicationId},o)}}(t,h=y,f),site:s},p)))}}(t);if(o)return $({applicationId:t.applicationId,version:t.version||void 0,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:null!==(e=t.sessionReplaySampleRate)&&void 0!==e?e:0,startSessionReplayRecordingManually:!!t.startSessionReplayRecordingManually,traceSampleRate:t.traceSampleRate,allowedTracingUrls:r,excludedActivityUrls:null!==(n=t.excludedActivityUrls)&&void 0!==n?n:[],workerUrl:t.workerUrl,compressIntakeRequests:!!t.compressIntakeRequests,trackUserInteractions:!!t.trackUserInteractions,trackViewsManually:!!t.trackViewsManually,trackResources:!!t.trackResources,trackLongTasks:!!t.trackLongTasks,subdomain:t.subdomain,defaultPrivacyLevel:tf(eQ,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:eQ.MASK,enablePrivacyForActionName:!!t.enablePrivacyForActionName,customerDataTelemetrySampleRate:1,traceContextInjection:tf(e0,t.traceContextInjection)?t.traceContextInjection:e0.ALL,plugins:t.betaPlugins||[]},o)}}}(t);if(y){if(!g&&!y.sessionStoreStrategyType){M.warn("No storage available for session. We will not send any data.");return}(!y.compressIntakeRequests||g||!d||(a=d(y,"Datadog RUM",tu)))&&(u=y,eO().subscribe(tu),n.tryToInit(y.trackingConsent),h())}}var g=function(t){f.add(function(e){return e.addDurationVital(t)})};return{init:function(t,e){var n,r,o;if(!t){M.error("Missing configuration");return}Array.isArray(n=t.enableExperimentalFeatures)&&function(t){t.forEach(function(t){tY.add(t)})}(n.filter(function(t){return tf(c,t)})),s=t,!(l&&eI())&&((!function(t,e,n){if(t)for(var r=0;r<t.length;r++){var o=t[r][e];o&&o(n)}}(t.betaPlugins,"onInit",{initConfiguration:t,publicApi:e}),t.remoteConfigurationId&&tJ(c.REMOTE_CONFIGURATION))?(r=function(e){m($({},t,e))},tk(t,o=new XMLHttpRequest,"load",function(){200===o.status?r(JSON.parse(o.responseText)):nt()}),tk(t,o,"error",function(){nt()}),o.open("GET","".concat("https://d3uc069fcn7uxw.cloudfront.net/configuration","/").concat(encodeURIComponent(t.remoteConfigurationId),".json")),o.send()):m(t))},get initConfiguration(){return s},getInternalContext:tu,stopSession:tu,addTiming:function(t,e){void 0===e&&(e=t4()),f.add(function(n){return n.addTiming(t,e)})},startView:function(t,e){void 0===e&&(e=t7());var n=function(n){n.startView(t,e)};f.add(n),i||(i={options:t,callback:n},h())},updateViewName:function(t){f.add(function(e){return e.updateViewName(t)})},setViewContext:function(t){f.add(function(e){return e.setViewContext(t)})},setViewContextProperty:function(t,e){f.add(function(n){return n.setViewContextProperty(t,e)})},addAction:function(t,n){void 0===n&&(n=e()),f.add(function(e){return e.addAction(t,n)})},addError:function(t,n){void 0===n&&(n=e()),f.add(function(e){return e.addError(t,n)})},addFeatureFlagEvaluation:function(t,e){f.add(function(n){return n.addFeatureFlagEvaluation(t,e)})},startDurationVital:function(t,e){return e_(r,t,e)},stopDurationVital:function(t,e){ew(g,r,t,e)},addDurationVital:g}}(n,f,l,d,function(r,o,i){r.storeContextsAcrossPages&&(tR(r,s,"rum",2),tR(r,u,"rum",1)),a.setCompressionStatus(o?1:2);var c=t(r,e,a,f,i,o&&n.createDeflateEncoder?function(t){return n.createDeflateEncoder(r,o,t)}:tO,l,d);return e.onRumStart(c.lifeCycle,r,c.session,c.viewHistory,o),p=$({init:function(t){eh("DD_RUM",t)},initConfiguration:p.initConfiguration},c),c}),h=j(function(t){var e="object"==typeof t?t:{name:t};e.context&&a.getOrCreateTracker(3).updateCustomerData(e.context),p.startView(e),ep({feature:"start-view"})}),m=(Object.defineProperty(i=$({version:"5.29.1",onReady:function(t){t()}},{init:j(function(t){p.init(t,m),tJ(c.UPDATE_VIEW_NAME)&&(m.updateViewName=j(function(t){p.updateViewName(t)}))}),setTrackingConsent:j(function(t){l.update(t),ep({feature:"set-tracking-consent",tracking_consent:t})}),setViewContext:j(function(t){p.setViewContext(t)}),setViewContextProperty:j(function(t,e){p.setViewContextProperty(t,e)}),setGlobalContext:j(function(t){s.setContext(t),ep({feature:"set-global-context"})}),getGlobalContext:j(function(){return s.getContext()}),setGlobalContextProperty:j(function(t,e){s.setContextProperty(t,e),ep({feature:"set-global-context"})}),removeGlobalContextProperty:j(function(t){return s.removeContextProperty(t)}),clearGlobalContext:j(function(){return s.clearContext()}),getInternalContext:j(function(t){return p.getInternalContext(t)}),getInitConfiguration:j(function(){return tg(p.initConfiguration)}),addAction:function(t,e){var n=tH();q(function(){p.addAction({name:tb(t),context:tb(e),startClocks:t7(),type:"custom",handlingStack:n}),ep({feature:"add-action"})})},addError:function(t,e){var n=tH();q(function(){p.addError({error:t,handlingStack:n,context:tb(e),startClocks:t7()}),ep({feature:"add-error"})})},addTiming:j(function(t,e){p.addTiming(tb(t),e)}),setUser:j(function(t){var e;(e="object"===th(t))||M.error("Unsupported user:",t),e&&u.setContext(ev(t)),ep({feature:"set-user"})}),getUser:j(function(){return u.getContext()}),setUserProperty:j(function(t,e){var n,r=ev(((n={})[t]=e,n))[t];u.setContextProperty(t,r),ep({feature:"set-user"})}),removeUserProperty:j(function(t){return u.removeContextProperty(t)}),clearUser:j(function(){return u.clearContext()}),startView:h,stopSession:j(function(){p.stopSession(),ep({feature:"stop-session"})}),addFeatureFlagEvaluation:j(function(t,e){p.addFeatureFlagEvaluation(tb(t),tb(e)),ep({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:j(function(){return e.getSessionReplayLink()}),startSessionReplayRecording:j(function(t){e.start(t),ep({feature:"start-session-replay-recording",force:t&&t.force})}),stopSessionReplayRecording:j(function(){return e.stop()}),addDurationVital:j(function(t,e){var n;ep({feature:"add-duration-vital"}),p.addDurationVital({name:tb(t),type:"duration",startClocks:{relative:(n=e.startTime)-et(),timeStamp:n},duration:e.duration,context:tb(e&&e.context),description:tb(e&&e.description)})}),startDurationVital:j(function(t,e){return ep({feature:"start-duration-vital"}),p.startDurationVital(tb(t),{context:tb(e&&e.context),description:tb(e&&e.description)})}),stopDurationVital:j(function(t,e){ep({feature:"stop-duration-vital"}),p.stopDurationVital("string"==typeof t?tb(t):t,{context:tb(e&&e.context),description:tb(e&&e.description)})})}),"_setDebug",{get:function(){return H},enumerable:!1}),i);return m}(function(t,e,n,r,o,i,a,s){var l,d,f,p,v,h,m,_,w,E,S=[],T=new nl;T.subscribe(12,function(t){return ee("rum",t)});var R=function(t){var e,n,r,o,i,a,s,c,l=(e="browser-rum-sdk",o=new tE,i=new Set,a=!W(eu,t.site)&&t0(t.telemetrySampleRate),(n={}).log=a,n[ei]=a&&t0(t.telemetryConfigurationSampleRate),n[ea]=a&&t0(t.telemetryUsageSampleRate),s=n,c={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self},el=function(n){var a=tc(n);if(s[n.type]&&i.size<t.maxTelemetryEventsPerPage&&!i.has(a)){var u=ty({type:"telemetry",date:t4(),service:e,version:"5.29.1",source:"browser",_dd:{format_version:2},telemetry:ty(n,{runtime_env:c,connectivity:en(),sdk_setup:"npm"}),experimental_features:Z(tY)},void 0!==r?r():{});o.notify(u),ee("telemetry",u),i.add(a)}},u=ef,{setContextProvider:function(t){r=t},observable:o,enabled:a});if(ex()){var d=eE();l.observable.subscribe(function(t){return d.send("internal_telemetry",t)})}return l}(t);R.setContextProvider(function(){var e,n;return{application:{id:t.applicationId},session:{id:null===(e=D.findTrackedSession())||void 0===e?void 0:e.id},view:{id:null===(n=tv.findView())||void 0===n?void 0:n.id},action:{id:t_.findActionId()}}});var O=function(t){T.notify(13,{error:t}),ed("Error reported to customer",{"error.message":t.message})},N=(U=n.getOrCreateTracker(0),V=nf({expireDelay:144e5}),T.subscribe(1,function(t){var e=t.startClocks;V.add({},e.relative),U.resetCustomerData()}),T.subscribe(5,function(t){var e=t.endClocks;V.closeActive(e.relative)}),{findFeatureFlagEvaluations:function(t){return V.find(t)},addFeatureFlagEvaluation:function(t,e){var n=V.find();n&&(n[t]=e,U.updateCustomerData(n))},stop:function(){return U.stop()}}),I=new tE(function(e){var n=tC(t,window,["visibilitychange","freeze"],function(t){"visibilitychange"===t.type&&"hidden"===document.visibilityState?e.notify({reason:ne.HIDDEN}):"freeze"===t.type&&e.notify({reason:ne.FROZEN})},{capture:!0}).stop,r=tk(t,window,"beforeunload",function(){e.notify({reason:ne.UNLOADING})}).stop;return function(){n(),r()}}),F=I.subscribe(function(t){T.notify(10,t)});S.push(function(){return F.unsubscribe()});var D=ex()?(B={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplay:eS("records")?1:0},{findTrackedSession:function(){return B},expire:tu,expireObservable:new tE,setForcedReplay:tu}):((H=function(t,e,n,r){var o,i,a,s,u,c,l=new tE,d=new tE,f=function(t,e,n){var r,o,i,a=new tE,s=new tE,u=new tE,c="Cookie"===t.type?(r=t.cookieOptions,function(t){if(!eN(eF)){var e=eN("_dd"),n=eN("_dd_r"),r=eN("_dd_l"),o={};e&&(o.id=e),r&&/^[01]$/.test(r)&&(o.logs=r),n&&/^[012]$/.test(n)&&(o.rum=n),tp(o)||(eV(o),t.persistSession(o))}}(o={isLockEnabled:1===eM(),persistSession:function(t){eL(eF,eB(t),9e5,r)},retrieveSession:ej,expireSession:function(){eL(eF,eB(ez()),144e5,r)}}),o):{isLockEnabled:!1,persistSession:eq,retrieveSession:eG,expireSession:eW},l=c.expireSession,d=ti(function(){eK({process:function(t){return eU(t)?ez():void 0},after:h},c)},1e3);m();var f=ts(function(){eK({process:function(t){if(!tp(t)){var e=h(t);return function(t){if(tp(t))return 0;var e=n(t.rum),r=e.trackingType,o=e.isTracked;t.rum=r,delete t.isExpired,o&&!t.id&&(t.id=em(),t.created=String(t6()))}(e),e}},after:function(t){tp(t)||g()||(i=t,a.notify()),i=t}},c)},1e3),p=f.throttled,v=f.cancel;function h(t){var n;return eU(t)&&(t=ez()),g()&&((n=t,i.id!==n.id||i[e]!==n[e])?(i=ez(),s.notify()):(u.notify({previousState:i,newState:t}),i=t)),t}function m(){eK({process:function(t){if(tp(t))return ez()},after:function(t){i=t}},c)}function g(){return void 0!==i[e]}return{expandOrRenewSession:p,expandSession:function(){eK({process:function(t){return g()?h(t):void 0}},c)},getSession:function(){return i},renewObservable:a,expireObservable:s,sessionStateUpdateObservable:u,restartSession:m,expire:function(){v(),l(),h(ez())},stop:function(){ta(d)},updateSessionState:function(t){eK({process:function(e){return $({},e,t)},after:h},c)}}}(t.sessionStoreStrategyType,"rum",n);rB.push(function(){return f.stop()});var p=nf({expireDelay:144e5});function v(){return{id:f.getSession().id,trackingType:f.getSession().rum,isReplayForced:!!f.getSession().forcedReplay}}return rB.push(function(){return p.stop()}),f.renewObservable.subscribe(function(){p.add(v(),t8()),l.notify()}),f.expireObservable.subscribe(function(){d.notify(),p.closeActive(t8())}),f.expandOrRenewSession(),p.add(v(),t9().relative),r.observable.subscribe(function(){r.isGranted()?f.expandOrRenewSession():f.expire()}),o=tC(t,window,["click","touchstart","keydown","scroll"],function(){r.isGranted()&&f.expandOrRenewSession()},{capture:!0,passive:!0}).stop,rB.push(o),i=function(){return f.expandSession()},a=function(){"visible"===document.visibilityState&&i()},s=tk(t,document,"visibilitychange",a).stop,rB.push(s),u=ti(a,6e4),rB.push(function(){ta(u)}),c=tk(t,window,"resume",function(){return f.restartSession()},{capture:!0}).stop,rB.push(c),{findSession:function(t,e){return p.find(t,e)},renewObservable:l,expireObservable:d,sessionStateUpdateObservable:f.sessionStateUpdateObservable,expire:f.expire,updateSessionState:f.updateSessionState}}(t,0,function(e){var n;return{trackingType:n="0"===e||"1"===e||"2"===e?e:t0(t.sessionSampleRate)?t0(t.sessionReplaySampleRate)?"1":"2":"0",isTracked:rH(n)}},a)).expireObservable.subscribe(function(){T.notify(8)}),H.renewObservable.subscribe(function(){T.notify(9)}),H.sessionStateUpdateObservable.subscribe(function(t){var e=t.previousState,n=t.newState;if(!e.forcedReplay&&n.forcedReplay){var r=H.findSession();r&&(r.isReplayForced=!0)}}),{findTrackedSession:function(t){var e=H.findSession(t);if(e&&rH(e.trackingType))return{id:e.id,sessionReplay:"1"===e.trackingType?1:e.isReplayForced?2:0}},expire:H.expire,expireObservable:H.expireObservable,setForcedReplay:function(){return H.updateSessionState({forcedReplay:"1"})}});if(ex())!function(t){var e=eE();t.subscribe(12,function(t){e.send("rum",t)})}(T);else{var z,U,V,B,H,G,Y,X,Q,tt=(G=R.observable,Y=D.expireObservable,X=t.replica,Q=function(t,e,n,r,o,i,a){void 0===a&&(a=rj);var s=c(t,e),u=n&&c(t,n);function c(t,e){var n=e.endpoint,s=e.encoder;return a({encoder:s,request:rY(t,n,t.batchBytesLimit,r),flushController:function(t){var e,n=t.messagesLimit,r=t.bytesLimit,o=t.durationLimit,i=t.pageExitObservable,a=t.sessionExpireObservable,s=i.subscribe(function(t){return f(t.reason)}),u=a.subscribe(function(){return f("session_expire")}),c=new tE(function(){return function(){s.unsubscribe(),u.unsubscribe()}}),l=0,d=0;function f(t){if(0!==d){var e=d,n=l;d=0,l=0,p(),c.notify({reason:t,messagesCount:e,bytesCount:n})}}function p(){to(e),e=void 0}return{flushObservable:c,get messagesCount(){return d},notifyBeforeAddMessage:function(t){l+t>=r&&f("bytes_limit"),d+=1,l+=t,void 0===e&&(e=tr(function(){f("duration_limit")},o))},notifyAfterAddMessage:function(t){void 0===t&&(t=0),l+=t,d>=n?f("messages_limit"):l>=r&&f("bytes_limit")},notifyAfterRemoveMessage:function(t){l-=t,0==(d-=1)&&p()}}}({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageExitObservable:o,sessionExpireObservable:i}),messageBytesLimit:t.messageBytesLimit})}return{flushObservable:s.flushController.flushObservable,add:function(t,e){void 0===e&&(e=!0),s.add(t),u&&e&&u.add(n.transformMessage?n.transformMessage(t):t)},upsert:function(t,e){s.upsert(t,e),u&&u.upsert(n.transformMessage?n.transformMessage(t):t,e)},stop:function(){s.stop(),u&&u.stop()}}}(t,{endpoint:t.rumEndpointBuilder,encoder:i(2)},X&&{endpoint:X.rumEndpointBuilder,transformMessage:function(t){return ty(t,{application:{id:X.applicationId}})},encoder:i(3)},O,I,Y),T.subscribe(12,function(t){"view"===t.type?Q.upsert(t,t.view.id):Q.add(t)}),G.subscribe(function(e){return Q.add(e,t.site===tX)}),Q);S.push(function(){return tt.stop()}),z=tt.flushObservable,R.enabled&&t0(t.customerDataTelemetrySampleRate)&&(r5(),r3(),T.subscribe(12,function(t){A=!0,r1(C.globalContextBytes,n.getOrCreateTracker(2).getBytesCount()),r1(C.userContextBytes,n.getOrCreateTracker(1).getBytesCount()),r1(C.featureFlagBytes,W(["view","error"],t.type)?n.getOrCreateTracker(0).getBytesCount():0)}),z.subscribe(function(t){var e=t.bytesCount,n=t.messagesCount;A&&(k.batchCount+=1,r1(k.batchBytesCount,e),r1(k.batchMessagesCount,n),r2(k.globalContextBytes,C.globalContextBytes),r2(k.userContextBytes,C.userContextBytes),r2(k.featureFlagBytes,C.featureFlagBytes),r3())}),ti(rQ,1e4))}var te=(eA=nn(),new tE(function(t){if(eA){var e=new eA(j(function(){return t.notify()}));return e.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return e.disconnect()}}})),tn=(eP=td(eR=location),new tE(function(e){var n,r,o,i=(n=eT(r$("pushState"),"pushState",function(t){(0,t.onPostCall)(s)}).stop,r=eT(r$("replaceState"),"replaceState",function(t){(0,t.onPostCall)(s)}).stop,o=tk(t,window,"popstate",s).stop,{stop:function(){n(),r(),o()}}).stop,a=tk(t,window,"hashchange",s).stop;function s(){if(eP.href!==eR.href){var t=td(eR);e.notify({newLocation:t,oldLocation:eP}),eP=t}}return function(){i(),a()}})),tl=function(t,e){void 0===e&&(e=500);var n,r=nf({expireDelay:144e5,maxEntries:4e3});i(r6(),t8());var o=tC(t,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],function(t){i("freeze"===t.type?"frozen":"pagehide"===t.type?t.persisted?"frozen":"terminated":r6(),t.timeStamp)},{capture:!0}).stop;function i(t,e){void 0===e&&(e=t8()),t!==n&&(n=t,r.closeActive(e),r.add({state:n,startTime:e},e))}var a={findAll:function(t,n){var o=r.findAll(t,n);if(0!==o.length){for(var i=[],a=Math.max(0,o.length-e),s=o.length-1;s>=a;s--){var u=o[s],c=u.startTime-t;i.push({state:u.state,start:t3(c)})}return i}},wasInPageStateAt:function(t,e){return a.wasInPageStateDuringPeriod(t,e,0)},wasInPageStateDuringPeriod:function(t,e,n){return r.findAll(e,n).some(function(e){return e.state===t})},addPageState:i,stop:function(){o(),r.stop()}};return a}(t),tf=(tD=T,tz=t,tU=location,tV=D,tG=tl,t$=tn,tQ=te,t2=r,er=O,ep=(eo=nf({expireDelay:144e5}),tD.subscribe(1,function(t){eo.add({service:t.service,version:t.version,context:t.context,id:t.id,name:t.name,startClocks:t.startClocks},t.startClocks.relative)}),tD.subscribe(5,function(t){var e=t.endClocks;eo.closeActive(e.relative)}),tD.subscribe(3,function(t){var e=eo.find(t.startClocks.relative);e&&t.name&&(e.name=t.name),e&&t.context&&(e.context=t.context)}),tD.subscribe(9,function(){eo.reset()}),{findView:function(t){return eo.find(t)},stop:function(){eo.stop()}}),ev=function(t,e,n){var r,o=nf({expireDelay:144e5});t.subscribe(1,function(t){var e=t.startClocks,i=n.href;o.add(a({url:i,referrer:r||document.referrer}),e.relative),r=i}),t.subscribe(5,function(t){var e=t.endClocks;o.closeActive(e.relative)});var i=e.subscribe(function(t){var e=t.newLocation,n=o.find();if(n){var r=t8();o.closeActive(r),o.add(a({url:e.href,referrer:n.referrer}),r)}});function a(t){return{url:t.url,referrer:t.referrer}}return{findUrl:function(t){return o.find(t)},stop:function(){i.unsubscribe(),o.stop()}}}(tD,t$,tU),eg=(eh=function(t,e,n,r){t.subscribe(0,function(e){return t.notify(11,rh(e,r))});var o={findActionId:tu};return n.trackUserInteractions&&(o=function(t,e,n){var r,o,i,a,s,u,c,l,d=nf({expireDelay:3e5}),f=new tE;t.subscribe(9,function(){d.reset()}),t.subscribe(4,h);var p=(a=(r={onPointerDown:function(r){return function(t,e,n,r){var o,i=t.enablePrivacyForActionName?nY(r.target,t.defaultPrivacyLevel):nG.ALLOW;if(i!==nG.HIDDEN){var a,s,u,c,l,d,f,p,v,h=(a=r,s=i,u=t,p=a.target.getBoundingClientRect(),(v=rr(a.target,u.actionNameAttribute))&&rv(a.timeStamp,v),{type:"click",target:{width:Math.round(p.width),height:Math.round(p.height),selector:v},position:{x:Math.round(a.clientX-p.left),y:Math.round(a.clientY-p.top)},name:(c=a.target,l=u.enablePrivacyForActionName,d=u.actionNameAttribute,f=n5(c,n2)||d&&n5(c,d),s===nG.MASK?f||"Masked Element":f||n4(c,d,n3,l)||n4(c,d,n6,l)||"")}),m=!1;return o=function(t){m=t.hadActivity},nP(nN(e,n,t),o,100),{clickActionBase:h,hadActivityOnPointerDown:function(){return m}}}}(n,t,e,r)},onPointerUp:function(r,o,i){var a,s,u,c,l,p,h,m,g,y,b,_,w,E,S,x,T;a=n,s=t,u=e,c=d,l=f,p=v,h=r.clickActionBase,m=o,g=i,y=r.hadActivityOnPointerDown,p(w=function t(e,n,r,o,i){var a,s=em(),u=t7(),c=n.add(s,u.relative),l=nR({lifeCycle:e,isChildEvent:function(t){return void 0!==t.action&&(Array.isArray(t.action.id)?W(t.action.id,s):t.action.id===s)}}),d=0,f=[],p=new tE;function v(t){0===d&&((d=1,a=t)?c.close(a-et()):c.remove(),l.stop(),p.notify())}return{event:i,stop:v,stopObservable:p,get hasError(){return l.eventCounts.errorCount>0},get hasPageActivity(){return void 0!==a},getUserActivity:r,addFrustration:function(t){f.push(t)},startClocks:u,isStopped:function(){return 1===d||2===d},clone:function(){return t(e,n,r,o,i)},validate:function(t){if(v(),1===d){var n,r=l.eventCounts,c=r.resourceCount,p=r.errorCount,h=r.longTaskCount,m=$({type:"click",duration:a&&(n=u.timeStamp,a-n),startClocks:u,id:s,frustrationTypes:f,counts:{resourceCount:c,errorCount:p,longTaskCount:h},events:null!=t?t:[i],event:i},o);e.notify(0,m),d=2}},discard:function(){v(),d=2}}}(s,c,g,h,m)),(E=null===(_=null==h?void 0:h.target)||void 0===_?void 0:_.selector)&&rv(m.timeStamp,E),S=(b=function(t){t.hadActivity&&t.end<w.startClocks.timeStamp?w.discard():t.hadActivity?w.stop(t.end):y()?w.stop(w.startClocks.timeStamp):w.stop()},nP(nN(s,u,a),b,1e4)).stop,x=s.subscribe(4,function(t){var e=t.endClocks;w.stop(e.timeStamp)}),T=l.subscribe(function(){w.stop()}),w.stopObservable.subscribe(function(){x.unsubscribe(),S(),T.unsubscribe()})}}).onPointerDown,s=r.onPointerUp,u={selection:!1,input:!1,scroll:!1},c=[tk(n,window,"pointerdown",function(t){rd(t)&&(o=rl(),u={selection:!1,input:!1,scroll:!1},i=a(t))},{capture:!0}),tk(n,window,"selectionchange",function(){o&&rl()||(u.selection=!0)},{capture:!0}),tk(n,window,"scroll",function(){u.scroll=!0},{capture:!0,passive:!0}),tk(n,window,"pointerup",function(t){if(rd(t)&&i){var e=u;s(i,t,function(){return e}),i=void 0}},{capture:!0}),tk(n,window,"input",function(){u.input=!0},{capture:!0})],{stop:function(){c.forEach(function(t){return t.stop()})}}).stop;return{stop:function(){h(),f.notify(),p()},actionContexts:{findActionId:function(t){return d.findAll(t)}}};function v(t){if(!l||!l.tryAppend(t)){var e=t.clone();l=function(t,e){var n,r=[],o=0;function i(t){t.stopObservable.subscribe(a),r.push(t),to(n),n=tr(s,1e3)}function a(){1===o&&r.every(function(t){return t.isStopped()})&&(o=2,e(r))}function s(){to(n),0===o&&(o=1,a())}return i(t),{tryAppend:function(t){var e,n;return 0===o&&(!(r.length>0)||(e=r[r.length-1].event,n=t.event,e.target===n.target&&100>=Math.sqrt(Math.pow(e.clientX-n.clientX,2)+Math.pow(e.clientY-n.clientY,2))&&e.timeStamp-n.timeStamp<=1e3)?(i(t),!0):(s(),!1))},stop:function(){s()}}}(t,function(t){(function(t,e){if(function(t){if(t.some(function(t){return t.getUserActivity().selection||t.getUserActivity().scroll}))return!1;for(var e=0;e<t.length-2;e+=1)if(t[e+3-1].event.timeStamp-t[e].event.timeStamp<=1e3)return!0;return!1}(t))return e.addFrustration("rage_click"),t.some(rf)&&e.addFrustration("dead_click"),e.hasError&&e.addFrustration("error_click"),{isRage:!0};var n=t.some(function(t){return t.getUserActivity().selection});return t.forEach(function(t){t.hasError&&t.addFrustration("error_click"),rf(t)&&!n&&t.addFrustration("dead_click")}),{isRage:!1}})(t,e).isRage?(t.forEach(function(t){return t.discard()}),e.stop(t4()),e.validate(t.map(function(t){return t.event}))):(e.discard(),t.forEach(function(t){return t.validate()}))})}}function h(){l&&l.stop()}}(t,e,n).actionContexts),{addAction:function(e,n){t.notify(11,$({savedCommonContext:n},rh(e,r)))},actionContexts:o}}(tD,tQ,tz,tG)).addAction,ey=eh.actionContexts,ek=(es=rU(),{get:function(){return{viewport:es}},stop:rz(tz).subscribe(function(t){es=t}).unsubscribe}),eC=function(t,e){if(void 0===e){var n;n=window.cookieStore?function(e,n){return tk(t,window.cookieStore,"change",function(t){var r=K(t.changed,function(t){return t.name===e})||K(t.deleted,function(t){return t.name===e});r&&n(r.value)}).stop}:r4,e=new tE(function(t){return n(r8,function(e){return t.notify(e)})})}var r,o=eN(r8)||(null===(r=window.Cypress)||void 0===r?void 0:r.env("traceId")),i=e.subscribe(function(t){o=t});return{get:function(){if("string"==typeof o)return{test_execution_id:o}},stop:function(){return i.unsubscribe()}}}(tz),!function(t,e,n,r,o,i,a,s,u,l){(d={}).view=$({},nu,ns),d.error=$({"error.message":"string","error.stack":"string","error.resource.url":"string","error.fingerprint":"string"},nu,ns,nc),d.resource=$({"resource.url":"string"},tJ(c.WRITABLE_RESOURCE_GRAPHQL)?{"resource.graphql":"object"}:{},nu,ns,nc),d.action=$({"action.target.name":"string"},nu,ns,nc),d.long_task=$({},nu,ns),d.vital=$({},nu,ns),g=d;var d,f,p=((f={}).error=no("error",t.eventRateLimiterThreshold,l),f.action=no("action",t.eventRateLimiterThreshold,l),f.vital=no("vital",t.eventRateLimiterThreshold,l),f),v=function(){var t,e,n="string"==typeof(t=window._DATADOG_SYNTHETICS_PUBLIC_ID||eN("datadog-synthetics-public-id"))?t:void 0,r="string"==typeof(e=window._DATADOG_SYNTHETICS_RESULT_ID||eN("datadog-synthetics-result-id"))?e:void 0;if(n&&r)return{test_id:n,result_id:r,injected:eI()}}();e.subscribe(11,function(c){var l=c.startTime,d=c.rawRumEvent,f=c.domainContext,h=c.savedCommonContext,m=c.customerContext,y=r.findView(l),b=o.findUrl(l),_=n.findTrackedSession(l);if(_&&y&&b){var w=h||u(),E=i.findActionId(l),S=ty({_dd:{format_version:2,drift:Math.round(t6()-(et()+performance.now())),configuration:{session_sample_rate:t1(t.sessionSampleRate,3),session_replay_sample_rate:t1(t.sessionReplaySampleRate,3)},browser_sdk_version:ex()?"5.29.1":void 0},application:{id:t.applicationId},date:t4(),service:y.service||t.service,version:y.version||t.version,source:"browser",session:{id:_.id,type:v?"synthetics":s.get()?"ci_test":"user"},view:{id:y.id,name:y.name,url:b.url,referrer:b.referrer},action:-1!==["error","resource","long_task"].indexOf(d.type)&&E?{id:E}:void 0,synthetics:v,ci_test:s.get(),display:a.get(),connectivity:en()},d);S.context=ty(w.context,y.context,m),"has_replay"in S.session||(S.session.has_replay=w.hasReplay),"view"===S.type&&(S.session.sampled_for_replay=1===_.sessionReplay),tp(w.user)||(S.usr=w.user),function(t,e,n,r){if(e){var o,i,a,s,u=(o=g[t.type],a=e(i=tg(t),n),J(o).forEach(function(e){var n=e[0],r=e[1],o=function(t,e){for(var n=t,r=0,o=e.split(".");r<o.length;r++){var i,a=o[r];if(!(na(i=n)&&Object.prototype.hasOwnProperty.call(i,a)))return;n=n[a]}return n}(i,n),a=th(o);a===r?ni(t,n,tb(o)):"object"===r&&("undefined"===a||"null"===a)&&ni(t,n,{})}),a);if(!1===u&&"view"!==t.type)return!1;!1===u&&M.warn("Can't dismiss view events using beforeSend!")}return!(null===(s=r[t.type])||void 0===s?void 0:s.isLimitReached())}(S,t.beforeSend,f,p)&&(tp(S.context)&&delete S.context,e.notify(12,S))}})}(tz,tD,tV,ep,ev,ey,ek,eC,t2,er),{viewHistory:ep,pageStateHistory:tG,urlContexts:ev,addAction:eg,actionContexts:ey,stop:function(){eC.stop(),ek.stop(),ev.stop(),ep.stop(),tG.stop()}}),tv=tf.viewHistory,tm=tf.urlContexts,t_=tf.actionContexts,tw=tf.addAction,tT=tf.stop;S.push(tT),ec.drain();var tA=(eD=location,T.subscribe(3,function(n){var r,o,i,a,s,u,c,l,d,f,p,v,h,m,g,y,b,_,w,E;return T.notify(11,(b=e.getReplayStats(n.id),_=N.findFeatureFlagEvaluations(n.startClocks.relative),w=tl.findAll(n.startClocks.relative,n.duration),E={_dd:{document_version:n.documentVersion,replay_stats:b,page_states:w,configuration:{start_session_replay_recording_manually:t.startSessionReplayRecordingManually}},date:n.startClocks.timeStamp,type:"view",view:{action:{count:n.eventCounts.actionCount},frustration:{count:n.eventCounts.frustrationCount},cumulative_layout_shift:null===(r=n.commonViewMetrics.cumulativeLayoutShift)||void 0===r?void 0:r.value,cumulative_layout_shift_time:t3(null===(o=n.commonViewMetrics.cumulativeLayoutShift)||void 0===o?void 0:o.time),cumulative_layout_shift_target_selector:null===(i=n.commonViewMetrics.cumulativeLayoutShift)||void 0===i?void 0:i.targetSelector,first_byte:t3(null===(a=n.initialViewMetrics.navigationTimings)||void 0===a?void 0:a.firstByte),dom_complete:t3(null===(s=n.initialViewMetrics.navigationTimings)||void 0===s?void 0:s.domComplete),dom_content_loaded:t3(null===(u=n.initialViewMetrics.navigationTimings)||void 0===u?void 0:u.domContentLoaded),dom_interactive:t3(null===(c=n.initialViewMetrics.navigationTimings)||void 0===c?void 0:c.domInteractive),error:{count:n.eventCounts.errorCount},first_contentful_paint:t3(n.initialViewMetrics.firstContentfulPaint),first_input_delay:t3(null===(l=n.initialViewMetrics.firstInput)||void 0===l?void 0:l.delay),first_input_time:t3(null===(d=n.initialViewMetrics.firstInput)||void 0===d?void 0:d.time),first_input_target_selector:null===(f=n.initialViewMetrics.firstInput)||void 0===f?void 0:f.targetSelector,interaction_to_next_paint:t3(null===(p=n.commonViewMetrics.interactionToNextPaint)||void 0===p?void 0:p.value),interaction_to_next_paint_time:t3(null===(v=n.commonViewMetrics.interactionToNextPaint)||void 0===v?void 0:v.time),interaction_to_next_paint_target_selector:null===(h=n.commonViewMetrics.interactionToNextPaint)||void 0===h?void 0:h.targetSelector,is_active:n.isActive,name:n.name,largest_contentful_paint:t3(null===(m=n.initialViewMetrics.largestContentfulPaint)||void 0===m?void 0:m.value),largest_contentful_paint_target_selector:null===(g=n.initialViewMetrics.largestContentfulPaint)||void 0===g?void 0:g.targetSelector,load_event:t3(null===(y=n.initialViewMetrics.navigationTimings)||void 0===y?void 0:y.loadEvent),loading_time:nA(t3(n.commonViewMetrics.loadingTime)),loading_type:n.loadingType,long_task:{count:n.eventCounts.longTaskCount},resource:{count:n.eventCounts.resourceCount},time_spent:t3(n.duration)},feature_flags:_&&!tp(_)?_:void 0,display:n.commonViewMetrics.scroll?{scroll:{max_depth:n.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:n.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:n.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:t3(n.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:!!b||void 0,is_active:!!n.sessionIsActive&&void 0},privacy:{replay_level:t.defaultPrivacyLevel}},tp(n.customTimings)||(E.view.custom_timings=function(t,e){for(var n={},r=0,o=Object.keys(t);r<o.length;r++){var i=o[r];n[i]=e(t[i])}return n}(n.customTimings,t3)),{rawRumEvent:E,startTime:n.startClocks.relative,domainContext:{location:n.location}}))}),function(t,e,n,r,o,i,a){var s,u=new Set,l=d("initial_load",t9(),a);function d(o,i,a){var s=function(t,e,n,r,o,i,a){void 0===i&&(i=t7());var s,u,l,d,f,p,v,h,m,g,y,_,w,E,S,T,k,C,A,R,O,L,P,N,I,F,D,z,U,V,B,H,q,G,W,Z,Y,J,X,$,Q,tt,te,tn=em(),tc=new tE,tl={},tf=0,tp=td(r),tv=tx(),th=!0;a&&($=a.name,Q=a.service||void 0,tt=a.version||void 0,a.context&&(te=a.context,tv.setContext(te)));var tm={id:tn,name:$,startClocks:i,service:Q,version:tt,context:te};t.notify(1,tm),t.notify(2,tm);var tg=ts(tD,3e3,{leading:!1}),ty=tg.throttled,tb=tg.cancel,t_=(p={},h=(v=function(t,e,n,r,o,i){var a,s="initial_load"===r,u=!0,c=[],l=rL(n);function d(){if(!u&&!s&&c.length>0){var t=Math.max.apply(Math,c);t<l.timeStamp&&i(t)}}var f=(a=function(t){if(u){if(u=!1,t.hadActivity){var e;c.push((e=o.timeStamp,t.end-e))}d()}},nP(nN(t,e,n),a,void 0)).stop;return{stop:function(){f(),l.stop()},setLoadEvent:function(t){s&&(s=!1,c.push(t),d())}}}(t,e,n,o,f=i,function(t){p.loadingTime=t,ty()})).stop,m=v.setLoadEvent,T=(g=function(t){p.scroll=t},void 0===y&&(void 0===s&&(s=1e3),y=new tE(function(t){if(window.ResizeObserver){var e=ts(function(){var e,n;t.notify((e=rD(),n=rU().height,{scrollHeight:Math.round((document.scrollingElement||document.documentElement).scrollHeight),scrollDepth:Math.round(n+e),scrollTop:e}))},s,{leading:!1,trailing:!0}),r=document.scrollingElement||document.documentElement,o=new ResizeObserver(j(e.throttled));o.observe(r);var i=tk(n,window,"scroll",e.throttled,{passive:!0});return function(){e.cancel(),o.unobserve(r),i.stop()}}})),_=0,w=0,E=0,S=y.subscribe(function(t){var e=t.scrollDepth,n=t.scrollTop,r=t.scrollHeight,o=!1;e>_&&(_=e,o=!0),r>w&&(w=r,E=t8()-f.relative,o=!0),o&&g({maxDepth:Math.min(_,w),maxDepthScrollTop:n,maxScrollHeight:w,maxScrollHeightTime:E})}),{stop:function(){return S.unsubscribe()}}).stop,k=function(t,e,n){if(!(nL(b.LAYOUT_SHIFT)&&"WeakRef"in window))return{stop:tu};var r,o,i,a,s,u,c=0;n({value:0});var l=(i=0,a=0,{update:function(t){var e;return void 0===r||t.startTime-o>=1e3||t.startTime-r>=5e3?(r=o=t.startTime,a=i=t.value,e=!0):(i+=t.value,o=t.startTime,(e=t.value>a)&&(a=t.value)),{cumulatedValue:i,isMaxValue:e}}}),d=nO(t,{type:b.LAYOUT_SHIFT,buffered:!0}).subscribe(function(r){for(var o=0;o<r.length;o++){var i=r[o];if(!i.hadRecentInput&&!(i.startTime<e)){var a=l.update(i),d=a.cumulatedValue;if(a.isMaxValue){var f=function(t){var e;if(t)return null===(e=K(t,function(t){return!!t.node&&nV(t.node)}))||void 0===e?void 0:e.node}(i.sources);s=f?new WeakRef(f):void 0,u=i.startTime-e}if(d>c){c=d;var f=null==s?void 0:s.deref();n({value:t1(c,4),targetSelector:f&&rr(f,t.actionNameAttribute),time:u})}}}});return{stop:function(){d.unsubscribe()}}}(n,f.relative,function(t){p.cumulativeLayoutShift=t,ty()}).stop,A=(C=function(t,e,n){if(!(nL(b.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:function(){},setViewEnd:tu,stop:tu};var r,o,i,a,s=("interactionCount"in performance||x||(x=new window.PerformanceObserver(j(function(t){t.getEntries().forEach(function(t){t.interactionId&&(rN=Math.min(rN,t.interactionId),rP=((rI=Math.max(rI,t.interactionId))-rN)/7+1)})}))).observe({type:"event",buffered:!0,durationThreshold:0}),r="initial_load"===n?0:rM(),o={stopped:!1},{getViewInteractionCount:function(){return o.stopped?o.interactionCount:rM()-r},stopViewInteractionCount:function(){o={stopped:!0,interactionCount:rM()-r}}}),u=s.getViewInteractionCount,c=s.stopViewInteractionCount,l=1/0,d=function(t){var e=[];function n(){e.sort(function(t,e){return e.duration-t.duration}).splice(10)}return{process:function(t){var r=e.findIndex(function(e){return t.interactionId===e.interactionId}),o=e[e.length-1];-1!==r?t.duration>e[r].duration&&(e[r]=t,n()):(e.length<10||t.duration>o.duration)&&(e.push(t),n())},estimateP98Interaction:function(){var n=Math.min(e.length-1,Math.floor(t()/50));return e[n]}}}(u),f=-1;function p(n){for(var r,o,s=0;s<n.length;s++){var u=n[s];u.interactionId&&u.startTime>=e&&u.startTime<=l&&d.process(u)}var c=d.estimateP98Interaction();c&&c.duration!==f&&(f=c.duration,a=c.startTime-e,r=c.startTime,o=rp.get(r),rp.delete(r),!(i=o)&&c.target&&nV(c.target)&&(i=rr(c.target,t.actionNameAttribute)))}var v=nO(t,{type:b.FIRST_INPUT,buffered:!0}).subscribe(p),h=nO(t,{type:b.EVENT,durationThreshold:40,buffered:!0}).subscribe(p);return{getInteractionToNextPaint:function(){return f>=0?{value:Math.min(f,6e4),targetSelector:i,time:a}:u()?{value:0}:void 0},setViewEnd:function(t){l=t,c()},stop:function(){h.unsubscribe(),v.unsubscribe()}}}(n,f.relative,o)).stop,R=C.getInteractionToNextPaint,{stop:function(){h(),k(),T()},stopINPTracking:A,setLoadEvent:m,setViewEnd:C.setViewEnd,getCommonViewMetrics:function(){return p.interactionToNextPaint=R(),p}}),tw=t_.setLoadEvent,tS=t_.setViewEnd,tT=t_.stop,tA=t_.stopINPTracking,tR=t_.getCommonViewMetrics,tO="initial_load"===o?(O={},N=(L=function(t){tw(t.loadEvent),O.navigationTimings=t,ty()},void 0===P&&(P=rk),u=function(){var t=P();t.loadEventEnd<=0||L({domComplete:t.domComplete,domContentLoaded:t.domContentLoadedEventEnd,domInteractive:t.domInteractive,loadEvent:t.loadEventEnd,firstByte:t.responseStart>=0&&t.responseStart<=t8()?t.responseStart:void 0})},d=rS(n,"complete",function(){l=tr(function(){return u()})}).stop,{stop:function(){d(),to(l)}}).stop,I=rL(n),D=(F=function(t){O.firstContentfulPaint=t,ty()},{stop:nO(n,{type:b.PAINT,buffered:!0}).subscribe(function(t){var e=K(t,function(t){return"first-contentful-paint"===t.name&&t.startTime<I.timeStamp&&t.startTime<6e5});e&&F(e.startTime)}).unsubscribe}).stop,G=(z=window,U=function(t){O.largestContentfulPaint=t,ty()},V=1/0,B=tC(n,z,["pointerdown","keydown"],function(t){V=t.timeStamp},{capture:!0,once:!0}).stop,H=0,q=nO(n,{type:b.LARGEST_CONTENTFUL_PAINT,buffered:!0}).subscribe(function(t){var e=function(t,e){for(var n=t.length-1;n>=0;n-=1){var r=t[n];if(e(r,n,t))return r}}(t,function(t){return t.entryType===b.LARGEST_CONTENTFUL_PAINT&&t.startTime<V&&t.startTime<I.timeStamp&&t.startTime<6e5&&t.size>H});if(e){var r=void 0;e.element&&(r=rr(e.element,n.actionNameAttribute)),U({value:e.startTime,targetSelector:r}),H=e.size}}),{stop:function(){B(),q.unsubscribe()}}).stop,Y=(W=function(t){O.firstInput=t,ty()},Z=nO(n,{type:b.FIRST_INPUT,buffered:!0}).subscribe(function(t){var e=K(t,function(t){return t.startTime<I.timeStamp});if(e){var r,o=(r=e.startTime,e.processingStart-r),i=void 0;e.target&&nV(e.target)&&(i=rr(e.target,n.actionNameAttribute)),W({delay:o>=0?o:0,time:e.startTime,targetSelector:i})}}),{stop:function(){Z.unsubscribe()}}).stop,{stop:function(){N(),D(),G(),Y(),I.stop()},initialViewMetrics:O}):{stop:tu,initialViewMetrics:{}},tL=tO.stop,tP=tO.initialViewMetrics,tN={stop:(J=nR({lifeCycle:t,isChildEvent:function(t){return t.view.id===tn},onChange:ty})).stop,eventCounts:J.eventCounts},tI=tN.stop,tM=tN.eventCounts,tF=ti(tD,3e5);function tD(){tb(),tf+=1;var e=void 0===X?t4():X.timeStamp;t.notify(3,{customTimings:tl,documentVersion:tf,id:tn,name:$,service:Q,version:tt,context:tv.getContext(),loadingType:o,location:tp,startClocks:i,commonViewMetrics:tR(),initialViewMetrics:tP,duration:e-i.timeStamp,isActive:void 0===X,sessionIsActive:th,eventCounts:tM})}return tD(),tv.changeObservable.subscribe(tD),{get name(){return $},service:Q,version:tt,contextManager:tv,stopObservable:tc,end:function(e){var n,r,o=this;void 0===e&&(e={}),X||(X=null!==(n=e.endClocks)&&void 0!==n?n:t7(),th=null===(r=e.sessionIsActive)||void 0===r||r,t.notify(4,{endClocks:X}),t.notify(5,{endClocks:X}),ta(tF),tS(X.relative),tT(),tD(),tr(function(){o.stop()},3e5))},stop:function(){tL(),tI(),tA(),tc.notify()},addTiming:function(t,e){if(!X){var n,r=e<31536e6?e:e-i.timeStamp;tl[(n=t.replace(/[^a-zA-Z0-9-_.@$]/g,"_"))!==t&&M.warn("Invalid timing name: ".concat(t,", sanitized to: ").concat(n)),n]=r,ty()}},updateViewName:function(t){tJ(c.UPDATE_VIEW_NAME)&&($=t,tD())}}}(e,n,r,t,o,i,a);return u.add(s),s.stopObservable.subscribe(function(){u.delete(s)}),s}return e.subscribe(9,function(){l=d("route_change",void 0,{name:l.name,service:l.service,version:l.version,context:l.contextManager.getContext()})}),e.subscribe(8,function(){l.end({sessionIsActive:!1})}),e.subscribe(10,function(t){t.reason===ne.UNLOADING&&l.end()}),i&&(s=o.subscribe(function(t){var e,n,r;e=t.oldLocation,n=t.newLocation,e.pathname===n.pathname&&(""!==(r=n.hash.substring(1))&&document.getElementById(r)||rV(n.hash)===rV(e.hash))||(l.end(),l=d("route_change"))})),{addTiming:function(t,e){void 0===e&&(e=t4()),l.addTiming(t,e)},startView:function(t,e){l.end({endClocks:e}),l=d("route_change",e,t)},setViewContext:function(t){l.contextManager.setContext(t)},setViewContextProperty:function(t,e){l.contextManager.setContextProperty(t,e)},updateViewName:function(t){l.updateViewName(t)},stop:function(){s&&s.unsubscribe(),l.end(),u.forEach(function(t){return t.stop()})}}}(eD,T,te,t,tn,!t.trackViewsManually,o)),tR=tA.addTiming,tO=tA.startView,tP=tA.updateViewName,tN=tA.setViewContext,tI=tA.setViewContextProperty,tM=tA.stop;S.push(tM);var tF=(void 0===eH&&(eH=rC),T.subscribe(7,function(e){var n=function(t,e,n){var r=function(t){if(performance&&"getEntriesByName"in performance){var e=performance.getEntriesByName(t.url,"resource");if(e.length&&"toJSON"in e[0]){var n=e.filter(function(t){return!rw.has(t)}).filter(function(t){return nb(t)&&n_(t)}).filter(function(e){var n,r;return n=t.startClocks.relative,r=rE({startTime:t.startClocks.relative,duration:t.duration}),e.startTime>=n-1&&rE(e)<=r+1});if(1===n.length)return rw.add(n[0]),n[0].toJSON()}}}(t),o=r?t5(r.startTime):t.startClocks,i=function(t,e){if(t.traceSampled&&t.traceId&&t.spanId)return{_dd:{span_id:t.spanId.toDecimalString(),trace_id:t.traceId.toDecimalString(),rule_psr:rO(e)}}}(t,e);if(e.trackResources||i){var a,s="xhr"===t.type?"xhr":"fetch",u=r?rR(r):void 0,c=(a=t.duration,n.wasInPageStateDuringPeriod("frozen",o.relative,a)?void 0:t3(a)),l=ty({date:o.timeStamp,resource:{id:em(),type:s,duration:c,method:t.method,status_code:t.status,url:nx(t.url)?nT(t.url):t.url},type:"resource",_dd:{discarded:!e.trackResources}},i,u);return{startTime:o.relative,rawRumEvent:l,domainContext:{performanceEntry:r,xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error,isAborted:t.isAborted,handlingStack:t.handlingStack}}}}(e,t,tl);n&&T.notify(11,n)}),eZ=nO(t,{type:b.RESOURCE,buffered:!0}).subscribe(function(e){for(var n=0;n<e.length;n++){var r=e[n];if(!("xmlhttprequest"===r.initiatorType||"fetch"===r.initiatorType)){var o=rA(r,t);o&&T.notify(11,o)}}}),eH(t,function(e){var n=rA(e,t);n&&T.notify(11,n)}),{stop:function(){eZ.unsubscribe()}}).stop;if(S.push(tF),tJ(c.LONG_ANIMATION_FRAME)){if(t.trackLongTasks){var tD,tz,tU,tV,tG,t$,tQ,t2,er,eo,es,ep,ev,eh,eg,ey,ek,eC,eA,eR,eP,eD,eH,eZ,eY,eJ=(eY=nO(t,{type:b.LONG_ANIMATION_FRAME,buffered:!0}).subscribe(function(t){for(var e=0;e<t.length;e++){var n=t[e],r=t5(n.startTime),o={date:r.timeStamp,long_task:{id:em(),entry_type:"long-animation-frame",duration:t3(n.duration),blocking_duration:t3(n.blockingDuration),first_ui_event_timestamp:t3(n.firstUIEventTimestamp),render_start:t3(n.renderStart),style_and_layout_start:t3(n.styleAndLayoutStart),start_time:t3(n.startTime),scripts:n.scripts.map(function(t){return{duration:t3(t.duration),pause_duration:t3(t.pauseDuration),forced_style_and_layout_duration:t3(t.forcedStyleAndLayoutDuration),start_time:t3(t.startTime),execution_start:t3(t.executionStart),source_url:t.sourceURL,source_function_name:t.sourceFunctionName,source_char_position:t.sourceCharPosition,invoker:t.invoker,invoker_type:t.invokerType,window_attribution:t.windowAttribution}})},type:"long_task",_dd:{discarded:!1}};T.notify(11,{rawRumEvent:o,startTime:r.relative,domainContext:{performanceEntry:n}})}}),{stop:function(){return eY.unsubscribe()}}).stop;S.push(eJ)}}else nO(t,{type:b.LONG_TASK,buffered:!0}).subscribe(function(e){for(var n=0;n<e.length;n++){var r=e[n];if(r.entryType!==b.LONG_TASK||!t.trackLongTasks)break;var o=t5(r.startTime),i={date:o.timeStamp,long_task:{id:em(),entry_type:"long-task",duration:t3(r.duration)},type:"long_task",_dd:{discarded:!1}};T.notify(11,{rawRumEvent:i,startTime:o.relative,domainContext:{performanceEntry:r}})}});var eX=(l=p=new tE,(d=[L.error].map(function(t){return rg[t]||(rg[t]=new tE(function(e){var n=P[t];return P[t]=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];n.apply(console,r);var i=tH();q(function(){e.notify(function(t,e,n){var r,o=t.map(function(t){return"string"==typeof t?tb(t):t instanceof Error?tq(tL(t)):tc(tb(t),void 0,2)}).join(" ");if(e===L.error){var i=K(t,function(t){return t instanceof Error});r={stack:i?tj(tL(i)):void 0,fingerprint:tZ(i),causes:i?tK(i,"console"):void 0,startClocks:t7(),message:o,source:nr.CONSOLE,handling:"handled",handlingStack:n}}return{api:e,message:o,error:r,handlingStack:n}}(r,t,i))})},function(){P[t]=n}})),rg[t]}),tS.apply(void 0,d)).subscribe(function(t){return l.notify(t.error)}),(f=v=function(t,e){var n=tW({stackTrace:t,originalError:e,startClocks:t7(),nonErrorPrefix:"Uncaught",source:nr.SOURCE,handling:"unhandled"});p.notify(n)},eT(window,"onerror",function(t){var e,n,r,o,i,a=t.parameters,s=a[0],u=a[1],c=a[2],l=a[3],d=a[4];f(i=d instanceof Error?tL(d):{name:("[object String]"===({}).toString.call(s)&&(n=(e=tB.exec(s))[1],r=e[2]),o={name:n,message:r}).name,message:o.message,stack:[{url:u,column:l,line:c}]},null!=d?d:s)})).stop,eT(window,"onunhandledrejection",function(t){var e=t.parameters[0].reason||"Empty reason";v(tL(e),e)}).stop,(m=[],W(h=[ry,"intervention"],ry)&&m.push(new tE(function(e){return tk(t,document,"securitypolicyviolation",function(t){var n;e.notify((n="'".concat(t.blockedURI,"' blocked by '").concat(t.effectiveDirective,"' directive"),rb({type:t.effectiveDirective,message:"".concat(ry,": ").concat(n),originalError:t,csp:{disposition:t.disposition},stack:r_(t.effectiveDirective,t.originalPolicy?"".concat(n,' of the policy "').concat(eb(t.originalPolicy,100,"..."),'"'):"no policy",t.sourceFile,t.lineNumber,t.columnNumber)})))}).stop})),(_=h.filter(function(t){return t!==ry})).length&&m.push(new tE(function(t){if(window.ReportingObserver){var e=j(function(e,n){return e.forEach(function(e){var n,r;return t.notify((n=e.type,rb({type:(r=e.body).id,message:"".concat(n,": ").concat(r.message),originalError:e,stack:r_(r.id,r.message,r.sourceFile,r.lineNumber,r.columnNumber)})))})}),n=new window.ReportingObserver(e,{types:_,buffered:!0});return n.observe(),function(){n.disconnect()}}})),tS.apply(void 0,m)).subscribe(function(t){return p.notify(t)}),p.subscribe(function(t){return T.notify(13,{error:t})}),T.subscribe(13,function(t){var e,n,r,o=t.error,i=t.customerContext,a=t.savedCommonContext;T.notify(11,$({customerContext:i,savedCommonContext:a},(e={date:o.startClocks.timeStamp,error:{id:em(),message:o.message,source:o.source,stack:o.stack,handling_stack:o.handlingStack,type:o.type,handling:o.handling,causes:o.causes,source_type:"browser",fingerprint:o.fingerprint,csp:o.csp},type:"error",view:{in_foreground:tl.wasInPageStateAt("active",o.startClocks.relative)}},(n=N.findFeatureFlagEvaluations(o.startClocks.relative))&&!tp(n)&&(e.feature_flags=n),r={error:o.originalError,handlingStack:o.handlingStack},{rawRumEvent:e,startTime:o.startClocks.relative,domainContext:r})))}),{addError:function(t,e){var n=t.error,r=t.handlingStack,o=t.startClocks,i=t.context,a=tW({stackTrace:n instanceof Error?tL(n):void 0,originalError:n,handlingStack:r,startClocks:o,nonErrorPrefix:"Provided",source:nr.CUSTOM,handling:"handled"});T.notify(13,{customerContext:i,savedCommonContext:e,error:a})}}).addError;w={clearTracingIfNeeded:e6,traceFetch:function(e){return e4(t,e,D,function(t){var n;if(e.input instanceof Request&&!(null===(n=e.init)||void 0===n?void 0:n.headers))e.input=new Request(e.input),Object.keys(t).forEach(function(n){e.input.headers.append(n,t[n])});else{e.init=td(e.init);var r=[];e.init.headers instanceof Headers?e.init.headers.forEach(function(t,e){r.push([e,t])}):Array.isArray(e.init.headers)?e.init.headers.forEach(function(t){r.push(t)}):e.init.headers&&Object.keys(e.init.headers).forEach(function(t){r.push([t,e.init.headers[t]])}),e.init.headers=r.concat(J(t))}})},traceXhr:function(e,n){return e4(t,e,D,function(t){Object.keys(t).forEach(function(e){n.setRequestHeader(e,t[e])})})}},function(t,e,n){(y||(y=new tE(function(t){var n=eT(XMLHttpRequest.prototype,"open",nv).stop,r=eT(XMLHttpRequest.prototype,"send",function(n){(function(t,e,n){var r=t.target,o=t.handlingStack,i=np.get(r);if(i){i.state="start",i.startClocks=t7(),i.isAborted=!1,i.xhr=r,i.handlingStack=o;var a=!1,s=eT(r,"onreadystatechange",function(){r.readyState===XMLHttpRequest.DONE&&u()}).stop,u=function(){var t;c(),s(),a||(a=!0,i.state="complete",i.duration=(t=i.startClocks.timeStamp,t4()-t),i.status=r.status,n.notify(td(i)))},c=tk(e,r,"loadend",u).stop;n.notify(i)}})(n,e,t)},{computeHandlingStack:!0}).stop,o=eT(XMLHttpRequest.prototype,"abort",nh).stop;return function(){n(),r(),o()}})),y).subscribe(function(r){if(nE(e,r.url))switch(r.state){case"start":n.traceXhr(r,r.xhr),r.requestIndex=nC(),t.notify(6,{requestIndex:r.requestIndex,url:r.url});break;case"complete":n.clearTracingIfNeeded(r),t.notify(7,{duration:r.duration,method:r.method,requestIndex:r.requestIndex,spanId:r.spanId,startClocks:r.startClocks,status:r.status,traceId:r.traceId,traceSampled:r.traceSampled,type:"xhr",url:r.url,xhr:r.xhr,isAborted:r.isAborted,handlingStack:r.handlingStack})}})}(T,t,w),eO().subscribe(function(e){if(nE(t,e.url))switch(e.state){case"start":w.traceFetch(e),e.requestIndex=nC(),T.notify(6,{requestIndex:e.requestIndex,url:e.url});break;case"resolve":var n,r,o;n=function(t){w.clearTracingIfNeeded(e),T.notify(7,{duration:t,method:e.method,requestIndex:e.requestIndex,responseType:e.responseType,spanId:e.spanId,startClocks:e.startClocks,status:e.status,traceId:e.traceId,traceSampled:e.traceSampled,type:"fetch",url:e.url,response:e.response,init:e.init,input:e.input,isAborted:e.isAborted,handlingStack:e.handlingStack})},(o=e.response&&function(t){try{return t.clone()}catch(t){return}}(e.response))&&o.body?function(t,e,n){var r=t.getReader(),o=[],i=0;function a(){if(r.cancel().catch(tu),n.collectStreamBody){if(1===o.length)s=o[0];else{s=new Uint8Array(i);var t,a,s,u=0;o.forEach(function(t){s.set(t,u),u+=t.length})}t=s.slice(0,n.bytesLimit),a=s.length>n.bytesLimit}e(void 0,t,a)}(function t(){r.read().then(j(function(e){if(e.done){a();return}n.collectStreamBody&&o.push(e.value),(i+=e.value.length)>n.bytesLimit?a():t()}),j(function(t){return e(t)}))})()}(o.body,function(){var t;n((t=e.startClocks.timeStamp,t4()-t))},{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):n((r=e.startClocks.timeStamp,t4()-r))}});var e$=function(t,e,n){function r(n){if(!e.wasInPageStateDuringPeriod("frozen",n.startClocks.relative,n.duration)){var r;t.notify(11,(r={date:n.startClocks.timeStamp,vital:{id:em(),type:n.type,name:n.name,duration:t3(n.duration),description:n.description},type:"vital"},r._dd={vital:{computed_value:!0}},{rawRumEvent:r,startTime:n.startClocks.relative,customerContext:n.context,domainContext:{}}))}}return{addDurationVital:r,startDurationVital:function(t,e){return void 0===e&&(e={}),e_(n,t,e)},stopDurationVital:function(t,e){void 0===e&&(e={}),ew(r,n,t,e)}}}(T,tl,s),eQ=(E=t.applicationId,{get:function(t){var e=tv.findView(t),n=tm.findUrl(t),r=D.findTrackedSession(t);if(r&&e&&n){var o=t_.findActionId(t);return{application_id:E,session_id:r.id,user_action:o?{id:o}:void 0,view:{id:e.id,name:e.name,referrer:n.referrer,url:n.url}}}}});return{addAction:tw,addError:eX,addTiming:tR,addFeatureFlagEvaluation:N.addFeatureFlagEvaluation,startView:tO,setViewContext:tN,setViewContextProperty:tI,updateViewName:tP,lifeCycle:T,viewHistory:tv,session:D,stopSession:function(){return D.expire()},getInternalContext:eQ.get,startDurationVital:e$.startDurationVital,stopDurationVital:e$.stopDurationVital,addDurationVital:e$.addDurationVital,stop:function(){S.forEach(function(t){return t()})}}},function(t,e){if(ex()&&!eS("records")||!oI())return{start:tu,stop:tu,getReplayStats:function(){},onRumStart:tu,isRecording:function(){return!1},getSessionReplayLink:function(){}};var n={status:1},r=function(){n={status:1}},o=function(){n={status:0}},i=tu;return{start:function(t){return r(t)},stop:function(){return o()},getSessionReplayLink:function(){return i()},onRumStart:function(e,a,s,u,c){var l;a.startSessionReplayRecordingManually&&(n={status:0}),e.subscribe(8,function(){(2===n.status||3===n.status)&&(o(),n={status:1})}),e.subscribe(10,function(t){t.reason===ne.UNLOADING&&o()}),e.subscribe(9,function(){1===n.status&&r()}),r=function(r){var i=s.findTrackedSession();if(!i||0===i.sessionReplay&&(!r||!r.force)){n={status:1};return}2!==n.status&&3!==n.status&&(n={status:2},rS(a,"interactive",function(){if(2===n.status){var r=(!l&&(c||(c=oz(a,"Datadog Session Replay",function(){o()},void 0)),c&&(l=oM(a,c,1))),l);if(!r){n={status:0};return}n={status:3,stopRecording:t(e,a,s,u,r).stop}}}),r&&r.force&&0===i.sessionReplay&&s.setForcedReplay())},o=function(){0!==n.status&&(3===n.status&&n.stopRecording(),n={status:0})},i=function(){var t,e,r,o,i,c,l,d,f,p,v,h,m;return t=0!==n.status,v=e=s.findTrackedSession(),r=oI()?v?0===v.sessionReplay?"incorrect-session-plan":t?void 0:"replay-not-started":"rum-not-tracked":"browser-not-supported",i=(o={viewContext:u.findView(),errorType:r,session:e}).session,c=o.viewContext,l=o.errorType,d=i?i.id:"no-session-id",f=[],void 0!==l&&f.push("error-type=".concat(l)),c&&(f.push("seed=".concat(c.id)),f.push("from=".concat(c.startClocks.timeStamp))),h=a.site,m=a.subdomain||function(t){switch(t.site){case t$:case"datadoghq.eu":return"app";case tX:return"dd";default:return}}(a),p="https://".concat(m?"".concat(m,"."):"").concat(h),"".concat(p).concat("/rum/replay/sessions/".concat(d),"?").concat(f.join("&"))},1===n.status&&r()},isRecording:function(){return 3===oD.status&&3===n.status},getReplayStats:function(t){return 3===oD.status?null==R?void 0:R.get(t):void 0}}}(function(t,e,n,r,o,i){var a,s=[],u=i||rY(e,e.sessionReplayEndpointBuilder,6e4,function(e){t.notify(13,{error:e}),ed("Error reported to customer",{"error.message":e.message})});if(ex())a=(c=eE(),{addRecord:function(t){var e=r.findView();c.send("record",t,e.id)}}).addRecord;else{var c,l=function(t,e,n,r){var o={status:0,nextSegmentCreationReason:"init"},i=t.subscribe(2,function(){s("view_change")}).unsubscribe,a=t.subscribe(10,function(t){s(t.reason)}).unsubscribe;function s(t){1===o.status&&(o.segment.flush(function(e,r){var o,i,a,s,u=(o=r.output,i=r.rawBytesCount,(a=new FormData).append("segment",new Blob([o],{type:"application/octet-stream"}),"".concat(e.session.id,"-").concat(e.start)),s=JSON.stringify($({raw_segment_size:i,compressed_segment_size:o.byteLength},e)),a.append("event",new Blob([s],{type:"application/json"})),{data:a,bytesCount:o.byteLength});W(Y(ne),t)?n.sendOnExit(u):n.send(u)}),to(o.expirationTimeoutId)),o="stop"!==t?{status:0,nextSegmentCreationReason:t}:{status:2}}return{addRecord:function(t){if(2!==o.status){if(0===o.status){var n,i,a,u,c,l,d,f=e();if(!f)return;o={status:1,segment:(i=(n={encoder:r,context:f,creationReason:o.nextSegmentCreationReason}).context,a=n.creationReason,u=n.encoder,c=0,d=$({start:1/0,end:-1/0,creation_reason:a,records_count:0,has_full_snapshot:!1,index_in_view:r7(l=i.view.id).segments_count,source:"browser"},i),r7(l).segments_count+=1,{addRecord:function(t,e){d.start=Math.min(d.start,t.timestamp),d.end=Math.max(d.end,t.timestamp),d.records_count+=1,d.has_full_snapshot||(d.has_full_snapshot=t.type===oc.FullSnapshot);var n=u.isEmpty?'{"records":[':",";u.write(n+JSON.stringify(t),function(t){e(c+=t)})},flush:function(t){if(u.isEmpty)throw Error("Empty segment flushed");u.write("],".concat(JSON.stringify(d).slice(1),"\n")),u.finish(function(e){var n,r;n=d.view.id,r=e.rawBytesCount,r7(n).segments_total_raw_size+=r,t(d,e)})}}),expirationTimeoutId:tr(function(){s("segment_duration_limit")},5e3)}}o.segment.addRecord(t,function(t){t>6e4&&s("segment_bytes_limit")})}},stop:function(){s("stop"),i(),a()}}}(t,function(){return function(t,e,n){var r=e.findTrackedSession(),o=n.findView();if(r&&o)return{application:{id:t},session:{id:r.id},view:{id:o.id}}}(e.applicationId,n,r)},u,o);a=l.addRecord,s.push(l.stop)}var d=function(t){var e,n,r,o,i,a,s,u,c,l,d,f,p,v,h=t.emit,m=t.configuration,g=t.lifeCycle;if(!h)throw Error("emit function is required");var y=function(e){var n;h(e),ee("record",{record:e}),n=t.viewHistory.findView().id,r7(n).records_count+=1},b=(e=new WeakMap,{set:function(t,n){(t!==document||document.scrollingElement)&&e.set(t===document?document.scrollingElement:t,n)},get:function(t){return e.get(t)},has:function(t){return e.has(t)}}),_=oN(m,y,b),w=(n=E,(r=function(t){return t.forEach(function(t){return y(t)})})((o=function(t,e){void 0===t&&(t=t4()),void 0===e&&(e={status:0,elementsScrollPositions:b,shadowRootsController:_});var n=rU(),r=n.width,o=[{data:{height:n.height,href:window.location.href,width:r},type:oc.Meta,timestamp:t},{data:{has_focus:document.hasFocus()},type:oc.Focus,timestamp:t},{data:{node:ob(document,{serializationContext:e,parentNodePrivacyLevel:m.defaultPrivacyLevel,configuration:m}),initialOffset:{left:rF(),top:rD()}},type:oc.FullSnapshot,timestamp:t}];return window.visualViewport&&o.push({data:oT(window.visualViewport),type:oc.VisualViewport,timestamp:t}),o})()),{stop:g.subscribe(2,function(t){n(),r(o(t.startClocks.timeStamp,{shadowRootsController:_,status:1,elementsScrollPositions:b}))}).unsubscribe}).stop;function E(){_.flush(),x.flush()}var S=(i=new WeakMap,a=1,{getIdForEvent:function(t){return i.has(t)||i.set(t,a++),i.get(t)}}),x=oP(y,m,_,document),T=[x,(u=(s=ts(function(t){var e=oS(t);if(ot(e)){var n=oC(t);if(!n)return;var r={id:oe(e),timeOffset:0,x:n.x,y:n.y};y(ok(oE(t)?od.TouchMove:od.MouseMove,{positions:[r]}))}},50,{trailing:!1})).throttled,c=s.cancel,l=tC(m,document,["mousemove","touchmove"],u,{capture:!0,passive:!0}).stop,{stop:function(){l(),c()}}),tC(m,document,Object.keys(oA),function(t){var e,n=oS(t);if(nY(n,m.defaultPrivacyLevel)!==nG.HIDDEN&&ot(n)){var r=oe(n),o=oA[t.type];if(o!==of.Blur&&o!==of.Focus){var i=oC(t);if(!i)return;e={id:r,type:o,x:i.x,y:i.y}}else e={id:r,type:o};y($({id:S.getIdForEvent(t)},ok(od.MouseInteraction,e)))}},{capture:!0,passive:!0}),oR(m,y,b,document),(d=rz(m).subscribe(function(t){y(ok(od.ViewportResize,t))}),{stop:function(){d.unsubscribe()}}),oL(m,y),tC(m,document,["play","pause"],function(t){var e=oS(t);e&&nY(e,m.defaultPrivacyLevel)!==nG.HIDDEN&&ot(e)&&y(ok(od.MediaInteraction,{id:oe(e),type:"play"===t.type?op.Play:op.Pause}))},{capture:!0,passive:!0}),function(t){function e(t,e){t&&ot(t.ownerNode)&&e(oe(t.ownerNode))}var n=[eT(CSSStyleSheet.prototype,"insertRule",function(n){var r=n.target,o=n.parameters,i=o[0],a=o[1];e(r,function(e){return t(ok(od.StyleSheetRule,{id:e,adds:[{rule:i,index:a}]}))})}),eT(CSSStyleSheet.prototype,"deleteRule",function(n){var r=n.target,o=n.parameters[0];e(r,function(e){return t(ok(od.StyleSheetRule,{id:e,removes:[{index:o}]}))})})];function r(r){n.push(eT(r.prototype,"insertRule",function(n){var r=n.target,o=n.parameters,i=o[0],a=o[1];e(r.parentStyleSheet,function(e){var n=oO(r);n&&(n.push(a||0),t(ok(od.StyleSheetRule,{id:e,adds:[{rule:i,index:n}]})))})}),eT(r.prototype,"deleteRule",function(n){var r=n.target,o=n.parameters[0];e(r.parentStyleSheet,function(e){var n=oO(r);n&&(n.push(o),t(ok(od.StyleSheetRule,{id:e,removes:[{index:n}]})))})}))}return"undefined"!=typeof CSSGroupingRule?r(CSSGroupingRule):(r(CSSMediaRule),r(CSSSupportsRule)),{stop:function(){n.forEach(function(t){return t.stop()})}}}(y),tC(m,window,["focus","blur"],function(){y({data:{has_focus:document.hasFocus()},type:oc.Focus,timestamp:t4()})}),function(t,e){var n=window.visualViewport;if(!n)return{stop:tu};var r=ts(function(){e({data:oT(n),type:oc.VisualViewport,timestamp:t4()})},200,{trailing:!1}),o=r.throttled,i=r.cancel,a=tC(t,n,["resize","scroll"],o,{capture:!0,passive:!0}).stop;return{stop:function(){a(),i()}}}(m,y),(f=g.subscribe(11,function(t){var e,n;"action"===t.rawRumEvent.type&&"click"===t.rawRumEvent.action.type&&(null===(n=null===(e=t.rawRumEvent.action.frustration)||void 0===e?void 0:e.type)||void 0===n?void 0:n.length)&&"events"in t.domainContext&&t.domainContext.events&&t.domainContext.events.length&&y({timestamp:t.rawRumEvent.date,type:oc.FrustrationRecord,data:{frustrationTypes:t.rawRumEvent.action.frustration.type,recordIds:t.domainContext.events.map(function(t){return S.getIdForEvent(t)})}})}),{stop:function(){f.unsubscribe()}}),(p=function(t){E(),y(t)},v=g.subscribe(4,function(){p({timestamp:t4(),type:oc.ViewEnd})}),{stop:function(){v.unsubscribe()}})];return{stop:function(){_.stop(),T.forEach(function(t){return t.stop()}),w()},flushMutations:E,shadowRootsController:_}}({emit:a,configuration:e,lifeCycle:t,viewHistory:r}).stop;return s.push(d),{stop:function(){s.forEach(function(t){return t()})}}}),{startDeflateWorker:oz,createDeflateEncoder:oM});(s=(i=Q())[a="DD_RUM"])&&!s.q&&s.version&&M.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),i[a]=oV,s&&s.q&&s.q.forEach(function(t){return U(t,"onReady callback threw an error:")()})},64070:function(t,e,n){"use strict";n.d(e,{default:function(){return o.a}});var r=n(23842),o=n.n(r)},88146:function(t,e,n){"use strict";n.d(e,{default:function(){return o.a}});var r=n(16340),o=n.n(r)},23842:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i}});let r=n(11926);n(27573),n(7653);let o=r._(n(58379));function i(t,e){var n;let r={loading:t=>{let{error:e,isLoading:n,pastDelay:r}=t;return null}};"function"==typeof t&&(r.loader=t);let i={...r,...e};return(0,o.default)({...i,modules:null==(n=i.loadableGenerated)?void 0:n.modules})}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},42972:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"BailoutToCSR",{enumerable:!0,get:function(){return o}});let r=n(20951);function o(t){let{reason:e,children:n}=t;if("undefined"==typeof window)throw new r.BailoutToCSRError(e);return n}},58379:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return c}});let r=n(27573),o=n(7653),i=n(42972),a=n(69111);function s(t){return{default:t&&"default"in t?t.default:t}}let u={loader:()=>Promise.resolve(s(()=>null)),loading:null,ssr:!0},c=function(t){let e={...u,...t},n=(0,o.lazy)(()=>e.loader().then(s)),c=e.loading;function l(t){let s=c?(0,r.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,u=e.ssr?(0,r.jsxs)(r.Fragment,{children:["undefined"==typeof window?(0,r.jsx)(a.PreloadCss,{moduleIds:e.modules}):null,(0,r.jsx)(n,{...t})]}):(0,r.jsx)(i.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(n,{...t})});return(0,r.jsx)(o.Suspense,{fallback:s,children:u})}return l.displayName="LoadableComponent",l}},69111:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"PreloadCss",{enumerable:!0,get:function(){return i}});let r=n(27573),o=n(92399);function i(t){let{moduleIds:e}=t;if("undefined"!=typeof window)return null;let n=(0,o.getExpectedRequestStore)("next/dynamic css"),i=[];if(n.reactLoadableManifest&&e){let t=n.reactLoadableManifest;for(let n of e){if(!t[n])continue;let e=t[n].files.filter(t=>t.endsWith(".css"));i.push(...e)}}return 0===i.length?null:(0,r.jsx)(r.Fragment,{children:i.map(t=>(0,r.jsx)("link",{precedence:"dynamic",rel:"stylesheet",href:n.assetPrefix+"/_next/"+encodeURI(t),as:"style"},t))})}},68319:function(t,e,n){"use strict";n.d(e,{V8:function(){return r}});class r{constructor(){this._dataLength=0,this._bufferLength=0,this._state=new Int32Array(4),this._buffer=new ArrayBuffer(68),this._buffer8=new Uint8Array(this._buffer,0,68),this._buffer32=new Uint32Array(this._buffer,0,17),this.start()}static hashStr(t,e=!1){return this.onePassHasher.start().appendStr(t).end(e)}static hashAsciiStr(t,e=!1){return this.onePassHasher.start().appendAsciiStr(t).end(e)}static _hex(t){let e,n,o,i;let a=r.hexChars,s=r.hexOut;for(i=0;i<4;i+=1)for(o=0,n=8*i,e=t[i];o<8;o+=2)s[n+1+o]=a.charAt(15&e),e>>>=4,s[n+0+o]=a.charAt(15&e),e>>>=4;return s.join("")}static _md5cycle(t,e){let n=t[0],r=t[1],o=t[2],i=t[3];n+=(r&o|~r&i)+e[0]-680876936|0,i+=((n=(n<<7|n>>>25)+r|0)&r|~n&o)+e[1]-389564586|0,o+=((i=(i<<12|i>>>20)+n|0)&n|~i&r)+e[2]+606105819|0,r+=((o=(o<<17|o>>>15)+i|0)&i|~o&n)+e[3]-1044525330|0,n+=((r=(r<<22|r>>>10)+o|0)&o|~r&i)+e[4]-176418897|0,i+=((n=(n<<7|n>>>25)+r|0)&r|~n&o)+e[5]+1200080426|0,o+=((i=(i<<12|i>>>20)+n|0)&n|~i&r)+e[6]-1473231341|0,r+=((o=(o<<17|o>>>15)+i|0)&i|~o&n)+e[7]-45705983|0,n+=((r=(r<<22|r>>>10)+o|0)&o|~r&i)+e[8]+1770035416|0,i+=((n=(n<<7|n>>>25)+r|0)&r|~n&o)+e[9]-1958414417|0,o+=((i=(i<<12|i>>>20)+n|0)&n|~i&r)+e[10]-42063|0,r+=((o=(o<<17|o>>>15)+i|0)&i|~o&n)+e[11]-1990404162|0,n+=((r=(r<<22|r>>>10)+o|0)&o|~r&i)+e[12]+1804603682|0,i+=((n=(n<<7|n>>>25)+r|0)&r|~n&o)+e[13]-40341101|0,o+=((i=(i<<12|i>>>20)+n|0)&n|~i&r)+e[14]-1502002290|0,r+=((o=(o<<17|o>>>15)+i|0)&i|~o&n)+e[15]+1236535329|0,n+=((r=(r<<22|r>>>10)+o|0)&i|o&~i)+e[1]-165796510|0,i+=((n=(n<<5|n>>>27)+r|0)&o|r&~o)+e[6]-1069501632|0,o+=((i=(i<<9|i>>>23)+n|0)&r|n&~r)+e[11]+643717713|0,r+=((o=(o<<14|o>>>18)+i|0)&n|i&~n)+e[0]-373897302|0,n+=((r=(r<<20|r>>>12)+o|0)&i|o&~i)+e[5]-701558691|0,i+=((n=(n<<5|n>>>27)+r|0)&o|r&~o)+e[10]+38016083|0,o+=((i=(i<<9|i>>>23)+n|0)&r|n&~r)+e[15]-660478335|0,r+=((o=(o<<14|o>>>18)+i|0)&n|i&~n)+e[4]-405537848|0,n+=((r=(r<<20|r>>>12)+o|0)&i|o&~i)+e[9]+568446438|0,i+=((n=(n<<5|n>>>27)+r|0)&o|r&~o)+e[14]-1019803690|0,o+=((i=(i<<9|i>>>23)+n|0)&r|n&~r)+e[3]-187363961|0,r+=((o=(o<<14|o>>>18)+i|0)&n|i&~n)+e[8]+1163531501|0,n+=((r=(r<<20|r>>>12)+o|0)&i|o&~i)+e[13]-1444681467|0,i+=((n=(n<<5|n>>>27)+r|0)&o|r&~o)+e[2]-51403784|0,o+=((i=(i<<9|i>>>23)+n|0)&r|n&~r)+e[7]+1735328473|0,r+=((o=(o<<14|o>>>18)+i|0)&n|i&~n)+e[12]-1926607734|0,n+=((r=(r<<20|r>>>12)+o|0)^o^i)+e[5]-378558|0,i+=((n=(n<<4|n>>>28)+r|0)^r^o)+e[8]-2022574463|0,o+=((i=(i<<11|i>>>21)+n|0)^n^r)+e[11]+1839030562|0,r+=((o=(o<<16|o>>>16)+i|0)^i^n)+e[14]-35309556|0,n+=((r=(r<<23|r>>>9)+o|0)^o^i)+e[1]-1530992060|0,i+=((n=(n<<4|n>>>28)+r|0)^r^o)+e[4]+1272893353|0,o+=((i=(i<<11|i>>>21)+n|0)^n^r)+e[7]-155497632|0,r+=((o=(o<<16|o>>>16)+i|0)^i^n)+e[10]-1094730640|0,n+=((r=(r<<23|r>>>9)+o|0)^o^i)+e[13]+681279174|0,i+=((n=(n<<4|n>>>28)+r|0)^r^o)+e[0]-358537222|0,o+=((i=(i<<11|i>>>21)+n|0)^n^r)+e[3]-722521979|0,r+=((o=(o<<16|o>>>16)+i|0)^i^n)+e[6]+76029189|0,n+=((r=(r<<23|r>>>9)+o|0)^o^i)+e[9]-640364487|0,i+=((n=(n<<4|n>>>28)+r|0)^r^o)+e[12]-421815835|0,o+=((i=(i<<11|i>>>21)+n|0)^n^r)+e[15]+530742520|0,r+=((o=(o<<16|o>>>16)+i|0)^i^n)+e[2]-995338651|0,r=(r<<23|r>>>9)+o|0,n+=(o^(r|~i))+e[0]-198630844|0,n=(n<<6|n>>>26)+r|0,i+=(r^(n|~o))+e[7]+1126891415|0,i=(i<<10|i>>>22)+n|0,o+=(n^(i|~r))+e[14]-1416354905|0,o=(o<<15|o>>>17)+i|0,r+=(i^(o|~n))+e[5]-57434055|0,r=(r<<21|r>>>11)+o|0,n+=(o^(r|~i))+e[12]+1700485571|0,n=(n<<6|n>>>26)+r|0,i+=(r^(n|~o))+e[3]-1894986606|0,i=(i<<10|i>>>22)+n|0,o+=(n^(i|~r))+e[10]-1051523|0,o=(o<<15|o>>>17)+i|0,r+=(i^(o|~n))+e[1]-2054922799|0,r=(r<<21|r>>>11)+o|0,n+=(o^(r|~i))+e[8]+1873313359|0,n=(n<<6|n>>>26)+r|0,i+=(r^(n|~o))+e[15]-30611744|0,i=(i<<10|i>>>22)+n|0,o+=(n^(i|~r))+e[6]-1560198380|0,o=(o<<15|o>>>17)+i|0,r+=(i^(o|~n))+e[13]+1309151649|0,r=(r<<21|r>>>11)+o|0,n+=(o^(r|~i))+e[4]-145523070|0,n=(n<<6|n>>>26)+r|0,i+=(r^(n|~o))+e[11]-1120210379|0,i=(i<<10|i>>>22)+n|0,o+=(n^(i|~r))+e[2]+718787259|0,o=(o<<15|o>>>17)+i|0,r+=(i^(o|~n))+e[9]-343485551|0,r=(r<<21|r>>>11)+o|0,t[0]=n+t[0]|0,t[1]=r+t[1]|0,t[2]=o+t[2]|0,t[3]=i+t[3]|0}start(){return this._dataLength=0,this._bufferLength=0,this._state.set(r.stateIdentity),this}appendStr(t){let e,n;let o=this._buffer8,i=this._buffer32,a=this._bufferLength;for(n=0;n<t.length;n+=1){if((e=t.charCodeAt(n))<128)o[a++]=e;else if(e<2048)o[a++]=(e>>>6)+192,o[a++]=63&e|128;else if(e<55296||e>56319)o[a++]=(e>>>12)+224,o[a++]=e>>>6&63|128,o[a++]=63&e|128;else{if((e=(e-55296)*1024+(t.charCodeAt(++n)-56320)+65536)>1114111)throw Error("Unicode standard supports code points up to U+10FFFF");o[a++]=(e>>>18)+240,o[a++]=e>>>12&63|128,o[a++]=e>>>6&63|128,o[a++]=63&e|128}a>=64&&(this._dataLength+=64,r._md5cycle(this._state,i),a-=64,i[0]=i[16])}return this._bufferLength=a,this}appendAsciiStr(t){let e;let n=this._buffer8,o=this._buffer32,i=this._bufferLength,a=0;for(;;){for(e=Math.min(t.length-a,64-i);e--;)n[i++]=t.charCodeAt(a++);if(i<64)break;this._dataLength+=64,r._md5cycle(this._state,o),i=0}return this._bufferLength=i,this}appendByteArray(t){let e;let n=this._buffer8,o=this._buffer32,i=this._bufferLength,a=0;for(;;){for(e=Math.min(t.length-a,64-i);e--;)n[i++]=t[a++];if(i<64)break;this._dataLength+=64,r._md5cycle(this._state,o),i=0}return this._bufferLength=i,this}getState(){let t=this._state;return{buffer:String.fromCharCode.apply(null,Array.from(this._buffer8)),buflen:this._bufferLength,length:this._dataLength,state:[t[0],t[1],t[2],t[3]]}}setState(t){let e;let n=t.buffer,r=t.state,o=this._state;for(e=0,this._dataLength=t.length,this._bufferLength=t.buflen,o[0]=r[0],o[1]=r[1],o[2]=r[2],o[3]=r[3];e<n.length;e+=1)this._buffer8[e]=n.charCodeAt(e)}end(t=!1){let e=this._bufferLength,n=this._buffer8,o=this._buffer32,i=(e>>2)+1;this._dataLength+=e;let a=8*this._dataLength;if(n[e]=128,n[e+1]=n[e+2]=n[e+3]=0,o.set(r.buffer32Identity.subarray(i),i),e>55&&(r._md5cycle(this._state,o),o.set(r.buffer32Identity)),a<=4294967295)o[14]=a;else{let t=a.toString(16).match(/(.*?)(.{0,8})$/);if(null===t)return;let e=parseInt(t[2],16),n=parseInt(t[1],16)||0;o[14]=e,o[15]=n}return r._md5cycle(this._state,o),t?this._state:r._hex(this._state)}}if(r.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]),r.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),r.hexChars="0123456789abcdef",r.hexOut=[],r.onePassHasher=new r,"5d41402abc4b2a76b9719d911017c592"!==r.hashStr("hello"))throw Error("Md5 self test failed.")},69413:function(t){t.exports={style:{fontFamily:"'__Lato_de8755', '__Lato_Fallback_de8755'",fontStyle:"normal"},className:"__className_de8755",variable:"__variable_de8755"}},69827:function(t){t.exports={style:{fontFamily:"'__Merriweather_ddd55e', '__Merriweather_Fallback_ddd55e'",fontStyle:"normal"},className:"__className_ddd55e",variable:"__variable_ddd55e"}},66150:function(t,e,n){"use strict";n.d(e,{Me:function(){return E},oo:function(){return A},US:function(){return S},RR:function(){return k},cv:function(){return x},uY:function(){return T},dp:function(){return C}});var r=n(17204);function o(t,e,n){let o,{reference:i,floating:a}=t,s=(0,r.Qq)(e),u=(0,r.Wh)(e),c=(0,r.I4)(u),l=(0,r.k3)(e),d="y"===s,f=i.x+i.width/2-a.width/2,p=i.y+i.height/2-a.height/2,v=i[c]/2-a[c]/2;switch(l){case"top":o={x:f,y:i.y-a.height};break;case"bottom":o={x:f,y:i.y+i.height};break;case"right":o={x:i.x+i.width,y:p};break;case"left":o={x:i.x-a.width,y:p};break;default:o={x:i.x,y:i.y}}switch((0,r.hp)(e)){case"start":o[u]-=v*(n&&d?-1:1);break;case"end":o[u]+=v*(n&&d?-1:1)}return o}let i=async(t,e,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:s}=n,u=a.filter(Boolean),c=await (null==s.isRTL?void 0:s.isRTL(e)),l=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:f}=o(l,r,c),p=r,v={},h=0;for(let n=0;n<u.length;n++){let{name:a,fn:m}=u[n],{x:g,y:y,data:b,reset:_}=await m({x:d,y:f,initialPlacement:r,placement:p,strategy:i,middlewareData:v,rects:l,platform:s,elements:{reference:t,floating:e}});d=null!=g?g:d,f=null!=y?y:f,v={...v,[a]:{...v[a],...b}},_&&h<=50&&(h++,"object"==typeof _&&(_.placement&&(p=_.placement),_.rects&&(l=!0===_.rects?await s.getElementRects({reference:t,floating:e,strategy:i}):_.rects),{x:d,y:f}=o(l,p,c)),n=-1)}return{x:d,y:f,placement:p,strategy:i,middlewareData:v}};async function a(t,e){var n;void 0===e&&(e={});let{x:o,y:i,platform:a,rects:s,elements:u,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:v=0}=(0,r.ku)(e,t),h=(0,r.yd)(v),m=u[p?"floating"===f?"reference":"floating":f],g=(0,r.JB)(await a.getClippingRect({element:null==(n=await (null==a.isElement?void 0:a.isElement(m)))||n?m:m.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(u.floating)),boundary:l,rootBoundary:d,strategy:c})),y="floating"===f?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,b=await (null==a.getOffsetParent?void 0:a.getOffsetParent(u.floating)),_=await (null==a.isElement?void 0:a.isElement(b))&&await (null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},w=(0,r.JB)(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:y,offsetParent:b,strategy:c}):y);return{top:(g.top-w.top+h.top)/_.y,bottom:(w.bottom-g.bottom+h.bottom)/_.y,left:(g.left-w.left+h.left)/_.x,right:(w.right-g.right+h.right)/_.x}}async function s(t,e){let{placement:n,platform:o,elements:i}=t,a=await (null==o.isRTL?void 0:o.isRTL(i.floating)),s=(0,r.k3)(n),u=(0,r.hp)(n),c="y"===(0,r.Qq)(n),l=["left","top"].includes(s)?-1:1,d=a&&c?-1:1,f=(0,r.ku)(e,t),{mainAxis:p,crossAxis:v,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return u&&"number"==typeof h&&(v="end"===u?-1*h:h),c?{x:v*d,y:p*l}:{x:p*l,y:v*d}}var u=n(37552);function c(t){let e=(0,u.Dx)(t),n=parseFloat(e.width)||0,o=parseFloat(e.height)||0,i=(0,u.Re)(t),a=i?t.offsetWidth:n,s=i?t.offsetHeight:o,c=(0,r.NM)(n)!==a||(0,r.NM)(o)!==s;return c&&(n=a,o=s),{width:n,height:o,$:c}}function l(t){return(0,u.kK)(t)?t:t.contextElement}function d(t){let e=l(t);if(!(0,u.Re)(e))return(0,r.ze)(1);let n=e.getBoundingClientRect(),{width:o,height:i,$:a}=c(e),s=(a?(0,r.NM)(n.width):n.width)/o,d=(a?(0,r.NM)(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),d&&Number.isFinite(d)||(d=1),{x:s,y:d}}let f=(0,r.ze)(0);function p(t){let e=(0,u.Jj)(t);return(0,u.Pf)()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:f}function v(t,e,n,o){var i;void 0===e&&(e=!1),void 0===n&&(n=!1);let a=t.getBoundingClientRect(),s=l(t),c=(0,r.ze)(1);e&&(o?(0,u.kK)(o)&&(c=d(o)):c=d(t));let f=(void 0===(i=n)&&(i=!1),o&&(!i||o===(0,u.Jj)(s))&&i)?p(s):(0,r.ze)(0),v=(a.left+f.x)/c.x,h=(a.top+f.y)/c.y,m=a.width/c.x,g=a.height/c.y;if(s){let t=(0,u.Jj)(s),e=o&&(0,u.kK)(o)?(0,u.Jj)(o):o,n=t,r=(0,u.wK)(n);for(;r&&o&&e!==n;){let t=d(r),e=r.getBoundingClientRect(),o=(0,u.Dx)(r),i=e.left+(r.clientLeft+parseFloat(o.paddingLeft))*t.x,a=e.top+(r.clientTop+parseFloat(o.paddingTop))*t.y;v*=t.x,h*=t.y,m*=t.x,g*=t.y,v+=i,h+=a,n=(0,u.Jj)(r),r=(0,u.wK)(n)}}return(0,r.JB)({width:m,height:g,x:v,y:h})}function h(t,e){let n=(0,u.Lw)(t).scrollLeft;return e?e.left+n:v((0,u.tF)(t)).left+n}function m(t,e,n){let o;if("viewport"===e)o=function(t,e){let n=(0,u.Jj)(t),r=(0,u.tF)(t),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;let t=(0,u.Pf)();(!t||t&&"fixed"===e)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s,y:c}}(t,n);else if("document"===e)o=function(t){let e=(0,u.tF)(t),n=(0,u.Lw)(t),o=t.ownerDocument.body,i=(0,r.Fp)(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=(0,r.Fp)(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),s=-n.scrollLeft+h(t),c=-n.scrollTop;return"rtl"===(0,u.Dx)(o).direction&&(s+=(0,r.Fp)(e.clientWidth,o.clientWidth)-i),{width:i,height:a,x:s,y:c}}((0,u.tF)(t));else if((0,u.kK)(e))o=function(t,e){let n=v(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,a=(0,u.Re)(t)?d(t):(0,r.ze)(1),s=t.clientWidth*a.x;return{width:s,height:t.clientHeight*a.y,x:i*a.x,y:o*a.y}}(e,n);else{let n=p(t);o={...e,x:e.x-n.x,y:e.y-n.y}}return(0,r.JB)(o)}function g(t){return"static"===(0,u.Dx)(t).position}function y(t,e){if(!(0,u.Re)(t)||"fixed"===(0,u.Dx)(t).position)return null;if(e)return e(t);let n=t.offsetParent;return(0,u.tF)(t)===n&&(n=n.ownerDocument.body),n}function b(t,e){let n=(0,u.Jj)(t);if((0,u.tR)(t))return n;if(!(0,u.Re)(t)){let e=(0,u.Ow)(t);for(;e&&!(0,u.Py)(e);){if((0,u.kK)(e)&&!g(e))return e;e=(0,u.Ow)(e)}return n}let r=y(t,e);for(;r&&(0,u.Ze)(r)&&g(r);)r=y(r,e);return r&&(0,u.Py)(r)&&g(r)&&!(0,u.hT)(r)?n:r||(0,u.gQ)(t)||n}let _=async function(t){let e=this.getOffsetParent||b,n=this.getDimensions,o=await n(t.floating);return{reference:function(t,e,n){let o=(0,u.Re)(e),i=(0,u.tF)(e),a="fixed"===n,s=v(t,!0,a,e),c={scrollLeft:0,scrollTop:0},l=(0,r.ze)(0);if(o||!o&&!a){if(("body"!==(0,u.wk)(e)||(0,u.ao)(i))&&(c=(0,u.Lw)(e)),o){let t=v(e,!0,a,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else i&&(l.x=h(i))}let d=0,f=0;if(i&&!o&&!a){let t=i.getBoundingClientRect();f=t.top+c.scrollTop,d=t.left+c.scrollLeft-h(i,t)}return{x:s.left+c.scrollLeft-l.x-d,y:s.top+c.scrollTop-l.y-f,width:s.width,height:s.height}}(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},w={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t,a="fixed"===i,s=(0,u.tF)(o),c=!!e&&(0,u.tR)(e.floating);if(o===s||c&&a)return n;let l={scrollLeft:0,scrollTop:0},f=(0,r.ze)(1),p=(0,r.ze)(0),h=(0,u.Re)(o);if((h||!h&&!a)&&(("body"!==(0,u.wk)(o)||(0,u.ao)(s))&&(l=(0,u.Lw)(o)),(0,u.Re)(o))){let t=v(o);f=d(o),p.x=t.x+o.clientLeft,p.y=t.y+o.clientTop}return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-l.scrollLeft*f.x+p.x,y:n.y*f.y-l.scrollTop*f.y+p.y}},getDocumentElement:u.tF,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t,a=[..."clippingAncestors"===n?(0,u.tR)(e)?[]:function(t,e){let n=e.get(t);if(n)return n;let r=(0,u.Kx)(t,[],!1).filter(t=>(0,u.kK)(t)&&"body"!==(0,u.wk)(t)),o=null,i="fixed"===(0,u.Dx)(t).position,a=i?(0,u.Ow)(t):t;for(;(0,u.kK)(a)&&!(0,u.Py)(a);){let e=(0,u.Dx)(a),n=(0,u.hT)(a);n||"fixed"!==e.position||(o=null),(i?!n&&!o:!n&&"static"===e.position&&!!o&&["absolute","fixed"].includes(o.position)||(0,u.ao)(a)&&!n&&function t(e,n){let r=(0,u.Ow)(e);return!(r===n||!(0,u.kK)(r)||(0,u.Py)(r))&&("fixed"===(0,u.Dx)(r).position||t(r,n))}(t,a))?r=r.filter(t=>t!==a):o=e,a=(0,u.Ow)(a)}return e.set(t,r),r}(e,this._c):[].concat(n),o],s=a[0],c=a.reduce((t,n)=>{let o=m(e,n,i);return t.top=(0,r.Fp)(o.top,t.top),t.right=(0,r.VV)(o.right,t.right),t.bottom=(0,r.VV)(o.bottom,t.bottom),t.left=(0,r.Fp)(o.left,t.left),t},m(e,s,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:b,getElementRects:_,getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){let{width:e,height:n}=c(t);return{width:e,height:n}},getScale:d,isElement:u.kK,isRTL:function(t){return"rtl"===(0,u.Dx)(t).direction}};function E(t,e,n,o){let i;void 0===o&&(o={});let{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:f=!1}=o,p=l(t),h=a||s?[...p?(0,u.Kx)(p):[],...(0,u.Kx)(e)]:[];h.forEach(t=>{a&&t.addEventListener("scroll",n,{passive:!0}),s&&t.addEventListener("resize",n)});let m=p&&d?function(t,e){let n,o=null,i=(0,u.tF)(t);function a(){var t;clearTimeout(n),null==(t=o)||t.disconnect(),o=null}return!function s(u,c){void 0===u&&(u=!1),void 0===c&&(c=1),a();let{left:l,top:d,width:f,height:p}=t.getBoundingClientRect();if(u||e(),!f||!p)return;let v=(0,r.GW)(d),h=(0,r.GW)(i.clientWidth-(l+f)),m={rootMargin:-v+"px "+-h+"px "+-(0,r.GW)(i.clientHeight-(d+p))+"px "+-(0,r.GW)(l)+"px",threshold:(0,r.Fp)(0,(0,r.VV)(1,c))||1},g=!0;function y(t){let e=t[0].intersectionRatio;if(e!==c){if(!g)return s();e?s(!1,e):n=setTimeout(()=>{s(!1,1e-7)},1e3)}g=!1}try{o=new IntersectionObserver(y,{...m,root:i.ownerDocument})}catch(t){o=new IntersectionObserver(y,m)}o.observe(t)}(!0),a}(p,n):null,g=-1,y=null;c&&(y=new ResizeObserver(t=>{let[r]=t;r&&r.target===p&&y&&(y.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var t;null==(t=y)||t.observe(e)})),n()}),p&&!f&&y.observe(p),y.observe(e));let b=f?v(t):null;return f&&function e(){let r=v(t);b&&(r.x!==b.x||r.y!==b.y||r.width!==b.width||r.height!==b.height)&&n(),b=r,i=requestAnimationFrame(e)}(),n(),()=>{var t;h.forEach(t=>{a&&t.removeEventListener("scroll",n),s&&t.removeEventListener("resize",n)}),null==m||m(),null==(t=y)||t.disconnect(),y=null,f&&cancelAnimationFrame(i)}}let S=a,x=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,r;let{x:o,y:i,placement:a,middlewareData:u}=e,c=await s(e,t);return a===(null==(n=u.offset)?void 0:n.placement)&&null!=(r=u.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}},T=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:o,placement:i}=e,{mainAxis:s=!0,crossAxis:u=!1,limiter:c={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=(0,r.ku)(t,e),d={x:n,y:o},f=await a(e,l),p=(0,r.Qq)((0,r.k3)(i)),v=(0,r.Rn)(p),h=d[v],m=d[p];if(s){let t="y"===v?"top":"left",e="y"===v?"bottom":"right",n=h+f[t],o=h-f[e];h=(0,r.uZ)(n,h,o)}if(u){let t="y"===p?"top":"left",e="y"===p?"bottom":"right",n=m+f[t],o=m-f[e];m=(0,r.uZ)(n,m,o)}let g=c.fn({...e,[v]:h,[p]:m});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[v]:s,[p]:u}}}}}},k=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o,i,s,u;let{placement:c,middlewareData:l,rects:d,initialPlacement:f,platform:p,elements:v}=e,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:_=!0,...w}=(0,r.ku)(t,e);if(null!=(n=l.arrow)&&n.alignmentOffset)return{};let E=(0,r.k3)(c),S=(0,r.Qq)(f),x=(0,r.k3)(f)===f,T=await (null==p.isRTL?void 0:p.isRTL(v.floating)),k=g||(x||!_?[(0,r.pw)(f)]:(0,r.gy)(f)),C="none"!==b;!g&&C&&k.push(...(0,r.KX)(f,_,b,T));let A=[f,...k],R=await a(e,w),O=[],L=(null==(o=l.flip)?void 0:o.overflows)||[];if(h&&O.push(R[E]),m){let t=(0,r.i8)(c,d,T);O.push(R[t[0]],R[t[1]])}if(L=[...L,{placement:c,overflows:O}],!O.every(t=>t<=0)){let t=((null==(i=l.flip)?void 0:i.index)||0)+1,e=A[t];if(e)return{data:{index:t,overflows:L},reset:{placement:e}};let n=null==(s=L.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:s.placement;if(!n)switch(y){case"bestFit":{let t=null==(u=L.filter(t=>{if(C){let e=(0,r.Qq)(t.placement);return e===S||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:u[0];t&&(n=t);break}case"initialPlacement":n=f}if(c!==n)return{reset:{placement:n}}}return{}}}},C=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var n,o;let i,s;let{placement:u,rects:c,platform:l,elements:d}=e,{apply:f=()=>{},...p}=(0,r.ku)(t,e),v=await a(e,p),h=(0,r.k3)(u),m=(0,r.hp)(u),g="y"===(0,r.Qq)(u),{width:y,height:b}=c.floating;"top"===h||"bottom"===h?(i=h,s=m===(await (null==l.isRTL?void 0:l.isRTL(d.floating))?"start":"end")?"left":"right"):(s=h,i="end"===m?"top":"bottom");let _=b-v.top-v.bottom,w=y-v.left-v.right,E=(0,r.VV)(b-v[i],_),S=(0,r.VV)(y-v[s],w),x=!e.middlewareData.shift,T=E,k=S;if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(k=w),null!=(o=e.middlewareData.shift)&&o.enabled.y&&(T=_),x&&!m){let t=(0,r.Fp)(v.left,0),e=(0,r.Fp)(v.right,0),n=(0,r.Fp)(v.top,0),o=(0,r.Fp)(v.bottom,0);g?k=y-2*(0!==t||0!==e?t+e:(0,r.Fp)(v.left,v.right)):T=b-2*(0!==n||0!==o?n+o:(0,r.Fp)(v.top,v.bottom))}await f({...e,availableWidth:k,availableHeight:T});let C=await l.getDimensions(d.floating);return y!==C.width||b!==C.height?{reset:{rects:!0}}:{}}}},A=(t,e,n)=>{let r=new Map,o={platform:w,...n},a={...o.platform,_c:r};return i(t,e,{...o,platform:a})}},24019:function(t,e,n){"use strict";n.d(e,{RR:function(){return v},YF:function(){return d},cv:function(){return f},dp:function(){return h},uY:function(){return p}});var r=n(66150),o=n(7653),i=n(3458),a="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function s(t,e){let n,r,o;if(t===e)return!0;if(typeof t!=typeof e)return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;if(t&&e&&"object"==typeof t){if(Array.isArray(t)){if((n=t.length)!==e.length)return!1;for(r=n;0!=r--;)if(!s(t[r],e[r]))return!1;return!0}if((n=(o=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(e,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!t.$$typeof)&&!s(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}function u(t){return"undefined"==typeof window?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function c(t,e){let n=u(t);return Math.round(e*n)/n}function l(t){let e=o.useRef(t);return a(()=>{e.current=t}),e}function d(t){void 0===t&&(t={});let{placement:e="bottom",strategy:n="absolute",middleware:d=[],platform:f,elements:{reference:p,floating:v}={},transform:h=!0,whileElementsMounted:m,open:g}=t,[y,b]=o.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[_,w]=o.useState(d);s(_,d)||w(d);let[E,S]=o.useState(null),[x,T]=o.useState(null),k=o.useCallback(t=>{t!==O.current&&(O.current=t,S(t))},[]),C=o.useCallback(t=>{t!==L.current&&(L.current=t,T(t))},[]),A=p||E,R=v||x,O=o.useRef(null),L=o.useRef(null),P=o.useRef(y),N=null!=m,I=l(m),M=l(f),F=l(g),D=o.useCallback(()=>{if(!O.current||!L.current)return;let t={placement:e,strategy:n,middleware:_};M.current&&(t.platform=M.current),(0,r.oo)(O.current,L.current,t).then(t=>{let e={...t,isPositioned:!1!==F.current};z.current&&!s(P.current,e)&&(P.current=e,i.flushSync(()=>{b(e)}))})},[_,e,n,M,F]);a(()=>{!1===g&&P.current.isPositioned&&(P.current.isPositioned=!1,b(t=>({...t,isPositioned:!1})))},[g]);let z=o.useRef(!1);a(()=>(z.current=!0,()=>{z.current=!1}),[]),a(()=>{if(A&&(O.current=A),R&&(L.current=R),A&&R){if(I.current)return I.current(A,R,D);D()}},[A,R,D,I,N]);let U=o.useMemo(()=>({reference:O,floating:L,setReference:k,setFloating:C}),[k,C]),V=o.useMemo(()=>({reference:A,floating:R}),[A,R]),B=o.useMemo(()=>{let t={position:n,left:0,top:0};if(!V.floating)return t;let e=c(V.floating,y.x),r=c(V.floating,y.y);return h?{...t,transform:"translate("+e+"px, "+r+"px)",...u(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:e,top:r}},[n,h,V.floating,y.x,y.y]);return o.useMemo(()=>({...y,update:D,refs:U,elements:V,floatingStyles:B}),[y,D,U,V,B])}let f=(t,e)=>({...(0,r.cv)(t),options:[t,e]}),p=(t,e)=>({...(0,r.uY)(t),options:[t,e]}),v=(t,e)=>({...(0,r.RR)(t),options:[t,e]}),h=(t,e)=>({...(0,r.dp)(t),options:[t,e]})},90660:function(t,e,n){"use strict";function r(){let t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t.brands.map(t=>{let{brand:e,version:n}=t;return e+"/"+n}).join(" "):navigator.userAgent}n.d(e,{ij:function(){return r}})},37552:function(t,e,n){"use strict";function r(){return"undefined"!=typeof window}function o(t){return s(t)?(t.nodeName||"").toLowerCase():"#document"}function i(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function a(t){var e;return null==(e=(s(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function s(t){return!!r()&&(t instanceof Node||t instanceof i(t).Node)}function u(t){return!!r()&&(t instanceof Element||t instanceof i(t).Element)}function c(t){return!!r()&&(t instanceof HTMLElement||t instanceof i(t).HTMLElement)}function l(t){return!!r()&&"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof i(t).ShadowRoot)}function d(t){let{overflow:e,overflowX:n,overflowY:r,display:o}=y(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(o)}function f(t){return["table","td","th"].includes(o(t))}function p(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch(t){return!1}})}function v(t){let e=m(),n=u(t)?y(t):t;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(t=>(n.willChange||"").includes(t))||["paint","layout","strict","content"].some(t=>(n.contain||"").includes(t))}function h(t){let e=_(t);for(;c(e)&&!g(e);){if(v(e))return e;if(p(e))break;e=_(e)}return null}function m(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function g(t){return["html","body","#document"].includes(o(t))}function y(t){return i(t).getComputedStyle(t)}function b(t){return u(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function _(t){if("html"===o(t))return t;let e=t.assignedSlot||t.parentNode||l(t)&&t.host||a(t);return l(e)?e.host:e}function w(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}n.d(e,{Dx:function(){return y},Jj:function(){return i},Kx:function(){return function t(e,n,r){var o;void 0===n&&(n=[]),void 0===r&&(r=!0);let a=function t(e){let n=_(e);return g(n)?e.ownerDocument?e.ownerDocument.body:e.body:c(n)&&d(n)?n:t(n)}(e),s=a===(null==(o=e.ownerDocument)?void 0:o.body),u=i(a);if(s){let e=w(u);return n.concat(u,u.visualViewport||[],d(a)?a:[],e&&r?t(e):[])}return n.concat(a,t(a,[],r))}},Lw:function(){return b},Ow:function(){return _},Pf:function(){return m},Py:function(){return g},Re:function(){return c},Ze:function(){return f},ao:function(){return d},gQ:function(){return h},hT:function(){return v},kK:function(){return u},tF:function(){return a},tR:function(){return p},wK:function(){return w},wk:function(){return o}})},17204:function(t,e,n){"use strict";n.d(e,{Fp:function(){return o},GW:function(){return a},I4:function(){return h},JB:function(){return x},KX:function(){return w},NM:function(){return i},Qq:function(){return m},Rn:function(){return v},VV:function(){return r},Wh:function(){return g},gy:function(){return b},hp:function(){return p},i8:function(){return y},k3:function(){return f},ku:function(){return d},pw:function(){return E},uZ:function(){return l},yd:function(){return S},ze:function(){return s}});let r=Math.min,o=Math.max,i=Math.round,a=Math.floor,s=t=>({x:t,y:t}),u={left:"right",right:"left",bottom:"top",top:"bottom"},c={start:"end",end:"start"};function l(t,e,n){return o(t,r(e,n))}function d(t,e){return"function"==typeof t?t(e):t}function f(t){return t.split("-")[0]}function p(t){return t.split("-")[1]}function v(t){return"x"===t?"y":"x"}function h(t){return"y"===t?"height":"width"}function m(t){return["top","bottom"].includes(f(t))?"y":"x"}function g(t){return v(m(t))}function y(t,e,n){void 0===n&&(n=!1);let r=p(t),o=g(t),i=h(o),a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[i]>e.floating[i]&&(a=E(a)),[a,E(a)]}function b(t){let e=E(t);return[_(t),e,_(e)]}function _(t){return t.replace(/start|end/g,t=>c[t])}function w(t,e,n,r){let o=p(t),i=function(t,e,n){let r=["left","right"],o=["right","left"];switch(t){case"top":case"bottom":if(n)return e?o:r;return e?r:o;case"left":case"right":return e?["top","bottom"]:["bottom","top"];default:return[]}}(f(t),"start"===n,r);return o&&(i=i.map(t=>t+"-"+o),e&&(i=i.concat(i.map(_)))),i}function E(t){return t.replace(/left|right|bottom|top/g,t=>u[t])}function S(t){return"number"!=typeof t?{top:0,right:0,bottom:0,left:0,...t}:{top:t,right:t,bottom:t,left:t}}function x(t){let{x:e,y:n,width:r,height:o}=t;return{width:r,height:o,top:n,left:e,right:e+r,bottom:n+o,x:e,y:n}}},66358:function(t,e,n){"use strict";let r,o,i;n.d(e,{Vq:function(){return to},EM:function(){return tr}});var a=n(7653),s=n(85831),u=n(6742),c=n(4193),l=n(62125),d=n(28177),f=n(36441),p=n(11513);let v=new Map,h=new Map;function m(t){var e;let n=null!=(e=h.get(t))?e:0;return h.set(t,n+1),0!==n||(v.set(t,{"aria-hidden":t.getAttribute("aria-hidden"),inert:t.inert}),t.setAttribute("aria-hidden","true"),t.inert=!0),()=>(function(t){var e;let n=null!=(e=h.get(t))?e:1;if(1===n?h.delete(t):h.set(t,n-1),1!==n)return;let r=v.get(t);r&&(null===r["aria-hidden"]?t.removeAttribute("aria-hidden"):t.setAttribute("aria-hidden",r["aria-hidden"]),t.inert=r.inert,v.delete(t))})(t)}var g=n(15913),y=n(88909),b=n(74277),_=n(70332),w=n(41824),E=n(12357),S=n(91335),x=n(37182),T=n(32586),k=n(88205),C=n(87295),A=n(8840);let R=(0,a.createContext)(void 0),O=(0,a.createContext)(null);O.displayName="DescriptionContext";let L=Object.assign((0,A.yV)(function(t,e){let n=(0,a.useId)(),r=(0,a.useContext)(R),{id:o="headlessui-description-".concat(n),...i}=t,s=function t(){let e=(0,a.useContext)(O);if(null===e){let e=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,t),e}return e}(),u=(0,S.T)(e);(0,p.e)(()=>s.register(o),[o,s.register]);let c=r||!1,l=(0,a.useMemo)(()=>({...s.slot,disabled:c}),[s.slot,c]),d={ref:u,...s.props,id:o};return(0,A.L6)()({ourProps:d,theirProps:i,slot:l,defaultTag:"p",name:s.name||"Description"})}),{});var P=n(31240),N=n(86031),I=n(96938),M=n(29094);function F(t,e){let n=(0,a.useRef)([]),r=(0,l.z)(t);(0,a.useEffect)(()=>{let t=[...n.current];for(let[o,i]of e.entries())if(n.current[o]!==i){let o=r(e,t);return n.current=e,o}},[r,...e])}var D=n(62308),z=n(26959);let U=[];!function(t){function e(){"loading"!==document.readyState&&(t(),document.removeEventListener("DOMContentLoaded",e))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",e),e())}(()=>{function t(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||U[0]===t.target)return;let e=t.target;e=e.closest(z.y),U.unshift(null!=e?e:t.target),(U=U.filter(t=>null!=t&&t.isConnected)).splice(10)}window.addEventListener("click",t,{capture:!0}),window.addEventListener("mousedown",t,{capture:!0}),window.addEventListener("focus",t,{capture:!0}),document.body.addEventListener("click",t,{capture:!0}),document.body.addEventListener("mousedown",t,{capture:!0}),document.body.addEventListener("focus",t,{capture:!0})});var V=n(51327);function B(t){if(!t)return new Set;if("function"==typeof t)return new Set(t());let e=new Set;for(let n of t.current)n.current instanceof HTMLElement&&e.add(n.current);return e}var H=((r=H||{})[r.None=0]="None",r[r.InitialFocus=1]="InitialFocus",r[r.TabLock=2]="TabLock",r[r.FocusLock=4]="FocusLock",r[r.RestoreFocus=8]="RestoreFocus",r[r.AutoFocus=16]="AutoFocus",r);let j=Object.assign((0,A.yV)(function(t,e){let n=(0,a.useRef)(null),r=(0,S.T)(n,e),{initialFocus:o,initialFocusFallback:i,containers:s,features:d=15,...f}=t;(0,E.H)()||(d=0);let p=(0,b.i)(n);!function(t,e){let{ownerDocument:n}=e,r=!!(8&t),o=function(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],e=(0,a.useRef)(U.slice());return F((t,n)=>{let[r]=t,[o]=n;!0===o&&!1===r&&(0,V.Y)(()=>{e.current.splice(0)}),!1===o&&!0===r&&(e.current=U.slice())},[t,U,e]),(0,l.z)(()=>{var t;return null!=(t=e.current.find(t=>null!=t&&t.isConnected))?t:null})}(r);F(()=>{r||(null==n?void 0:n.activeElement)===(null==n?void 0:n.body)&&(0,z.C5)(o())},[r]),(0,I.L)(()=>{r&&(0,z.C5)(o())})}(d,{ownerDocument:p});let v=function(t,e){let{ownerDocument:n,container:r,initialFocus:o,initialFocusFallback:i}=e,s=(0,a.useRef)(null),u=(0,c.g)(!!(1&t),"focus-trap#initial-focus"),l=(0,N.t)();return F(()=>{if(0===t)return;if(!u){null!=i&&i.current&&(0,z.C5)(i.current);return}let e=r.current;e&&(0,V.Y)(()=>{if(!l.current)return;let r=null==n?void 0:n.activeElement;if(null!=o&&o.current){if((null==o?void 0:o.current)===r){s.current=r;return}}else if(e.contains(r)){s.current=r;return}if(null!=o&&o.current)(0,z.C5)(o.current);else{if(16&t){if((0,z.jA)(e,z.TO.First|z.TO.AutoFocus)!==z.fE.Error)return}else if((0,z.jA)(e,z.TO.First)!==z.fE.Error)return;if(null!=i&&i.current&&((0,z.C5)(i.current),(null==n?void 0:n.activeElement)===i.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}s.current=null==n?void 0:n.activeElement})},[i,u,t]),s}(d,{ownerDocument:p,container:n,initialFocus:o,initialFocusFallback:i});!function(t,e){let{ownerDocument:n,container:r,containers:o,previousActiveElement:i}=e,a=(0,N.t)(),s=!!(4&t);(0,u.O)(null==n?void 0:n.defaultView,"focus",t=>{if(!s||!a.current)return;let e=B(o);r.current instanceof HTMLElement&&e.add(r.current);let n=i.current;if(!n)return;let u=t.target;u&&u instanceof HTMLElement?q(e,u)?(i.current=u,(0,z.C5)(u)):(t.preventDefault(),t.stopPropagation(),(0,z.C5)(n)):(0,z.C5)(i.current)},!0)}(d,{ownerDocument:p,container:n,containers:s,previousActiveElement:v});let h=(0,M.l)(),m=(0,l.z)(t=>{let e=n.current;e&&(0,C.E)(h.current,{[M.N.Forwards]:()=>{(0,z.jA)(e,z.TO.First,{skipElements:[t.relatedTarget,i]})},[M.N.Backwards]:()=>{(0,z.jA)(e,z.TO.Last,{skipElements:[t.relatedTarget,i]})}})}),g=(0,c.g)(!!(2&d),"focus-trap#tab-lock"),y=(0,P.G)(),_=(0,a.useRef)(!1),w=(0,A.L6)();return a.createElement(a.Fragment,null,g&&a.createElement(D._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:D.x.Focusable}),w({ourProps:{ref:r,onKeyDown(t){"Tab"==t.key&&(_.current=!0,y.requestAnimationFrame(()=>{_.current=!1}))},onBlur(t){if(!(4&d))return;let e=B(s);n.current instanceof HTMLElement&&e.add(n.current);let r=t.relatedTarget;r instanceof HTMLElement&&"true"!==r.dataset.headlessuiFocusGuard&&(q(e,r)||(_.current?(0,z.jA)(n.current,(0,C.E)(h.current,{[M.N.Forwards]:()=>z.TO.Next,[M.N.Backwards]:()=>z.TO.Previous})|z.TO.WrapAround,{relativeTo:t.target}):t.target instanceof HTMLElement&&(0,z.C5)(t.target)))}},theirProps:f,defaultTag:"div",name:"FocusTrap"}),g&&a.createElement(D._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:D.x.Focusable}))}),{features:H});function q(t,e){for(let n of t)if(n.contains(e))return!0;return!1}var G=n(97831),W=n(46934),Z=((o=Z||{})[o.Open=0]="Open",o[o.Closed=1]="Closed",o),K=((i=K||{})[i.SetTitleId=0]="SetTitleId",i);let Y={0:(t,e)=>t.titleId===e.id?t:{...t,titleId:e.id}},J=(0,a.createContext)(null);function X(t){let e=(0,a.useContext)(J);if(null===e){let e=Error("<".concat(t," /> is missing a parent <Dialog /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(e,X),e}return e}function $(t,e){return(0,C.E)(e.type,Y,t,e)}J.displayName="DialogContext";let Q=(0,A.yV)(function(t,e){let n=(0,a.useId)(),{id:r="headlessui-dialog-".concat(n),open:o,onClose:i,initialFocus:v,role:h="dialog",autoFocus:C=!0,__demoMode:R=!1,unmount:L=!1,...P}=t,N=(0,a.useRef)(!1);h="dialog"===h||"alertdialog"===h?h:(N.current||(N.current=!0,console.warn("Invalid role [".concat(h,"] passed to <Dialog />. Only `dialog` and and `alertdialog` are supported. Using `dialog` instead."))),"dialog");let I=(0,T.oJ)();void 0===o&&null!==I&&(o=(I&T.ZM.Open)===T.ZM.Open);let M=(0,a.useRef)(null),F=(0,S.T)(M,e),D=(0,b.i)(M),z=o?0:1,[U,V]=(0,a.useReducer)($,{titleId:null,descriptionId:null,panelRef:(0,a.createRef)()}),B=(0,l.z)(()=>i(!1)),q=(0,l.z)(t=>V({type:0,id:t})),W=!!(0,E.H)()&&0===z,[Z,K]=(0,G.kF)(),Y=(0,_.H1)(),{resolveContainers:X}=(0,_.vs)({mainTreeNode:Y,portals:Z,defaultContainers:[{get current(){var Q;return null!=(Q=U.panelRef.current)?Q:M.current}}]}),tn=null!==I&&(I&T.ZM.Closing)===T.ZM.Closing;(function(t){let{allowed:e,disallowed:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,c.g)(t,"inert-others");(0,p.e)(()=>{var t,o;if(!r)return;let i=(0,d.k)();for(let e of null!=(t=null==n?void 0:n())?t:[])e&&i.add(m(e));let a=null!=(o=null==e?void 0:e())?o:[];for(let t of a){if(!t)continue;let e=(0,f.r)(t);if(!e)continue;let n=t.parentElement;for(;n&&n!==e.body;){for(let t of n.children)a.some(e=>t.contains(e))||i.add(m(t));n=n.parentElement}}return i.dispose},[r,e,n])})(!R&&!tn&&W,{allowed:(0,l.z)(()=>{var t,e;return[null!=(e=null==(t=M.current)?void 0:t.closest("[data-headlessui-portal]"))?e:null]}),disallowed:(0,l.z)(()=>{var t;return[null!=(t=null==Y?void 0:Y.closest("body > *:not(#headlessui-portal-root)"))?t:null]})}),(0,y.O)(W,X,t=>{t.preventDefault(),B()}),function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"undefined"!=typeof document?document.defaultView:null,n=arguments.length>2?arguments[2]:void 0,r=(0,c.g)(t,"escape");(0,u.O)(e,"keydown",t=>{r&&(t.defaultPrevented||t.key===s.R.Escape&&n(t))})}(W,null==D?void 0:D.defaultView,t=>{t.preventDefault(),t.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur(),B()}),(0,w.P)(!R&&!tn&&W,D,X),(0,g.m)(W,M,B);let[tr,to]=function(){let[t,e]=(0,a.useState)([]);return[t.length>0?t.join(" "):void 0,(0,a.useMemo)(()=>function(t){let n=(0,l.z)(t=>(e(e=>[...e,t]),()=>e(e=>{let n=e.slice(),r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}))),r=(0,a.useMemo)(()=>({register:n,slot:t.slot,name:t.name,props:t.props,value:t.value}),[n,t.slot,t.name,t.props,t.value]);return a.createElement(O.Provider,{value:r},t.children)},[e])]}(),ti=(0,a.useMemo)(()=>[{dialogState:z,close:B,setTitleId:q,unmount:L},U],[z,U,B,q,L]),ta=(0,a.useMemo)(()=>({open:0===z}),[z]),ts={ref:F,id:r,role:h,tabIndex:-1,"aria-modal":R?void 0:0===z||void 0,"aria-labelledby":U.titleId,"aria-describedby":tr,unmount:L},tu=!function(){var t;let[e]=(0,a.useState)(()=>"undefined"!=typeof window&&"function"==typeof window.matchMedia?window.matchMedia("(pointer: coarse)"):null),[n,r]=(0,a.useState)(null!=(t=null==e?void 0:e.matches)&&t);return(0,p.e)(()=>{if(e)return e.addEventListener("change",t),()=>e.removeEventListener("change",t);function t(t){r(t.matches)}},[e]),n}(),tc=H.None;W&&!R&&(tc|=H.RestoreFocus,tc|=H.TabLock,C&&(tc|=H.AutoFocus),tu&&(tc|=H.InitialFocus));let tl=(0,A.L6)();return a.createElement(T.uu,null,a.createElement(k.O,{force:!0},a.createElement(G.h_,null,a.createElement(J.Provider,{value:ti},a.createElement(G.wA,{target:M},a.createElement(k.O,{force:!1},a.createElement(to,{slot:ta},a.createElement(K,null,a.createElement(j,{initialFocus:v,initialFocusFallback:M,containers:X,features:tc},a.createElement(x.Z,{value:B},tl({ourProps:ts,theirProps:P,slot:ta,defaultTag:tt,features:te,visible:0===z,name:"Dialog"})))))))))))}),tt="div",te=A.VN.RenderStrategy|A.VN.Static,tn=(0,A.yV)(function(t,e){let{transition:n=!1,open:r,...o}=t,i=(0,T.oJ)(),s=t.hasOwnProperty("open")||null!==i,u=t.hasOwnProperty("onClose");if(!s&&!u)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!s)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!u)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!i&&"boolean"!=typeof t.open)throw Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: ".concat(t.open));if("function"!=typeof t.onClose)throw Error("You provided an `onClose` prop to the `Dialog`, but the value is not a function. Received: ".concat(t.onClose));return(void 0!==r||n)&&!o.static?a.createElement(_.Jl,null,a.createElement(W.u,{show:r,transition:n,unmount:o.unmount},a.createElement(Q,{ref:e,...o}))):a.createElement(_.Jl,null,a.createElement(Q,{ref:e,open:r,...o}))}),tr=(0,A.yV)(function(t,e){let n=(0,a.useId)(),{id:r="headlessui-dialog-panel-".concat(n),transition:o=!1,...i}=t,[{dialogState:s,unmount:u},c]=X("Dialog.Panel"),d=(0,S.T)(e,c.panelRef),f=(0,a.useMemo)(()=>({open:0===s}),[s]),p=(0,l.z)(t=>{t.stopPropagation()}),v=o?W.x:a.Fragment,h=(0,A.L6)();return a.createElement(v,{...o?{unmount:u}:{}},h({ourProps:{ref:d,id:r,onClick:p},theirProps:i,slot:f,defaultTag:"div",name:"Dialog.Panel"}))}),to=Object.assign(tn,{Panel:tr,Title:((0,A.yV)(function(t,e){let{transition:n=!1,...r}=t,[{dialogState:o,unmount:i}]=X("Dialog.Backdrop"),s=(0,a.useMemo)(()=>({open:0===o}),[o]),u=n?W.x:a.Fragment,c=(0,A.L6)();return a.createElement(u,{...n?{unmount:i}:{}},c({ourProps:{ref:e,"aria-hidden":!0},theirProps:r,slot:s,defaultTag:"div",name:"Dialog.Backdrop"}))}),(0,A.yV)(function(t,e){let n=(0,a.useId)(),{id:r="headlessui-dialog-title-".concat(n),...o}=t,[{dialogState:i,setTitleId:s}]=X("Dialog.Title"),u=(0,S.T)(e);(0,a.useEffect)(()=>(s(r),()=>s(null)),[r,s]);let c=(0,a.useMemo)(()=>({open:0===i}),[i]);return(0,A.L6)()({ourProps:{ref:u,id:r},theirProps:o,slot:c,defaultTag:"h2",name:"Dialog.Title"})})),Description:L})},85831:function(t,e,n){"use strict";let r;n.d(e,{R:function(){return o}});var o=((r=o||{}).Space=" ",r.Enter="Enter",r.Escape="Escape",r.Backspace="Backspace",r.Delete="Delete",r.ArrowLeft="ArrowLeft",r.ArrowUp="ArrowUp",r.ArrowRight="ArrowRight",r.ArrowDown="ArrowDown",r.Home="Home",r.End="End",r.PageUp="PageUp",r.PageDown="PageDown",r.Tab="Tab",r)},95756:function(t,e,n){"use strict";let r,o;function i(t){var e;return"undefined"!=typeof window&&null!=window.navigator&&((null===(e=window.navigator.userAgentData)||void 0===e?void 0:e.brands.some(e=>t.test(e.brand)))||t.test(window.navigator.userAgent))}function a(t){var e;return"undefined"!=typeof window&&null!=window.navigator&&t.test((null===(e=window.navigator.userAgentData)||void 0===e?void 0:e.platform)||window.navigator.platform)}function s(t){let e=null;return()=>(null==e&&(e=t()),e)}n.d(e,{J2:function(){return tD},O7:function(){return tN},Hi:function(){return tF}});let u=s(function(){return a(/^Mac/i)}),c=s(function(){return a(/^iPhone/i)}),l=s(function(){return a(/^iPad/i)||u()&&navigator.maxTouchPoints>1}),d=s(function(){return c()||l()});s(function(){return u()||d()}),s(function(){return i(/AppleWebKit/i)&&!f()});let f=s(function(){return i(/Chrome/i)}),p=s(function(){return i(/Android/i)});s(function(){return i(/Firefox/i)});let v=t=>{var e;return null!==(e=null==t?void 0:t.ownerDocument)&&void 0!==e?e:document},h=t=>t&&"window"in t&&t.window===t?t:v(t).defaultView||window;var m=n(7653);let g=null,y=new Set,b=new Map,_=!1,w=!1,E={Tab:!0,Escape:!0};function S(t,e){for(let n of y)n(t,e)}function x(t){_=!0,t.metaKey||!u()&&t.altKey||t.ctrlKey||"Control"===t.key||"Shift"===t.key||"Meta"===t.key||(g="keyboard",S("keyboard",t))}function T(t){g="pointer",("mousedown"===t.type||"pointerdown"===t.type)&&(_=!0,S("pointer",t))}function k(t){(0===t.mozInputSource&&t.isTrusted||(p()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(_=!0,g="virtual")}function C(t){t.target!==window&&t.target!==document&&(_||w||(g="virtual",S("virtual",t)),_=!1,w=!1)}function A(){_=!1,w=!0}function R(t){if("undefined"==typeof window||b.get(h(t)))return;let e=h(t),n=v(t),r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){_=!0,r.apply(this,arguments)},n.addEventListener("keydown",x,!0),n.addEventListener("keyup",x,!0),n.addEventListener("click",k,!0),e.addEventListener("focus",C,!0),e.addEventListener("blur",A,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",T,!0),n.addEventListener("pointermove",T,!0),n.addEventListener("pointerup",T,!0)):(n.addEventListener("mousedown",T,!0),n.addEventListener("mousemove",T,!0),n.addEventListener("mouseup",T,!0)),e.addEventListener("beforeunload",()=>{O(t)},{once:!0}),b.set(e,{focus:r})}let O=(t,e)=>{let n=h(t),r=v(t);e&&r.removeEventListener("DOMContentLoaded",e),b.has(n)&&(n.HTMLElement.prototype.focus=b.get(n).focus,r.removeEventListener("keydown",x,!0),r.removeEventListener("keyup",x,!0),r.removeEventListener("click",k,!0),n.removeEventListener("focus",C,!0),n.removeEventListener("blur",A,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",T,!0),r.removeEventListener("pointermove",T,!0),r.removeEventListener("pointerup",T,!0)):(r.removeEventListener("mousedown",T,!0),r.removeEventListener("mousemove",T,!0),r.removeEventListener("mouseup",T,!0)),b.delete(n))};function L(){return"pointer"!==g}"undefined"!=typeof document&&function(t){let e;let n=v(void 0);"loading"!==n.readyState?R(void 0):(e=()=>{R(void 0)},n.addEventListener("DOMContentLoaded",e)),()=>O(t,e)}();let P=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),N="undefined"!=typeof document?m.useLayoutEffect:()=>{};class I{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,e){this.nativeEvent=e,this.target=e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget,this.bubbles=e.bubbles,this.cancelable=e.cancelable,this.defaultPrevented=e.defaultPrevented,this.eventPhase=e.eventPhase,this.isTrusted=e.isTrusted,this.timeStamp=e.timeStamp,this.type=t}}function M(t){let e=(0,m.useRef)({isFocused:!1,observer:null});N(()=>{let t=e.current;return()=>{t.observer&&(t.observer.disconnect(),t.observer=null)}},[]);let n=function(t){let e=(0,m.useRef)(null);return N(()=>{e.current=t},[t]),(0,m.useCallback)((...t)=>{let n=e.current;return null==n?void 0:n(...t)},[])}(e=>{null==t||t(e)});return(0,m.useCallback)(t=>{if(t.target instanceof HTMLButtonElement||t.target instanceof HTMLInputElement||t.target instanceof HTMLTextAreaElement||t.target instanceof HTMLSelectElement){e.current.isFocused=!0;let r=t.target;r.addEventListener("focusout",t=>{e.current.isFocused=!1,r.disabled&&n(new I("blur",t)),e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)},{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&r.disabled){var t;null===(t=e.current.observer)||void 0===t||t.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}}),e.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let F=!1,D=0;function z(){F=!0,setTimeout(()=>{F=!1},50)}function U(t){"touch"===t.pointerType&&z()}function V(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",U):document.addEventListener("touchend",z),D++,()=>{--D>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",U):document.removeEventListener("touchend",z))}}var B=n(36441),H=n(31240),j=n(62125),q=n(11513),G=n(6742),W=n(65960),Z=n(15913),K=n(88909),Y=n(74277),J=n(70332),X=n(41824),$=n(91335),Q=n(29094),tt=n(27291),te=n(37182),tn=n(60810),tr=n(24019),to=n(66150);let ti=(0,m.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});ti.displayName="FloatingContext";let ta=(0,m.createContext)(null);function ts(t){var e,n,r;let o,i,a,{children:s,enabled:u=!0}=t,[c,l]=(0,m.useState)(null),[d,f]=(0,m.useState)(0),p=(0,m.useRef)(null),[v,h]=(0,m.useState)(null);(0,q.e)(()=>{if(!v)return;let t=new MutationObserver(()=>{let t=window.getComputedStyle(v).maxHeight,e=parseFloat(t);if(isNaN(e))return;let n=parseInt(t);isNaN(n)||e!==n&&(v.style.maxHeight="".concat(Math.ceil(e),"px"))});return t.observe(v,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[v]);let g=u&&null!==c&&null!==v,{to:y="bottom",gap:b=0,offset:_=0,padding:w=0,inner:E}=(o=tu(null!=(e=null==c?void 0:c.gap)?e:"var(--anchor-gap, 0)",v),i=tu(null!=(n=null==c?void 0:c.offset)?n:"var(--anchor-offset, 0)",v),a=tu(null!=(r=null==c?void 0:c.padding)?r:"var(--anchor-padding, 0)",v),{...c,gap:o,offset:i,padding:a}),[S,x="center"]=y.split(" ");(0,q.e)(()=>{g&&f(0)},[g]);let{refs:T,floatingStyles:k,context:C}=(0,tn.YF)({open:g,placement:"selection"===S?"center"===x?"bottom":"bottom-".concat(x):"center"===x?"".concat(S):"".concat(S,"-").concat(x),strategy:"absolute",transform:!1,middleware:[(0,tr.cv)({mainAxis:"selection"===S?0:b,crossAxis:_}),(0,tr.uY)({padding:w}),"selection"!==S&&(0,tr.RR)({padding:w}),"selection"===S&&E?(0,tn.aN)({...E,padding:w,overflowRef:p,offset:d,minItemsVisible:4,referenceOverflowThreshold:w,onFallbackChange(t){var e,n;if(!t)return;let r=C.elements.floating;if(!r)return;let o=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,i=Math.min(4,r.childElementCount),a=0,s=0;for(let t of null!=(n=null==(e=C.elements.floating)?void 0:e.childNodes)?n:[])if(t instanceof HTMLElement){let e=t.offsetTop,n=e+t.clientHeight+o,u=r.scrollTop,c=u+r.clientHeight;if(e>=u&&n<=c)i--;else{s=Math.max(0,Math.min(n,c)-Math.max(e,u)),a=t.clientHeight;break}}i>=1&&f(t=>{let e=a*i-s+o;return t>=e?t:e})}}):null,(0,tr.dp)({padding:w,apply(t){let{availableWidth:e,availableHeight:n,elements:r}=t;Object.assign(r.floating.style,{overflow:"auto",maxWidth:"".concat(e,"px"),maxHeight:"min(var(--anchor-max-height, 100vh), ".concat(n,"px)")})}})].filter(Boolean),whileElementsMounted:to.Me}),[A=S,R=x]=C.placement.split("-");"selection"===S&&(A="selection");let O=(0,m.useMemo)(()=>({anchor:[A,R].filter(Boolean).join(" ")}),[A,R]),L=(0,tn.Rz)(C,{overflowRef:p,onChange:f}),{getReferenceProps:P,getFloatingProps:N}=(0,tn.NI)([L]),I=(0,j.z)(t=>{h(t),T.setFloating(t)});return m.createElement(ta.Provider,{value:l},m.createElement(ti.Provider,{value:{setFloating:I,setReference:T.setReference,styles:k,getReferenceProps:P,getFloatingProps:N,slot:O}},s))}function tu(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=(0,H.G)(),o=(0,j.z)((t,e)=>{if(null==t)return[n,null];if("number"==typeof t)return[t,null];if("string"==typeof t){if(!e)return[n,null];let o=tc(t,e);return[o,n=>{let i=function t(e){let n=/var\((.*)\)/.exec(e);if(n){let e=n[1].indexOf(",");if(-1===e)return[n[1]];let r=n[1].slice(0,e).trim(),o=n[1].slice(e+1).trim();return o?[r,...t(o)]:[r]}return[]}(t);{let a=i.map(t=>window.getComputedStyle(e).getPropertyValue(t));r.requestAnimationFrame(function s(){r.nextFrame(s);let u=!1;for(let[t,n]of i.entries()){let r=window.getComputedStyle(e).getPropertyValue(n);if(a[t]!==r){a[t]=r,u=!0;break}}if(!u)return;let c=tc(t,e);o!==c&&(n(c),o=c)})}return r.dispose}]}return[n,null]}),i=(0,m.useMemo)(()=>o(t,e)[0],[t,e]),[a=i,s]=(0,m.useState)();return(0,q.e)(()=>{let[n,r]=o(t,e);if(s(n),r)return r(s)},[t,e]),a}function tc(t,e){let n=document.createElement("div");e.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",t,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return e.removeChild(n),r}ta.displayName="PlacementContext";var tl=n(62308),td=n(32586);function tf(t){let e=t.parentElement,n=null;for(;e&&!(e instanceof HTMLFieldSetElement);)e instanceof HTMLLegendElement&&(n=e),e=e.parentElement;let r=(null==e?void 0:e.getAttribute("disabled"))==="";return!(r&&function(t){if(!t)return!1;let e=t.previousElementSibling;for(;null!==e;){if(e instanceof HTMLLegendElement)return!1;e=e.previousElementSibling}return!0}(n))&&r}var tp=n(26959),tv=n(87295),th=n(8840),tm=n(85831),tg=n(97831),ty=((r=ty||{})[r.Open=0]="Open",r[r.Closed=1]="Closed",r),tb=((o=tb||{})[o.TogglePopover=0]="TogglePopover",o[o.ClosePopover=1]="ClosePopover",o[o.SetButton=2]="SetButton",o[o.SetButtonId=3]="SetButtonId",o[o.SetPanel=4]="SetPanel",o[o.SetPanelId=5]="SetPanelId",o);let t_={0:t=>({...t,popoverState:(0,tv.E)(t.popoverState,{0:1,1:0}),__demoMode:!1}),1:t=>1===t.popoverState?t:{...t,popoverState:1,__demoMode:!1},2:(t,e)=>t.button===e.button?t:{...t,button:e.button},3:(t,e)=>t.buttonId===e.buttonId?t:{...t,buttonId:e.buttonId},4:(t,e)=>t.panel===e.panel?t:{...t,panel:e.panel},5:(t,e)=>t.panelId===e.panelId?t:{...t,panelId:e.panelId}},tw=(0,m.createContext)(null);function tE(t){let e=(0,m.useContext)(tw);if(null===e){let e=Error("<".concat(t," /> is missing a parent <Popover /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(e,tE),e}return e}tw.displayName="PopoverContext";let tS=(0,m.createContext)(null);function tx(t){let e=(0,m.useContext)(tS);if(null===e){let e=Error("<".concat(t," /> is missing a parent <Popover /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(e,tx),e}return e}tS.displayName="PopoverAPIContext";let tT=(0,m.createContext)(null);function tk(){return(0,m.useContext)(tT)}tT.displayName="PopoverGroupContext";let tC=(0,m.createContext)(null);function tA(t,e){return(0,tv.E)(e.type,t_,t,e)}tC.displayName="PopoverPanelContext";let tR=th.VN.RenderStrategy|th.VN.Static;function tO(t,e){let n=(0,m.useId)(),{id:r="headlessui-popover-backdrop-".concat(n),transition:o=!1,...i}=t,[{popoverState:a},s]=tE("Popover.Backdrop"),[u,c]=(0,m.useState)(null),l=(0,$.T)(e,c),d=(0,td.oJ)(),[f,p]=(0,tt.Y)(o,u,null!==d?(d&td.ZM.Open)===td.ZM.Open:0===a),v=(0,j.z)(t=>{if(tf(t.currentTarget))return t.preventDefault();s({type:1})}),h=(0,m.useMemo)(()=>({open:0===a}),[a]),g={ref:l,id:r,"aria-hidden":!0,onClick:v,...(0,tt.X)(p)};return(0,th.L6)()({ourProps:g,theirProps:i,slot:h,defaultTag:"div",features:tR,visible:f,name:"Popover.Backdrop"})}let tL=th.VN.RenderStrategy|th.VN.Static,tP=(0,th.yV)(function(t,e){var n;let{__demoMode:r=!1,...o}=t,i=(0,m.useRef)(null),a=(0,$.T)(e,(0,$.h)(t=>{i.current=t})),s=(0,m.useRef)([]),u=(0,m.useReducer)(tA,{__demoMode:r,popoverState:r?0:1,buttons:s,button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:(0,m.createRef)(),afterPanelSentinel:(0,m.createRef)(),afterButtonSentinel:(0,m.createRef)()}),[{popoverState:c,button:l,buttonId:d,panel:f,panelId:p,beforePanelSentinel:v,afterPanelSentinel:h,afterButtonSentinel:g},y]=u,b=(0,Y.i)(null!=(n=i.current)?n:l),_=(0,m.useMemo)(()=>{if(!l||!f)return!1;for(let t of document.querySelectorAll("body > *"))if(Number(null==t?void 0:t.contains(l))^Number(null==t?void 0:t.contains(f)))return!0;let t=(0,tp.GO)(),e=t.indexOf(l),n=(e+t.length-1)%t.length,r=(e+1)%t.length,o=t[n],i=t[r];return!f.contains(o)&&!f.contains(i)},[l,f]),w=(0,W.E)(d),E=(0,W.E)(p),S=(0,m.useMemo)(()=>({buttonId:w,panelId:E,close:()=>y({type:1})}),[w,E,y]),x=tk(),T=null==x?void 0:x.registerPopover,k=(0,j.z)(()=>{var t;return null!=(t=null==x?void 0:x.isFocusWithinPopoverGroup())?t:(null==b?void 0:b.activeElement)&&((null==l?void 0:l.contains(b.activeElement))||(null==f?void 0:f.contains(b.activeElement)))});(0,m.useEffect)(()=>null==T?void 0:T(S),[T,S]);let[C,A]=(0,tg.kF)(),R=(0,J.H1)(l),O=(0,J.vs)({mainTreeNode:R,portals:C,defaultContainers:[l,f]});(0,G.O)(null==b?void 0:b.defaultView,"focus",t=>{var e,n,r,o,i,a;t.target!==window&&t.target instanceof HTMLElement&&0===c&&(k()||l&&f&&(O.contains(t.target)||null!=(n=null==(e=v.current)?void 0:e.contains)&&n.call(e,t.target)||null!=(o=null==(r=h.current)?void 0:r.contains)&&o.call(r,t.target)||null!=(a=null==(i=g.current)?void 0:i.contains)&&a.call(i,t.target)||y({type:1})))},!0),(0,K.O)(0===c,O.resolveContainers,(t,e)=>{y({type:1}),(0,tp.sP)(e,tp.tJ.Loose)||(t.preventDefault(),null==l||l.focus())});let L=(0,j.z)(t=>{y({type:1});let e=t?t instanceof HTMLElement?t:"current"in t&&t.current instanceof HTMLElement?t.current:l:l;null==e||e.focus()}),P=(0,m.useMemo)(()=>({close:L,isPortalled:_}),[L,_]),N=(0,m.useMemo)(()=>({open:0===c,close:L}),[c,L]),I=(0,th.L6)();return m.createElement(J.Jl,{node:R},m.createElement(ts,null,m.createElement(tC.Provider,{value:null},m.createElement(tw.Provider,{value:u},m.createElement(tS.Provider,{value:P},m.createElement(te.Z,{value:L},m.createElement(td.up,{value:(0,tv.E)(c,{0:td.ZM.Open,1:td.ZM.Closed})},m.createElement(A,null,I({ourProps:{ref:a},theirProps:o,slot:N,defaultTag:"div",name:"Popover"})))))))))}),tN=(0,th.yV)(function(t,e){var n;let r=(0,m.useId)(),{id:o="headlessui-popover-button-".concat(r),disabled:i=!1,autoFocus:a=!1,...s}=t,[u,c]=tE("Popover.Button"),{isPortalled:l}=tx("Popover.Button"),d=(0,m.useRef)(null),f="headlessui-focus-sentinel-".concat((0,m.useId)()),p=tk(),g=null==p?void 0:p.closeOthers,b=null!==(0,m.useContext)(tC);(0,m.useEffect)(()=>{if(!b)return c({type:3,buttonId:o}),()=>{c({type:3,buttonId:null})}},[b,o,c]);let[_]=(0,m.useState)(()=>Symbol()),w=(0,$.T)(d,e,(0,m.useContext)(ti).setReference,(0,j.z)(t=>{if(!b){if(t)u.buttons.current.push(_);else{let t=u.buttons.current.indexOf(_);-1!==t&&u.buttons.current.splice(t,1)}u.buttons.current.length>1&&console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."),t&&c({type:2,button:t})}})),S=(0,$.T)(d,e),x=(0,Y.i)(d),T=(0,j.z)(t=>{var e,n,r;if(b){if(1===u.popoverState)return;switch(t.key){case tm.R.Space:case tm.R.Enter:t.preventDefault(),null==(n=(e=t.target).click)||n.call(e),c({type:1}),null==(r=u.button)||r.focus()}}else switch(t.key){case tm.R.Space:case tm.R.Enter:t.preventDefault(),t.stopPropagation(),1===u.popoverState&&(null==g||g(u.buttonId)),c({type:0});break;case tm.R.Escape:if(0!==u.popoverState)return null==g?void 0:g(u.buttonId);if(!d.current||null!=x&&x.activeElement&&!d.current.contains(x.activeElement))return;t.preventDefault(),t.stopPropagation(),c({type:1})}}),k=(0,j.z)(t=>{b||t.key===tm.R.Space&&t.preventDefault()}),C=(0,j.z)(t=>{var e,n;tf(t.currentTarget)||i||(b?(c({type:1}),null==(e=u.button)||e.focus()):(t.preventDefault(),t.stopPropagation(),1===u.popoverState&&(null==g||g(u.buttonId)),c({type:0}),null==(n=u.button)||n.focus()))}),A=(0,j.z)(t=>{t.preventDefault(),t.stopPropagation()}),{isFocusVisible:O,focusProps:N}=function(t={}){var e,n,r;let{autoFocus:o=!1,isTextInput:i,within:a}=t,s=(0,m.useRef)({isFocused:!1,isFocusVisible:o||L()}),[u,c]=(0,m.useState)(!1),[l,d]=(0,m.useState)(()=>s.current.isFocused&&s.current.isFocusVisible),f=(0,m.useCallback)(()=>d(s.current.isFocused&&s.current.isFocusVisible),[]),p=(0,m.useCallback)(t=>{s.current.isFocused=t,c(t),f()},[f]);e=t=>{s.current.isFocusVisible=t,f()},n=[],r={isTextInput:i},R(),(0,m.useEffect)(()=>{let t=(t,n)=>{(function(t,e,n){var r;let o="undefined"!=typeof window?h(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,i="undefined"!=typeof window?h(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?h(null==n?void 0:n.target).HTMLElement:HTMLElement,s="undefined"!=typeof window?h(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((t=t||(null==n?void 0:n.target)instanceof o&&!P.has(null==n?void 0:null===(r=n.target)||void 0===r?void 0:r.type)||(null==n?void 0:n.target)instanceof i||(null==n?void 0:n.target)instanceof a&&(null==n?void 0:n.target.isContentEditable))&&"keyboard"===e&&n instanceof s&&!E[n.key])})(!!(null==r?void 0:r.isTextInput),t,n)&&e(L())};return y.add(t),()=>{y.delete(t)}},n);let{focusProps:g}=function(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:o}=t,i=(0,m.useCallback)(t=>{if(t.target===t.currentTarget)return r&&r(t),o&&o(!1),!0},[r,o]),a=M(i),s=(0,m.useCallback)(t=>{let e=v(t.target);t.target===t.currentTarget&&e.activeElement===t.target&&(n&&n(t),o&&o(!0),a(t))},[o,n,a]);return{focusProps:{onFocus:!e&&(n||o||r)?s:void 0,onBlur:!e&&(r||o)?i:void 0}}}({isDisabled:a,onFocusChange:p}),{focusWithinProps:b}=function(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=t,i=(0,m.useRef)({isFocusWithin:!1}),a=(0,m.useCallback)(t=>{i.current.isFocusWithin&&!t.currentTarget.contains(t.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(t),o&&o(!1))},[n,o,i]),s=M(a),u=(0,m.useCallback)(t=>{i.current.isFocusWithin||document.activeElement!==t.target||(r&&r(t),o&&o(!0),i.current.isFocusWithin=!0,s(t))},[r,o,s]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:a}}}({isDisabled:!a,onFocusWithinChange:p});return{isFocused:u,isFocusVisible:l,focusProps:a?b:g}}({autoFocus:a}),{isHovered:I,hoverProps:D}=function(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:o}=t,[i,a]=(0,m.useState)(!1),s=(0,m.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,m.useEffect)(V,[]);let{hoverProps:u,triggerHoverEnd:c}=(0,m.useMemo)(()=>{let t=(t,r)=>{if(s.pointerType=r,o||"touch"===r||s.isHovered||!t.currentTarget.contains(t.target))return;s.isHovered=!0;let i=t.currentTarget;s.target=i,e&&e({type:"hoverstart",target:i,pointerType:r}),n&&n(!0),a(!0)},i=(t,e)=>{if(s.pointerType="",s.target=null,"touch"===e||!s.isHovered)return;s.isHovered=!1;let o=t.currentTarget;r&&r({type:"hoverend",target:o,pointerType:e}),n&&n(!1),a(!1)},u={};return"undefined"!=typeof PointerEvent?(u.onPointerEnter=e=>{F&&"mouse"===e.pointerType||t(e,e.pointerType)},u.onPointerLeave=t=>{!o&&t.currentTarget.contains(t.target)&&i(t,t.pointerType)}):(u.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},u.onMouseEnter=e=>{s.ignoreEmulatedMouseEvents||F||t(e,"mouse"),s.ignoreEmulatedMouseEvents=!1},u.onMouseLeave=t=>{!o&&t.currentTarget.contains(t.target)&&i(t,"mouse")}),{hoverProps:u,triggerHoverEnd:i}},[e,n,r,o,s]);return(0,m.useEffect)(()=>{o&&c({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:u,isHovered:i}}({isDisabled:i}),{pressed:z,pressProps:U}=function(){let{disabled:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=(0,m.useRef)(null),[n,r]=(0,m.useState)(!1),o=(0,H.G)(),i=(0,j.z)(()=>{e.current=null,r(!1),o.dispose()}),a=(0,j.z)(t=>{if(o.dispose(),null===e.current){e.current=t.currentTarget,r(!0);{let n=(0,B.r)(t.currentTarget);o.addEventListener(n,"pointerup",i,!1),o.addEventListener(n,"pointermove",t=>{if(e.current){var n,o;let i,a;r((i=t.width/2,a=t.height/2,n={top:t.clientY-a,right:t.clientX+i,bottom:t.clientY+a,left:t.clientX-i},o=e.current.getBoundingClientRect(),!(!n||!o||n.right<o.left||n.left>o.right||n.bottom<o.top||n.top>o.bottom)))}},!1),o.addEventListener(n,"pointercancel",i,!1)}}});return{pressed:n,pressProps:t?{}:{onPointerDown:a,onPointerUp:i,onClick:i}}}({disabled:i}),q=0===u.popoverState,G=(0,m.useMemo)(()=>({open:q,active:z||q,disabled:i,hover:I,focus:O,autofocus:a}),[q,I,O,z,i,a]),W=(n=u.button,(0,m.useMemo)(()=>{var e;if(t.type)return t.type;let r=null!=(e=t.as)?e:"button";if("string"==typeof r&&"button"===r.toLowerCase()||(null==n?void 0:n.tagName)==="BUTTON"&&!n.hasAttribute("type"))return"button"},[t.type,t.as,n])),Z=b?(0,th.dG)({ref:S,type:W,onKeyDown:T,onClick:C,disabled:i||void 0,autoFocus:a},N,D,U):(0,th.dG)({ref:w,id:u.buttonId,type:W,"aria-expanded":0===u.popoverState,"aria-controls":u.panel?u.panelId:void 0,disabled:i||void 0,autoFocus:a,onKeyDown:T,onKeyUp:k,onClick:C,onMouseDown:A},N,D,U),K=(0,Q.l)(),J=(0,j.z)(()=>{let t=u.panel;t&&(0,tv.E)(K.current,{[Q.N.Forwards]:()=>(0,tp.jA)(t,tp.TO.First),[Q.N.Backwards]:()=>(0,tp.jA)(t,tp.TO.Last)})===tp.fE.Error&&(0,tp.jA)((0,tp.GO)().filter(t=>"true"!==t.dataset.headlessuiFocusGuard),(0,tv.E)(K.current,{[Q.N.Forwards]:tp.TO.Next,[Q.N.Backwards]:tp.TO.Previous}),{relativeTo:u.button})}),X=(0,th.L6)();return m.createElement(m.Fragment,null,X({ourProps:Z,theirProps:s,slot:G,defaultTag:"button",name:"Popover.Button"}),q&&!b&&l&&m.createElement(tl._,{id:f,ref:u.afterButtonSentinel,features:tl.x.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:J}))}),tI=(0,th.yV)(tO),tM=(0,th.yV)(tO),tF=(0,th.yV)(function(t,e){let n=(0,m.useId)(),{id:r="headlessui-popover-panel-".concat(n),focus:o=!1,anchor:i,portal:a=!1,modal:s=!1,transition:u=!1,...c}=t,[l,d]=tE("Popover.Panel"),{close:f,isPortalled:p}=tx("Popover.Panel"),v="headlessui-focus-sentinel-before-".concat(n),h="headlessui-focus-sentinel-after-".concat(n),g=(0,m.useRef)(null),y=(0,m.useMemo)(()=>i?"string"==typeof i?{to:i}:i:null,[i]),[b,_]=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;!1===t&&(t=null),"string"==typeof t&&(t={to:t});let e=(0,m.useContext)(ta),n=(0,m.useMemo)(()=>t,[JSON.stringify(t,(t,e)=>{var n;return null!=(n=null==e?void 0:e.outerHTML)?n:e})]);(0,q.e)(()=>{null==e||e(null!=n?n:null)},[e,n]);let r=(0,m.useContext)(ti);return(0,m.useMemo)(()=>[r.setFloating,t?r.styles:{}],[r.setFloating,t,r.styles])}(y),w=function(){let{getFloatingProps:t,slot:e}=(0,m.useContext)(ti);return(0,m.useCallback)(function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return Object.assign({},t(...r),{"data-anchor":e.anchor})},[t,e])}();y&&(a=!0);let[E,S]=(0,m.useState)(null),x=(0,$.T)(g,e,y?b:null,(0,j.z)(t=>d({type:4,panel:t})),S),T=(0,Y.i)(g);(0,q.e)(()=>(d({type:5,panelId:r}),()=>{d({type:5,panelId:null})}),[r,d]);let k=(0,td.oJ)(),[C,A]=(0,tt.Y)(u,E,null!==k?(k&td.ZM.Open)===td.ZM.Open:0===l.popoverState);(0,Z.m)(C,l.button,()=>{d({type:1})});let R=!l.__demoMode&&s&&C;(0,X.P)(R,T);let O=(0,j.z)(t=>{var e;if(t.key===tm.R.Escape){if(0!==l.popoverState||!g.current||null!=T&&T.activeElement&&!g.current.contains(T.activeElement))return;t.preventDefault(),t.stopPropagation(),d({type:1}),null==(e=l.button)||e.focus()}});(0,m.useEffect)(()=>{var e;t.static||1===l.popoverState&&(null==(e=t.unmount)||e)&&d({type:4,panel:null})},[l.popoverState,t.unmount,t.static,d]),(0,m.useEffect)(()=>{if(l.__demoMode||!o||0!==l.popoverState||!g.current)return;let t=null==T?void 0:T.activeElement;g.current.contains(t)||(0,tp.jA)(g.current,tp.TO.First)},[l.__demoMode,o,g.current,l.popoverState]);let L=(0,m.useMemo)(()=>({open:0===l.popoverState,close:f}),[l.popoverState,f]),P=(0,th.dG)(y?w():{},{ref:x,id:r,onKeyDown:O,onBlur:o&&0===l.popoverState?t=>{var e,n,r,o,i;let a=t.relatedTarget;a&&g.current&&(null!=(e=g.current)&&e.contains(a)||(d({type:1}),(null!=(r=null==(n=l.beforePanelSentinel.current)?void 0:n.contains)&&r.call(n,a)||null!=(i=null==(o=l.afterPanelSentinel.current)?void 0:o.contains)&&i.call(o,a))&&a.focus({preventScroll:!0})))}:void 0,tabIndex:-1,style:{...c.style,..._,"--button-width":function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],[n,r]=(0,m.useReducer)(()=>({}),{}),o=(0,m.useMemo)(()=>(function(t){if(null===t)return{width:0,height:0};let{width:e,height:n}=t.getBoundingClientRect();return{width:e,height:n}})(t),[t,n]);return(0,q.e)(()=>{if(!t)return;let e=new ResizeObserver(r);return e.observe(t),()=>{e.disconnect()}},[t]),e?{width:"".concat(o.width,"px"),height:"".concat(o.height,"px")}:o}(l.button,!0).width},...(0,tt.X)(A)}),N=(0,Q.l)(),I=(0,j.z)(()=>{let t=g.current;t&&(0,tv.E)(N.current,{[Q.N.Forwards]:()=>{var e;(0,tp.jA)(t,tp.TO.First)===tp.fE.Error&&(null==(e=l.afterPanelSentinel.current)||e.focus())},[Q.N.Backwards]:()=>{var t;null==(t=l.button)||t.focus({preventScroll:!0})}})}),M=(0,j.z)(()=>{let t=g.current;t&&(0,tv.E)(N.current,{[Q.N.Forwards]:()=>{if(!l.button)return;let t=(0,tp.GO)(),e=t.indexOf(l.button),n=t.slice(0,e+1),r=[...t.slice(e+1),...n];for(let t of r.slice())if("true"===t.dataset.headlessuiFocusGuard||null!=E&&E.contains(t)){let e=r.indexOf(t);-1!==e&&r.splice(e,1)}(0,tp.jA)(r,tp.TO.First,{sorted:!1})},[Q.N.Backwards]:()=>{var e;(0,tp.jA)(t,tp.TO.Previous)===tp.fE.Error&&(null==(e=l.button)||e.focus())}})}),F=(0,th.L6)();return m.createElement(td.uu,null,m.createElement(tC.Provider,{value:r},m.createElement(tS.Provider,{value:{close:f,isPortalled:p}},m.createElement(tg.h_,{enabled:!!a&&(t.static||C)},C&&p&&m.createElement(tl._,{id:v,ref:l.beforePanelSentinel,features:tl.x.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:I}),F({ourProps:P,theirProps:c,slot:L,defaultTag:"div",features:tL,visible:C,name:"Popover.Panel"}),C&&p&&m.createElement(tl._,{id:h,ref:l.afterPanelSentinel,features:tl.x.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:M})))))}),tD=Object.assign(tP,{Button:tN,Backdrop:tM,Overlay:tI,Panel:tF,Group:(0,th.yV)(function(t,e){let n=(0,m.useRef)(null),r=(0,$.T)(n,e),[o,i]=(0,m.useState)([]),a=(0,j.z)(t=>{i(e=>{let n=e.indexOf(t);if(-1!==n){let t=e.slice();return t.splice(n,1),t}return e})}),s=(0,j.z)(t=>(i(e=>[...e,t]),()=>a(t))),u=(0,j.z)(()=>{var t;let e=(0,B.r)(n);if(!e)return!1;let r=e.activeElement;return!!(null!=(t=n.current)&&t.contains(r))||o.some(t=>{var n,o;return(null==(n=e.getElementById(t.buttonId.current))?void 0:n.contains(r))||(null==(o=e.getElementById(t.panelId.current))?void 0:o.contains(r))})}),c=(0,j.z)(t=>{for(let e of o)e.buttonId.current!==t&&e.close()}),l=(0,m.useMemo)(()=>({registerPopover:s,unregisterPopover:a,isFocusWithinPopoverGroup:u,closeOthers:c}),[s,a,u,c]),d=(0,m.useMemo)(()=>({}),[]),f=(0,th.L6)();return m.createElement(J.Jl,null,m.createElement(tT.Provider,{value:l},f({ourProps:{ref:r},theirProps:t,slot:d,defaultTag:"div",name:"Popover.Group"})))})})},97831:function(t,e,n){"use strict";n.d(e,{h_:function(){return E},kF:function(){return b},wA:function(){return w}});var r=n(7653),o=n(3458),i=n(62125),a=n(11513),s=n(96938),u=n(74277),c=n(12357),l=n(91335),d=n(88205),f=n(85181),p=n(8840);let v=r.Fragment,h=(0,p.yV)(function(t,e){let n=(0,r.useRef)(null),i=(0,l.T)((0,l.h)(t=>{n.current=t}),e),h=(0,u.i)(n),m=function(t){let e=(0,d.n)(),n=(0,r.useContext)(g),o=(0,u.i)(t),[i,a]=(0,r.useState)(()=>{var t;if(!e&&null!==n)return null!=(t=n.current)?t:null;if(f.O.isServer)return null;let r=null==o?void 0:o.getElementById("headlessui-portal-root");if(r)return r;if(null===o)return null;let i=o.createElement("div");return i.setAttribute("id","headlessui-portal-root"),o.body.appendChild(i)});return(0,r.useEffect)(()=>{null!==i&&(null!=o&&o.body.contains(i)||null==o||o.body.appendChild(i))},[i,o]),(0,r.useEffect)(()=>{e||null!==n&&a(n.current)},[n,a,e]),i}(n),[b]=(0,r.useState)(()=>{var t;return f.O.isServer?null:null!=(t=null==h?void 0:h.createElement("div"))?t:null}),_=(0,r.useContext)(y),w=(0,c.H)();(0,a.e)(()=>{!m||!b||m.contains(b)||(b.setAttribute("data-headlessui-portal",""),m.appendChild(b))},[m,b]),(0,a.e)(()=>{if(b&&_)return _.register(b)},[_,b]),(0,s.L)(()=>{var t;m&&b&&(b instanceof Node&&m.contains(b)&&m.removeChild(b),m.childNodes.length<=0&&(null==(t=m.parentElement)||t.removeChild(m)))});let E=(0,p.L6)();return w&&m&&b?(0,o.createPortal)(E({ourProps:{ref:i},theirProps:t,slot:{},defaultTag:v,name:"Portal"}),b):null}),m=r.Fragment,g=(0,r.createContext)(null),y=(0,r.createContext)(null);function b(){let t=(0,r.useContext)(y),e=(0,r.useRef)([]),n=(0,i.z)(n=>(e.current.push(n),t&&t.register(n),()=>o(n))),o=(0,i.z)(n=>{let r=e.current.indexOf(n);-1!==r&&e.current.splice(r,1),t&&t.unregister(n)}),a=(0,r.useMemo)(()=>({register:n,unregister:o,portals:e}),[n,o,e]);return[e,(0,r.useMemo)(()=>function(t){let{children:e}=t;return r.createElement(y.Provider,{value:a},e)},[a])]}let _=(0,p.yV)(function(t,e){let n=(0,l.T)(e),{enabled:o=!0,...i}=t,a=(0,p.L6)();return o?r.createElement(h,{...i,ref:n}):a({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:v,name:"Portal"})}),w=(0,p.yV)(function(t,e){let{target:n,...o}=t,i={ref:(0,l.T)(e)},a=(0,p.L6)();return r.createElement(g.Provider,{value:n},a({ourProps:i,theirProps:o,defaultTag:m,name:"Popover.Group"}))}),E=Object.assign(_,{Group:w})},46934:function(t,e,n){"use strict";let r;n.d(e,{u:function(){return A},x:function(){return C}});var o=n(7653),i=n(31240),a=n(62125),s=n(86031),u=n(11513),c=n(65960),l=n(12357),d=n(91335),f=n(27291),p=n(32586),v=n(49336),h=n(87295),m=n(8840);function g(t){var e;return!!(t.enter||t.enterFrom||t.enterTo||t.leave||t.leaveFrom||t.leaveTo)||(null!=(e=t.as)?e:S)!==o.Fragment||1===o.Children.count(t.children)}let y=(0,o.createContext)(null);y.displayName="TransitionContext";var b=((r=b||{}).Visible="visible",r.Hidden="hidden",r);let _=(0,o.createContext)(null);function w(t){return"children"in t?w(t.children):t.current.filter(t=>{let{el:e}=t;return null!==e.current}).filter(t=>{let{state:e}=t;return"visible"===e}).length>0}function E(t,e){let n=(0,c.E)(t),r=(0,o.useRef)([]),u=(0,s.t)(),l=(0,i.G)(),d=(0,a.z)(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m.l4.Hidden,o=r.current.findIndex(e=>{let{el:n}=e;return n===t});-1!==o&&((0,h.E)(e,{[m.l4.Unmount](){r.current.splice(o,1)},[m.l4.Hidden](){r.current[o].state="hidden"}}),l.microTask(()=>{var t;!w(r)&&u.current&&(null==(t=n.current)||t.call(n))}))}),f=(0,a.z)(t=>{let e=r.current.find(e=>{let{el:n}=e;return n===t});return e?"visible"!==e.state&&(e.state="visible"):r.current.push({el:t,state:"visible"}),()=>d(t,m.l4.Unmount)}),p=(0,o.useRef)([]),v=(0,o.useRef)(Promise.resolve()),g=(0,o.useRef)({enter:[],leave:[]}),y=(0,a.z)((t,n,r)=>{p.current.splice(0),e&&(e.chains.current[n]=e.chains.current[n].filter(e=>{let[n]=e;return n!==t})),null==e||e.chains.current[n].push([t,new Promise(t=>{p.current.push(t)})]),null==e||e.chains.current[n].push([t,new Promise(t=>{Promise.all(g.current[n].map(t=>{let[e,n]=t;return n})).then(()=>t())})]),"enter"===n?v.current=v.current.then(()=>null==e?void 0:e.wait.current).then(()=>r(n)):r(n)}),b=(0,a.z)((t,e,n)=>{Promise.all(g.current[e].splice(0).map(t=>{let[e,n]=t;return n})).then(()=>{var t;null==(t=p.current.shift())||t()}).then(()=>n(e))});return(0,o.useMemo)(()=>({children:r,register:f,unregister:d,onStart:y,onStop:b,wait:v,chains:g}),[f,d,r,y,b,g,v])}_.displayName="NestingContext";let S=o.Fragment,x=m.VN.RenderStrategy,T=(0,m.yV)(function(t,e){let{show:n,appear:r=!1,unmount:i=!0,...s}=t,c=(0,o.useRef)(null),f=g(t),v=(0,d.T)(...f?[c,e]:null===e?[]:[e]);(0,l.H)();let h=(0,p.oJ)();if(void 0===n&&null!==h&&(n=(h&p.ZM.Open)===p.ZM.Open),void 0===n)throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[b,S]=(0,o.useState)(n?"visible":"hidden"),T=E(()=>{n||S("hidden")}),[C,A]=(0,o.useState)(!0),R=(0,o.useRef)([n]);(0,u.e)(()=>{!1!==C&&R.current[R.current.length-1]!==n&&(R.current.push(n),A(!1))},[R,n]);let O=(0,o.useMemo)(()=>({show:n,appear:r,initial:C}),[n,r,C]);(0,u.e)(()=>{n?S("visible"):w(T)||null===c.current||S("hidden")},[n,T]);let L={unmount:i},P=(0,a.z)(()=>{var e;C&&A(!1),null==(e=t.beforeEnter)||e.call(t)}),N=(0,a.z)(()=>{var e;C&&A(!1),null==(e=t.beforeLeave)||e.call(t)}),I=(0,m.L6)();return o.createElement(_.Provider,{value:T},o.createElement(y.Provider,{value:O},I({ourProps:{...L,as:o.Fragment,children:o.createElement(k,{ref:v,...L,...s,beforeEnter:P,beforeLeave:N})},theirProps:{},defaultTag:o.Fragment,features:x,visible:"visible"===b,name:"Transition"})))}),k=(0,m.yV)(function(t,e){var n,r;let{transition:i=!0,beforeEnter:s,afterEnter:c,beforeLeave:b,afterLeave:T,enter:k,enterFrom:C,enterTo:A,entered:R,leave:O,leaveFrom:L,leaveTo:P,...N}=t,[I,M]=(0,o.useState)(null),F=(0,o.useRef)(null),D=g(t),z=(0,d.T)(...D?[F,e,M]:null===e?[]:[e]),U=null==(n=N.unmount)||n?m.l4.Unmount:m.l4.Hidden,{show:V,appear:B,initial:H}=function(){let t=(0,o.useContext)(y);if(null===t)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}(),[j,q]=(0,o.useState)(V?"visible":"hidden"),G=function(){let t=(0,o.useContext)(_);if(null===t)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}(),{register:W,unregister:Z}=G;(0,u.e)(()=>W(F),[W,F]),(0,u.e)(()=>{if(U===m.l4.Hidden&&F.current){if(V&&"visible"!==j){q("visible");return}return(0,h.E)(j,{hidden:()=>Z(F),visible:()=>W(F)})}},[j,F,W,Z,V,U]);let K=(0,l.H)();(0,u.e)(()=>{if(D&&K&&"visible"===j&&null===F.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[F,j,K,D]);let Y=H&&!B,J=B&&V&&H,X=(0,o.useRef)(!1),$=E(()=>{X.current||(q("hidden"),Z(F))},G),Q=(0,a.z)(t=>{X.current=!0,$.onStart(F,t?"enter":"leave",t=>{"enter"===t?null==s||s():"leave"===t&&(null==b||b())})}),tt=(0,a.z)(t=>{let e=t?"enter":"leave";X.current=!1,$.onStop(F,e,t=>{"enter"===t?null==c||c():"leave"===t&&(null==T||T())}),"leave"!==e||w($)||(q("hidden"),Z(F))});(0,o.useEffect)(()=>{D&&i||(Q(V),tt(V))},[V,D,i]);let te=!(!i||!D||!K||Y),[,tn]=(0,f.Y)(te,I,V,{start:Q,end:tt}),tr=(0,m.oA)({ref:z,className:(null==(r=(0,v.A)(N.className,J&&k,J&&C,tn.enter&&k,tn.enter&&tn.closed&&C,tn.enter&&!tn.closed&&A,tn.leave&&O,tn.leave&&!tn.closed&&L,tn.leave&&tn.closed&&P,!tn.transition&&V&&R))?void 0:r.trim())||void 0,...(0,f.X)(tn)}),to=0;"visible"===j&&(to|=p.ZM.Open),"hidden"===j&&(to|=p.ZM.Closed),tn.enter&&(to|=p.ZM.Opening),tn.leave&&(to|=p.ZM.Closing);let ti=(0,m.L6)();return o.createElement(_.Provider,{value:$},o.createElement(p.up,{value:to},ti({ourProps:tr,theirProps:N,defaultTag:S,features:x,visible:"visible"===j,name:"Transition.Child"})))}),C=(0,m.yV)(function(t,e){let n=null!==(0,o.useContext)(y),r=null!==(0,p.oJ)();return o.createElement(o.Fragment,null,!n&&r?o.createElement(T,{ref:e,...t}):o.createElement(k,{ref:e,...t}))}),A=Object.assign(T,{Child:C,Root:T})},31240:function(t,e,n){"use strict";n.d(e,{G:function(){return i}});var r=n(7653),o=n(28177);function i(){let[t]=(0,r.useState)(o.k);return(0,r.useEffect)(()=>()=>t.dispose(),[t]),t}},6742:function(t,e,n){"use strict";n.d(e,{O:function(){return i}});var r=n(7653),o=n(65960);function i(t,e,n,i){let a=(0,o.E)(n);(0,r.useEffect)(()=>{function n(t){a.current(t)}return(t=null!=t?t:window).addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)},[t,e,i])}},62125:function(t,e,n){"use strict";n.d(e,{z:function(){return i}});var r=n(7653),o=n(65960);let i=function(t){let e=(0,o.E)(t);return r.useCallback(function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.current(...n)},[e])}},86031:function(t,e,n){"use strict";n.d(e,{t:function(){return i}});var r=n(7653),o=n(11513);function i(){let t=(0,r.useRef)(!1);return(0,o.e)(()=>(t.current=!0,()=>{t.current=!1}),[]),t}},4193:function(t,e,n){"use strict";n.d(e,{g:function(){return c}});var r=n(7653);class o extends Map{get(t){let e=super.get(t);return void 0===e&&(e=this.factory(t),this.set(t,e)),e}constructor(t){super(),this.factory=t}}var i=n(22279),a=n(11513),s=n(11466);let u=new o(()=>(0,i.M)(()=>[],{ADD(t){return this.includes(t)?this:[...this,t]},REMOVE(t){let e=this.indexOf(t);if(-1===e)return this;let n=this.slice();return n.splice(e,1),n}}));function c(t,e){let n=u.get(e),o=(0,r.useId)(),i=(0,s.o)(n);if((0,a.e)(()=>{if(t)return n.dispatch("ADD",o),()=>n.dispatch("REMOVE",o)},[n,t]),!t)return!1;let c=i.indexOf(o),l=i.length;return -1===c&&(c=l,l+=1),c===l-1}},11513:function(t,e,n){"use strict";n.d(e,{e:function(){return i}});var r=n(7653),o=n(85181);let i=(t,e)=>{o.O.isServer?(0,r.useEffect)(t,e):(0,r.useLayoutEffect)(t,e)}},65960:function(t,e,n){"use strict";n.d(e,{E:function(){return i}});var r=n(7653),o=n(11513);function i(t){let e=(0,r.useRef)(t);return(0,o.e)(()=>{e.current=t},[t]),e}},15913:function(t,e,n){"use strict";n.d(e,{m:function(){return a}});var r=n(7653),o=n(28177),i=n(65960);function a(t,e,n){let a=(0,i.E)(t=>{let e=t.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&n()});(0,r.useEffect)(()=>{if(!t)return;let n=null===e?null:e instanceof HTMLElement?e:e.current;if(!n)return;let r=(0,o.k)();if("undefined"!=typeof ResizeObserver){let t=new ResizeObserver(()=>a.current(n));t.observe(n),r.add(()=>t.disconnect())}if("undefined"!=typeof IntersectionObserver){let t=new IntersectionObserver(()=>a.current(n));t.observe(n),r.add(()=>t.disconnect())}return()=>r.dispose()},[e,a,t])}},96938:function(t,e,n){"use strict";n.d(e,{L:function(){return a}});var r=n(7653),o=n(51327),i=n(62125);function a(t){let e=(0,i.z)(t),n=(0,r.useRef)(!1);(0,r.useEffect)(()=>(n.current=!1,()=>{n.current=!0,(0,o.Y)(()=>{n.current&&e()})}),[e])}},88909:function(t,e,n){"use strict";n.d(e,{O:function(){return l}});var r=n(7653),o=n(26959),i=n(50478),a=n(65960);function s(t,e,n,o){let i=(0,a.E)(n);(0,r.useEffect)(()=>{if(t)return document.addEventListener(e,n,o),()=>document.removeEventListener(e,n,o);function n(t){i.current(t)}},[t,e,o])}var u=n(4193),c=n(47874);function l(t,e,n){let l=(0,u.g)(t,"outside-click"),d=(0,a.E)(n),f=(0,r.useCallback)(function(t,n){if(t.defaultPrevented)return;let r=n(t);if(null!==r&&r.getRootNode().contains(r)&&r.isConnected){for(let n of function t(e){return"function"==typeof e?t(e()):Array.isArray(e)||e instanceof Set?e:[e]}(e))if(null!==n&&(n.contains(r)||t.composed&&t.composedPath().includes(n)))return;return(0,o.sP)(r,o.tJ.Loose)||-1===r.tabIndex||t.preventDefault(),d.current(t,r)}},[d,e]),p=(0,r.useRef)(null);s(l,"pointerdown",t=>{var e,n;p.current=(null==(n=null==(e=t.composedPath)?void 0:e.call(t))?void 0:n[0])||t.target},!0),s(l,"mousedown",t=>{var e,n;p.current=(null==(n=null==(e=t.composedPath)?void 0:e.call(t))?void 0:n[0])||t.target},!0),s(l,"click",t=>{(0,i.tq)()||p.current&&(f(t,()=>p.current),p.current=null)},!0);let v=(0,r.useRef)({x:0,y:0});s(l,"touchstart",t=>{v.current.x=t.touches[0].clientX,v.current.y=t.touches[0].clientY},!0),s(l,"touchend",t=>{let e={x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY};if(!(Math.abs(e.x-v.current.x)>=30||Math.abs(e.y-v.current.y)>=30))return f(t,()=>t.target instanceof HTMLElement?t.target:null)},!0),(0,c.s)(l,"blur",t=>f(t,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}},74277:function(t,e,n){"use strict";n.d(e,{i:function(){return i}});var r=n(7653),o=n(36441);function i(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return(0,r.useMemo)(()=>(0,o.r)(...e),[...e])}},70332:function(t,e,n){"use strict";n.d(e,{H1:function(){return d},Jl:function(){return l},vs:function(){return u}});var r=n(7653),o=n(62308),i=n(36441),a=n(62125),s=n(74277);function u(){let{defaultContainers:t=[],portals:e,mainTreeNode:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,s.i)(n),o=(0,a.z)(()=>{var o,i;let a=[];for(let e of t)null!==e&&(e instanceof HTMLElement?a.push(e):"current"in e&&e.current instanceof HTMLElement&&a.push(e.current));if(null!=e&&e.current)for(let t of e.current)a.push(t);for(let t of null!=(o=null==r?void 0:r.querySelectorAll("html > *, body > *"))?o:[])t!==document.body&&t!==document.head&&t instanceof HTMLElement&&"headlessui-portal-root"!==t.id&&(n&&(t.contains(n)||t.contains(null==(i=null==n?void 0:n.getRootNode())?void 0:i.host))||a.some(e=>t.contains(e))||a.push(t));return a});return{resolveContainers:o,contains:(0,a.z)(t=>o().some(e=>e.contains(t)))}}let c=(0,r.createContext)(null);function l(t){let{children:e,node:n}=t,[a,s]=(0,r.useState)(null),u=d(null!=n?n:a);return r.createElement(c.Provider,{value:u},e,null===u&&r.createElement(o._,{features:o.x.Hidden,ref:t=>{var e,n;if(t){for(let r of null!=(n=null==(e=(0,i.r)(t))?void 0:e.querySelectorAll("html > *, body > *"))?n:[])if(r!==document.body&&r!==document.head&&r instanceof HTMLElement&&null!=r&&r.contains(t)){s(r);break}}}}))}function d(){var t;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null!=(t=(0,r.useContext)(c))?t:e}},41824:function(t,e,n){"use strict";n.d(e,{P:function(){return l}});var r=n(11466),o=n(11513),i=n(28177),a=n(22279),s=n(50478);let u=(0,a.M)(()=>new Map,{PUSH(t,e){var n;let r=null!=(n=this.get(t))?n:{doc:t,count:0,d:(0,i.k)(),meta:new Set};return r.count++,r.meta.add(e),this.set(t,r),this},POP(t,e){let n=this.get(t);return n&&(n.count--,n.meta.delete(e)),this},SCROLL_PREVENT(t){let e,{doc:n,d:r,meta:o}=t,a={doc:n,d:r,meta:function(t){let e={};for(let n of t)Object.assign(e,n(e));return e}(o)},u=[(0,s.gn)()?{before(t){let{doc:e,d:n,meta:r}=t;function o(t){return r.containers.flatMap(t=>t()).some(e=>e.contains(t))}n.microTask(()=>{var t;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let t=(0,i.k)();t.style(e.documentElement,"scrollBehavior","auto"),n.add(()=>n.microTask(()=>t.dispose()))}let r=null!=(t=window.scrollY)?t:window.pageYOffset,a=null;n.addEventListener(e,"click",t=>{if(t.target instanceof HTMLElement)try{let n=t.target.closest("a");if(!n)return;let{hash:r}=new URL(n.href),i=e.querySelector(r);i&&!o(i)&&(a=i)}catch(t){}},!0),n.addEventListener(e,"touchstart",t=>{if(t.target instanceof HTMLElement){if(o(t.target)){let e=t.target;for(;e.parentElement&&o(e.parentElement);)e=e.parentElement;n.style(e,"overscrollBehavior","contain")}else n.style(t.target,"touchAction","none")}}),n.addEventListener(e,"touchmove",t=>{if(t.target instanceof HTMLElement&&"INPUT"!==t.target.tagName){if(o(t.target)){let e=t.target;for(;e.parentElement&&""!==e.dataset.headlessuiPortal&&!(e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth);)e=e.parentElement;""===e.dataset.headlessuiPortal&&t.preventDefault()}else t.preventDefault()}},{passive:!1}),n.add(()=>{var t;r!==(null!=(t=window.scrollY)?t:window.pageYOffset)&&window.scrollTo(0,r),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})})}}:{},{before(t){var n;let{doc:r}=t,o=r.documentElement;e=Math.max(0,(null!=(n=r.defaultView)?n:window).innerWidth-o.clientWidth)},after(t){let{doc:n,d:r}=t,o=n.documentElement,i=Math.max(0,o.clientWidth-o.offsetWidth),a=Math.max(0,e-i);r.style(o,"paddingRight","".concat(a,"px"))}},{before(t){let{doc:e,d:n}=t;n.style(e.documentElement,"overflow","hidden")}}];u.forEach(t=>{let{before:e}=t;return null==e?void 0:e(a)}),u.forEach(t=>{let{after:e}=t;return null==e?void 0:e(a)})},SCROLL_ALLOW(t){let{d:e}=t;e.dispose()},TEARDOWN(t){let{doc:e}=t;this.delete(e)}});u.subscribe(()=>{let t=u.getSnapshot(),e=new Map;for(let[n]of t)e.set(n,n.documentElement.style.overflow);for(let n of t.values()){let t="hidden"===e.get(n.doc),r=0!==n.count;(r&&!t||!r&&t)&&u.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&u.dispatch("TEARDOWN",n)}});var c=n(4193);function l(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[document.body];!function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>({containers:[]}),i=(0,r.o)(u),a=e?i.get(e):void 0;a&&a.count,(0,o.e)(()=>{if(!(!e||!t))return u.dispatch("PUSH",e,n),()=>u.dispatch("POP",e,n)},[t,e])}((0,c.g)(t,"scroll-lock"),e,t=>{var e;return{containers:[...null!=(e=t.containers)?e:[],n]}})}},12357:function(t,e,n){"use strict";n.d(e,{H:function(){return a}});var r,o=n(7653),i=n(85181);function a(){let t;let e=(t="undefined"==typeof document,(0,(r||(r=n.t(o,2))).useSyncExternalStore)(()=>()=>{},()=>!1,()=>!t)),[a,s]=o.useState(i.O.isHandoffComplete);return a&&!1===i.O.isHandoffComplete&&s(!1),o.useEffect(()=>{!0!==a&&s(!0)},[a]),o.useEffect(()=>i.O.handoff(),[]),!e&&a}},11466:function(t,e,n){"use strict";n.d(e,{o:function(){return o}});var r=n(7653);function o(t){return(0,r.useSyncExternalStore)(t.subscribe,t.getSnapshot,t.getSnapshot)}},91335:function(t,e,n){"use strict";n.d(e,{T:function(){return s},h:function(){return a}});var r=n(7653),o=n(62125);let i=Symbol();function a(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return Object.assign(t,{[i]:e})}function s(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];let a=(0,r.useRef)(e);(0,r.useEffect)(()=>{a.current=e},[e]);let s=(0,o.z)(t=>{for(let e of a.current)null!=e&&("function"==typeof e?e(t):e.current=t)});return e.every(t=>null==t||(null==t?void 0:t[i]))?void 0:s}},29094:function(t,e,n){"use strict";let r;n.d(e,{N:function(){return a},l:function(){return s}});var o=n(7653),i=n(47874),a=((r=a||{})[r.Forwards=0]="Forwards",r[r.Backwards=1]="Backwards",r);function s(){let t=(0,o.useRef)(0);return(0,i.s)(!0,"keydown",e=>{"Tab"===e.key&&(t.current=e.shiftKey?1:0)},!0),t}},27291:function(t,e,n){"use strict";let r;n.d(e,{X:function(){return f},Y:function(){return p}});var o,i,a=n(7653),s=n(28177),u=n(31240),c=n(11513),l=n(74859);void 0!==l&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&(null==(o=null==l?void 0:l.env)?void 0:o.NODE_ENV)==="test"&&void 0===(null==(i=null==Element?void 0:Element.prototype)?void 0:i.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn("Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.\nPlease install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.\n\nExample usage:\n```js\nimport { mockAnimationsApi } from 'jsdom-testing-mocks'\nmockAnimationsApi()\n```"),[]});var d=((r=d||{})[r.None=0]="None",r[r.Closed=1]="Closed",r[r.Enter=2]="Enter",r[r.Leave=4]="Leave",r);function f(t){let e={};for(let n in t)!0===t[n]&&(e["data-".concat(n)]="");return e}function p(t,e,n,r){let[o,i]=(0,a.useState)(n),{hasFlag:l,addFlag:d,removeFlag:f}=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[e,n]=(0,a.useState)(t),r=(0,a.useCallback)(t=>n(t),[e]),o=(0,a.useCallback)(t=>n(e=>e|t),[e]),i=(0,a.useCallback)(t=>(e&t)===t,[e]);return{flags:e,setFlag:r,addFlag:o,hasFlag:i,removeFlag:(0,a.useCallback)(t=>n(e=>e&~t),[n]),toggleFlag:(0,a.useCallback)(t=>n(e=>e^t),[n])}}(t&&o?3:0),p=(0,a.useRef)(!1),v=(0,a.useRef)(!1),h=(0,u.G)();return(0,c.e)(()=>{var o;if(t){if(n&&i(!0),!e){n&&d(3);return}return null==(o=null==r?void 0:r.start)||o.call(r,n),function(t,e){let{prepare:n,run:r,done:o,inFlight:i}=e,a=(0,s.k)();return function(t,e){let{inFlight:n,prepare:r}=e;if(null!=n&&n.current){r();return}let o=t.style.transition;t.style.transition="none",r(),t.offsetHeight,t.style.transition=o}(t,{prepare:n,inFlight:i}),a.nextFrame(()=>{r(),a.requestAnimationFrame(()=>{a.add(function(t,e){var n,r;let o=(0,s.k)();if(!t)return o.dispose;let i=!1;o.add(()=>{i=!0});let a=null!=(r=null==(n=t.getAnimations)?void 0:n.call(t).filter(t=>t instanceof CSSTransition))?r:[];return 0===a.length?e():Promise.allSettled(a.map(t=>t.finished)).then(()=>{i||e()}),o.dispose}(t,o))})}),a.dispose}(e,{inFlight:p,prepare(){v.current?v.current=!1:v.current=p.current,p.current=!0,v.current||(n?(d(3),f(4)):(d(4),f(2)))},run(){v.current?n?(f(3),d(4)):(f(4),d(3)):n?f(1):d(1)},done(){var t;v.current&&"function"==typeof e.getAnimations&&e.getAnimations().length>0||(p.current=!1,f(7),n||i(!1),null==(t=null==r?void 0:r.end)||t.call(r,n))}})}},[t,n,e,h]),t?[o,{closed:l(1),enter:l(2),leave:l(4),transition:l(2)||l(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}},47874:function(t,e,n){"use strict";n.d(e,{s:function(){return i}});var r=n(7653),o=n(65960);function i(t,e,n,i){let a=(0,o.E)(n);(0,r.useEffect)(()=>{if(t)return window.addEventListener(e,n,i),()=>window.removeEventListener(e,n,i);function n(t){a.current(t)}},[t,e,i])}},37182:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(7653);let o=(0,r.createContext)(()=>{});function i(t){let{value:e,children:n}=t;return r.createElement(o.Provider,{value:e},n)}},62308:function(t,e,n){"use strict";let r;n.d(e,{_:function(){return a},x:function(){return i}});var o=n(8840),i=((r=i||{})[r.None=1]="None",r[r.Focusable=2]="Focusable",r[r.Hidden=4]="Hidden",r);let a=(0,o.yV)(function(t,e){var n;let{features:r=1,...i}=t,a={ref:e,"aria-hidden":(2&r)==2||(null!=(n=i["aria-hidden"])?n:void 0),hidden:(4&r)==4||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&r)==4&&(2&r)!=2&&{display:"none"}}};return(0,o.L6)()({ourProps:a,theirProps:i,slot:{},defaultTag:"span",name:"Hidden"})})},32586:function(t,e,n){"use strict";let r;n.d(e,{ZM:function(){return a},oJ:function(){return s},up:function(){return u},uu:function(){return c}});var o=n(7653);let i=(0,o.createContext)(null);i.displayName="OpenClosedContext";var a=((r=a||{})[r.Open=1]="Open",r[r.Closed=2]="Closed",r[r.Closing=4]="Closing",r[r.Opening=8]="Opening",r);function s(){return(0,o.useContext)(i)}function u(t){let{value:e,children:n}=t;return o.createElement(i.Provider,{value:e},n)}function c(t){let{children:e}=t;return o.createElement(i.Provider,{value:null},e)}},88205:function(t,e,n){"use strict";n.d(e,{O:function(){return a},n:function(){return i}});var r=n(7653);let o=(0,r.createContext)(!1);function i(){return(0,r.useContext)(o)}function a(t){return r.createElement(o.Provider,{value:t.force},t.children)}},49336:function(t,e,n){"use strict";function r(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return Array.from(new Set(e.flatMap(t=>"string"==typeof t?t.split(" "):[]))).filter(Boolean).join(" ")}n.d(e,{A:function(){return r}})},28177:function(t,e,n){"use strict";n.d(e,{k:function(){return function t(){let e=[],n={addEventListener:(t,e,r,o)=>(t.addEventListener(e,r,o),n.add(()=>t.removeEventListener(e,r,o))),requestAnimationFrame(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];let o=requestAnimationFrame(...e);return n.add(()=>cancelAnimationFrame(o))},nextFrame(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return n.requestAnimationFrame(()=>n.requestAnimationFrame(...e))},setTimeout(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];let o=setTimeout(...e);return n.add(()=>clearTimeout(o))},microTask(){for(var t=arguments.length,e=Array(t),o=0;o<t;o++)e[o]=arguments[o];let i={current:!0};return(0,r.Y)(()=>{i.current&&e[0]()}),n.add(()=>{i.current=!1})},style(t,e,n){let r=t.style.getPropertyValue(e);return Object.assign(t.style,{[e]:n}),this.add(()=>{Object.assign(t.style,{[e]:r})})},group(e){let n=t();return e(n),this.add(()=>n.dispose())},add:t=>(e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return n}}});var r=n(51327)},85181:function(t,e,n){"use strict";n.d(e,{O:function(){return s}});var r=Object.defineProperty,o=(t,e,n)=>e in t?r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,i=(t,e,n)=>(o(t,"symbol"!=typeof e?e+"":e,n),n);class a{set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}constructor(){i(this,"current",this.detect()),i(this,"handoffState","pending"),i(this,"currentId",0)}}let s=new a},26959:function(t,e,n){"use strict";let r,o,i,a,s;n.d(e,{C5:function(){return b},GO:function(){return h},TO:function(){return f},fE:function(){return p},jA:function(){return _},sP:function(){return g},tJ:function(){return m},y:function(){return l}});var u=n(87295),c=n(36441);let l=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(t=>"".concat(t,":not([tabindex='-1'])")).join(","),d=["[data-autofocus]"].map(t=>"".concat(t,":not([tabindex='-1'])")).join(",");var f=((r=f||{})[r.First=1]="First",r[r.Previous=2]="Previous",r[r.Next=4]="Next",r[r.Last=8]="Last",r[r.WrapAround=16]="WrapAround",r[r.NoScroll=32]="NoScroll",r[r.AutoFocus=64]="AutoFocus",r),p=((o=p||{})[o.Error=0]="Error",o[o.Overflow=1]="Overflow",o[o.Success=2]="Success",o[o.Underflow=3]="Underflow",o),v=((i=v||{})[i.Previous=-1]="Previous",i[i.Next=1]="Next",i);function h(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==t?[]:Array.from(t.querySelectorAll(l)).sort((t,e)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(e.tabIndex||Number.MAX_SAFE_INTEGER)))}var m=((a=m||{})[a.Strict=0]="Strict",a[a.Loose=1]="Loose",a);function g(t){var e;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t!==(null==(e=(0,c.r)(t))?void 0:e.body)&&(0,u.E)(n,{0:()=>t.matches(l),1(){let e=t;for(;null!==e;){if(e.matches(l))return!0;e=e.parentElement}return!1}})}var y=((s=y||{})[s.Keyboard=0]="Keyboard",s[s.Mouse=1]="Mouse",s);function b(t){null==t||t.focus({preventScroll:!0})}function _(t,e){var n,r,o;let{sorted:i=!0,relativeTo:a=null,skipElements:s=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=Array.isArray(t)?t.length>0?t[0].ownerDocument:document:t.ownerDocument,c=Array.isArray(t)?i?function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t=>t;return t.slice().sort((t,n)=>{let r=e(t),o=e(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}(t):t:64&e?function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==t?[]:Array.from(t.querySelectorAll(d)).sort((t,e)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(e.tabIndex||Number.MAX_SAFE_INTEGER)))}(t):h(t);s.length>0&&c.length>1&&(c=c.filter(t=>!s.some(e=>null!=e&&"current"in e?(null==e?void 0:e.current)===t:e===t))),a=null!=a?a:u.activeElement;let l=(()=>{if(5&e)return 1;if(10&e)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=(()=>{if(1&e)return 0;if(2&e)return Math.max(0,c.indexOf(a))-1;if(4&e)return Math.max(0,c.indexOf(a))+1;if(8&e)return c.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),p=32&e?{preventScroll:!0}:{},v=0,m=c.length,g;do{if(v>=m||v+m<=0)return 0;let t=f+v;if(16&e)t=(t+m)%m;else{if(t<0)return 3;if(t>=m)return 1}null==(g=c[t])||g.focus(p),v+=l}while(g!==u.activeElement);return 6&e&&null!=(o=null==(r=null==(n=g)?void 0:n.matches)?void 0:r.call(n,"textarea,input"))&&o&&g.select(),2}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",t=>{t.metaKey||t.altKey||t.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",t=>{1===t.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===t.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0))},87295:function(t,e,n){"use strict";function r(t,e){for(var n=arguments.length,o=Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];if(t in e){let n=e[t];return"function"==typeof n?n(...o):n}let a=Error('Tried to handle "'.concat(t,'" but there is no handler defined. Only defined handlers are: ').concat(Object.keys(e).map(t=>'"'.concat(t,'"')).join(", "),"."));throw Error.captureStackTrace&&Error.captureStackTrace(a,r),a}n.d(e,{E:function(){return r}})},51327:function(t,e,n){"use strict";function r(t){"function"==typeof queueMicrotask?queueMicrotask(t):Promise.resolve().then(t).catch(t=>setTimeout(()=>{throw t}))}n.d(e,{Y:function(){return r}})},36441:function(t,e,n){"use strict";n.d(e,{r:function(){return o}});var r=n(85181);function o(t){return r.O.isServer?null:t instanceof Node?t.ownerDocument:null!=t&&t.hasOwnProperty("current")&&t.current instanceof Node?t.current.ownerDocument:document}},50478:function(t,e,n){"use strict";function r(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function o(){return r()||/Android/gi.test(window.navigator.userAgent)}n.d(e,{gn:function(){return r},tq:function(){return o}})},8840:function(t,e,n){"use strict";let r,o;n.d(e,{L6:function(){return l},VN:function(){return u},dG:function(){return v},l4:function(){return c},oA:function(){return m},yV:function(){return h}});var i=n(7653),a=n(49336),s=n(87295),u=((r=u||{})[r.None=0]="None",r[r.RenderStrategy=1]="RenderStrategy",r[r.Static=2]="Static",r),c=((o=c||{})[o.Unmount=0]="Unmount",o[o.Hidden=1]="Hidden",o);function l(){let t,e;let n=(t=(0,i.useRef)([]),e=(0,i.useCallback)(e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)},[]),function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];if(!r.every(t=>null==t))return t.current=r,e});return(0,i.useCallback)(t=>(function(t){let{ourProps:e,theirProps:n,slot:r,defaultTag:o,features:i,visible:a=!0,name:u,mergeRefs:c}=t;c=null!=c?c:f;let l=p(n,e);if(a)return d(l,r,o,u,c);let v=null!=i?i:0;if(2&v){let{static:t=!1,...e}=l;if(t)return d(e,r,o,u,c)}if(1&v){let{unmount:t=!0,...e}=l;return(0,s.E)(t?0:1,{0:()=>null,1:()=>d({...e,hidden:!0,style:{display:"none"}},r,o,u,c)})}return d(l,r,o,u,c)})({mergeRefs:n,...t}),[n])}function d(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,{as:s=n,children:u,refName:c="ref",...l}=g(t,["unmount","static"]),d=void 0!==t.ref?{[c]:t.ref}:{},f="function"==typeof u?u(e):u;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(e)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let v={};if(e){let t=!1,n=[];for(let[r,o]of Object.entries(e))"boolean"==typeof o&&(t=!0),!0===o&&n.push(r.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())));if(t)for(let t of(v["data-headlessui-state"]=n.join(" "),n))v["data-".concat(t)]=""}if(s===i.Fragment&&(Object.keys(m(l)).length>0||Object.keys(m(v)).length>0)){if(!(0,i.isValidElement)(f)||Array.isArray(f)&&f.length>1){if(Object.keys(m(l)).length>0)throw Error(['Passing props on "Fragment"!',"","The current component <".concat(r,' /> is rendering a "Fragment".'),"However we need to passthrough the following props:",Object.keys(m(l)).concat(Object.keys(m(v))).map(t=>"  - ".concat(t)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(t=>"  - ".concat(t)).join("\n")].join("\n"))}else{let t=f.props,e=null==t?void 0:t.className,n="function"==typeof e?function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return(0,a.A)(e(...n),l.className)}:(0,a.A)(e,l.className),r=p(f.props,m(g(l,["ref"])));for(let t in v)t in r&&delete v[t];return(0,i.cloneElement)(f,Object.assign({},r,v,d,{ref:o(i.version.split(".")[0]>="19"?f.props.ref:f.ref,d.ref)},n?{className:n}:{}))}}return(0,i.createElement)(s,Object.assign({},g(l,["ref"]),s!==i.Fragment&&d,s!==i.Fragment&&v),f)}function f(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.every(t=>null==t)?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function p(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];if(0===e.length)return{};if(1===e.length)return e[0];let r={},o={};for(let t of e)for(let e in t)e.startsWith("on")&&"function"==typeof t[e]?(null!=o[e]||(o[e]=[]),o[e].push(t[e])):r[e]=t[e];if(r.disabled||r["aria-disabled"])for(let t in o)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(t)&&(o[t]=[t=>{var e;return null==(e=null==t?void 0:t.preventDefault)?void 0:e.call(t)}]);for(let t in o)Object.assign(r,{[t](e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(let n of o[t]){if((e instanceof Event||(null==e?void 0:e.nativeEvent)instanceof Event)&&e.defaultPrevented)return;n(e,...r)}}});return r}function v(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];if(0===e.length)return{};if(1===e.length)return e[0];let r={},o={};for(let t of e)for(let e in t)e.startsWith("on")&&"function"==typeof t[e]?(null!=o[e]||(o[e]=[]),o[e].push(t[e])):r[e]=t[e];for(let t in o)Object.assign(r,{[t](){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];for(let e of o[t])null==e||e(...n)}});return r}function h(t){var e;return Object.assign((0,i.forwardRef)(t),{displayName:null!=(e=t.displayName)?e:t.name})}function m(t){let e=Object.assign({},t);for(let t in e)void 0===e[t]&&delete e[t];return e}function g(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Object.assign({},t);for(let t of e)t in n&&delete n[t];return n}},22279:function(t,e,n){"use strict";function r(t,e){let n=t(),r=new Set;return{getSnapshot:()=>n,subscribe:t=>(r.add(t),()=>r.delete(t)),dispatch(t){for(var o=arguments.length,i=Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];let s=e[t].call(n,...i);s&&(n=s,r.forEach(t=>t()))}}}n.d(e,{M:function(){return r}})},3383:function(t,e,n){"use strict";var r=n(7653);let o=r.forwardRef(function(t,e){let{title:n,titleId:o,...i}=t;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:e,"aria-labelledby":o},i),n?r.createElement("title",{id:o},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))});e.Z=o},68602:function(t,e,n){"use strict";var r=n(7653);let o=r.forwardRef(function(t,e){let{title:n,titleId:o,...i}=t;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:e,"aria-labelledby":o},i),n?r.createElement("title",{id:o},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))});e.Z=o},57293:function(t,e,n){"use strict";var r=n(7653);let o=r.forwardRef(function(t,e){let{title:n,titleId:o,...i}=t;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:e,"aria-labelledby":o},i),n?r.createElement("title",{id:o},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))});e.Z=o},53481:function(t,e,n){"use strict";n.d(e,{SpeedInsights:function(){return v}});var r=n(7653),o=n(81695),i=()=>{window.si||(window.si=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];(window.siq=window.siq||[]).push(e)})};function a(){return false}function s(t){return new RegExp("/".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"(?=[/?#]|$)"))}var u="https://va.vercel-scripts.com/v1/speed-insights",c="".concat(u,"/script.js"),l="".concat(u,"/script.debug.js");function d(t){let e=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(e.current)t.route&&e.current(t.route);else{let n=function(){var t;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!("undefined"!=typeof window)||null===e.route)return null;i();let n=!!e.dsn,r=e.scriptSrc||(n?c:"/_vercel/speed-insights/script.js");if(document.head.querySelector('script[src*="'.concat(r,'"]')))return null;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend));let o=document.createElement("script");return o.src=r,o.defer=!0,o.dataset.sdkn="@vercel/speed-insights"+(e.framework?"/".concat(e.framework):""),o.dataset.sdkv="1.0.14",e.sampleRate&&(o.dataset.sampleRate=e.sampleRate.toString()),e.route&&(o.dataset.route=e.route),e.endpoint&&(o.dataset.endpoint=e.endpoint),e.dsn&&(o.dataset.dsn=e.dsn),o.onerror=()=>{console.log("[Vercel Speed Insights] Failed to load script from ".concat(r,". Please check if any content blockers are enabled and try again."))},document.head.appendChild(o),{setRoute:t=>{o.dataset.route=null!=t?t:void 0}}}({framework:t.framework||"react",...t});n&&(e.current=n.setRoute)}},[t.route]),null}var f=()=>{let t=(0,o.useParams)(),e=(0,o.useSearchParams)()||new URLSearchParams,n=(0,o.usePathname)(),r={...Object.fromEntries(e.entries()),...t||{}};return t?function(t,e){if(!t||!e)return t;let n=t;try{let t=Object.entries(e);for(let[e,r]of t)if(!Array.isArray(r)){let t=s(r);t.test(n)&&(n=n.replace(t,"/[".concat(e,"]")))}for(let[e,r]of t)if(Array.isArray(r)){let t=s(r.join("/"));t.test(n)&&(n=n.replace(t,"/[...".concat(e,"]")))}return n}catch(e){return t}}(n,r):null};function p(t){let e=f();return r.createElement(d,{route:e,...t,framework:"next"})}function v(t){return r.createElement(r.Suspense,{fallback:null},r.createElement(p,{...t}))}},10607:function(t,e,n){"use strict";e.Z=function(){for(var t,e,n=0,r="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=function t(e){var n,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e){if(Array.isArray(e)){var i=e.length;for(n=0;n<i;n++)e[n]&&(r=t(e[n]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r)}return o}(t))&&(r&&(r+=" "),r+=e);return r}}}]);
//# sourceMappingURL=8586-7cd56523b6b726de.js.map